Skip to content

Commit 2243048

Browse files
authored
blog: tesla developer account; myteslamate changes (#775)
1 parent 96f7372 commit 2243048

File tree

2 files changed

+71
-84
lines changed

2 files changed

+71
-84
lines changed

blog/2025-01-20/tesla-api-update.mdx

Lines changed: 31 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ Die Nutzung bleibt weiterhin kostenfrei, erfordert jedoch einen zusätzlichen Ei
1313
{/* truncate */}
1414

1515
:::note Update
16-
8.2.2025: Weitere detaillierte Anleitungen für die Tesla Fleet API und myteslamate.com-Konfiguration.
16+
Dieser Beitrag wurde überarbeitet.
17+
18+
**[8.2.2025](https://github.com/evcc-io/docs/pull/723/files):** Weitere detaillierte Anleitungen für die Tesla Fleet API und myteslamate.com-Konfiguration.<br/>
19+
**[27.3.2025](https://github.com/evcc-io/docs/pull/775/files):** Aktualisierung auf den neuen Einrichtungsprozess von myteslamate.com.
1720
:::
1821

1922
## Tesla Fleet API wird ab Februar kostenpflichtig
@@ -46,33 +49,26 @@ Dort kannst du dir mit deinem Developer Account passende **Access- und Refresh-T
4649

4750
### Für Tesla-Fahrer {#vehicle}
4851

49-
Hier ist eine Schritt-für-Schritt-Anleitung, um deinen Tesla Developer Account (1) und myteslamate.com (2) einzurichten.
50-
Wir empfehlen, diese Schritte parallel in zwei Browserfenstern auszuführen, da sie voneinander abhängig sind (siehe Sprunghinweise).
51-
52-
1. Erstelle eine **Tesla Fleet API Application**
53-
1. Melde dich mit deinen Tesla-Zugangsdaten im [Tesla Developer Portal](https://developer.tesla.com/) an
54-
2. Klicke auf **Create New Application** und folge den Anweisungen
55-
3. Anwendungsdetails: Wähle einen Namen, eine Beschreibung und einen Verwendungszweck nach Belieben (springe zu 2.1.)
56-
4. Kundendetails: Gib die drei URLs ein, die myteslamate.com dir bereitstellt
57-
5. API/Berechtigungen: Wähle diese Berechtigungen
58-
- Profilinformationen
59-
- Fahrzeugdaten
60-
- Fahrzeugstandort _(für Fahrzeugerkennung, noch nicht implementiert)_
61-
- Fahrzeugbefehle _(für Wakeup)_
62-
- Fahrzeugladungskontrolle _(nur für TWC-Nutzer, siehe [Anleitung unten](#charger))_
63-
6. Rechnungsdetails: Kann übersprungen werden
64-
7. Du erhältst eine **Client ID** (Kunden-ID) und ein **Client Secret** (Kundengeheimnis) (springe zu 2.4.)
65-
2. Erstelle einen **myteslamate.com Account**
66-
1. Gehe zu [myteslamate.com](https://app.myteslamate.com/)
67-
2. Wähle die Option **Fleet API & Telemetry**
68-
3. Melde dich mit deinen Tesla-Zugangsdaten an
69-
4. Verwende deine persönlichen URLs (Origin, Redirect, Callback) um die Tesla-Anwendung zu registrieren (springe zu 1.4.)
70-
5. Gib deine **Client ID** und **Client Secret** ein
71-
6. In der "kostenlos und direkt" Sektion erhältst du deine **Access- und Refresh-Token**
72-
7. Kopiere beide Token in deine evcc-Konfiguration
73-
8. Klicke auf die Schaltfläche **Tokens von MyTeslaMate löschen**<br/>
74-
_Dies ist wichtig und stellt sicher, dass evcc die einzige Anwendung ist, die diese Token verwendet.
75-
Die Verwendung mehrerer Anwendungen (einschließlich myteslamate.com) mit denselben Token führt zu Token-Aktualisierungsproblemen._
52+
Für die Einrichtung in evcc benötigst du drei Informationen:
53+
54+
- **Kunden ID (Client ID):** aus dem [Tesla Developer Portal](https://developer.tesla.com/)
55+
- **Access Token:** über das Script von [myteslamate.com](https://www.myteslamate.com/tesla-api-application-registration/)
56+
- **Refresh Token:** über das Script von [myteslamate.com](https://www.myteslamate.com/tesla-api-application-registration/)
57+
58+
Folge der Anleitung auf [myteslamate.com](https://www.myteslamate.com/tesla-api-application-registration/) um diese Informationen zu generieren.
59+
60+
Da du parallel auf myteslamate.com und developer.tesla.com unterwegs bist, empfehlen wir dir, diese Schritte parallel in zwei Browserfenstern auszuführen.
61+
Am Ende des Prozesses muss ein Script heruntergeladen und auf deinem Rechner im Terminal/Konsole ausgeführt werden.
62+
63+
Im Anmeldeprozess erscheint ein Berechtigungsdialog.
64+
evcc benötigt für den Betrieb an einer normalen Wallbox (nicht Tesla Wall Connector) folgende **Tesla API Berechtigungen**:
65+
66+
- Profilinformationen _(Region, Liste der Fahrzeuge)_
67+
- Fahrzeugdaten _(Ladestand, Fahrzeugstatus, etc.)_
68+
- Fahrzeugstandort _(für Fahrzeugerkennung, noch nicht implementiert)_
69+
- Fahrzeugbefehle _(für Wakeup)_
70+
71+
Hast du den Prozess erfolgreich abgeschlossen trage die Informationen in die evcc-Konfiguration ein:
7672

7773
Beispiel:
7874

@@ -86,8 +82,6 @@ vehicles:
8682
refreshToken: EU_1234567890... # von myteslamate.com
8783
```
8884
89-
Auf myteslamate.com findest du auch eine [detailliertere Erklärung und Anleitung](https://www.myteslamate.com/tesla-api-application-registration/).
90-
9185
Dein verbrauchtes Guthaben kannst du in der [Übersicht im Tesla Developer Portal](https://developer.tesla.com/de_DE/dashboard/) jederzeit nachverfolgen.
9286
9387
:::note
@@ -99,14 +93,15 @@ Schau dir vor der Nutzung die [Terms of Service](https://www.myteslamate.com/ter
9993
10094
### Für Tesla Wall Connector Nutzer {#charger}
10195
102-
Wenn du einen Tesla Wall Connector verwendest, sind zusätzliche Schritte erforderlich, da die Ladekommandos eine signierte Kommunikation benötigen.
103-
myteslamate.com bietet für 12 € pro Jahr einen "Command Proxy" an, der diese Funktion bereitstellt.
96+
Wenn du einen Tesla Wall Connector verwendest, sind zusätzliche Schritte erforderlich, da die Ladekommandos eine signierte Kommunikation benötigen und über einen öffentlich zugänglichen Server abgewickelt werden müssen.
97+
myteslamate.com stellt einen solchen Proxy bereit.
98+
Die Abrechnung erfolgt auf Nutzungsbasis direkt über myteslamate.com.
99+
Für diese Kommandos wird nicht dein Tesla-Guthaben verwendet.
104100
105101
Wir gehen davon aus, dass du die [oben beschriebenen Schritte](#vehicle) bereits abgeschlossen hast.
106-
107-
1. Logge dich ein weiteres Mal bei [myteslamate.com](https://app.myteslamate.com/) ein nachdem du deine Token gelöscht hast (siehe 2.8.)
108-
2. Kopiere das **Proxy-Token** aus der Sektion **Tesla API über unseren Proxy**
109-
3. Füge das token in deine evcc-Konfiguration ein
102+
Logge dich erneut auf myteslamate.com ein und folge der Einleitung zur Einrichtung des kostenpflichtigen Command-Proxys.
103+
Kopiere das **Proxy-Token** aus der Sektion **Use MyTeslamate API**.
104+
Trage dieses Token in die evcc-Konfiguration ein:
110105
111106
```yaml {8}
112107
vehicles:
@@ -127,8 +122,6 @@ Es ist empfehlenswert die Berechtigungen bei myteslamate.com auf die nötigsten
127122
Für evcc sind nur die Funktionen **Charge Start**, **Charge Stop** und **Set Charging Amps** notwendig.
128123
:::
129124
130-
## Nutzungsdaten
131-
132125
## tesla.evcc.io wird eingestellt
133126
134127
tesla.evcc.io wird im Februar eingestellt.

i18n/en/docusaurus-plugin-content-blog/2025-01-20/tesla-api-update.mdx

Lines changed: 40 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ The usage remains free of charge, but requires an additional setup step.
1313
{/* truncate */}
1414

1515
:::note Update
16-
8.2.2025: More detailed instructions for the Tesla Fleet API and myteslamate.com configuration.
16+
This post has been revised.
17+
18+
**[8.2.2025](https://github.com/evcc-io/docs/pull/723/files):** More detailed instructions for the Tesla Fleet API and myteslamate.com configuration.<br/>
19+
**[27.3.2025](https://github.com/evcc-io/docs/pull/775/files):** Update to the new setup process of myteslamate.com.
20+
1721
:::
1822

1923
## Paid Tesla Fleet API starting February
@@ -28,7 +32,7 @@ The billing is based on usage, with costs varying depending on the type of reque
2832
With [tesla.evcc.io](https://tesla.evcc.io) we have provided a service that allows evcc users to generate access tokens for API usage.
2933
The API communication of these tokens would be billed to us starting February 2025.
3034
The costs per user depend on the number of vehicles, charging behavior, and the specific configuration of the update interval.
31-
For most users, these costs exceed our "$2 im Monat" sponsoring model and would not be sustainable for us, even if we would require sponsorship for Tesla integration.
35+
For most users, these costs exceed our "$2 per month" sponsoring model and would not be sustainable for us, even if we would require sponsorship for Tesla integration.
3236

3337
## Free API credit for private users
3438

@@ -47,33 +51,26 @@ So we decided not to reinvend the wheel.
4751

4852
### For Tesla drivers {#vehicle}
4953

50-
Here is a step-by-step guide to help you set up your Tesla Developer (1) and myteslamate.com (2) account.
51-
We recommend to use two browser windows, since both have to be done somewhat in parallel (see skip hints).
52-
53-
1. Create a **Tesla Fleet API Application**
54-
1. Log into your [Tesla Developer Portal](https://developer.tesla.com/dashboard) (use your Tesla credentials)
55-
2. Click **Create New Application** and follow the wizard
56-
3. Application Details: Pick a name, description and usage you like. (skip to 2.1.)
57-
4. Client Details: Fill in the three URLs provided by myteslamate.com
58-
5. API/Scope: Select these scopes
59-
- profile information
60-
- vehicle information
61-
- vehicle location _(for vehicle detection, not implemented yet)_
62-
- vehicle commands _(for wakeup)_
63-
- vehicle charging management _(only for TWC owners, see [instructions below](#charger))_
64-
6. Billing Details: Can be skipped
65-
7. You'll receive a **Client ID** and a **Client Secret** (skip to 2.4.)
66-
2. Create a **myteslamate.com account**
67-
1. Visit [myteslamate.com](https://app.myteslamate.com/)
68-
2. Select the free **Fleet API & Telemetry** option
69-
3. Sign in with your Tesla account
70-
4. Use your personal URLs (Origin, Redirect, Callback) to complete the Tesla Application registration (skip to 1.4.)
71-
5. Enter your **Client ID** and **Client Secret**
72-
6. In the "free and directly" section you will receive your **Access- and Refresh-Tokens**
73-
7. Copy both tokens to your evcc configuration
74-
8. Click the **Delete these tokens from MyTeslaMate** button.<br/>
75-
_This is important and ensures, that evcc is the only application to use these tokens.
76-
Having multiple applications (including myteslamate.com) use the same tokens will lead to token refresh issues._
54+
For the setup in evcc you need three pieces of information:
55+
56+
- **Client ID:** from the [Tesla Developer Portal](https://developer.tesla.com/)
57+
- **Access Token:** via the script from [myteslamate.com](https://www.myteslamate.com/tesla-api-application-registration/)
58+
- **Refresh Token:** via the script from [myteslamate.com](https://www.myteslamate.com/tesla-api-application-registration/)
59+
60+
Follow the instructions on [myteslamate.com](https://www.myteslamate.com/tesla-api-application-registration/) to generate this information.
61+
62+
Since you'll be working on myteslamate.com and developer.tesla.com in parallel, we recommend doing these steps in two browser windows simultaneously.
63+
At the end of the process, a script must be downloaded and executed on your computer in the terminal/console.
64+
65+
During the login process, a permissions dialog will appear.
66+
For operation with a normal wallbox (not Tesla Wall Connector), evcc requires the following **Tesla API permissions**:
67+
68+
- Profile information _(region, list of vehicles)_
69+
- Vehicle information _(charge level, vehicle status, etc.)_
70+
- Vehicle location _(for vehicle detection, not implemented yet)_
71+
- Vehicle commands _(for wakeup)_
72+
73+
Once you have successfully completed the process, enter the information in the evcc configuration:
7774

7875
Example:
7976

@@ -82,13 +79,11 @@ vehicles:
8279
- type: template
8380
template: tesla
8481
title: Tesla Model 3
85-
clientId: aaaaaa-11111-... # von developer.tesla.com
86-
accessToken: ey1234567890... # von myteslamate.com
87-
refreshToken: EU_1234567890... # von myteslamate.com
82+
clientId: aaaaaa-11111-... # from developer.tesla.com
83+
accessToken: ey1234567890... # from myteslamate.com
84+
refreshToken: EU_1234567890... # from myteslamate.com
8885
```
8986
90-
You can also find a [more detailed explanation and guide on myteslamate.com](https://www.myteslamate.com/tesla-api-application-registration/).
91-
9287
You can track your used API credit in the [Overview of the Tesla Developer Portal](https://developer.tesla.com/dashboard/).
9388
9489
:::note
@@ -100,24 +95,25 @@ Please refer to the [Terms of Service](https://www.myteslamate.com/terms-of-serv
10095
10196
### For Tesla Wall Connector users {#charger}
10297
103-
If you use a Tesla Wall Connector, additional steps are required, as the charging commands require signed communication.
104-
myteslamate.com offers a "Command Proxy" for 12 € per year, which provides this functionality.
98+
If you use a Tesla Wall Connector, additional steps are required, as the charging commands require signed communication and must be handled through a publicly accessible server.
99+
myteslamate.com provides such a proxy.
100+
Billing is done on a usage basis directly through myteslamate.com.
101+
These commands do not use your Tesla API credit.
105102
106103
We assume you've already completed the [steps described above](#vehicle).
107-
108-
1. Log into your [myteslamate.com](https://app.myteslamate.com/) account a second time after you've deleted you tokens (see 2.8.)
109-
2. Copy the **Proxy-Token** from the **Use your Tesla API via our proxy** section.
110-
3. Insert the token into your evcc configuration.
104+
Log into myteslamate.com again and follow the instructions to set up the paid command proxy.
105+
Copy the **Proxy-Token** from the **Use MyTeslamate API** section.
106+
Insert this token into your evcc configuration:
111107
112108
```yaml {8}
113109
vehicles:
114110
- type: template
115111
template: tesla
116112
title: Tesla Model 3
117-
clientId: aaaaaa-11111-... # von developer.tesla.com
118-
accessToken: ey1234567890... # von myteslamate.com
119-
refreshToken: EU_1234567890... # von myteslamate.com
120-
proxyToken: aaaaa-bbbbb-... # von myteslamate.com
113+
clientId: aaaaaa-11111-... # from developer.tesla.com
114+
accessToken: ey1234567890... # from myteslamate.com
115+
refreshToken: EU_1234567890... # from myteslamate.com
116+
proxyToken: aaaaa-bbbbb-... # from myteslamate.com
121117
```
122118
123119
With this setup, evcc will send charging commands to the myteslamate.com proxy, which will sign it with your Tesla application and forward it to the original Tesla API.
@@ -128,8 +124,6 @@ It is recommended to limit the permissions at myteslamate.com to the necessary f
128124
For evcc, only the functions **Charge Start**, **Charge Stop** and **Set Charging Amps** are necessary.
129125
:::
130126
131-
## Usage data
132-
133127
## tesla.evcc.io will be discontinued
134128
135129
tesla.evcc.io will be discontinued in February.

0 commit comments

Comments
 (0)