Skip to content

Verbraucher in HV einrechnen einstellbar - #3939

Merged
LKuemmel merged 3 commits into
openWB:masterfrom
LKuemmel:consumer_home_consumption
Sep 14, 2026
Merged

Verbraucher in HV einrechnen einstellbar#3939
LKuemmel merged 3 commits into
openWB:masterfrom
LKuemmel:consumer_home_consumption

Conversation

@LKuemmel

@LKuemmel LKuemmel commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

@LKuemmel
LKuemmel requested review from AlexanderHa98 and a balanced review from Copilot September 14, 2026 13:28

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.

🟡 Changes recommended

The standalone configuration topic is rejected by the MQTT write handler, and migration coverage is missing.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds configurable home-consumption handling for consumers.

Changes:

  • Adds consumer mode configuration and migration.
  • Includes consumer power based on inherited or explicit mode.
  • Adds calculation tests.
File summaries
File Description
packages/helpermodules/update_config.py Migrates consumer configuration to datastore version 146.
packages/control/counter_all/counter_home_consumption_test.py Tests consumer mode calculations.
packages/control/counter_all/counter_all.py Incorporates consumers into home consumption.
packages/control/consumer/consumer_data.py Defines the consumer mode setting.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 2
  • Review effort level: Balanced

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

Comment on lines +67 to +68
is_home_consumption_consumer: str = field(
default="auto_home_consumption", metadata={"topic": "config/is_home_consumption_consumer"})
)
self._append_datastore_version(145)

def upgrade_datastore_146(self) -> None:
@LKuemmel
LKuemmel merged commit 7e57988 into openWB:master Sep 14, 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