capabilities.work

Publish a program and dispatch a demand response event

A 5-step recipe with OpenADR Alliance. We can help you get access.

Recipe · 5 steps

Publish a program and dispatch a demand response event

with OpenADR Alliance · Demand Response Operations

Authenticate, create a program, publish an event on it, and verify.

  1. Ask the VTN where its token endpoint is (3.1.0+; skip on a 3.0.x VTN).
  2. Client-credentials grant. Body is application/x-www-form-urlencoded, not JSON.
  3. Create the demand response program the event will hang off.
  4. Publish the event. This dispatches real load — do not replay blindly.
  5. Read the event back to confirm the VTN accepted it as published.
What you'll need to have ready
  • clientID: OAuth 2.0 client id issued by the VTN
  • clientSecret: OAuth 2.0 client secret issued by the VTN
  • programName: short program handle, e.g. ResTOU
  • eventName: human label for the event
  • targets: target strings the event applies to
For your developer

Arazzo workflow openadr-alliance:dispatch-demand-response-event, 5 operations: getAuthServerInfo → postAuthToken → createProgram → createEvent → searchEventsByID. Specs on APIs.io.