A few days ago when I opened the Tesla app on my phone I got a message that the vehicle XXXXXXX (I didn't screenshot this, wish I had - pretty sure it was the internal ID they use and therefore I use) was no longer on my account, and promptly signed me out. I tried signing back in a few times and it failed... Eventually I got back in and things seemed fine, but when I got home and checked on HS, I found the updates were all failing. A quick check in Postman and I saw that this primary key had changed!
I then added a quick option to see/change the ID on the root device page (along with a warning that you better not mess with that if you don't know what you're doing). That got my updates going again, but during my testing, I discovered it fouled all my events, since I chose to use the vehicle ID as the key indicating which vehicle you wanted to control And since HS has never provided any methods to iterate through events and their actions, there's no way for my plugin to propagate that change to all events.
Has this happened to anyone else? Trying to decide how much energy to invest in accounting for this possibility.
I then added a quick option to see/change the ID on the root device page (along with a warning that you better not mess with that if you don't know what you're doing). That got my updates going again, but during my testing, I discovered it fouled all my events, since I chose to use the vehicle ID as the key indicating which vehicle you wanted to control And since HS has never provided any methods to iterate through events and their actions, there's no way for my plugin to propagate that change to all events.
Has this happened to anyone else? Trying to decide how much energy to invest in accounting for this possibility.
Comment