Skip to content

v1.12.0

Choose a tag to compare

@github-actions github-actions released this 03 Nov 08:17
· 93 commits to main since this release

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.status and ups.alarm (all brands). With an alarm active, ups.status starts with ALARM (for example ALARM OL RB), and the new ups.alarm lists the NUT texts (Replace battery!, Shutdown imminent!, ...). The tokens follow the NUT order (OL LB CHRG becomes OL 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.status is the same as v1.11.0.
  • Eaton: outlet.1.switch / outlet.2.switch are replaced by outlet.N.status (on/off). input.voltage.nominal and input.frequency.nominal appear only on models that report them (on the 3S they disappear: use output.voltage.nominal / output.frequency.nominal). The ups.realpower estimate 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.date instead of battery.date; battery.voltage has one decimal.
  • Powercom: test.battery.start.deep, test.battery.stop and beeper.mute are gone, as in NUT.
  • EcoFlow: battery.runtime.low is in minutes (before: seconds).
  • OpenUPS: ups.temperature is gone (it was the raw thermistor reading); the temperature is battery.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 models ups.efficiency, output.current, output.powerfactor and the bypass values.
  • input.transfer.reason (input voltage out of range, input frequency out of range) and Eaton alarms in ups.alarm (Emergency stop!, Wiring fault!, Output short circuit!, ...).
  • shutdown.return and shutdown.stayoff set ups.start.auto (yes / no) before the shutdown, as NUT does. It is a setting stored in the UPS.
  • 5P, 9E and similar: battery.capacity in Ah with two decimals and battery.capacity.full gone; battery.voltage and battery.voltage.nominal only for the series NUT reads them for; with Advanced Battery Monitoring, battery.charger.status / battery.charger.type and No 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.status is unchanged on the recorded models; it shows OFF on the models that report the APC output-off flag.
  • On the Smart-UPS and the Back-UPS CS 500, ups.load has one decimal and is no longer truncated (40 → 40.3); output.voltage.nominal is 230.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), and input.transfer.reason from the APC line fail cause.
  • A battery date the UPS reports as 0 is not set; battery.capacity has two decimals; battery.capacity.full is 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.low and battery.runtime.low can be set from UPS Settings or upsrw, 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.status and 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.temperature is converted from kelvin only between 273 and 373, as NUT does.
  • shutdown.reboot is offered only with the output reboot timer.
  • Strings are cut to 19 characters, battery.capacity has two decimals and battery.capacity.full is 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.voltage is 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.status disappears as in NUT, but beeper.enable and beeper.disable stay available.
  • Other models: the vendor status byte gives TRIM, BOOST, OVER, LB, RB, CAL and Fan failure!, beeper.disable writes 0 as in NUT, and battery.capacity is no longer published.
  • ups.mfr, ups.model and ups.serial are the USB strings; without them, ups.mfr is PowerCOM and there is no model or serial.
Legrand (checked on a Keor PDU 800)
  • input.voltage and output.voltage without decimals, output.frequency a whole number; battery.voltage and battery.voltage.nominal with one decimal.
  • shutdown.stop is 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.low in minutes, as NUT shows it (120 on a Delta 3 Plus, 600 on a River 3 Plus).
  • New: ups.beeper.status and four experimental.ups.powersummary.* variables; battery.voltage with one decimal.
  • No instant commands, as in NUT: the devices ignore them.
  • A negative run time keeps the last battery.runtime; ups.mfr is EcoFlow without a manufacturer string.
OpenUPS (WalleCube W150 and similar, checked on a recording)
  • Voltages with two decimals, currents with three, battery.temperature with two.
  • ups.temperature is gone (it was the raw thermistor reading).
  • New: battery.capacity, battery.charge.warning, battery.type.
  • The 0xD004 models use the NUT scales.
  • ups.status is unchanged.
Other brands (generic driver)

The variables and commands are the same as v1.11.0, except:

  • battery.voltage has one decimal, and truncated values are rounded;
  • the communication lost flag raises ALARM with Internal UPS fault!;
  • battery.capacity has two decimals, battery.charge is no longer cut at 100, and battery.capacity.full is 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

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