Monitoring a Deye hybrid inverter with an ESP32

Two ways to read an inverter locally, what you need, the limits to respect and why this is a reading project, not a control project.

Many people in Ukraine run a Deye hybrid inverter with a battery, and the vendor’s cloud is not always what they want. An ESP32 can read the same data locally and send it to your own dashboard.

Two ways in

  • RS485 and Modbus: connect a TTL-to-RS485 module to the inverter’s RS485 port and read the registers over Modbus RTU. ESPHome has a Modbus controller component for this.
  • The Wi-Fi logger: many units use a Solarman stick that exposes a local network port. Some projects read it directly, which avoids wiring but depends on the stick’s protocol.

What you need to know first

Register addresses and the serial settings depend on the model and the firmware version. Get the Modbus protocol document for your exact inverter from the supplier. Do not copy register numbers from a forum post for another model.

Keep it read-only

Read power, battery state of charge, voltage and grid status. Do not write registers until you fully understand them: a wrong value can change inverter behaviour. A monitor never needs to write.

Safety

Use only the intended low-voltage communication port and never open the inverter. The battery side carries very high current, and it is not a place to experiment.

What to do with the data

Publish it over MQTT or the ESPHome API, build a dashboard, and send yourself a message when the battery falls under a level or the grid disappears.

The Deye monitor idea lists the parts. I have not tested this on a live inverter, so compare the first readings with the inverter screen.

Tools that help

  • Calculators — Free planning calculators for blackouts and off-grid power: how long a battery lasts, what capacity and inverter you need, which cable cross-section and how big a generator to buy.
  • AI Error Doctor — Paste a Serial Monitor error or a sketch and get a plain-language cause, step-by-step fix and corrected code.

Projects related to this guide

⛔ High risk

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.

Hybrid inverter monitor over RS485

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.

  • Board ESP32-C3 SuperMini
  • Level ●●● Advanced
  • Build time 3–4 h
Pick parts / kit

Quiet cooling for the inverter cabinet

Runs the cabinet fan only as fast as the temperature needs, reports overheating and warns if the fan stops, so the inverter and the battery stay cool and quiet.

  • Board ESP32-C3 SuperMini
  • Level ●○○ Beginner
  • Build time 1–2 h
Pick parts / kit
⛔ High risk

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.

LiFePO4 / battery monitor

Shows voltage, current and power of a battery bank (INA219) so you know the real charge and load during outages.

  • Board ESP32 DevKit V1 (WROOM-32)
  • Level ●●○ Intermediate
  • Build time 1–2 h
Pick parts / kit

Read next

← All guides

Comments

No comments yet. Share your experience or ask a question.

Comments are moderated.