Giter Site home page Giter Site logo

Comments (5)

fabianhu avatar fabianhu commented on June 2, 2024 2

Hi, this may be seen as a blatant self-advertising, as it is:
I just published my Python implementation of the new 2024 Tesla API here:
tesla-api

So far it works for me including the whole registration process.

  • If someone wants to hop in, you are invited.
  • As the structure is simpler than TeslaPy, a pull request does not work so far.

For producing the signed commands I am currently using the tesla-command command line tool, written in Go by Tesla, which can also be compiled for Raspberry Pi.
A python native implementation can be done, when the documentation from Tesla is published.

In the past I used TeslaPy, which worked great!
If someone feels offended by this post, please let me know, I will delete/edit it asap.
@tdorssers

from teslapy.

goldhoorn avatar goldhoorn commented on June 2, 2024 1

This is a critial issue, i am getting already the following erro:
requests.exceptions.HTTPError: 403 Client 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 for url: https://owner-api.teslamotors.com/api/1/vehicles/1492932313807820/command/charge_stop

However the deprication is set for next year TeslaPy stopped working for me :/

from teslapy.

texasdan1 avatar texasdan1 commented on June 2, 2024

from teslapy.

JanJaapKo avatar JanJaapKo commented on June 2, 2024

@tdorssers is this something you're (planning to be) working on? If so, any help needed?

I've made a Domoticz plugin around this library (which works really well I must say) so curious to know if and how to update when implementing the new Tesla API.

from teslapy.

RichieB2B avatar RichieB2B commented on June 2, 2024

I just did the work for TWCManager. In short these were the required steps:

  1. Register an application with Tesla and your cars
  2. Get an OAuth token for each car (yes, there now is an official way to do this)
  3. Set up the proxy supplied by Tesla for your app
  4. Make the API server that TeslaPy uses configurable. This can be a FleetAPI region server or a proxy URL.
  5. Make the client_id of the app configurable in TeslaPy. This is needed for automated token refreshes.
  6. Don't use the car API ID in the command URLs. The proxy only supports the VIN in command URLs.

I'm not sure step 6 is needed for TeslaPy, maybe it already uses the VIN.

from teslapy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.