skodaconnect / homeassistant-skodaconnect

Skoda Connect - A home assistant plugin to add integration with your car
Apache License 2.0
232 stars 28 forks source link

Multiple authorization & one failed #98

Closed RalfAlbers closed 2 years ago

RalfAlbers commented 2 years ago

Describe the bug I have two cars connected to my skoda account, but I only got Information for one of them. In the log's I can see that one auth is successfully and one failed.

Latest working release I don't know, with the current, I don't get it working.

Debug logs 2022-01-04 10:08:44 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration skodaconnect which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2022-01-04 10:08:50 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {..., 'skodaconnect', ...} 2022-01-04 10:09:17 INFO (MainThread) [homeassistant.setup] Setting up skodaconnect 2022-01-04 10:09:17 INFO (MainThread) [homeassistant.setup] Setup of domain skodaconnect took 0.0 seconds 2022-01-04 10:09:17 DEBUG (MainThread) [custom_components.skodaconnect] Init async_setup_entry 2022-01-04 10:09:17 INFO (MainThread) [skodaconnect.connection] Init Skoda Connect library, version 1.1.12 2022-01-04 10:09:17 DEBUG (MainThread) [skodaconnect.connection] Using service https://msg.volkswagen.de 2022-01-04 10:09:17 INFO (MainThread) [skodaconnect.connection] Initiating new login 2022-01-04 10:09:17 DEBUG (MainThread) [skodaconnect.connection] Starting authorization process for client skoda 2022-01-04 10:09:17 DEBUG (MainThread) [custom_components.skodaconnect] Init async_setup_entry 2022-01-04 10:09:17 INFO (MainThread) [skodaconnect.connection] Init Skoda Connect library, version 1.1.12 2022-01-04 10:09:17 DEBUG (MainThread) [skodaconnect.connection] Using service https://msg.volkswagen.de 2022-01-04 10:09:17 INFO (MainThread) [skodaconnect.connection] Initiating new login 2022-01-04 10:09:17 DEBUG (MainThread) [skodaconnect.connection] Starting authorization process for client skoda 2022-01-04 10:09:22 DEBUG (MainThread) [skodaconnect.connection] Get authorization page: "https://identity.vwgroup.io/oidc/v1/authorize" 2022-01-04 10:09:23 DEBUG (MainThread) [skodaconnect.connection] Get authorization page: "https://identity.vwgroup.io/oidc/v1/authorize" 2022-01-04 10:09:23 DEBUG (MainThread) [skodaconnect.connection] Got authorization endpoint: "https://identity.vwgroup.io/signin-service/v1/signin/##ID_01##@apps_vw-dilab_com?relayState=##ID_02##" 2022-01-04 10:09:23 DEBUG (MainThread) [skodaconnect.connection] Got authorization endpoint: "https://identity.vwgroup.io/signin-service/v1/signin/##ID_01##@apps_vw-dilab_com?relayState=##ID_03##" 2022-01-04 10:09:23 DEBUG (MainThread) [skodaconnect.connection] Got redirect to signin-service 2022-01-04 10:09:23 DEBUG (MainThread) [skodaconnect.connection] Extracted form attribute: ('_csrf', '##ID_04##') 2022-01-04 10:09:23 DEBUG (MainThread) [skodaconnect.connection] Extracted form attribute: ('relayState', '##ID_02##') 2022-01-04 10:09:23 DEBUG (MainThread) [skodaconnect.connection] Extracted form attribute: ('hmac', '##ID_05##') 2022-01-04 10:09:23 DEBUG (MainThread) [skodaconnect.connection] Start authorization for user ##User@Domain## 2022-01-04 10:09:25 DEBUG (MainThread) [skodaconnect.connection] Got redirect to signin-service 2022-01-04 10:09:25 DEBUG (MainThread) [skodaconnect.connection] Extracted form attribute: ('_csrf', '##ID_06##') 2022-01-04 10:09:25 DEBUG (MainThread) [skodaconnect.connection] Extracted form attribute: ('relayState', '##ID_03##') 2022-01-04 10:09:25 DEBUG (MainThread) [skodaconnect.connection] Extracted form attribute: ('hmac', '##ID_07##') 2022-01-04 10:09:25 DEBUG (MainThread) [skodaconnect.connection] Start authorization for user ##User@Domain## 2022-01-04 10:09:33 ERROR (MainThread) [skodaconnect.connection] An API error was encountered during login, try again later 2022-01-04 10:09:33 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry ##TMB***## for skodaconnect Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 313, in async_setup result = await component.async_setup_entry(hass, self) # type: ignore File "/config/custom_components/skodaconnect/__init__.py", line 142, in async_setup_entry if not await coordinator.async_login(): File "/config/custom_components/skodaconnect/__init__.py", line 790, in async_login if await self.connection.doLogin() is False: File "/usr/local/lib/python3.9/site-packages/skodaconnect/connection.py", line 136, in doLogin return await self._authorize('skoda') File "/usr/local/lib/python3.9/site-packages/skodaconnect/connection.py", line 207, in _authorize location = await self._signin_service(req, authissuer, authorizationEndpoint) File "/usr/local/lib/python3.9/site-packages/skodaconnect/connection.py", line 352, in _signin_service raise SkodaException('Authorization request failed') skodaconnect.exceptions.SkodaException: Authorization request failed 2022-01-04 10:09:34 DEBUG (MainThread) [skodaconnect.connection] Extracted form attribute: ('_csrf', '##ID_06##') 2022-01-04 10:09:34 DEBUG (MainThread) [skodaconnect.connection] Extracted form attribute: ('relayState', '##ID_03##') 2022-01-04 10:09:34 DEBUG (MainThread) [skodaconnect.connection] Extracted form attribute: ('email', '##User@Domain##') 2022-01-04 10:09:34 DEBUG (MainThread) [skodaconnect.connection] Extracted form attribute: ('hmac', '##ID_08##') 2022-01-04 10:09:34 DEBUG (MainThread) [skodaconnect.connection] Finalizing login

Installation:

Additional context I think the skoda api could not handle multiple auth requests. Is it possible to handle both cars with one auth-session?

bslefevre commented 2 years ago

I'm having similar issues! Only my Enyaq has data but the Citigo-e doesn't show data for some time now

RalfAlbers commented 2 years ago

Yes, the Octavia is fine and the Citigo-e has no data.

terriblefox commented 2 years ago

Same here, when I delete the one that didn't load and re-add it, it all works fine, just at startup one car is missing.

bslefevre commented 2 years ago

Same here, when I delete the one that didn't load and re-add it, it all works fine, just at startup one car is missing.

I tried this and by doing so I cannot find the VIN for my Citigo-e (the second car that didn't work) so I'm left with one car 😅

I can see the car within Skoda Connect and MySkoda btw

RalfAlbers commented 2 years ago

Removing and readding the car that had no data DOES NOT work for me! After the readd HA only had 8 entities for the car.

terriblefox commented 2 years ago

mh strange , re adding works fine every time here. I just found out that it is not the same car every time it switches. Perhaps a delayed load of multiple instances would help...

Farfar commented 2 years ago

I have started working on a different approach for handling the config items where there will be only one config entry per account instead of one per vehicle. This should resolve this issue. It might take some time though since I don't have that much spare time to work on this at the moment.

bslefevre commented 2 years ago

@Farfar is there a way to help you with this? When I'm adding the Skoda Connect integration I'm only getting 1 VIN (I'm expecting 2)

Farfar commented 2 years ago

@Farfar is there a way to help you with this? When I'm adding the Skoda Connect integration I'm only getting 1 VIN (I'm expecting 2)

Yes, you can try the multi-vehicle-account branch but you need to install it manually.

bslefevre commented 2 years ago

Yes, you can try the multi-vehicle-account branch but you need to install it manually.

I've removed the current folder and added the skodaconnect folder from the multi-vehicle-connect branch After removing the existing integration and readding it, it could only find 1 car unfortunately Is this a known issue?

Farfar commented 2 years ago

Yes, you can try the multi-vehicle-account branch but you need to install it manually.

I've removed the current folder and added the skodaconnect folder from the multi-vehicle-connect branch After removing the existing integration and readding it, it could only find 1 car unfortunately Is this a known issue?

I don't know since I only tested it myself and I only have 1 car. Can you supply debug logs?

RalfAlbers commented 2 years ago

I updated my HomeAss to 2022.3.1 and manual to the multi-vehicle-account branch.

These are the logs:

logs.txt

The situation is still that I can see data from my Octavia but not from my Citigo-e. In the MyScoda App I can see all data.

Farfar commented 2 years ago

I updated my HomeAss to 2022.3.1 and manual to the multi-vehicle-account branch.

These are the logs:

logs.txt

The situation is still that I can see data from my Octavia but not from my Citigo-e. In the MyScoda App I can see all data.

2022-03-03 12:58:43 DEBUG (MainThread) [skodaconnect.vehicle] Service: carfinder_v1 is disabled because of reason: ['primaryUserNotVerified', 'noActiveLicense'] 2022-03-03 12:58:43 DEBUG (MainThread) [skodaconnect.vehicle] Service: rclima_v1 is disabled because of reason: ['primaryUserNotVerified', 'noActiveLicense'] 2022-03-03 12:58:43 DEBUG (MainThread) [skodaconnect.vehicle] Service: timerprogramming_v1 is disabled because of reason: ['primaryUserNotVerified', 'noActiveLicense'] 2022-03-03 12:58:43 DEBUG (MainThread) [skodaconnect.vehicle] Service: statusreport_v1 is disabled because of reason: ['primaryUserNotVerified', 'noActiveLicense'] 2022-03-03 12:58:43 DEBUG (MainThread) [skodaconnect.vehicle] Service: rbatterycharge_v1 is disabled because of reason: ['primaryUserNotVerified', 'noActiveLicense'] 2022-03-03 12:58:43 DEBUG (MainThread) [skodaconnect.vehicle] Service: trip_statistic_v1 is disabled because of reason: ['primaryUserNotVerified', 'noActiveLicense']

In your case it's because you are using an account added as a guest user for the vehicle. None of the API endpoints used in this integration AFAIK works with non-primary user.

RalfAlbers commented 2 years ago

strange, I did not change anything and I had for both cars all the time only the one account that I'm use in HomeAss...

RalfAlbers commented 2 years ago

Skoda Support tells me, that the last days they experiencing some service outages. Maybe that's related to this.

Farfar commented 2 years ago

Skoda Support tells me, that the last days they experiencing some service outages. Maybe that's related to this.

Perhaps. Double check that the account used is the primary user in the car. Can you see all attributes for the Citigo if you login to web service?

bslefevre commented 2 years ago

I can see 2 cars in the Skoda Connect app and website

Here are my logs from reinitializing the integration, I'm seeing 1 VIN in the Configuration and nowhere in the logging the second VIN

Mar 18 17:17:28 raspberrypi hass[4716]: 2022-03-18 17:17:28 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v1/air-conditioning/[ENYAQ VIN]/settings" returned with status code [200] Mar 18 17:17:28 raspberrypi hass[4716]: 2022-03-18 17:17:28 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v1/charging/[ENYAQ VIN]/settings" returned with status code [200] Mar 18 17:17:28 raspberrypi hass[4716]: 2022-03-18 17:17:28 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v1/air-conditioning/[ENYAQ VIN]/timers" returned with status code [200] Mar 18 17:17:28 raspberrypi hass[4716]: 2022-03-18 17:17:28 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v1/charging/[ENYAQ VIN]/status" returned with status code [200] Mar 18 17:17:28 raspberrypi hass[4716]: 2022-03-18 17:17:28 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v1/air-conditioning/[ENYAQ VIN]/status" returned with status code [200] Mar 18 17:17:28 raspberrypi hass[4716]: 2022-03-18 17:17:28 INFO (MainThread) [skodaconnect.connection] Returning with data {'airConditioning': {'remainingTimeToReachTargetTemperatureInSeconds': 0, 'state': 'Off', 'trigger': 'OFF', 'windowsHeatingStatuses': [{'windowLocation': 'Front', 'state': 'Off'}, {'windowLocation': 'Rear', 'state': 'Off'}], 'seatHeatingSupport': {'frontLeftAvailable': True, 'frontRightAvailable': True, 'rearLeftAvailable': False, 'rearRightAvailable': False}}, 'airConditioningSettings': {'targetTemperatureInKelvin': 294.15, 'temperatureConversionTableUsed': 'CELSIUS_KELVIN', 'airConditioningAtUnlock': True, 'windowHeatingEnabled': True, 'zonesSettings': {'frontLeftEnabled': True, 'frontRightEnabled': True}}} 17:17:32 INFO (MainThread) [homeassistant.components.automation.1_0_motion_garage] 1.0 Motion garage: Running automation actions 17:17:32 INFO (MainThread) [homeassistant.components.automation.1_0_motion_garage] 1.0 Motion garage: Choose at step 1: choice 2: Running automation actions 17:17:32 INFO (MainThread) [homeassistant.components.automation.1_0_motion_garage] 1.0 Motion garage: Choose at step 1: choice 2: Executing step call service 17:17:56 INFO (MainThread) [skodaconnect.connection] Initiating logout 17:17:56 INFO (MainThread) [skodaconnect.connection] Revocation of "refresh_token" for client "skoda" successful 17:17:56 INFO (MainThread) [skodaconnect.connection] Revocation of "refresh_token" for client "connect" successful 17:17:56 INFO (MainThread) [skodaconnect.connection] Revocation of "access_token" for client "vwg" successful 17:17:56 INFO (MainThread) [skodaconnect.connection] Revocation of "refresh_token" for client "vwg" successful 17:17:56 INFO (MainThread) [skodaconnect.connection] Init Skoda Connect library, version 1.1.19 17:17:56 DEBUG (MainThread) [skodaconnect.connection] Using service https://msg.volkswagen.de 17:17:56 INFO (MainThread) [skodaconnect.connection] Initiating new login 17:17:56 DEBUG (MainThread) [skodaconnect.connection] Starting authorization process for client skoda 17:17:56 DEBUG (MainThread) [skodaconnect.connection] Get authorization page: "https://identity.vwgroup.io/oidc/v1/authorize" 17:17:56 DEBUG (MainThread) [skodaconnect.connection] Got authorization endpoint: "https://identity.vwgroup.io/signin-service/v1/signin/f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com?relayState=09c8ec54892a83a8e130b741de967ffddd88bfa4" 17:17:56 DEBUG (MainThread) [skodaconnect.connection] Got redirect to signin-service 17:17:56 DEBUG (MainThread) [skodaconnect.connection] Extracted form attribute: ('_csrf', '70036aa3-991a-4cfb-8dee-10e568030e77') 17:17:56 DEBUG (MainThread) [skodaconnect.connection] Extracted form attribute: ('relayState', '09c8ec54892a83a8e130b741de967ffddd88bfa4') 17:17:56 DEBUG (MainThread) [skodaconnect.connection] Extracted form attribute: ('hmac', '717f4fd03472021a5a503d7b50760e9836f39af067de6987f5291039ca10ae16') 17:17:56 DEBUG (MainThread) [skodaconnect.connection] Start authorization for user [my email] 17:17:56 DEBUG (MainThread) [skodaconnect.connection] Found dynamic credentials form, extracting attributes 17:17:56 DEBUG (MainThread) [skodaconnect.connection] JSON: {'clientLegalEntityModel': {'clientId': 'f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com', 'clientAppName': 'ŠKODA App & Portal', 'clientAppDisplayName': 'ŠKODA App & Portal', 'legalEntityInfo': {'name': 'ŠKODA', 'shortName': 'SKODA', 'productName': 'ŠKODA ID', 'theme': 'skoda', 'defaultLanguage': 'cs', 'termAndConditionsType': 'DEFAULT', 'legalProperties': {'revokeDataContact': 'DPOffice@skoda-auto.cz', 'imprintText': 'IMPRINT', 'countryOfJurisdiction': 'CZ'}}, 'imprintTextKey': 'imprint.link.text'}, 'template': 'loginAuthenticate', 'hmac': '817fb00466550bc466dbbbd98252f0b230c906b356d3d4f0997eedd324fda37f', 'useClientRendering': True, 'emailPasswordForm': {'email': '[my email]', 'password': None}, 'error': None, 'relayState': '09c8ec54892a83a8e130b741de967ffddd88bfa4', 'nextButtonDisabled': False, 'enableNextButtonAfterSeconds': 0, 'postAction': 'login/authenticate', 'identifierUrl': 'login/identifier'} 17:17:56 DEBUG (MainThread) [skodaconnect.connection] Finalizing login 17:17:56 DEBUG (MainThread) [skodaconnect.connection] Using login action url: "https://identity.vwgroup.io/signin-service/v1/f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com/login/authenticate" 17:17:57 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/oidc/v1/oauth/sso?clientId=f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com&relayState=09c8ec54892a83a8e130b741de967ffddd88bfa4&userId=c7033925-7b01-4e61-85e9-2cb848f6e7a8&HMAC=5e996ea9139fe5d14e31afee69b9fdcf8d62b2f6a896740888e5272953ffd2a9" 17:17:57 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/signin-service/v1/consent/users/c7033925-7b01-4e61-85e9-2cb848f6e7a8/f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com?scopes=openid%20mbb%20profile&relayState=09c8ec54892a83a8e130b741de967ffddd88bfa4&callback=https://identity.vwgroup.io/oidc/v1/oauth/client/callback&hmac=35be6a863c6c1daf38c292609245946bc52c782932d40dc621aab19f5ed4d9aa" 17:17:57 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/oidc/v1/oauth/client/callback/success?user_id=c7033925-7b01-4e61-85e9-2cb848f6e7a8&client_id=f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com&scopes=openid%20mbb%20profile&consentedScopes=openid%20mbb%20profile&relayState=09c8ec54892a83a8e130b741de967ffddd88bfa4&hmac=061c53fc67351a4ed30d6558fdba7e8a0f7dff2c49b497f0f103c940ddd45053" 17:17:57 DEBUG (MainThread) [skodaconnect.connection] Received authorization code, exchange for tokens. 17:17:57 DEBUG (MainThread) [skodaconnect.connection] Got access_token for client f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com, token: "eyJraWQiOiI0YWJkMTUyODA0MWMzMGUyIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJjNzAzMzkyNS03YjAxLTRlNjEtODVlOS0yY2I4NDhmNmU3YTgiLCJhdWQiOiJmOWEyMzU5YS1iNzc2LTQ2ZDktYmQwYy1kYjE5MDQzNDMxMTdAYXBwc192dy1kaWxhYl9jb20iLCJzY3AiOiJvcGVuaWQgbWJiIHByb2ZpbGUiLCJhYXQiOiJpZGVudGl0eWtpdCIsImlzcyI6Imh0dHBzOlwvXC9pZGVudGl0eS52d2dyb3VwLmlvIiwianR0IjoiYWNjZXNzX3Rva2VuIiwiZXhwIjoxNjQ3NjIzODc3LCJpYXQiOjE2NDc2MjAyNzcsImxlZSI6WyJTS09EQSJdLCJqdGkiOiI5YmViNDA4MC0yZGUwLTRhZjAtYWE2YS1mNzE5MTE0YmI2OWIifQ.S8BjmutFPO7f3663jtzty_MgA7gyhw2BcZysetDy3CWe0bwqptaiYK8l1SzXbvoX6m3MrHSa74lYuLWo8S1jAjpmJHZ_cbAc0sXqFD00b0nYV5SJH-EuExSUtOMZ8H14L84opBI5NVUhyiDFlOPFUfVTbyQb2lfvBDX0HijkcHBNA3_oEkq7YrGot24SjXyqaP578xcP_gFVa4wKyFom4EAzJZO_o7vkaa2Gbucz3HywEBoHLS1nnAOdbHeHR7PEfy-RiCA0zisR179mgbAsYnAAHhpKXlUlsLeh-oXJF9vN9NudF6rKLsMnRoqGG87cXWRy9kcMZI7Ky9_wLDjZ2aVi5_sPDrV5xTYXZV_K3zJc-QMVX6aPGK4fVgkECUrHVri6ZlDhMqks_nj-NSdvQgJmF4wceSwq8Rs60Lghd5xcYCtNBWmHzzY2xbAqVGA3jSZ1AhaOLkklbABQlGofV8IMVSJ0aQK7irc_iLZtnZtmi9JOWXa9g-tuNk0tq6xJOuYYjUMOEU0NPaqzNW8tUB8WoiQbOQcGOOUJ-xxF7eJMV754My534hu7DxO91uz74GH1jUCg8zOeEjAKZk0olOGgHyXrsqRRT1bpM1zSczYyZ-UHCj4OqaRcJoUw5OEm70xm3fx5L0LfM1UYGnx-a5bX6A5dLuTsz7dgkkQufEQ" 17:17:57 DEBUG (MainThread) [skodaconnect.connection] Got refresh_token for client f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com, token: "eyJraWQiOiI0YWJkMTUyODA0MWMzMGUyIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJjNzAzMzkyNS03YjAxLTRlNjEtODVlOS0yY2I4NDhmNmU3YTgiLCJhdWQiOiJmOWEyMzU5YS1iNzc2LTQ2ZDktYmQwYy1kYjE5MDQzNDMxMTdAYXBwc192dy1kaWxhYl9jb20iLCJhY3IiOiJodHRwczpcL1wvaWRlbnRpdHkudndncm91cC5pb1wvYXNzdXJhbmNlXC9sb2EtMiIsInNjcCI6Im9wZW5pZCBtYmIgcHJvZmlsZSIsImFhdCI6ImlkZW50aXR5a2l0IiwiaXNzIjoiaHR0cHM6XC9cL2lkZW50aXR5LnZ3Z3JvdXAuaW8iLCJqdHQiOiJyZWZyZXNoX3Rva2VuIiwiZXhwIjoxNjc5MTU2Mjc3LCJpYXQiOjE2NDc2MjAyNzcsImp0aSI6IjhlNDQyYTZkLTNmN2EtNDdjMi04M2QzLWM2ODYwNmMwZDg3NiJ9.O3t_1KNnc216RElLOmr72JLqeANrtvZHWHel-qfIpl0P5SxUYyHOg10EM5nNSrvkPsrjFUTwMPAxCY3TSVLaxB6hL1goNnDjpBgPAcs4W2EqoUVa8MteKM8Sv3v3l7-PcD1_FTU1yGkq7sNaLyOirfdGfkYgtil8VliCMohCjYGjVoec3NW097MuANMsd0MUsqE7T1Oc-HbhwyXi8Y6djYjiVRHb-AoWq_AMTrw1pMnA_loNIGn-M8KnbnOhnye0fzB1V3MYIAz9U7zuYuc5Z9j7D3Xs8Wyi47rXq0qgp4qbrwSlBElJ7LjJY70uSA3a8ipGlQzMdL-Zos1I9ecAXaV4rj7Cxe84PatGRYc1wyVSq6RTu54Nubjqu33YJVfNoT_OaTT30jI1Eus6pBA3qH1Js-Ly9RqiZ_mx74XVNS_mIEjhK5N9p11bQaGEEj-PxTjdXgNeHpKDfebcrn7354CBsR4xZoG6LDZGmfhNhvqIIylWMJFkvNfiIea7S8iX7HoUtblhPP-bq64WYbl6Bx03_beu5xUf5xgc-AwXX83JvrCqU0pN9rqYu66-2ndoo-tNkkNe8e0sc5sZi2-HPkT1lJ_seh35XIAVuF-RI6pBVCu_Sm2zIIlgg83MAGaNpkgaETyNZJOWg-DwfrrE5t8bjogEDoQSftkaju5m8u8" 17:17:57 DEBUG (MainThread) [skodaconnect.connection] Got id_token for client f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com, token: "eyJraWQiOiI0YWJkMTUyODA0MWMzMGUyIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiWnlqLTJITVU4R0c2UVJOX3l1cFBJUSIsInN1YiI6ImM3MDMzOTI1LTdiMDEtNGU2MS04NWU5LTJjYjg0OGY2ZTdhOCIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJjb3IiOiJOTCIsImlzcyI6Imh0dHBzOlwvXC9pZGVudGl0eS52d2dyb3VwLmlvIiwianR0IjoiaWRfdG9rZW4iLCJ0eXBlIjoiaWRlbnRpdHkiLCJub25jZSI6IjZDZVI4TnZcL1dRUDhcL3ZxM2poaVZJdmlheWlpdCBoMmdhSWZROEhRYU9FUSIsImxlZSI6WyJTS09EQSJdLCJhdWQiOlsiZjlhMjM1OWEtYjc3Ni00NmQ5LWJkMGMtZGIxOTA0MzQzMTE3QGFwcHNfdnctZGlsYWJfY29tIiwiVldHTUJCMDFERUxJVjEiLCJodHRwczpcL1wvYXBpLnZhcy5ldS5kcDE1LnZ3Zy1jb25uZWN0LmNvbSIsImh0dHBzOlwvXC9hcGkudmFzLmV1LndjYXJkcC5pbyJdLCJhY3IiOiJodHRwczpcL1wvaWRlbnRpdHkudndncm91cC5pb1wvYXNzdXJhbmNlXC9sb2EtMiIsInVwZGF0ZWRfYXQiOjE2MTU4MjcyMDMwMzAsImFhdCI6ImlkZW50aXR5a2l0IiwiZXhwIjoxNjQ3NjIzODc3LCJpYXQiOjE2NDc2MjAyNzcsImp0aSI6Ijg5MjMwMjZlLWQ0MzMtNGY3NS04YTA4LWExYzQ3ZTdmOWQwZCIsImVtYWlsIjoiYnNsZWZldnJlQGdtYWlsLmNvbSJ9.abJLhXCvW52HvMfEX-xwgmnD_bsFMh3uhow9slgqGnbKOqiiVtIxvEUJRH9uNlJqj9StsqKvFfX9rsHVKSqZm_bIQV4cgqWjZlmpHIC_WRbmq0QYMusZBPIdlVwE8vWARG4Z-kxvp8Rm_Cv2n5VCfhLpZgTafkQmwf3Ygugdgx6u-OwWUqIeuhoLg-sHrcFNB0BF7WEo22j1CyZCOQKzCOz6wPneLiEl4iaYuq6sWfSD6AuruEjKezA5_KwPWWZe9dk09KrHGGd4smAd5931yksRoUXnCWAec_47vpqKXc0hDv_ob--m2e0cnL1wzOV_S9Cs1xJaTpDtCXsnAoiZpWQ1dSFy7oUvcDKseGqwcb4MFSRXOMEIL8OLApmksWkupPQ0GSW7S4C35NKSwLRAbYbRiiAfNKhX6KloTUPxbEtaJSCJkFA7ZDbSiywnrcZ13oeinXEw8EyqDs-C2Jt-xtNnISpeBnaVXarILTb2O2gPfMnXR7xHkDMo5FrJsnFGgMSQy1bl2ZyTOGm7uq18RWW2xWJCcuceMoxX7K1t0YmhvdITkPq2O9O-V8I4GI9fxqxKBizJZT4LBWkvxlugeYgUxZlY9ebeUv5yvMy5uZlltcMzpLEBr_UXq2bZYSrsxHFOVcSyZYf3sv_CKbWI6s2wN3iINbYYyMbWnhec4EY" 17:17:57 DEBUG (MainThread) [skodaconnect.connection] Verifying token for f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com 17:17:57 DEBUG (MainThread) [skodaconnect.connection] Matching f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com against 7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com 17:17:57 DEBUG (MainThread) [skodaconnect.connection] Matching f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com against f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com 17:17:57 DEBUG (MainThread) [skodaconnect.connection] Token for skoda verified OK. 17:17:57 DEBUG (MainThread) [skodaconnect.connection] Client "connect" token is missing, call to authorize the client. 17:17:57 DEBUG (MainThread) [skodaconnect.connection] Starting authorization process for client connect 17:17:57 DEBUG (MainThread) [skodaconnect.connection] Get authorization page: "https://identity.vwgroup.io/oidc/v1/authorize" 17:17:57 DEBUG (MainThread) [skodaconnect.connection] Got authorization endpoint: "https://identity.vwgroup.io/oidc/v1/oauth/sso?clientId=7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com&userId=c7033925-7b01-4e61-85e9-2cb848f6e7a8&relayState=28faf2de2b8b03bb71b2bad27697179b5bc34188&HMAC=f6d508d0fc0642fa7bd778713fd11a23b088d1fc8604b583595567ef3e904d74" 17:17:57 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/signin-service/v1/consent/users/c7033925-7b01-4e61-85e9-2cb848f6e7a8/7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com?scopes=openid%20profile%20address%20cars%20email%20birthdate%20badge%20mbb%20phone%20driversLicense%20dealers%20profession%20vin&relayState=28faf2de2b8b03bb71b2bad27697179b5bc34188&callback=https://identity.vwgroup.io/oidc/v1/oauth/client/callback&hmac=1eab4e0631f06defb431e9ca8496705ade145382550b87fcc11bfb07f3f1eaaa" 17:17:57 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/oidc/v1/oauth/client/callback/success?user_id=c7033925-7b01-4e61-85e9-2cb848f6e7a8&client_id=7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com&scopes=openid%20profile%20address%20cars%20email%20birthdate%20badge%20mbb%20phone%20driversLicense%20dealers%20profession%20vin&consentedScopes=openid%20profile%20address%20cars%20email%20birthdate%20badge%20mbb%20phone%20driversLicense%20dealers%20profession%20vin&relayState=28faf2de2b8b03bb71b2bad27697179b5bc34188&hmac=9dc1ee39e282b298038ac06211bdc1c9123d59ea856704a38b22eb1395d50a23" 2022-03-18 17:17:58 DEBUG (MainThread) [skodaconnect.connection] Received authorization code, exchange for tokens. 2022-03-18 17:17:58 DEBUG (MainThread) [skodaconnect.connection] Got access_token for client 7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com, token: "eyJraWQiOiI0YWJkMTUyODA0MWMzMGUyIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJjNzAzMzkyNS03YjAxLTRlNjEtODVlOS0yY2I4NDhmNmU3YTgiLCJhdWQiOiI3ZjA0NWVlZS03MDAzLTQzNzktOTk2OC05MzU1ZWQyYWRiMDZAYXBwc192dy1kaWxhYl9jb20iLCJzY3AiOiJvcGVuaWQgcHJvZmlsZSBhZGRyZXNzIGNhcnMgZW1haWwgYmlydGhkYXRlIGJhZGdlIG1iYiBwaG9uZSBkcml2ZXJzTGljZW5zZSBkZWFsZXJzIHByb2Zlc3Npb24gdmluIiwiYWF0IjoiaWRlbnRpdHlraXQiLCJpc3MiOiJodHRwczpcL1wvaWRlbnRpdHkudndncm91cC5pbyIsImp0dCI6ImFjY2Vzc190b2tlbiIsImV4cCI6MTY0NzYyMzg3OCwiaWF0IjoxNjQ3NjIwMjc4LCJsZWUiOlsiU0tPREEiXSwianRpIjoiNGE5MGJhNmEtODA4Yi00MWY0LThjZTktYTMwMTVhMWI1NDcyIn0.jyeLSrI4ZBlcBPt1AgBscfMlCq8pCC5qOl9-tDTGh4ijZEEEYyW0vfeddRRmbm606xy_cRBjJCQJ2Nr2JixejEg8EZdr4mOsmwDmAcytoxU0jQgoOXoNV0vsnzJdGqjAkD29MWQRuB3nGc7qGNhkrGUIzLKZw81FmhncCuYZwBxQgpI-KCynU2JV87ZF5-_LRjm0fygr1dc0Vcacedmga2v0JuA-0vrU8Bt7heyyrx_-AXW_tM-4rVxHlIllmqc6S4ZVykxD1N3BNRGO1XsC0TvwNeQccEhIBjpldgOQsWHrd40ZxMF0ZBNYIH7O27OIYQs0twRyJTdGqEKdHjNVt8toG_lfBGHT8bn0KGPSvd-qRp6rhEna_Qzpmj23XHD8hoyJ4NtGgmtL33qAPpyV2OjSynBY4a9OHLE8B7XLYakLNGXyYo3yyhChn45usO3OHxZ0F4zivzOmROvBniEK00E3pfTHkJIVKKuPliZ_RRMiW2Kna_siWupjFOHCCh_tLAl9deD-Lhrd-y1_fmoHcTNpzThbFhWjpWsebZ99aMMJ-bh7XvOgBEGt548WMZGEV_PkuF7v4LBWnBaXObEaf9tG2ZVIHCWoTied-5ouA2ZV7VCd_1yqXMejA1W8VImVqdBdc2jEnckwZiSLFvWQGo-s1r8sX7ZjmFQp4gsWan8" 2022-03-18 17:17:58 DEBUG (MainThread) [skodaconnect.connection] Got refresh_token for client 7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com, token: "eyJraWQiOiI0YWJkMTUyODA0MWMzMGUyIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJjNzAzMzkyNS03YjAxLTRlNjEtODVlOS0yY2I4NDhmNmU3YTgiLCJhdWQiOiI3ZjA0NWVlZS03MDAzLTQzNzktOTk2OC05MzU1ZWQyYWRiMDZAYXBwc192dy1kaWxhYl9jb20iLCJhY3IiOiJodHRwczpcL1wvaWRlbnRpdHkudndncm91cC5pb1wvYXNzdXJhbmNlXC9sb2EtMiIsInNjcCI6Im9wZW5pZCBwcm9maWxlIGFkZHJlc3MgY2FycyBlbWFpbCBiaXJ0aGRhdGUgYmFkZ2UgbWJiIHBob25lIGRyaXZlcnNMaWNlbnNlIGRlYWxlcnMgcHJvZmVzc2lvbiB2aW4iLCJhYXQiOiJpZGVudGl0eWtpdCIsImlzcyI6Imh0dHBzOlwvXC9pZGVudGl0eS52d2dyb3VwLmlvIiwianR0IjoicmVmcmVzaF90b2tlbiIsImV4cCI6MTY3OTE1NjI3OCwiaWF0IjoxNjQ3NjIwMjc4LCJqdGkiOiJjYmEyNmUzZS03YWUzLTRmZmYtODAzNy0xMTUyMWUyM2UyZTYifQ.AqIuhDtMGIndS5F5HcaOOi8v8nGkqyWxM5oG-308lFIWOSvGksG4ftuTHfX9hmWZYCP9OMTBH-yewBk7XI81nx_ztw2tW78LHuWae7gtUEd_7BZmSKtsspPEA-gDKNDPkpcUUe1Rnx7tIwtfzxat_1Eesl_gm-ucw1evnmgL82k-bg9gU1QCU_zMdS01GTvboADS1tFC0aZFFERZQqn0LWYCS5iC31cqtbKSHXQY9zjg0LcAmRoPA4M51RTiwuTMpNny9eo-Oftqm9mvF4OQ3AHjotS31qDF6DIpi4O7BEVrLF8Pwz7AHSOEwdmpbW-iODH82sbjtSbMDPnbcbFejhF7QPaBAGFfnnpqHwr5mD64c-E1_gwPRwiSwGqLBF0iUzj89lqWA_20gJdQvdhZL9AStu2tcJholsMhO-XjhDEEu3UdlWXXUTs9HQzf_w7maXMEyq1ng_ycihKmV1nBD37T_6cUZAvLeww5NP5fueE1upoafH4XuGKcVb3ANq2U_ahX_Md8Hl7wjT6F38AXVKKSqllpDVVBFXSuFVfmfQRDD3KROHISgszEwLl3QD6eT6NKxeWaeHDec6VgCLnVw8j_lWQEqvkUYGNbCrWKUyqMmuOEuYFxL2NWqA5n_jdpozMDyaHmz-CnuUU0usDBoICXHA-iNKx7sWNFtcOo6BE" 2022-03-18 17:17:58 DEBUG (MainThread) [skodaconnect.connection] Got id_token for client 7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com, token: "eyJraWQiOiI0YWJkMTUyODA0MWMzMGUyIiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiMndOTDNUZlBhNHQxUkF3d3Nkcy1pdyIsInN1YiI6ImM3MDMzOTI1LTdiMDEtNGU2MS04NWU5LTJjYjg0OGY2ZTdhOCIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJjb3IiOiJOTCIsImlzcyI6Imh0dHBzOlwvXC9pZGVudGl0eS52d2dyb3VwLmlvIiwianR0IjoiaWRfdG9rZW4iLCJ0eXBlIjoiaWRlbnRpdHkiLCJub25jZSI6IjZDZVI4TnZcL1dRUDhcL3ZxM2poaVZJdmlheWlpdCBoMmdhSWZROEhRYU9FUSIsImxlZSI6WyJTS09EQSJdLCJhdWQiOlsiN2YwNDVlZWUtNzAwMy00Mzc5LTk5NjgtOTM1NWVkMmFkYjA2QGFwcHNfdnctZGlsYWJfY29tIiwiVldHTUJCMDFERUxJVjEiLCJodHRwczpcL1wvYXBpLnZhcy5ldS5kcDE1LnZ3Zy1jb25uZWN0LmNvbSIsImh0dHBzOlwvXC9hcGkudmFzLmV1LndjYXJkcC5pbyJdLCJhY3IiOiJodHRwczpcL1wvaWRlbnRpdHkudndncm91cC5pb1wvYXNzdXJhbmNlXC9sb2EtMiIsInVwZGF0ZWRfYXQiOjE2MTU4MjcyMDMwMzAsImFhdCI6ImlkZW50aXR5a2l0IiwiZXhwIjoxNjQ3NjIzODc4LCJpYXQiOjE2NDc2MjAyNzgsImp0aSI6ImY0OTE4Zjg3LTQwOWUtNGM3MS1iNGMxLWNlNWE3YTYzNmY5MCIsImVtYWlsIjoiYnNsZWZldnJlQGdtYWlsLmNvbSJ9.nfsVlyoj8xPb_-NvXZxi9zuIlUXtGCuVa6miGpLDq_Be37mWu-DhCj-FrGeX7M4F2C3lSuB_fuCNrBTaumpNZadltL4Nj0mdGXdmCqFck-9OkiYHe5UOaOaFPAAy5nSChAqTflG_X0yX_QoyuZp5OkXjGz2ZFNzBnr5Pqra_9rti2HI4kgA-7sNzB----TyA0b-NT8MUV_waA8as4DPgQwd6rTJbS3x2w3ONGzInJM3ERPJzBLSp5H6Hq7a_-TWECSwuqwtvvdSGyEgrdfXpuLB7LXc8SCsLplL8g0h0z09rtT0DTBGrL6SnHGmXOZmm8rXSUq0sRozlLw_ZpYKMg_PEttvGt0VNze3dxOrH_KCfLfaQqUVLHAvHLQBreeaNe4XTlIkNNgWAd8ror5UuBTYF1Qr-YQojJoC4__oKoTkhUPlFGp7NaO80V763-d6Ui_pHz03fuClH1kgY2jKPLGJiIqEiOKizRSXoLM9I1ivdBeYSrOEu8nDppAGGZDjPl9TIB9DjTOPVZwW3SQEsdu02X-YeW--MlB9mwhN153cwfLYSV_g5x3ScgevnXdvXpPdA8htN1DRkihka870eqTzvSw9oh_ARDVJ7yO8QzMOVSEP3tHqz0dwnXqCtnaq-7ca6GLD4xxaiqkuWe49IArIDYaemjOAG5jMb2jY0zDc" 2022-03-18 17:17:58 DEBUG (MainThread) [skodaconnect.connection] Verifying token for 7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com 2022-03-18 17:17:58 DEBUG (MainThread) [skodaconnect.connection] Matching 7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com against 7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com 2022-03-18 17:17:58 DEBUG (MainThread) [skodaconnect.connection] Token for connect verified OK. 2022-03-18 17:17:58 DEBUG (MainThread) [skodaconnect.connection] HTTP POST "https://profileintegrityservice.apps.emea.vwapps.io/iaa/pic/v1/users/c7033925-7b01-4e61-85e9-2cb848f6e7a8/check-profile" 2022-03-18 17:17:58 DEBUG (MainThread) [skodaconnect.connection] Request for "https://profileintegrityservice.apps.emea.vwapps.io/iaa/pic/v1/users/c7033925-7b01-4e61-85e9-2cb848f6e7a8/check-profile" returned with status code [200], response: {'scopeId': 'commonMandatoryFields', 'ssoId': 'c7033925-7b01-4e61-85e9-2cb848f6e7a8', 'missingMandatoryFields': [], 'mbbUserId': 'oTjU8anEXsvNxMTCzyotfDWxWbD', 'mbbIdStatus': True, 'mandatoryFieldsStatus': True, 'spinStatus': True, 'mandatoryConsentInfo': [{'id': 'termsOfUse', 'status': 'VALID'}]} 2022-03-18 17:17:58 DEBUG (MainThread) [skodaconnect.connection] Consent returned {'consentInfo': {'scopeId': 'commonMandatoryFields', 'ssoId': 'c7033925-7b01-4e61-85e9-2cb848f6e7a8', 'missingMandatoryFields': [], 'mbbUserId': 'oTjU8anEXsvNxMTCzyotfDWxWbD', 'mbbIdStatus': True, 'mandatoryFieldsStatus': True, 'spinStatus': True, 'mandatoryConsentInfo': [{'id': 'termsOfUse', 'status': 'VALID'}]}} 2022-03-18 17:17:58 DEBUG (MainThread) [skodaconnect.connection] User consent is valid, no missing information for profile 2022-03-18 17:17:58 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://api.connect.skoda-auto.cz/api/v2/garage/vehicles" 2022-03-18 17:18:01 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v2/garage/vehicles" returned with status code [200], response: [{'id': '[ENYAQ VIN]', 'vin': '[ENYAQ VIN]', 'name': 'Batterij', 'lastUpdatedAt': '2022-03-18T16:18:01.53573Z', 'specification': {'title': 'ŠKODA ENYAQ iV', 'brand': 'ŠKODA', 'model': 'ENYAQ iV', 'body': 'SUV', 'systemCode': 'ENYAQ iV 60 132/62 E1H', 'systemModelId': '5AZFF2', 'engine': {'type': 'iV', 'powerInKW': 132}, 'battery': {'capacityInKWh': 62}, 'gearbox': {'type': 'E1H'}, 'trimLevel': '60', 'manufacturingDate': '2021-03-24', 'devicePlatform': 'WCAR', 'maxChargingPowerInKW': 50}, 'connectivities': [{'type': 'REMOTE', 'detail': {'remote': {'state': 'ACTIVATED'}}}], 'capabilities': [{'id': 'DCS', 'statuses': []}, {'id': 'AUTOMATION', 'statuses': [], 'serviceExpiration': datetime.datetime(2031, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'CHARGING', 'statuses': [], 'serviceExpiration': datetime.datetime(2031, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'CHARGING_STATIONS', 'statuses': [], 'serviceExpiration': datetime.datetime(2024, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'AIR_CONDITIONING', 'statuses': [], 'serviceExpiration': datetime.datetime(2031, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'FUEL_STATUS', 'statuses': [], 'serviceExpiration': datetime.datetime(2031, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'MAP_UPDATE', 'statuses': [], 'serviceExpiration': datetime.datetime(2024, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'ONLINE_SPEECH', 'statuses': [], 'serviceExpiration': datetime.datetime(2024, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'PARKING_INFORMATION', 'statuses': [], 'serviceExpiration': datetime.datetime(2024, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'ROUTING', 'statuses': [], 'serviceExpiration': datetime.datetime(2024, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'TRAFFIC_INFORMATION', 'statuses': [], 'serviceExpiration': datetime.datetime(2024, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'WEB_RADIO', 'statuses': []}]}] 2022-03-18 17:18:01 DEBUG (MainThread) [skodaconnect.connection] Checking vehicle {'id': '[ENYAQ VIN]', 'vin': '[ENYAQ VIN]', 'name': 'Batterij', 'lastUpdatedAt': '2022-03-18T16:18:01.53573Z', 'specification': {'title': 'ŠKODA ENYAQ iV', 'brand': 'ŠKODA', 'model': 'ENYAQ iV', 'body': 'SUV', 'systemCode': 'ENYAQ iV 60 132/62 E1H', 'systemModelId': '5AZFF2', 'engine': {'type': 'iV', 'powerInKW': 132}, 'battery': {'capacityInKWh': 62}, 'gearbox': {'type': 'E1H'}, 'trimLevel': '60', 'manufacturingDate': '2021-03-24', 'devicePlatform': 'WCAR', 'maxChargingPowerInKW': 50}, 'connectivities': [{'type': 'REMOTE', 'detail': {'remote': {'state': 'ACTIVATED'}}}], 'capabilities': [{'id': 'DCS', 'statuses': []}, {'id': 'AUTOMATION', 'statuses': [], 'serviceExpiration': datetime.datetime(2031, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'CHARGING', 'statuses': [], 'serviceExpiration': datetime.datetime(2031, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'CHARGING_STATIONS', 'statuses': [], 'serviceExpiration': datetime.datetime(2024, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'AIR_CONDITIONING', 'statuses': [], 'serviceExpiration': datetime.datetime(2031, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'FUEL_STATUS', 'statuses': [], 'serviceExpiration': datetime.datetime(2031, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'MAP_UPDATE', 'statuses': [], 'serviceExpiration': datetime.datetime(2024, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'ONLINE_SPEECH', 'statuses': [], 'serviceExpiration': datetime.datetime(2024, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'PARKING_INFORMATION', 'statuses': [], 'serviceExpiration': datetime.datetime(2024, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'ROUTING', 'statuses': [], 'serviceExpiration': datetime.datetime(2024, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'TRAFFIC_INFORMATION', 'statuses': [], 'serviceExpiration': datetime.datetime(2024, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)}, {'id': 'WEB_RADIO', 'statuses': []}]} 2022-03-18 17:18:01 DEBUG (MainThread) [skodaconnect.connection] Check if vehicle exists 2022-03-18 17:18:01 DEBUG (MainThread) [skodaconnect.connection] Adding vehicle [ENYAQ VIN], with connectivities: ['REMOTE'] 2022-03-18 17:18:01 DEBUG (MainThread) [skodaconnect.vehicle] Creating Vehicle class object with data {'vin': '[ENYAQ VIN]', 'connectivities': ['REMOTE'], 'capabilities': ['DCS', 'AUTOMATION', 'CHARGING', 'CHARGING_STATIONS', 'AIR_CONDITIONING', 'FUEL_STATUS', 'MAP_UPDATE', 'ONLINE_SPEECH', 'PARKING_INFORMATION', 'ROUTING', 'TRAFFIC_INFORMATION', 'WEB_RADIO'], 'specification': {'title': 'ŠKODA ENYAQ iV', 'brand': 'ŠKODA', 'model': 'ENYAQ iV', 'body': 'SUV', 'systemCode': 'ENYAQ iV 60 132/62 E1H', 'systemModelId': '5AZFF2', 'engine': {'type': 'iV', 'powerInKW': 132}, 'battery': {'capacityInKWh': 62}, 'gearbox': {'type': 'E1H'}, 'trimLevel': '60', 'manufacturingDate': '2021-03-24', 'devicePlatform': 'WCAR', 'maxChargingPowerInKW': 50}} 2022-03-18 17:18:01 DEBUG (MainThread) [skodaconnect.connection] Client "vwg" token is missing, call to authorize the client. 2022-03-18 17:18:01 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch api tokens. 2022-03-18 17:18:01 DEBUG (MainThread) [skodaconnect.connection] Verifying token for mal.prd.ece.vwg-connect.com 2022-03-18 17:18:01 DEBUG (MainThread) [skodaconnect.connection] Matching mal.prd.ece.vwg-connect.com against 7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com 2022-03-18 17:18:01 DEBUG (MainThread) [skodaconnect.connection] Matching mal.prd.ece.vwg-connect.com against f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com 2022-03-18 17:18:01 DEBUG (MainThread) [skodaconnect.connection] Matching mal.prd.ece.vwg-connect.com against 72f9d29d-aa2b-40c1-bebe-4c7683681d4c@apps_vw-dilab_com 2022-03-18 17:18:01 DEBUG (MainThread) [skodaconnect.connection] VW-Group API token verified OK. 2022-03-18 17:18:01 DEBUG (MainThread) [skodaconnect.connection] Adding [ENYAQ VIN] for data refresh 2022-03-18 17:18:01 DEBUG (MainThread) [skodaconnect.connection] Calling update function for all vehicles 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://api.connect.skoda-auto.cz/api/v1/air-conditioning/[ENYAQ VIN]/timers" 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://api.connect.skoda-auto.cz/api/v1/air-conditioning/[ENYAQ VIN]/status" 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://api.connect.skoda-auto.cz/api/v1/air-conditioning/[ENYAQ VIN]/settings" 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://api.connect.skoda-auto.cz/api/v1/charging/[ENYAQ VIN]/status" 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://api.connect.skoda-auto.cz/api/v1/charging/[ENYAQ VIN]/settings" 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v1/air-conditioning/[ENYAQ VIN]/timers" returned with status code [200], response: {'timeInCar': datetime.datetime(2022, 3, 18, 14, 40, 7, tzinfo=datetime.timezone(datetime.timedelta(seconds=3600))), 'timeZoneInCar': '+01:00', 'timers': [{'id': 1, 'enabled': True, 'type': 'RECURRING', 'time': '06:30', 'recurringOn': ['MONDAY', 'TUESDAY', 'WEDNESDAY', 'FRIDAY']}, {'id': 2, 'enabled': False, 'type': 'ONE_OFF', 'time': '08:00', 'date': '2022-02-27'}]} 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v1/air-conditioning/[ENYAQ VIN]/settings" returned with status code [200], response: {'targetTemperatureInKelvin': 294.15, 'temperatureConversionTableUsed': 'CELSIUS_KELVIN', 'airConditioningAtUnlock': True, 'windowHeatingEnabled': True, 'zonesSettings': {'frontLeftEnabled': True, 'frontRightEnabled': True}} 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v1/charging/[ENYAQ VIN]/settings" returned with status code [200], response: {'maxChargeCurrentAc': 'Maximum', 'autoUnlockPlugWhenCharged': 'Permanent', 'targetStateOfChargeInPercent': 100} 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v1/charging/[ENYAQ VIN]/status" returned with status code [200], response: {'plug': {'connectionState': 'Connected', 'lockState': 'Unlocked'}, 'charging': {'state': 'ReadyForCharging', 'remainingToCompleteInSeconds': 0, 'chargingPowerInWatts': 0.0, 'chargingRateInKilometersPerHour': 0.0, 'chargingType': 'Invalid', 'chargeMode': 'MANUAL', 'chargingSettings': 'DEFAULT'}, 'battery': {'cruisingRangeElectricInMeters': 191000, 'stateOfChargeInPercent': 100}} 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v1/air-conditioning/[ENYAQ VIN]/status" returned with status code [200], response: {'remainingTimeToReachTargetTemperatureInSeconds': 0, 'state': 'Off', 'trigger': 'OFF', 'windowsHeatingStatuses': [{'windowLocation': 'Front', 'state': 'Off'}, {'windowLocation': 'Rear', 'state': 'Off'}], 'seatHeatingSupport': {'frontLeftAvailable': True, 'frontRightAvailable': True, 'rearLeftAvailable': False, 'rearRightAvailable': False}} 2022-03-18 17:18:02 INFO (MainThread) [skodaconnect.connection] Returning with data {'airConditioning': {'remainingTimeToReachTargetTemperatureInSeconds': 0, 'state': 'Off', 'trigger': 'OFF', 'windowsHeatingStatuses': [{'windowLocation': 'Front', 'state': 'Off'}, {'windowLocation': 'Rear', 'state': 'Off'}], 'seatHeatingSupport': {'frontLeftAvailable': True, 'frontRightAvailable': True, 'rearLeftAvailable': False, 'rearRightAvailable': False}}, 'airConditioningSettings': {'targetTemperatureInKelvin': 294.15, 'temperatureConversionTableUsed': 'CELSIUS_KELVIN', 'airConditioningAtUnlock': True, 'windowHeatingEnabled': True, 'zonesSettings': {'frontLeftEnabled': True, 'frontRightEnabled': True}}} 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://api.connect.skoda-auto.cz/api/v1/air-conditioning/[ENYAQ VIN]/timers" 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://api.connect.skoda-auto.cz/api/v1/air-conditioning/[ENYAQ VIN]/status" 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://api.connect.skoda-auto.cz/api/v1/air-conditioning/[ENYAQ VIN]/settings" 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://api.connect.skoda-auto.cz/api/v1/charging/[ENYAQ VIN]/status" 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://api.connect.skoda-auto.cz/api/v1/charging/[ENYAQ VIN]/settings" 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v1/air-conditioning/[ENYAQ VIN]/settings" returned with status code [200], response: {'targetTemperatureInKelvin': 294.15, 'temperatureConversionTableUsed': 'CELSIUS_KELVIN', 'airConditioningAtUnlock': True, 'windowHeatingEnabled': True, 'zonesSettings': {'frontLeftEnabled': True, 'frontRightEnabled': True}} 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v1/air-conditioning/[ENYAQ VIN]/timers" returned with status code [200], response: {'timeInCar': datetime.datetime(2022, 3, 18, 14, 40, 7, tzinfo=datetime.timezone(datetime.timedelta(seconds=3600))), 'timeZoneInCar': '+01:00', 'timers': [{'id': 1, 'enabled': True, 'type': 'RECURRING', 'time': '06:30', 'recurringOn': ['MONDAY', 'TUESDAY', 'WEDNESDAY', 'FRIDAY']}, {'id': 2, 'enabled': False, 'type': 'ONE_OFF', 'time': '08:00', 'date': '2022-02-27'}]} 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v1/charging/[ENYAQ VIN]/status" returned with status code [200], response: {'plug': {'connectionState': 'Connected', 'lockState': 'Unlocked'}, 'charging': {'state': 'ReadyForCharging', 'remainingToCompleteInSeconds': 0, 'chargingPowerInWatts': 0.0, 'chargingRateInKilometersPerHour': 0.0, 'chargingType': 'Invalid', 'chargeMode': 'MANUAL', 'chargingSettings': 'DEFAULT'}, 'battery': {'cruisingRangeElectricInMeters': 191000, 'stateOfChargeInPercent': 100}} 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v1/air-conditioning/[ENYAQ VIN]/status" returned with status code [200], response: {'remainingTimeToReachTargetTemperatureInSeconds': 0, 'state': 'Off', 'trigger': 'OFF', 'windowsHeatingStatuses': [{'windowLocation': 'Front', 'state': 'Off'}, {'windowLocation': 'Rear', 'state': 'Off'}], 'seatHeatingSupport': {'frontLeftAvailable': True, 'frontRightAvailable': True, 'rearLeftAvailable': False, 'rearRightAvailable': False}} 2022-03-18 17:18:02 INFO (MainThread) [skodaconnect.connection] Returning with data {'airConditioning': {'remainingTimeToReachTargetTemperatureInSeconds': 0, 'state': 'Off', 'trigger': 'OFF', 'windowsHeatingStatuses': [{'windowLocation': 'Front', 'state': 'Off'}, {'windowLocation': 'Rear', 'state': 'Off'}], 'seatHeatingSupport': {'frontLeftAvailable': True, 'frontRightAvailable': True, 'rearLeftAvailable': False, 'rearRightAvailable': False}}, 'airConditioningSettings': {'targetTemperatureInKelvin': 294.15, 'temperatureConversionTableUsed': 'CELSIUS_KELVIN', 'airConditioningAtUnlock': True, 'windowHeatingEnabled': True, 'zonesSettings': {'frontLeftEnabled': True, 'frontRightEnabled': True}}} 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v1/charging/[ENYAQ VIN]/settings" returned with status code [200], response: {'maxChargeCurrentAc': 'Maximum', 'autoUnlockPlugWhenCharged': 'Permanent', 'targetStateOfChargeInPercent': 100} 2022-03-18 17:18:02 DEBUG (MainThread) [skodaconnect.dashboard] Supported instruments: window_heater, electric_climatisation, charging, departure1, departure2, battery_level, min_charge_level, charging_time_left, charging_power, charge_rate, electric_range, charge_max_ampere, climatisation_target_temperature, model_image_large, model_image_small, external_power, charging_cable_connected, charging_cable_locked, seat_heating_front_left, seat_heating_front_right, aircon_at_unlock 2022-03-18 17:18:02 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.skodaconnect 2022-03-18 17:18:02 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.skodaconnect 2022-03-18 17:18:02 INFO (MainThread) [homeassistant.components.switch] Setting up switch.skodaconnect

Farfar commented 2 years ago

Did you install the multi-vehicle-account branch? If that doesn't provide both cars under same account I would need you to remove the integration first (all instances), restart home assistant and then add it again.

bslefevre commented 2 years ago

So I did the following:

image

What's next to test?

Farfar commented 2 years ago

So I did the following:

  • Removed integration from HASS
  • Removed skodaconnect folder from disk
  • Removed settings from configuration.yaml (old config values from before the integration)
  • Rebooted HASS
  • Removed integration again
  • Rebooted HASS
  • Added multi-vehicle-account branch code to custom_components
  • Rebooted HASS
  • Added Skoda Connect integration
  • Logged in with credentials and receiving one 1 VIN:

image

What's next to test?

This doesn't look right, something cached on your machine perhaps?

bslefevre commented 2 years ago

I've ran everything with Developer Tools (F12) open and disabled cache 🤷‍♂️

Farfar commented 2 years ago

I've ran everything with Developer Tools (F12) open and disabled cache 🤷‍♂️

Then there's remnants of the "main" homeassistant-skodaconnect integration being used. This is what the first setup step looks like with the multi vehicle account branch (ignore missing descriptions):

image

After the first step, all vehicles with all sensors are added automatically.

bslefevre commented 2 years ago

This is what I've done this time:

Stay tuned!

Farfar commented 2 years ago
  • skodaconnect integration (with develop

Is everything working as it should now?

RalfAlbers commented 2 years ago
  • skodaconnect integration (with develop

Is everything working as it should now?

no, at the moment my Citigo-e works in HA, but my Octavia shows not data. Sometime I need to restart HA multiple time until one of the is showing any data.

Farfar commented 2 years ago

Is the Octavia working in MySkoda app with the same credentials you are using in the integration?

RalfAlbers commented 2 years ago

Is the Octavia working in MySkoda app with the same credentials you are using in the integration?

Yes, in MySkoda are both working.

Farfar commented 2 years ago

integration

Could you please upload a new debug log from a recent version of the integration?

RalfAlbers commented 2 years ago

Logs from today: HASS_Logs_Out.txt Latest HACS 1.27.1, Home Assistant 2022.8.7, Supervisor 2022.08.3 & Operating System 8.5

In MySkoda-App on Android, I can see all data of both cars. And also interesting is, that the log say, that I'm primaryUserNotVerified, noActiveLicense. Citigo has no Licenses (in the skoda-connect.com portal) and the Octavia-Remote Access License is valid until 2022-11-17.

RalfAlbers commented 2 years ago

HASS_Logs_Out_WORKING.txt

After several reboots of my HomeAss, I got the SkodaConnect to work.

Farfar commented 2 years ago

Nice to hear you got it working. From your latest debug log I can see a few strange things such as your "VIN_0" car, the Octavia, not being discovered correctly. I will look in the code to see if I can find any issues.

Farfar commented 2 years ago

Logs from today: HASS_Logs_Out.txt Latest HACS 1.27.1, Home Assistant 2022.8.7, Supervisor 2022.08.3 & Operating System 8.5

In MySkoda-App on Android, I can see all data of both cars. And also interesting is, that the log say, that I'm primaryUserNotVerified, noActiveLicense. Citigo has no Licenses (in the skoda-connect.com portal) and the Octavia-Remote Access License is valid until 2022-11-17.

This is helpful along with the last log. It might be that the integration gets the homeregion mixed up when there's multiple vehicles added. In you case it seems it use one homeregion(Base API url) for both cars but they have different regions.

Farfar commented 2 years ago

@RalfAlbers your last debug logs really helped, thank you! I found a problem which in hindsight was pretty obvious. The homeregion (API base URL) wasn't used individually per car as it should. Instead the library used the last value fetched for all cars. The latest update (published as beta) have the fix implemented and should work more reliably for you.

Farfar commented 2 years ago

@RalfAlbers, @bslefevre, @terriblefox I would really like some input if this has been fixed in latest releases?

RalfAlbers commented 2 years ago

I've installed the last in HACS available release (1.0.71) and it looks good. Only the position, "force refresh" and "vehicle moving" from my Citigo-e is missing. Would you like to have the logs?

Farfar commented 2 years ago

I've installed the last in HACS available release (1.0.71) and it looks good. Only the position, "force refresh" and "vehicle moving" from my Citigo-e is missing. Would you like to have the logs?

Yes please!

RalfAlbers commented 2 years ago

[HASS_Logs_Out.txt]

Farfar commented 2 years ago

[HASS_Logs_Out.txt]

Overall it looks good but I can see some inconsistencies that shouldn't be there in the integrations configuration. When did you remove/re-add the integration last, which version? I'm not sure if the inconsistencies is because of lingering invalid configuration from an old version or if there's still some bug to fix in how the integration stores it's data.

Farfar commented 2 years ago

Slow feedback on this and main issue should be fixed.