Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Sending out multiple http requests? #8

Open
MickiCH opened this issue Oct 20, 2020 · 1 comment
Open

Question: Sending out multiple http requests? #8

MickiCH opened this issue Oct 20, 2020 · 1 comment

Comments

@MickiCH
Copy link

MickiCH commented Oct 20, 2020

Typically I would have multiple lights to turn on or off for a scene.
Is there a way to send or concatenate multiple HTTP request from one click. Or is there another package that will accept a HTTP request and send out a few at the same time?

Thank you

@brokeh
Copy link
Owner

brokeh commented Oct 20, 2020

My expectation was that whatever you send the HTTP request to would deal with the multiple lights from a single request. That could be HomeAssistant, IFTTT, or any number of other things that accept HTTP requests. In my case it is a custom written Python http.server. I haven't actually checked compatibility with IFTTT so that may not work.

I could quite easily add support for calling multiple URLs for a single light if that is your use case, though. A downside of the current way that works is that if the webserver is slow to respond or has a high ping time then it could be several seconds delayed by the time it gets to making the last request, but that could be improved upon too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants