@MarkWattTech found your video before stumbling on this thread. Great tutorial, thank you for making it.
The only drawback so far is playback of the mp3’s when using a speaker group in Alexa as the target (e.g. media_player.everywhere) doesn’t work. I think part of the problem is you have to set the “type” to “announce” when using a speaker group as a target, instead of “tts”. It appears the audio tag isn’t supported when using “announce”.
Note that I’ve converted my mp3 files using the Jovo converter, and can play them from a browser using my Nabu Casa base url (e.g. https://**MY NABU CASA UNIQUE ID**.ui.nabu.casa/local/mp3/Alexa-tng-red-alert.mp3
). They all work fine when playing to a single Echo device.
For example, this works fine:
service: notify.alexa_media_everywhere
data:
message: "Alert, unauthorized access detected."
title: Intruder Alert
data:
type: announce
This, however, doesn’t. It only plays the bong sound that Alexa plays when you use the announce type:
service: notify.alexa_media_everywhere
data:
message: "<audio src='https://**MY NABU CASA UNIQUE ID**.ui.nabu.casa/local/mp3/Alexa-tng-red-alert.mp3' />"
title: Intruder Alert
data:
type: announce
If you change “type” to “tts”, nothing plays for either.
EDIT:
Figured out a workaround thanks to actually reading the description of the parameter values in the developer tools. This workaround is probably common knowledge or at least obvious to many, but since I was being dense this morning, I figured it may not be readily apparent to others.
If you need to play the mp3 to multiple Echo devices, you have to manually specify each device as a target, such as this:
service: notify.alexa_media
data:
message: "<audio src='https://**MY NABU CASA UNIQUE ID**.ui.nabu.casa/local/mp3/Alexa-tng-chime-clean.mp3' />"
target:
- media_player.office_echo
- media_player.living_room_echo_show
data:
type: tts