From 64890f9cf966c3e6c0cde0e14ed3168a467061c3 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Sun, 7 Jun 2020 22:03:31 +0300 Subject: [PATCH] Fix template syntax --- config/packages/modules/climate/windows.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }} #