Several improvements to E's bedtime scheduling

This commit is contained in:
2024-05-23 17:07:23 -04:00
parent d29acd787b
commit ee53a35965
3 changed files with 59 additions and 33 deletions

View File

@ -5022,3 +5022,35 @@
tag: emma-climate
alias: Send AC notification
mode: restart
- id: '1716497196985'
alias: Emma Bedtime Rescheduler
description: Keeps Emma's bedtime up-to-date with reality
trigger:
- platform: state
entity_id:
- input_datetime.emma_awake_at
id: first-wake
alias: First Wake
- platform: state
entity_id:
- input_number.emma_bedtime_hours
id: hours-update
alias: Hours Update
- platform: state
entity_id:
- input_datetime.emma_up_from_nap
id: up-from-nap
alias: Up From Nap
condition:
- condition: state
entity_id: input_boolean.emma_sleeping
state: 'off'
- condition: state
entity_id: input_boolean.emma_scheduling_evening_ran
state: 'on'
action:
- service: script.emma_bedroom_scheduling_evening
metadata: {}
data: {}
alias: Run evening scheduling
mode: restart