This repository provides an optimized ESPHome YAML configuration for monitoring and controlling Must Solar Inverters. By leveraging an ESP32 (or ESP8266) via Modbus communication, you can gather comprehensive real-time data, including battery, PV, and inverter operational metrics. This solution integrates seamlessly with Home Assistant for streamlined solar energy management and smart home automation.
-
Real-time Solar Monitoring
- Battery Voltage: Track battery voltage, current, and power to maintain optimal energy storage and usage.
- PV Charger Metrics: Monitor PV charger states, voltage, current, and power for accurate solar energy insights.
- Inverter Status: Check grid status, load power, bus voltage, and more for complete operational awareness.
- Temperature Readings: Gather temperature data (radiator, transformer, etc.) to ensure efficient cooling and system safety.
-
Detailed Energy Metrics
- Charging & Discharging: Log and review accumulated power for charging and discharging cycles.
- Buying & Selling Power: Monitor power bought from and sold back to the grid for better cost management.
- Load Consumption: Measure load consumption and track long-term energy usage trends.
- AC/DC Power & Energy: Access aggregated AC and DC values in your ESPHome or Home Assistant dashboards.
-
Customizable Controls
- Energy Use Modes (e.g., Solar-first, Utility-only) to optimize energy usage strategy.
- Charger Source Priorities: Tailor charger source (grid, solar, battery) for flexible power management.
- Voltage Configurations: Adjust voltage settings to suit specific battery and system requirements.
-
Hardware
- ESP32 Board: Recommended for robust Wi-Fi/Bluetooth performance (ESP8266 also supported).
- Example: WT32-ETH on AliExpress
- RS485 to UART Board: For reliable Modbus communication.
- Example: AliExpress
- USB Cable (Optional): Connect via USB if supported by your inverter model.
- Example: AliExpress (works with PH(PV)18-5248 Pro, may vary for others)
- ESP32 Board: Recommended for robust Wi-Fi/Bluetooth performance (ESP8266 also supported).
-
Software
- ESPHome: Official website
- Home Assistant (Optional but recommended): For advanced automation and monitoring features.
For a visual reference, see the wiring diagram below. Courtesy of @Rogero-. More details and photos are in Discussion #9.

This configuration supports all PV/PH18 and PV19 series Must Solar Inverters. Community-confirmed models include:
- PV18-5248 Pro
- PH18-5248 Pro
- PV18-3024 VHM (Thanks to @gjury)
- PV18-3224 VPM
- PV18-1012 VPM (Thanks to @sstepane)
- PV19-6248 EXP (Thanks to @sergeysaley)
Watch a live demonstration on YouTube.
- Clone this Repository: Get all YAML files and relevant assets.
- Edit the YAML Configuration: Replace
wifi_ssid
,wifi_password
,api_key
, andota_password
with your actual credentials. - Flash Your ESP32: Use ESPHome to upload the YAML configuration to your board.
- Hardware Connection: Plug the ESP32 into the inverter’s communication port (RS485 or USB, depending on your inverter model).
- Monitor Data: View real-time metrics in Home Assistant or the ESPHome dashboard.
- You can adjust logging levels (
INFO
,DEBUG
) in the YAML file to balance performance with diagnostic detail. - Compatibility may vary across inverter models; always double-check your inverter’s documentation.
This project is released under the MIT License. You are free to use, modify, and distribute this code as needed.