openDTU [Flux]
Dashboard & Telegraf config to collect and visualize Data from a Hoymiles MIcroinverter.
- It is assumed that you have openDTU (https://github.com/tbnobody/OpenDTU) connected to a Hoymiles Microinverter and configured it to drop the collected data to an MQTT Broker. It is also assumed that you have a telegraf running somewhere, that can connect both to your MQTT and your InfluxDB Server.
- Use the telegraf collector config and adjust mqtt server if needed. If you have more than two DC inlets in your inverter, add
solar/+/3/+
and"solar/+/4/+
. Also adjust MQTT Credentials / Certificates if needed. - Verify that you have data in your default Bucket (in measurement
mqtt_consumer
) - Import Dashboard to Grafana, select datasource, bucket and inverter.
Because grafana.com messed up their website, I include the collector Config here in the readme:
[[inputs.mqtt_consumer]]
servers = ["tcp://localhost:1883"]
topics = [
"solar/+/status/+",
"solar/+/0/+",
"solar/+/1/+",
"solar/+/2/+"
]
data_format = "value"
data_type = "float"
[[inputs.mqtt_consumer.topic_parsing]]
topic = "solar/+/+/+"
tags = "_/serial/channel/field"
[[processors.pivot]]
tag_key = "field"
value_key = "value"
Data source config
Collector config:
Upload an updated version of an exported dashboard.json file from Grafana
Revision | Description | Created | |
---|---|---|---|
Download |