esphome-must-inverter
ESPHome config to monitor and control a Must inverter via RS485
git clone https://github.com/vladyspavlov/esphome-must-inverter.gitvladyspavlov/esphome-must-inverterMust Solar Hybrid Inverter ESPHome Monitor
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.
Key Features
-
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.
Prerequisites
-
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.
Connection Scheme
For a visual reference, see the wiring diagram below. Courtesy of @Rogero-. More details and photos are in Discussion #9.
Tested Models
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)
- PV18-2012 ECO (Thanks to @Heet80)
ESP32-C6 with On-Board LCD Display
In addition to the headless configurations, there is a dedicated config for the Waveshare ESP32-C6-LCD-1.47 board (esp32-c6-pv19-display.yaml). It adds a local ST7789 status screen (battery SOC with color coding, PV/load power, battery voltage, IP and Wi-Fi info), a WS2812 SOC indicator LED, and live UART activity arrows — so you can read key metrics without opening Home Assistant. An optional SDL host simulator (simulator/) lets you preview the UI on your computer without flashing hardware.
See the ESP32-C6 LCD display setup guide for wiring diagrams and details. Contributed by @set-st.
Demo Video
Watch a live demonstration on YouTube.
Usage
- Clone this Repository: Get all YAML files and relevant assets.
- Edit the YAML Configuration: Replace
wifi_ssid,wifi_password,api_key, andota_passwordwith 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.
Notes
- 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.
License
This project is released under the MIT License. You are free to use, modify, and distribute this code as needed.
References
more like this
PowerDisplayESPHome
A small display for ESPHome and Home Assistant to retrieve the current house consumption and energy price via a sensor…