teslams
teslams copied to clipboard
Vehicle wake up is not working
I tried this library with my Model 3 and the vehicle wake up is not working. It returns a 408 vehicle is unavailable error when the car is in deep sleep.
I looked into it and found out that there are two api endpoints to wake up the car:
- https://owner-api.teslamotors.com/api/1/vehicles/:vehicle_id/command/wake_up
- https://owner-api.teslamotors.com/api/1/vehicles/:vehicle_id/wake_up
Your code is using the 1st. By changing the code to use the 2nd it's working like a charm with my Model 3.
I'm not sure if this change breaks anything for the Model S or X, maybe someone can check?
Best Stephan
Thanks a lot for sharing your solution steveh80, just ran into the same problem for my P3D.
p.s. Important: if you are playing around with this, disable WiFi in your car before testing/debugging. When your car is going into "asleep" mode, waking up your car might not be working. Still investigating on the exact reason, potentially the ARP entry for the car might timeout on your access point.