OCPP 2.0.1 Updates*
eDRV continues to update their APIs and WebHooks for OCPP 2.0.1. This page contains key updates to APIs and Webhooks.
Limited to Development Environment
These updates are currently available only in the DEVELOPMENT environment. Please contact the eDRV team for access or further information.
Updates to key APIs
The following endpoints now support new parameters:
- POST /v1.1/chargestations/{id}/connectors
➤ Now supports:evseIdof a connector.
➤ If the evseId is not specified it defaults to 1 - PATCH /v1.1/connectors/{id}
➤ Now supports:evseIdof a connector - GET /v1.1/chargestations
➤ ReportsevseIdof the connector aschargestation[id].connectors[id].evseId - GET /v1.1/chargestations/{id}
➤ ReportsevseIdof the connectorchargestation.connectors[id].evseId - POST /v1.1/chargestations/{id}/set_charging_profile
- POST /v1.1/chargestations/{id}/clear_charging_profile
➤ Both set and clear supports 1.6 style compatibility. Developers can call this API withconnectorIdas before.- eDRV assumes the requested
connectorIdis the same asevseIdfor OCPP 2.0.1 Chargestations. - Supports a new value for
chargingProfilePurpose=ChargingStationMaxProfile
- eDRV assumes the requested
Updates to key Webhooks
Integration Note
The data structure changes in these Webhook events will impact existing 1.6J based integrations.
The following Webhook events have been updated for OCPP 2.0.1:
chargestation.connector_status.updated- ➤ Now includes:
evseIdof the connector aschargestation.connectors[id].evseId - ➤ Includes the raw OCPP StatusNotificationRequest message as
chargestation.connectors[id].raw_message
- ➤ Now includes:
session.updated- ➤ A new field called
session.metrics.chargingStatereports the state of the charging process (e.g. Charging, SuspendedEV etc) when reported in a transactionEvent message. These were previously communicated in 1.6 viachargestation.connector_status.updated - ➤ A new field called
session.metrics.chargingStopReasonreports the OCPP TriggerReason at the end of a charging session i.e. (TransactionEvent.eventType = Ended). 201 is a lot more verbose and defines many reasons for e.g. remote stop, cable disconnection, EV communications lost etc. For a full list of reasons please see: (see 3.82. TriggerReasonEnumType) - ➤ Includes the raw TransactionEvent message sent by the Chargestation as
session.raw_transction_event
- ➤ A new field called
- Synthetic Webhook
chargestation.connector_status.updatedfor backward compatibility for StatusNotification states- If a change in the current transactionInfo.chargingState is detected, then eDRV will synthetically trigger a Webhook event
chargestation.connector_status.updated. This allows applications that rely on legacy OCPP 1.6 Webhooks to continue to function with limited changes. - OCPP 2.0.1 ChargingState is mapped to the
connector.statusas followsCharging,SuspendedEV,SuspendedEVSEare mapped unchangedEVConnectedis mapped toPreparingIdleis reported asAvailable
- In order to enable this, the org admin must set the
include_artificial_status_notification_for_201flag in organization settings (via the admin panel)
- If a change in the current transactionInfo.chargingState is detected, then eDRV will synthetically trigger a Webhook event
Updated 4 months ago
What’s Next
