Skip to content

Surface grid tariff plan as a read-only Powerwall capability#19

Open
Bre77 wants to merge 1 commit into
mainfrom
fm/tariff-surface-homey
Open

Surface grid tariff plan as a read-only Powerwall capability#19
Bre77 wants to merge 1 commit into
mainfrom
fm/tariff-surface-homey

Conversation

@Bre77

@Bre77 Bre77 commented Jul 23, 2026

Copy link
Copy Markdown
Member

Intent

  • Surface the site's grid tariff/rate plan so users can see it and build cost-aware energy automations
    • @teslemetry/api's siteInfo response already carries tariff_id alongside the site-level fields (backup_reserve_percent, default_real_mode) the Powerwall device already maps from that same event - add a tariff_plan sensor capability there, wired through the existing SSE onSiteInfo handler
    • Read-only: getable: true, setable: false, no capability listener, no flow trigger/action/condition
    • Added a mapping test in test/battery-site-info-mapping.test.ts covering the tariff_id -> tariff_plan update and the no-overwrite-on-missing-field case
  • Out of scope per the current product ruling: no tariff write/set capability, no VPP/grid-services surfacing (tariff_content/tariff_content_v2 schedule data also left out - keeping this to the plan identity, not a full time-of-use UI)

The SDK's siteInfo response already carries tariff_id alongside the
other site-level fields (backup reserve, operation mode) the Powerwall
device already maps from that same event, so add a tariff_plan sensor
capability there for cost-aware flow conditions.
@Bre77

Bre77 commented Jul 23, 2026

Copy link
Copy Markdown
Member Author

What is this actually going to expose? The whole JSON or just the current point in time part of the tariff?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant