initial commit
This commit is contained in:
8
configuration/sensor/template_window_open_number.yaml
Normal file
8
configuration/sensor/template_window_open_number.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
- platform: template
|
||||
sensors:
|
||||
number_windows_open:
|
||||
friendly_name: "Windows Open"
|
||||
unit_of_measurement: window(s)
|
||||
value_template: >
|
||||
{{ states.binary_sensor | selectattr('object_id', 'match', 'window_.*') | selectattr('state', '==', 'on') | map(attribute='entity_id') | list | count }}
|
Reference in New Issue
Block a user