Hey, I added my Echo devices to Smartthings using “Echo Speaks”, a somewhat convoluted process that I won’t go into.
What I was curious about was the possibility of being able to send custom commands. I was thinking of a Dashboard with all my favorite albums, a virtual home jukebox.
Here is a list of supported commands.
This is what it looks like in Sharptools while playing.
I’m hoping Amazon comes out with native integration but until that happens I’m curious about how feasible it would be to have a “programmable” tile?
@Gary_Milne, as @josh mentioned, you can create a rule to have Echo to search for the album name, and play at certain volume through Rule Engine.
See my example rule below to have my echo play “Appetite for Destruction” album from Spotify at volume 40. (You don’t need set trigger here if you are going to trigger it from dashboard tap.)
Please note that you’ll need to toggle the “advanced” option and set the first argument as STRING for the album name, 2nd argument as NUMBER for the volume, and remove the 3rd argument if you don’t want it to stop playing after certain time. I need to investigate why the default arguments’ order is not following what is defined in the Echo Speak DH though. command "searchSpotify", ["string", "number", "number"]
Once the rule is created, you can then add this rule as rule tile in the dashboard.
Now I understand the nature of the “Advanced” option in rules it has some interesting possibilities. However at the moment I cannot replicate your results.
I don’t have Spotify but I have all my Music on Amazon so a verbal command “Alexa, play my album Greatest Hits by Bob Seger” will work for example.
Saying “Alexa, play bat out of hell” works so I don’t think the problem lies there.
Without getting the eMail it seems to me the execution of the rule. On a related note when I click the rule tile it would be nice to get a “Command Sent” that I see for other executions. Without it I’m not sure if the command is actually getting and failing or not getting sent at all.
It sounds the rule wasn’t triggered from your tile touch. It does show “Executing rule…” when I touched my tile, like “Command Sent” message from a device tile touch.
Created a brand new dashboard on my account called Music, put on the rule tile and the Echo Speaks device and the rule fired and the correct music played.
Just so you know the rules seem to execute on all of my Dashboards except for the one called “Test”. I don’t care if you fix it in my instance, but you should know you have a latent bug that will be sure to manifest sometime in the future.
@Gary_Milne & @Mike_G , I’ve updated my “jukebox” dashboard to include the new album art tile to make it a greater looking jukebox. Think you guys may be interested.