Salut @jerome6994
Essaies ça :
- type: custom:mushroom-template-card
primary: PC Tiny
secondary: >-
🔌{{states('sensor.pc_ch_parents_tiny_power')}}W
⚡{{states('sensor.pc_ch_parents_tiny_energy')}}kW
multiline_secondary: true
icon: |
{% set pc_power = states('sensor.pc_ch_parents_tiny_power') | int %}
{% if pc_power > 0 %}
mdi:power-plug
{% else %}
mdi:power-plug-off
{% endif %}
entity: switch.pc_ch_parents_tiny
icon_color: |-
{% set pc_power = states('sensor.pc_ch_parents_tiny_power') | int %}
{% if pc_power > 0 %}
amber
{% else %}
grey
{% endif %}
fill_container: true
layout: horizontal
tap_action:
action: more-info
double_tap_action:
action: toggle
hold_action:
action: navigate
navigation_path: ch-parents
card_mod:
style: |
:host {
--mush-icon-size: 86px;
height: 76px;
margin-left: -26px !important;
}
ha-card {
box-shadow: none;
--card-primary-font-size: 14px;
--card-secondary-font-size: 12px;
}
card_mod:
style: |
ha-card {
height: 76px;
}
Ca semble fonctionner chez moi avec juste la ligne suivante en plus dans la partie « secondary » :
multiline_secondary: true