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

Cloud Push / Call Hilo API less often / Debounce color-wheel/brightness changes #246

Merged
merged 2 commits into from
Apr 6, 2023

Conversation

AndyMang
Copy link

Rely less on entities.update() and more on SignalR data.
Even tho it's not used yet, manage device pairing and unpairing detection via SignalR.
In the future, we could use HA platform services to actually Add / Remove entities after detection instead of having to reload the integration.
Polling still happenning on Gateway, but lowered the frequency since it's not as crucial to have fresh Gateway Info
Debounce Color wheel changes, previously it was doing 3 api call for every new values, so if you drag across the wheel, it would send dozens of calls.

Depends on : dvd-dev/python-hilo#88

Andy Mang added 2 commits March 29, 2023 08:33
Except for the gateway, it will come later once Hilo adds gateway infos to SignalR.
Lowering polling frequency since we don't need to poll as much as we are getting data from pushes.
@valleedelisle valleedelisle merged commit fb5ef45 into dvd-dev:main Apr 6, 2023
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