I’m doing a simple automation, the trigger is turn light on on sunset and the action is delay for 12 hours for turn light off. I noticed that if the delay is more than 9 to 10 hours, the delay will not execute. Any ideas??
Hi,
Sorry, my first time posting a question. What do you mean “format your pasted config correctly”? I started with separate automation to turn off light but it is logical to combine the on and off into one automation. I have the combined automation that works for on and off but less than an hour delay only.
Thanks
If Home Assistant is restarted during the execution of a delay, on startup the delay is not resumed (i.e. the remainder of the delay is not completed and whatever action that may appear after the delay is not executed).
Are you certain it was never restarted during the 9+ hour delay?
I just created an automation containing a 10-hour delay. I triggered it and its currently counting down its delay. After 10 hours it will create a persistent notification. I’ll report my results tomorrow (the server is connected to a UPS so there’s little chance of interruption).
Not only restarting HA, also reloading automations will cancel all ongoing automations. And besides a manual reload of the automations, a reload is also performed when you edit/create/delete an automation from the UI.