New announcement for leaving the house

This commit is contained in:
2022-12-14 15:39:49 -05:00
parent 2202813c00
commit d6fe5ba212
2 changed files with 21 additions and 0 deletions

View File

@ -312,6 +312,13 @@ script:
who: 'everywhere'
call_dinner_is_ready: 1
we_are_leaving:
sequence:
- service: script.status_annc
data_template:
who: 'everywhere'
call_we_are_leaving: 1
welcome_home:
sequence:
- condition: state

View File

@ -1004,6 +1004,16 @@ script:
</p>
{% endmacro %}
{% macro we_are_leaving %}
<p>
{{ [
'Everyone please convene on the first floor, we are preparing to leave the house.',
'If everyone could make their way to the first floor, that would be great. We have places to go!',
'Attention all family members. We have errands to run. Please meet on the first floor.'
] | random }}
</p>
{% endmacro %}
{% macro lightning_alert() %}
{{ [
'I have detected lightning within 20 miles of our house.',
@ -1148,6 +1158,10 @@ script:
{{ time_for_bed() }}
{% endif %}
{% if call_we_are_leaving == 1 %}
{{ we_are_leaving() }}
{% endif %}
{% if call_ha_started == 1 %}
{{ ha_started() }}
{% endif %}