Alternate pickup from school for K

Same
This commit is contained in:
2023-04-19 12:39:40 -04:00
parent a59b02cb3f
commit b86ff39c79
4 changed files with 28 additions and 6 deletions

View File

@ -79,6 +79,11 @@ input_boolean:
name: Emma Bedroom Climate Override name: Emma Bedroom Climate Override
icon: mdi:plus-circle-outline icon: mdi:plus-circle-outline
input_text:
kallen_pickup:
name: Kallen Pickup
icon: mdi:car
################################################ ################################################
# Current order of operations is as follows: # # Current order of operations is as follows: #
# # # #
@ -417,7 +422,9 @@ script:
data: data:
time: > time: >
{% if is_state('input_boolean.kallen_school_today','on') %} {% if is_state('input_boolean.kallen_school_today','on') %}
{% if is_state('input_boolean.kallen_school_early_release','on') %} {% if is_state('input_boolean.kallen_alternate_pickup','on') %}
15:00
{% elif is_state('input_boolean.kallen_school_early_release','on') %}
13:15 13:15
{% else %} {% else %}
14:15 14:15
@ -500,7 +507,9 @@ script:
data: data:
time: > time: >
{% if is_state('input_boolean.kallen_school_today','on') %} {% if is_state('input_boolean.kallen_school_today','on') %}
{% if is_state('input_boolean.kallen_school_early_release','on') %} {% if is_state('input_boolean.kallen_alternate_pickup','on') %}
14:30
{% elif is_state('input_boolean.kallen_school_early_release','on') %}
12:30 12:30
{% else %} {% else %}
13:30 13:30
@ -581,10 +590,12 @@ script:
target: target:
entity_id: input_boolean.master_bedroom_scheduling_evening_ran entity_id: input_boolean.master_bedroom_scheduling_evening_ran
# For now, this just ties her wakeup time to the master bedroom wakeup time. In the future this will have more conditions and be independent of other rooms.
emma_bedroom_scheduling_morning: emma_bedroom_scheduling_morning:
alias: 'Emma Bedroom Scheduling Morning' alias: 'Emma Bedroom Scheduling Morning'
sequence: sequence:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.emma_has_napped
- if: - if:
- condition: state - condition: state
entity_id: input_boolean.emma_wakeup_override entity_id: input_boolean.emma_wakeup_override

View File

@ -23,6 +23,9 @@ input_boolean:
kallen_band_practice: kallen_band_practice:
name: Kallen Band Practice name: Kallen Band Practice
icon: mdi:trumpet icon: mdi:trumpet
kallen_alternate_pickup:
name: Kallen Alternate Pickup
icon: mdi:car
input_datetime: input_datetime:
school_first_day: school_first_day:
@ -450,6 +453,7 @@ script:
- input_boolean.kallen_school_today - input_boolean.kallen_school_today
- input_boolean.two_hour_delay - input_boolean.two_hour_delay
- input_boolean.school_cancelled - input_boolean.school_cancelled
- input_boolean.kallen_alternate_pickup
kallen_school_reset_late: kallen_school_reset_late:
alias: 'Kallen School Reset Late' alias: 'Kallen School Reset Late'

View File

@ -301,9 +301,13 @@
'But there was a two hour delay. ' 'But there was a two hour delay. '
{% endif %} {% endif %}
{% endif %} {% endif %}
<s>Pickup today will be at {{(state_attr('input_datetime.kallen_school_day_end', 'timestamp') | int | timestamp_custom('%I:%M %p', False)) }}</s> {% if is_state('input_boolean.kallen_alternate_pickup','on') %}
{% if is_state('input_boolean.kallen_school_early_release','on') %} {{ states('input_text.kallen_pickup') }} will be picking Collin up from school today.
And It is early release! {% else %}
<s>Pickup today will be at {{ state_attr('input_datetime.kallen_school_day_end', 'timestamp') | int | timestamp_custom('%I:%M %p', False) }}</s>
{% if is_state('input_boolean.kallen_school_early_release','on') %}
And It is early release!
{% endif %}
{% endif %} {% endif %}
{% if states('sensor.windows_open') | int > 0 %} {% if states('sensor.windows_open') | int > 0 %}
'I detect that there are windows open. Make sure you close them before you leave, or else the security system will not arm. ' 'I detect that there are windows open. Make sure you close them before you leave, or else the security system will not arm. '

View File

@ -89,6 +89,9 @@
{% endif %} {% endif %}
<s>School today starts at {{ (state_attr('input_datetime.kallen_school_day_start','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> <s>Pickup today will be at {{(state_attr('input_datetime.kallen_school_day_end', 'timestamp') | int | timestamp_custom('%I:%M %p', False)) }}</s>
{% if is_state('input_boolean.kallen_alternate_pickup','on') %}
Today, you will be picked up from school by {{ states('input_text.kallen_pickup') }}.
{% endif %}
{% if states.sensor.school_end_days2go.state | int == 0 -%} {% if states.sensor.school_end_days2go.state | int == 0 -%}
But today is the last day of School! But today is the last day of School!
{%- endif %} {%- endif %}