- Posted on
Sat May 16, 2020 10:48 am
-
howartp
offline
-
- Posts: 4559
- Joined: Jan 09, 2014
- Location: West Yorkshire, UK
Home and Work are both set in the Device in Indigo.
They default to Tesla and Apple one way or the other - I can't rememember which.
If you update those to be your home and work coordinates then the DistanceFromHome/Work states will be populated correctly whenever you refresh the Drive state (or "All").
If you have two or more Teslas, each one can have different Home/Work locations on the assumption your spouse works at a different place to you and therefore needs different "Work" coordinates.
Now that Tesla offers a "Refresh all" endpoint within their API, it might be worth just using the refresh-all option all the time. Previously when you ran refresh-all I just called each of the others in turn but that's not no longer necessary so the last update I changed it to use their own endpoint.
Peter