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.
@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 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
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.
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.
- we can accomplish by triggering a forced update from the integration.
- 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
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.
Woow nice LoveLace card!!
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.
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.