diff --git a/templates/speech/daily_briefing.yaml b/templates/speech/daily_briefing.yaml index ae166b5..8fb2a63 100644 --- a/templates/speech/daily_briefing.yaml +++ b/templates/speech/daily_briefing.yaml @@ -272,7 +272,7 @@ Tina has work today. {% endif %} - {% if is_state('input_boolean.school_today', 'on') and state_attr('input_datetime.school_day_end', 'timestamp') < as_timestamp(now()) %} + {% if is_state('input_boolean.school_today', 'on') %} {% if is_state('sensor.school_start_days2go', '0') %} Today is the first day of school! There are {{ states('sensor.school_end_days2go') }} to go until the last day. {% else %} @@ -280,12 +280,18 @@ 'Colin has school today.', 'It is a school day. ' ] | random }} + {% if is_state('input_boolean.kallen_two_hour_delay','on') %} + 'But there is a two hour delay. ' + {% endif %} {% endif %} Pickup today will be at {{(state_attr('input_datetime.school_day_end', 'timestamp') | int | timestamp_custom('%I:%M %p', False)) }} {% if 'Early Release' in states('sensor.school_event') %} And It is early release! {% endif %} {% endif %} + {% if is_state('input_boolean.kallen_school_cancelled','on') %} + 'School has been cancelled for today. ' + {% endif %} {% if states.sensor.school_end_days2go.state | int <= 35 and states.sensor.school_end_days2go.state | int > 0 %} {{ [ 'Oh, and look at that.', 'For those trying to keep count. ', diff --git a/templates/speech/kallen_morning_briefing.yaml b/templates/speech/kallen_morning_briefing.yaml index b2b2580..8583f70 100644 --- a/templates/speech/kallen_morning_briefing.yaml +++ b/templates/speech/kallen_morning_briefing.yaml @@ -95,7 +95,11 @@ {%- endif %} {% endif %} {% if is_state('input_boolean.school_today', 'off') %} - And look at that. You do not have school today. + {% if is_state('input_boolean.kallen_school_cancelled','on') %} + "School is cancelled for today. " + {% else %} + "And look at that. You do not have school today. " + {% endif %} {{ [ 'Guess today would be a good day to clean your room.', 'You could always do some chores. HA, good one.', 'Want to play a nice game of chess? Sorry. I meant, want to play Beam NG?', diff --git a/templates/speech/kallen_school_status.yaml b/templates/speech/kallen_school_status.yaml index fc0ae71..ed5a5eb 100644 --- a/templates/speech/kallen_school_status.yaml +++ b/templates/speech/kallen_school_status.yaml @@ -10,6 +10,8 @@ {% else %} "You have school today, and it is running on time. " {% endif %} + {% elif is_state('input_boolean.kallen_school_cancelled','on') %} + "School has been cancelled for today! " {% else %} "You do not have school today. Enjoy your day off! " {% endif %} diff --git a/templates/speech/welcome_home.yaml b/templates/speech/welcome_home.yaml index fdfc519..9cc1961 100644 --- a/templates/speech/welcome_home.yaml +++ b/templates/speech/welcome_home.yaml @@ -32,8 +32,10 @@ 'I hope school was as boring, uh I mean exciting as ever! ', 'Hopefully your day at school was educational and fun! ', 'Do not forget to do your homework! ', - 'You must be glad that you school day is over! ' + 'You must be glad that your school day is over! ' ] | random }} + {% elif is_state('input_boolean.kallen_school_cancelled','on') %} + "I hope you are enjoying your free day off from school, Colin. " {% endif %}