Docs › OCPP 2.1 › StatusNotification

StatusNotification OCPP 2.1

Der Simulator sendet diese Nachricht als Ladepunkt.

Auch in: OCPP 1.6, OCPP 2.0.1

Request

FeldTypEinschränkungen / Beschreibung
timestampstringPflichtformat date-time
The time for which the status is reported.
connectorStatusstringPflichtenum: Available, Occupied, Reserved, Unavailable, Faulted
This contains the current status of the Connector.
evseIdintegerPflichtminimum 0.0
The id of the EVSE to which the connector belongs for which the the status is reported.
connectorIdintegerPflichtminimum 0.0
The id of the connector within the EVSE for which the status is reported.
JSON-Schema (Request)
{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "$id": "urn:OCPP:Cp:2:2025:1:StatusNotificationRequest",
  "comment": "OCPP 2.1 Edition 1 (c) OCA, Creative Commons Attribution-NoDerivatives 4.0 International Public License",
  "definitions": {
    "ConnectorStatusEnumType": {
      "description": "This contains the current status of the Connector.\r\n",
      "javaType": "ConnectorStatusEnum",
      "type": "string",
      "additionalProperties": false,
      "enum": [
        "Available",
        "Occupied",
        "Reserved",
        "Unavailable",
        "Faulted"
      ]
    },
    "CustomDataType": {
      "description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.",
      "javaType": "CustomData",
      "type": "object",
      "properties": {
        "vendorId": {
          "type": "string",
          "maxLength": 255
        }
      },
      "required": [
        "vendorId"
      ]
    }
  },
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "timestamp": {
      "description": "The time for which the status is reported.\r\n",
      "type": "string",
      "format": "date-time"
    },
    "connectorStatus": {
      "$ref": "#/definitions/ConnectorStatusEnumType"
    },
    "evseId": {
      "description": "The id of the EVSE to which the connector belongs for which the the status is reported.\r\n",
      "type": "integer",
      "minimum": 0.0
    },
    "connectorId": {
      "description": "The id of the connector within the EVSE for which the status is reported.\r\n",
      "type": "integer",
      "minimum": 0.0
    },
    "customData": {
      "$ref": "#/definitions/CustomDataType"
    }
  },
  "required": [
    "timestamp",
    "connectorStatus",
    "evseId",
    "connectorId"
  ]
}

Response

Leeres Objekt {}.

JSON-Schema (Response)
{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "$id": "urn:OCPP:Cp:2:2025:1:StatusNotificationResponse",
  "comment": "OCPP 2.1 Edition 1 (c) OCA, Creative Commons Attribution-NoDerivatives 4.0 International Public License",
  "definitions": {
    "CustomDataType": {
      "description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.",
      "javaType": "CustomData",
      "type": "object",
      "properties": {
        "vendorId": {
          "type": "string",
          "maxLength": 255
        }
      },
      "required": [
        "vendorId"
      ]
    }
  },
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "customData": {
      "$ref": "#/definitions/CustomDataType"
    }
  }
}

Quelle: Open Charge Alliance, OCPP 2.1 – JSON-Schemas, unverändert wiedergegeben. © Open Charge Alliance. Lizenz: CC BY-ND 4.0. Die vollständige Spezifikation gibt es bei der Open Charge Alliance. ocpp-sim ist nicht mit der OCA verbunden.