Hi,
I have some lights that come on at the last brightness they were set at and a RF switch that can send an event to Home Assistant.
What I want to do is when the OFF button is pressed is the following (in pseudo code)
if( now() is after 7pm){
ceiling light set brightness 30%
}
ceiling light turn OFF
side light turn OFF
wall light turn OFF
So this will mean that if it is early in the day we just turn all the lights off but if it is after 7pm then we will dim the ceiling light first then turn all the lights off. This means when we go in during the night the light and turn on the ceiling light it is nice and low and doesn’t wake her up.
How would I do this in an automation or a script? I could code it fairly easy in appdaemon but I’d rather have a scene or script that can be edited in the UI so others can update it.