adaptive-lighting
adaptive-lighting copied to clipboard
Add a delay between each light activation
Hi everyone,
I am experiencing some problems with my setup which consists of two Hue Bridges and several Innr Gu10 lights. Basically whenever I turn on the lights of one room (which can contain up to 14 inner lights), the lights don't reach the right temperature/brightness because Hue Bridges can fire only a limited number of requests per second (I read somewhere about 7 requests per second). This results that only a limited number of lights reach the right temperature/brightness and so I am forced to fire the set_manually event until all of them are ok. Unfortunately I cannot use default hue light groups, because whenever I use them, adaptive lighting causes the innr to flash exactly every 'interval' seconds.
I am asking if there is the possibility to delay the activation of the lights of a configurable amount of seconds: e.g. turn on light_1, wait 1 sec, turn on light_2, wait another 1 sec, and so on... Unfortunately I couldn't find a way to do so.
Thanks for your help.
I have the same request, but using a Conbee II. Even with that, I run into send request issues constantly. My limit seems to be 4 groups (of 3 lights each). Typically the 3rd and or 4th set of lights (sometimes individual bulbs in each group) will not change temperature when these groups are triggered at the same or similar time. I have nearly 100 hue fixtures in my home.
A configurable temperature/brightness request delay when turning on multiple groups (within a 3-5 second period of time) would be a fantastic addition.
I'd also like to request a delay in the periodic temperature/brightness requests, as this can bog down my network entirely. It would be great to introduce custom delays for each group's periodic transition.
This is finished in 1.4.1 and probably older versions with adapt_delay
and interval
settings set appropriately.
This is finished in 1.4.1 and probably older versions with
adapt_delay
andinterval
settings set appropriately.
Thank you, adapt delay should solve this issue if set per light. Would be more useful if we could set the delay in milliseconds also.
@TheAlphaLaw How so? What's the need for millisecond accuracy? adapt_delay
is already inaccurate as a light is only adapted on each interval.
@TheAlphaLaw How so? What's the need for millisecond accuracy?
adapt_delay
is already inaccurate as a light is only adapted on each interval.
Lights are not adapted based on interval when initially turning on the lights. I have my lights set to adapt in 2 seconds when turned on and every interval, longer periods create issues with responsiveness.
The Zigbee flood created on my Zigbee Network when turning on 10+ lights and then adapting brightness and temperature is solved even with as little as a 250ms delay. Millisecond accuracy isn't necessarily needed but it would make the difference in light adaption less noticeable between multiple lights in the same area. So they would all still appear to adapt at the same time but the delay would solve the flooding issue.
We could easily add millisecond delays, for backwards compatibility reasons we'd have to change adapt_delay
to be a float though. Is that acceptable?
I've never thought about having different adapt delays per light - that's a really good idea! I have noticed that my zigbee network lags initially when I restart HASS.
We could easily add millisecond delays, for backwards compatibility reasons we'd have to change
adapt_delay
to be a float though. Is that acceptable?I've never thought about having different adapt delays per light - that's a really good idea! I have noticed that my zigbee network lags initially when I restart HASS.
I don't think changing it to a float would have any negative effects, but I will leave that to you. Happy with anything you are willing to implement 😁
Yeah, per light would be great. It technically could be done right now but the configuration would become cumbersome quickly (I have 30+ light groups and over 80 Zigbee lights).
Everyday my wife will turn on all the kitchen lights via tablet or voice and often I see 1 group not adapt (12 total lights). I'll test the 1 second delay for all the lights and see how that works. I may need to separate each group out, though.
If you utilize regex and copy/paste it shouldn't be too difficult to copy your config for all of your light groups. Are you using the yaml file to store your config? If not, for 30+ light groups I highly recommend you do so.
I quickly added this feature to the basic community PR at #459, feel free to test it and ensure it works the way you'd like.
If you utilize regex and copy/paste it shouldn't be too difficult to copy your config for all of your light groups. Are you using the yaml file to store your config? If not, for 30+ light groups I highly recommend you do so.
I've been using the GUI config but can take a look at YAML option. Would be easier to manage, honestly.
I quickly added this feature to the basic community PR at #459, feel free to test it and ensure it works the way you'd like.
Sure, I'll take a look this weekend. Thank you!
I quickly added this feature to the basic community PR at #459, feel free to test it and ensure it works the way you'd like.
Tested an it seems to work. Live pushed still needs GUI adjustments. GUI displays "seconds".