0
Discuss

How are you adding your music players to ActionTiles?

Sidney 3 months ago in Panels (dashboards) / Special Tiles updated by Robpriceincali 11 hours ago 15

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?

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?