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

Change scene update logic to use new scene api #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

torandi
Copy link

@torandi torandi commented Apr 13, 2019

API 1.29 introduced a way of updating all lights in a scene in one go.
This PR changes the scene update logic to use that.

I haven't deleted the old SaveSceneLightState in this PR, as it could be use as a fallback if you desire to support the old api as well.

My main reason for this fix is that updating all lights in a large scene results in 500 or connection reset from the hub, as it get's too many requests in a short time.

Use scene api 1.29, reduces load on hub when setting many lights.
@sqmk
Copy link
Owner

sqmk commented May 14, 2019

Right on. I'll check out the API changes and try to get Huejay in sync.

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

Successfully merging this pull request may close these issues.

2 participants