nut
nut copied to clipboard
EATON HID: add missing usages and paths
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
Ref: https://github.com/networkupstools/nut/issues/2495
2nding @jimklimov comment to base of master, and include my base PR in yours
Found that "Editing" a PR now allows to change the target branch, so this instance is now the main one of the flock.
@arnaudquette-eaton @jimklimov I made some changes from comments, please check when you have time
:x: Build nut 2.8.2.2179-master failed (commit https://github.com/networkupstools/nut/commit/ab4713efa7 by @masterwishx)
:white_check_mark: Build nut 2.8.2.2186-master completed (commit https://github.com/networkupstools/nut/commit/48282928b0 by @masterwishx)
:x: Build nut 2.8.2.2191-master failed (commit https://github.com/networkupstools/nut/commit/248bc5ec01 by @masterwishx)
:white_check_mark: Build nut 2.8.2.2192-master completed (commit https://github.com/networkupstools/nut/commit/814df59f3d by @masterwishx)
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
@arnaudquette-eaton
but seems no effect when : upsrw -s input.eco.switchable=1 -u user -p pass Eaton9E2000i
@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
changed by override.input.eco.switchable = high-efficiency and restart :
but on UPS LCD still mode = 03 Online
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).
upsrw however i got OK or Success after but values not changed
Here
upsrwonly confirms that it has sent a command (no protocol/connection error along the way). You can add-wto 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
Opened issue for upsrw #2643 for not to spam here
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 ...
@arnaudquette-eaton do you think we need some think more here to set ECO mode, maybe set status also and etc...?
From docs of Eaton 9SX :
as we already added transfer bypass/eco in #2620 , maybe we need somehow add bypass /eco tolerance monitoring befor transfer to ECO Mode?
:x: Build nut 2.8.2.2202-master failed (commit https://github.com/networkupstools/nut/commit/009bcc2ba2 by @masterwishx)
:white_check_mark: Build nut 2.8.2.2203-master completed (commit https://github.com/networkupstools/nut/commit/c31d27a5b4 by @masterwishx)
@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 ?
@jimklimov @arnaudquette-eaton can you please confirm I'm right direction and/or missing something?
Can't really help about subject matter (ECO and USB), deferring to Arnaud...
Merged in the LIBUSB_DEBUG setting support, now in master...
:x: Build nut 2.8.2.2213-master failed (commit https://github.com/networkupstools/nut/commit/a1286c22cc by @jimklimov)
@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 ...
@arnaudquette-eaton
"UPS.PowerConverter.Input.[2].PresentStatus.Switchable" is it for use with Bypass to enable disable?
@arnaudquette-eaton
"UPS.PowerConverter.Input.[2].PresentStatus.Switchable"is it for use with Bypass to enable disable?
can't find this one
@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
:white_check_mark: Build nut 2.8.2.2214-master completed (commit https://github.com/networkupstools/nut/commit/a7a858a07c by @masterwishx)
@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.