home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
3.82k stars 2.61k forks source link

Energy dashboard shows nonexistent energy flows in the 'Energy distribution' card #21326

Open fencepost-error opened 1 week ago

fencepost-error commented 1 week ago

Checklist

Describe the issue you are experiencing

The 'Energy distribution' card shows nonexistent power flows, best illustrated via this screen shot:

energy_card

This shows energy flowing from the solar panels to the grid and the house, even though it's the middle of the night and the last solar production, shown in the 'Energy usage' card next to it, was around 5pm. This is the out-of-the-box config with no customisation done apart from setting the sensors as per the Enphase config page.

Describe the behavior you expected

As a sanity-check I installed Power Flow Card Plus, again the default out-of-the-box config, which shows:

card_plus

In this case only the flow from the grid to the house is shown, there are no nonexistent flows from the solar panels to the grid or house.

Steps to reproduce the issue

  1. Go to the Energy dashboard

At the moment I'm not sure what other information would be needed since this is the out-of-the-box config, but I can provide more details on any specific issues.

What version of Home Assistant Core has the issue?

2024.7.1

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Firefox 127.0.2 (64-bit)

Which operating system are you using to run this browser?

Windows 10

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

karwosts commented 1 week ago

It's not intended to be a realtime display, it simply reflects the time period that was selected.

E.g. if you select an entire year of data, there will be a flow dot displayed if there was any transfer from solar to grid during that entire year, regardless of what is happening at that current moment.

For a single day time period, the animation represents the amount of energy transfer that occured over the entire displayed day.

franstempelaars commented 1 week ago

I have the same kind of problem with the same HA version. The energy dashboard stops recording the graph at about 8.15 AM and only starts after a restart of home assistant. No idea why

ChristophCaina commented 1 week ago

I have the same kind of problem with the same HA version. The energy dashboard stops recording the graph at about 8.15 AM and only starts after a restart of home assistant. No idea why

the problem with the recorder stopped is different from the topic mentioned here and you should consider the following forum thread: https://community.home-assistant.io/t/psa-2024-7-recorder-problems/746428/1

fencepost-error commented 1 week ago

For a single day time period, the animation represents the amount of energy transfer that occured over the entire displayed day.

This seems rather misleading, if I just bring up the Energy dashboard without anything selected, i.e. no specific time period chosen, it shows flows that don't actually exist. In particular if what it's showing is any flow that happened at any point in the last 24 hours/day then it may as well just animate all connectors all the time because there's bound to be some flow somewhere in the last 24 hours/day.