Skip to content

A python script to take Growatt RS485 ModBus data, pass it to an MQTT broken, InfluxDB and Grafana

License

Notifications You must be signed in to change notification settings

GavChap/growatt-sph-rs485-to-mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Growatt SPH-XXXX series to MQTT and Grafana

Requirements:

  • 64 bit machine capable of running Linux and pypy version 3.9+ connected to the internet. Raspberry Pi 3 / Pi Zero 2 or above should suffice, though an old laptop/desktop running Ubuntu or similar would do.

  • USB to RS485 device to connect to the inverter. Please check the inverter's manual for wiring the RJ45 cable to the USB-RS458 correctly, or purchase the correct cable.

To use:

Change config.toml to the right USB adapter for your inverter. Usually /dev/ttyUSB0. Optionally change the mapper to the JSON file for your inverter.

docker-compose up -d

Then go to <ip of raspberry pi>:3000 in a browser, and import the dashboard from grafana/dashboard.json

Home assistant discovery is supported with the MQTT integration.

Mosquitto MQTT broker is run on the same docker instance to assist with new setups.

Currently only Growatt SPH-XXXX inverters are supported, or inverters that support Growatt ModBus Version 2. You can add more modbus mappings in the python/mapping folder.

Tested with a recent Growatt SPH-3600 inverter and battery pack.

About

A python script to take Growatt RS485 ModBus data, pass it to an MQTT broken, InfluxDB and Grafana

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published