You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integrate automatic Wallbox-Steckdose detection and control into the consumer, MQTT, RFID, fault handling, and internal chargepoint subsystems.
New Features:
Add support for automatically detecting and operating a Modbus-based Wallbox-Steckdose as a configurable consumer, including measurements, switching, RFID handling, and fault reporting.
Expose Wallbox-Steckdose data and commands through dedicated MQTT topics and integrate them with broker security, validation, subscriptions, and component routing.
Bug Fixes:
Prevent deletion of chargepoints assigned to a Wallbox-Steckdose and switch the socket off before removing its consumer configuration.
Enhancements:
Extend RFID authorization to Wallbox-Steckdose consumers and increase the default RFID timeout.
Refactor internal chargepoint hardware checks and shared Modbus client definitions to support the additional socket hardware.
Tests:
Add coverage for Wallbox-Steckdose consumer behavior, RFID handling, measurement publishing, removal safety, and MQTT topic permissions.
Chores:
Centralize readable vendor-group names for device and consumer configuration generation.
Adds support for automatically detected openWB wall sockets, including SDM120 metering, GPIO control, MQTT integration, RFID handling, and consumer configuration.
Changes:
Adds internal socket detection, measurement, state control, fault handling, and MQTT publication.
Adds internal-socket consumer configuration, host selection, RFID support, and assignment validation.
Refactors shared hardware checks and updates vendor metadata, topic handling, bridge configuration, and tests.
Increment the openwb-version header from 21 to 22 along with this bridge rule. runs/setup_mosquitto.sh:201–205 copies this configuration only when its version differs from the installed file. Existing version-21 installations therefore skip the update, leaving socket measurements, status and RFID data unavailable to remote consumers through the public broker.
Include the received socket switch state in ConsumerState. The handler publishes openWB/internal_socket/get/state, but this constructor omits it, so ConsumerState.state defaults to False. ConsumerValueStoreBroker then publishes False to the consumer's get/state topic on every successful update, even when the socket is on.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Critical shutdown failures can leave sockets powered after consumer deletion or persistent meter errors, while additional state-reporting and permission-migration issues remain unresolved.
Update hardware check tests for the extracted internal chargepoint checks and renamed meter validation function.
packages/modules/common/hardware_check_test.py L10-15 (+3 small edits)
Tips and commands
Interacting with Sourcery
Trigger a new review: Comment @sourcery-ai review on the pull request.
Continue discussions: Reply directly to Sourcery's review comments.
Generate a GitHub issue from a review comment: Ask Sourcery to create an
issue from a review comment by replying to it. You can also reply to a
review comment with @sourcery-ai issue to create an issue from it.
Generate a pull request title: Write @sourcery-ai anywhere in the pull
request title to generate a title at any time. You can also comment @sourcery-ai title on the pull request to (re-)generate the title at any time.
Generate a pull request summary: Write @sourcery-ai summary anywhere in
the pull request body to generate a PR summary at any time exactly where you
want it. You can also comment @sourcery-ai summary on the pull request to
(re-)generate the summary at any time.
Generate reviewer's guide: Comment @sourcery-ai guide on the pull
request to (re-)generate the reviewer's guide at any time.
Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
pull request to resolve all Sourcery comments. Useful if you've already
addressed all the comments and don't want to see them anymore.
Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
request to dismiss all existing Sourcery reviews. Especially useful if you
want to start fresh with a new review - don't forget to comment @sourcery-ai review to trigger a new review!
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Persistent meter failures can bypass fail-safe shutdown, while consumer removal continues after switch-off failures, potentially leaving sockets energized without their controlling configuration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Integrate automatic Wallbox-Steckdose detection and control into the consumer, MQTT, RFID, fault handling, and internal chargepoint subsystems.
New Features:
Bug Fixes:
Enhancements:
Tests:
Chores: