Repository navigation
v1.12.0
Every value, the status and the commands now come from the same tables the NUT usbhid-ups driver uses (mge-hid, cps-hid, apc-hid, powercom-hid, ecoflow-hid, openups-hid, legrand-hid, liebert-hid), so what you see matches NUT on a PC. UPSes of other brands get a generic table built on the same NUT rows. ups.status and the new ups.alarm report alarms, bypass, trim/boost and off states as usbhid-ups does. The APC Smart-UPS 5G models finally show all their values and battery thresholds.
⚠️ Before you update
Check your Home Assistant automations and scripts for these changes:
ups.statusandups.alarm(all brands). With an alarm active,ups.statusstarts withALARM(for exampleALARM OL RB), and the newups.alarmlists the NUT texts (Replace battery!,Shutdown imminent!, ...). The tokens follow the NUT order (OL LB CHRGbecomesOL CHRG LB), which matters only to scripts that compare the whole string. New tokens where the UPS reports them:TRIM,BOOST,BYPASS,OFF,CAL. With the UPS on mains and no fault,ups.statusis the same as v1.11.0.- Eaton:
outlet.1.switch/outlet.2.switchare replaced byoutlet.N.status(on/off).input.voltage.nominalandinput.frequency.nominalappear only on models that report them (on the 3S they disappear: useoutput.voltage.nominal/output.frequency.nominal). Theups.realpowerestimate uses a power factor of 0.8 instead of 0.6 (3S at 5 % load: 21 W → 28 W). - APC: the battery replacement date is
battery.mfr.dateinstead ofbattery.date;battery.voltagehas one decimal. - Powercom:
test.battery.start.deep,test.battery.stopandbeeper.muteare gone, as in NUT. - EcoFlow:
battery.runtime.lowis in minutes (before: seconds). - OpenUPS:
ups.temperatureis gone (it was the raw thermistor reading); the temperature isbattery.temperature. - Settings (all brands but the APC Smart-UPS 5G): nominal values, limits and battery thresholds are read when the UPS connects and after every
upsrw/upscmd, no longer every 30 s, as in NUT. A setting changed on the UPS front panel shows after the next change, command or reconnection.
What changed for your UPS
Eaton (checked on the 3S, and on recordings of the 5P, Ellipse PRO/ECO 650 and MGE Protection Center)
- New variables as in NUT:
ups.type(topology),ups.timer.start,ups.firmware,device.usb.version,outlet.id,outlet.switchable,outlet.1.id,outlet.1.switchable,outlet.1.protect.status, and on larger modelsups.efficiency,output.current,output.powerfactorand the bypass values. input.transfer.reason(input voltage out of range,input frequency out of range) and Eaton alarms inups.alarm(Emergency stop!,Wiring fault!,Output short circuit!, ...).shutdown.returnandshutdown.stayoffsetups.start.auto(yes/no) before the shutdown, as NUT does. It is a setting stored in the UPS.- 5P, 9E and similar:
battery.capacityin Ah with two decimals andbattery.capacity.fullgone;battery.voltageandbattery.voltage.nominalonly for the series NUT reads them for; with Advanced Battery Monitoring,battery.charger.status/battery.charger.typeandNo battery installed!when the battery is missing. - The commands and writable settings of the 3S are unchanged.
APC (checked on 14 recordings of 10 models and on a Back-UPS XS 1500M)
ups.statusis unchanged on the recorded models; it showsOFFon the models that report the APC output-off flag.- On the Smart-UPS and the Back-UPS CS 500,
ups.loadhas one decimal and is no longer truncated (40→40.3);output.voltage.nominalis230.0. - New variables where the UPS reports them:
ups.timer.reboot,ups.timer.start,ups.timer.shutdown,battery.charge.warning,output.current,ambient.temperature/ambient.humidity(environmental probe), andinput.transfer.reasonfrom the APC line fail cause. - A battery date the UPS reports as 0 is
not set;battery.capacityhas two decimals;battery.capacity.fullis no longer published. - On models like the Back-UPS ES 700G, the report with the APC status flag is read every 2 s with the status. The commands are unchanged.
APC Smart-UPS 5G (USB product ID 0003 / 0004, checked on a Smart-UPS 750)
Since v1.5.0 (#39) the firmware read only what these UPSes send on their own, so the battery thresholds and most values were missing. Now every value is read as NUT does:
battery.charge.lowandbattery.runtime.lowcan be set from UPS Settings orupsrw, and low battery follows them;- input/output voltages and load appear only if the UPS reports them over USB (the Smart-UPS 750 of #100 does not, so NUT does not show them either);
- the status is read every 2 s and everything else every 30 s, as NUT does on these models.
If the UPS stops answering or the System Log shows USB errors after the update, please open an issue.
CyberPower (checked on recordings of 5 models)
- On the BR700ELCD, CP1350C, CP1500EPFCLCD, CP1600EPFCLCD and UT850EG every variable,
ups.statusand the command list are the same as v1.11.0. - Other models can differ only where they report data NUT does not read on CyberPower: status flags outside
PresentStatus, the general overload flag. ups.temperatureis converted from kelvin only between 273 and 373, as NUT does.shutdown.rebootis offered only with the output reboot timer.- Strings are cut to 19 characters,
battery.capacityhas two decimals andbattery.capacity.fullis gone.
Powercom (checked on an SPD-750U)
- SPD-750U, new variables:
battery.charge.low,battery.charge.warning,battery.mfr.date,battery.type,ups.date,ups.test.result,ups.timer.start,ups.timer.shutdown,input.voltage.nominal,input.frequency,output.voltage.nominal,output.frequency.battery.voltageis the text the UPS sends (13.7). - The poll reads all the values NUT reads, still 800 ms apart (#36), and the status every 2 s and right after a change.
- If the UPS reports a beeper state NUT does not know (the SPD-750U reports 3 after
beeper.toggle),ups.beeper.statusdisappears as in NUT, butbeeper.enableandbeeper.disablestay available. - Other models: the vendor status byte gives
TRIM,BOOST,OVER,LB,RB,CALandFan failure!,beeper.disablewrites 0 as in NUT, andbattery.capacityis no longer published. ups.mfr,ups.modelandups.serialare the USB strings; without them,ups.mfrisPowerCOMand there is no model or serial.
Legrand (checked on a Keor PDU 800)
input.voltageandoutput.voltagewithout decimals,output.frequencya whole number;battery.voltageandbattery.voltage.nominalwith one decimal.shutdown.stopis gone, as in NUT. The other commands are unchanged.
Liebert / Phoenixtec (Powerwalker, Salicru; checked on a Powerwalker VI 2200 SHL)
Values and commands are unchanged. ups.status shows OFF when the UPS reports its output as not good, as NUT does, and the internal failure flag raises Internal UPS fault!.
EcoFlow (simulated data, not tested on hardware)
battery.runtime.lowin minutes, as NUT shows it (120on a Delta 3 Plus,600on a River 3 Plus).- New:
ups.beeper.statusand fourexperimental.ups.powersummary.*variables;battery.voltagewith one decimal. - No instant commands, as in NUT: the devices ignore them.
- A negative run time keeps the last
battery.runtime;ups.mfrisEcoFlowwithout a manufacturer string.
OpenUPS (WalleCube W150 and similar, checked on a recording)
- Voltages with two decimals, currents with three,
battery.temperaturewith two. ups.temperatureis gone (it was the raw thermistor reading).- New:
battery.capacity,battery.charge.warning,battery.type. - The 0xD004 models use the NUT scales.
ups.statusis unchanged.
Other brands (generic driver)
The variables and commands are the same as v1.11.0, except:
battery.voltagehas one decimal, and truncated values are rounded;- the communication lost flag raises
ALARMwithInternal UPS fault!; battery.capacityhas two decimals,battery.chargeis no longer cut at 100, andbattery.capacity.fullis gone;- a manufacturing date reported as 0 is
not set.
If your UPS behaves differently after the update, please open an issue and attach the Export USB Diagnostics file (System Logs tab).
Other changes
- Drivers: the hand-written mappings are gone: every value and command comes from a NUT table row. The firmware is about 16 KB (ESP32-S3) to 19 KB (ESP32-P4) smaller.
- Fewer USB requests: the full poll skips the reports that hold only static or semi-static values, as usbhid-ups (Eaton 3S: from 24 to 14-16 requests per poll). They are read again right after a setting change or a command.
- ESP32-P4 v3.1 or later: now tested on hardware, on a v3.2 board (#94).
- USB hubs and booster cables: the README explains why a long USB cable with a built-in booster hides the UPS on the ESP32-P4 High-Speed port, and how a full-speed-only USB isolator works around it (#113).
- Web UI: the UPS LOAD tile shows
--when the UPS does not report the load. - Tested models: Eaton Ellipse PRO 650, Ellipse ECO 650 and MGE Protection Center (#110, #111, #112).
Thanks
- @Sr-psycho (#100), @fox1047 (#36), @Mickel4711 (#90, #96) and @rtadams89 (#94) for testing the release candidate on their UPSes and boards.
- @Eric-IOT for the compatibility reports and diagnostics of three Eaton/MGE models (#110, #111, #112).
- @JSylvia007 for finding the USB isolator workaround for booster cables (#113).
- Everyone who supported the project on Ko-fi and PayPal: thank you!
Install
Flash it from the web installer or upload firmware.bin (or the whole zip of your board) through OTA in the web UI.
Full Changelog: v1.11.0...v1.12.0