Skip to content

pass data object as parameter in set_power_limit methode, review - #3856

Open
LKuemmel wants to merge 79 commits into
openWB:feature_consumerfrom
LKuemmel:consumer_dev
Open

pass data object as parameter in set_power_limit methode, review#3856
LKuemmel wants to merge 79 commits into
openWB:feature_consumerfrom
LKuemmel:consumer_dev

Conversation

@LKuemmel

Copy link
Copy Markdown
Contributor

No description provided.

LKuemmel and others added 23 commits August 24, 2026 14:29
* fix colors, lookup dict names and colors for consumers

* review

* extend tests

* add colors for yearly graph data

* remove extra meters from log data

* remove comment

* flake8
* usage type self controlled

* fix

* review
* calc on time

* review
* fix pytest

* fixes, pytest

* review

* fix
* typo

* fix

* pytest
* IDM: send PV/Hausverbrauch/Batterie via GLT statt Leistungsvorgabe

* Lambda: PV-Überschuss statt power_limit an E-Manager senden

* Add OVUM CubeSpeicher/MPlus consumer module

* IDM: revert scaling factor, fix flake8 formatting

* flake8

* Rename send_grid_values to send_values in config.py

* Adjust surplus calculation to account for charging power

Include charging power in surplus calculation to avoid misreporting surplus to the heat pump.

* Update send_values function to send grid power

* Add Self_Controlled for IDM and Lambda

* flake8: fix syntax error and whitespace in consumer modules

Stray pasted line broke lambda_ consumer.py syntax; idm/lambda_/ovum
files had trailing whitespace on blank lines and missing EOF newlines.
* clean up

* fix loadmanagement

* review

* review

* flake8
openWB#3840)

* no charge for loads

* consider non charging for consumers and update consumer state messages

* flake8

* review
@LKuemmel LKuemmel changed the title Consumer dev pass data object as parameter in set_power_limit methode, review Aug 26, 2026
@LKuemmel
LKuemmel requested a balanced review from Copilot August 26, 2026 12:58

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.

Pull request overview

Passes consumer limit metadata through the power-limit control path.

Changes:

  • Adds SetLimitData containing the configured maximum power.
  • Passes limit metadata to configurable consumer modules.
  • Updates hierarchy documentation to include consumers.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/modules/consumers/generic/mqtt/consumer.py Accepts limit metadata in the MQTT callback.
packages/modules/common/configurable_consumer.py Defines and forwards SetLimitData.
packages/control/process.py Builds limit metadata and updates timestamp handling.
packages/control/counter_all/hierarchy.py Clarifies consumer support in documentation.

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

@LKuemmel
LKuemmel requested a review from ndrsnhs August 26, 2026 13:02
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.

5 participants