Skip to content

fix smartwb: start charging after create a new chargepoint#3364

Merged
LKuemmel merged 1 commit into
openWB:masterfrom
LKuemmel:fix_smartwb
May 13, 2026
Merged

fix smartwb: start charging after create a new chargepoint#3364
LKuemmel merged 1 commit into
openWB:masterfrom
LKuemmel:fix_smartwb

Conversation

@LKuemmel
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the SmartWB chargepoint integration to keep reporting a stable phases_in_use value when currents briefly read as zero (e.g., right after creating a new chargepoint / during ramp-up), which helps downstream control logic proceed with charging.

Changes:

  • Track old_phases_in_use in the SmartWB chargepoint module and reuse it when measured phase currents indicate “0 phases in use”.
  • Update the SmartWB unit test expectation for the “not charging” sample case to match the new phases_in_use behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/modules/chargepoints/smartwb/chargepoint_module.py Persist and reuse last-known phases_in_use instead of emitting None/0 on zero-current readings and on error fallback.
packages/modules/chargepoints/smartwb/smartwb_test.py Update expected phases_in_use in the “V2 not charging” test fixture to align with the new fallback behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

charge_state=True,
rfid="0a1b2c3d",
phases_in_use=None,
phases_in_use=3,
@LKuemmel LKuemmel marked this pull request as ready for review May 13, 2026 09:23
@LKuemmel LKuemmel merged commit 2e82f99 into openWB:master May 13, 2026
5 checks 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.

2 participants