Fernwick Power & Light

Point a Poppy 1.0 agent at Fernwick.

Fernwick accepts any HTTPS client metadata document with valid redirect URIs and ES256 or PS384 keys. The local plain-HTTP exception is only for Iris at localhost. Every public visitor receives a separate copy of the fictional customers.

CapabilityEndpoint or headerSpec
Discoveryhttps://energy-demo.poppylab.dev/.well-known/poppy.json§3
OAuth metadatahttps://energy-demo.poppylab.dev/.well-known/oauth-authorization-server§3.2
Direct Sign-InPOST https://energy-demo.poppylab.dev/oauth/par · GET https://energy-demo.poppylab.dev/oauth/authorize§4.2
TokensPOST https://energy-demo.poppylab.dev/oauth/token · private_key_jwt + DPoP§4.4–4.5
RevocationPOST https://energy-demo.poppylab.dev/oauth/revoke§4.6
OpenAPI (own API)https://energy-demo.poppylab.dev/openapi.json§7
ESPI-shaped API (ESPI-shaped (modelled on NAESB REQ.21 ESPI), not certified)https://energy-demo.poppylab.dev/espi/1_1/resource · Atom XML · Poppy-Extensions: "poppylab.dev/espi";v="1"§3.3
Conversationshttps://energy-demo.poppylab.dev/poppy/conversations§8
Excluded taskshttps://energy-demo.poppylab.dev/poppy/tasks§9
ApprovalsPoppy-Extensions: "operations";v="3" · Poppy-ApprovalOperations v3

The ESPI-shaped API.

Read-only Atom XML under https://energy-demo.poppylab.dev/espi/1_1/resource, modelled on NAESB REQ.21 ESPI and not certified. Energy in Wh (uom 72) per hour, cost in hundred-thousandths of a US dollar, times in seconds since 1970 UTC. The subscription is the grant: its ID comes back as resourceURI and authorizationURI in every token response. published-min and published-max choose the window (the last 31 days by default, at most 92); max-results and start-index page a feed. A subscription or meter outside the grant is a plain 404; a malformed parameter is a 400 with Fernwick's own JSON body, {"error":"invalid_parameter","description":…}.

RouteScopeAnswers
Batch/Subscription/{sub}espi:usageEverything about the chosen meters: usage points, local time, readings, reading types, interval blocks in the window, and bill summaries with espi:summary
Subscription/{sub}/UsagePoint[/{up}]espi:usageThe chosen meters
…/UsagePoint/{up}/MeterReading[/{mr}]espi:usageIts readings: delivered, and sent to the grid with solar
…/MeterReading/{mr}/IntervalBlock[/{day}]espi:usageOne block per UTC day, 24 hourly readings with cost
…/UsagePoint/{up}/UsageSummary[/{month}]espi:summaryMonthly bills with line items
ReadingType[/{id}] · LocalTimeParameters[/{id}]espi:usageUnits and Pacific time with US daylight saving rules
Authorization[/{sub}]any token of the grantThe grant as an ESPI Authorization; DELETE Authorization/{sub} revokes it (204)
Batch/RetailCustomer/{sub}espi:customerName and service address

Two test customers.

Choose either one on Fernwick's consent page or in the account portal. The portal and the APIs read the same state.

Elena Maren

Service address
41 Bracken Row, Fernwick 00000
Home UP-E1
Flat rate
EV charger UP-E2
Time of use

Robin Ito

Service address
7 Sorrel Court, Fernwick 00000
Home with solar panels UP-R1
Time of use

Scopes are narrow.

account:read

Address, chosen meters, plans and bills

read only

plan:write

Switch a chosen meter's rate plan

reversible

espi:usage

ESPI-shaped: chosen meters and hourly usage with cost

read only

espi:summary

ESPI-shaped: bill summaries of chosen meters

read only

espi:customer

ESPI-shaped: name and service address

read only

offline_access

Refresh the fictional grant while away

offline

Suggested protocol runs.

Read

“How much did my EV charger use this month, and what did October cost?”

No approval

Compare

“Would time-of-use be cheaper for my home meter?” The proposal's terms carry the estimate from the last closed bill.

No change yet

Change

“Switch my home meter to time-of-use.” It starts with the next bill cycle, after exact approval, once.

Exact approval

Fictional Fernwick Power & Light data. No electricity is supplied or billed; never enter real utility account data or credentials.