Comments (5)
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.
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.
from teslapy.
@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.
I just did the work for TWCManager. In short these were the required steps:
- Register an application with Tesla and your cars
- Get an OAuth token for each car (yes, there now is an official way to do this)
- Set up the proxy supplied by Tesla for your app
- Make the API server that TeslaPy uses configurable. This can be a FleetAPI region server or a proxy URL.
- Make the client_id of the app configurable in TeslaPy. This is needed for automated token refreshes.
- 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)
- No longer able to set Powerwall to self_consumption mode HOT 6
- Percentage Charged not updating on get_battery_data()
- Preconditioning Battery
- Authorization broken -> Always getting "Access Denied" HOT 1
- Solar panel power only updates sporadically HOT 2
- Fails to work when run in a daemon process. HOT 2
- 410 error on get_battery_data HOT 15
- 400 Client Error: time_of_use_settings
- latitude and longitude are not in drive_state HOT 3
- Selenium blocked by Tesla HOT 2
- I get an InvalidSchema("No connection adapters were found for 'https://owner-api.teslamotors.com/api/1/vehicles/) Exception when using vehicle.get_vehicle_data() HOT 1
- Powerwall function get_battery_data not working HOT 1
- Not able to login HOT 6
- It seems get_charge_history() API URI is no longer working? Returns 400 HOT 2
- Seems like the teslapy is no longer working with the new Tesla APIs HOT 58
- drive_state does not have latitude and longitude
- shift_state and speed stay None even during driving
- looks like tesla have changed battery data HOT 1
- I get "Tesla Vehicle Command Protocol required" when using the command set_charging_amps since today
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teslapy.