Great work.This replaces my workaround with IOBroker to 99%.
One question, there are an attribute for moving/not moving in the position object/data in the app. It is helpful for automations that you want to run when the car is stationary.
Taking the example from the repo, I am not so interested in that my car has moved while driving but I would be interested in that the car has been stationary for x number of minutes and i forgot to lock or that I left the sunroof open.
that would be nice, you are rightā¦ I was checking what is returned with position, unfortunately in position reply I donāt see if device is moving or parkedā¦
I did some quick check and it seems that when car is moving - position is returning HTTP 204 (No Content). Can somebody (??? @Farfar/@tanelv ??? ) also confirm this is how it behaves?
@fn87 - wouldnāt be enough for you exposing parking time so you can react based on this information? I guess this can be used for logic like when car is parked for XX minutes, do some automation?
@fn87 - great, thank you for confirmation from different code that assumption is correct. I will create sensor for moving state also with parking time attribute.
Would you mind sharing from where this code is so I can check more there?
I now see in the logging I still get forbidden and stating the SPIN is maybe wrong. Thought I had the correct oneā¦ but will try to change it and relink the services in the car laterā¦
Yes that is correct. I already have it implemented in my fork, have a look. I have some more messy code trying to solve a few other items as well so pay no attention to that
Edit: I see you had it implemented already, Iām too slow!
Now I see the following warning in the log: 2020-11-25 14:54:26 WARNING (MainThread) [skodaconnect] Could not fetch pre-heating (ClientResponseError), error: 502, message=āBad Gatewayā, url=URL(āhttps://msg.volkswagen.de/fs-car/bs/rs/v1/skoda/CZ/vehicles/<VIN>/statusā)