initial commit
This commit is contained in:
10
configuration/sensor/template_door_open_number.yaml
Normal file
10
configuration/sensor/template_door_open_number.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
- platform: template
|
||||
sensors:
|
||||
number_doors_open:
|
||||
friendly_name: "Open Doors"
|
||||
unit_of_measurement: door(s)
|
||||
value_template: >
|
||||
{{ label_entities(label_id('external')) | expand | selectattr('state', '==', 'on') | map(attribute='entity_id') | select('in', label_entities("door")) | list | count }}
|
||||
|
||||
# {{ states.binary_sensor | selectattr('object_id', 'match', 'door_.*') | selectattr('state', '==', 'on') | map(attribute='entity_id') | list | count }}
|
Reference in New Issue
Block a user