I have a Pi4 running Channels DVR Server that I would like to have automatically shut down when my UPS gets to a low battery state. It turns out that the Channels DVR Server runs on Home Assistant OS.
I also have a separate Pi4 running Home Assistant (both of these are plugged into the UPS). I know that there is a plugin for NUT that can be added to Home Assistant. Is there a way I can add that to HA and have it shut down both Pis?
If not, is there a step-by-step guide on how to install NUT onto Home Assistant OS that is not running HA?
I am grasping at straws here, but hopefully, someone can help me out. Every time my power fails while the Channels DVR Server is recording a program, my hard drive gets corrupted. That is why I got the UPS. But if the power goes out and stays out for 2 hours and I don’t know about it (and therefore don’t shut down the Pi manually) I run the risk of disk corruption. I would love to automate this.
Please help me Obi Won, you are my only help.