Continuing to slowly implement the intentions of #53
This commit is contained in:
@ -291,7 +291,7 @@
|
||||
"Tony will be streaming today. The studio is scheduled to go online at {{ (state_attr('input_datetime.tony_streaming_start_time','timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. "
|
||||
{% endif %}
|
||||
|
||||
{% if is_state('input_boolean.school_today', 'on') %}
|
||||
{% if is_state('input_boolean.kallen_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 %}
|
||||
@ -303,7 +303,7 @@
|
||||
'But there was a two hour delay. '
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<s>Pickup today will be at {{(state_attr('input_datetime.school_day_end', 'timestamp') | int | timestamp_custom('%I:%M %p', False)) }}</s>
|
||||
<s>Pickup today will be at {{(state_attr('input_datetime.kallen_school_day_end', 'timestamp') | int | timestamp_custom('%I:%M %p', False)) }}</s>
|
||||
{% if 'Early Release' in states('sensor.school_event') %}
|
||||
And It is early release!
|
||||
{% endif %}
|
||||
|
@ -25,7 +25,7 @@
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% if is_state('input_boolean.school_today', 'on') %}
|
||||
{% if is_state('input_boolean.kallen_school_today', 'on') %}
|
||||
{% if is_state('sensor.school_start_days2go', '0') %}
|
||||
Today is the first day of school!
|
||||
{% else %}
|
||||
@ -41,8 +41,8 @@
|
||||
{% if is_state('input_boolean.kallen_band_practice','on') %}
|
||||
'You have band practice this morning before school. '
|
||||
{% endif %}
|
||||
<s>School today starts at {{ (state_attr('input_datetime.school_day_start','timestamp') | int | timestamp_custom('%I:%M %p' , False)) }}</s>
|
||||
<s>Pickup today will be at {{(state_attr('input_datetime.school_day_end', 'timestamp') | int | timestamp_custom('%I:%M %p', False)) }}</s>
|
||||
<s>School today starts at {{ (state_attr('input_datetime.kallen_school_day_start','timestamp') | int | timestamp_custom('%I:%M %p' , False)) }}</s>
|
||||
<s>Pickup today will be at {{(state_attr('input_datetime.kallen_school_day_end', 'timestamp') | int | timestamp_custom('%I:%M %p', False)) }}</s>
|
||||
{% if 'Early Release' in states('sensor.school_event') %}
|
||||
And It is early dismissal today!
|
||||
{% endif %}
|
||||
@ -51,7 +51,7 @@
|
||||
{%- endif %}
|
||||
The lunch menu for today is {{ states('sensor.lunch_menu_items') }}
|
||||
{% endif %}
|
||||
{% if is_state('input_boolean.school_today', 'off') %}
|
||||
{% if is_state('input_boolean.kallen_school_today', 'off') %}
|
||||
{% if is_state('input_boolean.kallen_school_cancelled','on') %}
|
||||
"School is cancelled for today. "
|
||||
{% else %}
|
||||
@ -91,7 +91,7 @@
|
||||
There are only {{ states.sensor.spring_break_days2go.state }} days until Spring Break!
|
||||
{% endif %}
|
||||
|
||||
{% if is_state ('input_boolean.school_today', 'off') and is_state('sensor.pirateweather_icon', 'snow') %}
|
||||
{% if is_state ('input_boolean.kallen_school_today', 'off') and is_state('sensor.pirateweather_icon', 'snow') %}
|
||||
Do you wanna build a snowman? It is snowing!
|
||||
{% endif %}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
<p>
|
||||
"Hello Collin, "
|
||||
|
||||
{% if is_state('input_boolean.school_today','on') %}
|
||||
{% if is_state('input_boolean.kallen_school_today','on') %}
|
||||
{% if is_state('input_boolean.kallen_two_hour_delay','on') %}
|
||||
"You have school today, but there is currently a two hour delay. "
|
||||
{% else %}
|
||||
@ -16,15 +16,15 @@
|
||||
"You do not have school today. Enjoy your day off! "
|
||||
{% endif %}
|
||||
|
||||
{% if is_state('input_boolean.school_today','on') %}
|
||||
{% if is_state('input_boolean.kallen_school_today','on') %}
|
||||
{% if is_state('input_boolean.kallen_band_practice','on') %}
|
||||
"You have band practice this morning before school. "
|
||||
{% endif %}
|
||||
"Your school day will start at {{ (state_attr('input_datetime.school_day_start','timestamp') | int | timestamp_custom('%I:%M %p' , False)) }}. "
|
||||
{% if is_state('input_boolean.school_early_release','on') %}
|
||||
"Your school day will start at {{ (state_attr('input_datetime.kallen_school_day_start','timestamp') | int | timestamp_custom('%I:%M %p' , False)) }}. "
|
||||
{% if is_state('input_boolean.kallen_school_early_release','on') %}
|
||||
"There will be early dismissal today. "
|
||||
{% endif %}
|
||||
"Your school day will end at {{(state_attr('input_datetime.school_day_end', 'timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. "
|
||||
"Your school day will end at {{(state_attr('input_datetime.kallen_school_day_end', 'timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. "
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
|
@ -107,8 +107,8 @@
|
||||
</p>
|
||||
<p>
|
||||
|
||||
{% if is_state('input_boolean.school_today','on') and is_state('input_boolean.work_today','on') %}
|
||||
{% set diff = (state_attr('input_datetime.tina_workday_start','timestamp') - state_attr('input_datetime.school_day_start','timestamp')) %}
|
||||
{% if is_state('input_boolean.kallen_school_today','on') and is_state('input_boolean.work_today','on') %}
|
||||
{% set diff = (state_attr('input_datetime.tina_workday_start','timestamp') - state_attr('input_datetime.kallen_school_day_start','timestamp')) %}
|
||||
{%- if states.sensor.home_to_school.state|round > 12 %}
|
||||
Traffic to the school appears heavier than normal.
|
||||
{% else %}
|
||||
@ -130,7 +130,7 @@
|
||||
Traffic to Bob Evans is normal.
|
||||
{% endif %}
|
||||
Currently it will take {{states.sensor.home_to_bob_evans.state|round}} minutes to get to Bob Evans.
|
||||
{% elif is_state('input_boolean.school_today','on') %}
|
||||
{% elif is_state('input_boolean.kallen_school_today','on') %}
|
||||
{%- if states.sensor.home_to_school.state|round > 12 %}
|
||||
Traffic to the school appears heavier than normal.
|
||||
{% else %}
|
||||
|
@ -22,10 +22,10 @@
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% set endbefore = state_attr('input_datetime.school_day_end','timestamp') - 3600 %}
|
||||
{% set endafter = state_attr('input_datetime.school_day_end','timestamp') + 3600 %}
|
||||
{% set endbefore = state_attr('input_datetime.kallen_school_day_end','timestamp') - 3600 %}
|
||||
{% set endafter = state_attr('input_datetime.kallen_school_day_end','timestamp') + 3600 %}
|
||||
{% set current = ((now().hour * 60 + now().minute) * 60 ) %}
|
||||
{% if is_state('input_boolean.school_today_extended','on') and current > endbefore and current < endafter %}
|
||||
{% if is_state('input_boolean.kallen_school_today_extended','on') and current > endbefore and current < endafter %}
|
||||
"Welcome home Collin as well, "
|
||||
{{ [
|
||||
'I hope you had a great day at school! ',
|
||||
@ -151,8 +151,8 @@
|
||||
"Tina has work today. "
|
||||
{% endif %}
|
||||
{% if is_state('input_boolean.kallen_at_school','on') %}
|
||||
"Kallen is at school right now. His pickup time will be at {{ (state_attr('input_datetime.school_day_end','timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. "
|
||||
{% elif is_state('input_boolean.school_today','on') %}
|
||||
"Kallen is at school right now. His pickup time will be at {{ (state_attr('input_datetime.kallen_school_day_end','timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. "
|
||||
{% elif is_state('input_boolean.kallen_school_today','on') %}
|
||||
"Kallen has school today. "
|
||||
{% endif %}
|
||||
</p>
|
||||
|
Reference in New Issue
Block a user