Skip to content

Change scene update logic to use new scene api#107

Open
torandi wants to merge 1 commit intosqmk:masterfrom
torandi:new_scene_api
Open

Change scene update logic to use new scene api#107
torandi wants to merge 1 commit intosqmk:masterfrom
torandi:new_scene_api

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