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

Battery Energy In & Out sensors for display on energy dashboard #20

Closed purcell-lab closed 2 years ago

purcell-lab commented 2 years ago

This PR includes Battery Energy In/ Out sensors and corrects the Measurement class to allow display on the energy dashboard.

purcell-lab commented 2 years ago

This should address #15

purcell-lab commented 2 years ago

not quite ready for release.

Somedays I get beautiful curves:

image

Other days I get huge glitches if I reboot HA.

image

What I suspect is happening is on reboot I get a glitch in the battery in/out counters which then throws out the energy dashboard.

image

Somehow I need to check if it is available and only record those values, and ensure I don't get these zero values into the counter, using something like the Availability Template

klaaspiet commented 1 year ago

i got this problem to. is there a way to solve this?

hif2k1 commented 1 year ago

Ok, thanks for letting me know, but this chain is a pull request that has been closed. Can you start a new issue and explain exactly what happens? Is it just on restart or randomly? Are there any error logs? Can you post any graphs or logs? Many thanks