This commit is contained in:
2023-12-11 14:20:42 -05:00
parent 2c73db94d3
commit 62aa1b7515

View File

@ -2506,13 +2506,20 @@
alias: Night Taken alias: Night Taken
from: 'off' from: 'off'
to: 'on' to: 'on'
- platform: state - alias: Sleep Off
platform: state
entity_id: entity_id:
- input_boolean.master_bedroom_sleeping - input_boolean.master_bedroom_sleeping
id: sleep-off id: sleep-off
alias: Sleep Off
from: 'on' from: 'on'
to: 'off' to: 'off'
- platform: state
entity_id:
- input_boolean.tony_awake
from: 'off'
to: 'on'
id: awake-on
alias: Awake On
- platform: state - platform: state
entity_id: entity_id:
- input_number.tony_afternoon_meds_interval - input_number.tony_afternoon_meds_interval
@ -2612,10 +2619,18 @@
' '
alias: Set time night meds were taken alias: Set time night meds were taken
- conditions: - conditions:
- condition: trigger - alias: Wakeup
id: sleep-off condition: trigger
alias: Sleep Off id:
- sleep-off
- awake-on
sequence: sequence:
- if:
- condition: state
entity_id: input_boolean.tony_morning_meds_taken
state: 'off'
alias: If I haven't already taken my meds
then:
- service: input_datetime.set_datetime - service: input_datetime.set_datetime
target: target:
entity_id: input_datetime.tony_morning_meds_notify entity_id: input_datetime.tony_morning_meds_notify
@ -2625,6 +2640,7 @@
' '
alias: Set time to start notifying for morning meds alias: Set time to start notifying for morning meds
alias: Set morning meds notification time
- conditions: - conditions:
- condition: trigger - condition: trigger
id: id: