Skip to content

Scene sync seems not to work with interpolate:true #16

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

Closed
jryom opened this issue Oct 31, 2024 · 3 comments
Closed

Scene sync seems not to work with interpolate:true #16

jryom opened this issue Oct 31, 2024 · 3 comments

Comments

@jryom
Copy link

jryom commented Oct 31, 2024

I have enabled scene sync and it seems to not work if within an interpolation window defined with interpolate:true. Example:

Office  sunrise     bri:100%  ct:2700  tr-before:nautical_dawn
Office  22:00       bri:80%   ct:2500  tr-before:sunset
Office  01:00       bri:1%    ct:2200  interpolate:true

Between 22:00 and nautical_dawn, the resulting scene has all lights turned off completely.

@stefanvictora
Copy link
Owner

Could you share your full configuration? Do you have any schedules that turn off your lights? I'm asking because scene sync doesn't look at individual states in isolation; instead, it computes a "full picture" of your configuration. This is necessary since scenes always control all lights in a zone or room, meaning there's no way to control only a few lights via scenes and leave the others as is.

Hue Scheduler tries to be smart about this "full picture", but it gets tricky for overlapping zones. Currently, it handles these cases by prioritizing states based on the zone size: states for smaller zones are treated as more specific and therefore override the light states of larger zones. It's a bit hard to explain without an example, but I hope this provides some insight.

@stefanvictora
Copy link
Owner

I had a closer look and actually found a sync issue with interpolate:true and cross-over states. Those have always been the trickiest to get right. I've pushed a fix with version 0.12.1; please give it a try and let me know if it resolves the issue.

Thanks for bringing this to my attention!

@jryom
Copy link
Author

jryom commented Feb 6, 2025

It took me a while to update here, sorry, but I haven't seen this issue since your last update, so I will close the issue.

And also, thank you so much for making hue-scheduler, it works incredibly well!

@jryom jryom closed this as completed Feb 6, 2025
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