NUT Parameters - auto shutdown?

Hi,

From the below, is there a parameter saying the Pi will shutdown after an amount of time it is on UPS battery? (sort of safe shutdown)

root@raspberrypi:~# upsc modem_ups@localhost
Init SSL without certificate database
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 20
battery.mfr.date: CPS
battery.runtime: 3600
battery.runtime.low: 300
battery.type: PbAcid
battery.voltage: 12.3
battery.voltage.nominal: 12
device.mfr: CPS
device.model: Value600ELCDGP
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.synchronous: no
driver.version: 2.7.4
driver.version.data: CyberPower HID 0.4
driver.version.internal: 0.41
input.transfer.high: 0
input.transfer.low: 0
input.voltage: 0.0
input.voltage.nominal: 230
output.voltage: 230.0
ups.beeper.status: disabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 0
ups.mfr: CPS
ups.model: Value600ELCDGP
ups.productid: 0501
ups.realpower.nominal: 360
ups.status: OB DISCHRG
ups.test.result: No test initiated
ups.timer.shutdown: -60
ups.timer.start: -60
ups.vendorid: 0764

1 Like

Hello, did you ever find out how to do this? I have NUT installed on my Pi running Hassio Os that is getting statistics from the UPS that is attached to my Synology NAS. I’m trying to figure out how to get the home Assistsnt on the pi to safely shutdown when it detects we’re on battery.

An automation on the UPS status could detect a change on UPS (working on battery) and stop HA if running for x min.

not directly … but what I did I ping two devices on my network, and when both are down i assume that the power is down.