From 27a4e41a633e654957728742d5cbd698488e914d Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 7 Jul 2022 17:26:17 -0400 Subject: [PATCH] Decided to keep those test automations after all --- packages/alexa.yaml | 52 ++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/packages/alexa.yaml b/packages/alexa.yaml index e3eac53..1c6611a 100644 --- a/packages/alexa.yaml +++ b/packages/alexa.yaml @@ -16,34 +16,32 @@ intent_script: text: "Scene is set to {{ Scene }}" automation: - # Examples for testing + - id: 31169983-7a5d-4533-a5f7-172a36339931 + alias: Furnace Room Light Reminder + trigger: + platform: state + entity_id: light.furnace_room_overhead + to: "on" + for: + minutes: 15 + action: + - service: script.activate_alexa_actionable_notification + data_template: + text: 'The furnace room light is on, should I turn it off?' + event_id: 'actionable_notification_furnace_room_light_on' + alexa_device: 'media_player.basement_echo_dot' - # - id: 31169983-7a5d-4533-a5f7-172a36339931 - # alias: Furnace Room Light Reminder - # trigger: - # platform: state - # entity_id: light.furnace_room_overhead - # to: "on" - # for: - # seconds: 5 - # action: - # - service: script.activate_alexa_actionable_notification - # data_template: - # text: 'The furnace room light is on, should I turn it off?' - # event_id: 'actionable_notification_furnace_room_light_on' - # alexa_device: 'media_player.basement_echo_dot' - - # - id: 28a97594-eba9-4bcc-afa4-c161b87fa065 - # alias: Turn off Furnace Room Light via Actionable Notification - # trigger: - # platform: event - # event_type: alexa_actionable_notification - # event_data: - # event_id: actionable_notification_furnace_room_light_on - # event_response_type: ResponseYes - # action: - # - service: light.turn_off - # entity_id: light.furnace_room_overhead + - id: 28a97594-eba9-4bcc-afa4-c161b87fa065 + alias: Turn off Furnace Room Light via Actionable Notification + trigger: + platform: event + event_type: alexa_actionable_notification + event_data: + event_id: actionable_notification_furnace_room_light_on + event_response_type: ResponseYes + action: + - service: light.turn_off + entity_id: light.furnace_room_overhead script: activate_alexa_actionable_notification: