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

Get state ... question ? #52

Closed
timothycuenat-lam opened this issue Mar 10, 2022 · 3 comments
Closed

Get state ... question ? #52

timothycuenat-lam opened this issue Mar 10, 2022 · 3 comments

Comments

@timothycuenat-lam
Copy link

Hello,
Thanks for the API. It's easy and simple to use.
My question is how do you get the state of each light ? I don't see another way instead of creating a Thread in which a loop turns and get the state of each light.

If you could directly create a system with listerns it could be very great !
Thank you in advance

@ZeroOne3010
Copy link
Owner

Hi there! I understand you would like to listen to events from the system and react to them? Up until recently the Bridge has not made that possible, but nowadays there actually exists an interface for that. Unfortunately I have not had the time to update this library to support those so-called Server-Sent Events yet, as it comes with quite big changes to the Hue API. But there's already the issue #48 open for it.

@timothycuenat-lam
Copy link
Author

Ok, thanks ! 😄

@ZeroOne3010
Copy link
Owner

I'll go ahead and close this issue, as the matter is already tracked in that other issue I mentioned. 😊

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