-
-
Save MarkWattTech/df717195583ecb8a0b1cd6b1ffb78138 to your computer and use it in GitHub Desktop.
#Dev Tool | |
service: notify.alexa_media | |
data: | |
message: "<audio src='https://yourPublicURL.ui.nabu.casa/local/mp3/potato.mp3'/>" | |
target: media_player.downstairs_echo | |
data: | |
type: tts | |
# Script for a random phrase | |
service: notify.alexa_media | |
data_template: | |
message: > | |
'"{{ ("<audio | |
src='https://yourPublicURL.ui.nabu.casa/local/mp3/potato.mp3/>", | |
"<audio src='https://yourPublicURL.ui.nabu.casa/local/mp3/potato.mp3'/>", | |
"<audio src='https://yourPublicURL.ui.nabu.casa/local/mp3/potato.mp3'/>" | |
)|random }}"' | |
data: | |
type: tts | |
target: media_player.downstairs_echo |
It's appears like amazon doesn't like https urls with Let'sEncrypt certificates, that's why it works with CloudFlare HA config and it's not working with Jovo direct url (use Let'sEncrypt)! . I hope this comment could help anyone with the Simon says error.
Thank you I was trying everything.
I am using duckdns and the only option that worked for me was using AWS S3 account storage. Alexa is over-protected regarding access to files so they will only allow accessing files on their own servers. Prove me wrong as I would be more than happy to store files locally on my Home Assistant local www/media/audio folder.
Here are some details:
- Make sure your mp3 file is the correct bitrate / length
- Amazon S3 account (for your region)
- Set S3 permissions, public access and bucket policy
- Use you S3 link: example: <audio src="https://MyFileCompartmentName.s3.us-west-1.amazonaws.com/zelda.mp3'/>"
Anybody have success sending to a group of echoes rather than a single echo?
@dmayo305, Just use a dash with each echo in your YAML:
service: notify.alexa_media
data:
message: >-
<audio
src='https://myPublicURL.ui.nabu.casa/local/mp3/doorbell-chime.mp3'/>
target:
- media_player.colton_s_echo_show
- media_player.apartment_door_echo_amz
- media_player.bedroom_echo_right_amz
- media_player.kitchen_echo_plus_amz
- media_player.bathroom_echo_amz
- media_player.bedroom_echo_right_amz
data:
type: tts
enabled: true
I had the same problem with "Simon says ...". Finally, I could fix it by correcting the source-statement of the mp3-file.
It seems that the source needs to be like this (watch the different quotation marks):
src='https://abcdef.ui.nabu.casa/local/mp3/Alarm.mp3'/>
It's appears like amazon doesn't like https urls with Let'sEncrypt certificates, that's why it works with CloudFlare HA config and it's not working with Jovo direct url (use Let'sEncrypt)! . I hope this comment could help anyone with the Simon says error.