I track energy consumption by having an input number that I manually update once in a while by entering the reading of my electricity counter (in kWh). Then I sum up the accumulated consumption by making use of a sensor that I defined like this
What would be the best way to correct the value without having to manually modify the db? I tried using the statistics tab in the developer menu but nothing changed. Plus it seems there is a value every 15 minutes there even though I only update the sensor every few days… The counter not only affects the cumulative consumption but also the utility meter created by the Energy dashboard. I really hoped the modification would propagate
The Energy dashboard just created a utility meter liked to the accumulated consumption, that’s it.
I just need to know if there’s a smart way to modify and propagate, otherwise I’d just try to change all the weird entries in the db manually, but that’s far from optimal
I do really appreciate your help but I’m still struggling to understand how this is relevant for my problem :-)
I created an input number, then a template sensor to track accumulated consumption, then went into the Energy dashboard and added the accumulated consumption as source.
Now I just need to know what’s the easiest way to modify the mistake that I made, by entering the input number, and propagating to the other sensors.
The energy dashboard uses LTS (long term statistics). To remove an erroneous statistic previously recorded follow these instructions (first paragraph only):
As I wrote in the initial post, and really the reason why I wrote here because I knew about the Statistics Tab and didn’t fix the error because this seem to be more complicated than that.
After having “fixed” the statistic sum the state value of the template sensor still had the same old value, as I checked going directly into the statistics table of the database.
Also the values of the tab are every 15 minutes…which I don’t understand given that the statistics table has 1 hour time resolution.
I think the problem is that those data are still in the states table and they have not yet be purged, but still it is puzzling to me why correcting the statistics would only affect the sum and not the state.