Automate music on multiple echos through Echo Speaks and Rule Engine

Thanks for the ST community developed Echo Speaks, it allows great integration between Hubitat/SmartThings platform and the Amazon Echo devices, and I have seen many users using the Album Art feature and rules to create their own unique “jukebox dashboard” with their echo devices like mentioned in the post below.

So I’d to share a trick how to create an automation rule to play music to multiple echo devices via “Multi-Room Music” group here. :sunglasses:

:warning: Echo devices sometimes have issues with Multi Room Music groups (MRM). See the post below and the linked GitHub issue for more details.

See steps below:

  1. Create a “Multi-Room Music” group in Alexa app

    • Open the Alexa app on your mobile device, and go to “Devices” tab

    • Tap the “+” button at top-right corner and select “Set Up Multi- Room Music”

    • Give this group a name and select the desired echo devices ( I named this group “All speakers” in this example.)

    • After the group is created, you should be able to see this new group listed under “SPEAKER GROUPS” section as a “Multi-Room Music” item.

  2. Create a rule to play your favorite music to this speaker group

    • In the Flow section, add an action and select either of your echo speaks devices. It doesn’t matter which of the echo was selected as long as it is one of the echos in the Multi-Room Music created above.

    • Select “searchSpotify” as the command (or you can select different one, such as “searchAmazonMusic” or “searchAppleMusic”, depending on what your music source is)

    • Tap the “Advanced” option at top-right corner and removed the two “Number” fields in the parameter list since we don’t need to adjust the volume and sleep time here. We only need to keep the “String” field here for the command parameter.

    • In the String parameter field, specify the music station, play list or song name and append " on All Speakers" text after the station/play list name. Ex: Beatles is my playlist name and All Speakers is the name of Multi-Room Music (Speaker Group) we created from the first step.

      According to the Echo Speaks Document, the music search command supports the audio group to be in the search parameter.

  3. Depends on if you want to trigger this rule by an event or manual tap from the dashboard, you may or may not need an trigger in this rule. Once done editing the rule, go ahead to save the rule and give it a try if it is able to play your favorite music on all the devices in speaker group you defined.

    Tips: if the String parameter mentioned in Step 3 doesn’t work for you. Try different voice commands to play your desired music on the speaker group. Find the working one and use that voice command content as the command parameter in Step 3.

Now you are ready to play the party music through the entire house then. :sunglasses:

3 Likes

I’ve been doing the equivalent of this by voice via Alexa for some time. My four speakers on the first floor are in the Downstairs group. For example, I can say “Alexa play Beatles on Pandora Downstairs”.

What would I gain from using the method outlined above?

Additional ways to queue up your favorite music! :smiley:

You could run the ‘rule’ directly from your dashboard… meaning you’d have one-tap access to queue up your favorite stations. Check out James’ demo of a jukebox dashboard here:

Create a ‘Jukebox’ Dashboard with Album Art

2019-12-02_12-39-09

Or you could use it in an automation. For example, when you arrive home, have your favorite music automatically start playing across multiple speakers.

1 Like

You could have it trigger based on time, presence or any other smart device in your home! Like if you leave your house and wanted to play relaxing music for your dogs for example. You could manually do it with your voice before you leave home but why not make it automatic each time you leave?

3 Likes

For people who ran into issues when mixing the music play commands to MRM groups and individual device, for example sending search music command for individual device, but music played through MRM groups after a few mixed commands sent, there seems to be an issue in Alexa MRM groups itself
and not the integration. This can be observed in the native Alexa app as well. See below for details.

This was the exact issue I was having today. Couldn’t get multi room/device audio working from my jukebox dashboard. I’ll have to give this a shot! Thanks for the tip!