Par contre chez moi ça marche en markdown avec ton template alors vérifie bien ton indentation:
type: custom:vertical-stack-in-card
cards:
- type: markdown
content: >-
{{ (as_timestamp(now()) -
as_timestamp(states.input_boolean.tarif_rouge.last_changed | default(0)) |
int ) | timestamp_custom("%H heures %M min", false)}}
- type: markdown
content: >-
{{ (as_timestamp(now()) -
as_timestamp(states.input_boolean.tarif_rouge.last_changed | default(0)) |
int ) | timestamp_custom("%H heures %M min", false)}}
- type: custom:mushroom-chips-card
chips:
- type: template
content: >-
{{ (as_timestamp(now())
-as_timestamp(states.input_boolean.tarif_rouge.last_changed |
default(0)) | int) | timestamp_custom("%H heures %M min", false)}}
alignment: center
- type: custom:mushroom-chips-card
chips:
- type: template
content: >-
{{ (as_timestamp(now())
-as_timestamp(states.input_boolean.tarif_rouge.last_changed |
default(0)) | int) | timestamp_custom("%H heures %M min", false)}}
alignment: center