Suggestions for a rule to shutdown the Hub on a UPS during power outage?

I currently have my Hub on a UPS (backup battery supply), I need to figure out a rule that shuts down the hub when a power outage happens. Any ideas?

Assuming you have a way to trigger it, you can use @ogiewon 's code to Post to /hub/shutdown to port 8080

Note that this doesn't work if you have authentication enabled on your hub based on this:

1 Like

I use Tasker (Android phone) to periodically reboot the hub. You could probably adapt this for an always-on Android phone to use Tasker to detect power loss and send the command to the hub. Just a thought.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.