Aller au contenu
recharge intelligente

Tesla

Tesla offers an official, but paid vehicle API. For private use, you can create a Tesla Developer Account at developer.tesla.com and receive a monthly API credit of $10. This is usually sufficient for the common evcc use cases.

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 API. You can see your used credit in the Tesla Developer Dashboard.

To use a Tesla Wall Connector, you need a public Command Proxy Server. myteslamate.com provides such a service with per-use pricing. Configure the Command permissions at myteslamate.com and enter the Proxy Token here. Start, stopp and current commands are sent to Tesla via this proxy.

More information and alternatives can be found at docs.evcc.io/blog.

Paramètres

NomDescriptionValeurNiveau
clientIdClient IDfacultatif
accessTokenAccess tokenfacultatif
refreshTokenRefresh tokenfacultatif
titleTitle

Will be displayed in the user interface

facultatif
capacity [kWh]Battery capacity
Exemple: 50
facultatif
vinVehicle Identification Number

If you own multiple vehicles from the same manufacturer

Exemple: W...
facultatif
iconIcon

Will be displayed in the user interface

Par défaut: car
avancé
phasesMaximum number of phases

Used to determine the minimum solar surplus and plan duration.

avancé
minCurrent [A]Minimum current

The minimum current per connected phase that can be used

Exemple: 6
avancé
maxCurrent [A]Maximum current

The maximum current per connected phase that can be used

Exemple: 16
avancé
maxPower [W]Maximum charging power hint

Defines the maximum charging power of the vehicle. Helps improve charge plan accuracy when the vehicle typically uses less than the offered current or supports higher single-phase current compared to three-phase. The offered current of the loadpoint is not affected.

Exemple: 10000
avancé
identifiersRFID identification

Used to assign the vehicle to a loadpoint via RFID card. The identifier is shown on the loadpoint. Copy the value from there. Learn more.

avancé
priorityPriority

Priority of the loadpoint or vehicle in relation to other loadpoints or vehicles for allocating surplus energy (higher values, higher priority).

avancé
climaterdisabledDisable climater detection

Ignore the vehicle's climater state for charge control, so charging stops at the SoC or energy limit even when the vehicle signals an active climater request.

avancé
autodetectdisabledExclude from auto detection

Ignore the vehicle for auto detection of connected vehicles

avancé
wakeupdisabledDisable wake-up calls

Do not send wake-up calls to the vehicle or charger, useful for vehicles that refuse to charge after repeated wake-ups.

avancé
commandProxyCommand Proxy

When using a TWC3 (or other 'dumb' charger not capable of control), evcc can manage the charge directly by communicating with the vehicle through a Command Proxy. By default the myteslamate.com proxy is used. With this parameter, you set the base URL of a custom Command Proxy. See for example TeslaBleHttpProxy for a proxy sending commands via bluetooth.

Par défaut: https://api.myteslamate.com
avancé
proxyTokenProxy Token

Token for the myteslamate.com command proxy (pay-per use). Ensure, that you've installed their Virtual Key and granted 'Charge Start', 'Charge Stop' and 'Set Charging Amps' permissions.

avancé
cacheCache

Time interval for data refresh

Par défaut: 15m
Exemple: 5m
avancé
Exemple de configuration pour evcc.yaml

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

vehicles:
- name: my_car
type: template
template: tesla
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/).
title: # Title, Will be displayed in the user interface (optional)
capacity: 50 # Battery capacity (kWh), optional
vin: W... # Vehicle Identification Number, If you own multiple vehicles from the same manufacturer (optional)
icon: car # Icon, Will be displayed in the user interface [car, bike, bus, moped, motorcycle, rocket, scooter, taxi, tractor, rickshaw, shuttle, van, airpurifier, battery, bulb, climate, coffeemaker, compute, cooking, cooler, desktop, device, dishwasher, dryer, floorlamp, generic, heater, heatexchange, heatpump, kettle, laundry, laundry2, machine, meter, microwave, pump, smartconsumer, tool, waterheater] (optional)
phases: # Maximum number of phases, Used to determine the minimum solar surplus and plan duration. [1, 2, 3] (optional)
minCurrent: 6 # Minimum current (A), The minimum current per connected phase that can be used (optional)
maxCurrent: 16 # Maximum current (A), The maximum current per connected phase that can be used (optional)
maxPower: 10000 # Maximum charging power hint (W), Defines the maximum charging power of the vehicle. Helps improve charge plan accuracy when the vehicle typically uses less than the offered current or supports higher single-phase current compared to three-phase. _The offered current of the loadpoint is not affected._ (optional)
identifiers: # RFID identification, Used to assign the vehicle to a loadpoint via RFID card. The identifier is shown on the loadpoint. Copy the value from there. [Learn more.](https://docs.evcc.io/en/docs/features/vehicle) (optional)
priority: # Priority, Priority of the loadpoint or vehicle in relation to other loadpoints or vehicles for allocating surplus energy (higher values, higher priority). (optional)
climaterdisabled: # Disable climater detection, Ignore the vehicle's climater state for charge control, so charging stops at the SoC or energy limit even when the vehicle signals an active climater request. (optional)
autodetectdisabled: # Exclude from auto detection, Ignore the vehicle for auto detection of connected vehicles (optional)
wakeupdisabled: # Disable wake-up calls, Do not send wake-up calls to the vehicle or charger, useful for vehicles that refuse to charge after repeated wake-ups. (optional)
commandProxy: https://api.myteslamate.com # Command Proxy, When using a TWC3 (or other 'dumb' charger not capable of control), evcc can manage the charge directly by communicating with the vehicle through a Command Proxy. By default the [myteslamate.com](https://app.myteslamate.com/) proxy is used. With this parameter, you set the base URL of a custom Command Proxy. See for example [TeslaBleHttpProxy](https://github.com/wimaha/TeslaBleHttpProxy) for a proxy sending commands via bluetooth. (optional)
proxyToken: # Proxy Token, Token for the [myteslamate.com](https://app.myteslamate.com/) command proxy (pay-per use). Ensure, that you've installed their Virtual Key and granted 'Charge Start', 'Charge Stop' and 'Set Charging Amps' permissions. (optional)
cache: 15m # Cache, Time interval for data refresh (optional)