vertical-stack-in-card sans image de fond
unknown
yaml
a year ago
1.6 kB
28
Indexable
type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-template-card
icon: mdi:desk
icon_color: |
{% if is_state(entity, 'on') %}
#03A9F4
{% else %}
grey
{% endif %}
primary: Bureau
secondary: '{{ states(''sensor.thermometre_bureau_temperature'') }}°C'
layout: horizontal
tap_action:
action: toggle
double_tap_action:
action: navigate
navigation_path: ''
hold_action:
action: toggle
badge_icon: ''
badge_color: |+
entity: light.lampe_bureau
- type: custom:mushroom-chips-card
chips:
- type: template
entity: light.lampe_bureau
tap_action:
action: toggle
icon: mdi:lightbulb
hold_action:
action: toggle
icon_color: |-
{% if is_state(entity, 'on') %}
orange
{% else %}
grey
{% endif %}
- type: template
entity: switch.prise_pc_dorian
icon_color: |-
{% if is_state(entity, 'on') %}
orange
{% else %}
grey
{% endif %}
icon: mdi:power-plug
- type: template
entity: switch.prise_cumulus
icon: mdi:water-boiler
icon_color: |-
{% if is_state(entity, 'on') %}
orange
{% else %}
grey
{% endif %}
alignment: end
card_mod:
style:
style: |
ha-card {
padding-top: 0px;
margin-top: -8px;
padding-bottom: 8px;
padding-left: 8px;
padding-right: 8px;
}
Editor is loading...
Leave a Comment