GithubHelp home page GithubHelp logo

Comments (49)

boci29 avatar boci29 commented on June 16, 2024 1

@Farfar sent you PM mail.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024 1

I am closing this issue and opening a new feature request to incorporate Smartlink into the integration.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

Hi,
I have tried to install your integration via HACS.

Unfortunatly it fails logging onto the Skoda Cconnect Service.

Can you guide me in the right direction?

Best regards
Orm

Skærmbillede 2021-02-24 kl 18 00 58

It looks like you don't receive API tokens. Does the app work as it should?

from homeassistant-skodaconnect.

blaatunge avatar blaatunge commented on June 16, 2024

On my phone everything works fine.

IMG_0916

I also logged onto https://skodaid.vwgroup.io/account to check if my account is ok. Also - I there can logon without any troubles.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

On my phone everything works fine.

IMG_0916

I also logged onto https://skodaid.vwgroup.io/account to check if my account is ok. Also - I there can logon without any troubles.

I can't really tell why this happens since there's no more debugging we can enable that would produce more information.
Are you confident enough to add/change code in order to help debug this?
Else I need to publish a test version for you to try.

from homeassistant-skodaconnect.

blaatunge avatar blaatunge commented on June 16, 2024

I can add/change code - if you tell me what and where to change :)

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

I can add/change code - if you tell me what and where to change :)

In the librarys 'connection.py' file, at line 249 (after the line with "self._session_tokens['vwg'] = await req.json()") add:

                _LOGGER.debug(f'Got tokens: {self._session_tokens['vwg']}')

This will print the received API tokens in the debug log of home assistant. You can use the site jwt.io to decode them and see that they seem OK.
You should receive two tokens, 'refresh_token' and 'access_token'.

from homeassistant-skodaconnect.

blaatunge avatar blaatunge commented on June 16, 2024

Sorry - I have to ask where to find connection.py

I thought I would find it in /config/custom_components/skodaconnect/ - But its not.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

Sorry - I have to ask where to find connection.py

I thought I would find it in /config/custom_components/skodaconnect/ - But its not.

No that's the integration. It uses a python library that should be located in your homeassistant installation folder.
For me, I installed in Python 3.8 venv under /srv/homeassistant, it's /srv/homeassistant/lib/python3.8/site-packages/skodaconnect/connection.py

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

How are things progressing @blaatunge ?

from homeassistant-skodaconnect.

blaatunge avatar blaatunge commented on June 16, 2024

Sorry for lack of response last week
I did'nt come further.

It seems connection.py is not on my system at all.

Skærmbillede 2021-03-02 kl  14 34 33

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

Sorry for lack of response last week
I did'nt come further.

It seems connection.py is not on my system at all.

Skærmbillede 2021-03-02 kl 14 34 33

Well since you are running hassos, you need to access the container.
Something like this:

login
docker exec -it homeassistant /bin/bash
<nano/vim/pico/emacs> /usr/local/lib/python3.7/site-packages/skodaconnect/connection.py

from homeassistant-skodaconnect.

blaatunge avatar blaatunge commented on June 16, 2024

Unfortunatly I can't continue investigating this at the moment :-/

To access the container I need to logon to the physical device. Currently I don't have access to it, as I'm working from abroad.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

Please test latest release. It should pinpoint the problem a little better.

from homeassistant-skodaconnect.

clausw45 avatar clausw45 commented on June 16, 2024

@Farfar
I have installed the latest release but still have same problem(posted in the other thread you closed). Now my log says:

<Integration lendy007/homeassistant-skodaconnect> Could not read manifest.json [Invalid control character at: line 8 column 20 (char 289)]
21.51.07 – HACS (ERROR) - beskeden forekom først kl. 15.04.06 og ses 15 gange
Could not login to Skoda Connect, please check your credentials and verify that the service is working
21.50.21 – skodaconnect (WARNING) - beskeden forekom først kl. 15.03.37 og ses 82 gange
Login failed for skoda account, 'NoneType' object is not subscriptable
21.50.21 – /usr/local/lib/python3.8/site-packages/skodaconnect/connection.py (ERROR) - beskeden forekom først kl. 15.03.37 og ses 82 gange
Setup failed for skodaconnect: Integration failed to initialize.
15.03.37 – setup.py (ERROR)

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

@Farfar
I have installed the latest release but still have same problem(posted in the other thread you closed). Now my log says:

<Integration lendy007/homeassistant-skodaconnect> Could not read manifest.json [Invalid control character at: line 8 column 20 (char 289)]
21.51.07 – HACS (ERROR) - beskeden forekom først kl. 15.04.06 og ses 15 gange
Could not login to Skoda Connect, please check your credentials and verify that the service is working
21.50.21 – skodaconnect (WARNING) - beskeden forekom først kl. 15.03.37 og ses 82 gange
Login failed for skoda account, 'NoneType' object is not subscriptable
21.50.21 – /usr/local/lib/python3.8/site-packages/skodaconnect/connection.py (ERROR) - beskeden forekom først kl. 15.03.37 og ses 82 gange
Setup failed for skodaconnect: Integration failed to initialize.
15.03.37 – setup.py (ERROR)

Yes, better to gather all information om same issue in One issue ticket instead of many.

Please post contents from full log, there should be a button in hass gui to view full log.

from homeassistant-skodaconnect.

clausw45 avatar clausw45 commented on June 16, 2024

Here is full log from the log page after I just restarted:

2021-03-20 22:12:45 ERROR (SyncWorker_0) [homeassistant.loader] Error parsing manifest.json file at /config/custom_components/skodaconnect/manifest.json: Invalid control character at: line 8 column 20 (char 289)
2021-03-20 22:12:45 WARNING (MainThread) [homeassistant.loader] You are using a custom integration hacs 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
2021-03-20 22:12:45 WARNING (MainThread) [homeassistant.loader] You are using 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
2021-03-20 22:12:45 WARNING (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'skodaconnect'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'skodaconnect'
2021-03-20 22:12:55 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, 'NoneType' object is not subscriptable
2021-03-20 22:12:55 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working
2021-03-20 22:12:55 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.
2021-03-20 22:13:23 ERROR (MainThread) [custom_components.hacs] <Integration lendy007/homeassistant-skodaconnect> Could not read manifest.json [Invalid control character at: line 8 column 20 (char 289)]
2021-03-20 22:17:56 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, 'NoneType' object is not subscriptable
2021-03-20 22:17:56 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

Here is full log from the log page after I just restarted:

2021-03-20 22:12:45 ERROR (SyncWorker_0) [homeassistant.loader] Error parsing manifest.json file at /config/custom_components/skodaconnect/manifest.json: Invalid control character at: line 8 column 20 (char 289)
2021-03-20 22:12:45 WARNING (MainThread) [homeassistant.loader] You are using a custom integration hacs 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
2021-03-20 22:12:45 WARNING (MainThread) [homeassistant.loader] You are using 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
2021-03-20 22:12:45 WARNING (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'skodaconnect'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'skodaconnect'
2021-03-20 22:12:55 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, 'NoneType' object is not subscriptable
2021-03-20 22:12:55 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working
2021-03-20 22:12:55 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.
2021-03-20 22:13:23 ERROR (MainThread) [custom_components.hacs] <Integration lendy007/homeassistant-skodaconnect> Could not read manifest.json [Invalid control character at: line 8 column 20 (char 289)]
2021-03-20 22:17:56 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, 'NoneType' object is not subscriptable
2021-03-20 22:17:56 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working

Thank you. But you need to enable debug logging as well for me to be able to tell where the issue is. Also enable response debug as per README instructions. But please redact sensitive information before posting anything.

from homeassistant-skodaconnect.

clausw45 avatar clausw45 commented on June 16, 2024

I have added the logs (I think) and here is the output after restarting again. I deleted the data from the https://identity.vwgroup.io/signin-service url as I am not sure that this is sensitive information. If you need it I can insert it.

2021-03-20 22:39:51 ERROR (SyncWorker_1) [homeassistant.loader] Error parsing manifest.json file at /config/custom_components/skodaconnect/manifest.json: Invalid control character at: line 8 column 20 (char 289)
2021-03-20 22:39:52 WARNING (MainThread) [homeassistant.loader] You are using a custom integration hacs 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
2021-03-20 22:39:52 WARNING (MainThread) [homeassistant.loader] You are using 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
2021-03-20 22:39:52 WARNING (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'skodaconnect'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'skodaconnect'
2021-03-20 22:39:52 INFO (MainThread) [homeassistant.setup] Setup of domain logger took 0.0 seconds
2021-03-20 22:39:52 INFO (MainThread) [homeassistant.setup] Setting up recorder
2021-03-20 22:39:52 INFO (MainThread) [homeassistant.setup] Setting up http
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.1 seconds
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setting up system_log
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.5 seconds
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 1: {'onboarding', 'cloud', 'hassio', 'alexa', 'websocket_api', 'system_log', 'auth', 'http', 'config', 'device_automation', 'person', 'lovelace', 'image', 'search', 'api', 'webhook', 'frontend'}
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setting up hassio
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setting up alexa
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setup of domain alexa took 0.0 seconds
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setting up auth
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setup of domain auth took 0.0 seconds
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setting up config
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setting up device_automation
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setup of domain device_automation took 0.0 seconds
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setting up lovelace
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setting up api
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setting up webhook
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setup of domain webhook took 0.0 seconds
2021-03-20 22:39:53 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.1 seconds
2021-03-20 22:39:54 INFO (MainThread) [homeassistant.setup] Setting up image
2021-03-20 22:39:54 INFO (MainThread) [homeassistant.setup] Setting up search
2021-03-20 22:39:54 INFO (MainThread) [homeassistant.setup] Setup of domain search took 0.0 seconds
2021-03-20 22:39:54 INFO (MainThread) [homeassistant.setup] Setup of domain lovelace took 0.1 seconds
2021-03-20 22:39:54 INFO (MainThread) [homeassistant.setup] Setup of domain image took 0.0 seconds
2021-03-20 22:39:54 INFO (SyncWorker_3) [homeassistant.loader] Loaded media_player from homeassistant.components.media_player
2021-03-20 22:39:54 INFO (SyncWorker_0) [homeassistant.loader] Loaded google_assistant from homeassistant.components.google_assistant
2021-03-20 22:39:54 INFO (MainThread) [homeassistant.setup] Setting up person
2021-03-20 22:39:54 INFO (MainThread) [homeassistant.setup] Setting up cloud
2021-03-20 22:39:54 INFO (MainThread) [homeassistant.setup] Setup of domain person took 0.6 seconds
2021-03-20 22:39:54 INFO (MainThread) [homeassistant.setup] Setting up onboarding
2021-03-20 22:39:54 INFO (MainThread) [homeassistant.setup] Setup of domain onboarding took 0.2 seconds
2021-03-20 22:39:54 INFO (SyncWorker_1) [homeassistant.loader] Loaded device_tracker from homeassistant.components.device_tracker
2021-03-20 22:39:54 INFO (SyncWorker_2) [homeassistant.loader] Loaded panel_custom from homeassistant.components.panel_custom
2021-03-20 22:39:54 INFO (MainThread) [homeassistant.setup] Setting up frontend
2021-03-20 22:39:54 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds
2021-03-20 22:39:54 INFO (MainThread) [homeassistant.components.http] Now listening on port 8123
2021-03-20 22:39:55 INFO (MainThread) [homeassistant.setup] Setup of domain hassio took 2.1 seconds
2021-03-20 22:39:58 INFO (MainThread) [hass_nabucasa.iot] Connected
2021-03-20 22:39:58 INFO (SyncWorker_1) [homeassistant.loader] Loaded binary_sensor from homeassistant.components.binary_sensor
2021-03-20 22:39:58 INFO (MainThread) [homeassistant.setup] Setting up binary_sensor
2021-03-20 22:39:58 INFO (MainThread) [homeassistant.setup] Setup of domain binary_sensor took 0.0 seconds
2021-03-20 22:39:58 INFO (SyncWorker_3) [homeassistant.loader] Loaded stt from homeassistant.components.stt
2021-03-20 22:39:58 INFO (MainThread) [homeassistant.setup] Setting up stt
2021-03-20 22:39:58 INFO (MainThread) [homeassistant.setup] Setup of domain stt took 0.0 seconds
2021-03-20 22:39:58 INFO (SyncWorker_4) [homeassistant.loader] Loaded google_translate from homeassistant.components.google_translate
2021-03-20 22:39:58 INFO (MainThread) [homeassistant.setup] Setting up tts
2021-03-20 22:39:58 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.0 seconds
2021-03-20 22:40:00 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 6.0 seconds
2021-03-20 22:40:00 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.cloud
2021-03-20 22:40:00 INFO (MainThread) [snitun.utils.aiohttp_client] AioHTTP snitun client started on 127.0.0.1:55345
2021-03-20 22:40:00 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'hue', 'tts', 'harmony', 'input_text', 'tradfri', 'zeroconf', 'logbook', 'deconz', 'tado', 'blueprint', 'input_select', 'remote', 'switch', 'group', 'persistent_notification', 'input_number', 'map', 'updater', 'dhcp', 'timer', 'met', 'ssdp', 'sun', 'system_health', 'rpi_power', 'cast', 'camera', 'mobile_app', 'tag', 'homekit', 'hacs', 'script', 'ffmpeg', 'input_datetime', 'history', 'synology_dsm', 'upnp', 'my', 'apple_tv', 'automation', 'zone', 'media_source', 'input_boolean', 'scene', 'counter', 'skodaconnect', 'default_config'}
2021-03-20 22:40:00 INFO (MainThread) [homeassistant.setup] Setting up input_text
2021-03-20 22:40:00 INFO (MainThread) [homeassistant.setup] Setting up logbook
2021-03-20 22:40:00 INFO (MainThread) [homeassistant.setup] Setting up blueprint
2021-03-20 22:40:00 INFO (MainThread) [homeassistant.setup] Setup of domain blueprint took 0.0 seconds
2021-03-20 22:40:00 INFO (MainThread) [homeassistant.setup] Setting up input_select
2021-03-20 22:40:00 INFO (MainThread) [homeassistant.setup] Setting up remote
2021-03-20 22:40:00 INFO (MainThread) [homeassistant.setup] Setup of domain remote took 0.0 seconds
2021-03-20 22:40:00 INFO (MainThread) [homeassistant.setup] Setting up group
2021-03-20 22:40:00 INFO (SyncWorker_4) [homeassistant.loader] Loaded wake_on_lan from homeassistant.components.wake_on_lan
2021-03-20 22:40:00 INFO (MainThread) [homeassistant.setup] Setting up input_number
2021-03-20 22:40:00 INFO (MainThread) [homeassistant.setup] Setting up map
2021-03-20 22:40:00 INFO (MainThread) [homeassistant.setup] Setup of domain map took 0.0 seconds
2021-03-20 22:40:00 INFO (MainThread) [homeassistant.setup] Setting up updater
2021-03-20 22:40:00 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.0 seconds
2021-03-20 22:40:01 INFO (MainThread) [homeassistant.setup] Setting up dhcp
2021-03-20 22:40:01 INFO (MainThread) [homeassistant.setup] Setup of domain dhcp took 0.0 seconds
2021-03-20 22:40:01 INFO (MainThread) [homeassistant.setup] Setting up timer
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up met
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain met took 0.0 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up sun
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.0 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up system_health
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up rpi_power
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain rpi_power took 0.0 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up camera
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up tag
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up script
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.0 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up ffmpeg
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up input_datetime
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up history
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up my
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain my took 0.0 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up zone
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up media_source
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up input_boolean
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up scene
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.components.scene] Setting up scene.homeassistant
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up counter
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up skodaconnect
2021-03-20 22:40:02 INFO (MainThread) [custom_components.skodaconnect] Starting Skoda Connect, version 1.0.37
2021-03-20 22:40:02 DEBUG (MainThread) [custom_components.skodaconnect] Creating connection to skoda connect
2021-03-20 22:40:02 DEBUG (MainThread) [skodaconnect.connection] Using service https://msg.volkswagen.de
2021-03-20 22:40:02 INFO (MainThread) [custom_components.skodaconnect] Starting skodaconnect component
2021-03-20 22:40:02 INFO (SyncWorker_4) [homeassistant.loader] Loaded discovery from homeassistant.components.discovery
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up switch
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain switch took 0.0 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up zeroconf
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 1.9 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain group took 1.8 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.updater
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain system_health took 0.5 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up hacs
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain hacs took 0.0 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain media_source took 0.4 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain scene took 0.4 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain input_text took 2.1 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain input_select took 2.0 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up wake_on_lan
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain wake_on_lan took 0.0 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain input_number took 2.0 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain timer took 0.8 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain ffmpeg took 0.6 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain tag took 0.8 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain camera took 0.8 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain input_datetime took 0.6 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain input_boolean took 0.5 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain counter took 0.5 seconds
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.rpi_power
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain zeroconf took 0.3 seconds
2021-03-20 22:40:02 INFO (SyncWorker_2) [homeassistant.loader] Loaded climate from homeassistant.components.climate
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setting up tradfri
2021-03-20 22:40:02 INFO (MainThread) [homeassistant.setup] Setup of domain tradfri took 0.0 seconds
2021-03-20 22:40:03 INFO (MainThread) [homeassistant.setup] Setting up tado
2021-03-20 22:40:03 INFO (MainThread) [homeassistant.setup] Setup of domain tado took 0.0 seconds
2021-03-20 22:40:03 INFO (MainThread) [homeassistant.setup] Setting up apple_tv
2021-03-20 22:40:03 INFO (MainThread) [homeassistant.setup] Setup of domain apple_tv took 0.0 seconds
2021-03-20 22:40:03 INFO (MainThread) [homeassistant.components.switch] Setting up switch.wake_on_lan
2021-03-20 22:40:03 INFO (MainThread) [homeassistant.setup] Setup of domain zone took 1.3 seconds
2021-03-20 22:40:03 INFO (MainThread) [homeassistant.setup] Setting up hue
2021-03-20 22:40:03 INFO (MainThread) [homeassistant.setup] Setup of domain hue took 0.0 seconds
2021-03-20 22:40:03 INFO (MainThread) [homeassistant.setup] Setting up deconz
2021-03-20 22:40:03 INFO (MainThread) [homeassistant.setup] Setup of domain deconz took 0.0 seconds
2021-03-20 22:40:03 INFO (MainThread) [homeassistant.setup] Setting up synology_dsm
2021-03-20 22:40:03 INFO (MainThread) [homeassistant.setup] Setup of domain synology_dsm took 0.0 seconds
2021-03-20 22:40:03 INFO (MainThread) [homeassistant.setup] Setting up upnp
2021-03-20 22:40:03 INFO (MainThread) [homeassistant.setup] Setting up harmony
2021-03-20 22:40:03 INFO (MainThread) [homeassistant.setup] Setup of domain harmony took 0.0 seconds
2021-03-20 22:40:03 INFO (MainThread) [homeassistant.setup] Setting up ssdp
2021-03-20 22:40:03 INFO (MainThread) [homeassistant.setup] Setup of domain ssdp took 0.0 seconds
2021-03-20 22:40:04 INFO (SyncWorker_1) [homeassistant.loader] Loaded notify from homeassistant.components.notify
2021-03-20 22:40:04 INFO (MainThread) [homeassistant.setup] Setup of domain upnp took 0.2 seconds
2021-03-20 22:40:04 INFO (SyncWorker_4) [homeassistant.loader] Loaded plex from homeassistant.components.plex
2021-03-20 22:40:04 INFO (MainThread) [homeassistant.setup] Setting up automation
2021-03-20 22:40:04 INFO (MainThread) [homeassistant.setup] Setting up homekit
2021-03-20 22:40:04 INFO (MainThread) [homeassistant.setup] Setup of domain homekit took 0.0 seconds
2021-03-20 22:40:04 INFO (MainThread) [homeassistant.setup] Setting up mobile_app
2021-03-20 22:40:04 INFO (MainThread) [homeassistant.setup] Setting up cast
2021-03-20 22:40:04 INFO (MainThread) [homeassistant.setup] Setup of domain cast took 0.0 seconds
2021-03-20 22:40:04 INFO (MainThread) [custom_components.hacs]

HACS (Home Assistant Community Store)
Version: 1.11.3
This is a custom integration
If you have any issues with this you need to open an issue here:
https://github.com/hacs/integration/issues

2021-03-20 22:40:04 INFO (MainThread) [custom_components.hacs] Setup task HacsSetupTask.WEBSOCKET
2021-03-20 22:40:04 INFO (MainThread) [custom_components.hacs] Setup task HacsSetupTask.FRONTEND
2021-03-20 22:40:04 INFO (MainThread) [custom_components.hacs] Setup task HacsSetupTask.CATEGORIES
2021-03-20 22:40:04 INFO (MainThread) [homeassistant.setup] Setup of domain mobile_app took 0.1 seconds
2021-03-20 22:40:04 INFO (MainThread) [custom_components.hacs] HACS is enabled
2021-03-20 22:40:04 INFO (MainThread) [homeassistant.setup] Setting up notify
2021-03-20 22:40:04 INFO (MainThread) [homeassistant.setup] Setup of domain notify took 0.0 seconds
2021-03-20 22:40:04 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.9 seconds
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setting up device_tracker
2021-03-20 22:40:05 INFO (SyncWorker_2) [homeassistant.loader] Loaded sensor from homeassistant.components.sensor
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.mobile_app
2021-03-20 22:40:05 INFO (SyncWorker_4) [homeassistant.loader] Loaded weather from homeassistant.components.weather
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.components.updater] Submitted analytics to Home Assistant servers. Information submitted includes {}
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.components.notify] Setting up notify.mobile_app
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setup of domain device_tracker took 0.2 seconds
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setting up sensor
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.0 seconds
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setting up default_config
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setting up weather
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setup of domain weather took 0.0 seconds
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setting up climate
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setup of domain climate took 0.0 seconds
2021-03-20 22:40:05 INFO (SyncWorker_2) [homeassistant.loader] Loaded light from homeassistant.components.light
2021-03-20 22:40:05 INFO (SyncWorker_4) [homeassistant.loader] Loaded fan from homeassistant.components.fan
2021-03-20 22:40:05 INFO (SyncWorker_1) [homeassistant.loader] Loaded cover from homeassistant.components.cover
2021-03-20 22:40:05 INFO (SyncWorker_2) [homeassistant.loader] Loaded stream from homeassistant.components.stream
2021-03-20 22:40:05 INFO (SyncWorker_0) [homeassistant.loader] Loaded lock from homeassistant.components.lock
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.mobile_app
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.mobile_app
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.deconz
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.deconz
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.components.scene] Setting up scene.deconz
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.components.switch] Setting up switch.deconz
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.components.weather] Setting up weather.met
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.components.climate] Setting up climate.deconz
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setting up light
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setting up fan
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setup of domain fan took 0.0 seconds
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setting up cover
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setup of domain cover took 0.0 seconds
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setting up lock
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setup of domain lock took 0.0 seconds
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Daylight because it's disabled
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setup of domain light took 0.1 seconds
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.components.fan] Setting up fan.deconz
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.components.cover] Setting up cover.deconz
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.components.lock] Setting up lock.deconz
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.components.weather] Not adding entity Trillegårdsvej 136 Hourly because it's disabled
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setting up stream
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setup of domain stream took 0.0 seconds
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.components.light] Setting up light.deconz
2021-03-20 22:40:05 DEBUG (MainThread) [skodaconnect.connection] Got authorization endpoint, logging on.
2021-03-20 22:40:05 INFO (MainThread) [homeassistant.setup] Setup of domain default_config took 0.3 seconds
2021-03-20 22:40:06 INFO (MainThread) [custom_components.hacs] Setup task HacsSetupTask.HACS_REPO
2021-03-20 22:40:06 DEBUG (MainThread) [skodaconnect.connection] Authenticating with email and password.
2021-03-20 22:40:06 INFO (SyncWorker_1) [homeassistant.loader] Loaded water_heater from homeassistant.components.water_heater
2021-03-20 22:40:06 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.tado
2021-03-20 22:40:06 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.tado
2021-03-20 22:40:06 INFO (MainThread) [homeassistant.components.climate] Setting up climate.tado
2021-03-20 22:40:06 INFO (MainThread) [homeassistant.setup] Setting up water_heater
2021-03-20 22:40:06 INFO (MainThread) [homeassistant.setup] Setup of domain water_heater took 0.0 seconds
2021-03-20 22:40:06 INFO (MainThread) [homeassistant.components.water_heater] Setting up water_heater.tado
2021-03-20 22:40:06 DEBUG (MainThread) [skodaconnect.connection] Got code:

Deleted this just in case

2021-03-20 22:40:06 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, 'NoneType' object is not subscriptable
2021-03-20 22:40:06 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working
2021-03-20 22:40:06 INFO (MainThread) [homeassistant.setup] Setup of domain skodaconnect took 4.2 seconds
2021-03-20 22:40:06 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.
2021-03-20 22:40:06 INFO (MainThread) [homeassistant.components.remote] Setting up remote.harmony
2021-03-20 22:40:06 INFO (MainThread) [homeassistant.components.switch] Setting up switch.harmony
2021-03-20 22:40:06 INFO (MainThread) [custom_components.hacs] <Integration hacs/integration> Registration completed
2021-03-20 22:40:07 INFO (MainThread) [custom_components.hacs] Restore started
2021-03-20 22:40:08 INFO (MainThread) [custom_components.hacs] Restore done
2021-03-20 22:40:08 INFO (MainThread) [custom_components.hacs] Setup task HacsSetupTask.SENSOR
2021-03-20 22:40:08 INFO (MainThread) [custom_components.hacs] Stage changed: HacsStage.WAITING
2021-03-20 22:40:08 INFO (MainThread) [custom_components.hacs] Setup complete, waiting for Home Assistant before startup tasks starts
2021-03-20 22:40:08 INFO (MainThread) [custom_components.hacs] HACS is enabled
2021-03-20 22:40:08 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.hacs
2021-03-20 22:40:08 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 16.49s
2021-03-20 22:40:08 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2021-03-20 22:40:08 INFO (MainThread) [homeassistant.core] Timer:starting
2021-03-20 22:40:08 INFO (SyncWorker_2) [homeassistant.components.zeroconf] Starting Zeroconf broadcast
2021-03-20 22:40:09 INFO (MainThread) [homeassistant.components.automation.motion_sensor_gaestetoilet] Initialized trigger Motion-sensor gæstetoilet
2021-03-20 22:40:09 INFO (MainThread) [homeassistant.components.automation.sluk_termostat_nar_vindue_abnes] Initialized trigger Sluk termostat når vindue åbnes
2021-03-20 22:40:09 INFO (MainThread) [homeassistant.components.automation.taend_termostater_nar_vinduer_lukkes_igen_spisestue_vindue] Initialized trigger Tænd termostater når vinduer lukkes igen - spisestue vindue
2021-03-20 22:40:09 INFO (MainThread) [homeassistant.components.automation.taend_termostater_nar_vinduer_lukkes_igen_stue_terassedor] Initialized trigger Tænd termostater når vinduer lukkes igen - stue terassedør
2021-03-20 22:40:09 INFO (MainThread) [homeassistant.components.automation.taend_termostater_nar_vinduer_lukkes_igen_stue_vindue] Initialized trigger Tænd termostater når vinduer lukkes igen - stue vindue
2021-03-20 22:40:09 INFO (SyncWorker_0) [homeassistant.loader] Loaded xiaomi_aqara from homeassistant.components.xiaomi_aqara
2021-03-20 22:40:09 INFO (SyncWorker_5) [homeassistant.loader] Loaded xiaomi_miio from homeassistant.components.xiaomi_miio
2021-03-20 22:40:33 INFO (MainThread) [custom_components.hacs] Stage changed: HacsStage.STARTUP
2021-03-20 22:40:33 INFO (MainThread) [custom_components.hacs] setup task HacsSetupTask.CATEGORIES
2021-03-20 22:40:34 INFO (MainThread) [custom_components.hacs] Loading known repositories
2021-03-20 22:40:37 INFO (MainThread) [custom_components.hacs] <Integration And3rsL/Deebot-for-Home-Assistant> Registration completed
2021-03-20 22:40:37 ERROR (MainThread) [custom_components.hacs] <Integration lendy007/homeassistant-skodaconnect> Could not read manifest.json [Invalid control character at: line 8 column 20 (char 289)]
2021-03-20 22:40:42 INFO (MainThread) [custom_components.hacs] Stage changed: HacsStage.RUNNING
2021-03-20 22:45:07 DEBUG (MainThread) [skodaconnect.connection] Got authorization endpoint, logging on.
2021-03-20 22:45:07 DEBUG (MainThread) [skodaconnect.connection] Authenticating with email and password.
2021-03-20 22:45:07 DEBUG (MainThread) [skodaconnect.connection] Got code:

Deleted this just in case

2021-03-20 22:45:07 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, 'NoneType' object is not subscriptable
2021-03-20 22:45:07 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

Thank you. I think I might need the last line you deleted. I do not need the tokens or codes however so you can replace the alphanumerics with gibberish or PM me if you want.

from homeassistant-skodaconnect.

clausw45 avatar clausw45 commented on June 16, 2024

Sent you an email with it

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

@clausw45 @blaatunge do any of your cars show any information at all in the app?
Thanks to clausw45 I have been debugging the logins that fail and have probably pinpointed the issue but need more input, especially from you @blaatunge.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

I have explored the implementation used for Danish VAG cars, Connectedcars, and it's totally different. Unfortunately theese will not be supported through this integration, the API is totally different.
Since I recon you are also based in Denmark @blaatunge I will be closing this issue.

from homeassistant-skodaconnect.

boci29 avatar boci29 commented on June 16, 2024

Hi,

with the latest update I still can not login via this component.
The log shows "Login failed for skoda account, 'NoneType' object has no attribute 'get'" and "Setup failed for skodaconnect: Integration failed to initialize." errors. Do you know what can cause this?
OS: Home Assistant OS 5.12 core-2021.3.4
Component version: v1.0.38 installed via HACS.

I checked my user/passwd via Skoda apps on my phone and I can log in with them.

Thank you!

Cheers,
Bence

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

Hi,

with the latest update I still can not login via this component.
The log shows "Login failed for skoda account, 'NoneType' object has no attribute 'get'" and "Setup failed for skodaconnect: Integration failed to initialize." errors. Do you know what can cause this?
OS: Home Assistant OS 5.12 core-2021.3.4
Component version: v1.0.38 installed via HACS.

I checked my user/passwd via Skoda apps on my phone and I can log in with them.

Thank you!

Cheers,
Bence

Do you get any info for your car in the "MyŠKODA" app?

from homeassistant-skodaconnect.

boci29 avatar boci29 commented on June 16, 2024

Hello,

yes, it looks like fine in the MySkoda app.

5C7157EC-1A75-4574-B349-639776E7539D

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

yes, it looks like fine in the MySkoda app.

OK, then I need the debug logs. Please see README here on how to enable debug logging. Also enable response_debug.

from homeassistant-skodaconnect.

boci29 avatar boci29 commented on June 16, 2024

Hi,

it's here what I got in console, hope this helps. Please let me know if you need more information.

2021-03-24 11:41:17 INFO (MainThread) [homeassistant.setup] Setting up skodaconnect 2021-03-24 11:41:17 INFO (MainThread) [custom_components.skodaconnect] Starting Skoda Connect, version 1.0.38 2021-03-24 11:41:17 DEBUG (MainThread) [custom_components.skodaconnect] Creating connection to skoda connect 2021-03-24 11:41:17 DEBUG (MainThread) [skodaconnect.connection] Using service https://msg.volkswagen.de 2021-03-24 11:41:17 INFO (MainThread) [custom_components.skodaconnect] Starting skodaconnect component 2021-03-24 11:41:23 DEBUG (MainThread) [skodaconnect.connection] Got authorization endpoint, logging on. 2021-03-24 11:41:23 DEBUG (MainThread) [skodaconnect.connection] Authenticating with email and password. 2021-03-24 11:41:24 DEBUG (MainThread) [skodaconnect.connection] Login successful, received authorization code. 2021-03-24 11:41:24 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch user identity tokens. 2021-03-24 11:41:24 DEBUG (MainThread) [skodaconnect.connection] Got token access_token 2021-03-24 11:41:24 DEBUG (MainThread) [skodaconnect.connection] Got token refresh_token 2021-03-24 11:41:24 DEBUG (MainThread) [skodaconnect.connection] Got token id_token 2021-03-24 11:41:24 DEBUG (MainThread) [skodaconnect.connection] Got token token_type 2021-03-24 11:41:24 DEBUG (MainThread) [skodaconnect.connection] Got token expires_in 2021-03-24 11:41:25 DEBUG (MainThread) [skodaconnect.connection] User identity token verified OK. 2021-03-24 11:41:25 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch api tokens. 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] Got token access_token 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] Got token token_type 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] Got token refresh_token 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] Got token expires_in 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] Got token scope 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] VW-Group API token verified OK. 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] Fetching vehicles associated with account 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/skoda/CZ/vehicles" 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] Request for "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/skoda/CZ/vehicles" returned with status code [200], response: {'userVehicles': None} 2021-03-24 11:41:26 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, 'NoneType' object has no attribute 'get' 2021-03-24 11:41:26 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working 2021-03-24 11:41:26 INFO (MainThread) [homeassistant.setup] Setup of domain skodaconnect took 9.2 seconds 2021-03-24 11:41:26 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

Hi,

it's here what I got in console, hope this helps. Please let me know if you need more information.

2021-03-24 11:41:17 INFO (MainThread) [homeassistant.setup] Setting up skodaconnect 2021-03-24 11:41:17 INFO (MainThread) [custom_components.skodaconnect] Starting Skoda Connect, version 1.0.38 2021-03-24 11:41:17 DEBUG (MainThread) [custom_components.skodaconnect] Creating connection to skoda connect 2021-03-24 11:41:17 DEBUG (MainThread) [skodaconnect.connection] Using service https://msg.volkswagen.de 2021-03-24 11:41:17 INFO (MainThread) [custom_components.skodaconnect] Starting skodaconnect component 2021-03-24 11:41:23 DEBUG (MainThread) [skodaconnect.connection] Got authorization endpoint, logging on. 2021-03-24 11:41:23 DEBUG (MainThread) [skodaconnect.connection] Authenticating with email and password. 2021-03-24 11:41:24 DEBUG (MainThread) [skodaconnect.connection] Login successful, received authorization code. 2021-03-24 11:41:24 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch user identity tokens. 2021-03-24 11:41:24 DEBUG (MainThread) [skodaconnect.connection] Got token access_token 2021-03-24 11:41:24 DEBUG (MainThread) [skodaconnect.connection] Got token refresh_token 2021-03-24 11:41:24 DEBUG (MainThread) [skodaconnect.connection] Got token id_token 2021-03-24 11:41:24 DEBUG (MainThread) [skodaconnect.connection] Got token token_type 2021-03-24 11:41:24 DEBUG (MainThread) [skodaconnect.connection] Got token expires_in 2021-03-24 11:41:25 DEBUG (MainThread) [skodaconnect.connection] User identity token verified OK. 2021-03-24 11:41:25 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch api tokens. 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] Got token access_token 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] Got token token_type 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] Got token refresh_token 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] Got token expires_in 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] Got token scope 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] VW-Group API token verified OK. 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] Fetching vehicles associated with account 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/skoda/CZ/vehicles" 2021-03-24 11:41:26 DEBUG (MainThread) [skodaconnect.connection] Request for "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/skoda/CZ/vehicles" returned with status code [200], response: {'userVehicles': None} 2021-03-24 11:41:26 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, 'NoneType' object has no attribute 'get' 2021-03-24 11:41:26 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working 2021-03-24 11:41:26 INFO (MainThread) [homeassistant.setup] Setup of domain skodaconnect took 9.2 seconds 2021-03-24 11:41:26 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.

Is your car of a recent model, last few months? It looks as if Skoda have been working on their own API and not relying on volkswagen group servers. From your debug log I can see that the method for requesting a list of registered vehicles returns with 'None' which indicates that your car might be on the new platform only.
I will rework the login and see if I can make it work but I'm not sure if the rest of the code will work for your car, I guess we will find out.

from homeassistant-skodaconnect.

boci29 avatar boci29 commented on June 16, 2024

Hi,

thank you for your answer.
My car bought newly in 2019. aug. so I think it's not the newest version of Skoda Octavia. It's purchased in Hungary, if it's important.
Please let me know if you need any more information.

Thank you!

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

Hi,

thank you for your answer.
My car bought newly in 2019. aug. so I think it's not the newest version of Skoda Octavia. It's purchased in Hungary, if it's important.
Please let me know if you need any more information.

Thank you!

I have hacked together a new release, v1.0.40-RC1, it's using Skoda native API for loading user profiles and registered cars instead of the old "msg.volkswagen.de". It's still using the old API for vehicle status requests so it's going to be interesting to see if this works for you.

from homeassistant-skodaconnect.

boci29 avatar boci29 commented on June 16, 2024

Hello,

I installed v1.0.40-RC1, I got the following log:
2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Login successful, received authorization code. 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch user identity tokens. 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token access_token 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token refresh_token 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token id_token 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token token_type 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token expires_in 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] User identity token verified OK. 2021-03-24 17:48:23 INFO (MainThread) [skodaconnect.connection] Successfully logged in 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch api tokens. 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token access_token 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token token_type 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token refresh_token 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token expires_in 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token scope 2021-03-24 17:48:24 DEBUG (MainThread) [skodaconnect.connection] VW-Group API token verified OK. 2021-03-24 17:48:24 DEBUG (MainThread) [skodaconnect.connection] Fetching vehicles associated with account 2021-03-24 17:48:24 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/skoda/CZ/vehicles" 2021-03-24 17:48:24 DEBUG (MainThread) [skodaconnect.connection] Request for "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/skoda/CZ/vehicles" returned with status code [200], response: {'userVehicles': None} 2021-03-24 17:48:24 ERROR (MainThread) [homeassistant.setup] Error during setup of component skodaconnect Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component result = await task File "/config/custom_components/skodaconnect/__init__.py", line 298, in async_setup return await update(utcnow()) File "/config/custom_components/skodaconnect/__init__.py", line 216, in update await connection.doLogin() File "/usr/local/lib/python3.8/site-packages/skodaconnect/connection.py", line 109, in doLogin if loaded_vehicles.get('userVehicles', {}).get('vehicles', False): AttributeError: 'NoneType' object has no attribute 'get'

from homeassistant-skodaconnect.

Kaibob2 avatar Kaibob2 commented on June 16, 2024

Same here. v1.0.38 was working perfectly. As soon as i install v1.0.40-RC1 i get the following:

2021-03-24 20:13:02 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, User appears unauthorized
2021-03-24 20:13:02 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working
2021-03-24 20:13:02 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.

And no entity works. As soon as i switch back to v1.0.38 everything is working again. The Skoda connect is working as usual. I own a Octavia III from 2018.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

Same here. v1.0.38 was working perfectly. As soon as i install v1.0.40-RC1 i get the following:

2021-03-24 20:13:02 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, User appears unauthorized
2021-03-24 20:13:02 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working
2021-03-24 20:13:02 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.

And no entity works. As soon as i switch back to v1.0.38 everything is working again. The Skoda connect is working as usual. I own a Octavia III from 2018.

The 1.0.40-RC1 is a beta version and only out there to try and fix login issues for some. Please do not use if you aren't having trouble with login on 1.0.38, wait for 1.0.40 final.

I got the following log

I must have made a mistake somewhere in code, expect an RC2 soon.

from homeassistant-skodaconnect.

Kaibob2 avatar Kaibob2 commented on June 16, 2024

Ohhhh, i see. Sorry for the confusion then and thanks for the fast reply and great work on this integration.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

Hello,

I installed v1.0.40-RC1, I got the following log:
2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Login successful, received authorization code. 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch user identity tokens. 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token access_token 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token refresh_token 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token id_token 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token token_type 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token expires_in 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] User identity token verified OK. 2021-03-24 17:48:23 INFO (MainThread) [skodaconnect.connection] Successfully logged in 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch api tokens. 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token access_token 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token token_type 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token refresh_token 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token expires_in 2021-03-24 17:48:23 DEBUG (MainThread) [skodaconnect.connection] Got token scope 2021-03-24 17:48:24 DEBUG (MainThread) [skodaconnect.connection] VW-Group API token verified OK. 2021-03-24 17:48:24 DEBUG (MainThread) [skodaconnect.connection] Fetching vehicles associated with account 2021-03-24 17:48:24 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/skoda/CZ/vehicles" 2021-03-24 17:48:24 DEBUG (MainThread) [skodaconnect.connection] Request for "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/skoda/CZ/vehicles" returned with status code [200], response: {'userVehicles': None} 2021-03-24 17:48:24 ERROR (MainThread) [homeassistant.setup] Error during setup of component skodaconnect Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component result = await task File "/config/custom_components/skodaconnect/__init__.py", line 298, in async_setup return await update(utcnow()) File "/config/custom_components/skodaconnect/__init__.py", line 216, in update await connection.doLogin() File "/usr/local/lib/python3.8/site-packages/skodaconnect/connection.py", line 109, in doLogin if loaded_vehicles.get('userVehicles', {}).get('vehicles', False): AttributeError: 'NoneType' object has no attribute 'get'

Can you please try the RC2 release? I have reworked the checks for vehicle discovery.

from homeassistant-skodaconnect.

boci29 avatar boci29 commented on June 16, 2024

Hello,

I got the following log with RC2:

2021-03-24 23:27:55 DEBUG (MainThread) [skodaconnect.connection] Authenticating with email and password. 2021-03-24 23:27:55 DEBUG (MainThread) [skodaconnect.connection] Using login action url: "https://identity.vwgroup.io/signin-service/v1/7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com/login/authenticate" 2021-03-24 23:27:55 DEBUG (MainThread) [skodaconnect.connection] Parsing login response. 2021-03-24 23:27:55 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/oidc/v1/oauth/sso?clientId=7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com&relayState=9ca117989df133e298d8ccb09306617a4d97b81d&userId=913746df-734e-44be-ab4d-0d1959bc27b2&HMAC=cffbe45ec8676dc4f13d84b74726d21e80c81e114da2c89ac47f0a1797360b9c" 2021-03-24 23:27:55 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/signin-service/v1/consent/users/913746df-734e-44be-ab4d-0d1959bc27b2/7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com?scopes=openid%20mbb%20profile%20cars%20address%20email%20birthdate%20badge%20phone%20driversLicense%20dealers%20profession%20vin&relayState=9ca117989df133e298d8ccb09306617a4d97b81d&callback=https://identity.vwgroup.io/oidc/v1/oauth/client/callback&hmac=d01b95ae2273f534adbeda03fc705860dbe5c87428b14022a9375c26d38b1bef" 2021-03-24 23:27:55 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/oidc/v1/oauth/client/callback/success?user_id=913746df-734e-44be-ab4d-0d1959bc27b2&client_id=7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com&scopes=openid%20mbb%20profile%20cars%20address%20email%20birthdate%20badge%20phone%20driversLicense%20dealers%20profession%20vin&consentedScopes=openid%20mbb%20profile%20cars%20address%20email%20birthdate%20badge%20phone%20driversLicense%20dealers%20profession%20vin&relayState=9ca117989df133e298d8ccb09306617a4d97b81d&hmac=03f283ee534ff96bdacdf44fd5bfeca8b76e9e165c05893b8835302514243a84" 2021-03-24 23:27:55 DEBUG (MainThread) [skodaconnect.connection] Login successful, received authorization code. 2021-03-24 23:27:55 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch user identity tokens. 2021-03-24 23:28:00 DEBUG (MainThread) [skodaconnect.connection] Got token access_token 2021-03-24 23:28:00 DEBUG (MainThread) [skodaconnect.connection] Got token refresh_token 2021-03-24 23:28:00 DEBUG (MainThread) [skodaconnect.connection] Got token id_token 2021-03-24 23:28:00 DEBUG (MainThread) [skodaconnect.connection] Got token token_type 2021-03-24 23:28:00 DEBUG (MainThread) [skodaconnect.connection] Got token expires_in 2021-03-24 23:28:00 DEBUG (MainThread) [skodaconnect.connection] User identity token verified OK. 2021-03-24 23:28:00 INFO (MainThread) [skodaconnect.connection] Successfully logged in 2021-03-24 23:28:00 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch api tokens. 2021-03-24 23:28:00 ERROR (MainThread) [skodaconnect.connection] Failed to fetch VW-Group API tokens, [Errno 104] Connection reset by peer 2021-03-24 23:28:00 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working 2021-03-24 23:28:00 INFO (MainThread) [homeassistant.setup] Setup of domain skodaconnect took 14.7 seconds 2021-03-24 23:28:00 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

Hello,

I got the following log with RC2:

2021-03-24 23:27:55 DEBUG (MainThread) [skodaconnect.connection] Authenticating with email and password. 2021-03-24 23:27:55 DEBUG (MainThread) [skodaconnect.connection] Using login action url: "https://identity.vwgroup.io/signin-service/v1/7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com/login/authenticate" 2021-03-24 23:27:55 DEBUG (MainThread) [skodaconnect.connection] Parsing login response. 2021-03-24 23:27:55 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/oidc/v1/oauth/sso?clientId=7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com&relayState=9ca117989df133e298d8ccb09306617a4d97b81d&userId=913746df-734e-44be-ab4d-0d1959bc27b2&HMAC=cffbe45ec8676dc4f13d84b74726d21e80c81e114da2c89ac47f0a1797360b9c" 2021-03-24 23:27:55 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/signin-service/v1/consent/users/913746df-734e-44be-ab4d-0d1959bc27b2/7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com?scopes=openid%20mbb%20profile%20cars%20address%20email%20birthdate%20badge%20phone%20driversLicense%20dealers%20profession%20vin&relayState=9ca117989df133e298d8ccb09306617a4d97b81d&callback=https://identity.vwgroup.io/oidc/v1/oauth/client/callback&hmac=d01b95ae2273f534adbeda03fc705860dbe5c87428b14022a9375c26d38b1bef" 2021-03-24 23:27:55 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/oidc/v1/oauth/client/callback/success?user_id=913746df-734e-44be-ab4d-0d1959bc27b2&client_id=7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com&scopes=openid%20mbb%20profile%20cars%20address%20email%20birthdate%20badge%20phone%20driversLicense%20dealers%20profession%20vin&consentedScopes=openid%20mbb%20profile%20cars%20address%20email%20birthdate%20badge%20phone%20driversLicense%20dealers%20profession%20vin&relayState=9ca117989df133e298d8ccb09306617a4d97b81d&hmac=03f283ee534ff96bdacdf44fd5bfeca8b76e9e165c05893b8835302514243a84" 2021-03-24 23:27:55 DEBUG (MainThread) [skodaconnect.connection] Login successful, received authorization code. 2021-03-24 23:27:55 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch user identity tokens. 2021-03-24 23:28:00 DEBUG (MainThread) [skodaconnect.connection] Got token access_token 2021-03-24 23:28:00 DEBUG (MainThread) [skodaconnect.connection] Got token refresh_token 2021-03-24 23:28:00 DEBUG (MainThread) [skodaconnect.connection] Got token id_token 2021-03-24 23:28:00 DEBUG (MainThread) [skodaconnect.connection] Got token token_type 2021-03-24 23:28:00 DEBUG (MainThread) [skodaconnect.connection] Got token expires_in 2021-03-24 23:28:00 DEBUG (MainThread) [skodaconnect.connection] User identity token verified OK. 2021-03-24 23:28:00 INFO (MainThread) [skodaconnect.connection] Successfully logged in 2021-03-24 23:28:00 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch api tokens. 2021-03-24 23:28:00 ERROR (MainThread) [skodaconnect.connection] Failed to fetch VW-Group API tokens, [Errno 104] Connection reset by peer 2021-03-24 23:28:00 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working 2021-03-24 23:28:00 INFO (MainThread) [homeassistant.setup] Setup of domain skodaconnect took 14.7 seconds 2021-03-24 23:28:00 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.

That looks like an unrelated issue, seems like problems with connection. Can your try restarting?

from homeassistant-skodaconnect.

boci29 avatar boci29 commented on June 16, 2024

I got the following log:

2021-03-25 09:04:02 DEBUG (MainThread) [skodaconnect.connection] Request for "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/skoda/CZ/vehicles" returned with status code [200], response: {'userVehicles': None} 2021-03-25 09:04:02 DEBUG (MainThread) [skodaconnect.connection] Failed to retrieve list of cars, trying new API 2021-03-25 09:04:02 DEBUG (MainThread) [skodaconnect.connection] Requesting openid config 2021-03-25 09:04:02 DEBUG (MainThread) [skodaconnect.connection] Get authorization page from "https://identity.vwgroup.io/oidc/v1/authorize" 2021-03-25 09:04:02 DEBUG (MainThread) [skodaconnect.connection] Request headers: "{'Connection': 'keep-alive', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Accept-Encoding': 'gzip, deflate', 'Content-Type': 'application/x-www-form-urlencoded', 'x-requested-with': 'cz.skodaauto.connect', 'User-Agent': 'okhttp/3.14.7', 'X-App-Name': 'cz.skodaauto.connect'}" 2021-03-25 09:04:02 DEBUG (MainThread) [skodaconnect.connection] Got redirect to "https://identity.vwgroup.io/signin-service/v1/signin/f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com?relayState=4011fc515fd2fb6ab9e66eb8b9e5b7bcb40a4458" 2021-03-25 09:04:02 DEBUG (MainThread) [skodaconnect.connection] Got authorization endpoint 2021-03-25 09:04:02 WARNING (MainThread) [homeassistant.setup] Setup of skodaconnect is taking over 10 seconds. 2021-03-25 09:04:03 DEBUG (MainThread) [skodaconnect.connection] Authenticating with email and password. 2021-03-25 09:04:03 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" 2021-03-25 09:04:03 DEBUG (MainThread) [skodaconnect.connection] Parsing login response. 2021-03-25 09:04:03 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=4011fc515fd2fb6ab9e66eb8b9e5b7bcb40a4458&userId=913746df-734e-44be-ab4d-0d1959bc27b2&HMAC=44611c301aebb3cf4526a0f6158f78d96a84170bc8fdb1fe1a365af09a83175d" 2021-03-25 09:04:03 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/signin-service/v1/consent/users/913746df-734e-44be-ab4d-0d1959bc27b2/f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com?scopes=openid%20mbb%20profile&relayState=4011fc515fd2fb6ab9e66eb8b9e5b7bcb40a4458&callback=https://identity.vwgroup.io/oidc/v1/oauth/client/callback&hmac=e0028b30f0f5caaf1698ef140aa06b5ebbfd969a7e6569f05dc0467b2717db23" 2021-03-25 09:04:03 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/oidc/v1/oauth/client/callback/success?user_id=913746df-734e-44be-ab4d-0d1959bc27b2&client_id=f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com&scopes=openid%20mbb%20profile&consentedScopes=openid%20mbb%20profile&relayState=4011fc515fd2fb6ab9e66eb8b9e5b7bcb40a4458&hmac=ca919e29c94e4df30e0b5f3e2175a029e8c02cf7991365c847f61988de8a23e5" 2021-03-25 09:04:04 DEBUG (MainThread) [skodaconnect.connection] Login successful, received authorization code. 2021-03-25 09:04:04 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch user identity tokens. 2021-03-25 09:04:50 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: skodaconnect 2021-03-25 09:05:04 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, Token exchange failed 2021-03-25 09:05:04 WARNING (MainThread) [skodaconnect.connection] Failed to login to new Skoda API. 2021-03-25 09:05:04 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working 2021-03-25 09:05:04 INFO (MainThread) [homeassistant.setup] Setup of domain skodaconnect took 71.3 seconds 2021-03-25 09:05:04 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.

I also tried the config if I add the VIN number to it, but I got the following in this case:
2021-03-25 09:11:03 INFO (MainThread) [skodaconnect.vehicle] Vehicle !VIN added. Homeregion is "https://msg.volkswagen.de" 2021-03-25 09:11:03 DEBUG (MainThread) [skodaconnect.vehicle] Attempting discovery of supported API endpoints for vehicle. 2021-03-25 09:11:03 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/api/rolesrights/operationlist/v3/vehicles/!VIN" 2021-03-25 09:11:03 ERROR (MainThread) [skodaconnect.connection] Got HTTP 400 "Bad Request" from server, this request might be malformed or not implemented correctly for this vehicle 2021-03-25 09:11:03 WARNING (MainThread) [skodaconnect.connection] Could not fetch operation list, HTTP status code: 400

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

@boci29 Would you please try again? I see that there has been system maintenance since last night up until a few hours ago.
I don't expect it to work but I expect you to get further than that.

from homeassistant-skodaconnect.

boci29 avatar boci29 commented on June 16, 2024

Last logs:
2021-03-25 13:01:07 DEBUG (MainThread) [skodaconnect.connection] Authenticating with email and password. 2021-03-25 13:01:07 DEBUG (MainThread) [skodaconnect.connection] Using login action url: "https://identity.vwgroup.io/signin-service/v1/7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com/login/authenticate" 2021-03-25 13:01:08 DEBUG (MainThread) [skodaconnect.connection] Parsing login response. 2021-03-25 13:01:08 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/oidc/v1/oauth/sso?clientId=7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com&relayState=b811543e4ca153abb1587d9bd5d8e07abb91e570&userId=913746df-734e-44be-ab4d-0d1959bc27b2&HMAC=da3a2fa674389b8fc1e97974a95dc946b74db6af2b4e8a137c9db47744222bd3" 2021-03-25 13:01:08 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/signin-service/v1/consent/users/913746df-734e-44be-ab4d-0d1959bc27b2/7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com?scopes=openid%20mbb%20profile%20cars%20address%20email%20birthdate%20badge%20phone%20driversLicense%20dealers%20profession%20vin&relayState=b811543e4ca153abb1587d9bd5d8e07abb91e570&callback=https://identity.vwgroup.io/oidc/v1/oauth/client/callback&hmac=534d2a175d605d26606190bdd04696da29734cec928d3c8b131cc04cc2bb9f7b" 2021-03-25 13:01:08 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/oidc/v1/oauth/client/callback/success?user_id=913746df-734e-44be-ab4d-0d1959bc27b2&client_id=7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com&scopes=openid%20mbb%20profile%20cars%20address%20email%20birthdate%20badge%20phone%20driversLicense%20dealers%20profession%20vin&consentedScopes=openid%20mbb%20profile%20cars%20address%20email%20birthdate%20badge%20phone%20driversLicense%20dealers%20profession%20vin&relayState=b811543e4ca153abb1587d9bd5d8e07abb91e570&hmac=1935bfffec9cf3b893eac7d7e72c96c67b7fb1482e2953e9c931e481473f4d49" 2021-03-25 13:01:08 DEBUG (MainThread) [skodaconnect.connection] Login successful, received authorization code. 2021-03-25 13:01:08 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch user identity tokens. 2021-03-25 13:01:10 WARNING (MainThread) [homeassistant.setup] Setup of skodaconnect is taking over 10 seconds. 2021-03-25 13:01:10 DEBUG (MainThread) [skodaconnect.connection] Got token access_token 2021-03-25 13:01:10 DEBUG (MainThread) [skodaconnect.connection] Got token refresh_token 2021-03-25 13:01:10 DEBUG (MainThread) [skodaconnect.connection] Got token id_token 2021-03-25 13:01:10 DEBUG (MainThread) [skodaconnect.connection] Got token token_type 2021-03-25 13:01:10 DEBUG (MainThread) [skodaconnect.connection] Got token expires_in 2021-03-25 13:01:10 DEBUG (MainThread) [skodaconnect.connection] User identity token verified OK. 2021-03-25 13:01:10 INFO (MainThread) [skodaconnect.connection] Successfully logged in 2021-03-25 13:01:10 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch api tokens. 2021-03-25 13:01:10 DEBUG (MainThread) [skodaconnect.connection] Got token access_token 2021-03-25 13:01:10 DEBUG (MainThread) [skodaconnect.connection] Got token token_type 2021-03-25 13:01:10 DEBUG (MainThread) [skodaconnect.connection] Got token refresh_token 2021-03-25 13:01:10 DEBUG (MainThread) [skodaconnect.connection] Got token expires_in 2021-03-25 13:01:10 DEBUG (MainThread) [skodaconnect.connection] Got token scope 2021-03-25 13:01:11 DEBUG (MainThread) [skodaconnect.connection] VW-Group API token verified OK. 2021-03-25 13:01:11 DEBUG (MainThread) [skodaconnect.connection] Fetching vehicles associated with account 2021-03-25 13:01:11 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/skoda/CZ/vehicles" 2021-03-25 13:01:11 DEBUG (MainThread) [skodaconnect.connection] Request for "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/skoda/CZ/vehicles" returned with status code [200], response: {'userVehicles': None} 2021-03-25 13:01:11 DEBUG (MainThread) [skodaconnect.connection] Failed to retrieve list of cars, trying new API 2021-03-25 13:01:11 DEBUG (MainThread) [skodaconnect.connection] Requesting openid config 2021-03-25 13:01:11 DEBUG (MainThread) [skodaconnect.connection] Get authorization page from "https://identity.vwgroup.io/oidc/v1/authorize" 2021-03-25 13:01:11 DEBUG (MainThread) [skodaconnect.connection] Request headers: "{'Connection': 'keep-alive', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Accept-Encoding': 'gzip, deflate', 'Content-Type': 'application/x-www-form-urlencoded', 'x-requested-with': 'cz.skodaauto.connect', 'User-Agent': 'okhttp/3.14.7', 'X-App-Name': 'cz.skodaauto.connect'}" 2021-03-25 13:01:11 DEBUG (MainThread) [skodaconnect.connection] Got redirect to "https://identity.vwgroup.io/signin-service/v1/signin/f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com?relayState=18ae27957ec35d5b618f7d7d744efa7deb52e1f2" 2021-03-25 13:01:11 DEBUG (MainThread) [skodaconnect.connection] Got authorization endpoint 2021-03-25 13:01:12 DEBUG (MainThread) [skodaconnect.connection] Authenticating with email and password. 2021-03-25 13:01:12 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" 2021-03-25 13:01:12 DEBUG (MainThread) [skodaconnect.connection] Parsing login response. 2021-03-25 13:01:12 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=18ae27957ec35d5b618f7d7d744efa7deb52e1f2&userId=913746df-734e-44be-ab4d-0d1959bc27b2&HMAC=8b24a758c35713aa7befbbe3f61fc1501328632a17b38414b7d3a20808e7f076" 2021-03-25 13:01:12 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/signin-service/v1/consent/users/913746df-734e-44be-ab4d-0d1959bc27b2/f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com?scopes=openid%20mbb%20profile&relayState=18ae27957ec35d5b618f7d7d744efa7deb52e1f2&callback=https://identity.vwgroup.io/oidc/v1/oauth/client/callback&hmac=a18090f58a6e4858e0197c5773af182aaaab2a71c465f3884b947ac381881097" 2021-03-25 13:01:12 DEBUG (MainThread) [skodaconnect.connection] Following redirect to "https://identity.vwgroup.io/oidc/v1/oauth/client/callback/success?user_id=913746df-734e-44be-ab4d-0d1959bc27b2&client_id=f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com&scopes=openid%20mbb%20profile&consentedScopes=openid%20mbb%20profile&relayState=18ae27957ec35d5b618f7d7d744efa7deb52e1f2&hmac=19753c1be9a10ce35d266b0b7adf01dc56fb2353d219b52e96d1634825a0611e" 2021-03-25 13:01:13 DEBUG (MainThread) [skodaconnect.connection] Login successful, received authorization code. 2021-03-25 13:01:13 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch user identity tokens. 2021-03-25 13:01:13 DEBUG (MainThread) [skodaconnect.connection] Got token access_token 2021-03-25 13:01:13 DEBUG (MainThread) [skodaconnect.connection] Got token refresh_token 2021-03-25 13:01:13 DEBUG (MainThread) [skodaconnect.connection] Got token id_token 2021-03-25 13:01:13 DEBUG (MainThread) [skodaconnect.connection] Got token token_type 2021-03-25 13:01:13 DEBUG (MainThread) [skodaconnect.connection] Got token expires_in 2021-03-25 13:01:13 DEBUG (MainThread) [skodaconnect.connection] User identity token verified OK. 2021-03-25 13:01:13 INFO (MainThread) [skodaconnect.connection] Successfully logged in to Skoda new API 2021-03-25 13:01:13 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://api.connect.skoda-auto.cz/api/v2/garage/vehicles"2021-03-25 13:01:13 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v2/garage/vehicles" returned with status code [200], response: [{'id': '5fd001965d03c52123c4d682', 'vin': '!vin', 'name': 'Skodilack', 'lastUpdatedAt': '2021-03-24T08:44:51.073Z', 'specification': {'title': 'ŠKODA Octavia', 'brand': 'ŠKODA', 'model': 'Octavia', 'body': 'Liftback', 'systemCode': 'OCTAVIA STY TD 110/2.0 A7F', 'systemModelId': '5E348D', 'engine': {'type': 'TDI', 'powerInKW': 110, 'capacityInLiters': 2.0}, 'gearbox': {'type': 'A7F'}, 'trimLevel': 'Style', 'manufacturingDate': '2019-05-28', 'devicePlatform': 'UNKNOWN'}, 'connectivities': [{'type': 'INCAR', 'detail': {'incar': {'state': 'ACTIVATED'}}}], 'capabilities': [{'id': 'DCS', 'statuses': []}]}] 2021-03-25 13:01:13 DEBUG (MainThread) [skodaconnect.connection] Going to call vehicle updates 2021-03-25 13:01:13 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://mal-1a.prd.ece.vwg-connect.com/api/cs/vds/v1/vehicles/!vin/homeRegion" 2021-03-25 13:01:14 ERROR (MainThread) [skodaconnect.connection] Got unhandled error from server: 404 2021-03-25 13:01:14 DEBUG (MainThread) [skodaconnect.connection] Could not get homeregion, error 'homeRegion' 2021-03-25 13:01:14 DEBUG (MainThread) [skodaconnect.vehicle] Get homeregion for VIN !vin 2021-03-25 13:01:14 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/promoter/portfolio/v1/skoda/CZ/vehicle/!vin/carportdata" 2021-03-25 13:01:14 DEBUG (MainThread) [skodaconnect.connection] Attempting extraction of subject from identity token. 2021-03-25 13:01:14 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://customer-profile.apps.emea.vwapps.io/v1/customers/913746df-734e-44be-ab4d-0d1959bc27b2/realCarData" 2021-03-25 13:01:14 DEBUG (MainThread) [skodaconnect.connection] Request for "https://msg.volkswagen.de/fs-car/promoter/portfolio/v1/skoda/CZ/vehicle/!vin/carportdata" returned with status code [200], response: {'carportData': {'systemId': 'msg', 'requestId': 'MSG-ivwb2194-1616673674371-68092-SCZ', 'brand': 'skoda', 'country': 'CZ', 'vin': '!vin', 'modelCode': '5E348D', 'modelName': 'OCTAVIA STY TD110/2.0A7F', 'modelYear': 2019, 'color': 'LF7Y', 'countryCode': 'HU', 'engine': 'DFF', 'mmi': '7Q0', 'transmission': 'UAW'}} 2021-03-25 13:01:14 DEBUG (MainThread) [skodaconnect.connection] Request for "https://customer-profile.apps.emea.vwapps.io/v1/customers/913746df-734e-44be-ab4d-0d1959bc27b2/realCarData" returned with status code [200], response: {'realCars': [{'allocatedDealerCountry': 'COUNTRY:HU', 'allocatedDealerId': '04133', 'allocatedDealerBrandCode': 'VOLKSWAGEN_BRAND:C', 'vehicleIdentificationNumber': '!vin', 'deactivated': False, 'deactivationReason': '', 'modelCode': ''}]} 2021-03-25 13:01:14 INFO (MainThread) [skodaconnect.vehicle] Vehicle !vin added. Homeregion is "https://msg.volkswagen.de" 2021-03-25 13:01:14 DEBUG (MainThread) [skodaconnect.vehicle] Attempting discovery of supported API endpoints for vehicle. 2021-03-25 13:01:14 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/api/rolesrights/operationlist/v3/vehicles/!vin" 2021-03-25 13:01:14 ERROR (MainThread) [skodaconnect.connection] Got HTTP 400 "Bad Request" from server, this request might be malformed or not implemented correctly for this vehicle 2021-03-25 13:01:14 WARNING (MainThread) [skodaconnect.connection] Could not fetch operation list, HTTP status code: 400 2021-03-25 13:01:14 WARNING (MainThread) [skodaconnect.connection] Could not update information: 'serviceInfo' 2021-03-25 13:01:14 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working 2021-03-25 13:01:14 INFO (MainThread) [homeassistant.setup] Setup of domain skodaconnect took 14.8 seconds 2021-03-25 13:01:14 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

Thanks, then the login seems to be working fine. Something has changed in handling of homeregion and endpoints for your car. Would you consider adding me as a guest user for your car? Then I might be able to debug this further.

from homeassistant-skodaconnect.

Kaibob2 avatar Kaibob2 commented on June 16, 2024

Since yesterday the integration stopped working for me. Like mentioned above i'm still on 1.0.38 and until yesterday everything was fine. Since yesterday evening i get the following after a reboot:

2021-03-31 17:16:02 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, /signin-service/v1/7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com/terms-and-conditions?relayState=ca985459bffc92de7cd74dcc97decb8017c46f66&updated=dataprivacy
2021-03-31 17:16:02 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working
2021-03-31 17:16:02 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.

The Android app is working as usual.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

Since yesterday the integration stopped working for me. Like mentioned above i'm still on 1.0.38 and until yesterday everything was fine. Since yesterday evening i get the following after a reboot:

2021-03-31 17:16:02 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, /signin-service/v1/7f045eee-7003-4379-9968-9355ed2adb06@apps_vw-dilab_com/terms-and-conditions?relayState=ca985459bffc92de7cd74dcc97decb8017c46f66&updated=dataprivacy
2021-03-31 17:16:02 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working
2021-03-31 17:16:02 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.

The Android app is working as usual.

Try login to Skoda Connect web and accept the new terms and conditions.

from homeassistant-skodaconnect.

Kaibob2 avatar Kaibob2 commented on June 16, 2024

Thanks for the hint. I did like you suggested and accepted the new T&C on Skoda connect web.
Now the error is:

2021-03-31 18:05:50 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, User appears unauthorized
2021-03-31 18:05:50 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working
2021-03-31 18:05:50 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.

from homeassistant-skodaconnect.

Kaibob2 avatar Kaibob2 commented on June 16, 2024

Still not working. Any idea?

from homeassistant-skodaconnect.

Kaibob2 avatar Kaibob2 commented on June 16, 2024

Okay, this is weird. I uninstalled the integration (like i did many times before), Re-installed 1.0.38, rebooted and ... everything is up and working. Sorry, but i have no idea why it worked now and not the many times before since my above post.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on June 16, 2024

Okay, this is weird. I uninstalled the integration (like i did many times before), Re-installed 1.0.38, rebooted and ... everything is up and working. Sorry, but i have no idea why it worked now and not the many times before since my above post.

Most probably you initiated the integration while the service werent stable.
I have seen many changes and long logins. So long that there has been timeouts and failed logins as a rsult.

from homeassistant-skodaconnect.

ayounas avatar ayounas commented on June 16, 2024

Had the same issue, no data from Skoda thought I will check if someone else having a similar issue and glad I found this post.
accepting terms and conditions on the website fixed the problem for me.

Version : "skodaconnect==1.0.35"

from homeassistant-skodaconnect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.