Just got an Amazon Echo, and wanted to post how I got it to control the squeezeboxen. It's a little hairy and requires a bit of a work around to get it to do specific commands (for instance, playing a specific station or genre requires you to program each genre individually), but it's worth while since I only listen to a few pandora stations. You can theoretically get it to do anything you'd like.
As a side note, a great way to intercept commands from logitech media server's web interface is using firebug to see what post/get details are sent when you submit a command. That's how I stole the pandora details.
Step 1. Connect your amazon echo to IFTTT.com
Step 2. Port Foward 9000 to your media server. Make sure it's password protected!
Step 3. Add alexa commands to IFTTT, use alexa as the trigger, and Maker as the THAT channel.
Note: You'll need the mac address of your players if you want to control them individually.
Example:
Alexa trigger squeezebox pause kitchen
Maker url:
http://username:password@youripaddre...yer=macaddress
Example:
Alexa trigger squeezebox ambient
(this will play the ambient station on pandora, the values may differ per account)
http://username:password@youripaddre...=1451159698107
There's a good list of GET variables you can send to your server here: http://tutoriels.domotique-store.fr/...ayer-http.html
Hope this helps, if anybody has questions I'll try to answer them.
Results 1 to 10 of 13
-
2015-12-26, 13:54 #1
Amazon Echo / Alexa integration how-to with IFTTT
1 Touch
2 Receivers
1 Controller
2 Radios
-
2016-01-07, 02:00 #2
- Join Date
- Jul 2014
- Posts
- 5
Are you able to get the Echo to function as one of your music players, or does this just serve as an additional way to control your server?
Thanks, and great work!
-
2016-01-12, 20:26 #3
-
2016-10-17, 07:50 #4
- Join Date
- Mar 2010
- Posts
- 173
-
2016-10-22, 15:11 #5
- Join Date
- May 2006
- Posts
- 2
Ok, I am not that smart. What is IFTT.com??
With the "Dot" from Amazon I would love to control my players.
-
2016-10-23, 00:20 #6"To try to judge the real from the false will always be hard. In this fast-growing art of 'high fidelity' the quackery will bear a solid gilt edge that will fool many people" - Paul W Klipsch, 1953
-
2016-12-21, 19:34 #7
- Join Date
- Jan 2007
- Posts
- 72
Thanks for this info and thread. I just picked up a Dot and was hoping to use it to do some simple commands.
I'm able to get it to (resume) play, and stop play. But the commands I've made for playing specific playlists seems to make Squeezebox Server stop running, so I'm guessing there's something about the command that's problematic.
Here's the command I was using that causes the problem:
http://myURL:9000/status.html?p0=pla...ddressOfPlayer
Any ideas or suggestions?
-
2016-12-21, 22:22 #8
Amazon Echo / Alexa integration how-to with IFTTT
> I'm able to get it to (resume) play, and stop play. But the commands
> I've made for playing specific playlists seems to make Squeezebox Server
> stop running, so I'm guessing there's something about the command that's
> problematic.
I certainly hope those URLs don't make it crash?!? If so, please provide
the server.log and more information about your installation.
> http://myURL:9000/status.html?p0=pla...ddressOfPlayer
p2 is expected to be a playable URL. You don't even set it, but have
that invalid "news" parameter in there. You can't play an item by its
menu name or the like.
--
Michael
-
2016-12-22, 20:05 #9
- Join Date
- Jan 2007
- Posts
- 72
Thanks Michael.
I misunderstood about the P2 parameter.
I just got it working playing a web stream, which is great and the top priority. So I'll keep playing with that info!
Does a playlist have a useable/passable URL, and if so how do I get that? I know how to access Chrome Developer tools etc., but don't have much knowledge past that.
Thanks again!
-
2016-12-23, 08:02 #10
Amazon Echo / Alexa integration how-to with IFTTT
> Does a playlist have a useable/passable URL, and if so how do I get
> that? I know how to access Chrome Developer tools etc., but don't have
> much knowledge past that.
Local files (playlists or audio files) would use a url of type
file://path/to/your/playlist.m3u or similar.
--
--
Michael