Skip to content

Leistungssumme für Verbraucher&Zähler außerhalb des Hausverbrauchs - #4030

Merged
LKuemmel merged 3 commits into
openWB:masterfrom
LKuemmel:consumer_sum
Sep 30, 2026
Merged

LKuemmel merged 3 commits into
openWB:masterfrom
LKuemmel:consumer_sum

Conversation

@LKuemmel

Copy link
Copy Markdown
Contributor

No description provided.

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

Register the new topic in update-config persistence and home-consumption access-control lists.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds calculation and publication of power consumption outside home consumption.

Changes:

  • Separates home and non-home consumption totals.
  • Adds MQTT validation and the not_in_home_consumption field.
  • Expands tests for classification and fault handling.
File Summary
packages/​helpermodules/​setdata.py Validates the new MQTT value.
packages/​control/​counter_all/​counter_home_consumption_test.py Tests split consumption calculations.
packages/​control/​counter_all/​counter_all.py Calculates home and non-home power.
packages/​control/​counter_all/​counter_all_data.py Defines the new published field; its topic still requires persistence and ACL registration.

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

loadmanagement_active: bool = field(
default=False, metadata={"topic": "set/loadmanagement_active"})
home_consumption: float = field(default=0, metadata={"topic": "set/home_consumption"})
not_in_home_consumption: float = field(default=0, metadata={"topic": "set/not_in_home_consumption"})
@LKuemmel
LKuemmel marked this pull request as draft September 29, 2026 08:51

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

Unresolved consumption aggregation and ACL migration issues remain.

Review effort: Lite
Findings: 2 Medium severity

Open (2)

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

🟢 Approval recommended

All reviewed changes are covered and no unresolved blocking issues were identified.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
Resolved since last review (1)

@LKuemmel
LKuemmel marked this pull request as ready for review September 29, 2026 10:16
@LKuemmel
LKuemmel merged commit ce4a9a4 into openWB:master Sep 30, 2026
1 check passed
@LKuemmel
LKuemmel deleted the consumer_sum branch September 30, 2026 10:34
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