Repository navigation
Releases
v1.19.0
This release adds the Belkin/Liebert driver from NUT with a fix for the Vertiv Edge 750, moves the update check from the board to your browser, gives back a large share of the board's memory, and makes the login easier to live with.
⚠️ Upgrade notes
- No more online install from the board (#146). The board no longer opens any HTTPS connection, so the Download and install button is gone. The check for new releases now runs in your browser: the Firmware OTA page shows the installed version, the latest release, when it was last checked, a Check now button and a Download link to the
-ota.binof your board. Download it and drop it on the same page to update.- The check works even when the board itself has no Internet access, as long as the browser has.
- Board Settings → Firmware updates → Check for updates when the Web UI opens keeps the value you had (on by default). With it on, your browser asks
api.github.comfor the latest release when you open the Web UI, at most once every 6 hours. - Why: the HTTPS check took about 60-70 KB of memory at its peak, and once the free memory dropped to 2.5 KB. Without it, the lowest free memory on an ESP32-S3 without PSRAM went from about 45 KB to about 130 KB, and
firmware.binis 190 KB smaller on the ESP32-S3 and Nano ESP32, 280 KB smaller on the ESP32-P4. - For scripts that use the Web UI API:
POST /api/update/checkandPOST /api/update/installare gone,GET /api/updatenow returns the running version and the name of the board's-ota.bin, and/api/system-statusno longer has theupdateobject.
New and improved UPS support
- Vertiv / Liebert / Belkin (
10af:0000,0001,0002,0004,0008, and the Belkin050dproducts listed by NUT) (PR #160). A new driver mirrors NUT'sbelkin-hid, with its corrections for the wrong voltage and frequency scaling of the Liebert descriptors.- Vertiv Edge 750 VA (
10af:0002): the board no longer crashes. The UPS answers one report with more bytes than it declares, which tripped the ESP-IDF USB host; the board now asks it for at least 8 bytes per request, as NUT does. Tested on an ESP32-S3. - Liebert GXT3, GXT4, PowerSure PSA, PST / PSI5, PSI 1440 and the Belkin units are mapped as in NUT but not tested yet. The Vertiv GXT5 (
10af:1000) stays with the generic driver, as in NUT. battery.capacityis the rated power in VA, as in NUT. These units don't report their nominal power: to getups.realpower, addups.realpower.nominal(W) orups.power.nominal(VA) as a custom variable on the NUT Server page.- Known issue: unplugging and replugging the Vertiv Edge while the board runs still ends in a board restart, after which everything works. A fix is being tested in #163.
- Vertiv Edge 750 VA (
- UPS units with a USB serial port (ADR 0014, PR #166, #161). A UPS with a USB CDC-ACM port or an XR21V1410 bridge (
04e2:1410, for example the APC SRV2KI-E) is now recognized: the Web UI says it is not supported yet, the System Log shows its USB interfaces, and the USB Diagnostics export has aserialsection. No UPS protocol runs on it yet and the board sends it nothing: this is the first step towards supporting these units. - Tested UPS units: the Powerwalker VI 600 SW (Mustek protocol over the Cypress bridge,
0665:5161) is now in the README list (#159).
Fixes
- Wi-Fi: the board joins the strongest access point (PR #172). With the same network name on several channels (mesh systems, repeaters), the board used to join the first access point it found, even with a stronger one next to it. It now scans every channel and picks the strongest signal, also when it reconnects. Connecting can take about 2 seconds longer.
Other changes
- "Remember me" lasts 30 days from your last visit (#131), not 30 days from the login: each page load renews it. Nothing extra is written to the board's flash.
- "Forgot your password?" on the login page (#131). The link opens the recovery steps for your board: double reset and the
NUT_ESP32_Configaccess point on boards with Wi-Fi, double reset and the 10-minute recovery window on boards without. The recovery itself is unchanged. - Browser back and forward between the Web UI tabs. The open tab is now in the address (
/#nut,/#board, ...), so back and forward move between tabs, a reload keeps the tab you were on, and you can bookmark a tab. - More free memory. On top of the update check, the syslog queue and its task now exist only while syslog is on (about 14 KB back with syslog off, the default), and the main task stack went from 16 KB to 12 KB after measuring it. The diagnostics (
/api/system-statusand a[DIAG]line in the System Log every minute) now show how much stack each task has left.
Thanks
- @Darknetzz for the Belkin/Liebert driver and the Vertiv Edge fix, tested on their own UPS (#160, #163).
- @josch0 for the USB serial groundwork and for testing it with an APC SRV2KI-E on an ESP32-P4-NANO (#166, #161).
- @ninjmnky for the Wi-Fi access point fix (#172).
- @rtadams89 for the idea of checking for updates from the browser (#146).
- @tevaadarelsol for asking for an easier login and a way back in after a forgotten password (#131), and for the update check on networks without Internet (#146).
- @Peppercorn27 for the Powerwalker VI 600 SW report (#159).
- Everyone who supported the project on Ko-fi and PayPal: thank you!
Install
From v1.17.0 or v1.18.0 you can still use Download and install on the OTA page: the installed firmware does the install. Otherwise flash it from the web installer, or upload firmware.bin, the -ota.bin of your board or the whole zip through OTA in the web UI.
Full Changelog: v1.18.0...v1.19.0
v1.18.0
This release adds the Arduino Nano ESP32 as a fourth board, shows your custom NUT variables on the telemetry page, can take the NTP server from your router, and closes some gaps in the USB recovery found on APC Smart-UPS units.
New features
- Arduino Nano ESP32 (PR #149). The Arduino Nano ESP32 is now a supported board, with its own zip (
esp32-nut-v1.18.0-arduino-nano-esp32.zip), its own-ota.binfor the online update and its own button in the web installer. It has no status LED, and pins D10-D13 are free for a W5500 Ethernet module.- For the first install, put the Nano in download mode: connect B1 to GND while you reset it, then pick its serial port in the web installer. After that, updates go through OTA as on the other boards.
- The USB-C port is the one the UPS plugs into, so the Nano needs a USB-C OTG adapter that also powers the board and the UPS port. Tested with a CyberPower CP1500PFCLCDa and a CP685AVRG. While the firmware runs, the USB-C port is not a serial port: use the System Log, syslog or the UART pins.
- Custom NUT variables on the UPS Telemetry page (#143). The page now shows what NUT clients see next to what the UPS reports. A row whose value you override on the NUT Server page keeps the UPS value and gets an amber NUT clients chip with the value clients receive; a variable the UPS does not report gets a cyan Added chip. Your note appears under the description, the panel header sums up the custom variables, and the cards show a mark. Each chip, mark and the summary opens the record on the NUT Server page.
- NTP server from DHCP (#135). Board Settings → Time → Use the NTP server from DHCP, off by default. With it on, the board syncs with the NTP server your router announces (DHCP option 42). The server you typed stays saved and is used when the router announces none (static IP, access point mode), or when the router's server does not answer within 60 seconds. The Time section shows the server in use and where it comes from, and the System Log names it. With the switch off nothing changes.
- Real power from the rating on the label (#128). Some UPS units report only the load in percent, not the power in watts, nor their nominal power: the APC Smart-UPS 1500 of #128 is one of them. Add the rating as a custom variable on the NUT Server page,
ups.realpower.nominalin W orups.power.nominalin VA, and the board publishesups.realpower= load × nominal power (× 0.6 for VA), updated with every new load reading, with no restart. Remove the variable and the estimate goes away.- A custom nominal power wins over the one the UPS reports, as it does for NUT clients. UPS units that measure or compute their own power (Eaton, for example) are never touched.
- The estimate is right only if the UPS gives the load as a percentage of its watts. The Real Power card and the
ups.realpowerrow show an Estimated badge whenever the value comes from the board, with the source and the formula in its tooltip. This also applies to the estimate the board already made from the nominal power reported by the UPS.
Fixes
- APC Smart-UPS: UPS not coming back after a recovery (#78, #120). Two boards lost their Smart-UPS 750 after days of normal running, and one ended in degraded mode. Three gaps in the recovery are now closed:
- the check that power-cycles the USB port when the UPS does not show up after a restart could turn itself off in exactly that case; it now works as intended;
- after a USB port power cycle, the port could stay off if it was not ready to be powered on again; the board now retries until it is;
- from the second automatic restart in a row, the web UI banner, the System Log and the diagnostics export (
first_restart_cause) show the cause of the first restart of the series, not only the last one.
- APC Smart-UPS: fewer stuck USB transfers (#78). Smart-UPS units with an interrupt endpoint now get the gentler polling the Back-UPS BX already have: the values the UPS does not send by itself are read every 10 seconds, and the values that never change only once. This cuts the USB requests by about two thirds and with them the stuck transfers that lead to port power cycles.
- Degraded mode message. It now asks only to unplug and replug the UPS USB cable. Restarting the board from the web UI does not leave degraded mode, so the old advice to restart it did not help.
- Estimated power no longer truncated. When the board computes
ups.realpowerfrom the load and a nominal power, it now uses the load with its decimals: 10.4 % of 980 W is 102 W, not 98 W. On some UPS units the value can read a few watts higher than before. - Open NUT Server now highlights the record also when it was saved with different capitals (for example
Battery.Charge.Lowinstead ofbattery.charge.low). The override already worked, but the link opened the page without pointing to the row.
Other changes
- Tested UPS units: the Cleanline Evolution 1000 (Mustek protocol over the Cypress bridge,
0665:5161) is now in the README list (#154, #152). The CyberPower SL700U dump shared in discussion #79 is now a regression test.
Thanks
- @ahdzesq for the Arduino Nano ESP32 support and for testing it with two CyberPower units (#149).
- @JSylvia007 for asking to see the custom variables on the telemetry page (#143).
- @tda2806 for asking for the NTP server from DHCP (#135).
- @tevaadarelsol for the Smart-UPS 1500 data the power estimate was built on (#128, #120).
- @miskor-bgd for keeping two Smart-UPS boards under watch and reporting each failure (#78).
- @jmbenevise for the Cleanline Evolution 1000 report (#152, #154).
- @Rogero54 for the CyberPower SL700U dump (discussion #79).
- Everyone who supported the project on Ko-fi and PayPal: thank you!
Install
Use Download and install on the OTA page, flash it from the web installer, or upload firmware.bin, the -ota.bin of your board or the whole zip through OTA in the web UI.
Full Changelog: v1.17.0...v1.18.0
v1.17.0
The board can now find and install new releases by itself, and the NUT Server settings apply without a restart. Read NUT commands now need credentials below before updating if you send commands to the UPS from Home Assistant or other NUT clients without a NUT username and password.
Before you update
- NUT commands now need credentials. Without a NUT username and password configured on the board, NUT clients can still read every value, but they can no longer run commands (
INSTCMD) or change UPS variables (SET VAR). They getERR ACCESS-DENIED, as with NUT'supsdwhenupsd.usershas no users. Before, the board accepted commands from any client when no credentials were set. If you shut down the UPS or run battery tests from Home Assistant, set a username and password on the NUT Server page and the same ones in the NUT integration. Refused commands are in the System Log with the reason.
New features
- Online firmware updates (#146). The board checks GitHub once a day for a newer release (the first check runs 2 minutes after the network is up) and shows a notice on the dashboard when there is one. The OTA page has Check for updates and Download and install: the board downloads the firmware for its own board type, checks it, writes it and restarts, in about 30 seconds.
- The daily check is on by default, so boards nobody looks after still learn about fixes. It sends one request a day to
api.github.com, which carries only the firmware version (esp32-nut/<version>as User-Agent), nothing about your UPS or your network. To turn it off: Board Settings → Firmware updates → Check for updates daily. - Only release builds get the notice and the install offer. Test builds (the zips we share in issues) do not.
- Each release now also carries one
-ota.binper board next to its zip (esp32-nut-v1.17.0-ota.binfor the ESP32-S3,esp32-nut-v1.17.0-esp32-p4-eth-ota.binandesp32-nut-v1.17.0-esp32-p4-eth-v1-ota.binfor the P4 boards). It is the samefirmware.binthat is inside the zip. The online update uses it, and you can also upload it on the OTA page instead of the zip.
- The daily check is on by default, so boards nobody looks after still learn about fixes. It sends one request a day to
- Uptime and Restart board (#129, #133). The sidebar shows how long the board has been running on every page. Hover over it to see the reason of the last reset and of the last restart the firmware did itself. Board Settings → Restart board restarts the board after a confirmation, and the page reloads once the board is back. A restart you start this way is not shown as an automatic restart in the web UI banner, and does not count among the USB recovery restarts.
- NUT Server settings without a restart. Saving the NUT Server page applies the UPS name and the NUT credentials at once, with no board restart. When one of them changes, the board closes the open NUT sessions, so clients log in again with the new values. Saving the same values changes nothing and keeps the sessions.
- Optional NUT credentials. On the NUT Server page username and password are no longer mandatory, and you no longer type the password again on every save: leaving the field empty keeps the saved one. Remove NUT credentials clears them after a confirmation, and the page warns you when NUT clients can only read.
- Q* UPS units with the Cypress USB bridge (#150, #12, #152). UPS units that NUT drives with
nutdrv_qxand itscypressUSB subdriver no longer show "not supported yet": the board now talks to them as NUT does. They include the Voltronic Power units with USB ID0665:5161, sold under several brands: tested on a Legrand KEOR SP 600 VA, an IPPON and a Cleanline Evolution 1000.- For
0665:5161the board also follows the recovery that current NUT has for these bridges: before each command it drops replies the UPS sent late, so they are not taken as the answer to the next command. If the UPS keeps sending data for 3 seconds, the board power-cycles the USB port so the UPS reconnects, up to 3 times in a row, then restarts. Each of these steps is written in the System Log.
- For
Changes from NUT
The HID tables of the board now follow NUT as of 23 October 2026. What changes for you:
- APC Back-UPS BX*MI:
shutdown.returnis now among the commands. It writes 1 to the delay-before-reboot field, as APC PowerChute and NUT do: the UPS carries it out only while on battery, turns its outlets off after a fixed grace of about 2 minutes, and back on when mains power is present, even if it came back during the grace. It is the only shutdown these units actually carry out. Theshutdown.rebootcommand, which writes 10 to the same field, is accepted by the UPS but ignored. - Legrand Keor:
ups.beeper.statusnow showsdisabled,enabledormuted, as NUT reads it, andbeeper.muteis now among the commands.beeper.disablenow writes 1 instead of 3 (in NUT, 3 means muted).beeper.togglestays. - Eaton 5P Gen2 (650/850/1150/1550 i G2 and iR G2): recognized as the Eaton 5P series, so
battery.voltageis published as on the other 5P models.
Fixes
- The web installer flashes the ESP32-P4 v3.1 and later (#136). Before, it stopped with "Failed to initialize" on these chips, because its flashing library did not power on their flash memory. The installer now uses ESP Web Tools 10.5.2, which does.
- UPS name in the sidebar for units that report no model (#12). The sidebar showed "UPS: Unknown Model" for UPS units without a model name, such as Q* (Megatec) units that do not answer the
Icommand. It now shows the manufacturer when there is one (for example "UPS: Ippon"), and "Unknown Model" only when the UPS reports neither.
Thanks
- @rtadams89 for the online update feature, and for reworking it through several review rounds until it fit a board without PSRAM (#146, #147).
- @tevaadarelsol for asking for the uptime counter and the restart button (#129, #133).
- @powerklash for testing the Cypress transport on the KEOR SP and for sharing the patch that pointed to the newer NUT code (#150).
- @TischenkoArseny for the NUT debug log that the Cypress transport was built on, and for testing it on the IPPON (#12).
- Everyone who supported the project on Ko-fi and PayPal: thank you!
Install
Flash it from the web installer, upload firmware.bin, the -ota.bin of your board or the whole zip through OTA in the web UI, or, from the next release on, use Download and install on the OTA page.
Full Changelog: v1.16.0...v1.17.0
v1.16.0
The board can now read UPS units that NUT drives with nutdrv_qx (the Megatec/Q1 family), starting with the ones on USB ID 0001:0000. A Back-UPS BX that stops sending its status after a USB port power cycle no longer stays frozen for hours.
New features
- Q* UPS units (Megatec/Q1,
nutdrv_qx) (#91, #28). Some UPS units show up on USB as HID devices but send their data with a protocol of the Megatec/Q1 family. NUT drives them withnutdrv_qxinstead ofusbhid-ups, and until now the board showed them as not detected.- The board recognizes them by their USB ID, as NUT does, and runs the same protocols:
megatec,megatec/old,mustek,zinto,hunnox,innovataeandq1. NUT clients seedriver.name: nutdrv_qx, anddriver.version.datanames the protocol in use. - Supported for now: UPS units with USB ID
0001:0000that NUT handles with thekrauler,fabulaorhunnoxUSB subdriver (for example Krauler, Fideltronik/MEC LUPUS, Hunnox, and other units whose USB product name isMEC0003). - Board Settings → Q* UPS driver, shown only with a Q* UPS connected: the protocol the board detected, plus the
protocolandnovendoroptions of NUT'sups.conf. Leave Protocol on Automatic unless NUT needs a specific one for your model: some protocols answer the same probe (hunnoxis detected asmegatec), as in NUT. Changes apply at once, with no restart. langid_fixis applied by itself when the UPS needs it: the board tries again with US English when the normal read fails, and keeps using it if the UPS answers.- Commands work from the UPS Commands page and with
upscmd, as withnutdrv_qx. Which ones the UPS accepts depends on its USB chip: some units reject the battery test, in NUT too. - Export USB Diagnostics has a new
qxsection with the commands sent to the UPS and its answers. - Tested on a VIDA Armour 1200VA, with Protocol
hunnoxand novendor on. Thefabulatransport has not been tested on a real UPS yet. - Q* UPS units with other USB adapters (Cypress, Phoenix, Ippon, …, such as the Voltronic Power units with USB ID
0665:5161) are recognized but not supported yet. A yellow box in the web UI says so, and asks for an issue with the USB Diagnostics export.
- The board recognizes them by their USB ID, as NUT does, and runs the same protocols:
Fixes
- Back-UPS BX frozen after a USB port power cycle (#138). On a Back-UPS BX750MI, a USB port power cycle sometimes left the UPS sending no more status reports, while it kept answering the board's requests with the same values. Everything then stayed frozen (
OLeven with the UPS unplugged from the mains) until the USB cable was unplugged. v1.13.0 hid this because it restarted the board for every stuck USB request, and a restart frees the UPS. Since v1.14.0 the port power cycle replaced most of those restarts, so nothing cleared the freeze any more.- Now, on a Back-UPS BX, 15 seconds without status reports mark the data as stale, and the board restarts at once. The System Log shows
[USB] No INPUT report for 15 s since the UPS connected: UPS values likely frozen. - On the reporter's BX750MI, 3 of 44 power cycles in 16.5 hours froze the UPS, and each one was over in about 20 seconds. Home Assistant (60 s poll) saw the UPS unavailable for 10-20 s at most.
- The newer BXR series is not affected and is left out of this check.
- Now, on a Back-UPS BX, 15 seconds without status reports mark the data as stale, and the board restarts at once. The System Log shows
Known issues
- The web installer cannot flash an ESP32-P4 v3.1 or later yet (#136). ESP Web Tools 10.4.0 includes esptool-js 0.6, which does not power on the flash of these chips, and the installer stops with "Failed to initialize". Flash the release zip with esptool instead (see Release packages in the README). Boards already running ESP32-NUT update through OTA as usual.
Other changes
- README: on the Waveshare ESP32-P4-ETH the UPS goes on the 4-pin header J3, with all four wires including 5V: the USB-C port is not a host port (#140). The README also has a new section on Q* UPS units, and the APC Back-UPS BXR1200MI now has its own line among the tested models, apart from the BX notes.
Thanks
- @tda2806 for testing the Q* driver on a VIDA Armour 1200VA until it worked (#91), for the BX750MI logs that led to the freeze fix (#138), and for the BXR1200MI tests (#123).
- @rmirage for the Safire 1500VA report (#28).
- 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.15.0...v1.16.0
v1.15.0
An ESP32-S3 can now use wired Ethernet through a W5500 module, and switch between cable and Wi-Fi by itself. The board also recovers a UPS that does not show up after a power-on, and its boot log is clearer.
⚠️ Upgrade notes
- The W5500 is off by default. Nothing changes until you turn it on in the Network tab.
New features
- Wired Ethernet with a W5500 module (ESP32-S3) (#64). The new Ethernet module (W5500) section of the Network tab works with an external W5500 module wired to the board, or with a board that has one built in.
- There is no common pinout, so you enter the GPIOs yourself: SCK, MOSI, MISO and CS are required, INT and RST are optional. The page refuses pins the board needs for something else, and warns about strapping pins. The README has a table of known boards.
- Wrong pins cannot lock you out: if the W5500 does not answer, the board starts on Wi-Fi. The double reset still starts the access point.
- Link to use: Automatic (the default) uses the cable when it has a link and gets an address, otherwise Wi-Fi. If you unplug the cable, the board switches to Wi-Fi within 30 s, and goes back to Ethernet when you plug it in again. Ethernet uses the cable only. Wi-Fi does not use the W5500.
- The W5500 uses the Wi-Fi MAC address, so the router gives the board the same address on both links. One DHCP reservation covers both. Going back to Ethernet, the board turns Wi-Fi off first, so it is offline for a few seconds.
- After a switch, the NUT server closes the open sessions, so Home Assistant and upsmon reconnect at once.
- Tested on a Waveshare ESP32-S3-ETH with the PoE module and on an external module wired to an ESP32-S3 DevKit.
Fixes
- UPS absent after a power-on (#78). Some UPSes are still busy when the board starts and fail to enumerate, and ESP-IDF does not retry. Until now the board retried only after one of its automatic restarts, so after a power-on the UPS could stay absent for hours. Now the board power-cycles its USB port 1 and 2 minutes after any boot if the UPS has not shown up: after a power-on, a reset, an OTA update or saved settings. In this case it does not restart, and it writes one INFO line per cycle to the System Log.
- Clearer boot log (#136).
- A new board, or one with settings that were never saved, no longer prints one
nvs_open failed: NOT_FOUNDline per settings store. - Without a network cable, an ESP32-P4 (or a W5500 in Ethernet mode) no longer goes silent: the log repeats
No Ethernet link for N safter 10 s, then every minute.
- A new board, or one with settings that were never saved, no longer prints one
Known issues
- The web installer cannot flash an ESP32-P4 v3.1 or later yet (#136). ESP Web Tools 10.4.0 includes esptool-js 0.6, which does not power on the flash of these chips, and the installer stops with "Failed to initialize". Flash the release zip with esptool instead (see Release packages in the README). Boards already running ESP32-NUT update through OTA as usual.
Thanks
- @Mickel4711 for the W5500 request (#64), for testing both test builds, and for the boot log report (#136).
- @davidlballenger for testing the W5500 on a Waveshare ESP32-S3-ETH with PoE (#64).
- @miskor-bgd for the report of a Smart-UPS that stayed absent after a power-on (#78).
- 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.14.0...v1.15.0
v1.14.0
The board can now send its log to a syslog server, keep the time from NTP, and give NUT clients custom values for the variables your UPS gets wrong or does not report. When the USB link gets stuck, the board now power-cycles its USB port instead of restarting, so network, web UI and NUT stay up.
⚠️ Upgrade notes
- NTP is on by default. After the update the board asks
pool.ntp.orgfor the time, with UTC as the time zone. Change the server or the zone, or turn NTP off, in Board Settings → Time. Nothing on the board waits for the time: without it the board works as before. - Fewer restarts, more USB reconnections. When a USB control transfer gets stuck, the board now switches its USB port off and on instead of restarting. In the System Log this appears as
[USB] Control transfer stuck: power-cycling the USB port, and the UPS comes back in a few seconds. The restart is still the safety net: the board restarts if the port cycle does not help or after more than 12 cycles in an hour. - Overridden variables are read-only. If you set a custom value for a writable variable, NUT clients and the UPS Settings page can no longer change it until you remove the custom value.
New features
- Custom NUT variables (#37, #44). In the new Custom variables panel of the NUT Server tab, you can add a variable the UPS does not report (for example
battery.date) or replace a wrong value (for exampleups.model). It works likeoverride.<var>inups.conf.- Up to 16 variables, each with a key, a value and an optional description. They are kept across OTA updates.
- Only NUT clients see the custom values. The dashboard and the board logic keep the real values from the UPS.
- NUT clients also see
driver.parameter.override.<var>, as with NUT. ups.status,ups.status.*,device.typeanddriver.parameter.*cannot be overridden.
- Remote logging (syslog) (#69). The new Remote logging panel, under the terminal of the System Logs page, sends the System Log to a syslog server over UDP, in RFC 3164 or RFC 5424 format. It is off by default.
- You can set the server, the port (default 514), the facility and the minimum level.
- A status indicator next to Auto-refresh shows whether remote logging is working.
- Settings apply without a restart and are kept across OTA updates. Nothing is sent while the board is in setup (AP) mode.
- RFC 5424 lines carry the hostname set in the Network page. Once the board has the NTP time, RFC 3164 lines carry the time and the hostname too.
- Syslog over UDP is not encrypted and has no delivery receipt. If the server stops while the network is up, the indicator can keep showing it as active.
- Network time and time zone. The new Time section of Board Settings has NTP on or off, the server, and a time zone list with automatic daylight saving time. It also shows whether the time is synchronized and the board time. With the time synchronized, syslog lines carry the time they were written.
- Board time in the System Log. Once the board has the NTP time, the System Log terminal and its export show the board time of each line, even for lines written before the synchronization. Without NTP, the terminal keeps the browser clock.
Fixes
- No more restarts on UPSes that send few INPUT reports (#111). Some UPSes, such as the MGE Protection Center, send an INPUT report about once a minute while they answer every request of the board. After 5 minutes without one, the board marked the data stale (Home Assistant showed Unavailable), tried to recover the link and then restarted with
INPUT reports stopped after recovery. Now the board checks whether the poll already reads every value the INPUT reports carry. If it does, a silence only writes one INFO line to the System Log. NUT'susbhid-upsdoes not watch INPUT reports at all. The Export USB Diagnostics file shows whether the watch is active (link.input_watchdog). - UPS absent after an automatic restart (#78). Some UPSes were still busy right after the board restarted and failed to enumerate. ESP-IDF does not retry, so the UPS could stay absent for hours. Now, if the UPS does not show up after an automatic restart, the board power-cycles its USB port after 1 and 2 minutes, and then restarts again. If the UPS still does not come back, the web UI banner asks you to unplug and replug the UPS USB cable.
- Stuck USB control transfers (#120, #78, #123). Instead of restarting the whole board, the board power-cycles its USB port and the UPS comes back in about 6 seconds (see the upgrade notes). The
[USB] Last 60 sline counts the cycles, and the USB diagnostics export shows them aslink.port_cycles. - Errors on reports with no values (#123). The full poll now asks only for the reports that carry a value shown to NUT, as NUT does. On the APC Back-UPS BXR1200MI this removes the errors on the empty vendor report 227.
- CyberPower
battery.mfr.date(#108). On CP1350C, CP1500, CP1600 and CP2000, the board now reads the report that carriesbattery.mfr.date, as NUT does. On the CP2000EIPFCRM2U the UPS reportsCPSthere, as with NUT. You can replace it with a custom variable.
Other changes
- USB diagnostics: Export USB Diagnostics now asks the board to read once every FEATURE report of the UPS, including the ones the poll does not use. Those reports are marked
on_demandin the file, andexport_readreports how the read went. This gives a full picture of a new UPS from a single export (#123). - Tested hardware: APC Back-UPS BXR1200MI (#123).
Thanks
- @fox1047 and @x-magic for asking for custom NUT variables (#37, #44).
- @tda2806 for the remote logging request (#69) and the BXR1200MI report and diagnostics (#123).
- @rtadams89 for the remote logging core of PR #104, which the syslog support is built on.
- @miskor-bgd for the reports and serial logs of a UPS that stayed absent after the restart (#78).
- @tevaadarelsol for the serial log of the stuck control transfers (#120).
- @Eric-IOT for the MGE Protection Center report and logs (#111).
- @kobbybest for the CyberPower CP2000 report (#108).
- 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.13.0...v1.14.0
v1.13.0
The board can now shut the UPS down by itself on low battery, for UPSes that power devices without a NUT client. The "Wi-Fi Config" page becomes "Network", with a section for every link of the board, Ethernet included, and you can choose the hostname of each board.
⚠️ Upgrade notes
- Wi-Fi hostname (ESP32-S3). Without a chosen name, the board now sends
esp32-nut-xxxxxxto the DHCP server, the last 3 bytes of its MAC address, as the Ethernet boards already do. Before, it sent the Arduino defaultesp32s3-XXXXXX. Check DHCP reservations, router rules or bookmarks that use the old name, or set the name you prefer in the new Hostname section of the Network page. Ethernet boards keep their name. - "Wi-Fi Config" is now "Network". Same settings and same first-setup behaviour, under a new name and with the link status on top.
New features
- Automatic shutdown on low battery (#100). In Board Settings → Automatic shutdown, off by default. With the option on, when the UPS is on battery and reports low battery (
OB LB), the board sendsshutdown.defaultto the UPS once, even with no NUT client connected. It does not send it again until the UPS is back on line (OL). This is meant for UPSes that power a TV, an audio system or other devices withoutupsmon.- The threshold is the one of the UPS:
battery.charge.low/battery.runtime.low, in UPS Settings. There is no separate threshold on the board. - The command shows in the System Log as
[CMD] Automatic shutdown: ..., followed by its outcome. - If the UPS offers no shutdown command, or no UPS is connected, the switch is disabled and the page says why.
- It is a setting of the board, not a UPS variable. It does not appear in
upsrwand NUT clients cannot change it.upsmonand the other NUT clients work as before. - Whether the UPS turns its outlets back on when power returns depends on the model.
shutdown.defaulttriesshutdown.returnfirst. Tested on an Eaton 3S that also powered the board and the Wi-Fi router: the outlets went off about 20 s after the command and came back on about 30 s after power returned (ups.delay.start), and the board reconnected on its own.
- The threshold is the one of the UPS:
- Network page. One section per link of the board, Wi-Fi or Ethernet, with its state, IP address, gateway, MAC, DHCP and the SSID and signal or the cable speed. The ESP32-P4 Ethernet boards get a network page for the first time. When the board stops answering, the last values stay greyed out with "No answer for N s".
- Hostname (#116). In the new Hostname section of the Network page, on every board. It is the name the board sends to the DHCP server on Wi-Fi and Ethernet, so you can find each board in the router's DHCP table or reach it by name. It accepts 1 to 32 letters, digits and hyphens, with no hyphen at the start or end. It is kept across OTA updates, and the board restarts when you change it.
Fixes
- Web UI: an SSID with repeated spaces (for example
Home Network) is shown as it is in the Network page, in the notices and in the status bar, no longer with a single space.
Other changes
- Diagnostics: after a restart caused by the task watchdog, the System Log names the tasks that stopped responding, for example
[DIAG] Watchdog: tasks not responding: ups_poll (CPU 0/1). The names also appear in the web UI crash banner and in the Export USB Diagnostics file. This helps to find the cause of a freeze from the log alone (#111, #112). - Tested hardware: CyberPower CP2000EIPFCRM2U, on a Waveshare ESP32-P4-WIFI6-POE-ETH board (ESP32-P4 before v3, Ethernet) (#108). Its values are the same as with NUT, except
battery.mfr.date, which is not shown yet.
Thanks
- @Sr-psycho for asking for the automatic shutdown (#100).
- @Z3r0Auth for the hostname request (#116).
- @kobbybest for the CyberPower CP2000EIPFCRM2U and Waveshare ESP32-P4 report and diagnostics (#108).
- @Eric-IOT for the MGE and Eaton reports that led to the watchdog diagnostics (#111, #112).
- 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.12.0...v1.13.0
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 compatibilit...
v1.11.0
ESP32-P4 release: esp32-nut now runs on ESP32-P4 boards with a wired Ethernet port, such as the Waveshare ESP32-P4-ETH, as well as on the ESP32-S3. Nothing changes for ESP32-S3 users: same image, same installer button, same zip name.
⚠️ Upgrade notes
- Internal rework of the UPS drivers. The NUT server, the web UI and the UPS drivers no longer depend directly on the USB code. NUT clients should see the same variables, commands and writable settings as with v1.10.0: this was checked on an Eaton 3S, and on the other brands with the recorded data of their UPS. If your UPS behaves differently after the update, please open an issue and attach the USB diagnostics export.
ESP32-P4 with Ethernet (experimental)
- Boards: Waveshare ESP32-P4-ETH (also the PoE version) and boards that follow the Espressif reference design (IP101 PHY). The UPS goes on the USB 2.0 High-Speed port. The board joins the network by cable with DHCP, as
esp32-nut-xxxxxx; there is no Wi-Fi and no access point, and a double reset opens a 10-minute window to replace the web credentials (#94, #103). - Two images, one per chip revision. Pick the one that matches your chip:
esptool chip-idshows it (Chip is ESP32-P4 (revision v1.3)), and so does the boot log (chip revision: v1.3).
| Image | Chip revision | Tested on |
|---|---|---|
| ESP32-P4 v3.1 or later | v3.1 and later | Not yet tested on hardware |
| ESP32-P4 before v3 | v1.x | A v1.3 board with a UPS (rtadams89) |
- An image for the wrong chip or revision is refused, by the bootloader on a full install and by the board on an OTA update: the board keeps the firmware it is running. If you try the v3.1+ image, please tell us how it went.
Other changes
- Web installer: the main button still installs the ESP32-S3 image; a new ESP32-P4 section has one button per chip revision and explains how to read the revision.
- Release packages: one zip per board. The ESP32-S3 zip keeps its name (
esp32-nut-v1.11.0.zip); the P4 zips end with-esp32-p4-ethand-esp32-p4-eth-v1. Every zip now also hasfirmware.factory.bin, the complete image to write at0x0, and aREADME.txtwith the install steps. - UPS Compatibility Report: a new issue form to tell us that your UPS works, linked from the README (#83).
Thanks
- @rtadams89 for the ESP32-P4 and Ethernet support (#94, #103), and for testing it on his v1.3 board with a UPS.
- @RalphCad for the idea of the compatibility report form (#83).
- 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.10.0...v1.11.0
v1.10.0
Platform release: esp32-nut moves to ESP-IDF 5.5 and gets the groundwork for more boards (ESP32-P4 with Ethernet, #94). For ESP32-S3 users it adds a Board Settings page to turn the status LED off or dim it, and a lighter USB diagnostics export.
⚠️ Upgrade notes
- New platform: ESP-IDF 5.5 (pioarduino 55.03.312-1, was ESP-IDF 5.1). The update through OTA works as usual and keeps Wi-Fi, NUT and web credentials and the UPS settings: it was tested from v1.8.0 on an ESP32-S3 with an Eaton 3S. NUT clients see the same variables, commands and writable settings as with v1.9.0. If your UPS behaves differently after the update, please open an issue and attach the USB diagnostics export.
Other changes
- Board Settings page in the web UI (after login), panel "Hardware options":
- status LED on/off: when off, the LED stays off in every state, also after a restart;
- LED brightness on 5 levels, applied at once and kept after a restart. The default is level 3, the same brightness as before;
- the board name is shown at the top of the panel ("ESP32-S3 DevKitC-1").
- USB diagnostics export (System Logs → Export USB Diagnostics) is streamed instead of being built in memory first: same file, but the board no longer needs a large block of free memory to produce it, which keeps more memory free while NUT clients and the web UI are busy.
- Groundwork for more boards (ESP32-P4, Ethernet, #94): pins and capabilities of each board now live in one board profile, and the network goes through one interface for Wi-Fi and Ethernet. On boards without Wi-Fi, a double reset opens a 10-minute window to replace the web credentials. Nothing changes on the ESP32-S3: the P4 images will come in a later release.
- Web API:
GET/POST /api/boardreads and changes the board settings;/api/system-statusnow reportsnetwork.type(wifiorethernet).
Thanks
- @rtadams89 for the ESP32-P4 and Ethernet port (#94): it showed the way to ESP-IDF 5.5, including the USB enumeration fix this release uses, and shaped the board profiles.
- Everyone who supported the project on Ko-fi and PayPal: thank you!
Install
Flash it from the web installer or upload firmware.bin from the attached zip through OTA in the web UI.
Full Changelog: v1.9.0...v1.10.0