Liebes Forum,
ich möchte gerne, dass eine Karte nur unter bestimmten Bedinungen angezeigt wird. Das funktioniert natürlich problemlos, allerdings sind in meinem Dashboard in der Ansichtsart “Abschnitte” diese Bedingungskarten immer zweispaltig, obwohl ich sie gerne nur einspaltig haben möchte.
Gibt es da einen Hack?
Vielen Dank und einen schönen Start ins Wochenende.
Pack die Karte in einen horizontalen Stapel.
Dann darfst da aber halt auch nur eine reinpacken.
So wird sie auf auf beide „Plätze“ gedehnt.
Das funktioniert leider nicht. Mit einem Horizontal-Stack ist sie immer noch auf beide Spalten ausgedehnt. Oder habe ich das falsch verstanden?
type: horizontal-stack
cards:
- type: conditional
conditions:
- condition: state
entity: media_player.192_168_178_37
state: unavailable
card:
type: tile
entity: input_button.wake_svbvuplusduo2
name: WakeOnLAN VU+ Duo2
hide_state: true
Hier mal einer von meinen:
type: horizontal-stack
cards:
- type: conditional
conditions:
- condition: or
conditions:
- condition: state
entity: switch.beleuchtung_teich
state: 'on'
- condition: state
entity: switch.pool_lichterkette_socket_1
state: 'on'
- condition: state
entity: switch.sitzecke_himmel_socket_1
state: 'on'
card:
type: custom:mushroom-chips-card
chips:
- type: template
tap_action:
action: navigate
navigation_path: /dashboard-macbook/beleuchtung
hold_action:
action: none
double_tap_action:
action: none
icon: mdi:lightbulb
icon_color: red
content: ''
- type: conditional
conditions:
- condition: or
conditions:
- condition: state
entity: switch.pumpe
state: 'on'
card:
type: custom:mushroom-chips-card
chips:
- type: template
tap_action:
action: navigate
navigation_path: /dashboard-macbook/wasserversorgung
hold_action:
action: none
double_tap_action:
action: none
icon: mdi:water-pump
icon_color: red
content: ''
- type: horizontal-stack
cards:
- type: conditional
conditions:
- condition: or
conditions:
- condition: state
entity: switch.boiler
state: 'on'
card:
type: custom:mushroom-chips-card
chips:
- type: template
tap_action:
action: navigate
navigation_path: /dashboard-macbook/wasserversorgung
hold_action:
action: none
double_tap_action:
action: none
icon: mdi:water-boiler
icon_color: red
content: ''
- type: horizontal-stack
cards:
- type: conditional
conditions:
- condition: or
conditions:
- condition: state
entity: switch.teich_skimmer_socket_1
state: 'on'
card:
type: custom:mushroom-chips-card
chips:
- type: template
tap_action:
action: navigate
navigation_path: /dashboard-macbook/teich
hold_action:
action: none
double_tap_action:
action: none
icon: mdi:filter
icon_color: red
content: ''
- type: conditional
conditions:
- condition: or
conditions:
- condition: state
entity: switch.teich_wasserfall_socket_1
state: 'on'
card:
type: custom:mushroom-chips-card
chips:
- type: template
tap_action:
action: navigate
navigation_path: /dashboard-macbook/teich
hold_action:
action: none
double_tap_action:
action: none
icon: mdi:waterfall
icon_color: red
content: ''
Das ist der rechts mir den roten Symbolen.