Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NUT UPS stats not diplayed #107

Closed
mikegleasonjr opened this issue Mar 15, 2022 · 4 comments · Fixed by #108
Closed

NUT UPS stats not diplayed #107

mikegleasonjr opened this issue Mar 15, 2022 · 4 comments · Fixed by #108
Labels
bug Something isn't working

Comments

@mikegleasonjr
Copy link

I successfully configure a NUT UPS, it seems to connect but no Infos are reported. When I click 'debug informations' I see the payload returned. But it looks like the text encoding maybe isn't right, maybe that's the problem. The host is TrueNAS Scale with the UPS plugin. Other clients can fetch data property from the server:

BEGIN LIST VAR eatonbattery.charge "11"battery.charge.low "35"battery.runtime "215"battery.type "PbAc"device.mfr "EATON"device.model "Ellipse ECO 650"device.serial "000000000"device.type "ups"driver.name "usbhid-ups"driver.parameter.pollfreq "30"driver.parameter.pollinterval "2"driver.parameter.port "/dev/uhid"driver.parameter.synchronous "no"driver.version "2.7.4"driver.version.data "MGE HID 1.40"driver.version.internal "0.41"input.transfer.high "264"input.transfer.low "184"outlet.1.desc "PowerShare Outlet 1"outlet.1.id "2"outlet.1.status "on"outlet.1.switchable "no"outlet.2.desc "PowerShare Outlet 2"outlet.2.id "3"outlet.2.status "on"outlet.2.switchable "no"outlet.desc "Main Outlet"outlet.id "1"outlet.power "25"outlet.switchable "no"output.frequency.nominal "50"output.voltage "230.0"output.voltage.nominal "230"ups.beeper.status "enabled"ups.delay.shutdown "20"ups.delay.start "30"ups.firmware "02"ups.load "8"ups.mfr "EATON"ups.model "Ellipse ECO 650"ups.power.nominal "650"ups.productid "ffff"ups.serial "000000000"ups.status "OL"ups.timer.shutdown "0"ups.timer.start "0"ups.vendorid "0463"END LIST VAR eaton
@norkator norkator added the bug Something isn't working label Mar 15, 2022
@norkator
Copy link
Owner

Screenshot 2022-03-19 at 12 43 14

This is related to my current NUT implementation being half baked.

Current StatusParser made by other user expects NUT lines being in format like ups.status: OL but here it comes like ups.status "OL". I tweaked this a bit how lines are saved before Parser because I don't want to modify Parser itself.

I will push update on this. Not perfect yet but lets see what happens.

@norkator norkator linked a pull request Mar 19, 2022 that will close this issue
@mikegleasonjr
Copy link
Author

Amazing thanks 👍

@norkator
Copy link
Owner

Amazing thanks 👍

Update should be available. Can you report later does it actually work with your NUT host.

@mikegleasonjr
Copy link
Author

mikegleasonjr commented Mar 19, 2022

Screenshot_20220319-145420_APCUPSD Monitor

Screenshot_20220319-145411_APCUPSD Monitor

Seems to work thanks 👍😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants