Fixed a rather confusing name #53
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
kallen_school:
|
||||
kallen_at_school:
|
||||
name: Kallen at School
|
||||
icon: mdi:school
|
||||
good_morning_report:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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. "
|
||||
|
Reference in New Issue
Block a user