I am trying to visualize power comsumption and power delivery for my house/solar plant in Grafana.
Data is stored in a influxdb.
What I store in the influxdb are the meter readings for consumption and delivery.
So I thought I would get the sum of power consumption and delivery per day with a select difference in grafana.
SELECT difference(mean("value")) / 1000 FROM "PV_sum_consumed" WHERE $timeFilter GROUP BY time(1d) fill(null)
SELECT difference(mean("value")) / 1000 FROM "PV_sum_produced" WHERE $timeFilter GROUP BY time(1d) fill(null)
This will give me the following: (sorry for German screenprints)
power consumption = Netzbezug
power delivery = Einspeisung
But when I calculate the max value “manually” I will get other sums.
SELECT max("value") / 1000 FROM "PV_sum_consumed" WHERE $timeFilter GROUP BY time(1d) fill(null)
SELECT max("value") / 1000 FROM "PV_sum_produced" WHERE $timeFilter GROUP BY time(1d) fill(null)
e.g. 25.01. consumption: 12494,6 kWh -12485,7 kWh = 8,9 kWh In comparison to above chart 6,9
Where is the error in my reasioning?
3 posts - 2 participants