[Nut-upsuser] Smart-UPS 1500 info though usbhid and apcsmart

Matthieu CERDA matthieu.cerda at nbs-system.com
Tue Sep 21 14:09:27 BST 2021


I have a (trivial) question about interactions between NUT and an APC 
Smart-UPS 1500VA device.

I found that the usbhid driver (on OpnSense, for the record) seems not 
to give a lot of output compared to what the manpage of apcsmart advertises:
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 50
battery.runtime: 4773
battery.runtime.low: 150
battery.type: PbAc
battery.voltage: 40.9
battery.voltage.nominal: 36.0
device.mfr: American Power Conversion
device.model: Smart-UPS 1500
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: APC HID 0.96
driver.version.internal: 0.41
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.firmware: UPS 10.1 / ID=20
ups.mfr: American Power Conversion
ups.mfr.date: 2020/01/26
ups.model: Smart-UPS 1500
ups.productid: 0003
ups.status: OL
ups.timer.reboot: -1
ups.timer.shutdown: -1
ups.vendorid: 051d

It is missing at least input / output voltage values, as well as being 
able to at least trigger a battery test:

Instant commands supported on UPS [APC1500]:

beeper.disable - Disable the UPS beeper
beeper.enable - Enable the UPS beeper
beeper.mute - Temporarily mute the UPS beeper
beeper.off - Obsolete (use beeper.disable or beeper.mute)
beeper.on - Obsolete (use beeper.enable)
load.off - Turn off the load immediately
load.off.delay - Turn off the load with a delay (seconds)
shutdown.reboot - Shut down the load briefly while rebooting the UPS
shutdown.stop - Stop a shutdown in progress

Since, apparently, switching from USB to serial management on those 
requires restarting the UPS (and possibly a brain dead reset), I wanted 
to know if you think switching from USB to serial would yield a more 
complete feature set ?

Thank you!

Matthieu Cerda

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20210921/77b1d6b6/attachment.sig>

More information about the Nut-upsuser mailing list