Elena Maren
- Service address
- 41 Bracken Row, Fernwick 00000
- Home
UP-E1 - Flat rate
- EV charger
UP-E2 - Time of use
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.
| Capability | Endpoint or header | Spec |
|---|---|---|
| Discovery | https://energy-demo.poppylab.dev/.well-known/poppy.json | §3 |
| OAuth metadata | https://energy-demo.poppylab.dev/.well-known/oauth-authorization-server | §3.2 |
| Direct Sign-In | POST https://energy-demo.poppylab.dev/oauth/par · GET https://energy-demo.poppylab.dev/oauth/authorize | §4.2 |
| Tokens | POST https://energy-demo.poppylab.dev/oauth/token · private_key_jwt + DPoP | §4.4–4.5 |
| Revocation | POST 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 |
| Conversations | https://energy-demo.poppylab.dev/poppy/conversations | §8 |
| Excluded tasks | https://energy-demo.poppylab.dev/poppy/tasks | §9 |
| Approvals | Poppy-Extensions: "operations";v="3" · Poppy-Approval | Operations v3 |
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":…}.
| Route | Scope | Answers |
|---|---|---|
Batch/Subscription/{sub} | espi:usage | Everything 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:usage | The chosen meters |
…/UsagePoint/{up}/MeterReading[/{mr}] | espi:usage | Its readings: delivered, and sent to the grid with solar |
…/MeterReading/{mr}/IntervalBlock[/{day}] | espi:usage | One block per UTC day, 24 hourly readings with cost |
…/UsagePoint/{up}/UsageSummary[/{month}] | espi:summary | Monthly bills with line items |
ReadingType[/{id}] · LocalTimeParameters[/{id}] | espi:usage | Units and Pacific time with US daylight saving rules |
Authorization[/{sub}] | any token of the grant | The grant as an ESPI Authorization; DELETE Authorization/{sub} revokes it (204) |
Batch/RetailCustomer/{sub} | espi:customer | Name and service address |
Choose either one on Fernwick's consent page or in the account portal. The portal and the APIs read the same state.
UP-E1UP-E2UP-R1account:readAddress, chosen meters, plans and bills
read onlyplan:writeSwitch a chosen meter's rate plan
reversibleespi:usageESPI-shaped: chosen meters and hourly usage with cost
read onlyespi:summaryESPI-shaped: bill summaries of chosen meters
read onlyespi:customerESPI-shaped: name and service address
read onlyoffline_accessRefresh the fictional grant while away
offline“How much did my EV charger use this month, and what did October cost?”
No approval“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“Switch my home meter to time-of-use.” It starts with the next bill cycle, after exact approval, once.
Exact approvalFictional Fernwick Power & Light data. No electricity is supplied or billed; never enter real utility account data or credentials.