NUT configuration files, scripts, and Hubitat app and driver files that can be used for monitoring a NUT server without polling
- Install
nut
usingapt-get install nut
on the server - Copy
nut.conf
to/etc/nut/nut.conf
- Figure out the correct settings for your device and replace them in
ups.conf
- Copy
ups.conf
to/etc/nut/ups.conf
- Copy
upsd.conf
to/etc/nut/upsd.conf
- Replace
<password>
inupsd.users
with a real password - Copy
upsd.users
to/etc/nut/upsd.users
- Replace
<password>
inupsmon.conf
with the same password fromupsd.users
- Copy
upsmon.conf
to/etc/nut/upsmon.conf
- Reboot the server
- Create a new driver on Hubitat using the code from
nut-monitor-driver.groovy
- Create a new app on Hubitat using the code from
nut-monitor-app.groovy
- Install a User App for
NUT Monitor
on Hubitat - Configure the
NUT Monitor
app on Hubitat using the IP address of the server,3493
for the port number, andBackupBattery
for the UPS name - Go to the status page of the
NUT Monitor
app on Hubitat and copy the URL forstatusUrl
- Replace the URL in
hubitat-nut-status.sh
with the URL fromstatusUrl
- Copy
hubitat-nut-status.sh
to/usr/local/bin/hubitat-nut-status.sh
- Make
hubitat-nut-status.sh
executable using the commandsudo chmod 777 /usr/local/bin/hubitat-nut-status.sh
- Copy
upssched.conf
to/etc/nut/upssched.conf
- Copy
hubitat-nut-monitor.service
toetc/systemd/system/hubitat-nut-monitor.service
- Enable
hubitat-nut-monitor.service
using the commandsudo systemctl enable hubitat-nut-monitor.service
- Reboot the server
Everything should be set up and running now!