Adding back in morning alarm
This commit is contained in:
parent
f094b1bbfa
commit
3cc4943860
|
@ -131,12 +131,14 @@ automation:
|
||||||
- id: skylar_morning_alarm_announcement
|
- id: skylar_morning_alarm_announcement
|
||||||
alias: skylar morning alarm announcement
|
alias: skylar morning alarm announcement
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
platform: template
|
||||||
at: '07:00:00'
|
value_template: "{{ states('sensor.time') == (state_attr('input_datetime.skylar_morning_report', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}"
|
||||||
condition:
|
condition:
|
||||||
condition: template
|
condition: template
|
||||||
value_template: '{{ states.calendar.skylar_school.attributes.offset_reached == True }}'
|
value_template: '{{ states.calendar.skylar_school.attributes.offset_reached == True }}'
|
||||||
action:
|
action:
|
||||||
|
- service: scene.turn_on
|
||||||
|
entity_id: scene.skylar_room_morning
|
||||||
- service: notify.alexa_media_skylar_s_bedroom
|
- service: notify.alexa_media_skylar_s_bedroom
|
||||||
data:
|
data:
|
||||||
message: Good Morning Skylar. Time to Rise and Shine.
|
message: Good Morning Skylar. Time to Rise and Shine.
|
||||||
|
@ -177,8 +179,8 @@ automation:
|
||||||
data_template:
|
data_template:
|
||||||
time: >
|
time: >
|
||||||
{% if states.calendar.skylar_school.attributes.offset_reached == True %}
|
{% if states.calendar.skylar_school.attributes.offset_reached == True %}
|
||||||
07:15
|
07:00
|
||||||
{% else %}
|
{% else %}
|
||||||
08:30
|
08:00
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue