Detecting and Reporting a Power Failure

I personally use a ring z-Wave range extender for the reporting. As for the software, I use [BETA]Power Outage Manager from @thebearmay, very nice app with some useful automations when power goes off and when it comes back on.