Release a stuck cable
Free a cable a driver cannot pull out of the charger with one request, and work out what to check when the charger says no.
On this page
A charger locks the cable into its socket while charging, so nobody can pull out a live plug. Now and then it does not let go: the session ended badly, or the latch jammed. The driver is standing next to a car they cannot leave with. You can release the cable from wherever you are.
Take both numbers from the charger's own lists: evseId from its EVSEs and connectorId from that EVSE's connectors. These are the small numbers the charger counts its outlets by, not the UUIDs. Send both: some chargers need the pair, and Flowion passes each charger what it understands.
The call returns a command straight away. Follow it until the charger answers, as Sending commands describes.
Read the charger's answer
When the command settles, status is accepted only if the cable was released. result.status says why when it was not:
result.status | Meaning | What to do |
|---|---|---|
Unlocked | The cable is free | Tell the driver to pull it out |
OngoingAuthorizedTransaction | A session is still running | Stop it, then release |
NotSupported | There is no lock on this socket | Normal for a charger with a fixed cable: nothing is stuck at the charger end |
UnknownConnector | The charger has no outlet with these numbers | Check the numbers against the lists above |
UnlockFailed | The charger tried and the latch did not move | Something is physically binding it. This needs a site visit |
NotSupported is not an error. On a fleet of chargers with fixed cables it is the normal answer, and should not page anyone.
Before you release, check what is holding the cable
Work through these in order:
Is a session still running? Some chargers refuse to release a cable mid-session; others end the session themselves and then release. Stop the session first, so it ends the way you intend, then release.
Is the cable still locked at the car? If the connector's status is
Occupiedwith no session running, the car may be holding its end. The driver has to unlock the car. No command reaches it.Is the charger set to keep the cable until the driver comes back? That is the
unlockOnUnplugsetting turned off, and it is behaving as configured. Release the cable now, and turn the setting on if your drivers expect the cable to come free when they unplug.Otherwise, release it.
If the charger is offline
The command waits in the queue with status: "queued" and goes out as soon as the charger reconnects. If that has not happened within five minutes, it moves to expired and is never sent: a cable released long after the driver gave up helps nobody.
A stuck cable on an offline charger needs someone on site, so build that into your support flow before the first time it happens.