Custom HACS integration to pull read-only solar and home energy data from the Netzero API.
- Read-only sensors for home usage, solar production, grid import/export, and Powerwall charge/discharge.
- DataUpdateCoordinator with 5-minute default polling.
- Diagnostics with redacted payloads.
- Add this repository as a custom integration in HACS.
- Install the
Netzero Energyintegration. - Restart Home Assistant.
- Settings → Devices & Services → Add Integration → Netzero.
- Enter:
- Site ID
- Bearer token (
Authorizationheader) - X-Netzero-Token
- Optional: X-User-Id, API base URL, Fleet base URL, App version
- Default polling is 300 seconds; adjust in Options if desired.
Retrieve tokens from the Netzero web app network calls (as provided in the sample request). Tokens are stored securely by Home Assistant and only used for API reads.
- Home: total used kWh, instantaneous power, power from grid/solar/powerwall.
- Solar: total generated kWh, instantaneous power.
- Grid: imported/exported kWh (if available).
- Powerwall: charged/discharged kWh, instantaneous charge/discharge power.
- No control/config writes; read-only telemetry.
- If tokens expire, update them in the integration options or re-create the entry.