I have two UPS batteries, one driving my Allonis and Home Automation computers, and the other driving my main computer and network stuff. The main computer's UPS was getting old, so I just replaced it, and splurged on a more expensive one that allows power monitoring by a NUT server. The logic I have is that when the main computer detects that power is still out after a couple of minutes, it will send commands to Allonis and the HA computer to shut down (I don't need either one to be running if the power is out). I want to save the batteries on both UPS's in case of an extended blackout (the UPS's are then ready to recharge phones or run lights).
I am using a HTTP get command to turn off Allonis (
192.168.0.nn/api/docommand?command=poweroff
). Unfortunatly it only shuts down the processer, not the entire Rasberry PI. Which also means that pushing the "on" button does not restart the Rasberry. It seems that the Rasberry still needs to be actually power cycled to get it to completely shut off, and also to allow it to turn back on. My google searches indciate that is the way Rasberry's seem to work. So the question becomes is there a wasy to get the Rasberry PI to completely shut down?
The purpose of the shut down is to completely stop any power drain on the UPS. I could put a smart plug on the Allonis Rasberry, but that smart plug would probably have an drain somewhat equal to the level of an idle Allonis Rasberry.