Bonjour,
J’ai un petit soucis de présentation sur mon dashboard.
sur une carte mushroom, j’aimerai aligner 4 « icones » horizontalement mais je n’y arrive pas !
si quelqu’un pouvait me dire ou j’ai foiré, svp ?
voici ce que ça me donne avec le code
type: horizontal-stack
cards:
- type: vertical-stack
cards:
- type: custom:mushroom-template-card
primary: garage
secondary: ""
icon: |
{% if is_state('binary_sensor.ipx_porte_garage', 'on') %}
mdi:garage-open-variant
{% else %}
mdi:garage-variant
{% endif %}
icon_color: |
{% if is_state('binary_sensor.ipx_porte_garage','on') %}
red
{% else %}
green
{% endif %}
entity: binary_sensor.ipx_porte_garage
tap_action:
action: none
- type: custom:mushroom-template-card
primary: portail
secondary: ""
icon: |
{% if is_state('binary_sensor.portail', 'on') %}
mdi:gate-open
{% else %}
mdi:gate
{% endif %}
icon_color: |
{% if is_state('binary_sensor.portail','on') %}
red
{% else %}
green
{% endif %}
entity: binary_sensor.portail
tap_action:
action: call-service
service: switch.turn_on
target:
entity_id: switch.ipx_ouverture_portail
- type: custom:mushroom-template-card
primary: alarme
secondary: ""
icon: |
{% if is_state('binary_sensor.alarme_active', 'on') %}
mdi:shield-lock
{% else %}
mdi:shield-home-outline
{% endif %}
icon_color: |
{% if is_state('binary_sensor.alarme_active','on') %}
red
{% else %}
green
{% endif %}
entity: binary_sensor.alarme_active
tap_action:
action: none
- type: custom:mushroom-template-card
primary: portillon
secondary: ""
icon: |
{% if is_state('binary_sensor.ipx800_i6', 'on') %}
mdi:gate-alert
{% else %}
mdi:gate-arrow-left
{% endif %}
icon_color: |
{% if is_state('binary_sensor.ipx800_i6','on') %}
red
{% else %}
green
{% endif %}
entity: binary_sensor.portillon
tap_action:
action: none
data: {}