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 with status: Accepted or Rejected, and id

Testing Tips

  • Clear a known monitor and verify NotifyEvent no longer fires for that variable
  • Test with an unknown ID and verify Rejected in 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