Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1

    Amazon Echo / Alexa integration how-to with IFTTT

    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.
    1 Touch
    4 Receivers
    3 Controllers
    3 Radios
    (I think I have a problem)

  2. #2
    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!

  3. #3
    Quote Originally Posted by monkmandolins View Post
    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!
    I can only use it to control, not play through alexa's speaker. But that's alright, her speaker is kinda ho-hum.
    1 Touch
    4 Receivers
    3 Controllers
    3 Radios
    (I think I have a problem)

  4. #4
    Senior Member
    Join Date
    Mar 2010
    Posts
    173
    Quote Originally Posted by FredFredrickson View Post
    I can only use it to control, not play through alexa's speaker. But that's alright, her speaker is kinda ho-hum.
    Has anyone been able to go to the next step...have the echo actually play songs from your LMS library?

  5. #5
    Junior Member
    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.

  6. #6
    Senior Member Julf's Avatar
    Join Date
    Dec 2010
    Posts
    2,510
    Quote Originally Posted by paulsi View Post
    Ok, I am not that smart. What is IFTT.com??
    "If This Then That", an online service where you can set simple action rules to connect devices and services (such as twitter etc.).
    "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

  7. #7
    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?

  8. #8
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,530

    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

  9. #9
    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!

  10. #10
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,530

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •