From 3d1c1601db8684be66f0c5f087ae185c21fe6607 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 2 Jan 2023 13:04:12 -0500 Subject: [PATCH] Use Polly voice for Alexa actionable notifications --- packages/alexa.yaml | 3 ++- scripts.yaml | 12 +++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/packages/alexa.yaml b/packages/alexa.yaml index b30bf64..52d91cf 100644 --- a/packages/alexa.yaml +++ b/packages/alexa.yaml @@ -27,7 +27,8 @@ automation: action: - service: script.activate_alexa_actionable_notification data_template: - text: 'The furnace room light is on, should I turn it off?' + 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' diff --git a/scripts.yaml b/scripts.yaml index 9f7be81..5c6b258 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -85,7 +85,8 @@ give_me_darkness: then: - service: script.activate_alexa_actionable_notification data_template: - text: Would you like me to arm the security system? + text: Would you like me to arm + the security system? event_id: actionable_notification_night_security_arm alexa_device: '{{ states(''sensor.last_alexa'') }}' alias: Ask to arm security @@ -279,11 +280,15 @@ going_upstairs: - service: media_player.turn_off target: entity_id: media_player.basement_tv + data: {} - service: script.kallen_desktop_shutdown + data: {} - service: script.asus_laptop_shutdown + data: {} - service: script.activate_alexa_actionable_notification data_template: - text: Would you like me to shut down your computer? + text: Would you like me to shut down + your computer? event_id: actionable_notification_shutdown_computer alexa_device: media_player.basement_echo_dot - wait_for_trigger: @@ -304,7 +309,8 @@ basement_on: sequence: - service: script.activate_alexa_actionable_notification data_template: - text: Would you like me to turn on the computer for Collin? + text: Would you like me to turn on + the computer for Collin? event_id: actionable_notification_kallen_computer_on alexa_device: '{{ states(''sensor.last_alexa'') }}' - service: light.turn_on