Closed Wizek closed 5 years ago
The bridge button linkage lasts for 30 seconds upon pressing it. Huejay does not do the waiting for you; the command for creating a user assumes you pressed the bridge button already, and if not, will throw that error above.
This behavior is not a bug. You’ll need to create your own polling logic to accomplish this, which shouldn’t be hard to do at all.
Ah I see. I'll give that a try. Thanks for the clarification.
I'm trying out huejay and running into a strange error when running the following code:
https://gist.github.com/Wizek/443d9f382492edae9e50d1dd4c67ac44
It appears about a second after the Id+ip combo. Isn't it supposed to wait for 30 seconds? I've also tried without username and timeout specified. Is this a bug or am I supposed to use the lib differently for it to work?