Home Assistant custom integration for Tesla Powerwall via pypowerwall proxy.
Home Assistant
│
│ aiohttp HTTP GET/POST (no Python pypowerwall library needed)
▼
pypowerwall proxy (default :8675)
│
▼
Tesla Powerwall gateway
No Python pypowerwall library required in HA — pure aiohttp.
This integration will set up the following platforms —
| Platform | Description |
|---|---|
sensor |
Power, battery, grid, inverter, PVAC, PV string, island controller, and grid meter data |
binary_sensor |
Grid status, alerts, pod health flags, PV string connected |
number |
Backup reserve percentage control (requires control_secret) |
select |
Operation mode and grid export policy (requires control_secret) |
switch |
Grid charging toggle (requires control_secret) |
- Multi-Powerwall support — Primary, Follower, and Expansion pod detection
- Per-device sensors — TEPOD (battery), TEPINV (inverter), PVAC (solar combiner), PVS strings A–F, TEMSA (grid meter), TESYNC (island controller)
- Grid meter per-leg data — L1/L2 power, voltage, current, reactive power, and lifetime energy counters
- Pod health flags — from
/podendpoint (permanently/persistently faulted, active heating, charge/discharge complete, wobble detected, and more) - Alert monitoring — per-device and aggregate alert counts
- Backup reserve, operation mode, grid charging & grid export control — requires
PW_CONTROL_SECRETconfigured on the proxy - Configurable polling interval — 5–300 seconds (default 30 s)
Or manually add the custom repository:
- Open HACS in Home Assistant.
- Go to Integrations → three-dot menu → Custom repositories.
- Add
https://github.com/nalditopr/ha-pypowerwallwith category Integration. - Search for PyPowerwall and install.
- Restart Home Assistant.
- Copy
custom_components/pypowerwall/into your HAcustom_components/directory. - Restart Home Assistant.
- Go to Settings → Devices & Services → Add Integration and search for PyPowerwall.
- Enter your pypowerwall proxy host and port (default:
8675). - Optionally set the polling interval (default: 30 seconds).
- Optionally enter the control secret (
PW_CONTROL_SECRET) to enable backup reserve and operation mode controls.
- Running pypowerwall proxy (e.g.
pypowerwall proxy -port 8675) - Home Assistant 2024.1+
This integration communicates with the pypowerwall proxy by @jasonacox.