Continuing the discussion from [Now with code for Nut discovery + UPS & outlet status] Support for UPS? :
I have UPS data working in HE using the NUT driver and am wondering if anything has changed since @bravenel posted:
Is there another method to shut down the hub with security enabled when the UPS is low?
I have an automated script to take backups with hub authentication enabled. It should be pretty easy to adapt it to shut the hub down.
I know many are using my Hub Rebooter app, but some people were asking about a different use case. They wanted the ability to reboot and shutdown the hub on demand. For example, I heard some people talking about hooking up the hub to a UPS and using the UPS to power down the hub safely during a power failure.
This is a different use and requires a totally different solution, instead of an app, you need a driver so you have commands that you can call from RM or whatever.
So introducing, Hubitat…
This driver allows for shutting down and restarting a hub and supports security enabled hubs. I use this driver alongside a RM rule to shutdown when my UPS gets low (although on a security disabled hub).
3 Likes
Have you ever thought about adding them to a GitHub repository as an offsite backup?
Its in a github gist. This is my preferred method of backing up 1-off things instead of combining them in a full repo. I have gists for all of my 1-off scripts and snippets as an offsite backup with version control.
I was meaning adding the Hubitat backups to a repository, not the scripts.
Interesting idea, but to me, git is for version control, not backup. If my nas crashes, my hubitat backups will be the least of my problems.
1 Like