Hello,
my wifi power meter at the electricity meter send wrong data sometimes.
(i think it depends on the position of the IR diodes).
And then the total counter of kilowatt fall down to 0.
When the power meter send the right data again, HA energy dashboard add up the difference from 0 to the current total counter of kilowatt.
counter fall down
normal power consumption
wrong power consumption
To avoid this problem i would like to have a comparision with the previous value.
But i am not an coding expert.
If total counter is smaller than previous total counter then use previous total counter, else use total counter.
At the moment i have only a template sensor to change the value from watt to kilowatt.
Thanks and regards
Haegaer