hif2k1 / battery_sim

Home assistant home battery simulator - allows you to model how much energy you would save with a home battery
106 stars 13 forks source link

longterm values reset #50

Closed JanDetrez closed 1 year ago

JanDetrez commented 1 year ago

I see the long term values resetting for unknown reason.

Can test if you want to dig more.

resetvalue

hif2k1 commented 1 year ago

If it was associated with a restart it is possible it is due to the change I made to fix the energy dashboard problem. Energy dashboard seemed to be giving wrong readings around the time of restarts so I made the sensor values unavailable till all the values were restored, but if there were two resets in quick succession the "unavailable" value could replace the true value. Sorry. I will try and resolve this for the future.

JanDetrez commented 1 year ago

Hi, thanks for the reply.

Looking back, I can confirm it was related to consecutive restarts. Thanks for finding a way to resolve this in the future!

hif2k1 commented 1 year ago

This should be fixed on the latest release.