---
title: "Tesla Powerwall TEDAPI"
description: "Tesla Powerwall TEDAPI is a Marketplace integration for Home Assistant. It has 50 installs sharing analytics, works locally and was last updated November 28, 2026."
canonical: "https://vulpo.app/integrations/marketplace/cnapagoda-ha-powerwall-tedapi"
url: "https://vulpo.app/integrations/marketplace/cnapagoda-ha-powerwall-tedapi.md"
last-updated: "2026-11-28"
version: "1.4"
---

# Tesla Powerwall TEDAPI

> Tesla Powerwall TEDAPI is a Marketplace integration for Home Assistant. It has 50 installs sharing analytics, works locally and was last updated November 28, 2026.

From the [repository description](https://github.com/cnapagoda/ha-powerwall-tedapi):

> Home Assistant integration for local monitoring and control of a Tesla Powerwall through the gateway’s TEDAPI.

[Open in My Home Assistant](https://my.home-assistant.io/redirect/marketplace_repository/?owner=cnapagoda&repository=ha-powerwall-tedapi&category=integration)

On Home Assistant 2026.10 or older? [Open it in HACS](https://my.home-assistant.io/redirect/hacs_repository/?owner=cnapagoda&repository=ha-powerwall-tedapi&category=integration)

## Supports

- **Works locally**: Talks to your devices on your own network. No vendor cloud in between.
- **Found by itself**: Home Assistant spots it on the network and offers to add it.
- **Sign in with the vendor**: Connects through the vendor's own sign-in page.
- **From the Marketplace**: Installed through the Marketplace, formerly HACS.
- **Actively maintained**: Its author released or pushed a change in the last six months.

## Setting it up

Install it from the Marketplace and restart Home Assistant, then add it under Settings, Devices and services.

### Sign in to Tesla

- **Refresh token, or callback address**: The full tesla://auth/callback?code=… address from the browser sign-in, or a refresh token from an app sign-in (a long text, usually starting with eyJ). Each code works once and expires within minutes.

### Powerwalls found

- **Gateway**

### Gateway

- **Gateway address**: The gateway's address on your home network, for example 192.168.1.50. Your router lists it as teslapw\_….
- **Gateway password**: The whole password on the QR sticker inside the Powerwall's cover (Powerwall 3: behind the front glass, lower left). Letters are upper case. Most gateways also accept just its last 5 characters; a Backup Gateway 1 needs the whole password.
- **Wi-Fi fallback address**: Optional. Enter the Powerwall's Wi-Fi hotspot address (usually 192.168.91.1) only if Home Assistant is also connected to the Powerwall's own TeslaPW\_… Wi-Fi; otherwise leave it empty. It's used over the same signed connection when the home-network address stops answering, and to read follower Powerwall 3s, which the signed connection can't reach over the home network.
- **Customer password (optional)**: Only if the gateway's customer login password was changed and no longer matches the sticker (for example by an installer, or on an older firmware's web page). Used as it is for that login; leave empty to derive it from the gateway password.

### Upload the key

- **Private key (.pem)**: The private key file (.pem, starts with -----BEGIN PRIVATE KEY----- or -----BEGIN RSA PRIVATE KEY-----) whose public key is registered and VERIFIED on this Powerwall. Not the public key.
- **Link a Tesla account as a backup for settings**: Also sign in to a Tesla account, so settings can still be changed through the Tesla cloud when the local connection is down.

### Connect over the Powerwall's Wi-Fi

- **Hotspot address**: Usually 192.168.91.1, the address of the Powerwall's own Wi-Fi network (TeslaPW\_…).
- **Link a Tesla account to change settings**: Without a Tesla account, this connection can only read. Sign in to change settings through the Tesla cloud.

### Choose the Powerwall

- **Energy site**: The energy site (Tesla app name) with this Powerwall. Choosing another site's Powerwall stops the setup.

### Could not connect

- **Next**

### Gateway password

- **Gateway password**: The whole password on the QR sticker inside the Powerwall's cover (Powerwall 3: behind the front glass, lower left). Letters are upper case. Most gateways also accept just its last 5 characters; a Backup Gateway 1 needs the whole password.
- **Customer password (optional)**: Only if the gateway's customer login password was changed and no longer matches the sticker (for example by an installer, or on an older firmware's web page). Used as it is for that login; leave empty to derive it from the gateway password.

### After setup

- **Polling interval**
- **Fast polling interval for power**: How often power, battery level and grid status are read. 0 = off: they are read with everything else, at the polling interval. 5 to 60 s, and only used when shorter than the polling interval. Shorter gives smoother graphs and quicker dispatch limits, but more load on the gateway and a bigger database. Changing it reloads the integration.
- **Restore settings when the Powerwall drops them**: The Powerwall sometimes loses its grid export rule and its grid charging setting from its own settings (seen hourly on a Powerwall 3); grid charging then turns on. When on, the setting you chose is written back within a minute or two (signed connection only).
- **One device per Powerwall**: Each Powerwall and Expansion Pack gets a device of its own, linked to this one, with its battery, fan, solar input and inverter temperature sensors. Useful with several Powerwalls. Entity IDs and history stay; changing it reloads the integration.
- **Alert events for status alerts too**: Status alerts such as "Export limited" describe normal operation and some come and go every few minutes; by default only notices, warnings and faults create Alert events.
- **Problem delay**: How long a warning or fault must last before the Problem sensor turns on and a repair is raised.
- **Discharges stop at the backup reserve**: A discharge started without min\_soc stops when the battery reaches the backup reserve.
- **Largest dispatch power**: Dispatch calls above this power are refused (at most 30,000 W). Set it to what your system can deliver: one Powerwall 3 refuses more than 10,000 W. Raising it is your responsibility: only set what your wiring, breakers, gateway and grid connection allow.
- **Battery level may be this old**: A charge or discharge is only started or renewed on a battery level at most this old (1–5 minutes, default 2; never less than 2½ polling intervals). During a dispatch the Powerwall ignores its backup reserve, and its limits are checked against this level: each extra minute lets a 10 kW dispatch run about 0.17 kWh further past a limit. Raise it only if a slow connection keeps pausing dispatches.
- **Turn on grid charging for a charge**: A charge dispatch (also charge\_to) turns on Grid charging if it's off, so it can draw from the grid, and turns it off again when the dispatch ends, unless it was changed in the meantime. Charging from the grid may cost money on your tariff.
- **Tesla tariff (cloud)**: Read the tariff Tesla uses for Time-Based Control from the cloud backup (sensors, calendars and get/set tariff actions). Cloud only.
- **Cloud readings while the gateway is unreachable**: While the gateway can't be reached, show power, battery level and battery energy (remaining and full capacity) from the cloud backup instead (they carry the attribute source: cloud and can be a few minutes old). Energy counters and everything else stay unavailable. Off: all readings are unavailable until the gateway answers.
- **Gateway configuration in diagnostics**: Add the gateway's own configuration to diagnostics downloads, with serial numbers, location, names and credentials removed. Useful for bug reports.
- **Gateway configuration in diagnostics**: Add the gateway's own configuration to diagnostics downloads, with serial numbers, location, names and credentials removed. Useful for bug reports.
- **Publish to MQTT**
- **Base topic**: Messages go to base/power, /battery, /energy, /settings, /status and /event/…. Letters, digits, \_ and -, separated by /. Each Powerwall needs its own.
- **Accept setting commands**: Operation mode, backup reserve, grid charging and grid export, from base/cmd/…, with the same checks as the entities. Needs publishing on. Anyone who can publish to your broker can use them: restrict it with the broker's access rules, or set a secret.
- **Accept battery control commands**: Battery dispatch, charge to and discharge to a level, resume, and max backup, with every limit of the actions. Only with setting commands on. Read Safety first.
- **Command secret (optional)**: When set, a command runs only if its token field matches.
- **Cloud backup**: Only the backups that are set up are offered. Fleet API calls count on your Tesla developer account or Teslemetry plan.
- **Refresh token, or callback address**: The full tesla://auth/callback?code=… address from the browser sign-in, or a refresh token from an app sign-in (a long text, usually starting with eyJ). Each code works once and expires within minutes.
- **Energy site**: The energy site (Tesla app name) with this Powerwall.
- **Cloud backup**: The backup to stop using.

Texts from the code of [cnapagoda/ha-powerwall-tedapi](https://github.com/cnapagoda/ha-powerwall-tedapi).

## Entities

- **Binary sensors**: Grid connected, Dispatch active, Problem, Battery calibrating, Backup event, Storm Watch active, Grid services active, Wi-Fi internet, Ethernet internet, Cellular internet
- **Buttons**: Stop battery dispatch, Cancel max backup, Reconnect to the grid
- **Calendars**: Buy tariff, Sell tariff
- **Events**: Alert
- **Numbers**: Backup reserve, Off-grid vehicle charging reserve
- **Selects**: Operation mode, Grid export mode
- **Sensors**: Solar power, Battery power, Grid power, Home power, Grid import power, Grid export power, Battery discharge power, Battery charge power, Battery level, Battery state of energy, Grid status, Grid frequency, and 64 more
- **Switches**: Grid charging, Storm Watch, On-grid solar curtailment (experimental)

## Actions

- **Dispatch battery power**: Run the battery at a fixed power for a set time over the signed local connection. Positive watts discharge, negative watts charge, 0 holds the battery idle. Overrides the export setting; a discharge stops at the backup reserve unless min\_soc is given (option). The integration renews the command every 30 seconds in short steps, so the Powerwall returns to normal within 2 minutes if Home Assistant stops. A new call replaces a running dispatch. Use at your own risk: dispatching the battery may affect your Powerwall warranty, which may cover unlimited cycles only for self-consumption, time-based control and backup.
  Fields: Powerwall, Power, Duration, Stop discharging at, Stop charging at
- **Freeze battery**: Run the battery one way only, over the signed local connection, at the power the readings call for. charge\_only charges from the solar the home doesn't use and never discharges; discharge\_only covers what the home uses beyond solar and never charges, so surplus solar is exported. The power follows each reading, so a little may come from or go to the grid in between; without a fresh reading the battery is held. Made for Predbat's freeze charging and freeze exporting. It never turns Grid charging on; otherwise it works like a battery dispatch and may affect your Powerwall warranty in the same way.
  Fields: Powerwall, Direction, Duration, Largest power, Stop discharging at, Stop charging at
- **Charge to a battery level**: Charge the battery at a set power over the signed local connection until it reaches the target level, or for at most the time limit. Charges from solar and, if grid charging is allowed, from the grid. Ends with event reason target\_reached or completed. Use at your own risk: dispatching the battery may affect your Powerwall warranty, which may cover unlimited cycles only for self-consumption, time-based control and backup.
  Fields: Powerwall, Target level, Power, Time limit
- **Discharge to a battery level**: Discharge the battery at a set power over the signed local connection until it falls to the target level, or for at most the time limit. Overrides the export setting, so the battery may export to the grid. Ends with event reason target\_reached or completed. Use at your own risk: dispatching the battery may affect your Powerwall warranty, which may cover unlimited cycles only for self-consumption, time-based control and backup.
  Fields: Powerwall, Target level, Power, Time limit
- **Resume battery operation**: End a dispatch now and hand the battery back to the Powerwall's normal mode.
  Fields: Powerwall
- **Start max backup**: Start a backup event over the signed local connection: the Powerwall charges to full (from the grid too) and keeps the battery full for the duration, as Storm Watch does. A new call replaces a running max backup.
  Fields: Powerwall, Duration
- **Cancel max backup**: End a max backup started here or in the Tesla app. Storm Watch events scheduled by Tesla are not affected.
  Fields: Powerwall
- **Go off-grid**: Disconnect the house from the grid over the signed local connection, like \*Go off-grid\* in the Tesla app. The house then runs on the battery and solar; solar stops for about 30 seconds while the grid contactor switches. The action waits up to 90 seconds until the gateway reports it off-grid. The integration reconnects at the end of the duration, or when the battery falls to the reconnect level, also after a restart.
  Fields: Powerwall, Confirm, Duration, Reconnect at, For curtailment, Daily limit
- **Reconnect to the grid**: Reconnect the house to the grid over the signed local connection, also after \*Go off-grid\* in the Tesla app. The action waits up to 90 seconds until the Powerwall starts syncing to the grid.
  Fields: Powerwall, Only a curtailment run
- **Get Tesla tariff**: Read the tariff Tesla uses for Time-Based Control from the cloud backup, as raw JSON.
  Fields: Powerwall
- **Set Tesla tariff**: Send time-of-use settings to Tesla through the cloud backup. They change how Time-Based Control charges and discharges.
  Fields: Powerwall, Time-of-use settings, Dry run, Read back, Only if changed
- **Import battery history**: One-off: copy the battery charged and discharged history of the energy sensors you pick (for example from Tesla Fleet or Teslemetry) into this Powerwall's battery energy statistics, for the time before their own history starts. Take a Home Assistant backup first: the import is hard to undo.
  Fields: Powerwall, Dry run, Charged source, Discharged source, Into the net sensors
- **Set site limit**: Set or remove the site's grid import or export limit, over the signed local connection. An installer may have set a limit to meet your grid connection agreement (for example a network export limit): don't raise or remove one unless you're allowed to.
  Fields: Powerwall, Direction, Limit, Confirm
- **Delay battery calibration**: Postpone the Powerwall's next battery calibration, over the signed local connection. The gateway allows a limited number of delays, and each one may use one. Some firmware doesn't support it.
  Fields: Powerwall, Delay
- **Remove registered key**: Remove a key registered with the gateway, over the signed local connection. That app or device can then no longer send it commands. The key this integration uses can't be removed.
  Fields: Powerwall, Fingerprint, Confirm

## Troubleshooting

- **Diagnostics**: Downloads a diagnostics file to attach to a bug report.
- **Repair notices**: Notices it can show in Settings, Repairs:
  Sign in to Tesla again, Fleet API cloud backup is not working, Fleet API cloud backup can't change settings, Sign in to Tesla Fleet or Teslemetry, The Powerwall couldn't reconnect to the grid, Tesla's cloud capped the backup reserve, A cloud change did not apply as set, Signed local access stopped after a firmware update, Tesla stored a different tariff, A Powerwall 3 is missing from the readings, The Wi-Fi fallback address can't be reached, MQTT publishing can't start

## From the README

> Download counts are from the 2.8.3 release.
>
> Local monitoring and control of a Tesla Powerwall from Home Assistant, through the gateway's own interface (TEDAPI). Built on pypowerwall and aiopytedapi. Works with the Powerwall 3, and with Powerwall 2 / Powerwall+ where the firmware supports it.

From the README of [cnapagoda/ha-powerwall-tedapi](https://github.com/cnapagoda/ha-powerwall-tedapi#readme), [MIT License](https://spdx.org/licenses/MIT.html). Shortened.

## At a glance

- Kind: Marketplace integration
- Category: [Energy](https://vulpo.app/integrations/category/energy.md), Solar and batteries
- Brand: [Tesla](https://vulpo.app/integrations/tesla.md)
- Number: 50 installs sharing analytics; 20 GitHub stars
- Connection: Works locally
- Upkeep: Updated in the last 6 months
- Needs: Needs the Marketplace (HACS on 2026.10 and older)
- Latest version: v2.9.0, last updated November 28, 2026
- Domain: `tesla_tedapi`
- Source: <https://github.com/cnapagoda/ha-powerwall-tedapi>
- Issues: <https://github.com/cnapagoda/ha-powerwall-tedapi/issues>
- Screenshot: https://vulpo.app/integrations-img/150cffb2fb449daf.webp (from cnapagoda/ha-powerwall-tedapi's README)

In Vulpo: Quick Toggle card, Button card, Select card, Calendar card, Apple Watch, Control Center

## Other ways in for Tesla

| Name | Kind | Installs or stars | Connection | Upkeep |
| --- | --- | --- | --- | --- |
| [Tesla Wall Connector](https://vulpo.app/integrations/core/tesla-wall-connector.md) | Built-in integration | 7.3k installs sharing analytics | Works locally | Part of Home Assistant |
| [Tesla Fleet](https://vulpo.app/integrations/core/tesla-fleet.md) | Built-in integration | 6.3k installs sharing analytics | Needs the vendor's cloud | Part of Home Assistant |
| [Tesla Custom Integration](https://vulpo.app/integrations/marketplace/alandtse-tesla.md) | Marketplace integration | 4.4k installs sharing analytics | Needs the vendor's cloud | Updated in the last 6 months |
| [Tesla Powerwall](https://vulpo.app/integrations/core/powerwall.md) | Built-in integration | 2.2k installs sharing analytics | Works locally | Part of Home Assistant |
| [Tessie](https://vulpo.app/integrations/core/tessie.md) | Built-in integration | 2k installs sharing analytics | Needs the vendor's cloud | Part of Home Assistant |

Independent directory, made by the developer of Vulpo. Not affiliated with Home Assistant or the Open Home Foundation. [About these numbers](https://vulpo.app/integrations/about)

Last updated 2026-11-28. Source: https://vulpo.app/integrations/marketplace/cnapagoda-ha-powerwall-tedapi

---

- HTML version of this page: https://vulpo.app/integrations/marketplace/cnapagoda-ha-powerwall-tedapi
- Site index for agents: https://vulpo.app/llms.txt
- Everything in one document: https://vulpo.app/llms-full.txt
- All pages: https://vulpo.app/sitemap.xml
