Skoda Connect

Hi! I’m trying to use the component but I’m getting login struggles, I’ve tried the latest stable and this is the logging from 1.0.40-rc2

Apr 29 12:37:45 raspberrypi hass[27647]: 2021-04-29 12:37:45 DEBUG (MainThread) [skodaconnect.connection] Using service https://msg.volkswagen.de
Apr 29 12:37:45 raspberrypi hass[27647]: 2021-04-29 12:37:45 DEBUG (MainThread) [skodaconnect.connection] Initiating new login
Apr 29 12:37:48 raspberrypi hass[27647]: 2021-04-29 12:37:48 DEBUG (MainThread) [skodaconnect.connection] Got authorization endpoint
Apr 29 12:37:50 raspberrypi hass[27647]: 2021-04-29 12:37:50 DEBUG (MainThread) [skodaconnect.connection] Authenticating with email and password.
Apr 29 12:37:50 raspberrypi hass[27647]: 2021-04-29 12:37:50 DEBUG (MainThread) [skodaconnect.connection] Parsing login response.
Apr 29 12:37:51 raspberrypi hass[27647]: 2021-04-29 12:37:51 DEBUG (MainThread) [skodaconnect.connection] Login successful, received authorization code.
Apr 29 12:37:51 raspberrypi hass[27647]: 2021-04-29 12:37:51 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch user identity tokens.
Apr 29 12:37:53 raspberrypi hass[27647]: 2021-04-29 12:37:53 DEBUG (MainThread) [skodaconnect.connection] User identity token verified OK.
Apr 29 12:37:53 raspberrypi hass[27647]: 2021-04-29 12:37:53 INFO (MainThread) [skodaconnect.connection] Successfully logged in
Apr 29 12:37:53 raspberrypi hass[27647]: 2021-04-29 12:37:53 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch api tokens.
Apr 29 12:37:53 raspberrypi hass[27647]: 2021-04-29 12:37:53 DEBUG (MainThread) [skodaconnect.connection] VW-Group API token verified OK.
Apr 29 12:37:53 raspberrypi hass[27647]: 2021-04-29 12:37:53 DEBUG (MainThread) [skodaconnect.connection] Fetching vehicles associated with account
Apr 29 12:37:53 raspberrypi hass[27647]: 2021-04-29 12:37:53 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/skoda/CZ/vehicles"
Apr 29 12:37:53 raspberrypi hass[27647]: 2021-04-29 12:37:53 DEBUG (MainThread) [skodaconnect.connection] Request for "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/skoda/CZ/vehicles" returned with status code [200]
Apr 29 12:37:53 raspberrypi hass[27647]: 2021-04-29 12:37:53 DEBUG (MainThread) [skodaconnect.connection] Failed to retrieve list of cars, trying new API
Apr 29 12:37:53 raspberrypi hass[27647]: 2021-04-29 12:37:53 DEBUG (MainThread) [skodaconnect.connection] Got authorization endpoint
Apr 29 12:37:54 raspberrypi hass[27647]: 2021-04-29 12:37:54 DEBUG (MainThread) [skodaconnect.connection] Authenticating with email and password.
Apr 29 12:37:54 raspberrypi hass[27647]: 2021-04-29 12:37:54 DEBUG (MainThread) [skodaconnect.connection] Parsing login response.
Apr 29 12:37:54 raspberrypi hass[27647]: 2021-04-29 12:37:54 DEBUG (MainThread) [skodaconnect.connection] Login successful, received authorization code.
Apr 29 12:37:54 raspberrypi hass[27647]: 2021-04-29 12:37:54 DEBUG (MainThread) [skodaconnect.connection] Trying to fetch user identity tokens.
Apr 29 12:37:55 raspberrypi hass[27647]: 2021-04-29 12:37:55 DEBUG (MainThread) [skodaconnect.connection] User identity token verified OK.
Apr 29 12:37:55 raspberrypi hass[27647]: 2021-04-29 12:37:55 INFO (MainThread) [skodaconnect.connection] Successfully logged in to Skoda new API
Apr 29 12:37:55 raspberrypi hass[27647]: 2021-04-29 12:37:55 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://api.connect.skoda-auto.cz/api/v2/garage/vehicles"
Apr 29 12:37:55 raspberrypi hass[27647]: 2021-04-29 12:37:55 WARNING (MainThread) [homeassistant.setup] Setup of skodaconnect is taking over 10 seconds.
Apr 29 12:37:55 raspberrypi hass[27647]: 2021-04-29 12:37:55 DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v2/garage/vehicles" returned with status code [200]
Apr 29 12:37:55 raspberrypi hass[27647]: 2021-04-29 12:37:55 DEBUG (MainThread) [skodaconnect.connection] Going to call vehicle updates
Apr 29 12:37:55 raspberrypi hass[27647]: 2021-04-29 12:37:55 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://mal-1a.prd.ece.vwg-connect.com/api/cs/vds/v1/vehicles/[VIN]/homeRegion"
Apr 29 12:37:57 raspberrypi hass[27647]: 2021-04-29 12:37:57 ERROR (MainThread) [skodaconnect.connection] Got unhandled error from server: 404
Apr 29 12:37:57 raspberrypi hass[27647]: 2021-04-29 12:37:57 DEBUG (MainThread) [skodaconnect.connection] Could not get homeregion, error 'homeRegion'
Apr 29 12:37:57 raspberrypi hass[27647]: 2021-04-29 12:37:57 DEBUG (MainThread) [skodaconnect.vehicle] Get homeregion for VIN [VIN]
Apr 29 12:37:57 raspberrypi hass[27647]: 2021-04-29 12:37:57 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/promoter/portfolio/v1/skoda/CZ/vehicle/[VIN]/carportdata"
Apr 29 12:37:57 raspberrypi hass[27647]: 2021-04-29 12:37:57 DEBUG (MainThread) [skodaconnect.connection] Attempting extraction of subject from identity token.
Apr 29 12:37:57 raspberrypi hass[27647]: 2021-04-29 12:37:57 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://customer-profile.apps.emea.vwapps.io/v1/customers/c7033925-7b01-4e61-85e9-2cb848f6e7a8/realCarData"
Apr 29 12:37:57 raspberrypi hass[27647]: 2021-04-29 12:37:57 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]
Apr 29 12:37:57 raspberrypi hass[27647]: 2021-04-29 12:37:57 DEBUG (MainThread) [skodaconnect.connection] Request for "https://customer-profile.apps.emea.vwapps.io/v1/customers/c7033925-7b01-4e61-85e9-2cb848f6e7a8/realCarData" returned with status code [200]
Apr 29 12:37:57 raspberrypi hass[27647]: 2021-04-29 12:37:57 INFO (MainThread) [skodaconnect.vehicle] Vehicle [VIN] added. Homeregion is "https://msg.volkswagen.de"
Apr 29 12:37:57 raspberrypi hass[27647]: 2021-04-29 12:37:57 DEBUG (MainThread) [skodaconnect.vehicle] Attempting discovery of supported API endpoints for vehicle.
Apr 29 12:37:57 raspberrypi hass[27647]: 2021-04-29 12:37:57 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/api/rolesrights/operationlist/v3/vehicles/[VIN]"
Apr 29 12:37:57 raspberrypi hass[27647]: 2021-04-29 12:37:57 ERROR (MainThread) [skodaconnect.connection] Got HTTP 400 "Bad Request" from server, this request might be malformed or not implemented correctly for this vehicle
Apr 29 12:37:57 raspberrypi hass[27647]: 2021-04-29 12:37:57 WARNING (MainThread) [skodaconnect.connection] Could not fetch operation list, HTTP status code: 400
Apr 29 12:37:57 raspberrypi hass[27647]: 2021-04-29 12:37:57 WARNING (MainThread) [skodaconnect.connection] Could not update information: 'serviceInfo'
Apr 29 12:37:57 raspberrypi hass[27647]: 2021-04-29 12:37:57 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working
Apr 29 12:37:57 raspberrypi hass[27647]: 2021-04-29 12:37:57 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.

and from the latest stable I’m getting this:

Apr 29 12:59:47 raspberrypi hass[27647]: 2021-04-29 12:59:47 DEBUG (MainThread) [skodaconnect.connection] Using service https://msg.volkswagen.de
Apr 29 12:59:55 raspberrypi hass[27647]: 2021-04-29 12:59:55 DEBUG (MainThread) [skodaconnect.connection] Got authorization endpoint, logging on.
Apr 29 12:59:56 raspberrypi hass[27647]: 2021-04-29 12:59:56 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, 'NoneType' object has no attribute 'find_all'
Apr 29 12:59:56 raspberrypi hass[27647]: 2021-04-29 12:59:56 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working
Apr 29 12:59:56 raspberrypi hass[27647]: 2021-04-29 12:59:56 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.

My config looks like this (credentials are good, they work at https://www.skoda-connect.com/):

skodaconnect:
  username: !secret skoda_username
  password: !secret skoda_password
  scan_interval:
    minutes: 1
  name:
#    !secret skoda_vin_enyaq: 'Enyaq'
    !secret skoda_vin_citigo-e: 'Citigo-e'

Can someone tell me what I’m doing wrong?

Do you have Skoda Connect services? If you do it might be a temporary problem and I would advise you to try again later, tomorrow for instance.
If it still fails, make sure you have working service in the MySkoda app. Log out of the app, clear app cache/data and login again. If this succeeds but not the integration I would like you to open an issue on github.

I am sure it works, you can see that the Citigo-e is visible within the app (I’ve removed the app and data and reinstalled it)

I will check it again tomorrow and let you know if it still fails, in the meanwhile I’ve added an issue #32 on your repo

Now the Citigo-e works, I still haven’t activated the car because that doesn’t work because of SkodaConnect itself.
My Enyaq isn’t visible though, maybe it’s to new or working from a different API?

AFAIK it’s only SmartLink that uses a different API. But since february there has been some changes on the backend side and if I were to guess then I would guess that Skoda might be, in the long run, moving all API functions to their own servers. As it is right now all Skoda Connect related services still seem to be hosted on VW-Group central servers.

If your Enyaq isn’t working then it’s probably something else going wrong and not the Integration or connection to VW-group servers.

1 Like

With some help I have implemented basic functionality for Enyaq (and perhaps more cars using new API). This is implemented in RC4. RC4 won’t work though for users with only new cars in their Skoda Connect garage, fix is on the way so wait for RC5.

@Farfar Looks like there might have been a bug introduced into the integration with the latest upgrade to core-2021.6.3 ?

image

Log shows the following

Could not query update from Skoda Connect
14:31:52 – (WARNING) skodaconnect (custom integration) - message first occurred at 12:31:43 and shows up 2 times
Could not update information: Login for skoda account failed
14:31:52 – (WARNING) /usr/local/lib/python3.8/site-packages/skodaconnect/connection.py - message first occurred at 12:31:43 and shows up 2 times
Login for skoda account failed!
14:31:52 – (WARNING) /usr/local/lib/python3.8/site-packages/skodaconnect/connection.py - message first occurred at 12:31:43 and shows up 2 times
Something went wrong when refreshing API tokens. {"error":"NestedServletException","error_description":"Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class java.time.zone.ZoneRulesProvider"}
14:31:51 – (WARNING) /usr/local/lib/python3.8/site-packages/skodaconnect/connection.py - message first occurred at 12:31:41 and shows up 4 times
Unable to prepare setup for platform skodaconnect.switch: Unable to set up component.
13:31:51 – (ERROR) setup.py - message first occurred at 13:31:51 and shows up 4 times
Setup failed for skodaconnect: Integration failed to initialize.
12:31:43 – (ERROR) setup.py
Could not determine available API endpoints for <<<VIN redacted>>>
12:31:41 – (WARNING) /usr/local/lib/python3.8/site-packages/skodaconnect/vehicle.py
Setup of skodaconnect is taking over 10 seconds.
12:31:38 – (WARNING) /usr/local/lib/python3.8/asyncio/events.py

I’ve checked the Skoda Connect website, and have no issues logging into the portal. A rollback to core-2021.6.2 seemed to have resolved the issues.

I also got this error message. After an extra restart this problem was solved.

I get it too… a restart fixes it ‘sometimes’, but mostly it will fail. Maybe there is a new timing rule for extensions on when to report back?

Appears to be API related perhaps, as now the older version of HA also fails.

Yes the API seems quite unstable att the moment. I often need to login twice att least in my testing setup this past week.
On other notes, I’m working on a few welcome changes, config flow being one of them. Hopefully will be able to release before end of June.

1 Like

1.0.42-RC2 available now.
Config flow is added and yaml configuration deprecated.
It’s quite untested if merging config works as expected so it you get issues, remove yaml config and configure from gui.
Some Skoda Enyaq iV specific fixes and also improved service calls.
There’s also new switches for departure schedules for vehicles that support them. Switch on/off to enable or disable schedule.
Use service call to change a departure schedule (very untested this far)

1 Like

Great. What functionality is available for Enyaq?

For now only a handful of sensors, basically everything that was available a month ago.
Skoda might have enabled more API endpoints since then so I will investigate and see if I can make more data available soon.

2 Likes

Hi, i have a Citigo e IV and i have a problem to configure
my configuration on HA core last version

\
skodaconnect:
username: xxx
password: yyy
scandinavian_miles: false
scan_interval:
minutes: 1
name:
ajdnasjdn: ‘CitiGo’

logger:
default: info
logs:
skodaconnect.connection: debug
skodaconnect.vehicle: debug
custom_components.skodaconnect: debug
custom_components.skodaconnect.climate: debug
custom_components.skodaconnect.lock: debug
custom_components.skodaconnect.device_tracker: debug
custom_components.skodaconnect.switch: debug
custom_components.skodaconnect.binary_sensor: debug
custom_components.skodaconnect.sensor: debug
\
i don’t have any error in a log, somebody can i help me? thanks

Which version of the integration are you using? Because the latest RC is using config flow and shouldn’t be configured using yaml.

sorry i read, now i try last version v1.0.42-RC2
i delete yaml config, restart HA, and add integration but i read this error after enter mail and password:

Could not login to Skoda Connect, please check your credentials and verify that the service is working

i’m sure the credential is ok, because i use for skodaconnect website and accept new terms
thanks

If you are sure that the credentials are correct then try later. Sometimes the login fails for no other reasons than servers not responding correctly.
The app uses cached login information and tokens so that it works is no benchmark. New logins can still fail.

I really like the intention of this integration, but I cannot get it to work on my 2019 Octavia. Is it correct that you need a paid Skoda Connect subscription for this to work? I can see all of the features I want in the free My Skoda app and don’t necessarily need Skoda Connect for anything on the car

Anyone who can help here?