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.
155 stars 8 forks source link

[BUG] Wrong values on random days by A LOT #98

Open midadami opened 12 months ago

midadami commented 12 months ago

Describe the bug Values on solar energy are wrong.

To Reproduce No idea how to reproduce as its happens randomly. Happens less than once a week. My guess taking into account the value of the wrong number is that it happens when the sensors become unavailable due to any temporary problem.

Expected behavior The solar energy value indicates I posses a energy plant so big I could power a small town.

Screenshots Card (wrong value): image Energy dashboard (correct value): image

Card (wrong value): image Energy dashboard (correct value): image

Card (wrong value): image Energy dashboard (correct value): image

Desktop (please complete the following information): Home Assistant Desktop APP (its the same on any platform)

Smartphone (please complete the following information): Home Assistant Android/IOS APP (its the same on any platform)

Additional context. I use 2 sensors to get the solar energy as I have 2 inverters so each sensor belongs to each inverter. One currently has a number of aprox 3,950kWh Other currently has a number of aprox 15,930kWh Montly values are correct even if that month has a day with wrong value.

Thanks a lot for this amazing card!!

Please make sure all of this applies and check the checkboxes, by writing "X" inside of them.

Trogz64 commented 11 months ago

I believe I am having the same issue, so just to add my findings and +1 to the unavailable sensor theory - My tumble dryer sensor lost connection for about 26 hours (integration initialisation issue) and when it reconnected the value in the card is showing the all time value. I'm not sure what the exact cause is as I have had sensors drop out and reconnect before without issue. Perhaps it is the length of time or being over the change of a day?

The card is configured to use the "Today Energy" sensor. The "Month" and "Year" date selections are unaffected and show the correct values - not doubled due to one day reporting the all time value - It is only the single day date selection which is affected. Edit: It seems to show an incorrect value whenever the date selection does not include a previous "correct" value. e.g., if the sensor was unavailable on the 26th Nov, any date selection starting on the 26th will include the all time total value at that date plus the rest of the selection, but including a date before the 26th where there was sensor data will show the correct total for the duration selected (defaulting the sensor to 0 kWh when it was not available - as expected).

Energy flow card (incorrect): image Sensor history: image image The energy dashboard reports the value correctly as 0 kWh: image

dcd-projectrose commented 7 months ago

Likely to be same as issue I report #115