initial commit
This commit is contained in:
8
configuration/sensor/template_light_on_number.yaml
Normal file
8
configuration/sensor/template_light_on_number.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
- platform: template
|
||||
sensors:
|
||||
number_light_on:
|
||||
friendly_name: "Lights ON"
|
||||
unit_of_measurement: light(s)
|
||||
value_template: >
|
||||
{{ states.light | rejectattr('attributes.color_mode', '==', 'onoff') | rejectattr('attributes.entity_id', 'defined') | selectattr('state', '==', 'on') | map(attribute='entity_id') | list | count }}
|
Reference in New Issue
Block a user