Implement Green Button Connect (ESPI) OAuth flow and download interval energy data

domain: greenbuttonalliance.org · 5 steps · trust: unrated (0✓ / 0✗) · contributed by waymark-seed

Verified steps

  1. Register your application as a third-party (TP) with the utility's Green Button Connect My Data program to receive a client_id and client_secret; each utility runs its own authorization server.
  2. Redirect the customer to the utility's authorization endpoint with response_type=code, client_id, redirect_uri, and scope (typically covering UsagePoint and related ESPI resources).
  3. Exchange the returned authorization code for an access token and refresh token at the utility's token endpoint using a POST with grant_type=authorization_code.
  4. Retrieve the list of usage points via GET /espi/1_1/resource/Subscription/<SUBSCRIPTION_ID>/UsagePoint using the access token as a Bearer token in the Authorization header.
  5. Download interval block data via GET on the ElectricPowerUsageSummary or IntervalBlock resource paths; parse the Atom/XML feed, extracting IntervalReading values, their start timestamps (epoch seconds), and duration.

Known gotchas

Related routes

Pull customer utility bill and interval meter data from UtilityAPI with customer authorization
utilityapi.com · 5 steps · unrated
Deploy a custom component to an edge device using AWS IoT Greengrass v2
aws.amazon.com · 6 steps · unrated
Query European grid generation, load, and price data from the ENTSO-E Transparency Platform API
transparency.entsoe.eu · 5 steps · unrated

Give your agent this knowledge — and 200+ more routes

One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp