Replies: 2 comments 9 replies
-
Just call the car to wake up using
|
Beta Was this translation helpful? Give feedback.
-
Thanks, but my question was the opposite :-) I don't want to wake the car and only get statuses when it's awake. Since I can only make a background process (ie, like MakeWebRequest) one per 5 minutes, I can't check if the car is asleep and query if not. Luckily, the "GET /api/1/vehicles/{id}/data_request/*_state" (and ../vehicle_data) commands do not wake the vehicle and simply returns error 408 when asleep. That's enough for me for my needs. Thanks for taking the time to answer though :-) |
Beta Was this translation helpful? Give feedback.
-
Hi, I posted this within a thread and didn't get a response so I thought about making it its own post. I have a Garmin watch which polls the car's data every five minutes through this web request call:
https://owner-api.teslamotors.com/api/1/vehicles/{id}/vehicle_data
Now, does this call prevent it from sleeping? From what I read, it should, but below is seven sequences of such calls with 5 minutes between each call. For the first two, the car was awake and responded with 200 and valid data. At 15:30, it changed to a response code of 408 and no data was returned. It looks like the car fell asleep. Subsequent calls kept returning 408. Launching the Tesla app on my phone confirmed the car was asleep because it took over 10 seconds for the car to come online. Once online, it restarted responding with 200 and valid data. That seems to contradict what I've read. Am I missing something here?
Oh yeah, my Teslamate instance do not show 1-4 minutes charges that are usually shown when the car is plugged and it's prevented from sleeping (sentry on for example). That seems to confirm my assumption that the car falls asleep, even when polled with .../vehicle_data.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions