Sign inSign up

stefanroeck/sungrow

By stefanroeck

•Updated about 1 year ago

Pulls data from a sungrow inverter and publishes data to a mqtt server.

Image
0

434

stefanroeck/sungrow repository overview

⁠stefanroeck/sungrow

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⁠

⁠Usage

⁠Docker

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):

  • Authentication using user/password is required
  • Protocol needs to be wss instead of ws (TLS)

⁠MQTT

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
}

⁠Supported inverters

Tested Sungrow inverters with WiNet-S dongle:

Tag summary

Content type

Image

Digest

sha256:a49876912…

Size

8.3 MB

Last updated

about 1 year ago

docker pull stefanroeck/sungrow