Aller au contenu
recharge intelligente

Tesla Powerwall (Fleet API)

Cette page affiche la version nightly. Passez à la version stable.

Tesla offers an official, but paid Fleet API. For private use, you can create a Tesla Developer Account at developer.tesla.com and receive a monthly API credit of $10.

The myteslamate.com guide explains the process and generates a free Access and Refresh Token. With this token pair and your Client ID created in the Tesla Developer Account, evcc can directly communicate with the Tesla Fleet API.

Fonctionnalités prises en charge

  • Pilotage de la batterie: Pilotage externe de la charge et de la décharge de la batterie domestique par evcc.

Domaines d’utilisation

  • Batterie

Paramètres

NomDescriptionValeurNiveau
hostIP address or hostname
Exemple: 192.0.2.2
facultatif
passwordPassword

Password of the user "customer". By default this is the last 5 characters of password stated on the Tesla Gateway.

facultatif
clientIdClient IDfacultatif
accessTokenAccess tokenfacultatif
refreshTokenRefresh tokenfacultatif
siteIdSite ID

optional product identifier of the energy site, use to override autodetection

facultatif
minsoc [%]Minimum charge

Backup reserve evcc restores in normal operation

Par défaut: 20
Exemple: 25
avancé
Exemple de configuration pour evcc.yaml

Si vous ne souhaitez pas passer par l’interface, vous pouvez utiliser ce bloc YAML à la place.

meters:
- name: my_battery
type: template
template: tesla-powerwall-fleet
usage: battery
host: 192.0.2.2 # IP address or hostname
password: # Password, Password of the user "customer". By default this is the last 5 characters of password stated on the Tesla Gateway.
clientId: # Client ID, from [developer.tesla.com](https://developer.tesla.com/dashboard).
accessToken: # Access token, from [myteslamate.com](https://app.myteslamate.com/).
refreshToken: # Refresh token, from [myteslamate.com](https://app.myteslamate.com/).
siteId: # Site ID, optional product identifier of the energy site, use to override autodetection (optional)
minsoc: 20 # Minimum charge (%), Backup reserve evcc restores in normal operation (optional)