Hi All,
I am experimenting with InfluxDB and Grafana to get insights in the data generated by my Home Assistant setup. And for now, I seem to get stuck on displaying readings from my smart energy meter.
Although I know this is a grafana-specific question, I am asking here, since I think the use case may be similar to what others have done. And if a solution is found/presented, it may help other HASS users who want to do the same.
My smart reader has two separate meters, one for normal tarriff and one for low tarriff during night hours and in weekends. Those are available in my HASS config thanks to the DSMR component as :
sensor.power_consumption_low
sensor.power_consumption_normal
The readings are always increasing of course, as they show the total amount of energy used over time. What I want to do is display the electricity used over a period of 24 hours for the past X days, as bars (one bar per day), where each bar consists of two stacked colors: one for the low tarriff meter, one for the normal tariff meter, so that stacked together, they show the energy used for that day (or for "today so far).
So, does anybody know how I can turn continually climbing meter readings over time during the day, into a cumulative reading for the whole day?