Salut @yeoh
Ce sera plus ça :
type: entities
entities:
- entity: sensor.puissance_garage
type: custom:multiple-entity-row
name: Garage
icon: mdi:lightning-bolt
card_mod:
style:
hui-generic-entity-row $: |
state-badge {
{% if states('sensor.puissance_garage')|float > 1 %}
color: red;
{% else %}
color: green;
{% endif %}
}
tap_action:
action: toggle
toggle: true
entities:
- entity: sensor.puissance_garage
name: Puissance
styles:
font-size: 14px
- entity: sensor.consommation_garage
name: Consommation
unit: kWh
Si tu veux t’en sortir, je t’invite à regarder ces 2 liens :