

Here’s a simple script to send an internet stream to a media player, in this case Chromecast Audio. I use Ha-Bridge but I imagine it’s the same - I just say “Alexa, turn on scriptname.” and away it goes. Keep in mind that you’ll need to change the … this also allows streaming audio from LMS to an Amazon Echo device for playback. Not really music solutions to me: Plex server + programming.

Favorites can be streamed losslessly to your Echo when they address a https URL that identifies as flac. Ephemeral 'AlexaPlayers' appear in the LMS GUI or iPeng for each Echo during streaming.
AMAZON ECHO LOGITECH MEDIA SERVER PC
The script I’m posting also makes an API call to turn on shuffle-by-song so that the playlists are shuffled. When running off Logitech Media Server, two Squeezebox Radios can be. SONOS + programming, SONOS + JRiver MC on PC + House Band skill, JRiver MC on PC + House Band skill, JRiver MC + Logitech Media Server + Squeezbox clients/PC + House Band skill. In addition to controlling your Squeezeboxes, MediaServer can use the /stream.mp3 endpoint in LMS to stream audio to your Echo. The secret sauce is that Jinja templates can return a random item from an array. I’m running Logitech Media Server with the official Spotify Plugin plus the Triode protocol handler. This can be adapted to various media_player’s I’m sure. Play a random Spotify playlist on Squeezebox Share your Projects!

Spotify:user:ih8gates:playlist:7I3IZTkHbX5z5nyIbiQ84P service: shell_command.squeeze_shuffle_songs I say “Alexa, ask Home Assistant to play…” PlayMediaIntent: This one does some extra stuff (like runs a script that enables shuffle via the Squeeze API), but might be useful for ideas. squeeze-alexa is a codebase for creating your own Amazon Alexa Skill to communicate with Logitech Media Server (squeezebox) using a NAS or home server. Since Squeeze understands Spotify URIs (via a plugin), it’s pretty easy. I have several intents that work wtih my Squeeze Server. Do you have Alexa working with emulated hue, or with the Alexa component? If you already have SSL set up and can access your HASS from outside the network, setting up Alexa is easy.
