Add support for K's new after school program

This commit is contained in:
2023-10-13 19:29:40 -04:00
parent e5f31a6383
commit 6eadb395e1
7 changed files with 51 additions and 3 deletions

View File

@ -91,6 +91,9 @@
{% if is_state('binary_sensor.raining','on') %}
It appears to be raining right now, so you might get wet on your way to school.
{% endif %}
{% if is_state('input_boolean.kallen_btb','on') %}
You have Beyond The Bells today after school.
{% endif %}
{% if is_state('input_boolean.kallen_alternate_pickup','on') %}
Today, you will be picked up from school by {{ states('input_text.kallen_pickup') }}.
{% elif is_state('input_boolean.work_today','off') %}

View File

@ -19,6 +19,12 @@
'Because you have to get up early tomorrow for school.',
'Because you want to be ready for school tomorrow.'
] | random }}
{% if is_state('binary_sensor.kallen_btb_tomorrow','on') %}
{{ [ 'You have Beyond The Bells tomorrow after school. ',
'You will be staying a little later after school tomorrow to further your learning endeavors. ',
'Tomorrow is a BTB day. '
] | random }}
{% endif %}
{% else %}
{% set month=states("sensor.date").split('-')[1] | int %}
{%- if is_state('input_boolean.school_in_session', 'off') -%}

View File

@ -23,6 +23,9 @@
{% if is_state('input_boolean.kallen_school_early_release','on') %}
"There will be early dismissal today. "
{% endif %}
{% if is_state('input_boolean.kallen_btb','on') %}
"You have Beyond The Bells today after school. "
{% endif %}
"Your school day will end at {{ input_datetime_read('input_datetime.kallen_school_day_end') }}. "
{% endif %}
</p>

View File

@ -41,6 +41,13 @@
'Do not forget to do your homework! ',
'You must be glad that your school day is over! '
] | random }}
{% if is_state('input_boolean.kallen_btb','on') %}
{{ [
'I hope you enjoyed BTB today. ',
'I bet you are exhausted after a couple of extra hours at school. ',
'It is my sincere hope that your extra learning today was enjoyed to the fullest! '
] | random }}
{% endif %}
{% 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 %}