Pulls data from a sungrow inverter and publishes data to a mqtt server.
434
Tiny application to access real-time data from Sungrow inverters with WiNet-S dongle over WebSocket and publish data to a mqtt server.
Github: https://github.com/stefanroeck/sungrow-go
docker-compose.yml:
version: "3.9"
services:
sungrow-go:
image: stefanroeck/sungrow:latest
restart: unless-stopped
environment:
- SUNGROW_PROTOCOL=wss
- SUNGROW_HOST=${SUNGROW_HOST}
- SUNGROW_PORT=443
- SUNGROW_USER=admin
- SUNGROW_PASSWORD=secret
- MQTT_URL=${MQTT_URL}
- MQTT_USER=${MQTT_USER}
- MQTT_PASSWORD=${MQTT_PASSWORD}
- MQTT_TOPIC="sungrow/stats"
- MQTT_CLIENTID=sungrow
- MQTT_SKIP_SSL_VERIFY=false
- SLEEP=30
For newer firmware versions (around 2024/2025):
Sample Message:
{
"activePower": 0.99,
"arrayInsulationResistance": 3000,
"busVoltage": 693.6,
"currentPhaseA": 1.5,
"currentPhaseB": 1.4,
"currentPhaseC": 1.4,
"gridFrequency": 49.97,
"inverterTemp": 34.7,
"status": "running",
"sunPower": 0.99,
"todayEnergy": 2.2,
"totalEnergy": 6584.9,
"totalRunningTime": 1948,
"voltagePhaseA": 232,
"voltagePhaseB": 235.2,
"voltagePhaseC": 236
}
Tested Sungrow inverters with WiNet-S dongle:
Content type
Image
Digest
sha256:a49876912…
Size
8.3 MB
Last updated
about 1 year ago
docker pull stefanroeck/sungrow