Sign inSign up

deroetzi/solaredge2mqtt

By deroetzi

β€’Updated 7 days ago

Service to get monitoring information from solaredge inverters to MQTT

Image
0

5.1K

deroetzi/solaredge2mqtt repository overview

⁠SolarEdge 2 MQTT Service

License Release Build Status PyPI version Discord Chat

SolarEdge2MQTT retrieves power and energy data from SolarEdge inverters via Modbus TCP or directly from the SolarEdge Monitoring platform and publishes them to an MQTT broker.
Perfect for integration with Home Assistant and other smart home systems.

It also supports:

  • SolarEdge Wallbox monitoring
  • PV production forecasting with built-in Machine Learning
  • Data logging to InfluxDB
  • Price-based consumption and export analysis

β πŸš€ Features

  • πŸ“‘ Modbus TCP communication with SolarEdge inverters
  • 🧠 Leader/follower support for up to 11 inverters
  • ⚑ Power flow monitoring, including:
    • Inverter production
    • Battery charge/discharge
    • Grid import/export
    • Consumption & generation via Modbus meters
  • πŸ•ΈοΈ MQTT integration with Home Assistant auto-discovery
  • πŸ“ˆ PV production forecasting (OpenWeatherMap + InfluxDB)
  • πŸ’‘ InfluxDB storage (raw & aggregated values)
  • πŸ’Έ Price-based savings calculation
  • πŸ”Œ SolarEdge Wallbox monitoring (REST API)
  • 🌐 Module-level monitoring via SolarEdge Monitoring (no API key needed)
  • 🐳 Native Docker & Docker Compose support

β πŸ› οΈ Configuration

All options are configured via environment variables.
Example file:
.env.example⁠

Sample values:

SE2MQTT_MODBUS__HOST=192.168.1.10
SE2MQTT_MQTT__BROKER=192.168.1.20
SE2MQTT_HOMEASSISTANT__ENABLE=true
SE2MQTT_INFLUXDB__HOST=http://influxdb:8086

⁠▢️ Quick Start (Docker Run)

docker run --name solaredge2mqtt --rm   -e SE2MQTT_MODBUS__HOST=<INVERTER_IP>   -e SE2MQTT_MQTT__BROKER=<BROKER_IP>   -e TZ=Europe/Berlin   ghcr.io/deroetzi/solaredge2mqtt:latest

⁠▢️ Quick Start (Docker Compose)

version: '3'
services:
  solaredge2mqtt:
    image: ghcr.io/deroetzi/solaredge2mqtt:latest
    container_name: solaredge2mqtt
    env_file:
      - .env
    restart: unless-stopped

β πŸ“‘ Community & Support

Tag summary

Content type

Image

Digest

sha256:96b096c2f…

Size

118.8 MB

Last updated

7 days ago

docker pull deroetzi/solaredge2mqtt