tdorssers / TeslaPy

A Python module to use the Tesla Motors Owner API
MIT License
370 stars 81 forks source link

Seems like the teslapy is no longer working with the new Tesla APIs #156

Open aviadoffer opened 7 months ago

aviadoffer commented 7 months ago

I'm now getting an error : Endpoint is only available on fleetapi I understand that this is due to the new API requirements, just wondering if there is a plan to update Teslapy project? Thanks in advance!

DeLN0 commented 7 months ago

If you want a key just for personal testing, you can use any website and business you want from the internet.

@DeLN0 really!?!?!? Don't I need to do something with code validation at the web site? All I want is to fetch data and control my powerwall, I don't care about cars or other people etc. I thought I had to jump through the business and third-party app hoop to be able to use the Fleet API. I know that the Owner API still works, but for how long, and using a published and offical API seems a better idea, but it is just for my own personal 'hobby' use.

@DaveTBlake

You don't need to do anything with code validation at the web site, Dave. The code will be displayed in your browser, you can copy it from there. You can dm me if you need help.

fabianhu commented 7 months ago

I goofed around with the developer registration process and made this: tesla_api_example

For the implementation of the command protocol, we can team up, as I myself would like to have a python-only implementation. @tdorssers Do you have plans?

Meanwhile even the documentation is present, but I'm not feeling motivated enough to code it myself. For the moment I integrated the vehicle-command Go binary on my Raspberry.

JanJaapKo commented 7 months ago

@fabianhu I'm trying your example but I ran into the registration form. Do the account details need to be legit? In other words, do I need a valid VAT number connected to an actual business?

And I notice that you disabled the issues, done that deliberately? Only improvements in the for of PR's allowed ;) ?

fabianhu commented 7 months ago

Thank you Jan, I merged your improvements. The issues are open in the tesla_api repository.

Kamprath commented 6 months ago

I managed to get developer access working yesterday following this tutorial.

Edited to show author's blog instead of the medium.com version which is paywalled:

https://shankarkumarasamy.blog/2023/10/29/tesla-developer-api-guide-account-setup-app-creation-registration-and-third-party-authentication-configuration-part-1/

This only seems to be available to businesses, which is why I find this change to be so disappointing for the rest of us. Is there any possibility of getting developer access as an indie developer?

JanJaapKo commented 6 months ago

Yes you can I googled for 'what does a VAT number look like', got a fake number and used my home adress. Worked fine. Check also the improved description at https://github.com/fabianhu/tesla_api_example

mshoe007 commented 6 months ago

This only seems to be available to businesses

I'm not a business. I signed up for it just as I posted - following that blog. The bogger didn't sign up as a business, either.

I am in USA - I have no idea what the requirements are outside of USA.

gmcluhan commented 6 months ago

I found this app on the App Store: https://apps.apple.com/us/app/auth-app-for-tesla/id1552058613 and it says it can get API tokens using the Fleet API, once you have that can you swap these tokens into the existing TeslaPy scripts and keep using the scripts already written or did the end points change?