What happens to trigger which was suppose to fire during power outage (or HASS not working)?
For example: trigger is at ‘10:30:00’ and there was power outage from 10:00 to 11:00. Machine with HAS been restored just after 11:00.
Is it just skipped, right?
And what about wait_template? Does HASS resume waiting?
So how do you deal with HASS reliability when you’re required to keep some switch on during period of time (ex. 4 hours)? Using trigger every 5 min with conditions?
So HASS does not persist waiting into DB? It would be great for reliability of long-lasting waits…
OK, just a basic example, works nice.
If I want to make sure that switch is turned off “outside” the period I need another one automation with proper time range, right? Or can I trigger checks every 5 min and set some rule like “if time is within range then switch on, else switch off”? Is it possible to make such single automation?
No it does not. Personally I think this is a mute point because you can purchase an APC to keep your electronics alive during brown outs. If you want to be cheap, you can build your own automation using appdaemon w/ python to handle something like this. Or you can make a feature request to have this functionality added, but then you’ll be waiting on other people requesting the functionality.