This driver implements a UPS monitor and shutdown controller for use with Network UPS Tools (NUT).
The driver works in conjunction with a remote NUT upsd server, and provides the equivalent of NUT's upsmon for the Hubitat. In other words, it monitors the ups and shuts the hub down when the ups battery is low.
The driver is available via HPM, or for direct import from GitHub here.
Configuration is as shown below.
-
NUT server host: The hostname or IP address of the NUT server (upsd). It should look something like this: myhost.mydomain.net or 192.168.1.10
-
NUT server port: The port number for the NUT server (upsd), as defined in upsd.conf. This will usually be 3493.
-
UPS name: The name of the UPS to monitor, as defined in in ups.conf.
-
NUT username: The username for the connection, as defined in upsd.users
-
NUT password: The password for the connection, as defined in upsd.users
-
Polling frequency: How often to poll for UPS status. This is the equivalent of POLLFREQ found in upsmon.conf. The default is 5 seconds.
-
Enable Hub shutdown: If you want to allow NUT upsmon to shut down the hub, you must enable this. If you do not enable the option, the hub will not actually shut down when the ups battery runs out.