diff --git a/config/packages/modules/climate/windows.yaml b/config/packages/modules/climate/windows.yaml index 8f9adc3..bfbc3de 100644 --- a/config/packages/modules/climate/windows.yaml +++ b/config/packages/modules/climate/windows.yaml @@ -107,7 +107,7 @@ sensor: - binary_sensor.kitchen_window friendly_name: Open window count value_template: >- - {{ set entityStates = states | selectattr('entity_id', 'in', state_attr('group.all_windows', 'entity_id')) %} + {% set entityStates = states | selectattr('entity_id', 'in', state_attr('group.all_windows', 'entity_id')) %} {{ entityStates | selectattr('state', 'eq', 'on') | list | count | int }} #