Skip to content

Update: Hausverbrauch Zähler - #3991

Merged
LKuemmel merged 2 commits into
openWB:masterfrom
AlexanderHa98:update_hausverbrauchszähler
Sep 23, 2026

Hidden character warning

The head ref may contain hidden characters: "update_hausverbrauchsz\u00e4hler"
Merged

LKuemmel merged 2 commits into
openWB:masterfrom
AlexanderHa98:update_hausverbrauchszähler

Conversation

@AlexanderHa98

@AlexanderHa98 AlexanderHa98 commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

@AlexanderHa98 AlexanderHa98 changed the title Update: Hausverbrauch-Zähler Update: Hausverbrauch Zähler Sep 22, 2026
@AlexanderHa98
AlexanderHa98 requested a lite review from Copilot September 22, 2026 06:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The new start mode makes EVU counters configured as AUTO behave differently and inconsistently with existing root-AUTO semantics in the same module.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Adjusts the “Hausverbrauch” (home consumption) calculation in CounterAll by changing the initial mode used when starting the recursion at the EVU counter.

Changes:

  • Start home-consumption recursion with HOME_CONSUMPTION instead of NOT_HOME_CONSUMPTION.
File Description
packages/​control/​counter_all/​counter_all.py Changes the initial CounterMode used when computing home consumption from the EVU-rooted hierarchy.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 169 to +170
# Rekursion startet immer beim EVU-Zähler.
home_consumption = self._calc_home_consumption_from_counter(evu_element, CounterMode.NOT_HOME_CONSUMPTION.value)
home_consumption = self._calc_home_consumption_from_counter(evu_element, CounterMode.HOME_CONSUMPTION.value)
@LKuemmel
LKuemmel merged commit 76bdbf7 into openWB:master Sep 23, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants