Thanks for that @TazUk, that put me on the right track. I eventually got this working, like so (using Bose Soundtouch integration) in a script, which I’ve assigned to a button. I could probably simplify this:
Test your service call in the services section.
This will tell you whether what you are trying to do will work.
If your service call works in developer tools, then it is your dashboard code that needs adjusting.
To get help with the dashboard code you will need to format it properly when posting it - see this.
Interesting…Alexa is telling me that I’m trying to do TTS. I must be totally lost on this one. Can’t believe there’s not an existing Integration to play internet streaming audio.
If you don’t get sound using the Developer Tools > Services interface, you won’t get sound calling the service from anywhere else.
Please don’t post code without formatting.
My call works with a Nest Home Hub Max in HA v2022.7.7 - we don’t have any Amazon devices so I don’t know whether there are any differences in how they behave.
In fact, a quick search of the community turns up this post by sparkydave that implies that Amazon devices are (or were) known to be difficult.
I suspect that if you dig around the community you may find further info on that - failing that I’d suggest starting a new thread with the specific end to end details of what you want to achieve (and formatted code please).
OK…so no luck trying to go to SONOS either. Ironically, I do hear error messages from SONOS when I change the code parameters. Has anyone heard of a custom integration to do this using Amazon Alexa?
Pls remember - you can’t play media on Alexa devices like Echo. Use other sound device like Google Nest or other compatible loudspeaker device. I noticed that after starting this stream, it starts working after a few dozen seconds.
I just developed a new SoundTouchPlus custom component if you’re interested. It can easily be installed via HACS as well. More information can be found in this forum post.