Created
April 22, 2021 17:11
-
-
Save MarkWattTech/df717195583ecb8a0b1cd6b1ffb78138 to your computer and use it in GitHub Desktop.
Supporting content for the Alexa Custom MP3s video
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
@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'/>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Anybody have success sending to a group of echoes rather than a single echo?