After finally getting H.A to work in a VMM on Synology I decided to automate some outdoor lights (18 of), which I did not think would be that hard!
All I am trying to achieve is that the all the lights come on, dim in stages & switch off at the following times:-
16:00 ON @100% brightness
00:00 ON but dim to 50%
02:00 ON but dim to 20%
08:00 OFF
to be done each day for ever more.
I have tried setting up automation using delays of hours between events. Sometimes they come off but not come and vice versa. They all work fine when manually triggered to do so.
All I really need to do is
Current time between 16:00 & 00:00 set lamp ON & brightness 100%
Current time between 00:00 & 02:00 set lamp ON & brightness 50%
Current time between 02:00 & 08:00 set lamp ON & brightness 20%
and monitor constantly.
Am I best achieving this via a script or another way?
It should be very easy to do with four separate automations each with a time trigger for the required time and and the action to set the lights to the required sate.
What they said, with the addition that having automations running on a wait or delay more than a few minutes is not recommended.
So while it is possible to wait long periods of time in a wait or delay, it is generally not recommended. This is because HA restarts and many other possible things can happen which interrupt this 'wait’ and then it hangs or disappears .
Agreed, I didn’t really want to use delays and generally don’t but when I created an automation the lights were not changing brightness etc and wondered if they were missing the time as there di not appear to be anything wrong with what I had done.