> {# Kallen School Status #} {% from 'formatting.jinja' import cleanup %} {%- macro getReport() -%} {% from 'time.jinja' import input_datetime_read %}

"Hello Collin, " {% if is_state('input_boolean.kallen_school_today','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.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! " {% endif %} {% if is_state('input_boolean.kallen_school_today','on') %} "Your school day will start at {{ input_datetime_read('input_datetime.kallen_school_day_start') }}. " {% 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 %}

{%- endmacro -%} {{- cleanup(getReport()) -}}