home-assistant / frontend

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

Energy dashboard: negative "Non-fossil energy consumed" #18656

Open g1za opened 1 year ago

g1za commented 1 year ago

Checklist

Describe the issue you are experiencing

When the next day PV produciton is not enough to cover my needs I charge my battery pack at night, when the cost is the lowest, to cover the future energy needs. I noticed that the gauge shows negative percentages when this is done; maybe the dashboard assumes the battery is charged only when there is PV production? The percentage progressively goes back to something more reasonable as the day progresses.

Describe the behavior you expected

I would expect that the energy used to charge the battery is not accounted when there is no PV production as (negative) "Non-fossil energy". It should just be zero.

Correct behaviour on a normal day with no battery charge at night: Screenshot 2023-11-14 alle 17 57 21

Steps to reproduce the issue

  1. Manually charge the batteries from the grid at night (I assume any time there is no PV production)
  2. Check the energy dashboard "Non-fossil energy consumed" gauge during the day

Screenshot 2023-11-14 alle 07 35 51

Screenshot 2023-11-14 alle 14 25 17

Screenshot 2023-11-14 alle 17 55 31

Screenshot 2023-11-15 alle 00 10 48

What version of Home Assistant Core has the issue?

2023.11.2

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Tested with Firefox 119.0.1 and mobile companion app. Not a browser issue.

Which operating system are you using to run this browser?

macOS Ventura 13.6.1 and iOS 7.1. Not an OS issue

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

g1za commented 11 months ago

It really looks like HA takes the assumption battery charge can only happen when there is PV production.

IMG_3456 IMG_3457 IMG_3458 IMG_3459

github-actions[bot] commented 8 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

g1za commented 8 months ago

Issue still persistent

lfarrand commented 8 months ago

This issue is also affecting me.

I charge my batteries overnight at a cheaper rate and then discharge later in the day. I'd expect the following graph to show that the battery charging has consumed power, not produced it. At the moment it looks like the batteries are providing negative usage.

image

In the above chart I wouldn't expect any negative values and would expect the red bars to be positive.

github-actions[bot] commented 5 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

g1za commented 5 months ago

The bug is still there

shanetuohy commented 2 months ago

I've noticed this issue also and I believe it makes the energy dashboard less useful for those with batteries.

I believe g1za is correct that the energy dashboard assumes that your batteries only charge from solar energy. This is not true for many setups, and lots of people avail of cheap energy at off peak times to charge their batteries.

LizardWizardGB commented 2 weeks ago

I have the same issue, with my Growatt battery.