Hi, i’m trying to count the shutters that are closed and those that are open, but the count remains at 0
These are the sensors created
- platform: template
sensors:
cover_zona_giorno_open:
friendly_name: "Tapparelle Zona Girono"
icon_template: "mdi:window-shutter-open"
value_template: "{{ expand('group.cover_zona_giorno') | selectattr('state', 'eq', 'open') | list | count }}"
- platform: template
sensors:
cover_zona_notte_open:
friendly_name: "Tapparelle Zona Notte"
icon_template: "mdi:window-shutter-open"
value_template: "{{ expand('group.cover_zona_notte') | selectattr('state', 'eq', 'open') | list | count }}"
these are the values I receive