Added sensor for how many lights are currently on
This commit is contained in:
@ -40,6 +40,31 @@
|
|||||||
friendly_name: 'Number of NA Entities'
|
friendly_name: 'Number of NA Entities'
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{{ states | selectattr('state', 'eq', 'unavailable') | map(attribute='entity_id') | list | count }}
|
{{ states | selectattr('state', 'eq', 'unavailable') | map(attribute='entity_id') | list | count }}
|
||||||
|
current_lights_on:
|
||||||
|
friendly_name: Current Lights On
|
||||||
|
unit_of_measurement: 'on'
|
||||||
|
value_template: >-
|
||||||
|
{% set lights = [
|
||||||
|
states.light.living_room_color_1,
|
||||||
|
states.light.living_room_color_2,
|
||||||
|
states.light.dining_room_lamp,
|
||||||
|
states.light.mud_room_overhead,
|
||||||
|
states.light.downstairs_bathroom_left,
|
||||||
|
states.light.downstairs_bathroom_right,
|
||||||
|
states.light.basement_tall_lamp,
|
||||||
|
states.light.basement_short_lamp,
|
||||||
|
states.light.basement_stairwell,
|
||||||
|
states.light.basement_led_strip_1,
|
||||||
|
states.light.hallway_overhead,
|
||||||
|
states.light.upstairs_bathroom_left,
|
||||||
|
states.light.upstairs_bathroom_right,
|
||||||
|
states.light.upstairs_bathroom_wall,
|
||||||
|
states.light.master_bedroom_front,
|
||||||
|
states.light.master_bedroom_side,
|
||||||
|
states.light.kallen_bedroom_light,
|
||||||
|
states.light.nursery_light
|
||||||
|
] %}
|
||||||
|
{{ lights | selectattr('state','eq','on') | list | count }}
|
||||||
|
|
||||||
- platform: uptime
|
- platform: uptime
|
||||||
name: Last Boot
|
name: Last Boot
|
||||||
|
Reference in New Issue
Block a user