Detect power outage and notify

I know its late. I am just leaving it here, as I visited this thread a few days back, with little luck for implementing a power outage sensor.

It is better with a high end Inverter. Agreed. For those who do not have one, it is still possible to monitor and recognise a power outage. Using Fully Kiosk browser it is possible to monitor the “plugged” attribute from the REST api calls, and strip these values to a template sensor. You can see more detail here:

This list of attributes were then updated to include additional variables.
There is a post here: Fully Kiosk Rest API Integration in Home Assistant.

It is very simple to implement, especially since tablets have battery power, and it would detect when a power outage happens by updating the sensor data with a “false”. You can trigger an automation with this value on state change, or send a shutdown command to shutdown your remote pc.