homebridge-tesla icon indicating copy to clipboard operation
homebridge-tesla copied to clipboard

Consider Telsa's official third-party access "Sign in with Tesla" scheme

Open k8stone opened this issue 2 years ago • 20 comments

I have so far avoided getting an access token through any of the various sketchy means I've seen, but it seems like Tesla is finally providing an official path for apps to register for an authentication token which the owner can revoke if desired from their Tesla account. Details are thin on the ground, but at least one such app has appeared as of today:

https://teslanorth.com/2023/08/08/first-sign-in-with-tesla-third-party-app

k8stone avatar Aug 08 '23 20:08 k8stone

Official documentation on how to participate with the formal SDK has finally been published.

k8stone avatar Oct 14 '23 00:10 k8stone

Wow, that's great!! I'll investigate this and hopefully it will fix the "too many requests" problem.

nfarina avatar Oct 18 '23 16:10 nfarina

Any update on the "too many requests" problem?

WeaveHubHQ avatar Dec 06 '23 00:12 WeaveHubHQ

Hm. I am looking at their website and it's very business-centric. It seems like they are just testing the waters here. They are saying "free for now" and the way they describe everything is for "business fleet management". Also the API rate limits are extreme:

image

One API request per car per 5 minutes is … unworkable. Anyone have a different read on this?

nfarina avatar Dec 06 '23 00:12 nfarina

Oof, that definitely seems unworkable. Are we hitting a rate limit right now with the "too many requests" message?

WeaveHubHQ avatar Dec 06 '23 01:12 WeaveHubHQ

It appears so, yes. And the worse news is they have officially deprecated the REST API (which this and every other Tesla app in the world uses) and it will stop functioning in early 2024. The only way forward is this new "Tesla Vehicle Control" API and no one knows how much it will cost, or if there will be an open-source free version to use on your own vehicle or what. It's a complete mystery.

nfarina avatar Dec 06 '23 21:12 nfarina

Does that mean this plugin officially no longer works now then?

KE55ARD avatar Jan 30 '24 19:01 KE55ARD

Unfortunately so, there's a note at the top of the Homepage/README explaining the same.

nfarina avatar Jan 30 '24 20:01 nfarina

according to its documentation, Telsa doesn't want us to pull vehicle data, instead they want to push it through webhook. but this will not work with homebridge unless someone can host a proxy service to receive these pushes and store them for query, or we need to register a developer account and setup our own server. ref: https://developer.tesla.com/docs/fleet-api#fleet-telemetry

bunnyc1986 avatar Feb 04 '24 22:02 bunnyc1986

@nfarina im trying to uninstall your Tesla app and I keep getting half way and it says it’s Unable to uninstall. Any tips?

michaelschneiderla avatar Feb 09 '24 14:02 michaelschneiderla

Will there be an update to get this working? Is it possible at this stage?

Ndotnw avatar Feb 28 '24 13:02 Ndotnw

Unfortunately Tesla hasn't provided any new information yet. I'm hoping they announce some kind of "personal plan" where you can send unlimited requests to your own vehicle without paying them. Anything else won't be feasible.

nfarina avatar Feb 28 '24 17:02 nfarina

Unfortunately Tesla hasn't provided any new information yet. I'm hoping they announce some kind of "personal plan" where you can send unlimited requests to your own vehicle without paying them. Anything else won't be feasible.

Thanks for the information. Good Job btw with this and Homebridge in general 💯

Ndotnw avatar Feb 28 '24 19:02 Ndotnw

@nfarina I was wondering if it would be feasible to use Teslamate (which still works) to get the job done? My guess is that once could also leverage this other project (https://github.com/tobiasehlert/teslamateapi) to avoid using the official API? I currently have homebridge and Teslamate both running on the same linux box. This API could be just an extra requirement that seems pretty straightforward to setup.

psxjpc avatar May 09 '24 18:05 psxjpc

Also, FWIW, the Tessie API works, and it has most of the endpoints needed I think. There is a $5/month subscription as I recall. Personally I would be willing to subscribe to have the Tesla/Homebridge world back in my life 👍.

crm09222 avatar May 15 '24 04:05 crm09222

FYI I've recently moved to Home Assistant for my home automation, and learnt that it can do everything that HomeBridge does (and more), as I now use it to bridge non-supported accessories into Apple Home instead.

Crucially, it has a working HACS integration for the Tesla API (little bit more work to get setup) and can bridge accessories through to HomeKit just like HomeBridge does.

It may seem intimidating but if you're technically minded enough to mess about setting up HomeBridge on a Raspberry Pi just to integrate devices into HomeKit, you can get HA setup instead and you'll get WAY more out of it.

KE55ARD avatar May 15 '24 06:05 KE55ARD

according to its documentation, Telsa doesn't want us to pull vehicle data, instead they want to push it through webhook. but this will not work with homebridge unless someone can host a proxy service to receive these pushes and store them for query, or we need to register a developer account and setup our own server. ref: https://developer.tesla.com/docs/fleet-api#fleet-telemetry

Can't you use something like zapier or add on some sort of rabbitMQ broker to your PI to capture the requests ?

lcrostarosa avatar May 21 '24 21:05 lcrostarosa

So does this application have the same problem? https://github.com/teslamate-org/teslamate

tomzt avatar May 24 '24 01:05 tomzt

I've forked this repo and plan to make it support Tessie and Teslemetry, which are paid subscription based products that provide access to the new Fleet API. I integrated both of these into Home Assistant already.

Bre77 avatar May 28 '24 01:05 Bre77