From 99f756814b8297d1322b4134cdffc11da0545af9 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sat, 27 May 2023 15:39:39 -0400 Subject: [PATCH] Temporary announcement additions for K's last day of elementary school --- custom_templates/status.jinja | 3 ++- templates/speech/kallen_nightly_briefing.yaml | 2 +- templates/speech/welcome_home.yaml | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/custom_templates/status.jinja b/custom_templates/status.jinja index ec7eadf..5c101a9 100644 --- a/custom_templates/status.jinja +++ b/custom_templates/status.jinja @@ -247,11 +247,12 @@ Tony does not have a stream scheduled today. The next scheduled stream is in {{ The school year ends in {{ custom_time('input_datetime.school_last_day','week,day') }}. {% endif %} {% if count_the_days('input_datetime.school_last_day') | int == 0 %} - Congratulations, today is the last day of school! Have an awesome day! + Congratulations, today is the last day of school! Have an awesome day! Additionally, congratulations on finishing your time in elementary school. This is an immense accomplishment. Onward and upward to better things, middle school starts this fall! {% endif %} {% if count_the_days('input_datetime.school_last_day') | int == -1 -%} Today is the first day of Summer Break! {%- endif %} + {% elif method == 'text' %} {% if is_state('input_boolean.kallen_school_today','on') %} {% if is_state('input_boolean.two_hour_delay','on') %} diff --git a/templates/speech/kallen_nightly_briefing.yaml b/templates/speech/kallen_nightly_briefing.yaml index 497fdca..dd51f0a 100644 --- a/templates/speech/kallen_nightly_briefing.yaml +++ b/templates/speech/kallen_nightly_briefing.yaml @@ -90,7 +90,7 @@ 'Until the last day of school.' ] | random }} {% elif count_the_days('input_datetime.school_last_day') | int == 0 -%} - Tomorrow is the first day of summer. Are you ready? + Tomorrow is the first day of summer. Are you ready? Additionally, congratulations on finishing your time in elementary school. This is an immense accomplishment. Onward and upward to better things, middle school starts this fall! {%- endif %} {{ [ 'I will turn on your bedroom lights and appropriate white noise device at bedtime.', 'I have executed the Pre bed routine for your room. Standby for bedtime protocol in two zero minutes.', diff --git a/templates/speech/welcome_home.yaml b/templates/speech/welcome_home.yaml index 4fccc75..0175b3c 100644 --- a/templates/speech/welcome_home.yaml +++ b/templates/speech/welcome_home.yaml @@ -50,6 +50,9 @@ {% 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 %} + {% if count_the_days('input_datetime.school_last_day') | int == 0 %} + "Congratulations, today is the last day of school! Have an awesome day! Additionally, congratulations on finishing your time in elementary school. This is an immense accomplishment. Onward and upward to better things, middle school starts this fall!" + {% endif %}

{% if is_state('sensor.anniversary_tony_s_birthday','0') %}