From cb8160fddabf63c7f1cd39b2ac4eb5290a1ede0a Mon Sep 17 00:00:00 2001
From: Tony Stork
Around the house, there are currently {{ states.sensor.current_lights_on.state }} lights on.
++ {% if is_state('input_boolean.briefing_extras','on') %} + "And now we have the following extra information to pass along. {{ states('input_text.briefing_extras') }} " + {% endif %} +
+ {%- endmacro -%} diff --git a/templates/speech/morning_briefing.yaml b/templates/speech/morning_briefing.yaml index ee308de..8676531 100644 --- a/templates/speech/morning_briefing.yaml +++ b/templates/speech/morning_briefing.yaml @@ -120,6 +120,11 @@ It appears no traffic reports are needed today. Enjoy your day off! {% endif %} ++ {% if is_state('input_boolean.briefing_extras','on') %} + "And now we have the following extra information to pass along. {{ states('input_text.briefing_extras') }} " + {% endif %} +
{%- endmacro -%} diff --git a/templates/speech/nightly_briefing.yaml b/templates/speech/nightly_briefing.yaml index 155c342..e8da93a 100644 --- a/templates/speech/nightly_briefing.yaml +++ b/templates/speech/nightly_briefing.yaml @@ -77,6 +77,12 @@ {% endif %} ++ {% if is_state('input_boolean.briefing_extras','on') %} + "And now we have the following extra information to pass along. {{ states('input_text.briefing_extras') }} " + {% endif %} +
+"This briefing is a work in progress. Stay tuned in the coming days for more updates! "
diff --git a/templates/speech/welcome_home.yaml b/templates/speech/welcome_home.yaml index 088d8da..1aea55e 100644 --- a/templates/speech/welcome_home.yaml +++ b/templates/speech/welcome_home.yaml @@ -148,6 +148,12 @@ {% endif %} ++ {% if is_state('input_boolean.briefing_extras','on') %} + "And now we have the following extra information to pass along. {{ states('input_text.briefing_extras') }} " + {% endif %} +
+ {%- endmacro -%} {# a macro that removes all newline characters, empty spaces, and returns formatted text #}