Originally posted by alphatech
View Post
You have to choose: do you want to spend battery to keep all your devices up-to-date, or do you want to save battery and only update your devices when the car is otherwise awake?
Generally speaking, it works like this:
- In order for me to check if the car is awake, I ask Tesla's servers (without talking to your car) for the status of your vehicle.
- If it's asleep, I stop there.
- If it's awake, I check to see if I'm supposed to be waiting for it to sleep depending on your settings and what the car is doing (driving, charging, etc.).
- If I'm supposed to be waiting for it to sleep, I stop there. This means I may be missing out on changes, but that's the cost of "waiting for sleep".
- Unless it's been too long since I started waiting, then I check the status from Tesla's servers again just in case it's changed to driving or charging and I shouldn't be ignoring it anymore. This is to prevent a short errand from preventing me from starting to talk to the car again.
- Then I talk to the car and update the devices.
- Unless it's been too long since I started waiting, then I check the status from Tesla's servers again just in case it's changed to driving or charging and I shouldn't be ignoring it anymore. This is to prevent a short errand from preventing me from starting to talk to the car again.
- If I'm not supposed to be waiting for it to sleep, I talk to the car and update the devices.
- If I'm supposed to be waiting for it to sleep, I stop there. This means I may be missing out on changes, but that's the cost of "waiting for sleep".
Comment