Merged
Conversation
Contributor
LKuemmel
commented
Feb 18, 2026
- SE
- Duo
- Pro Plus
- Buchse
There was a problem hiding this comment.
Pull request overview
This PR updates internal openWB chargepoint handling to support the “SE” variant by introducing SE-specific EVSE Modbus IDs and moving internal mode handling toward InternalChargepointMode enums, plus adjusts the standalone Modbus read/write helper scripts.
Changes:
- Add SE-specific EVSE Modbus IDs and thread
modeinto the internal Modbus client selection. - Update
InternalChargepointHandlerlogic to compare enums directly and passmodeinto client creation. - Modify
runs/evse_read_modbus.pyandruns/evse_write_modbus.pyto open a serial port via/dev/serial/by-path.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| runs/evse_write_modbus.py | Switches helper script to directly open a serial device from /dev/serial/by-path and write with a caller-provided Modbus unit. |
| runs/evse_read_modbus.py | Switches helper script to directly open a serial device from /dev/serial/by-path and read with a caller-provided Modbus unit. |
| packages/modules/internal_chargepoint_handler/internal_chargepoint_handler.py | Uses InternalChargepointMode enum comparisons and passes mode into client creation for SE handling. |
| packages/modules/internal_chargepoint_handler/clients.py | Introduces SE-specific EVSE IDs and adds mode parameter to Modbus client selection / factory. |
Comments suppressed due to low confidence (1)
packages/modules/internal_chargepoint_handler/clients.py:152
- In the
counter > 1branch,evse_idsare always set toEVSE_ID_CP0/EVSE_ID_TWO_BUSSES_CP1regardless ofmode. If SE uses different Modbus IDs (as introduced above), this branch should also pick SE-specific IDs based onmode(and possibly CP0/CP1).
with ModifyLoglevelContext(log, logging.DEBUG):
log.debug("found "+str(counter)+" possible usb devices: "+str(resolved_devices))
if local_charge_point_num == 0:
meters = CP0_METERS
evse_ids = EVSE_ID_CP0
else:
meters = CP1_METERS
evse_ids = EVSE_ID_TWO_BUSSES_CP1
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ndrsnhs
approved these changes
Feb 18, 2026
LKuemmel
added a commit
to LKuemmel/core
that referenced
this pull request
Feb 18, 2026
* openWB SE Modbus IDs * fix scripts * fix * fix * fix * fix * fix * use enum value
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.