Accommodations for new Sonoff plugs

This commit is contained in:
2022-11-28 23:42:32 -05:00
parent d6d5996139
commit 8c21d20e24
2 changed files with 7 additions and 2 deletions

View File

@ -136,6 +136,8 @@ influxdb:
- fan - fan
- person - person
entity_globs: entity_globs:
- sensor.*power
- sensor.*energy
- sensor.*energy_sensor - sensor.*energy_sensor
- sensor.*power_sensor - sensor.*power_sensor
- sensor.*cpu* - sensor.*cpu*

View File

@ -69,7 +69,9 @@
states.light.master_bedroom_closet, states.light.master_bedroom_closet,
states.light.kallen_bedroom_wall, states.light.kallen_bedroom_wall,
states.light.kallen_bedroom_overhead, states.light.kallen_bedroom_overhead,
states.light.emma_bedroom_light states.light.emma_bedroom_light,
states.light.front_porch_light,
states.light.front_window_christmas_lights
] %} ] %}
{{ lights | selectattr('state','eq','on') | list | count }} {{ lights | selectattr('state','eq','on') | list | count }}
first_floor_lights_on: first_floor_lights_on:
@ -134,7 +136,8 @@
unit_of_measurement: 'on' unit_of_measurement: 'on'
value_template: >- value_template: >-
{% set lights = [ {% set lights = [
states.light.front_porch_light states.light.front_porch_light,
states.light.front_window_christmas_lights
] %} ] %}
{{ lights | selectattr('state','eq','on') | list | count }} {{ lights | selectattr('state','eq','on') | list | count }}
climate_devices_installed: climate_devices_installed: