Fix template syntax

This commit is contained in:
2020-06-07 22:03:31 +03:00
parent c95b9b4748
commit 64890f9cf9
+1 -1
View File
@@ -107,7 +107,7 @@ sensor:
- binary_sensor.kitchen_window - binary_sensor.kitchen_window
friendly_name: Open window count friendly_name: Open window count
value_template: >- 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 }} {{ entityStates | selectattr('state', 'eq', 'on') | list | count | int }}
# #