Close #183
This commit is contained in:
@ -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,19 +2619,28 @@
|
|||||||
'
|
'
|
||||||
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:
|
||||||
- service: input_datetime.set_datetime
|
- if:
|
||||||
target:
|
- condition: state
|
||||||
entity_id: input_datetime.tony_morning_meds_notify
|
entity_id: input_boolean.tony_morning_meds_taken
|
||||||
data:
|
state: 'off'
|
||||||
datetime: '{% from ''time.jinja'' import set_datetime %} {{ set_datetime(0,1)
|
alias: If I haven't already taken my meds
|
||||||
}}
|
then:
|
||||||
|
- service: input_datetime.set_datetime
|
||||||
|
target:
|
||||||
|
entity_id: input_datetime.tony_morning_meds_notify
|
||||||
|
data:
|
||||||
|
datetime: '{% from ''time.jinja'' import set_datetime %} {{ set_datetime(0,1)
|
||||||
|
}}
|
||||||
|
|
||||||
'
|
'
|
||||||
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:
|
||||||
|
Reference in New Issue
Block a user