School cancel and delay entities back to generalized form

No need for them to be individualized since all schools in the same district follow the same calls...
This commit is contained in:
2023-03-09 18:07:14 -05:00
parent 7494c8957d
commit f5b8390ec1
6 changed files with 20 additions and 20 deletions

View File

@ -322,7 +322,7 @@
'Collin has school today.',
'It is a school day. '
] | random }}
{% if is_state('input_boolean.kallen_two_hour_delay','on') %}
{% if is_state('input_boolean.two_hour_delay','on') %}
'But there was a two hour delay. '
{% endif %}
{% endif %}
@ -331,7 +331,7 @@
And It is early release!
{% endif %}
{% endif %}
{% if is_state('input_boolean.kallen_school_cancelled','on') %}
{% if is_state('input_boolean.school_cancelled','on') %}
'School has been cancelled for today. '
{% endif %}
{% if states.sensor.thanksgiving_break_days2go.state | int <= 14 and states.sensor.thanksgiving_break_days2go.state | int > 0 %}

View File

@ -55,7 +55,7 @@
'Today, you get to attend your favorite place. Just kidding. It is a school day. ',
] | random }}
{% endif %}
{% if is_state('input_boolean.kallen_two_hour_delay','on') %}
{% if is_state('input_boolean.two_hour_delay','on') %}
{{ [
'School will be starting two hours late today, as you are likely already aware. ',
'Your school superintendant has decided to sleep in this morning. He also decided to let you do the same. What a guy! ',
@ -99,7 +99,7 @@
] | random }} {{ states('sensor.kallen_lunch_menu_items') }}.
{% endif %}
{% if is_state('input_boolean.kallen_school_today', 'off') %}
{% if is_state('input_boolean.kallen_school_cancelled','on') %}
{% if is_state('input_boolean.school_cancelled','on') %}
{{ [
"It turns out you will not be attending school today after all. ",
"The school has decided not to open today. ",

View File

@ -5,12 +5,12 @@
"Hello Collin, "
{% if is_state('input_boolean.kallen_school_today','on') %}
{% if is_state('input_boolean.kallen_two_hour_delay','on') %}
{% if is_state('input_boolean.two_hour_delay','on') %}
"You have school today, but there is currently a two hour delay. "
{% else %}
"You have school today, and it is running on time. "
{% endif %}
{% elif is_state('input_boolean.kallen_school_cancelled','on') %}
{% elif is_state('input_boolean.school_cancelled','on') %}
"School has been cancelled for today! Enjoy the unexpected day off! "
{% else %}
"You do not have school today. Enjoy your day off! "

View File

@ -43,7 +43,7 @@
'You did not achieve eighth position this morning, did you? ',
] | random }}
{% endif %}
{% elif is_state('input_boolean.kallen_school_cancelled','on') and is_state('person.kallen_stork','home') %}
{% elif is_state('input_boolean.school_cancelled','on') and is_state('person.kallen_stork','home') %}
"I hope you are enjoying your free day off from school, Collin. "
{% endif %}
</p>