Italymaverick1982/esp32-nut
A standalone Network UPS Tools (NUT) server for ESP32-S3: connects USB HID UPS units (APC, Eaton, CyberPower, Powercom, EcoFlow…) and serves them over Wi-Fi to Home Assistant, NAS and any NUT client. Web UI, OTA updates, UPS commands. Say goodbye to the Pi!
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
ESP32 NUT Server Bridge
An open-source firmware for ESP32-S3 that acts as a standalone Network UPS Tools (NUT) Server bridge over Wi-Fi. It connects to an Eaton UPS (like the Eaton 3S 700) via USB Host and exposes its data to your local network using the standard NUT protocol (port 3493) and a built-in Web Interface.
This allows you to easily integrate your USB-only UPS into Home Assistant, TrueNAS, Synology, or any other NUT-compatible client without needing a dedicated Raspberry Pi or PC running 24/7.
🌟 Features
- Native USB Host Support: Directly reads HID data from USB-compatible UPS devices (tested with Eaton, APC, CyberPower).
- NUT Server Protocol: Implements the standard NUT protocol, making it instantly compatible with existing NUT clients.
- Web UI & Captive Portal: Easy configuration of Wi-Fi and NUT credentials via a modern, responsive web interface.
- Over-The-Air (OTA) Updates: Flash new firmware versions directly from the web browser without touching the board.
- Diagnostic LED: Visual feedback for Wi-Fi and UPS connection status.
🔌 Supported UPS Devices
The firmware uses the official Network UPS Tools (NUT) HID mappings and supports multiple vendors automatically:
- Eaton (Tested with Eaton 3S series, Eaton 5P 1U)
- APC (Tested with APC Back-UPS CS 500, APC BackUPS Pro 900)
- CyberPower (Tested with CyberPower UT650EG)
- Generic / Other Brands: If an UPS is not recognized, the system will fall back to a generic stub driver. Currently, this driver cannot read dynamic stats (like Battery Level). If your UPS falls into this category, you can use the Export USB Diagnostics button in the Web UI (System Logs tab) to download a diagnostic file (
usb_diagnostics.json). Please attach this file when opening an issue on GitHub to request dedicated support or report bugs on existing drivers.
📸 Screenshots
| Wi-Fi Config | NUT Server |
|---|---|
![]() | ![]() |
| UPS Telemetry | System Logs |
|---|---|
![]() | ![]() |
| Firmware OTA | |
|---|---|
![]() |
🛠 Hardware Requirements & Wiring
- ESP32-S3 Board: An ESP32-S3 development board is required because it features native USB OTG Host capabilities. Standard ESP32 or ESP32-C3 will not work.
- USB OTG Cable: An adapter to plug the UPS USB cable into the ESP32.
Typical Dual USB-C Board Setup (e.g., Generic ESP32-S3 DevKit)
Many generic ESP32-S3 boards with two USB-C ports have hidden solder pads on the back to enable Host mode. To achieve a clean setup without manually soldering wires to GPIOs:
- Solder the "USB-OTG" pads: Find the two pads labeled
USB-OTGon the back of the board and bridge them with solder. This routes 5V power to theUSBport, enabling it to act as a Host to power the UPS USB interface. - Solder the "RGB" pads (Optional): Bridge the
RGBpads if you want to enable the built-in status LED. - Power: Connect a USB wall charger to the port labeled
COM(orUART). - Data: Connect a USB-C OTG adapter to the port labeled
USB, and plug the UPS into it.
3D Printed Case (Optional)
Turn your bare ESP32-S3 board into a finished product! We have designed a sleek 3D-printable case for this project.
Download the ready-to-print files from your favorite platform:
Source .3mf models, original .f3d CAD files, and additional photos are available in the hardware/case directory.
🚀 Getting Started
1. Flashing the Firmware
Option A: Zero-Click Install via Browser (Recommended) You can install the firmware directly from your browser without downloading any tools! 👉 Install via Browser
Option B: Manual Build via PlatformIO
- Clone this repository.
- Open the project folder in VSCode with the PlatformIO extension.
- Connect your ESP32-S3 to your PC (using the UART/UART-Prog USB port).
- Click Build and then Upload.
2. First Boot & Configuration
- On first boot (or if no valid Wi-Fi configuration is saved), the ESP32 will create an Access Point named
NUT_ESP32_Config(Password:12345678).Note: To manually force Access Point mode (e.g., to change Wi-Fi settings), plug in the ESP32 and unplug it within 3 seconds. On the next boot, the ESP32 will start in Access Point mode. (The AP no longer activates automatically upon signal loss).
- Connect your phone or PC to this Wi-Fi network.
- A captive portal should automatically open. If not, navigate to
http://192.168.4.1. - Enter your home Wi-Fi credentials and set your preferred NUT Server username/password.
- Save and reboot.
3. Usage
- Once connected to your home Wi-Fi, the ESP32 will grab an IP address from your DHCP server.
- Web Dashboard: Navigate to the ESP32's IP address in your browser to see real-time UPS stats (Battery level, Voltage, Load, etc.).
- NUT Client: Configure your Home Assistant or NAS to connect to the ESP32's IP on port
3493using the credentials you defined.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Similar Projects
Discover other similar projects and AI models.
π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.
ESPHome is a system to control your ESP32, ESP8266, BK72xx, RP2040 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Automatic integrate all Xiaomi devices to HomeAssistant via miot-spec, support Wi-Fi, BLE, ZigBee devices. 小米米家智能家居设备接入Hass集成
The Network UPS Tools repository. UPS management protocol Informational RFC 9271 published by IETF at https://www.rfc-editor.org/info/rfc9271 Please star NUT on GitHub, this helps with sponsorships!
Open source, local, and self-hosted Amazon Echo/Google Home competitive Voice Assistant alternative
Put a USB-only UPS on the network: an ESP32-S3 board and firmware that serves NUT on TCP 3493, with a web UI. No host computer, no Raspberry Pi.
Your Gateway to Embedded Software Development Excellence :alien:




