Ability to add temporary extra info to briefings

This commit is contained in:
2022-10-20 20:19:52 -04:00
parent 6e3d740b80
commit cb8160fdda
5 changed files with 33 additions and 1 deletions

View File

@ -323,13 +323,18 @@
Today is the first day of Summer Break!
{%- endif %}
{% endif %}
</p>
<p>
Around the house, there are currently {{ states.sensor.current_lights_on.state }} lights on.
</p>
<p>
{% 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 %}
</p>
{%- endmacro -%}

View File

@ -120,6 +120,11 @@
It appears no traffic reports are needed today. Enjoy your day off!
{% endif %}
<p>
{% 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 %}
</p>
</p>
{%- endmacro -%}

View File

@ -77,6 +77,12 @@
{% endif %}
</p>
<p>
{% 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 %}
</p>
<p>
"This briefing is a work in progress. Stay tuned in the coming days for more updates! "
</p>

View File

@ -148,6 +148,12 @@
{% endif %}
</p>
<p>
{% 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 %}
</p>
{%- endmacro -%}
{# a macro that removes all newline characters, empty spaces, and returns formatted text #}