From e0f778bdebd64651599f813d0422234b5709d32d Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 24 Jan 2024 19:57:03 -0500 Subject: [PATCH] Fix meds getting reset after I nap --- automations.yaml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/automations.yaml b/automations.yaml index ad74e8d..add3425 100644 --- a/automations.yaml +++ b/automations.yaml @@ -2455,13 +2455,16 @@ alias: Night Taken from: 'off' to: 'on' - - platform: state - entity_id: - - input_boolean.tony_awake - from: 'off' - to: 'on' - id: awake-on - alias: Awake On + - platform: event + event_type: wakeup_event + event_data: + who: tony + type: wakeup + context: + user_id: + - c3909d27048140729f002aaef0391775 + alias: Wakeup + id: wakeup - platform: state entity_id: - input_number.tony_afternoon_meds_interval @@ -2574,7 +2577,7 @@ - alias: Wakeup condition: trigger id: - - awake-on + - wakeup sequence: - if: - condition: state