From e6216ee328946f2b436ae81027d647e415c6d0a9 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 29 Aug 2022 19:50:37 -0400 Subject: [PATCH] Information on lights, if after dark --- templates/speech/welcome_home.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/speech/welcome_home.yaml b/templates/speech/welcome_home.yaml index 868eaad..27a7641 100644 --- a/templates/speech/welcome_home.yaml +++ b/templates/speech/welcome_home.yaml @@ -79,6 +79,12 @@ "The first floor thermostat refuses to be my friend. I am very sad about this. I mean, who the hell is Honeywell anyway? "

+

+ {% if is_state('light.living_room_lights','on') %} + "Because it is getting dark, I have turned on the lights for you in the living room, dining room, and mud room. This makes for a total of {{ states.sensor.current_lights_on.state }} lights on. " + {% endif %} +

+ {%- endmacro -%} {# a macro that removes all newline characters, empty spaces, and returns formatted text #}