AHOY-DTU (https://github.com/grindylow/ahoy) delivers power metrics from inverter via MQTT to a MQTT (mosquitto) server. Telegraf subscribes that topic (“inverter/#”) and writes everything to InfluxDB. The Dashboard consumes data from InfluxDB.
This dashboard was originally published here: https://grafana.com/grafana/dashboards/16850-pv-power-ahoy/
Inverter -> Ahoy-DTU -> MQTT (mosquitto) -> Telegraf -> InfluxDB -> Grafana
Warning: The connection Ahoy-DTU -> MQTT (mosquitto) is currently insecure (no SSL possible).
Dashboard content: Two sections, an overview and a detail area with all metrics that might be interesting for you.
Enjoy dashboard and producing energy (dashboard is configured for one inverter and two panels east/west - please adjust to your needs)
Dashboard variables:
servers = [“tcp://localhost:1883”]
topics = [ “ahoyTopic/#” ]
qos = 0
connection_timeout = “30s”
username = “USERNAME”
password = “PASSWORD”
data_format = “value”
data_type = “float”
[[inputs.openweathermap]]
app_id = “YOUR_API_KEY”
city_id = [“CITY1”, “CITY2”, “CITY3”]
fetch = [“weather”, “forecast”]
interval = “10m”
Parsing MQTT data a little bit more detailed, this could be helpful for you (THX @LeSpocky, https://github.com/lumapu/ahoy/issues/517#issuecomment-1382729683)
servers = ["tcp://127.0.0.1:1883"]
topics = [
"ahoy-dtu/+/+/+",
"ahoy-dtu/+/+",
]
data_format = "value"
data_type = "float"
[[inputs.mqtt_consumer.topic_parsing]]
topic = "ahoy-dtu/+/+/+"
measurement = "measurement/_/_/_"
tags = "_/name/ch/field"
[[inputs.mqtt_consumer.topic_parsing]]
topic = "ahoy-dtu/+/+"
measurement = "measurement/_/_"
tags = "_/name/field"
[[processors.pivot]]
tag_key = "field"
value_key = "value"
Optional: I added some weather metrics to the dashboard (e.g. cloudiness of the region my PV/inverter is located). Please check https://grafana.com/grafana/dashboards/9710-open-weather-map/ to understand how to get weather metrics via Telegraf to your InfluxDB. I set the parameter to fetch = [“weather”, “forecast”] to get some cloudiness forecast as well, that’s why there are two variables (Country and City) to specify your location to get the right one in case you collect weather metrics for more than a single location.
Feel free to feedback!