Skoda Connect

All sensors are created equally, if one is named sensor.oldcar_xxyyzz then every sensor/binary_sensor/switch should be named *.oldcar_
Once created though I think it won’t change the entity id of an entity. I removed my entities and re-added the integration and all entities gets created the same with the same base name, including requests_remaining.

Either rename the entity yourself or disable integration, remove entities and add integration again. Then all entities will be recrated.

I have everything working on a new 2020 Octavia. However remote lock/unlock is the only thing that’s not working weirdly enough.
I have two lock entities: Trunk and All Doors. When I try to unlock trunk, nothing happens. When I try to unlock all doors I get a toast message: “Failed to call service lock/unlock. Remote lock/unlock is not supported”
The service has been activated by my dealer and I can unlock my doors in the Skoda app itself without problem.
I’ve added my spin in the config since this is also required in the Skoda app but this doesn’t seem to help.

Logs when unlocking trunk show nothing. Logs when unlocking all doors show an exception is thrown:

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/skodaconnect/lock.py:41
Integration: Home Assistant WebSocket API ([documentation](https://www.home-assistant.io/integrations/websocket_api), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
First occurred: 17:00:58 (6 occurrences)
Last logged: 17:19:31

* [140500279501104] Remote lock/unlock is not supported.
* [140500242324256] Remote lock/unlock is not supported.

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 135, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1445, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in _execute_service await handler.job.target(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service await self.hass.helpers.service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 593, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 630, in _handle_entity_call await result File "/config/custom_components/skodaconnect/lock.py", line 41, in async_unlock await self.instrument.unlock() File "/usr/local/lib/python3.8/site-packages/skodaconnect/dashboard.py", line 325, in unlock return await self.vehicle.set_lock('unlock', self.spin) File "/usr/local/lib/python3.8/site-packages/skodaconnect/vehicle.py", line 404, in set_lock raise Exception('Remote lock/unlock is not supported.') Exception: Remote lock/unlock is not supported.

Any ideas on how to fix this?

I think @Farfar said earlier… if something isnt working open a github issue and he will look at it

Bu ti have the same issue myself…

ok, I see there’s no issue yet so I’ll create one in the coming days if I have time.

Yes please open an issue on github and please attach full debug log with sensitive information redacted.
I think I know the issue with remote lock though.

I got some free time tonight so I fixed the remote lock/unlock since it was a minor issue, ping @selem, @konradwalsh .
RC6 beta release is published with the fix and some minor changes.
The only noticeable change might be that service and oil inspection days/distance will now show positive values instead of negative.
Other changes include token revocation on hass shutdown/restart and some code cleanup.

2 Likes

Lock is working

But unlock fails

1 Like

Will check it out tomorrow. I noticed vehicle_moving doesn’t seem to update correctly either. Hard to noticed when the car seldom gets used theese days.

2 Likes

Version RC6:

Logger: skodaconnect.connection
Source: /usr/local/lib/python3.8/site-packages/skodaconnect/connection.py:525
First occurred: 10:38:20 AM (40 occurrences)
Last logged: 12:50:04 PM
Could not fetch trip statistics, error:

Gonna need some more logs than that to troubleshoot.

Thanks for checking so quickly, even without a GitHub issue!
Positive values for service and oil inspection are indeed working. Welcome change, tnx! :slight_smile:

Regarding lock/unlock, I can confirm, just like @konradwalsh that lock seems to be working but unlock is not:

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/skodaconnect/lock.py:41
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 22:49:44 (1 occurrences)
Last logged: 22:49:44

[140120440925152] Lock action failed
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 135, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1445, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
    await self.hass.helpers.service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 593, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 630, in _handle_entity_call
    await result
  File "/config/custom_components/skodaconnect/lock.py", line 41, in async_unlock
    await self.instrument.unlock()
  File "/usr/local/lib/python3.8/site-packages/skodaconnect/dashboard.py", line 325, in unlock
    return await self.vehicle.set_lock('unlock', self.spin)
  File "/usr/local/lib/python3.8/site-packages/skodaconnect/vehicle.py", line 448, in set_lock
    raise Exception('Lock action failed')
Exception: Lock action failed
Logger: skodaconnect.connection
Source: /usr/local/lib/python3.8/site-packages/skodaconnect/connection.py:761
First occurred: 22:49:44 (1 occurrences)
Last logged: 22:49:44

Unhandled HTTP exception: 403, message='Forbidden', url=URL('https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/rlu/v1/skoda/CZ/vehicles/<VIN number redacted>/actions')

Vehicle moving seems to be registering correctly for me. This morning I left and drove for about 1h45, same trip back tonight. Short trip in between. Everything seems to be registering correctly when I check my history for today.
Screenshot 2021-01-30 225348

If you need more info regarding anything, prefer a GitHub issue after all or need help testing, I’ll be more than happy to try and help/test where I can.

Hi! I have some questions about some error messages i get in my log. I have only added stuff I want in my configuration.yaml, but still I get 401 errors on stuff like “charger”, “carportData” and such and they fill up my log quite a bit. How can I remove fetch data I dont want?

Also it wont automatically fetch the outside temperature when Im not driving, only right after I parked or while driving, or when I go in to the skoda app and update.

You can’t. The integration will fetch all data for all endpoints that are discovered for your vehicle.
The resources configuration option is only for restricting entities from getting added to home assistant.

Yes that’s how it works, nothing we can do anything about.
The car only sends new data to the servers sometimes such as when you park the car. See earlier in thread when I got into more detail about it.
The refresh in the app is the same as the “force_data_refresh” switch in v1.0.30*, it will send a signal to wake the car up and have it send updated data.

Beta version 1.0.30rc7 is available, unlock is fixed as well as vehicle_moving for those that had issues with it.

3 Likes

I can confirm Unlock and Lock work now

1 Like

Hi everyone… What was the epilogue of this? I can only do a manual refresh :unamused: the automatic one does not work for me… what ever interval I setup.
Thanks for help!

What do you mean with automatic refresh? There is no automatic refresh of data, the integration will fetch whatever is available on the servers. If you see stale data it is because the car hasn’t sent any newer data.

The scan_interval specifies how often the integration should poll the Skoda Connect servers for data.

The force_data_refresh switch will send a request to the Skoda Connect servers to wake up the car and send new data. This is the same as “pulling down” and refreshing in the app, also the app does this automatically when you start it.

Prefect answer… sorry for my ignorance. Thank you.

1 Like

I’ve noticed that the window sensors are inverted.
The windows are all closed (Stängd) on the car, but the sensors state them as open (Öppet).
Any ideas why?

Strange, on my car (Superb iV) the state is correct.

1 Like