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
1.99k stars 349 forks source link

Amazon Basic ABST600 supported by usbhid-ups #1837

Open BigGeorgeTx opened 1 year ago

BigGeorgeTx commented 1 year ago

I was able to get this to work with the usbhid-ups driver, as suggested by someone in the Amazon questions section for the device

"Q: Will this ups work with the linux nut (network ups tools) software in place of the windows/mac software provided? A: Yes. At least on my 600VA unit...

Here's my /etc/ups/ups.conf:

[ABST600] driver = usbhid-ups port = auto desc = "The Amazon UPS"

And my /etc/ups/upsd.users:

[admin] password = mypass actions = SET instcmds = ALL

[testuser] password = pass instcmds = test.battery.start instcmds = test.battery.stop

I plugged in the USB cable, started the driver and daemon:

sudo upsdrvctl start sudo upsd

Then checked the beeper status: sudo upsc ABST600 ups.beeper.status

Then disabled it... sudo upscmd ABST600 beeper.disable see less"

The model number on the device and the FCC number is the same as a Cyberpower device that suggests a different drive, but that didn't work and this driver does.

jimklimov commented 1 year ago

Thanks! Is there a device-data dump available? (The NUT keys:values to see what info it serves and what not?)

BigGeorgeTx commented 1 year ago

Is this what you are looking for?

openhabian@openhab:~ $ upsc openhabPi Init SSL without certificate database battery.charge: 100 battery.charge.low: 10 battery.charge.warning: 20 battery.mfr.date: CPS battery.runtime: 4125 battery.runtime.low: 300 battery.type: PbAcid battery.voltage: 14.3 battery.voltage.nominal: 12 device.mfr: CPS device.model: ABST600 device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 15 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: 140 input.transfer.low: 96 input.voltage: 122.0 input.voltage.nominal: 120 output.voltage: 122.0 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.delay.start: 30 ups.load: 9 ups.mfr: CPS ups.model: ABST600 ups.productid: 0501 ups.realpower.nominal: 360 ups.status: OL ups.test.result: No test initiated ups.timer.shutdown: -60 ups.timer.start: 0 ups.vendorid: 0764

Happy to provide more information if you tell me how to get it?

jimklimov commented 1 year ago

Yes, thanks!