Home Assistant

The place to discuss everything else..
greg_s
Posts: 32
Joined: Mon Nov 08, 2021 8:57 pm

Post by greg_s »

anglefire wrote: Sun Nov 19, 2023 9:16 am More than happy to share the YAML for this. The only thing I haven't done yet, is the roof.
Yes please share the yaml config. I’ll likely get a chance to test out later this week.

anglefire
Posts: 77
Joined: Mon Dec 19, 2022 6:49 am
Location: Middle
Contact:

Post by anglefire »

Hopefully this works ok.

You need the graphical elements from the site I linked to - the only one that won't be there is the sunroof as I created that myself. I've attached the ones I use here - you may have to work out exactly where to put them, most go in /local/media/img/ but the one (Skoda_enyaq) goes in /local/media/
Enyaq.zip
(1.54 MiB) Downloaded 101 times
Replace Skoda_Serial with the reference from the skoda integration.

Code: Select all

square: false
columns: 1
type: grid
cards:
  - type: vertical-stack
    cards:
      - type: picture-elements
        elements:
          - type: conditional
            conditions:
              - entity: binary_sensor.Skoda_Serial_hood_closed
                state: 'on'
            elements:
              - type: image
                entity: binary_sensor.Skoda_Serial_hood_closed
                image: /local/media/img/enyaq-top.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
              - type: image
                entity: binary_sensor.Skoda_Serial_hood_closed
                image: /local/media/img/enyaq-hood.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
          - type: conditional
            conditions:
              - entity: binary_sensor.Skoda_Serial_door_closed_left_front
                state: 'on'
            elements:
              - type: image
                image: /local/media/img/enyaq-left.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
              - type: image
                image: /local/media/img/enyaq-driver-door.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
          - type: conditional
            conditions:
              - entity: binary_sensor.Skoda_Serial_door_closed_right_front
                state: 'on'
            elements:
              - type: image
                image: /local/media/img/enyaq-right.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
              - type: image
                entity: binary_sensor.Skoda_Serial_door_closed_right_front
                image: /local/media/img/enyaq-passenger-door.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
          - type: conditional
            conditions:
              - entity: binary_sensor.Skoda_Serial_door_closed_left_back
                state: 'on'
            elements:
              - type: image
                image: /local/media/img/enyaq-left.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
              - type: image
                entity: binary_sensor.Skoda_Serial_door_closed_left_back
                image: /local/media/img/enyaq-rear-left-door.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
          - type: conditional
            conditions:
              - entity: binary_sensor.Skoda_Serial_door_closed_right_back
                state: 'on'
            elements:
              - type: image
                image: /local/media/img/enyaq-right.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
              - type: image
                entity: binary_sensor.Skoda_Serial_door_closed_right_back
                image: /local/media/img/enyaq-rear-right-door.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
          - type: conditional
            conditions:
              - entity: binary_sensor.Skoda_Serial_window_closed_left_front
                state: 'on'
            elements:
              - type: image
                image: /local/media/img/enyaq-left.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
              - type: image
                image: /local/media/img/enyaq-driver-window.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
          - type: conditional
            conditions:
              - entity: binary_sensor.Skoda_Serial_window_closed_right_front
                state: 'on'
            elements:
              - type: image
                image: /local/media/img/enyaq-right.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
              - type: image
                entity: binary_sensor.Skoda_Serial_window_closed_right_front
                image: /local/media/img/enyaq-passenger-window.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
          - type: conditional
            conditions:
              - entity: binary_sensor.Skoda_Serial_window_closed_left_back
                state: 'on'
            elements:
              - type: image
                image: /local/media/img/enyaq-left.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
              - type: image
                entity: binary_sensor.Skoda_Serial_window_closed_left_back
                image: /local/media/img/enyaq-rear-left-window.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
          - type: conditional
            conditions:
              - entity: binary_sensor.Skoda_Serial_window_closed_right_back
                state: 'on'
            elements:
              - type: image
                image: /local/media/img/enyaq-right.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
              - type: image
                entity: binary_sensor.Skoda_Serial_window_closed_right_back
                image: /local/media/img/enyaq-rear-right-window.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
          - type: conditional
            conditions:
              - entity: binary_sensor.Skoda_Serial_trunk_closed
                state: 'on'
            elements:
              - type: image
                image: /local/media/img/enyaq-bottom.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
              - type: image
                entity: binary_sensor.Skoda_Serial_trunk_closed
                image: /local/media/img/enyaq-tailgate.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
          - type: conditional
            conditions:
              - entity: binary_sensor.Skoda_Serial_sunroof_closed
                state: 'on'
            elements:
              - type: image
                image: /local/media/img/enyaq-all.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
              - type: image
                entity: binary_sensor.Skoda_Serial_sunroof_closed
                image: /local/media/img/enyaq-sunroof.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
          - type: conditional
            conditions:
              - entity: lock.Skoda_Serial_door_locked
                state: unlocked
              - entity: binary_sensor.Skoda_Serial_door_closed_left_front
                state: 'off'
              - entity: binary_sensor.Skoda_Serial_door_closed_right_front
                state: 'off'
              - entity: binary_sensor.Skoda_Serial_door_closed_left_back
                state: 'off'
              - entity: binary_sensor.Skoda_Serial_door_closed_right_back
                state: 'off'
              - entity: binary_sensor.Skoda_Serial_window_closed_left_front
                state: 'off'
              - entity: binary_sensor.Skoda_Serial_window_closed_right_front
                state: 'off'
              - entity: binary_sensor.Skoda_Serial_window_closed_left_back
                state: 'off'
              - entity: binary_sensor.Skoda_Serial_window_closed_right_back
                state: 'off'
              - entity: binary_sensor.Skoda_Serial_hood_closed
                state: 'off'
              - entity: binary_sensor.Skoda_Serial_trunk_closed
                state: 'off'
              - entity: binary_sensor.Skoda_Serial_sunroof_closed
                state: 'off'
            elements:
              - type: image
                image: /local/media/img/enyaq-all.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
              - type: image
                image: /local/media/img/enyaq-lock.png
                style:
                  top: 50%
                  left: 50%
                  width: 100%
                filter: saturate(1)
                tap_action: none
        image: /local/media/img/enyaq2.png
      - type: horizontal-stack
        cards:
          - type: tile
            entity: lock.Skoda_Serial_door_locked
            name: Doors
            vertical: true
          - type: tile
            entity: device_tracker.Skoda_Serial_position
            name: Location
            vertical: true
          - type: tile
            entity: sensor.Skoda_Serial_battery_level
            vertical: true
            name: SoC
          - type: tile
            entity: binary_sensor.Skoda_Serial_parking_light
            name: Parking Lights
            vertical: true
      - type: horizontal-stack
        cards:
          - type: tile
            entity: sensor.Skoda_Serial_electric_range
            name: Electric Range
            vertical: true
          - type: tile
            entity: sensor.Skoda_Serial_last_connected
            name: last online
            vertical: true
          - type: tile
            entity: sensor.Skoda_Serial_odometer
            name: mileage
            vertical: true
  - type: vertical-stack
    cards:
      - type: horizontal-stack
        cards:
          - type: tile
            entity: switch.Skoda_Serial_charging
            name: charging status
            icon: mdi:ev-plug-ccs2
            show_entity_picture: false
            vertical: true
            tap_action:
              action: toggle
          - type: tile
            entity: binary_sensor.Skoda_Serial_charging_cable_connected
            name: charging cable connected
            vertical: true
          - type: tile
            entity: binary_sensor.Skoda_Serial_charging_cable_locked
            name: charging cable locked
            vertical: true
      - type: conditional
        conditions:
          - entity: switch.Skoda_Serial_charging
            state: 'on'
        card:
          type: entities
          entities:
            - entity: sensor.Skoda_Serial_charging_rate
              name: charging rate
            - entity: sensor.Skoda_Serial_charging_time_left
              name: charging time remaining
          state_color: true
          show_header_toggle: false
          title: Charging Information
      - type: entities
        entities:
          - entity: switch.Skoda_Serial_plug_auto_unlock
            name: Plug unlock after charging
          - entity: switch.Skoda_Serial_max_charge_current
            name: max. charging current
          - entity: switch.Skoda_Serial_electric_climatisation
            name: Airconditioning at unlock
        state_color: true
      - type: horizontal-stack
        cards:
          - type: tile
            entity: switch.Skoda_Serial_electric_climatisation
            name: Climatisation
          - type: tile
            entity: switch.Skoda_Serial_window_heater
            name: Window heating
      - type: conditional
        conditions:
          - entity: switch.Skoda_Serial_electric_climatisation
            state: 'on'
        card:
          type: horizontal-stack
          cards:
            - type: tile
              entity: sensor.Skoda_Serial_climatisation_target_temperature
              name: target temperature
            - type: tile
              entity: sensor.Skoda_Serial_climatisation_time_left
              name: time remaining
      - type: horizontal-stack
        cards:
          - type: tile
            entity: switch.Skoda_Serial_seat_heating_front_left
            name: Seatheating left
            vertical: true
          - type: tile
            entity: switch.Skoda_Serial_seat_heating_front_right
            name: Seatheating right
            vertical: true
  - type: vertical-stack
    cards:
      - show_state: true
        show_name: true
        camera_view: auto
        type: picture-entity
        image: /local/media/skoda_enyaq.png
        name: SoC
        entity: sensor.Skoda_Serial_battery_level
      - type: entities
        entities:
          - entity: switch.Skoda_Serial_departure_timer_1
            name: Timer 1
          - entity: switch.Skoda_Serial_departure_timer_2
            name: Timer 2
        title: Departure-Timer
        show_header_toggle: false
        state_color: true
      - type: gauge
        entity: sensor.Skoda_Serial_charging_power
        name: Charging-Power
        unit: W
        max: 200000

Post Reply

  • You may also be interested in...
    Replies
    Views
    Last post