I have a Sailor Hat for Raspberry Pi installed on my HomeAssistant Raspberry. It’s a board with super-capacitors that provides enough energy for the Raspberry to gracefully shutdown, when the power fails.
I was wondering how to best integrate this with HA. There is a script that needs to be installed and that will eventually shutdown the Raspberry, when a power outage is detected. Software | Sailor Hat for Raspberry Pi
What would be the best way to integrate that with Home Assistant?
I think I could create an AddOn for the provided deamon and give it a poweroff-script that contains bashio::host.shutdown()
I saw that the software installation instructions for the HAT also mentions a docker installation, although I don’t know how that docker installation, as is, is supposed to turn the machine off.
But extending it and using the bashio-script to shutdown the host-system, seems like a viable solution.
Tried approaching the vendor or checking on any support forums? If they have a docker image already, they may be interested in releasing an add-on for HomeAssistant as that will probably widely appeal to their target market.