From 77affe417e4cb8961b6526b34328d7326901c2e6 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 1 Sep 2022 14:06:45 -0400 Subject: [PATCH] Changed how the bedroom light is triggered when I go upstairs --- scripts.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts.yaml b/scripts.yaml index 123ac73..fdfc1b2 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -233,11 +233,12 @@ going_upstairs: text: 'Would you like me to shut down your computer?' event_id: 'actionable_notification_shutdown_computer' alexa_device: 'media_player.basement_echo_dot' - - delay: - hours: 0 - minutes: 2 - seconds: 0 - milliseconds: 0 + - wait_for_trigger: + - platform: state + entity_id: + - binary_sensor.upstairs_bathroom_motion + to: 'on' + timeout: 00:05:00 - service: input_select.select_option data: option: Side Nightlight