0
Discuss

How are you adding your music players to ActionTiles?

Sidney 5 months ago in Panels (dashboards) / Special Tiles updated by Benjamin Wilson 5 days ago 19

I was just wondering how everyone else is adding their music players to ActionTiles.

I am using an app called Echo Speaks that is added to my SmartThings as a Smart App.

I can control the Echo's Play, Stop, Pause, Volume and Skipping.

Right now, I can only control the Volume of the Fire HDs.


The individual Echo Tiles also show up in their respective Room Panels.  So when I go into the Living Room Panel, the 'Echo - Living Room' tile is in there as well.

echo speaks has been a game changer. Using WebCore, I’ve made pistons that allow me to create URL tiles in AT to play specific music stations on certain Echo devices. With the help of another community member, I added the Piston URL to the tile on my panel without it opening a new window when tapped. If you wanted to, you could create a panel for each individual Echo with playlist tiles and include shortcut tiles on those panels to easily jump around. 

Wow....  I would actually love to do just that.  I'm also using WebCore for A LOT of automation.  Can you point to the topic on WebCore that got you started?

Can you post a pic of one of these panels?

I’m not sure there was a particular topic that got me started with this idea. I know I just wanted to be able to play certain stations from AT panel. I’m using a URL tile with the webcore piston link for the URL with some JavaScript code in the url so that the tile doesn’t open another window. I’m using EchoSpeaks with WebCore to tell my echo device to play a radio station on Amazon Music. 

The other AT conversation can be found Here.  



+1

I took your suggestions.


I'm getting a little more efficient with my Echos. 

In the panel I showed above, I changed the Echo Tiles into Panel shortcuts.  With ActionTiles, SmartThings and webCoRE, I've created more efficient controls.

The tile at the top-center is the Echo Tile that was created by EchoSpeaks adding the Echo Devices to SmartThings.

Each of the other tiles are Virtual On/Off Buttons created in SmartThings.  Tapping each button sets off a Piston in webCoRE.  The first row at the bottom is Genres, the second row is Artists. 

Example:  Tapping the "80's Music" tile sets off a Piston in webCoRE that sends a command to the Echo Device through EchoSpeaks.  EchoSpeak uses the 'searchAmazonMusic' command with a variable of "80's Music" and starts the "All 80's" Amazon Station.  After 5 seconds, the Piston turns the Button/Tile off.

The Echo Tile at the top-center will display the song that is currently being played.  Clicking on the three dots on that tile will give you a volume control.

The same thing will happen when tapping on the "Next" tile. A Piston is set off in webCoRE that sends the "Next" command to the Echo Device through EchoSpeaks.  After 5 seconds, the Button/Tile is turned off (so that it can be used again).

The Artists are not final, these were set up as tests.


looks great. You’re basically doing the exact same thing I did with Echo Speaks and webcore but I bypassed the STvirtual switch by just using a URL tile in AT to trigger the webcore Piston. nice work

I've tried the URL tile, but mine does not execute, and a separate window opens.  I guess I'm not as efficient with webCoRE as I thought I was, because I can't figure out how to trigger a piston without the 'If this happens' part.

+1

Here is my Piston. It’s just an execute command.  

You need to amend the URL link in AT as follows. 

javascript: $.get ( 'paste your Piston URL here' );  be sure to keep the single quotes and parentheses before and after the url

You can copy your Piston external URL by copying the link on the Piston page. 




The only issue is if you like that the tiles turn “on” and “off” when you press the station with the virtual switch, it won’t do that with the url tile. My url tile doesn’t change status. It just triggers the url. 

Well, I don't think this works on the Fire HD.  When I add any of the javascript parts, I get nothing.  If I use just the URL, I get a message saying "new tabs and pop-ups disabled".

Discuss

If you are using Fully you need to change the Settings (swipe from left-edge) to allow new tabs / pop-ups as it is a PLUS feature (not available in ActionTiles App).

But you might also edit the Shortcut Tile Settings to "open in Same Window".

yep. Thanks Terry. Was just gonna reply with those comments. 

Thanks guys. I did try to change the settings in Fully, but they are not available. I also tried using the "Open in same window", it does execute this way, but opens the blank 'results' page of the execution. I will keep playing with this. Maybe there's a command to force a 'back' to the previous page.

here are my tile settings. Can you copy and paste your JavaScript link to see if you’re missing anything?

Try opening AT in a different browser to test the link. If it works there then may be a Fully setting somewhere. 


+1

I figured it out!!!

I was playing around in the settings, and clicked on the "Permissions" and went through the permissions and turned things on (not everything).  Went back to AT, tapped the tile, and viola!!

This is going to help so much with not having to create Virtual Devices in SmartThings!!

Thank you guys so much!!!

On to programming.....

Sidney,

I would love to take a look at the piston you have for that setup.  Any chance you would be willing to post it or PM?

Sorry!  Haven't been able to review/respond in a while.

Here is the piston for "80's Music"

"Neal's Room" is the name of the Echo.

Using this piston, you can change the search to anything.

Here's an example of the Artist, Shinedown:

Here is the "Stop" piston, and again, you can change it to accomplish any of the buttons.

You can change the "Stop" to "Previous Track", "Next Track", "Play" or "Pause".

I made the "Mute" button a virtual button, so that it 'lights up' when in use.  This piston for Mute is simple:

I have expanded my 'Echo Control' since I posted the panel above (and applied a Theme).

I've added another identical panel with different Genre/Style, and Artist buttons.

The "Arrow" after "Carrie Underwood" is a panel shortcut to the Extended Panel.

On the Extended Panel, the "Arrow" before "Madonna" is a panel shortcut back to the original 'Echo Control' panel:

The two panels are exactly the same, so when the "Arrow" after "Carrie Underwood" is pressed, it just looks like the bottom two rows change (even though it's an entirely new panel displaying).

I know this is long-winded, but I hope this helps.

I have deployed Echo Speaks successfully, but it doesn't seem to detect any of my Echo devices. All I am trying to do is get the music to pause while I send a voice announcement and then continue when the announcement is finished. Any ideas? 

Anything like this for google home?

+1

Eric: Echo Speaks was developed by a SmartThings Community member. So be sure to check there regarding Google Home. So far ... I doubt it.

Does anyone know how to make volume up/down action tiles using webcore and amazon echo?