Cupra Born EV integration

I also confirm that I managed to connect my Cupra Leon using the
GitHub - Farfar/homeassistant-seatconnect: Seat Connect - A home assistant plugin to add integration with your car.

This integration is awesome! Super easy to setup, and it works like a charm.

Hi,

I recently tried the Cupra integration, and it’s working perfectly - great job!

I was wondering if there’s a way to view the car’s charging history on a dashboard?

Thanks!

Hi @geolos!
How do you login? I’m stuck at that point. On Github, there is an issue mentioning the need to install other mobile apps. I got them all :sweat_smile: but could not make it work.

Thanks!

Hi @Stqn
I don’t know exactly where you are stucked, but after addting the cupra integration in HACS you go to stettings, add the Cupra WeConnect integration and there you can add an entry where you will fill the email/password of your cupra account.
Ensure first that your email/password works fine with the MyCupra app on your phone

Did someone get CUPRA We Connect Integration fully running with a
Cupra Born MJ24 (with software 5.0)?

For me the integration can be configured sucessfully w/o errors but I don’t see the buttons:

I can fetch data and see current battery level etc. but I can observe the following errors in the HA log:

* Failed to retrieve data for VIN VSSZZZKxxxxxxxxxx: Could not fetch data. Status Code was: 504
* Failed to retrieve data for VIN VSSZZZKxxxxxxxxxx: Could not fetch data. Status Code was: 502
* Failed to retrieve data for VIN VSSZZZKxxxxxxxxxx:

I also noted that the underlaying WeConnect Phyton library has been updated recently but most likely not considered yet.

I can use the WeConnect App, I also opt-in all the terms there.


After seeing some efforts further up the thread I redid my own dashboard.

looks nice!
can you share the yaml to create this dashboard?

square: false
columns: 1
type: grid
cards:
  - square: false
    columns: 1
    type: grid
    cards:
      - type: picture
        image: >-
          https://www.bristolstreet.co.uk/images/new/vertu/car/cupra/born/colour-swatches/metallic-rayleighred%5E1000x667%5E.jpg
        card_mod:
          style: |
            ha-card
              {border-style: none;
              }
  - square: false
    columns: 2
    type: grid
    cards:
      - type: custom:mushroom-entity-card
        entity: sensor.cupra_born_range_in_kilometers
        fill_container: false
        icon: mdi:car-cog
        icon_color: purple
        name: Range
      - type: custom:mushroom-entity-card
        entity: sensor.cupra_born_odometer_in_kilometers
        icon: mdi:car-info
        icon_color: purple
        name: Odometer
  - square: false
    columns: 2
    type: grid
    cards:
      - type: custom:mushroom-entity-card
        entity: sensor.cupra_born_state_of_charge
        name: Battery
        icon_color: teal
        fill_container: false
      - type: custom:mushroom-entity-card
        entity: sensor.cupra_born_remaining_charging_time
        icon: mdi:car-clock
        icon_color: deep-purple
        name: Time Left (Charging)
  - square: false
    columns: 2
    type: grid
    cards:
      - type: custom:mushroom-entity-card
        entity: sensor.cupra_born_climatisation_state
        name: AC Status
      - type: custom:mushroom-entity-card
        entity: sensor.cupra_born_remaining_climatisation_time
        icon: mdi:home-clock-outline
        name: AC Time Left
  - square: false
    columns: 2
    type: grid
    cards:
      - type: custom:mushroom-entity-card
        entity: sensor.cupra_born_charge_power
        icon_color: red
        name: Charge Power
        icon: mdi:ev-station
      - type: custom:mushroom-entity-card
        entity: sensor.cupra_born_charge_rate
        name: Charge Rate
        icon: mdi:ev-plug-type2
        icon_color: orange
  - square: false
    columns: 2
    type: grid
    cards:
      - type: custom:mushroom-entity-card
        icon: mdi:ev-station
        icon_color: blue-grey
        entity: sensor.myenergi_home_plug_status
        name: Zappi Status
      - type: custom:mushroom-entity-card
        entity: sensor.myenergi_home_charge_added_session
        name: Zappi Charging
        icon: mdi:ev-plug-type2
  - square: false
    columns: 3
    type: grid
    cards:
      - type: custom:mushroom-lock-card
        entity: binary_sensor.cupra_born_overall_status
        fill_container: false
        layout: vertical
        primary_info: name
        secondary_info: state
        name: Door
        icon: mdi:car-door
      - type: custom:mushroom-entity-card
        entity: binary_sensor.cupra_born_trunk_lock_status
        fill_container: true
        layout: vertical
        primary_info: name
        secondary_info: state
        name: Boot
      - type: custom:mushroom-entity-card
        entity: binary_sensor.cupra_born_lights_status
        layout: vertical
        fill_container: true
        name: Lights

Column 2

type: vertical-stack
cards:
  - type: entities
    entities:
      - entity: select.myenergi_home_charge_mode
      - entity: button.cupra_born_start_charging
      - entity: button.cupra_born_stop_charging
      - entity: sensor.cupra_born_target_state_of_charge
        name: Charge Target
      - entity: number.cupra_born_target_state_of_charge
        name: Charge Amount
      - entity: button.cupra_born_start_climate
      - entity: button.cupra_born_stop_climate
      - entity: number.cupra_born_target_climate_temperature
        name: Set Climate
      - entity: script.fast_charge
    title: Car Setup

Column 3

type: vertical-stack
cards:
  - graph: line
    type: sensor
    entity: sensor.cupra_born_state_of_charge
    detail: 1
    name: Cupra Charge Amount
  - graph: line
    type: sensor
    entity: sensor.cupra_born_range_in_kilometers
    detail: 1
    name: Range (KMs)
  - graph: line
    type: sensor
    entity: sensor.cupra_born_odometer_in_kilometers
    detail: 1
    name: Mileage (KMs)

1 Like

Thans a lot, I’m quite new to home assistant and still learning but with your help I was s able to create the dashboard for my car :slight_smile:

1 Like

Hello,
I bought a Cupra Born car and I’m trying to do a CUPRA We Connect integration.
I can get this kind of dashboard

Now I would like to resize and enlarge the cards.
I tried with

but without success!
Can you share the yaml to get the big map with horizontal columns?
Thank you very much

Love the dash board. Just wondering what your fast charge script is / does?

Sets the Zappi to Fast Mode
Sets the SOC to 100
Starts the Charge

1 Like

I get this error, do you know if it is for some reason?

[custom_components.cupra_we_connect.config_flow] Unexpected exception during setup
Traceback (most recent call last):
  File "/config/custom_components/cupra_we_connect/config_flow.py", line 75, in async_step_user
    info = await validate_input(self.hass, user_input)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/cupra_we_connect/config_flow.py", line 50, in validate_input
    await hass.async_add_executor_job(we_connect.login)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/weconnect_cupra.py", line 166, in login
    self.__session.login()
  File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 47, in login
    response = self.doWebAuth(authorizationUrl)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 201, in doWebAuth
    afterLoginResponse = self.get(afterLoginUrl, allow_redirects=False, access_type=AccessType.NONE)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 602, in get
    return self.request("GET", url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 337, in request
    raise InsecureTransportError()
oauthlib.oauth2.rfc6749.errors.InsecureTransportError: (insecure_transport) OAuth 2 MUST utilize https.

I have solved it by changing the region from Spain to Germany on the Cupra website

1 Like

This integration is now broken in the latest version of home assistant. An issue has been raised on git hub

It really isn’t. If it was, I suspect there’d be a bit more noise here shouting at me to fix it…!

I also have the problem that I can’t get the integration to work. My error pattern is identical to that of error #93 on GitHub. Changing the region in CupraID did not solve the problem. Updating to a beta version of HA didn’t improve anything either.

I believe that you have a Formentor. This is not supported by this integration today and as I don’t have one, I have no way (or time right now!) to add support for this at the moment.

Is there a known way to get a Formentor in HA?