Custom carte cover de mushroom / template

Bon et bien j’ai pu obtenir ceci

avec ceci :

type: custom:mushroom-template-card
primary: Volets de la maison
multiline_secondary: true
secondary: >-
  {% set all = expand('cover.vr_maison'|lower) -%} {% set positions = all |
  map(attribute='attributes.current_position')|list-%} {% set moving = all |
  selectattr('state', 'in', ['open','closed'])|list|count -%} {% set open =  
  positions | reject("!=",100) |list |count -%} {% set closed = positions |  
  reject("!=",0) |list |count -%} {% set other = positions|list|count - open -  
  closed -%} Fermés = {{ closed }} / Partiels = {{ other }} / Ouverts = {{ open
  }} {% if moving >0 -%} {% endif %}
icon: mdi:window-shutter
icon_color: green
badge_icon: ''
layout: horizontal
fill_container: true

Par contre dès que je mets ceci (suppression de la partie moving), ça plante :
image

type: custom:mushroom-template-card
primary: Volets de la maison
multiline_secondary: true
secondary: >-
  {% set all = expand('cover.vr_maison'|lower) -%} {% set positions = all |
  map(attribute='attributes.current_position')|list-%}  {% set open =  
  positions | reject("!=",100) |list |count -%} {% set closed = positions |  
  reject("!=",0) |list |count -%} {% set other = positions|list|count - open -  
  closed -%} Fermés = {{ closed }} / Partiels = {{ other }} / Ouverts = {{ open
  }}  {% endif %}
icon: mdi:window-shutter
icon_color: green
badge_icon: ''
layout: horizontal
fill_container: true
1 « J'aime »