nut icon indicating copy to clipboard operation
nut copied to clipboard

EATON HID: add missing usages and paths

Open masterwishx opened this issue 1 year ago • 79 comments

Adding HE/ECO mode, Bypass On/Off for Eaton USB UPS Online Models + Adding Missing usages and paths

Continue work for #2636 Fixes #2485 Ref #2495

Added:

Variables: 

battery.charger.status: discharging
device.usb.version: 01.29
input.eco.switchable: normal
outlet.1.designator: AC OUTPUT
outlet.1.protect.status: protected
input.transfer.forced: enabled
input.eco.switchable: ECO
input.bypass.switch.on: off
etc ...

R/W variables:

input.eco.switchable
input.bypass.switch.on
etc ..

Commands: 

ecomode.disable - Take the UPS out of High Efficiency (aka ECO) mode
ecomode.enable - Put UPS in High Efficiency (aka ECO) mode
essmode.disable - Take the UPS out of Energy Saver System (aka ESS) mode
essmode.enable - Put UPS in Energy Saver System (aka ESS) mode
bypass.start - Put the UPS in bypass mode
bypass.stop - Take the UPS out of bypass mode

masterwishx avatar Sep 23 '24 18:09 masterwishx

Ref: https://github.com/networkupstools/nut/issues/2495

2nding @jimklimov comment to base of master, and include my base PR in yours

arnaudquette-eaton avatar Sep 24 '24 07:09 arnaudquette-eaton

Found that "Editing" a PR now allows to change the target branch, so this instance is now the main one of the flock.

jimklimov avatar Sep 24 '24 11:09 jimklimov

@arnaudquette-eaton @jimklimov I made some changes from comments, please check when you have time

masterwishx avatar Sep 24 '24 12:09 masterwishx

:x: Build nut 2.8.2.2179-master failed (commit https://github.com/networkupstools/nut/commit/ab4713efa7 by @masterwishx)

AppVeyorBot avatar Sep 24 '24 13:09 AppVeyorBot

:white_check_mark: Build nut 2.8.2.2186-master completed (commit https://github.com/networkupstools/nut/commit/48282928b0 by @masterwishx)

AppVeyorBot avatar Sep 24 '24 17:09 AppVeyorBot

:x: Build nut 2.8.2.2191-master failed (commit https://github.com/networkupstools/nut/commit/248bc5ec01 by @masterwishx)

AppVeyorBot avatar Sep 25 '24 09:09 AppVeyorBot

:white_check_mark: Build nut 2.8.2.2192-master completed (commit https://github.com/networkupstools/nut/commit/814df59f3d by @masterwishx)

AppVeyorBot avatar Sep 25 '24 10:09 AppVeyorBot

Compiled and seems all fine ,aslo some values added like:

battery.charger.status: discharging
device.usb.version: 01.29
input.eco.switchable: normal
outlet.1.designator: AC OUTPUT
outlet.1.protect.status: protected

[input.eco.switchable]
Input High Efficiency (aka ECO) mode switch
Type: STRING
Maximum length: 8
Value: normal

masterwishx avatar Sep 26 '24 11:09 masterwishx

@arnaudquette-eaton but seems no effect when : upsrw -s input.eco.switchable=1 -u user -p pass Eaton9E2000i

masterwishx avatar Sep 26 '24 11:09 masterwishx

@arnaudquette-eaton but seems no effect when : upsrw -s input.eco.switchable=1 -u user -p pass Eaton9E2000i

it seems other commands also not working in Unraid Terminal by upsrw however i got OK or Success after but values not changed. Found that override.input.transfer.low = 218 in upsd.conf and restart is working

masterwishx avatar Sep 26 '24 12:09 masterwishx

changed by override.input.eco.switchable = high-efficiency and restart :

image

but on UPS LCD still mode = 03 Online

masterwishx avatar Sep 26 '24 13:09 masterwishx

upsrw however i got OK or Success after but values not changed

Here upsrw only confirms that it has sent a command (no protocol/connection error along the way). You can add -w to wait for the result of most (all?) operations.

There was some issue logged earlier to have some sort of verification mode - to wait AND re-read to check that the setting has changed (maybe even to what was asked).

jimklimov avatar Sep 26 '24 17:09 jimklimov

upsrw however i got OK or Success after but values not changed

Here upsrw only confirms that it has sent a command (no protocol/connection error along the way). You can add -w to wait for the result of most (all?) operations.

There was some issue logged earlier to have some sort of verification mode - to wait AND re-read to check that the setting has changed (maybe even to what was asked).

I tryed both commands and got 'OK' also with -w and got 'Success' but no value is changed , only when added override.input.transfer.low = 150 in ups.conf and restart was working .

upsrw -s input.transfer.low = 150 -u user -p pass Eaton9E2000i

upsrw -s input.eco.switchable=high-efficiency -u user -p pass Eaton9E2000i

But UPS was not changed to ECO Mode, still in Line mode by UPS LCD , and was no sound that switch to somewhere

masterwishx avatar Sep 26 '24 17:09 masterwishx

Opened issue for upsrw #2643 for not to spam here

masterwishx avatar Sep 27 '24 07:09 masterwishx

There was some issue logged earlier to have some sort of verification mode - to wait AND re-read to check that the setting has changed (maybe even to what was asked).

Sorry cant find it ...

masterwishx avatar Sep 27 '24 07:09 masterwishx

@arnaudquette-eaton do you think we need some think more here to set ECO mode, maybe set status also and etc...?

masterwishx avatar Sep 30 '24 06:09 masterwishx

From docs of Eaton 9SX :

image

as we already added transfer bypass/eco in #2620 , maybe we need somehow add bypass /eco tolerance monitoring befor transfer to ECO Mode?

masterwishx avatar Sep 30 '24 14:09 masterwishx

:x: Build nut 2.8.2.2202-master failed (commit https://github.com/networkupstools/nut/commit/009bcc2ba2 by @masterwishx)

AppVeyorBot avatar Sep 30 '24 17:09 AppVeyorBot

:white_check_mark: Build nut 2.8.2.2203-master completed (commit https://github.com/networkupstools/nut/commit/c31d27a5b4 by @masterwishx)

AppVeyorBot avatar Sep 30 '24 18:09 AppVeyorBot

@arnaudquette-eaton can you please confirm that next line needed: { "BOOL", 0, 0, "UPS.PowerConverter.Input.[5].PresentStatus.Used", NULL, NULL, 0, eco_mode_info }, /* ECO/HE Mode */ UPS.PowerConverter.Input.[5].PresentStatus.Used is the status of ECO ?

masterwishx avatar Oct 01 '24 12:10 masterwishx

@jimklimov @arnaudquette-eaton can you please confirm I'm right direction and/or missing something?

masterwishx avatar Oct 02 '24 07:10 masterwishx

Can't really help about subject matter (ECO and USB), deferring to Arnaud...

jimklimov avatar Oct 02 '24 09:10 jimklimov

Merged in the LIBUSB_DEBUG setting support, now in master...

jimklimov avatar Oct 02 '24 19:10 jimklimov

:x: Build nut 2.8.2.2213-master failed (commit https://github.com/networkupstools/nut/commit/a1286c22cc by @jimklimov)

AppVeyorBot avatar Oct 02 '24 21:10 AppVeyorBot

@desertwitch Hi, if not mistaken you have Eaton 9P Model , will be cool if you can post here debug log from When UPS in ECO Mode to see what paths its uses . Will be helpful i hope. If you can or/and have time for it .

Unfortunately i cant enable ECO mode on my 9E by buttons on LCD but it support it by docs and vars ...

masterwishx avatar Oct 03 '24 06:10 masterwishx

@arnaudquette-eaton

"UPS.PowerConverter.Input.[2].PresentStatus.Switchable" is it for use with Bypass to enable disable?

masterwishx avatar Oct 03 '24 10:10 masterwishx

@arnaudquette-eaton

"UPS.PowerConverter.Input.[2].PresentStatus.Switchable" is it for use with Bypass to enable disable?

can't find this one

arnaudquette-eaton avatar Oct 03 '24 11:10 arnaudquette-eaton

@arnaudquette-eaton "UPS.PowerConverter.Input.[2].PresentStatus.Switchable" is it for use with Bypass to enable disable?

can't find this one

{ "BOOL", 0, 0, "UPS.PowerConverter.Input.[2].PresentStatus.Used", NULL, NULL, 0, bypass_auto_info }, /* Automatic bypass */

also other UPS.PowerConverter.Input.[2] related to bypass in code 

masterwishx avatar Oct 03 '24 12:10 masterwishx

:white_check_mark: Build nut 2.8.2.2214-master completed (commit https://github.com/networkupstools/nut/commit/a7a858a07c by @masterwishx)

AppVeyorBot avatar Oct 03 '24 14:10 AppVeyorBot

@desertwitch Hi, if not mistaken you have Eaton 9P Model , will be cool if you can post here debug log from When UPS in ECO Mode to see what paths its uses .

Will be helpful i hope. If you can or/and have time for it .

Unfortunately i cant enable ECO mode on my 9E by buttons on LCD but it support it by docs and vars ...

I have the 5P and I think it does not support ECO. But will check when I am back from travels, greetings from Poland.

desertwitch avatar Oct 04 '24 08:10 desertwitch