energy-flow-card-plus icon indicating copy to clipboard operation
energy-flow-card-plus copied to clipboard

[BUG] Home Consumption not matching HA Energy dashboard

Open Waggers58 opened this issue 1 year ago • 10 comments

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

energy_flow_card_plus

HA energy

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.

Waggers58 avatar Oct 26 '23 15:10 Waggers58

For me this was 'fixed' when disabling the Energy date selection option.

marcosikkens avatar Oct 31 '23 19:10 marcosikkens

I have tried without the Energy Date selection but still Home isn't calculated correctly.

Waggers58 avatar Nov 01 '23 14:11 Waggers58

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. Screenshot 2023-11-01 230617 Screenshot 2023-11-01 230636

ragg987 avatar Nov 01 '23 23:11 ragg987

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).

marcosikkens avatar Nov 05 '23 11:11 marcosikkens

In my example I am specifying Grid, Solar and Battery sensors. Home is a calculated value.

ragg987 avatar Nov 06 '23 10:11 ragg987

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: image Correct values: image

midadami avatar Nov 28 '23 07:11 midadami

Seems to me to be the same problem here : Home shows 43Kwh image

And when I click on it : image 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.

Vartkat avatar Dec 19 '23 00:12 Vartkat

I'm seeing the same issue:

With "energy_date_selection: false": Screenshot 2024-04-11 at 16 33 30

With "energy_date_selection: true": Screenshot 2024-04-11 at 16 34 11

Clicking through in both cases: Screenshot 2024-04-11 at 16 33 48

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).

BuhJuhWuh avatar Apr 11 '24 15:04 BuhJuhWuh

Same here - I may have opened a duplicate: https://github.com/flixlix/energy-flow-card-plus/issues/119

andreas-bulling avatar Apr 28 '24 06:04 andreas-bulling

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: image 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: image 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.

rrozema avatar Sep 29 '24 14:09 rrozema