Ability to add temporary extra info to K's briefings

This commit is contained in:
2022-10-20 20:24:06 -04:00
parent cb8160fdda
commit 0d2b55db17
3 changed files with 20 additions and 0 deletions

View File

@ -56,11 +56,17 @@ input_text:
briefing_extras:
name: Briefing Extras
icon: mdi:plus
kallen_briefing_extras:
name: Kallen Briefing Extras
icon: mdi:plus
input_boolean:
briefing_extras:
name: Briefing Extras
icon: mdi:plus
kallen_briefing_extras:
name: Kallen Briefing Extras
icon: mdi:plus
################################
# Announcment Automation - fires at the time of the above input_datetimes

View File

@ -120,6 +120,13 @@
{%- endif %}
</p>
<p>
{% if is_state('input_boolean.kallen_briefing_extras','on') %}
"And now we have the following extra information to pass along. {{ states('input_text.kallen_briefing_extras') }} "
{% endif %}
</p>
{%- endmacro -%}
{# a macro that removes all newline characters, empty spaces, and returns formatted text #}

View File

@ -70,6 +70,13 @@
'I will prepare your bedroom shortly.'
] | random }}
</p>
<p>
{% if is_state('input_boolean.kallen_briefing_extras','on') %}
"And now we have the following extra information to pass along. {{ states('input_text.kallen_briefing_extras') }} "
{% endif %}
</p>
{%- endmacro -%}