flixlix / energy-flow-card-plus

An upgraded Energy Distribution Card for Home Assistant, with added features like Individual Devices and refined UI enhancements, while maintaining the Energy Dashboard's original design.
144 stars 7 forks source link

[BUG] The numbers shown on the energy flow card, are very wrong. #11

Closed lxalln closed 1 year ago

lxalln commented 1 year ago

The numbers shown on the energy flow card, are not correct for me.

I can't see where the numbers are coming from, they don't make any sense: image

Clicking on the card, which brings up the entities, shows the following: image image

The same is true for the other numbers. Using the date picker works, but the numbers are wrong for every day.

Here is the solar sensor, including attributes: image

I'm hoping this is a straightforward bug, if not, then I'm happy to look through the code and see if I can spot something. I'm hoping it'll be simpler/quicker for you to do that.

flixlix commented 1 year ago

Unfortunately I can't replicate this error. On my end, everything is working as expected. Does this work with the official energy-distribution-graph? What I did notice is that the values shown are the sum of todays and the energy from the day before. I also noticed that my sensors' attributes are a little different.

Bildschirmfoto 2023-05-17 um 13 37 44

My entity has the attribute last_reset which might be interesting if the issue comes from this.

lxalln commented 1 year ago

Interesting, now I have switched to the Total sensors, instead of the provided Today sensors, it's working. Unfortunately it's not very friendly for clicking on the entity, because it just shows the value for all time.

I imagine it's the missing last_reset that's causing the issue. A problem with the GivEnergy integration.