From 6e3d740b80490a411f031ebd7d54877b8613917f Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 20 Oct 2022 20:19:32 -0400 Subject: [PATCH] Change to differentiate between night lighting and cloudy lighting --- templates/speech/welcome_home.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/speech/welcome_home.yaml b/templates/speech/welcome_home.yaml index 67f4d44..088d8da 100644 --- a/templates/speech/welcome_home.yaml +++ b/templates/speech/welcome_home.yaml @@ -126,7 +126,11 @@

{% 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. " + {% if is_state('input_boolean.early_night_mode','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. " + {% else %} + "Due to less than optimal sunlight, 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 %} {% endif %}