Ability to add temporary extra info to briefings
This commit is contained in:
@@ -52,6 +52,16 @@ input_select:
|
|||||||
- Common Areas
|
- Common Areas
|
||||||
icon: mdi:map-marker
|
icon: mdi:map-marker
|
||||||
|
|
||||||
|
input_text:
|
||||||
|
briefing_extras:
|
||||||
|
name: Briefing Extras
|
||||||
|
icon: mdi:plus
|
||||||
|
|
||||||
|
input_boolean:
|
||||||
|
briefing_extras:
|
||||||
|
name: Briefing Extras
|
||||||
|
icon: mdi:plus
|
||||||
|
|
||||||
################################
|
################################
|
||||||
# Announcment Automation - fires at the time of the above input_datetimes
|
# Announcment Automation - fires at the time of the above input_datetimes
|
||||||
################################
|
################################
|
||||||
|
|||||||
@@ -323,13 +323,18 @@
|
|||||||
Today is the first day of Summer Break!
|
Today is the first day of Summer Break!
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Around the house, there are currently {{ states.sensor.current_lights_on.state }} lights on.
|
Around the house, there are currently {{ states.sensor.current_lights_on.state }} lights on.
|
||||||
</p>
|
</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 -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -120,6 +120,11 @@
|
|||||||
It appears no traffic reports are needed today. Enjoy your day off!
|
It appears no traffic reports are needed today. Enjoy your day off!
|
||||||
{% endif %}
|
{% 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>
|
</p>
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|||||||
@@ -77,6 +77,12 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</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>
|
<p>
|
||||||
"This briefing is a work in progress. Stay tuned in the coming days for more updates! "
|
"This briefing is a work in progress. Stay tuned in the coming days for more updates! "
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -148,6 +148,12 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</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 -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
{# a macro that removes all newline characters, empty spaces, and returns formatted text #}
|
{# a macro that removes all newline characters, empty spaces, and returns formatted text #}
|
||||||
|
|||||||
Reference in New Issue
Block a user