Fixed a rather confusing name #53
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
kallen_school:
|
kallen_at_school:
|
||||||
name: Kallen at School
|
name: Kallen at School
|
||||||
icon: mdi:school
|
icon: mdi:school
|
||||||
good_morning_report:
|
good_morning_report:
|
||||||
|
@ -119,15 +119,15 @@ sensor:
|
|||||||
friendly_name: "Kallen"
|
friendly_name: "Kallen"
|
||||||
unit_of_measurement: ""
|
unit_of_measurement: ""
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% if is_state('input_boolean.kallen_school', 'on') %}
|
{% if is_state('input_boolean.kallen_at_school', 'on') %}
|
||||||
School
|
School
|
||||||
{% elif is_state('calendar.kallen_events', 'on') %}
|
{% elif is_state('calendar.kallen_events', 'on') %}
|
||||||
{{ state_attr('calendar.kallen_events', 'message') }}
|
{{ 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
|
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') }}
|
{{ 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') }}
|
{{ states('sensor.tony_location') }}
|
||||||
{% else %}
|
{% else %}
|
||||||
Unknown
|
Unknown
|
||||||
@ -231,14 +231,14 @@ automation:
|
|||||||
- thu
|
- thu
|
||||||
- fri
|
- fri
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.kallen_school
|
entity_id: input_boolean.kallen_at_school
|
||||||
state: "off"
|
state: "off"
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.school_today
|
entity_id: input_boolean.school_today
|
||||||
state: "on"
|
state: "on"
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
entity_id: input_boolean.kallen_school
|
entity_id: input_boolean.kallen_at_school
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
entity_id: input_boolean.kallen_awake
|
entity_id: input_boolean.kallen_awake
|
||||||
- service: script.text_alert
|
- service: script.text_alert
|
||||||
@ -274,11 +274,11 @@ automation:
|
|||||||
- thu
|
- thu
|
||||||
- fri
|
- fri
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.kallen_school
|
entity_id: input_boolean.kallen_at_school
|
||||||
state: "on"
|
state: "on"
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
entity_id: input_boolean.kallen_school
|
entity_id: input_boolean.kallen_at_school
|
||||||
- service: script.text_alert
|
- service: script.text_alert
|
||||||
data:
|
data:
|
||||||
who: parents
|
who: parents
|
||||||
|
@ -324,7 +324,7 @@ automation:
|
|||||||
- input_boolean.school_today
|
- input_boolean.school_today
|
||||||
- input_boolean.school_early_release
|
- input_boolean.school_early_release
|
||||||
- input_boolean.school_today_extended
|
- input_boolean.school_today_extended
|
||||||
- input_boolean.kallen_school
|
- input_boolean.kallen_at_school
|
||||||
- input_boolean.kallen_band_practice
|
- input_boolean.kallen_band_practice
|
||||||
- delay:
|
- delay:
|
||||||
hours: 0
|
hours: 0
|
||||||
|
@ -515,7 +515,7 @@ freeze_cleanup:
|
|||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.school_today
|
- input_boolean.school_today
|
||||||
- input_boolean.school_today_extended
|
- input_boolean.school_today_extended
|
||||||
- input_boolean.kallen_school
|
- input_boolean.kallen_at_school
|
||||||
else:
|
else:
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
data: {}
|
data: {}
|
||||||
@ -523,7 +523,7 @@ freeze_cleanup:
|
|||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.school_today
|
- input_boolean.school_today
|
||||||
- input_boolean.school_today_extended
|
- input_boolean.school_today_extended
|
||||||
- input_boolean.kallen_school
|
- input_boolean.kallen_at_school
|
||||||
- if:
|
- if:
|
||||||
- condition: time
|
- condition: time
|
||||||
before: input_datetime.audible_notification_on
|
before: input_datetime.audible_notification_on
|
||||||
|
@ -150,7 +150,7 @@
|
|||||||
{% elif is_state('input_boolean.work_today','on') %}
|
{% elif is_state('input_boolean.work_today','on') %}
|
||||||
"Tina has work today. "
|
"Tina has work today. "
|
||||||
{% endif %}
|
{% 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)) }}. "
|
"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') %}
|
{% elif is_state('input_boolean.school_today','on') %}
|
||||||
"Kallen has school today. "
|
"Kallen has school today. "
|
||||||
|
Reference in New Issue
Block a user