Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Active energy production and consumption swapped in Historic view #3033

Open
chpoulter opened this issue Feb 27, 2025 · 0 comments
Open

Active energy production and consumption swapped in Historic view #3033

chpoulter opened this issue Feb 27, 2025 · 0 comments

Comments

@chpoulter
Copy link

Description

While writing an implementation for a meter I notices active energy production and consumption seem to be swapped in historic view.

In my meter implementation I do not use the calculate functions as I read the values for ACTIVE_CONSUMPTION_ENERGY and ACTIVE_PRODUCTION_ENERGY from the meter. Exporting the meter data shows me e.g. ActiveConsumptionEnergy 84130 Wh_Σ and ActiveProductionEnergy 13460 Wh_Σ which matches the display of the meter for Wirkleistung (Bezug) and Wirkleistung (Export), and also reality as PV production is not so high at the moment. The meter is placed right after the real grid meter and therefor I configured it as GRID meter.

As you can see the darker line had a lot of consumption during night but the legend only shows 0,6 in contrast to the violet line showing 15,7. But there was nearly no production during night/morning.

Some quick searching led me to openems/io.openems.edge.core/src/io/openems/edge/core/sum/SumImpl.java at line 286 and 287 could be swapped? I'm not that deep in openems, but just by the wording I would assign Buy with Consumption and Sell with Production on a grid meter. Of course this is a point of view ... but the graph does not match legend.

Screenshots

Image

Operating System

No response

How to reproduce the Error?

Write a meter implementation and fill ACTIVE_CONSUMPTION_ENERGY and ACTIVE_PRODUCTION_ENERGY like described above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant