Automation to open and close cover at 2 times using GUI

I’d like to use the GUI to configure an automation that opens a gate at 0700 and closes it at 2200 in the simplest way possible.

Only I can’t get it to work.

I’ve tried to set a trigger at 0700 which then runs a sequence

the gate opens but doesn’t close using the above. If i watch the automation then the wait-for trigger is hit but it doesn’t go on to close the gate. If i untick the timeout box, it proceeds to close the gate without waiting for the time trigger…

I could use a whole bunch of if then statements… but i’d rather keep the specified time to once only to avoid bugs later when i want to change the time

You should definitely use 2 triggers, one at 7:00 and one at 22:00 and give them a identifier like “morning” for one and “evening” for the other.

Then, you can start your actions by only one simple if/then/else bloc

if triggered by morning
   do the morning actions, like open the gate
else (add else)
   do the evening actions, like close the gate

You should never wait for an event that long in an automation. It is meant to fire and stop. You can wait for a presence to be detected, or no longer detected, that is a good reason, but waiting for a whole day, no, because in case of restart, the automation will NOT continue where it was.

1 Like