I already had home assistant installed long time ago and already forgot everything
Unfortunately I haven’t saved my config so I need to do everything from scratch.
What do I want to achieve?
IF
single click on a Xiaomi switch
then
Light 1, light 2 and light 3 should switch on
after 2 minutes
Light 1, light 2 and light 3 should
switch off if between 05:00 and 18:00
or
switch to ‘moonlight’ mode if between 18:01 and 04:59
I assume it is pretty easy but can’t find out by my own.
Unfortunately this is not helping as this only describes the core functionality of button clicks.
I’m familiar how to use button click and actions but not how to include a timer and depending on the current time at least two different actions…
I think it is possible to implement as a 1 template-based automation:
single click on a Xiaomi switch - trigger of your automation (have no experience with Xiaomi)
just service light.turn_on with a list of lights
delay
here’s the messy tempting bit.
don’t know what’s ‘moonlight’ mode and it’s crucial here, can you elaborate?