#Recalculate energy cost

1 messages · Page 1 of 1 (latest)

honest siren
#

Hey everyone! Is there a way to reset the price counter calculated by the energy dashboard? I had a sensor showing the current electricity price in cents, but the energy dashboard expects a sensor showing EUR/kWh. Now the cost is 100x too high for the past few days 😄

Is there a way to recalculate?

reef solar
#

Not really. You can wipe and start over starting from now, or you have to manage your database directly.

#

If you're really comfortable with sqlite you could probably figure out how to edit it.

honest siren
#

Thanks! I am already browsing the sqlite database using the addon. But I cannot find the data there. Where does the energy dashboard store the data?

reef solar
#

Statistics table

honest siren
#

I found the way to fix sensor readings, but not the price.

#
reef solar
#

If you use a price entity HA creates a _cost entity for you, named similarly to its consumption entity.

#

You'll find that in the statistics table

honest siren
#

lemme check it out immediately

#

so I get the info from statistics_meta

#

there I found tasmotafridge_energy_today_cost

#

ok, done, thanks