basnijholt / adaptive-lighting

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

Disable manual control reset on sleep mode change #1063

Open rhtenhove opened 6 days ago

rhtenhove commented 6 days ago

This simple change allows you to retain manual control when sleep mode is changed such as at a specific time, sunset, a certain state of a selection of lights (my case), etc.

Examples of where this makes sense is:

This keeps with the documented behavior, i.e. when the aforementioned lights are turned off and on again, they will go back to adaptive (and sleep colors if in sleep mode), without needing any extra switches, checks, automations, etc.

Making these cases possible with the previous behavior requires complicated workarounds per light. However, to get to the previous behavior (reset manual on sleep mode), all you'd need is to add an extra Action which removes manual control for the same switches in the same automation where you're setting sleep mode.