mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-15 12:34:42 +00:00
Fix template syntax
This commit is contained in:
@@ -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 }}
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user