ClearVariableMonitoring
Monitoring CSMS->CS
OCPP 2.0.1
Sent by the CSMS to remove one or more variable monitors from the Charging Station.
Quick Reference
Required Fields
id array[integer] List of monitor IDs to remove
Example Payload
{
"id": [
1,
2
]
} Example Full Frame
[
2,
"msg-001",
"ClearVariableMonitoring",
{
"id": [
1,
2
]
}
]
Format: [MessageType, MessageId, Action, Payload]
Overview
ClearVariableMonitoring removes variable monitors by their IDs. Each ID is evaluated individually — partial success is possible.
Expected Response
clearMonitoringResult: Array of per-ID results withstatus:AcceptedorRejected, andid
Testing Tips
- Clear a known monitor and verify
NotifyEventno longer fires for that variable - Test with an unknown ID and verify
Rejectedin the result
Common Errors
GenericError
Cause: One or more IDs do not match existing monitors
Solution: Unknown IDs return status NotFound in the per-ID result