energy-flow-card-plus
energy-flow-card-plus copied to clipboard
[BUG] Home Consumption not matching HA Energy dashboard
Describe the bug Energy Flow Card Plus is calculating a different value for Home Consumption than the Energy Distribution card of the HA Energy dashboard.
To Reproduce I am using the Energy Period Selector Plus card to select the same date as on the Energy dashboard. The same data is being supplied by my Solis inverter at the same time to each card. The values for Solar, Grid import and export, and for Battery charge and discharge are the same between the cards but the Home value is different.
Expected behavior It is easy to work out how the HA Energy dashboard calculates Home Consumption, it is simple:
Solar + Grid import - Grid export + Battery discharge - Battery charge
I would expect the Energy Flow Card Plus to do the same.
Screenshots
Desktop (please complete the following information):
- OS: Windows 11
- Browser: Chrome
- Version: 118.0.5993.90
Please make sure all of this applies and check the checkboxes, by writing "X" inside of them.
-
[X ] I understand that this is a channel for reporting bugs, not a support forum (If you need help configuring the card, go to: Discussions).
-
[X ] I have the latest version of the card installed.
-
[X ] I have cleared my browser cache after installing, updating and configuring the card.
For me this was 'fixed' when disabling the Energy date selection option.
I have tried without the Energy Date selection but still Home isn't calculated correctly.
I see the same issue, I cannot figure out how the energy card numbers come about. Also tried disabling date selection option. Core 2023.11.0 Supervisor 2023.10.1 Operating System 11.1 Frontend 20231030.1
Using Firefox on Windows 11 and HA app on android.
I'm assuming you use custom sensors? I have been busy for a week and I cannot get my utility meters to match the values in my energy dashboard. But the values in the card matches the values in the utility meters (which are wrong).
In my example I am specifying Grid, Solar and Battery sensors. Home is a calculated value.
Also happened to me today. Its not taking into account 4,2kWh went into battery instead of into home. In other words, it can't assume you can charge battery with grid.
Wrong values:
Correct values:
Seems to me to be the same problem here :
Home shows 43Kwh
And when I click on it :
Value should be 23.7.
OS X Firefox 120.0.1
Seems to be a calculation that shouldn't be there as an entity is specified.
I'm seeing the same issue:
With "energy_date_selection: false
":
With "energy_date_selection: true
":
Clicking through in both cases:
I don't really understand the minor discrepancies in solar, grid export and battery charge/discharge figures either, but these are less critical.
EDIT: issue persists (albeit with different, but still incorrect, values) with override_state: false
. When set to false
it appears to equal the sum of the grid import and battery discharge, which is clearly incorrect (ignores solar input and grid export, and assumes battery cannot discharge to grid).
Same here - I may have opened a duplicate: https://github.com/flixlix/energy-flow-card-plus/issues/119
It seems like EiNSTeiN may have the fix for us in #125, but it is waiting for @flixlix to review and merge it for us.
Here's my actual usage, without a battery:
I have a simulated battery (https://github.com/hif2k1/battery_sim) running in my setup. When I show the information with this battery in place over exactly the same period, the home usage should be identical between the two charts. However, the usage is much higher with the battery added:
If we calculate the home usage as home usage = (grid-in + solar + battery-out) - (grid-out + battery-in) = (19.93+ 7.92 + 9.28) - (7.5 + 22.93) = 6.7 kWh which is almost the same as in the first diagram. This sort of difference is most likely rounding in either or both of the diagram and the battery simulation.