Skip to content

start_charging doesn't work with whitelisted charger (RFID-only auth) — need ability to specify token/badge, and it leaves charger in a stuck state blocking physical badge #280

Description

@Daviddepaepe

Pressing button.start_charging_1 in Home Assistant does not actually start a charging session (no real power delivery), and it also puts the charger into a state that then blocks a subsequent physical RFID badge scan with an error (red LED on the charger). Pressing button.stop_charging_1 clears this state and a badge scan works normally again afterward.

Steps to reproduce
Plug in the vehicle (cable connected, IEC state transitions to C2)
In Home Assistant, press Start charging 1
Observe: chargingState briefly flickers STOPPED → status:CHARGING → status:CHARGING_FINISHED → CABLE_CONNECTED within ~200ms (log below) — no actual charging occurs
Badge the RFID card physically on the charger
Result: charger shows a red light / error, badge is rejected
In Home Assistant, press Stop charging 1
Badge the RFID card again
Result: badge is accepted normally, session starts as expected
Expected behavior
start_charging should be able to actually start a real session on a whitelisted/RFID-restricted charger, and should not leave the charger in a state that blocks a subsequent physical badge.

Request — please let us specify which badge/token authorizes the remote start
My charger requires RFID authorization for every session (whitelisting enabled). I believe start_charging currently calls the Dashboard API without specifying which registered token authorizes the session, which is why the charger rejects it — and apparently leaves it in an inconsistent state in the process.

What I'd like: the ability to pass a token_id (or similarly named parameter) when calling start, e.g.:

service: smappee_ev.start_charging
data:
token_id: "046C914ACF1E80" # alias "Private charges"
This would let start_charging authorize the session exactly as if I had physically badged with that card, using one of the tokens already registered in my Whitelisting. If the Smappee Dashboard API's remote-start endpoint accepts a chargingTokenId (or equivalent) parameter, exposing it here would fix the root cause — the HA button would become genuinely functional instead of a no-op that also breaks physical badging.

Debug log excerpt (MQTT RX, custom_components.smappee_ev.mqtt_gateway, debug level)
18:43:27.310 property/chargingstate: {"available":true,"percentageLimit":0,"chargingState":"STOPPED","chargingMode":"NORMAL","optimizationStrategy":"NONE","iecStatus":{"current":"C2"},"status":{"current":"CHARGING","stoppedByCloud":false,"errors":[]}}
18:43:27.322 property/chargingstate: {"available":true,"percentageLimit":0,"chargingState":"STOPPED","chargingMode":"NORMAL","optimizationStrategy":"NONE","iecStatus":{"previous":"B2","current":"C2"},"status":{"previous":"CHARGING_FINISHED","current":"CHARGING","stoppedByCloud":false,"errors":[]}}
18:43:27.497 property/chargingstate: {"available":true,"percentageLimit":0,"chargingState":"STOPPED","chargingMode":"NORMAL","optimizationStrategy":"NONE","iecStatus":{"previous":"C2","current":"B1"},"status":{"previous":"CHARGING","current":"CABLE_CONNECTED","stoppedByCloud":false,"errors":[]}}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions