Read solar, grid, battery, and home power flow directly from a Tesla Powerwall 2 using its local Gateway API

domain: github.com/vloschiavo/powerwall2 · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Connect directly to the Powerwall Gateway on the local network rather than going through Tesla's cloud Fleet API
  2. Authenticate using the Gateway serial number and password; if no custom password was set, the default is the last 5 digits of the Gateway serial number
  3. Call /api/meters/aggregates to read current solar, grid, battery, and home power readings (in watts, Hz, etc.), with signed values indicating direction of flow
  4. Call /api/system_status/soe to read the aggregate state of energy (charge percentage) of the Powerwall(s)
  5. Call /api/system_status/grid_status, /api/sitemaster, /api/powerwalls, and /api/status for additional site/hardware state

Known gotchas

Related routes

Read Tesla Powerwall battery state (charge percent, power flow) from its local Gateway web interface on the home network.
tesla.com · 6 steps · unrated
Configure a Tesla Fleet API energy endpoint integration to aggregate residential Powerwall fleet state and receive availability signals for VPP dispatch
developer.tesla.com · 6 steps · unrated
Poll the Fronius Solar API locally on a GEN24/Symo inverter over HTTP to read real-time power flow and per-device inverter data.
fronius.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

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

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans