From 5364b8290e85c6c5f3e09a4a9fb25764b52b6c38 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 11 May 2022 19:19:17 -0400 Subject: [PATCH] Added outdoor lights on sensor for the hell of it --- sensors/house_stats.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sensors/house_stats.yaml b/sensors/house_stats.yaml index 9f98b94..01dc216 100644 --- a/sensors/house_stats.yaml +++ b/sensors/house_stats.yaml @@ -114,6 +114,14 @@ states.fan.master_bedroom_air_conditioner ] %} {{ fans | selectattr('state','eq','on') | list | count }} + current_outdoor_lights_on: + friendly_name: Current Outdoor Lights On + unit_of_measurement: 'on' + value_template: >- + {% set lights = [ + states.light.front_porch_light + ] %} + {{ lights | selectattr('state','eq','on') | list | count }} - platform: uptime name: Last Boot