nfarina / homebridge-tesla

Tesla plugin for homebridge: https://github.com/nfarina/homebridge
155 stars 37 forks source link

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

Open k8stone opened 1 year ago

k8stone commented 1 year ago

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 commented 1 year ago

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

nfarina commented 1 year ago

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

InfoSecured commented 11 months ago

Any update on the "too many requests" problem?

nfarina commented 11 months ago

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?

InfoSecured commented 11 months ago

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

nfarina commented 11 months ago

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.

KE55ARD commented 9 months ago

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

nfarina commented 9 months ago

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

bunnyc1986 commented 9 months ago

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

michaelschneiderla commented 9 months ago

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

Ndotnw commented 8 months ago

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

nfarina commented 8 months ago

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.

Ndotnw commented 8 months ago

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 💯

psxjpc commented 6 months ago

@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.

crm09222 commented 6 months ago

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 👍.

KE55ARD commented 6 months ago

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.

lcrostarosa commented 5 months ago

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 ?

tomzt commented 5 months ago

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

Bre77 commented 5 months ago

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.