Hello. I'm trying to create the rules required to report a power outage in my home. I have found several references to using a Ring Range Extender V2 for the device, but cannot find any rule examples on how best to implement power outage monitoring and reporting in the Rules Machine.
I've set up rules in Rules Machine as follows:
I have my Hubitat, my router, and my cable modem all on an APC Pro 1500 power backup so I have about 90 minutes to detect the outage and report it via notifications to email, and cell phone. My rules work fine to detect and report/notify me of the initial outage. I'm doing this when my power source for the Ringe Range extender changes from "mains" to "battery". My main question is how do I detect when power is restored and hubitat comes back up. I want to send notifications that my power has been restored (I go on Cruises and may not be at home). Will a rule with a conditional wait command still fire after a Hubitat reboot? I can't believe it would. So I'm looking for a way to determine and report a restart from a power outage?
Would a global variable set by the outage rule, and then checked at boot by another rule (clearing the variable) work? How do I detect a new boot of the Hubitat Hub?
Suggestions and examples will be appreciated. I'd bet this would be a nice application for the Hubitat Application library.