Start pestering me about my meds when I actually wake up, don't wait

This commit is contained in:
2023-08-28 12:19:47 -04:00
parent 5187bf8551
commit 3214c1c460

View File

@ -74,6 +74,10 @@ automation:
entity_id: input_boolean.tony_night_meds_taken
to: 'on'
id: boolean-night
- platform: state
entity_id: input_boolean.master_bedroom_sleeping
to: 'off'
id: sleep-off
action:
- choose:
- conditions:
@ -134,6 +138,23 @@ automation:
message: have been taken
entity_id: input_boolean.tony_night_meds_taken
domain: input_boolean
- conditions:
- condition: trigger
id: sleep-off
sequence:
- 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) }}
- service: logbook.log
data:
name: Tony Day Meds
message: notification scheduled
entity_id: input_boolean.tony_day_meds_taken
domain: input_boolean
- id: 77f33070-4405-41b6-84c4-05b4f3697199
alias: Tony Stream Today