#What happens to automations in case of a system issue?

1 messages · Page 1 of 1 (latest)

leaden path
#

I noticed that sometimes, my automations don't fully execute (i.e...sometimes even though the automation ran smoothly for multiple days, one day, it only executes part way). I thought it was my less than perfect coding, but other times, I think it's because my hardware running the Home Assistant is not working fully. I've already programmed it to do a weekly restart, with a full hardware restart happening instead on the first week of the month, but I don't see any improvement on reliability.

What happens to automations if, mid run, there was a system outage? i.e...home assistant lost connection, and came back online, or any other interrupt situations?
Is there any way to handle these interrupts?

Any help would be great. Thanks!

dire flint
#

Hi @leaden path,
It stops...
This is why it is not recommended to run automations that take hours. It is best to have a trigger for the start, then another trigger for the end, and if the system goes down between there is a chance that the thing will still work correctly.

#

Anything lesss that an hour is pretty safe.