Skip to content

Latest commit

 

History

536 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SolarEdge 2 MQTT Service

License Release Build Status PyPI version Discord Chat Buy Me a Coffee

SolarEdge2MQTT reads power data from a SolarEdge inverter over Modbus TCP and publishes it to an MQTT broker. It is built for home automation: real-time power flow, battery state, grid import and export, and meter readings, all as MQTT topics that Home Assistant can discover on its own.

Beyond the inverter itself, the service can log in to your SolarEdge monitoring account to read module-level production and control an EV charger, keep a local history in a SQLite file, and forecast tomorrow's production from that history and live weather data.

📖 Full documentation: deroetzi.github.io/solaredge2mqtt

🔧 Features

  • 📡 Modbus communication with SolarEdge inverters over TCP
  • 🧠 Leader/follower support for cascaded and physically separate multi-inverter setups
  • Power flow monitoring: inverter production, battery charge and discharge, grid import and export, consumption and generation from the Modbus meters
  • 🔋 StorEdge battery control, including remote charge and discharge limits
  • 🕸️ MQTT integration with optional TLS, for Home Assistant and anything else
  • 🔄 Home Assistant auto discovery
  • 💡 Local history in a SQLite database, no external service required
  • 📈 PV production forecasting from a machine learning model, fed by the local history and OpenWeatherMap
  • 💸 Price-based savings calculation for consumption and export
  • 🔌 SolarEdge Wallbox monitoring over its REST API
  • 🌐 Module-level monitoring through the SolarEdge monitoring site, no API key needed
  • 🚗 EV charger monitoring and control through the same account
  • 🐳 Docker and Docker Compose images for linux/amd64 and linux/arm64

🚀 Quick Start

pip install -U solaredge2mqtt

# Writes example config files into ./config/ and exits
solaredge2mqtt

Fill in the inverter address and your MQTT broker in config/configuration.yml, put the broker password in config/secrets.yml, and start it again.

Or with Docker:

mkdir -p config
docker run -d --name solaredge2mqtt \
    -v $(pwd)/config:/app/config \
    -e "TZ=Europe/Berlin" \
    --restart unless-stopped \
    ghcr.io/deroetzi/solaredge2mqtt:latest

Step by step, with every option explained: Installation guide

📚 Documentation

Guide What it covers
Getting Started Installation, first configuration, running as a service
Configuration Reference Every option, one page per service
Deployment Docker, Docker Compose, the full stack with Grafana
Migration Upgrading to 3.0.0, moving an InfluxDB history into the local storage
Troubleshooting Known symptoms and what to do about them
Architecture Decisions Why the project is built the way it is
Contributing Development setup, tests, pull requests

💬 Contact and Feedback

For questions and discussion, join us on Discord.

Discord Banner

Ideas, suggestions and problems are welcome as an issue.

❤️ Support

If you like this project, I would appreciate a small contribution.

BuyMeCoffee

About

The SolarEdge2MQTT service reads power data from a SolarEdge inverter and publishes it to an MQTT broker. It is designed for integrating SolarEdge inverters into home automation systems or other applications using MQTT for data exchange, providing real-time monitoring of power flow and other parameters via Modbus.

Topics

Resources

Contributing

Stars

20 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages