Morning/evening scheduling for E's bedroom
This commit is contained in:
@ -116,7 +116,7 @@ automation:
|
|||||||
alias: Master Bedroom Scheduling
|
alias: Master Bedroom Scheduling
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: '04:02:10'
|
at: '04:02:00'
|
||||||
id: mrbedroom-morning
|
id: mrbedroom-morning
|
||||||
- platform: time
|
- platform: time
|
||||||
at: '16:00:20'
|
at: '16:00:20'
|
||||||
@ -133,18 +133,26 @@ automation:
|
|||||||
then:
|
then:
|
||||||
- service: script.master_bedroom_scheduling_evening
|
- service: script.master_bedroom_scheduling_evening
|
||||||
|
|
||||||
# Eventually will make this an actual morning/evening automation. For now, both triggers do the same thing.
|
|
||||||
- id: a69d3d36-09d6-4ef3-a245-c564c7cb577c
|
- id: a69d3d36-09d6-4ef3-a245-c564c7cb577c
|
||||||
alias: Emma Bedroom Scheduling
|
alias: Emma Bedroom Scheduling
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: '04:02:00'
|
at: '04:02:10'
|
||||||
id: emma-morning
|
id: emma-morning
|
||||||
- platform: time
|
- platform: time
|
||||||
at: '16:00:30'
|
at: '16:00:30'
|
||||||
id: emma-evening
|
id: emma-evening
|
||||||
action:
|
action:
|
||||||
- service: script.emma_bedroom_scheduling
|
- if:
|
||||||
|
- condition: trigger
|
||||||
|
id: emma-morning
|
||||||
|
then:
|
||||||
|
- service: script.emma_bedroom_scheduling_morning
|
||||||
|
- if:
|
||||||
|
- condition: trigger
|
||||||
|
id: emma-evening
|
||||||
|
then:
|
||||||
|
- service: script.emma_bedroom_scheduling_evening
|
||||||
|
|
||||||
script:
|
script:
|
||||||
kallen_scheduling_morning:
|
kallen_scheduling_morning:
|
||||||
@ -408,7 +416,15 @@ script:
|
|||||||
N/A
|
N/A
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
emma_bedroom_scheduling:
|
# 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:
|
||||||
|
sequence:
|
||||||
|
- service: input_datetime.set_datetime
|
||||||
|
entity_id: input_datetime.emma_bedtime
|
||||||
|
data_template:
|
||||||
|
time: "{{ states('input_datetime.master_bedroom_wakeup') }}"
|
||||||
|
|
||||||
|
emma_bedroom_scheduling_evening:
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.emma_bedtime
|
entity_id: input_datetime.emma_bedtime
|
||||||
|
Reference in New Issue
Block a user