ChangeAvailability

Takes a station, an EVSE, or a single connector in or out of service.

Version
OCPP 2.0.1
Direction
CSMS → Charge Point
Functional block
Availability

ChangeAvailability also exists in OCPP 1.6, with a different payload. See the OCPP 1.6 version.

Same purpose as 1.6, addressed through the new hierarchy. Omitting evse applies the change to the whole charging station; supplying evse.id targets one EVSE, and adding evse.connectorId narrows it to one connector.

Request

FieldTypeRequiredDescription
operationalStatusOperationalStatusEnumTypeRequiredOperative or Inoperative.
evseEVSETypeOptionalid, and optionally connectorId. Omit to target the whole station.
json
[2, "19223201", "ChangeAvailability", {
  "operationalStatus": "Inoperative",
  "evse": { "id": 1 }
}]

Response

FieldTypeRequiredDescription
statusChangeAvailabilityStatusEnumTypeRequiredWhether the change took effect.
statusInfoStatusInfoTypeOptionalReason code.
json
[3, "19223201", {
  "status": "Scheduled"
}]

Values

OperationalStatusEnumType

ValueMeaning
OperativeIn service.
InoperativeOut of service.

ChangeAvailabilityStatusEnumType

ValueMeaning
AcceptedApplied immediately.
RejectedRefused.
ScheduledA transaction is running; applies when it ends.

Implementation notes

Scheduled means the same thing it did in 1.6 and is still routinely mistaken for success. The connector is still charging.

The change must survive a reboot, as in 1.6.