basnijholt / adaptive-lighting

Adaptive Lighting custom component for Home Assistant
https://basnijholt.github.io/adaptive-lighting/
Apache License 2.0
1.97k stars 141 forks source link

Option to leave manual_control on when lights turn off #1051

Open emichael opened 2 months ago

emichael commented 2 months ago

When you turn a light on, change it so that it becomes manually controlled, turn it off, and then turn it on again, it would be nice if (there was an option so that) AL remembered that the light was manually controlled and left it alone. This is the way my old, very hacky pyscript-based solution worked.

Then, users could reset the manual_control list via an automation (e.g. every day at 3 a.m.).

basnijholt commented 2 months ago

This is the exact way to reset the manual control. How would AL otherwise decide it is no longer manually controlled? Indefinitely?

emichael commented 2 months ago

If the option I am suggesting was enabled, yes, AL would leave a light in manual control indefinitely.

ademuri commented 1 day ago

I also would like this feature. I use motion sensors to trigger my lights, so if I'm out of a room for more than a couple of minutes, the lights will turn off. So, I don't want them to reset just because they've been turned off. I can use the autoreset_control_seconds option or a nightly automation to disable manual control.

djurny commented 23 hours ago

Hi there, You could make an automation that triggers on manual_control events. Upon reception of the manual_control event, you could simply disable either switch.adaptive_lighting_<name> to not have AL control/reset the light when it turns on again. Alternatively, you can disable the switches for adapt_brightness and adapt_color. Not a solution, but meets your needs I think. Groetjes,