Prometheus exporter for metrics scraped from a Sungrow solar inverter (over modbus)
Find a file
2024-07-27 13:12:33 +10:00
modbus go fmt ./... 2023-05-19 17:50:26 +10:00
.gitignore ignore ds_store 2021-01-24 15:50:49 +11:00
Dockerfile Fix from/as casing 2024-07-08 20:04:45 +10:00
go.mod Update tariffs 2024-07-08 20:03:43 +10:00
go.sum Update tariffs 2024-07-08 20:03:43 +10:00
LICENSE Add LICENSE, fix minor lints 2023-01-07 16:41:15 +11:00
main.go hardcode inverter address 2024-07-27 13:12:33 +10:00
README.md Add Buildkite badge 2023-05-19 17:51:30 +10:00
sungrow Update tariffs and vendor 2023-07-14 10:16:30 +10:00
sungrow.go Add LICENSE, fix minor lints 2023-01-07 16:41:15 +11:00
sungrow_map.go Keep skipped values, split reads more 2023-01-22 13:51:05 +11:00
tariff.go Update tariffs 2024-07-08 20:03:43 +10:00

sungrow

Build status Go Reference

A Prometheus exporter that scrapes a Sungrow inverter for information about solar generation, usage, and other fun data. It includes a (minor) fork of github.com/goburrow/modbus (to enable working with Sungrow's "encryption").

This is part of my own custom solar monitoring setup, so has a few quirks suited to me. In particular, it exports the necessary tariff values to compute import cost and export value - if you are using Aurorar Tariff 93 in Tasmania. It defaults to connecting to the IP address of the inverter on my home network.

⚠️ There is ABSOLUTELY NO WARRANTY provided with this code. If for whatever reason it blows up your inverter, THAT'S ON YOU.

Building

Docker is recommended:

$ docker build -t sungrow .