I’m using Grafana v10.0.3 in a Docker container on Arch Linux.
I’m trying to display my irregular power readings in Watt as kWh.
Since my readings are irregular I’m taking the mean of a time interval of an hour to get Wh using the following:
SELECT mean(“value”) FROM “autogen”.“apower” WHERE $timeFilter GROUP BY time(1h) fill(null)
Because I want to display the power consumption in kWh I divide the value by 1000 but Grafana automatically labels the values as mWh. The unit is set to just Watt-hours.
I expected Grafana to display the values as kWh.
The values are coming from s Shelly Plus Plug S via MQTT and are fed into an InfluxDB using Node-RED.
Sorry if I made an obvious mistake, calculating power and using Grafana is both new to me.