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 #}