Use Polly voice for Alexa actionable notifications
This commit is contained in:
@ -27,7 +27,8 @@ automation:
|
|||||||
action:
|
action:
|
||||||
- service: script.activate_alexa_actionable_notification
|
- service: script.activate_alexa_actionable_notification
|
||||||
data_template:
|
data_template:
|
||||||
text: 'The furnace room light is on, should I turn it off?'
|
text: >-
|
||||||
|
<voice name='Brian'><prosody rate='150%'>The furnace room light is on, should I turn it off?</prosody></voice>
|
||||||
event_id: 'actionable_notification_furnace_room_light_on'
|
event_id: 'actionable_notification_furnace_room_light_on'
|
||||||
alexa_device: 'media_player.basement_echo_dot'
|
alexa_device: 'media_player.basement_echo_dot'
|
||||||
|
|
||||||
|
12
scripts.yaml
12
scripts.yaml
@ -85,7 +85,8 @@ give_me_darkness:
|
|||||||
then:
|
then:
|
||||||
- service: script.activate_alexa_actionable_notification
|
- service: script.activate_alexa_actionable_notification
|
||||||
data_template:
|
data_template:
|
||||||
text: Would you like me to arm the security system?
|
text: <voice name='Brian'><prosody rate='150%'>Would you like me to arm
|
||||||
|
the security system?</prosody></voice>
|
||||||
event_id: actionable_notification_night_security_arm
|
event_id: actionable_notification_night_security_arm
|
||||||
alexa_device: '{{ states(''sensor.last_alexa'') }}'
|
alexa_device: '{{ states(''sensor.last_alexa'') }}'
|
||||||
alias: Ask to arm security
|
alias: Ask to arm security
|
||||||
@ -279,11 +280,15 @@ going_upstairs:
|
|||||||
- service: media_player.turn_off
|
- service: media_player.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: media_player.basement_tv
|
entity_id: media_player.basement_tv
|
||||||
|
data: {}
|
||||||
- service: script.kallen_desktop_shutdown
|
- service: script.kallen_desktop_shutdown
|
||||||
|
data: {}
|
||||||
- service: script.asus_laptop_shutdown
|
- service: script.asus_laptop_shutdown
|
||||||
|
data: {}
|
||||||
- service: script.activate_alexa_actionable_notification
|
- service: script.activate_alexa_actionable_notification
|
||||||
data_template:
|
data_template:
|
||||||
text: Would you like me to shut down your computer?
|
text: <voice name='Brian'><prosody rate='150%'>Would you like me to shut down
|
||||||
|
your computer?</prosody></voice>
|
||||||
event_id: actionable_notification_shutdown_computer
|
event_id: actionable_notification_shutdown_computer
|
||||||
alexa_device: media_player.basement_echo_dot
|
alexa_device: media_player.basement_echo_dot
|
||||||
- wait_for_trigger:
|
- wait_for_trigger:
|
||||||
@ -304,7 +309,8 @@ basement_on:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: script.activate_alexa_actionable_notification
|
- service: script.activate_alexa_actionable_notification
|
||||||
data_template:
|
data_template:
|
||||||
text: Would you like me to turn on the computer for Collin?
|
text: <voice name='Brian'><prosody rate='150%'>Would you like me to turn on
|
||||||
|
the computer for Collin?</prosody></voice>
|
||||||
event_id: actionable_notification_kallen_computer_on
|
event_id: actionable_notification_kallen_computer_on
|
||||||
alexa_device: '{{ states(''sensor.last_alexa'') }}'
|
alexa_device: '{{ states(''sensor.last_alexa'') }}'
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
|
Reference in New Issue
Block a user