Skip to content

ESPHome config to monitor and control a Must inverter via RS485

License

Notifications You must be signed in to change notification settings

vladyspavlov/esphome-must-inverter

Repository files navigation

Must 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).
    • RS485 to UART Board: For reliable Modbus communication.
    • 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)
  • 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.

Connection scheme picture

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)

Demo Video

Watch a live demonstration on YouTube.

Usage

  1. Clone this Repository: Get all YAML files and relevant assets.
  2. Edit the YAML Configuration: Replace wifi_ssid, wifi_password, api_key, and ota_password with your actual credentials.
  3. Flash Your ESP32: Use ESPHome to upload the YAML configuration to your board.
  4. Hardware Connection: Plug the ESP32 into the inverter’s communication port (RS485 or USB, depending on your inverter model).
  5. 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

About

ESPHome config to monitor and control a Must inverter via RS485

Topics

Resources

License

Stars

Watchers

Forks

Languages