home-assistant / frontend

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

Incorrect subtraction of energy send to grid #20767

Closed AlexJacu closed 2 months ago

AlexJacu commented 6 months ago

Checklist

Describe the issue you are experiencing

When i look at Energy Dashboard, i found, thar the amount of "Netz gesamt" and "Aus dem Netz verbraucht" are not correct. I have to pay for all energy i have received from network and get much less for energy i send to network. So the calculation for money is correct. But the amount of energy i received from network is NOT reduced if i send energy back. Therefore the other calculations for self consumption are perhaps also not correct. Screenshot_20240509-111159

Describe the behavior you expected

The amount of energy received from grid is not redused, if I send energy back to grid. Consumption and feed-in do not happen at the same time and therefore do not cancel each other out.

Steps to reproduce the issue

1.add a powermeter two-way

  1. Add same powermeter using send to grid
  2. Add Photovoltaik energy meter
  3. Screenshot_20240509-112053 Screenshot_20240509-112021

What version of Home Assistant Core has the issue?

core-2024.5.2

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Doesn't matter

Which operating system are you using to run this browser?

Doesn't matter

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

I would prefer to add a possibility in energy Dashboard To declare Whether the electricity fed into the grid should be deducted from the electricity purchased or not.

ChristophCaina commented 5 months ago

This graph is working as intended, because it is showing the net consumption you've taken from the grid. There are several discussions in social media and the forum about this - especially for Installations in Germany, where we have two way meters and count the grid export independend from the grid import... but the dashboard is basically showing exactly what it is designed for.

An option that could be considered would be a setting, where the user could decide, if the energy dashboard should show the NET import/export or import / export independend from each other.

grafik grafik

c7n commented 5 months ago

Hi ChristophCaina, maybe I can step in into this discussion as well. First of all, thank you for your explanation. I still struggle / missunderstand your answer.

For me it is confusing that the consumed energy from the grid is reduced by the energy I've sent to the grid. When I have consumed 8 kWh and I have sent 2 kWh back to the grid I still have consumed 8 kWh from the grid and not 6 (8 kWh from grid - 2 kWh to grid). I think it is hard to understand what is done here. Also: In the row of "Netz gesamt" (as it says) I would expect the 8 kWh (because I have consumed 8 kWh from the grid). Furthermore, when I have entered a price for the energy from the grid (and no price set for the energy to the grid) I get displayed the same price for the 8 kWh as well as for the 6 kWh. That is very confusing. It would be even more confusing, if you have maintained a price for the energy sent back to the grid.

What do you / others think about that?

Thank you and BR, Christian

ChristophCaina commented 5 months ago

Hi @c7n, the idea behind the energy dashboard - and the way how it is calculating the data is pretty simple. First of all, I agree with your statement, that you have still consumed 8 kWh and not 6 kWh.

Here, we need to differenciate between the different graphs. The gauge will always show your production compared to your consumption of the grid - so for example, if you have taken 6 kWh from the grid, but also exported 6 kWh to the grid, you are Net zero, because you just produced exactly the same amount of energy than you have taken. It doesn't matter, when you have imported or exported the energy.

The Idea behind this to optimize your energy usage in a way to be grid neutral - the goal should be to have a zero balance in production and import - or, like in my example to be net Positive, which means, I export more to the grid than I import in total.

The same applies for "Net gesamt".

There are multiple countries where your exported energy will be substracted from your imported energy. It's mostly in Germany and some other countries where this will be calculated differently... And I agree, that the energy Dashboard could provide some funcionallity to consider those setups - but in this case, this would probably be a feature request / architecutural discussion, rather than a bug report - because right now, the Dashboard itself is working as it was intended and designed to (in my opinion - and I am using the dashboard since it was introduced in 2021)

AlexJacu commented 5 months ago

I agree that this will be a design change at not a bug. So I suggest that we starte change in the energy dashboard to reflect the different country settings subtraction of energy or not. I think that can be easily done with a Switch subtract or not subtract the exported energy from total energy. Additional, the amount the household have to pay is not correct if substraction does not reflect local behaviour.

So i would support a design change.

Mit freundlichem Gruß A. Jacubowsky

Jacubowsky EDV Inhaber: Alexander Jacubowsky Milcheshohl 27, 61462 Königstein

E-Mail : @.*** Website: www.AJEDV.de Fon : +49 (6174) 2557 81 2 Mobil : +49 (179) 50 70 90 9 Fax : +49 (6174) 2557 81 3

von unterwegs gesendet, bitte entschuldigen Sie evtl. Fehler und die Kürze.


Von: Christoph @.***> Gesendet: Freitag, 31. Mai 2024 13:19 An: home-assistant/frontend Cc: Alexander Jacubowsky; Author Betreff: [x-bulk] Re: [home-assistant/frontend] Incorrect subtraction of energy send to grid (Issue #20767)

Hi @c7nhttps://github.com/c7n, the idea behind the energy dashboard - and the way how it is calculating the data is pretty simple. First of all, I agree with your statement, that you have still consumed 8 kWh and not 6 kWh.

Here, we need to differenciate between the different graphs. The gauge will always show your production compared to your consumption of the grid - so for example, if you have taken 6 kWh from the grid, but also exported 6 kWh to the grid, you are Net zero, because you just produced exactly the same amount of energy than you have taken. It doesn't matter, when you have imported or exported the energy.

The Idea behind this to optimize your energy usage in a way to be grid neutral - the goal should be to have a zero balance in production and import - or, like in my example to be net Positive, which means, I export more to the grid than I import in total.

The same applies for "Net gesamt".

There are multiple countries where your exported energy will be substracted from your imported energy. It's mostly in Germany and some other countries where this will be calculated differently... And I agree, that the energy Dashboard could provide some funcionallity to consider those setups - but in this case, this would probably be a feature request / architecutural discussion, rather than a bug report - because right now, the Dashboard itself is working as it was intended and designed to (in my opinion - and I am using the dashboard since it was introduced in 2021)

— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/frontend/issues/20767#issuecomment-2141810455, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFMI2P5PMAYLXNPRIDFNGLDZFBMFPAVCNFSM6AAAAABHPQW2L2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBRHAYTANBVGU. You are receiving this because you authored the thread.Message ID: @.***>

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