From 97ab110ee18a151ba1c35e9b0616deed38a9aab0 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 31 Jan 2023 19:55:55 -0500 Subject: [PATCH] Fixed a rather confusing name #53 --- input_boolean.yaml | 2 +- packages/presence.yaml | 16 ++++++++-------- packages/school.yaml | 2 +- scripts.yaml | 4 ++-- templates/speech/welcome_home.yaml | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/input_boolean.yaml b/input_boolean.yaml index 8f41581..8119854 100644 --- a/input_boolean.yaml +++ b/input_boolean.yaml @@ -1,4 +1,4 @@ -kallen_school: +kallen_at_school: name: Kallen at School icon: mdi:school good_morning_report: diff --git a/packages/presence.yaml b/packages/presence.yaml index bbff717..4b63d43 100644 --- a/packages/presence.yaml +++ b/packages/presence.yaml @@ -119,15 +119,15 @@ sensor: friendly_name: "Kallen" unit_of_measurement: "" value_template: >- - {% if is_state('input_boolean.kallen_school', 'on') %} + {% if is_state('input_boolean.kallen_at_school', 'on') %} School {% elif is_state('calendar.kallen_events', 'on') %} {{ state_attr('calendar.kallen_events', 'message') }} - {%- elif is_state('person.tony_stork', 'home') and is_state('person.christina_stork', 'home') and is_state('input_boolean.kallen_school', 'off')%} + {%- elif is_state('person.tony_stork', 'home') and is_state('person.christina_stork', 'home') and is_state('input_boolean.kallen_at_school', 'off')%} Home - {%- elif is_state('person.tony_stork', 'Hospital') and is_state('input_boolean.kallen_school', 'off')%} + {%- elif is_state('person.tony_stork', 'Hospital') and is_state('input_boolean.kallen_at_school', 'off')%} {{ states('sensor.tina_location') }} - {%- elif is_state('person.christina_stork', 'Bob Evans') and is_state('input_boolean.kallen_school', 'off')%} + {%- elif is_state('person.christina_stork', 'Bob Evans') and is_state('input_boolean.kallen_at_school', 'off')%} {{ states('sensor.tony_location') }} {% else %} Unknown @@ -231,14 +231,14 @@ automation: - thu - fri - condition: state - entity_id: input_boolean.kallen_school + entity_id: input_boolean.kallen_at_school state: "off" - condition: state entity_id: input_boolean.school_today state: "on" action: - service: input_boolean.turn_on - entity_id: input_boolean.kallen_school + entity_id: input_boolean.kallen_at_school - service: input_boolean.turn_on entity_id: input_boolean.kallen_awake - service: script.text_alert @@ -274,11 +274,11 @@ automation: - thu - fri - condition: state - entity_id: input_boolean.kallen_school + entity_id: input_boolean.kallen_at_school state: "on" action: - service: input_boolean.turn_off - entity_id: input_boolean.kallen_school + entity_id: input_boolean.kallen_at_school - service: script.text_alert data: who: parents diff --git a/packages/school.yaml b/packages/school.yaml index b2c8375..3e9b638 100644 --- a/packages/school.yaml +++ b/packages/school.yaml @@ -324,7 +324,7 @@ automation: - input_boolean.school_today - input_boolean.school_early_release - input_boolean.school_today_extended - - input_boolean.kallen_school + - input_boolean.kallen_at_school - input_boolean.kallen_band_practice - delay: hours: 0 diff --git a/scripts.yaml b/scripts.yaml index fc842ba..9f7d8d9 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -515,7 +515,7 @@ freeze_cleanup: entity_id: - input_boolean.school_today - input_boolean.school_today_extended - - input_boolean.kallen_school + - input_boolean.kallen_at_school else: - service: input_boolean.turn_off data: {} @@ -523,7 +523,7 @@ freeze_cleanup: entity_id: - input_boolean.school_today - input_boolean.school_today_extended - - input_boolean.kallen_school + - input_boolean.kallen_at_school - if: - condition: time before: input_datetime.audible_notification_on diff --git a/templates/speech/welcome_home.yaml b/templates/speech/welcome_home.yaml index c0a4f25..7213fd5 100644 --- a/templates/speech/welcome_home.yaml +++ b/templates/speech/welcome_home.yaml @@ -150,7 +150,7 @@ {% elif is_state('input_boolean.work_today','on') %} "Tina has work today. " {% endif %} - {% if is_state('input_boolean.kallen_school','on') %} + {% 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 has school today. "