Ich hab gestern mal bisschen mit der Karte "rumgespielt". Tatsächlich sehr "flexibel" und mit vollständiger UI-Unterstützung. Allerdings leider auch nicht ganz intuitiv. Es brauchte einen Moment, zu verstehen, wie sie funktioniert. Also die Usability könnte etwas besser sein. Schwerwiegender finde ich, dass es zwar schön ist, dass Templates so zahlreich unterstützt werden, aber die Umsetzung ist zuweilen ziemlich "buggy". Ein Template, welches im Template-Editor einwandfrei funktioniert (und ich habe schon einige Templates geschrieben), funktioniert in der Karte leider nicht. Oder es funktioniert nur, wenn das Template "true" zurück gibt, bei "false" wird der Quellcode ausgegeben. Ich hab dann irgendwann aufgehört, aber war schon ziemlich weit gekommen:
Bildschirmfoto 2025-03-02 um 10.44.38.pngBildschirmfoto 2025-03-02 um 10.45.40.pngBildschirmfoto 2025-03-02 um 10.45.53.pngBildschirmfoto 2025-03-02 um 10.46.02.png
type: custom:vehicle-status-card
button_card:
- button:
primary: Reifendruck
notify: >
{% set vl = states('sensor.smart_reifendruck_fahrerseite_vorne') |
float(0) %}
{% set vr = states('sensor.smart_reifendruck_beifahrerseite_vorne') |
float(0) %}
{% set hl = states('sensor.smart_reifendruck_fahrerseite_hinten') |
float(0) %}
{% set hr = states('sensor.smart_reifendruck_beifahrerseite_hinten') |
float(0) %}
{{ vl > 2.4 && vr > 2.4 && hl > 2.4 && hr > 2.4 }}
secondary:
state_template: >-
{% set vl = states('sensor.smart_reifendruck_fahrerseite_vorne') |
float(0) %}
{{ vl > 2.4 }}
icon: mdi:car-tire-alert
custom_card: []
default_card:
- collapsed_items: false
items:
- entity: sun.sun
- entity: ensor.sun_next_dawn
- entity: sensor.sun_next_midnight
- entity: sensor.sun_next_noon
title: Default Card
- collapsed_items: true
items:
- entity: sun.sun
- entity: ensor.sun_next_dawn
- entity: sensor.sun_next_midnight
- entity: sensor.sun_next_noon
title: Collapsed Card
hide_button: false
button_action:
entity: ""
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
tire_card:
title: Reifendruck
front_left:
entity: sensor.smart_reifendruck_fahrerseite_vorne
name: " "
front_right:
entity: sensor.smart_reifendruck_beifahrerseite_vorne
name: " "
rear_left:
entity: sensor.smart_reifendruck_fahrerseite_hinten
name: " "
rear_right:
entity: sensor.smart_reifendruck_beifahrerseite_hinten
name: " "
horizontal: false
background: /api/image/serve/c043d63ce8f3bbf5703c132e0b521456/original
image_size: 100
value_size: 80
card_type: tire
button_type: default
- button:
primary: Klimatisieren
secondary:
state_template: Innenraum heizen / kühlen
icon: mdi:air-conditioner
button_type: default
card_type: custom
custom_card:
- type: thermostat
entity: climate.smart_vin_conditioning
features:
- style: dropdown
type: climate-hvac-modes
hvac_modes:
- heat_cool
- "off"
name: Klimatisierung
- type: tile
entity: select.smart_vin_conditioning_driver_seat
vertical: true
hide_state: true
name: Fahrersitz
features:
- type: select-options
- type: tile
entity: select.smart_vin_conditioning_passenger_seat
vertical: true
hide_state: true
name: Beifahrersitz
features:
- type: select-options
- type: tile
entity: select.smart_vin_conditioning_steering_wheel
vertical: true
hide_state: true
name: Lenkradheizung
features:
- type: select-options
default_card: []
hide_button: false
button_action: {}
entity: climate.smart_vin_conditioning
features:
- style: dropdown
type: climate-hvac-modes
hvac_modes:
- heat_cool
- "off"
name: Klimatisierung
- button:
icon: mdi:car-door
primary: Türen
secondary:
state_template: This is a new button
button_type: default
card_type: default
custom_card: []
default_card:
- collapsed_items: false
items:
- entity: sensor.smart_door_open_status_driver
name: Fahrerseite vorn
state_template: "{{ 'geschlossen' if states(config.entity) == '0' else 'offen' }}"
icon: mdi:car-door
- entity: sensor.smart_door_open_status_driver_rear
name: Fahrerseite hinten
state_template: "{{ 'geschlossen' if states(config.entity) == '0' else 'offen' }}"
- entity: sensor.smart_door_open_status_passenger
name: Beifahrerseite vorn
state_template: "{{ 'geschlossen' if states(config.entity) == '0' else 'offen' }}"
- entity: sensor.smart_door_open_status_passenger_rear
name: Beifahrerseite hinten
state_template: "{{ 'geschlossen' if states(config.entity) == '0' else 'offen' }}"
title: Türen
hide_button: false
button_action: {}
- button:
icon: mdi:new-box
primary: New Button
secondary:
state_template: This is a new button
button_type: default
card_type: custom
custom_card:
- entities:
- sensor.sun_next_dawn
- sensor.sun_next_midnight
- sensor.sun_next_noon
title: Custom Card
type: entities
default_card: []
hide_button: false
button_action: {}
- button:
icon: mdi:new-box
primary: New Button
secondary:
state_template: This is a new button
button_type: default
card_type: default
custom_card: []
default_card:
- collapsed_items: false
items:
- entity: sun.sun
- entity: ensor.sun_next_dawn
- entity: sensor.sun_next_midnight
- entity: sensor.sun_next_noon
title: Default Card
hide_button: false
- button:
icon: mdi:new-box
primary: New Button
secondary:
state_template: This is a new button
card_type: custom
custom_card:
- entities:
- sensor.sun_next_dawn
- sensor.sun_next_midnight
- sensor.sun_next_noon
title: Custom Card
type: entities
default_card: []
hide_button: false
layout_config:
button_grid:
rows: 2
columns: 2
swipe: true
hide:
button_notify: false
buttons: false
images: false
indicators: false
mini_map: false
range_info: false
map_address: false
card_name: false
theme_config:
mode: dark
theme: default
section_order:
- header_info
- images
- mini_map
- buttons
images_swipe:
max_height: 260
autoplay: false
loop: false
name: "Smart #3"
mini_map:
device_tracker: device_tracker.smart_none
enable_popup: false
map_height: 190
us_format: false
hours_to_show: 2
default_zoom: 17
theme_mode: auto
images:
- url: /api/image/serve/c0fef7ea16a6d294328853e0694689ec/original
title: SMART3.PNG
indicators:
single:
- entity: sensor.smart_12v_batterie_ladestand
icon: ""
attribute: ""
action_config:
entity: sensor.smart_12v_batterie_ladestand
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
- entity: sensor.smart_kilometerstand
icon: ""
action_config:
entity: sensor.smart_kilometerstand
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
visibility: ""
- entity: sensor.i3s_120_charging_end_time
icon: mdi:battery-clock
attribute: ""
action_config:
entity: sensor.i3s_120_charging_end_time
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
visibility: "{{ is_state('sensor.smart_ladezustand', 'charging') }}"
- entity: sensor.smart_letztes_daten_update
icon: ""
action_config:
entity: ""
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
state_template: >-
vor {{
relative_time(states['sensor.smart_letztes_daten_update'].last_changed |
default('unbekannt'))
|replace("hours","Stunden") |replace("hour","Stunde")
|replace("minutes","Minuten") |replace("minute","Minute")
|replace("seconds","Sekunden") |replace("second","Sekunde")
|replace("days","Tagen") |replace("day","Tag") }}
group: []
range_info:
- energy_level:
entity: sensor.smart_batterie
attribute: ""
icon: mdi:battery
range_level:
entity: sensor.smart_reichweite
attribute: ""
progress_color: "#db0045"
charging_entity: sensor.smart_ladegerat_angeschlossen
card_mod:
style:
vehicle-buttons-grid$:
vsc-button-single$: |
.grid-item {
background: transparent !important;
}
.: |
ha-card {
background: transparent !important;
}
Alles anzeigen