home-assistant / frontend

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

Energy Dashboard shows Battery Day Charge as negative value #19357

Closed firebowl closed 9 hours ago

firebowl commented 10 months ago

Checklist

Describe the issue you are experiencing

In the Energy Dashboard, the energy that has been charged into the battery is displayed as negative. However, the actual values are positive.

image

image

image

Describe the behavior you expected

I would expect a battery charge to be displayed as a positive value.

Steps to reproduce the issue

Just configured the values for Battery Charge and Battery Discharge.

image

What version of Home Assistant Core has the issue?

2024.1.2

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Microsoft Edge Version 120.0.2210.121 (Offizielles Build) (64-Bit)

Which operating system are you using to run this browser?

Windows 11 Microsoft Windows [Version 10.0.22631.3007]

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 10 months ago

Believe this is intended. Positive values are inputs to your home energy, and negative values are debits from your home energy.

Similarly to how energy from the grid is positive, and energy returned to the grid is negative.

timaseth commented 9 months ago

I have a similar, should I say 'issue'!

image

Energy IN is what is stored in battery - may be from solar or grid (in which case, paid for). Energy Out indicates energy from the battery to home grid (essentially, free).

IN - OUT = Effective cost. For this to be a positive (so that it gets added to the other Gas, Water and Grid costs), IN > OUT and therefore IN has to be positive. Just how I view it...

PS: The Grid Import and Export works as intended..

image
tbrasser commented 8 months ago

Same here, I don't have solar, and am testing a simulated battery. I would assume to see charging (into the battery) as consumption, but it shows negative.

tbrasser commented 8 months ago

Adding a dummy (always 0) solar production template sensor helped a bit. Only thing that seems to be missing now is my grid export, resulting in all energy out of the battery counted as house consumption.

Screenshot_2024-03-06-19-07-46-004_io.homeassistant.companion.android.jpg

So is this the intended behavior (and thus my issue is with the simulated grid export of the battery_sim battery I'm testing)?

Robinies commented 5 months ago

Is there any update/news on this issue? I feel like I still want my usage to be positive when the battery is charging of the grid. Looking for solutions...

github-actions[bot] commented 1 week 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.