CarbonPilot
A carbon-aware home pilot. You give it deadlines, like the dryer done by 7 a.m. It watches live grid carbon intensity and your electricity rate, picks the cleanest cheap window, runs the device, and reports the dollars and CO2 saved with the method spelled out.
The idea
From a pitch to a pilot
In April 2025 I pitched the Carbon Internet Protocol for the Amazon Devices Climate Tech Accelerator. The point still holds: household energy is over 20% of global emissions, people cannot see their impact in real time, and smart devices are blind to carbon. The demo line was an Alexa that says running the dryer now will emit 35% more CO2 than waiting until 9 p.m., and offers to schedule it.
CarbonPilot is that pitch narrowed to something shippable in weeks: a phone and voice app that shifts flexible home loads to hours when the grid is cleaner and power is cheaper. The wedge is EV households first. EV charging is the first adapter, with a Tesla Fleet API client, because one overnight charge moves more kWh than a week of laundry. Plug loads come second, with a local Kasa client. The Home Assistant bridge is deferred: I have no smart home hardware at home to dogfood it against. No new hardware is needed to start. It connects to devices people already own.
Four parts of the original pitch are out of the MVP on purpose. Blockchain logging is out; the audit trail is a hash-chained signed log in Postgres, which gives auditability without a chain to operate. The full digital twin is out; a lightweight home model covers device wattage, runtime, and deadlines. Token rewards are out; streaks and neighborhood comparison tied to real savings are cheaper to run and easier to explain. On-device AI is deferred; inference runs server side, and no audio or video leaves the home.
Architecture
Grid signal in, scheduled loads out
Detail
At a glance
| Stack | FastAPI, Pydantic, Postgres with Timescale, Alembic migrations, Redis queue, Docker Compose, pytest. |
|---|---|
| Grid | Electricity Maps primary, EIA-930 fallback with a same-hour-yesterday persistence forecast, synthetic curve for demo and tests. Sources are tried in order and a failing source falls through to the next. Synthetic readings are labelled synthetic everywhere, including on the report. |
| Scheduler | Interval packing over a 24 hour horizon in 15 minute slots. Minimizes a weighted mix of carbon and cost, and enforces breaker headroom so concurrent loads stay under the NEC 80% continuous load rule. |
| Report | Monthly kWh shifted, kg CO2 avoided, and dollars saved, with baseline, method, and data sources printed. CSV and PDF export. Stated limits: savings are planned, not metered; the baseline is run now rather than a recorded week of behavior; average emissions only, no marginal figure yet. |
| Audit log | Hash-chained, signed append-only log per household, in Postgres. Auditability without a chain to operate. |
| Auth | Per-household API tokens, stored as hashes only, so a lost token cannot be recovered. Optional admin token for household creation. |
| API | Households, devices, runs, grid readings, reports, and export and delete of a household's data. One page dashboard at the root, and an interactive what-if at /how-it-works that runs the real solver and stores nothing. |
| MCP | One tool, reschedule_appliance: move a named appliance to the cleanest window before its deadline. |
| Stage | Week 2 built Nov 16, 2026, on top of Week 1 (grid signal, deadline scheduler, verified report, run executor). Week 2 adds the framework resolve with commanded state and a disk-persisted off timer, the EV adapter with a Tesla Fleet API client, and the plug adapter with a local Kasa client. 68 tests passing. Honest limits: real hardware untested, Tesla and Kasa tested against mocks only; Tapo not implemented; no live deployment yet. WattTime marginal emissions, Alexa skill, and push notifications still to come. Source repo is private. |