Wäre es dir möglich den Yaml dazu hier einzustellen?
Machst du das über card-mod?
Allzeit gute Fahrt.
Sicher, kein Ding. An der Stelle nutze ich meine ich nur die mushroom cards. Das einzige Spannende, was ich geklaut hab, ist die Idee, Vertical und Horizontal Stacks zu nutzen, um mir mehr Flexibilität bezüglich der Anordnung zu geben. Alles andere (bis auf den Code-Teil) ist keine rocket science.
Lieben Gruß,
S.
type: vertical-stack
title: Carie
cards:
- type: horizontal-stack
cards:
- type: gauge
needle: true
entity: sensor.cupra_born_state_of_charge
severity:
green: 20
yellow: 10
red: 0
max: 100
min: 0
name: State of Charge
- type: gauge
entity: sensor.cupra_born_range_in_kilometers
needle: true
max: 550
severity:
green: 100
yellow: 30
red: 0
name: Range
- type: horizontal-stack
cards:
- type: gauge
entity: sensor.cupra_born_charge_power
name: Charging Power
min: 0
max: 185
needle: true
- type: gauge
entity: sensor.cupra_born_charge_rate
name: Charging Speed
min: 0
max: 400
needle: true
- type: horizontal-stack
cards:
- type: tile
entity: binary_sensor.cupra_born_plug_lock_state
vertical: false
name: Plug Lock State
hide_state: false
state_content:
- state
- last-changed
- type: tile
entity: sensor.cupra_born_remaining_charging_time
name: Remaining Charge Time
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
hold_action:
action: none
double_tap_action:
action: none
icon: mdi:ev-station
primary_info: state
icon_color: >
{% if is_state("sensor.cupra_born_charging_state", 'charging') %} red
{% elif is_state("sensor.cupra_born_charging_state",
'readyForCharging') %} green {% elif
is_state("sensor.cupra_born_charging_state", 'notReadyForCharging') %}
orange {% endif %}
primary: >
{% if is_state("sensor.cupra_born_charging_state", 'charging') %}
Charging {% elif is_state("sensor.cupra_born_charging_state",
'readyForCharging') %} Plugged in {% elif
is_state("sensor.cupra_born_charging_state", 'notReadyForCharging') %}
Not plugged in {%endif %}
- type: custom:mushroom-template-card
hold_action:
action: none
double_tap_action:
action: none
icon: >
{% if is_state("sensor.cupra_born_charge_type", 'ac') %}
mdi:current-ac {% elif is_state("sensor.cupra_born_charge_type", 'dc')
%} mdi:current-dc {% elif is_state("sensor.cupra_born_charge_type",
'invalid') %} mdi:ev-station {% endif %}
primary_info: state
icon_color: >
{% if is_state("sensor.cupra_born_charge_type", 'ac') %} red {% elif
is_state("sensor.cupra_born_charge_type", 'dc') %} red {% elif
is_state("sensor.cupra_born_charge_type", 'invalid') %} green {% endif
%}
primary: >
{% if is_state("sensor.cupra_born_charge_type", 'ac') %} AC {% elif
is_state("sensor.cupra_born_charge_type", 'dc') %} DC {% elif
is_state("sensor.cupra_born_charge_type", 'invalid') %} Not charging
{% endif %}
- type: custom:mushroom-number-card
display_mode: slider
name: Target Temperature
icon_color: green
entity: number.cupra_born_target_climate_temperature
icon: mdi:thermometer
- type: horizontal-stack
cards:
- type: tile
entity: button.cupra_born_start_climate
vertical: true
name: Start Climate
- type: tile
entity: button.cupra_born_stop_climate
vertical: true
name: Stop Climate
- type: horizontal-stack
cards:
- type: tile
entity: sensor.cupra_born_climatisation_state
vertical: true
name: Climatisation State
- type: horizontal-stack
cards:
- type: custom:mushroom-number-card
entity: number.cupra_born_target_state_of_charge
display_mode: slider
name: Charging Target
icon: mdi:battery
- type: horizontal-stack
cards:
- type: tile
entity: button.cupra_born_start_charging
vertical: true
name: Start Charging
- type: tile
entity: button.cupra_born_stop_charging
vertical: true
name: Stop Charging
- type: horizontal-stack
cards:
- type: tile
entity: button.cupra_born_toggle_ac_charge_speed
name: Set AC Charge Speed
- type: tile
entity: sensor.cupra_born_max_charge_current_ac
name: AC Charge Speed
Alles anzeigen