Reads power, battery state and grid status from a hybrid inverter over its RS485 Modbus port and publishes them locally, with no vendor cloud in between.
Power & batteriesBoard: ESP32-C3 SuperMiniLevel: ●●●⏱ 3–4 h
High-current battery: a short circuit can start a fire. Put a fuse next to the battery plus, use thick enough wires and respect the BMS limits.
Read the inverter, do not drive it
A hybrid inverter already knows everything you want: load, battery state, grid status. Many models expose it on an RS485 port, and an ESP32 with a small TTL-to-RS485 module can read it over Modbus RTU and pass it to MQTT or ESPHome. The result is a local dashboard that still works when the vendor’s cloud does not.
Get the register map for your exact model and firmware from the supplier; addresses differ between families.
Match the baud rate, parity and slave address to the inverter’s settings, and set a read timeout so a missing reply does not freeze the loop.
Poll every few seconds, not every few milliseconds, and read blocks of registers at once.
Power the board from a separate supply, not from the inverter’s communication port.
Keep it read-only. See the Deye guide for the other route through the Wi-Fi logger.
Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.
Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.
Records every outage with start, end and duration, builds statistics per day and week, and shows how closely the real power matches the published schedule.
Comments
No comments yet. Share your experience or ask a question.