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.