SetVariableMonitoring OCPP 2.1
Der Simulator antwortet mit NotSupported, prüft die Nachricht aber gegen das Schema.
Auch in: OCPP 2.0.1
Request
| Feld | Typ | Einschränkungen / Beschreibung | |
|---|---|---|---|
setMonitoringData | array<object> | Pflicht | minItems 1 |
setMonitoringData[].id | integer | minimum 0.0 An id SHALL only be given to replace an existing monitor. The Charging Station handles the generation of id's for new monitors. | |
setMonitoringData[].periodicEventStream | object | ||
setMonitoringData[].periodicEventStream.interval | integer | minimum 0.0 Time in seconds after which stream data is sent. | |
setMonitoringData[].periodicEventStream.values | integer | minimum 0.0 Number of items to be sent together in stream. | |
setMonitoringData[].transaction | boolean | Monitor only active when a transaction is ongoing on a component relevant to this transaction. Default = false. | |
setMonitoringData[].value | number | Pflicht | Value for threshold or delta monitoring. For Periodic or PeriodicClockAligned this is the interval in seconds. |
setMonitoringData[].type | string | Pflicht | enum: UpperThreshold, LowerThreshold, Delta, Periodic, PeriodicClockAligned, TargetDelta, TargetDeltaRelative The type of this monitor, e.g. a threshold, delta or periodic monitor. |
setMonitoringData[].severity | integer | Pflicht | minimum 0.0 The severity that will be assigned to an event that is triggered by this monitor. The severity range is 0-9, with 0 as the highest and 9 as the lowest severity level. The severity levels have the following meaning: + *0-Danger* + Indicates lives are potentially in danger. Urgent attention is needed and action should be taken immediately. + *1-Hardware Failure* + Indicates that the Charging Station is unable to continue regular operations due to Hardware issues. Action is required. + *2-System Failure* + Indicates that the Charging Station is unable to continue regular operations due to software or minor hardware issues. Action is required. + *3-Critical* + Indicates a critical error. Action is required. + *4-Error* + Indicates a non-urgent error. Action is required. + *5-Alert* + Indicates an alert event. Default severity for any type of monitoring event. + *6-Warning* + Indicates a warning event. Action may be required. + *7-Notice* + Indicates an unusual event. No immediate action is required. + *8-Informational* + Indicates a regular operational event. May be used for reporting, measuring throughput, etc. No action is required. + *9-Debug* + Indicates information useful to developers for debugging, not useful during operations. |
setMonitoringData[].component | object | Pflicht | A physical or logical component |
setMonitoringData[].component.evse | object | Electric Vehicle Supply Equipment | |
setMonitoringData[].component.evse.id | integer | Pflicht | minimum 0.0 EVSE Identifier. This contains a number (> 0) designating an EVSE of the Charging Station. |
setMonitoringData[].component.evse.connectorId | integer | minimum 0.0 An id to designate a specific connector (on an EVSE) by connector index number. | |
setMonitoringData[].component.name | string | Pflicht | maxLength 50 Name of the component. Name should be taken from the list of standardized component names whenever possible. Case Insensitive. strongly advised to use Camel Case. |
setMonitoringData[].component.instance | string | maxLength 50 Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case. | |
setMonitoringData[].variable | object | Pflicht | Reference key to a component-variable. |
setMonitoringData[].variable.name | string | Pflicht | maxLength 50 Name of the variable. Name should be taken from the list of standardized variable names whenever possible. Case Insensitive. strongly advised to use Camel Case. |
setMonitoringData[].variable.instance | string | maxLength 50 Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case. |
JSON-Schema (Request)
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:2:2025:1:SetVariableMonitoringRequest",
"comment": "OCPP 2.1 Edition 1 (c) OCA, Creative Commons Attribution-NoDerivatives 4.0 International Public License",
"definitions": {
"MonitorEnumType": {
"description": "The type of this monitor, e.g. a threshold, delta or periodic monitor. \r\n\r\n",
"javaType": "MonitorEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"UpperThreshold",
"LowerThreshold",
"Delta",
"Periodic",
"PeriodicClockAligned",
"TargetDelta",
"TargetDeltaRelative"
]
},
"ComponentType": {
"description": "A physical or logical component\r\n",
"javaType": "Component",
"type": "object",
"additionalProperties": false,
"properties": {
"evse": {
"$ref": "#/definitions/EVSEType"
},
"name": {
"description": "Name of the component. Name should be taken from the list of standardized component names whenever possible. Case Insensitive. strongly advised to use Camel Case.\r\n",
"type": "string",
"maxLength": 50
},
"instance": {
"description": "Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
"type": "string",
"maxLength": 50
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"name"
]
},
"EVSEType": {
"description": "Electric Vehicle Supply Equipment\r\n",
"javaType": "EVSE",
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"description": "EVSE Identifier. This contains a number (> 0) designating an EVSE of the Charging Station.\r\n",
"type": "integer",
"minimum": 0.0
},
"connectorId": {
"description": "An id to designate a specific connector (on an EVSE) by connector index number.\r\n",
"type": "integer",
"minimum": 0.0
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"id"
]
},
"PeriodicEventStreamParamsType": {
"javaType": "PeriodicEventStreamParams",
"type": "object",
"additionalProperties": false,
"properties": {
"interval": {
"description": "Time in seconds after which stream data is sent.\r\n",
"type": "integer",
"minimum": 0.0
},
"values": {
"description": "Number of items to be sent together in stream.\r\n",
"type": "integer",
"minimum": 0.0
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
}
},
"SetMonitoringDataType": {
"description": "Class to hold parameters of SetVariableMonitoring request.\r\n",
"javaType": "SetMonitoringData",
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"description": "An id SHALL only be given to replace an existing monitor. The Charging Station handles the generation of id's for new monitors.\r\n\r\n",
"type": "integer",
"minimum": 0.0
},
"periodicEventStream": {
"$ref": "#/definitions/PeriodicEventStreamParamsType"
},
"transaction": {
"description": "Monitor only active when a transaction is ongoing on a component relevant to this transaction. Default = false.\r\n\r\n",
"type": "boolean",
"default": false
},
"value": {
"description": "Value for threshold or delta monitoring.\r\nFor Periodic or PeriodicClockAligned this is the interval in seconds.\r\n\r\n",
"type": "number"
},
"type": {
"$ref": "#/definitions/MonitorEnumType"
},
"severity": {
"description": "The severity that will be assigned to an event that is triggered by this monitor. The severity range is 0-9, with 0 as the highest and 9 as the lowest severity level.\r\n\r\nThe severity levels have the following meaning: +\r\n*0-Danger* +\r\nIndicates lives are potentially in danger. Urgent attention is needed and action should be taken immediately. +\r\n*1-Hardware Failure* +\r\nIndicates that the Charging Station is unable to continue regular operations due to Hardware issues. Action is required. +\r\n*2-System Failure* +\r\nIndicates that the Charging Station is unable to continue regular operations due to software or minor hardware issues. Action is required. +\r\n*3-Critical* +\r\nIndicates a critical error. Action is required. +\r\n*4-Error* +\r\nIndicates a non-urgent error. Action is required. +\r\n*5-Alert* +\r\nIndicates an alert event. Default severity for any type of monitoring event. +\r\n*6-Warning* +\r\nIndicates a warning event. Action may be required. +\r\n*7-Notice* +\r\nIndicates an unusual event. No immediate action is required. +\r\n*8-Informational* +\r\nIndicates a regular operational event. May be used for reporting, measuring throughput, etc. No action is required. +\r\n*9-Debug* +\r\nIndicates information useful to developers for debugging, not useful during operations.\r\n\r\n",
"type": "integer",
"minimum": 0.0
},
"component": {
"$ref": "#/definitions/ComponentType"
},
"variable": {
"$ref": "#/definitions/VariableType"
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"value",
"type",
"severity",
"component",
"variable"
]
},
"VariableType": {
"description": "Reference key to a component-variable.\r\n",
"javaType": "Variable",
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "Name of the variable. Name should be taken from the list of standardized variable names whenever possible. Case Insensitive. strongly advised to use Camel Case.\r\n",
"type": "string",
"maxLength": 50
},
"instance": {
"description": "Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
"type": "string",
"maxLength": 50
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"name"
]
},
"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": {
"setMonitoringData": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/SetMonitoringDataType"
},
"minItems": 1
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"setMonitoringData"
]
}Response
| Feld | Typ | Einschränkungen / Beschreibung | |
|---|---|---|---|
setMonitoringResult | array<object> | Pflicht | minItems 1 |
setMonitoringResult[].id | integer | minimum 0.0 Id given to the VariableMonitor by the Charging Station. The Id is only returned when status is accepted. Installed VariableMonitors should have unique id's but the id's of removed Installed monitors should have unique id's but the id's of removed monitors MAY be reused. | |
setMonitoringResult[].statusInfo | object | Element providing more information about the status. | |
setMonitoringResult[].statusInfo.reasonCode | string | Pflicht | maxLength 20 A predefined code for the reason why the status is returned in this response. The string is case-insensitive. |
setMonitoringResult[].statusInfo.additionalInfo | string | maxLength 1024 Additional text to provide detailed information. | |
setMonitoringResult[].status | string | Pflicht | enum: Accepted, UnknownComponent, UnknownVariable, UnsupportedMonitorType, Rejected, Duplicate Status is OK if a value could be returned. Otherwise this will indicate the reason why a value could not be returned. |
setMonitoringResult[].type | string | Pflicht | enum: UpperThreshold, LowerThreshold, Delta, Periodic, PeriodicClockAligned, TargetDelta, TargetDeltaRelative The type of this monitor, e.g. a threshold, delta or periodic monitor. |
setMonitoringResult[].component | object | Pflicht | A physical or logical component |
setMonitoringResult[].component.evse | object | Electric Vehicle Supply Equipment | |
setMonitoringResult[].component.evse.id | integer | Pflicht | minimum 0.0 EVSE Identifier. This contains a number (> 0) designating an EVSE of the Charging Station. |
setMonitoringResult[].component.evse.connectorId | integer | minimum 0.0 An id to designate a specific connector (on an EVSE) by connector index number. | |
setMonitoringResult[].component.name | string | Pflicht | maxLength 50 Name of the component. Name should be taken from the list of standardized component names whenever possible. Case Insensitive. strongly advised to use Camel Case. |
setMonitoringResult[].component.instance | string | maxLength 50 Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case. | |
setMonitoringResult[].variable | object | Pflicht | Reference key to a component-variable. |
setMonitoringResult[].variable.name | string | Pflicht | maxLength 50 Name of the variable. Name should be taken from the list of standardized variable names whenever possible. Case Insensitive. strongly advised to use Camel Case. |
setMonitoringResult[].variable.instance | string | maxLength 50 Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case. | |
setMonitoringResult[].severity | integer | Pflicht | minimum 0.0 The severity that will be assigned to an event that is triggered by this monitor. The severity range is 0-9, with 0 as the highest and 9 as the lowest severity level. The severity levels have the following meaning: + *0-Danger* + Indicates lives are potentially in danger. Urgent attention is needed and action should be taken immediately. + *1-Hardware Failure* + Indicates that the Charging Station is unable to continue regular operations due to Hardware issues. Action is required. + *2-System Failure* + Indicates that the Charging Station is unable to continue regular operations due to software or minor hardware issues. Action is required. + *3-Critical* + Indicates a critical error. Action is required. + *4-Error* + Indicates a non-urgent error. Action is required. + *5-Alert* + Indicates an alert event. Default severity for any type of monitoring event. + *6-Warning* + Indicates a warning event. Action may be required. + *7-Notice* + Indicates an unusual event. No immediate action is required. + *8-Informational* + Indicates a regular operational event. May be used for reporting, measuring throughput, etc. No action is required. + *9-Debug* + Indicates information useful to developers for debugging, not useful during operations. |
JSON-Schema (Response)
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:2:2025:1:SetVariableMonitoringResponse",
"comment": "OCPP 2.1 Edition 1 (c) OCA, Creative Commons Attribution-NoDerivatives 4.0 International Public License",
"definitions": {
"MonitorEnumType": {
"description": "The type of this monitor, e.g. a threshold, delta or periodic monitor. \r\n\r\n",
"javaType": "MonitorEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"UpperThreshold",
"LowerThreshold",
"Delta",
"Periodic",
"PeriodicClockAligned",
"TargetDelta",
"TargetDeltaRelative"
]
},
"SetMonitoringStatusEnumType": {
"description": "Status is OK if a value could be returned. Otherwise this will indicate the reason why a value could not be returned.\r\n",
"javaType": "SetMonitoringStatusEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"UnknownComponent",
"UnknownVariable",
"UnsupportedMonitorType",
"Rejected",
"Duplicate"
]
},
"ComponentType": {
"description": "A physical or logical component\r\n",
"javaType": "Component",
"type": "object",
"additionalProperties": false,
"properties": {
"evse": {
"$ref": "#/definitions/EVSEType"
},
"name": {
"description": "Name of the component. Name should be taken from the list of standardized component names whenever possible. Case Insensitive. strongly advised to use Camel Case.\r\n",
"type": "string",
"maxLength": 50
},
"instance": {
"description": "Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
"type": "string",
"maxLength": 50
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"name"
]
},
"EVSEType": {
"description": "Electric Vehicle Supply Equipment\r\n",
"javaType": "EVSE",
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"description": "EVSE Identifier. This contains a number (> 0) designating an EVSE of the Charging Station.\r\n",
"type": "integer",
"minimum": 0.0
},
"connectorId": {
"description": "An id to designate a specific connector (on an EVSE) by connector index number.\r\n",
"type": "integer",
"minimum": 0.0
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"id"
]
},
"SetMonitoringResultType": {
"description": "Class to hold result of SetVariableMonitoring request.\r\n",
"javaType": "SetMonitoringResult",
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"description": "Id given to the VariableMonitor by the Charging Station. The Id is only returned when status is accepted. Installed VariableMonitors should have unique id's but the id's of removed Installed monitors should have unique id's but the id's of removed monitors MAY be reused.\r\n",
"type": "integer",
"minimum": 0.0
},
"statusInfo": {
"$ref": "#/definitions/StatusInfoType"
},
"status": {
"$ref": "#/definitions/SetMonitoringStatusEnumType"
},
"type": {
"$ref": "#/definitions/MonitorEnumType"
},
"component": {
"$ref": "#/definitions/ComponentType"
},
"variable": {
"$ref": "#/definitions/VariableType"
},
"severity": {
"description": "The severity that will be assigned to an event that is triggered by this monitor. The severity range is 0-9, with 0 as the highest and 9 as the lowest severity level.\r\n\r\nThe severity levels have the following meaning: +\r\n*0-Danger* +\r\nIndicates lives are potentially in danger. Urgent attention is needed and action should be taken immediately. +\r\n*1-Hardware Failure* +\r\nIndicates that the Charging Station is unable to continue regular operations due to Hardware issues. Action is required. +\r\n*2-System Failure* +\r\nIndicates that the Charging Station is unable to continue regular operations due to software or minor hardware issues. Action is required. +\r\n*3-Critical* +\r\nIndicates a critical error. Action is required. +\r\n*4-Error* +\r\nIndicates a non-urgent error. Action is required. +\r\n*5-Alert* +\r\nIndicates an alert event. Default severity for any type of monitoring event. +\r\n*6-Warning* +\r\nIndicates a warning event. Action may be required. +\r\n*7-Notice* +\r\nIndicates an unusual event. No immediate action is required. +\r\n*8-Informational* +\r\nIndicates a regular operational event. May be used for reporting, measuring throughput, etc. No action is required. +\r\n*9-Debug* +\r\nIndicates information useful to developers for debugging, not useful during operations.\r\n\r\n",
"type": "integer",
"minimum": 0.0
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"status",
"type",
"severity",
"component",
"variable"
]
},
"StatusInfoType": {
"description": "Element providing more information about the status.\r\n",
"javaType": "StatusInfo",
"type": "object",
"additionalProperties": false,
"properties": {
"reasonCode": {
"description": "A predefined code for the reason why the status is returned in this response. The string is case-insensitive.\r\n",
"type": "string",
"maxLength": 20
},
"additionalInfo": {
"description": "Additional text to provide detailed information.\r\n",
"type": "string",
"maxLength": 1024
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"reasonCode"
]
},
"VariableType": {
"description": "Reference key to a component-variable.\r\n",
"javaType": "Variable",
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "Name of the variable. Name should be taken from the list of standardized variable names whenever possible. Case Insensitive. strongly advised to use Camel Case.\r\n",
"type": "string",
"maxLength": 50
},
"instance": {
"description": "Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
"type": "string",
"maxLength": 50
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"name"
]
},
"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": {
"setMonitoringResult": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/SetMonitoringResultType"
},
"minItems": 1
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"setMonitoringResult"
]
}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.