A UPS->MQTT gateway package to run on an ESP32. Requires a chip with USBOTG, such as the ESP32-S3.
Includes captive portal wifi and HomeAssitant auto discovery.
How to use:
Requires an installation of Platformio. Clone the repository. Update the platformio.ini to match your chip, port IDs, and flash size. Update your partition table if needed. run "pio run -t upload" and program the chip.
The system will boot and provide a captive Wifi portal with the SSID ESP32-Setup with the password "configureme". Connect to this wifi. On the captive portal screen, enter your wifi SSID, password, and the desired hostname for the module. The hostname will be be used as the device name in the Home Assistant configuration. The ESP32 will reboot and connect to the local wifi.
Connect to the new local IP address (get it from your router) with a browser.
Enter the hostname/ip of your home assistant MQTT server, the username, and password for it.
The unit will reboot again and hopefully successfully connect to your HA MQTT server.
I wrote this package because I have several UPSen that are not local to a computer to run NUT on and I didn't want to drop a bunch of coin on single-purpose RasPi boards. An ESP32-S3 is much cheaper.
I welcome updates, additions, bugreports, or PRs.