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

Toggle Power Function #29

Open
navi1995 opened this issue Jul 26, 2020 · 0 comments
Open

Toggle Power Function #29

navi1995 opened this issue Jul 26, 2020 · 0 comments

Comments

@navi1995
Copy link

navi1995 commented Jul 26, 2020

Hi there! First off just wanna say what a great library you've created and functions incredibly well. This isn't actually an issue, more of a help/feature request.

I was just wondering if there's any way the LAN API can be implemented to toggle ALL lights (Similar to the HTTP method that LIFX has for the cloud, and similar to broadcastOn and broadcastOff functions).

Currently I'm doing this by running an interval to run Lifx.discover() and check if any lights are on, and when my action (clapping) occurs it can just check a variable. This however seems somewhat inefficient, specially with how long discover can take. Is there anyway of doing this?

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

1 participant