Skoda Connect

No worries, appreciate the time you added in the past!

Ok will look at that later in the day.

This is so weird… several days of not working and trying things ( even full host reboots ), just updated to HA 2021.1.2 and everything works fine again!!

So @Farfar sorry, no clue what this glitch was.

1 Like

@lendy007 Thank you so much for this amazing integration!

Unfortunately the oil_inspection_km and service_inspection_km sensors became unavailable in HA. All the other sensors work fine. I tried removing and reinstalling the integration without success.

Do you have any idea what might be the problem?

UPDATE: NVM :slight_smile: Just found out that the entity ID changed to distance instead of km

It might be the easy explanation, that VW-Group servers weren’t available at the time of init or some error was encountered when logging in.

Anyway, I’m glad it works now :slight_smile:

Hey guys,

Awesome work with this integration, I used to have a Passat GTE and the work done by robinostlund made my life so much easier while others struggled to get the official app to work.

I seem to have an issue which gives me an Error when starting this up:

Logger: homeassistant.setup
Source: custom_components/skodaconnect/__init__.py:167
First occurred: 9:41:41 (1 occurrences)
Last logged: 9:41:41

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 227, in async_setup
    return await update(utcnow())
  File "/config/custom_components/skodaconnect/__init__.py", line 218, in update
    discover_vehicle(vehicle)
  File "/config/custom_components/skodaconnect/__init__.py", line 167, in discover_vehicle
    dashboard = vehicle.dashboard(
  File "/usr/local/lib/python3.8/site-packages/skodaconnect/vehicle.py", line 171, in dashboard
    return Dashboard(self, **config)
  File "/usr/local/lib/python3.8/site-packages/skodaconnect/dashboard.py", line 803, in __init__
    self.instruments = [
  File "/usr/local/lib/python3.8/site-packages/skodaconnect/dashboard.py", line 806, in <listcomp>
    if instrument.setup(vehicle, **config)
  File "/usr/local/lib/python3.8/site-packages/skodaconnect/dashboard.py", line 30, in setup
    if not self.is_supported:
  File "/usr/local/lib/python3.8/site-packages/skodaconnect/dashboard.py", line 67, in is_supported
    if hasattr(self.vehicle, supported):
  File "/usr/local/lib/python3.8/site-packages/skodaconnect/vehicle.py", line 195, in is_last_connected_supported
    if self.attrs.get('StoredVehicleDataResponse', {}).get('vehicleData', {}).get('data', {})[0].get('field', {})[0].get('tsCarSentUtc', []):
KeyError: 0

Here’s my config - I have tried starting it with both cars separately and together but with the same result:

skodaconnect:
    username: *****@*****.com
    password: ***********
    spin: ****
    combustion_engine_heating_duration: 10
    combustion_engine_climatisation_duration: 10
    scandinavian_miles: false
    imperial_units: false
    scan_interval:
        minutes: 5
    name:
        tmb***********: 'Octavia'
        tmb***********: 'CitiGo'

Any idea what gives me this error?

Hi,
The current release has a few minor issues like that and it should be fixed in an upcoming release. The problem is that the code assumes that the data is there and if it isn’t it throws an error.

I am working on next release as much as I have time for but recently it isn’t many hours of the week. Hopefully it will be released within two weeks.

1 Like

Also for me it perfectly works now.

The only pain is at the moment that the data is not updated once the car is moving. It takes a while until the data gets updated. But this seems to be due to the Skoda implementation. Also in the original MySkoda app the updates take quite long. Hopefully Skoda is getting better here. But this integration is really a great achievement! Thanks a lot guys!

Yes it works like this:
The car sends new data (if it has a working connection to the servers, small globe in the ICE) when it’s unlocked or when it’s stopped. This data is then available via the API. All data get requests are in reality the “stale” data on the servers.
To get new data the car needs to be 1) woken up or 2) have a new state to report.

  1. we can accomplish by triggering a forced update from the integration.
  2. is accomplished when the car unlocks (normally), when it’s parked. It will also update partial data when the car changes state for charging or climatisation.

Just upgraded to the latest version and now I get this in my logs after I just parked my car:
2021-01-25 13:21:57 ERROR (MainThread) [homeassistant.util.logging] Exception in see_vehicle when dispatching ‘skodaconnect.updated’: ()
Traceback (most recent call last):
File “/root/.homeassistant/custom_components/skodaconnect/device_tracker.py”, line 35, in see_vehicle
gps=instrument.state,
File “/root/homeassistant/lib64/python3.8/site-packages/skodaconnect/dashboard.py”, line 291, in state
state = super().state or {}
File “/root/homeassistant/lib64/python3.8/site-packages/skodaconnect/dashboard.py”, line 58, in state
return self.vehicle.get_attr(self.attr)
File “/root/homeassistant/lib64/python3.8/site-packages/skodaconnect/vehicle.py”, line 166, in get_attr
return find_path(self.attrs, attr)
File “/root/homeassistant/lib64/python3.8/site-packages/skodaconnect/utilities.py”, line 86, in find_path
return find_path(src[path[0]], path[1:])
KeyError: ‘position’

Perhaps because I added the device_tracker.kodiaq to a map card ? I has worked before, but now I don’t see my car on the map anymore

Try restarting home assistant, the position might have been unavailable when the integration was initialized.

Here is my Skoda Connect HA Output :pray:

Github:

But i found two resources with Error:

- vehicleMoving
- parkingTime

Invalid config for [skodaconnect]

After i disable this two, the Plugin works.

Thanks for help.

4 Likes

Woow nice LoveLace card!!

1 Like

Yes those two are wrongly named in the readme, they are actually enabled together with position. I have removed them from the readme for upcoming release.
If you leave out the “resources” config option then the integration will create all supported resources.

Thanks!
i leave the “resources” config.
when will the two configs work again?

What do you mean?
The resources configuration option is only there if you want to avoid creating entities.
When specified, only the resources configured will appear.

vehice moving and parking time are enabled automatically if your car supports position.

1 Like

how it works: force refresh?

You should have a switch named: “switch.xxxx_request_in_progress” (replace xxxx with you vehicle name). If you turn it on a request will be made to the servers to wake up the car and update the data on the servers.

I will test it as my vehicle is currently in the mechanic’s shop. :clap: