Skip to content

fix failed phase switches, manual lock init#3235

Merged
LKuemmel merged 2 commits intoopenWB:masterfrom
LKuemmel:fixes
Mar 24, 2026
Merged

fix failed phase switches, manual lock init#3235
LKuemmel merged 2 commits intoopenWB:masterfrom
LKuemmel:fixes

Conversation

@LKuemmel
Copy link
Contributor

No description provided.

Copy link
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

This PR addresses chargepoint state handling by ensuring newly created chargepoints have manual_lock initialized and by tracking unsuccessful phase switch outcomes so the control logic can react appropriately.

Changes:

  • Publish an initial manual_lock = False retained value when creating a new chargepoint.
  • Add failure counting in check_phase_switch_completed() when the requested phases are not reached after the phase-switch waiting period.

Reviewed changes

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

File Description
packages/helpermodules/command.py Initializes the retained /set/manual_lock topic for newly added chargepoints.
packages/control/chargepoint/chargepoint.py Increments failed_phase_switches when a phase switch does not result in the requested phases after waiting.

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

@LKuemmel LKuemmel merged commit 69f263a into openWB:master Mar 24, 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.

2 participants