networkupstools / nut

The Network UPS Tools repository. UPS management protocol Informational RFC 9271 published by IETF at https://www.rfc-editor.org/info/rfc9271 Please star NUT on GitHub, this helps with sponsorships!
https://networkupstools.org/
Other
2.12k stars 355 forks source link

v2.8.1 Works with PowerWalker VI 600 STL LCD on OpenBSD #2440

Open M3Henry opened 6 months ago

M3Henry commented 6 months ago

Thank you all to the project maintainers.

/etc/nut/ups.conf

[nutdev1]
        driver = usbhid-ups
        port = auto
        vendorid = 0764
        productid = 0601
        user = "root"
        group = _ups
        desc = "The PowerWalker"
        pollonly
        override.battery.voltage.nominal = 12
        offdelay = 120
        ondelay = 180

/etc/nut/upsd.conf is empty

/etc/rc.shutdown

#!/bin/sh

[ -e /etc/killpower ] && upsdrvctl shutdown

Output of upsc nutdev1

battery.charge: 43
battery.charge.low: 10
battery.charge.warning: 20
battery.mfr.date: 1 
battery.runtime: 1500
battery.runtime.low: 300
battery.type: PbAcid
battery.voltage: 12.8
battery.voltage.nominal: 12
device.mfr: 1 
device.model: 600 
device.serial: 000000000000
device.type: ups
driver.debug: 0
driver.flag.allow_killpower: 1
driver.flag.pollonly: enabled
driver.name: usbhid-ups
driver.parameter.offdelay: 120
driver.parameter.ondelay: 180
driver.parameter.override.battery.voltage.nominal: 12
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.productid: 0601
driver.parameter.synchronous: auto
driver.parameter.vendorid: 0764
driver.state: quiet
driver.version: 2.8.1
driver.version.data: CyberPower HID 0.8
driver.version.internal: 0.52
driver.version.usb: libusb-1.0.27 (API: 0x100010a)
input.frequency: 49.9
input.transfer.high: 290
input.transfer.low: 162
input.voltage: 249.0
input.voltage.nominal: 0
output.frequency: 0.0
output.voltage: 0.0
ups.beeper.status: disabled
ups.delay.shutdown: 120
ups.delay.start: 180
ups.load: 0
ups.mfr: 1 
ups.model: 600 
ups.productid: 0601
ups.realpower.nominal: 360
ups.serial: 000000000000
ups.status: OL CHRG
ups.timer.shutdown: -60
ups.timer.start: -60
ups.vendorid: 0764

Output of upsrw -l nutdev1 | grep ^[[V] | paste - - | column -t

[battery.charge.low]           Value:  10
[battery.runtime.low]          Value:  300
[driver.debug]                 Value:  0
[driver.flag.allow_killpower]  Value:  1
[input.transfer.high]          Value:  290
[input.transfer.low]           Value:  162
[ups.delay.shutdown]           Value:  120
[ups.delay.start]              Value:  180

Output of uname -a

OpenBSD proliant.henryandlizzy.uk 7.5 GENERIC.MP#82 amd64

jimklimov commented 6 months ago

Thanks for the report and detailed notes! I see also the serial reported by the device is nearly useless :\