[ocpp] Add cableConnected channel derived from connector status - #153
Open
stamateviorel wants to merge 2 commits into
Open
[ocpp] Add cableConnected channel derived from connector status#153stamateviorel wants to merge 2 commits into
stamateviorel wants to merge 2 commits into
Conversation
splatch
previously approved these changes
Jun 2, 2026
splatch
left a comment
Contributor
There was a problem hiding this comment.
I have a minor note about channel type, beside that its OK.
| <label>Charging</label> | ||
| <description>Remote start/stop charging control. Send ON to trigger RemoteStartTransaction and OFF to trigger RemoteStopTransaction.</description> | ||
| </channel> | ||
| <channel id="cableConnected" typeId="switch"> |
Contributor
There was a problem hiding this comment.
A minor note, we represent read only channel with controllable switch. From OH philosophy point of view we should create a contact channel (we miss such type for now) with item-type=contact and command it with OpenClosedType.
stamateviorel
force-pushed
the
pr/16-cable-connected
branch
2 times, most recently
from
June 12, 2026 15:53
297c9dd to
4b0c243
Compare
OCPP 1.6 has no plug-presence message. Automation that needs to know whether an EV is plugged in has to interpret the raw chargePointStatus string itself. New read-only `cableConnected` Switch channel derives it: ON for Preparing/Charging/SuspendedEV/SuspendedEVSE/Finishing, OFF for Available/Unavailable/Faulted/Reserved. Updated on every StatusNotification. Verified against Wallbox Copper SB / Pulsar Plus and Phoenix Contact CHARX SEC-3xxx: cable plug → ON at Preparing, unplug → OFF at Available. Signed-off-by: Stamate Viorel <stamate.viorel@gmail.com> Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
stamateviorel
force-pushed
the
pr/16-cable-connected
branch
from
June 13, 2026 14:04
4b0c243 to
10db65b
Compare
Per review: a read-only derived value was modeled with a controllable Switch channel-type. Add a generic reusable "contact" channel-type (item-type=Contact, readOnly) alongside the existing switch/number/string primitives and repoint cableConnected at it. CLOSED mirrors the physical pilot circuit — plugging in the cable closes it — OPEN otherwise. Signed-off-by: Stamate Viorel <stamate.viorel@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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.
OCPP 1.6 has no plug-presence message — automation that needs to know whether an EV is plugged in has to interpret the raw
chargePointStatusstring itself. New read-onlycableConnectedSwitch channel derives it: ON for Preparing/Charging/SuspendedEV/SuspendedEVSE/Finishing, OFF for Available/Unavailable/Faulted/Reserved. Updated on every StatusNotification.Verified against Wallbox Copper SB / Pulsar Plus (FW 6.7.38) and Phoenix Contact CHARX SEC-3xxx (FW 1.9.0): plug → ON at Preparing, unplug → OFF at Available.