Categories
Home automation

Cupra Tavascan in Home Assistant

We recently received our new car. A Cupra Tavascan.

As all cars these days it has an app for your phone. Which is fine. But it is just another app. When I am at home I just want to see everything in one place: Home Assistant.

I use https://github.com/daernsinstantfortress/cupra_we_connect. Which I installed through HACS.

And for visualizing the data I use: https://ngocjohn.is-a.dev/vehicle-status-card/

The full config for this card is:

type: custom:vehicle-status-card
button_card:
  - button:
      icon: mdi:battery-charging-30
      primary: Charging
      secondary:
        state_template: ""
        entity: sensor.cupra_tavascan_remaining_charging_time
      color: |
        {% if states('sensor.cupra_tavascan_charge_rate')|float(0) > 0 %}
         green
        {% endif %}
    button_type: default
    card_type: custom
    custom_card:
      - type: entities
        entities:
          - entity: sensor.cupra_tavascan_state_of_charge
            name: Current Charge
          - entity: sensor.cupra_tavascan_charge_rate
            name: Charging Rate
            icon: mdi:speedometer
          - entity: sensor.cupra_tavascan_charge_power
            name: Charge Power
          - entity: number.cupra_tavascan_target_state_of_charge
            name: Target Charge
            icon: mdi:flag-checkered
          - entity: sensor.cupra_tavascan_remaining_charging_time
            name: Remaining Time
            icon: mdi:battery-clock-outline
          - entity: sensor.cupra_tavascan_charging_mode
            name: Charging Mode
            icon: mdi:battery-80
          - entity: sensor.cupra_tavascan_charge_type
            name: Charging Type
        title: Charge information
    button_action: {}
  - button:
      primary: Climate
      secondary:
        state_template: ""
        entity: sensor.cupra_tavascan_remaining_charging_time
      icon: mdi:fan
      color: |
        {% if states('sensor.cupra_tavascan_climatisation_state') != "off" %}
         green
        {% endif %}
    button_type: default
    hide_button: false
    card_type: custom
    custom_card:
      - type: entities
        entities:
          - entity: sensor.cupra_tavascan_climatisation_state
            name: State
            icon: mdi:fan
          - entity: binary_sensor.cupra_tavascan_front_window_heating_state
            icon: mdi:heat-wave
            name: Front window
          - entity: binary_sensor.cupra_tavascan_rear_window_heating_state
            name: Rear window
            icon: mdi:heat-wave
          - entity: number.cupra_tavascan_target_climate_temperature
            name: Temperature
            icon: mdi:speedometer
          - entity: button.cupra_tavascan_start_climate
            name: Start Climate
            icon: mdi:play
          - entity: button.cupra_tavascan_stop_climate
            name: Stop Climate
            icon: mdi:stop
          - entity: sensor.cupra_tavascan_remaining_climatisation_time
            name: Remaining Time
            icon: mdi:fan-clock
        title: Air Conditioning
    button_action: {}
  - button:
      primary: Total distance
      secondary:
        "0":
          entity: ""
          attribute: ""
          state_template: ""
        entity: sensor.cupra_tavascan_odometer_in_kilometers
      icon: mdi:map-marker-distance
      notify: ""
    button_type: action
    hide_button: false
    card_type: default
    default_card: []
    custom_card: []
    button_action:
      entity: ""
      tap_action:
        action: none
      hold_action:
        action: none
      double_tap_action:
        action: none
layout_config:
  button_grid:
    rows: 2
    columns: 2
    swipe: true
  hide:
    button_notify: false
    buttons: false
    images: true
    indicators: false
    mini_map: false
    range_info: false
    map_address: false
    card_name: false
  theme_config:
    mode: auto
    theme: default
  section_order:
    - header_info
    - mini_map
    - buttons
name: Cupra Tavascan
mini_map:
  device_tracker: device_tracker.cupra_tavascan_tracker
  path_color: ""
  enable_popup: true
  use_zone_name: false
  map_zoom: 12
  default_zoom: 12
  auto_fit: true
indicators:
  group: []
  single:
    - entity: binary_sensor.cupra_tavascan_engine_status
      action_config:
        entity: binary_sensor.cupra_tavascan_engine_status
        tap_action:
          action: more-info
        hold_action:
          action: none
        double_tap_action:
          action: none
    - entity: binary_sensor.cupra_tavascan_overall_status
      icon: ""
      attribute: ""
      action_config:
        entity: ""
        tap_action:
          action: more-info
        hold_action:
          action: none
        double_tap_action:
          action: none
range_info:
  - energy_level:
      entity: sensor.cupra_tavascan_state_of_charge
      icon: ""
    range_level:
      entity: sensor.cupra_tavascan_range_in_kilometers
      attribute: ""
    progress_color: "#48d126"
    charging_entity: ""