Most all storage media will not survive power cycle events across time. It is very important for a myServer 6 control system to be on a UPS for proper graceful shutdown when there is an AC line power outage. Read More. Plugging the system into a UPS is a great first step. But what if the power outage extends beyond the physical storage capacity of the backup battery? It is important to automate a myServer graceful shotdown on all systems. myServer can also be configured to shut down other devices (TVs, AV receivers, video matrix, etc.) This ability greatly reduces the potential for very expensive equipment failures.
This is implemented with a compatible UPS that is connected to myServer for monitoring.
Allonis offers compatible Uniteruptible Power Supply (UPS) that can power up all of the sensitive electonics.
With that, if the power is disconnected, the UPS will continue keeping the Raspberry Pi up and running until myServer's automation rules gracefully shuts it down.
By default, the UPS is configured to auto boot when power is applied (after a 3 second delay to help ensure power line stability).
Also by default, the UPS is configured to charge it's backup batteries when power line is available.
The myServer driver will track the UPS's backup battery state of charge. You will notice that the voltage will normally vary from 90% to 101% as it charges itself as the need exists.
You can configure the Automation Rule of when myServer will shut itself down gracefully. You can also optionally add rules that provide indication that the power is down (or back up again). This could be a Toast message that all clients see, or a blinking light, or an audio clip that gets played (depends on how you want to be notified, and by what means you like and by what hardware you have available that is accessible via myServer).
Automation event example
Get the variable name from the list of variables for your UPS device ID (device ID is exposed in the UPS myServer Pi Driver)
Automation Rule Conditions:
When:
{{sensor_19_battery_charge}} <= 5
Automation Rule Actions:
Shutdown
Use case:
Control systems like our myServer, can monitor the UPS (highly recommended in any installation). When the UPS battery goes low (power has been out for awhile), then myServer gracefully shuts down. But before it goes offline, it can be configured to send notifications that the UPS advises that the power is out. The network switch / modem etc. is also on a UPS (same one or different ones). And because myServer runs locally in the home with not critical need to see Internet, it can log the power outage, send local (to the home) messages to any connected client (like your phone) without Internet. It can also send an email / text message IF there is Internet. myServer monitors if Internet is available or not so it can be configured on what it's capable of doing.