bassmaster187 / TeslaLogger

TeslaLogger is a self hosted data logger for your Tesla Model S/3/X/Y. Actually it supports RaspberryPi 3B, 3B+, 4B, Docker and Synology NAS.
https://www.teslalogger.de
GNU General Public License v3.0
494 stars 165 forks source link

Tesla Fleet API migration #1167

Open bassmaster187 opened 5 months ago

bassmaster187 commented 5 months ago

Tesla Fleet API migration

Tesla has officially shut down the "owner-api" Teslalogger used to get data from. It is still possible to get data from the old owner-api with some dirty tricks, but some cars are now returning an error if you want to send commands to the car (e.g turn on sentry mode).

{"response":null,"error":"Tesla Vehicle Command Protocol required, please refer to the documentation here: https://developer.tesla.com/docs/fleet-api#2023-10-09-rest-api-vehicle-commands-endpoint-deprecation-warning","error_description":""}

Here are the docs: https://developer.tesla.com/docs/fleet-api#fleet-telemetry

Latest beta is in branch "TeslaFleetAPI" https://github.com/bassmaster187/TeslaLogger/tree/TeslaFleetAPI

Todos:

Maybe new todos will follow

Screenshots

Gain access to teslalogger image

You can revoke access to apps anytime: image

pszabaciuk commented 4 months ago

Which permissions from tesla api is required?

Shrekmachine commented 4 months ago

after successful switch to FleetAPI Teslalogger shows no more actual data for both my cars. Logfile error: 09.02.2024 11:21:32 : #1[Car_1:21]: GetVehicles Error: Object reference not set to an instance of an object

bassmaster187 commented 4 months ago

Which permissions from tesla api is required?

Does this answer your question? https://github.com/bassmaster187/TeslaLogger/blob/master/docs/en/tesla-fleet-permission.md

bassmaster187 commented 4 months ago

after successful switch to FleetAPI Teslalogger shows no more actual data for both my cars. Logfile error: 09.02.2024 11:21:32 : #1[Car_1:21]: GetVehicles Error: Object reference not set to an instance of an object

@Shrekmachine could you please send my your logfile

pszabaciuk commented 4 months ago

Which permissions from tesla api is required?

Does this answer your question? https://github.com/bassmaster187/TeslaLogger/blob/master/docs/en/tesla-fleet-permission.md

Yes, please, pin it up to main readme :D

Shrekmachine commented 4 months ago

after successful switch to FleetAPI Teslalogger shows no more actual data for both my cars. Logfile error: 09.02.2024 11:21:32 : #1[Car_1:21]: GetVehicles Error: Object reference not set to an instance of an object

@Shrekmachine could you please send my your logfile

on the way

bassmaster187 commented 4 months ago

Which permissions from tesla api is required?

Does this answer your question? https://github.com/bassmaster187/TeslaLogger/blob/master/docs/en/tesla-fleet-permission.md

Yes, please, pin it up to main readme :D

https://github.com/bassmaster187/TeslaLogger/commit/8c430a873f48737a4d3515c4e4c714401645d963 and https://github.com/bassmaster187/TeslaLogger/commit/c6b3ce46b2e85bcdb64d87b8cd205f5df554f035

Shrekmachine commented 4 months ago

after successful switch to FleetAPI Teslalogger shows no more actual data for both my cars. Logfile error: 09.02.2024 11:21:32 : #1[Car_1:21]: GetVehicles Error: Object reference not set to an instance of an object

After a couple of hours it started to work, without further action from my side