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

Distinguish between grid meters and other meters #1052

Merged
merged 3 commits into from
Aug 26, 2024

Conversation

shsms
Copy link
Contributor

@shsms shsms commented Aug 26, 2024

The component graph methods for identifying meters as {pv/ev/battery/chp} meters were sometimes incorrectly identifying grid meters as one of {pv/ev/battery/chp} meters.

This PR fixes that issue.

@shsms shsms requested a review from a team as a code owner August 26, 2024 12:26
@shsms shsms requested review from Marenz and removed request for a team August 26, 2024 12:26
@github-actions github-actions bot added part:tests Affects the unit, integration and performance (benchmarks) tests part:microgrid Affects the interactions with the microgrid labels Aug 26, 2024
It was possible to have a grid meter identified as a pv/ev/battery/chp
meter for specific component graph configurations.

But grid meters might also be measuring site consumption, so the above
use was incorrect.  This is fixed by adding a `is_grid_meter` check to
the component graph `is_{pv/ev/battery/chp}_meter` methods.

Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Marenz
Marenz previously approved these changes Aug 26, 2024
@shsms shsms added this pull request to the merge queue Aug 26, 2024
Merged via the queue into frequenz-floss:v1.x.x with commit 4641bd9 Aug 26, 2024
18 checks passed
@shsms shsms deleted the grid-meter-check branch August 26, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part:docs Affects the documentation part:microgrid Affects the interactions with the microgrid part:tests Affects the unit, integration and performance (benchmarks) tests
Projects
Development

Successfully merging this pull request may close these issues.

2 participants