SEAT Connect car integration in Hassio

Great news - can’t wait. Let me know if I can help testing it. I have a Seat with Seat Connect

I have now created a repo based on my work with Skoda Connect. All seems to be working the same.

3 Likes

Been testing for few hours, seems to be working fine! Thanks @Farfar!

1 Like

Since it seems to be working fine for Seat with only client authentication differences it might be in order to de-brand the library and make it brand independent. Will see how that might be possible to implement onwards.

3 Likes

Same here. @farfar you rock!

2 Likes

A word of caution though. Seat doesn’t seem to have implemented token handling in the same way as Skoda for their app.
Seat doesn’t seem to refresh tokens when they expire but Skoda does.
Will need to test some more but it looks like the integration can use the Skoda way of handling tokens so we don’t need to re-auth when they expire.
This might change though of Seat changed their app.

Fantastic news! I’m expecting my new Seat Leon ST PHEV in a few weeks. However, I can not find ‘Seat connect’ repo with HACS?

We got out Seat Leon Sports tourer 14 days ago - fantastic car!
If you can’t find it in HACS, just add the repository manually in HACS - you will get a lot of sensors :slight_smile:

Repository: https://github.com/Farfar/homeassistant-seatconnect

Correct, it’s not there. The README is sloppily copied from Skoda ditto so not 100% accurate.

2 Likes

Hello there,
just tried to set up the Seat Connect integration. Unfortunately I only get an error after starting HASS:

  • Error adding entities for domain sensor with platform seatconnect
  • Error while setting up seatconnect platform for sensor

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 315, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 506, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 531, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
    sstate = self.state
  File "/config/custom_components/seatconnect/sensor.py", line 27, in state
    return self.instrument.state
  File "/usr/local/lib/python3.8/site-packages/seatconnect/dashboard.py", line 114, in state
    val = super().state
  File "/usr/local/lib/python3.8/site-packages/seatconnect/dashboard.py", line 59, in state
    return self.vehicle.get_attr(self.attr)
  File "/usr/local/lib/python3.8/site-packages/seatconnect/vehicle.py", line 513, in get_attr
    return find_path(self.attrs, attr)
  File "/usr/local/lib/python3.8/site-packages/seatconnect/utilities.py", line 86, in find_path
    return find_path(src[path[0]], path[1:])
KeyError: 'combined_range'

Is this a known error?
I already reinstalled the integration.

UPDATE
Surprisingly, today morning I saw all the Seat Connect Sensors in Hassio. There are no more changes or reboots to Hassio or any changes to customize.yaml since my last post above.
I did a reboot of Hassio just now to check if the error will appear again: There are no more errors. I can not explain it :thinking:

Thanks for any help :slight_smile:

Do you have the latest version of python? Are you running the standard hassio?

I’m running the standard Hassio with latest updates.
The only “change” in my hassio is installing HACS for easier install of Tapo Camera and (now) SEAT Connect integration.

So… it’s a bit weird but today morning (just now) I saw all the Seat Connect Sensors in Hassio. There are no more changes or reboots to Hassio or any changes to customize.yaml since my last post above.

Maybe a communication problem with the VW server?

Yes that’s most probable. There are some bugs when data is missing from VW Group servers, issues like yours can manifest.

This occurs when a Vehicle class object property encounters an error, such as the expected data key not existing. Then the integration tries to find the key in the raw data, which will almost always fail.

Does everyone know if this works with Cupra Connect too?
I’m able to login at https://my.seat/ but HA integration says:

[seatconnect.connection] Login failed for [email protected]

Any luck using this integration with the MySeat app and not Seat Connect?

Just wanted to report back that your integration (@farfar) is working perfectly with my new Cupra Formentor. Thank you very much for implementing this!

2 Likes

When trying to set up the integration I get ‘500 Internal Server Error Server got itself in trouble’ after entering my email and password. The logs say:

Logger: aiohttp.server
Source: data_entry_flow.py:267
First occurred: 09:28:17 (7 occurrences)
Last logged: 11:39:49

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 219, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 157, in get
    return await super().get(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 97, in get
    result = await self._flow_mgr.async_configure(flow_id)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 267, in async_configure
    raise ValueError(
ValueError: Show progress can only transition to show progress or show progress done.

and

Logger: custom_components.seatconnect.config_flow
Source: custom_components/seatconnect/config_flow.py:113
Integration: Seat Connect (documentation, issues)
First occurred: 09:28:17 (7 occurrences)
Last logged: 11:39:49

Fetch vehicles failed with error: 'NoneType' object has no attribute 'get'

Is this something on my end or do more people run into this?

Just wanted to report back that your integration (@farfar) is working perfectly with my Seat Mii Electric. Thank you very much for implementing this!

1 Like

Is there a chance that it will work after the last SEAT notification?

Hi.

That’s essentially breaking this integration isn’t it?
As I’m looking to integrate a cupra for a friend of mine, this seems bad news.

Is there an alternative way to get this working again?

I found this library from Till, but I’m lacking the skills in order to make it compatible with home assistant.

WeConnect Python