I 'm trying to get Alexa TTS working in a script. I use the same lines of code in the services tab, but when placed in the scrip it does not work. Any help work be nice, Thx. See examples below.
Service tab:
message: Hello dear friends from around the World!,
data:
type: tts
target: media_player.kitchen
Script:
alias: 'Send notification when alarm triggered'
trigger:
- platform: state
entity_id: alarm_control_panel.home_alarm
to: 'triggered'
action:
- service: notify.mobile_app_daves_new_iphone
data:
message: "ALARM! ALARM! The alarm has been triggered"
- service: notify.alexa_media
message: Hello dear friends from around the World!,
data:
type: tts
target: media_player.kitchen