If This Then Sonos

  • 7 September 2018
  • 60 replies
  • 28699 views

Userlevel 7
Badge +26
  • Community Manager
  • 11451 replies
Sonos has always been committed to providing more choice for what you listen to at home. Last year, we furthered that commitment with our Works with Sonos program and yesterday we introduced our new open API - the Sonos Sound Platform. Today, we're excited to announce a new platform integration with IFTTT, which will connect your home sound system to even more of the devices you love. 

IFTTT has integrated hundreds of different smart home products, websites and content providers and with today's beta launch, you can trigger your favorite songs and sounds on Sonos from millions of different IFTTT events.

Now you can have Sonos start your favorite radio station when your Ring-enabled door unlocks after you get home, or play your special pizza song (you do have a special pizza song, don't you?) when your Domino's order goes out for delivery. Having a party? Set your lights and your music using Phillips Hue. 

Actions available from your Sonos devices include basic playback control, pause/resume/next/previous, and volume controls (up, down, mute and unmute). You can start playing a pre-defined Sonos Favorite or song, album and artist playlist. 

IFTTT opens up millions of possibilities for customizing your smart home with Sonos in new and exciting ways. Create Applets or recipes to send commands to Sonos using the "then that" section of your command, also known as the "action".  

We're looking forward to hearing and seeing what you've set up with Sonos and IFTTT and want you to share cool ideas and Applets in the board here.

Sign up for IFTTT on https://ifttt.com/ and you can see what's available on our service page.

60 replies

@Ryan S Can Sonos please expand the IFTTT functionality to be able to setup a single applet in IFFTT that can:

  1. Play something other than a Sonos Favorite b/c Sonos Playlists or Amazon Music Playlists are not showing up in IFTTT Sonos applets
  2. Create and play to a room group defined in the IFTTT applet

I am away from my system at the moment, but I am pretty sure I have added playlists to my Favorites to make them playable with Alexa.  OK - it’s not as good as if all the playlists listed automatically, but it can be done. 

Userlevel 5
Badge +1

@Ryan S Thank you Ryan!

Userlevel 7
Badge +26

Hey Miked13, I’ll pass along the request for you.

Userlevel 5
Badge +1

@Ryan S Can Sonos please expand the IFTTT functionality to be able to setup a single applet in IFFTT that can:

  1. Play something other than a Sonos Favorite b/c Sonos Playlists or Amazon Music Playlists are not showing up in IFTTT Sonos applets
  2. Create and play to a room group defined in the IFTTT applet
Hi, I am really looking forward to integration ifttt as well with my Sonos but I ran in to a problem activating the applet. When I want to choose a room/device ifttt returns an error and the room drop-down just says 'loading'. My favourites are populated though. I tried revoking the permissions and activating them again but no joy. Any idea how I can debug this further?

hi, did you already find a solution for this problem? Same problem here though it doesn’t even show up any playlists!
Hi there,

I use the Sonos applet on IFTTT to work with my Ring Floodlight Cam to make doorbell sounds on all Sonos speakers when motion is detected.

This groups all speakers and plans a Sonos favourite, however the speakers stay grouped and with the doorbell song queued. Meaning, if I’m listening to anything on any of the speakers before this is triggered, I have to manually hngroup the speakers and find the previous song or station and play it now.

Can this be automatically resumed at all? This works perfectly well when using the plugin at https://github.com/jishi/node-sonos-http-api

Can this please be investigated and implemented if possible?
i miss the option for shuffle function the most
... The Play Stream is designed for use with longer content, such as internet radio...

Where can I find some documentation on the "play stream" applet? I've spent a little over 2 hours putting URL variations in the URL field (streaming news, spotify web playlist, podcast link, specific podcast episode link, and so on), and I'm starting to conclude that there's either a bug or there just weren't any UX folks available when that feature shipped. I've looked all over the internet for some documentation. Does it exist?

You need to ask IFTTT.

https://help.ifttt.com/hc/en-us
... The Play Stream is designed for use with longer content, such as internet radio...

Where can I find some documentation on the "play stream" applet? I've spent a little over 2 hours putting URL variations in the URL field (streaming news, spotify web playlist, podcast link, specific podcast episode link, and so on), and I'm starting to conclude that there's either a bug or there just weren't any UX folks available when that feature shipped. I've looked all over the internet for some documentation. Does it exist?
I`m struggling to understand the way to create the siri shortcut or the shortcut app. using the url from the webhook.
best article to follow : https://www.macstories.net/ios/how-to-trigger-ifttt-applets-with-ios-12s-new-shortcuts-app-and-siri/
How does one go about creating an applet to perform multiple actions, or modify an existing applet?
You cant, as "normal" user IFTTT allows you to trigger on One thing and perform One action per Applet. You need to be a partner to create the advanced trigger.
That was my previous comment that it makes no sense for a partner to create simple applets - anyone can create that themself - you just need the partners to create the triggers and actions for you to combine.
Great to see Sonos integration with IFTTT. I am looking for a way to Start Sonos with my favorite radio station, at a certain volume, and turn on 2 rooms of Phillips Hue Lights from my Google Home Mini with one voice command.

I see an applet called "Start Sonos and turn on your Hue lights with one press of the button" by melgert under the Sonos Service. This almost does what I want, only I do not want to use a button press, i want to use a google Home Mini voice request. How does one go about creating an applet to perform multiple actions, or modify an existing applet?
Very cool, but missing some things regarding scheduling - the possibility to stop play/pause, not just to start something.
Typical use case is to start some music in the morning or at dinner time, but end it when it is time to go to sleep.

So you have the actions: "Play favourite" and "Pause" that I can not use with the general time trigger.
What I really missing is possiblity to set the volume in the "play favourite" action.
Starting an activitiy with a specific volume is only possible with the applet "set up a sonos routine", but that is applet with hard constraints and again no pause.

So what I would like is
-Possibility to set volume in the play favourite action
and/or
Possibility to set and end time in the "set up a sonos routine" applet

Hmmm I can actually do what I want by using one "set up a sonos routine" applet + one custom applet with trigger=schedule, action=pause - but seems strange that it is in the standard sonos.

Not really sure why you add a bunch of simple applets that just triggers on one thing - anyone can combine any trigger with any action. Sonos specific applets makes more sense if they are complex (many input conditions - like turn on unless it is late)
[quote=conmadigan]Not sure if it's the intended behaviour or a bug, but when specifying a URL to a sound file (e.g. mp3), it plays in an uninterrupted loop instead of stopping after one playback.

I do understand this if the URL actually references a live audio stream, but I would also need to play one off sounds on specifics IFTTT triggers, so is there a way for the system to differentiate between these single audio files playbacks and live streams?

Many thanks


Yes, I too would like to use the sonos for triggering an individual audio file, play the single file and return to previous operation if possible.

http://myserver.local.lan/welcomehome.mp3
http://myserver.local.lan/doorbell.mp3
http://myserver.local.lan/dooropened.mp3
http://myserver.local.lan/lpackagedelivered.mp3

etc.
Userlevel 4
Badge +5
@southern gal, I could be wrong about this, but I don't think IFTTT has a mechanism to establish a named group. That functionality would really need to be on the Sonos side. If Sonos ever does that, I imagine you wouldn't need IFTTT at all for your morning and evening listening preferences.

You could also get this done if IFTTT/Sonos allowed you to manually to list rooms when creating an applet. It could then be effectively used to create a named group. Not ideal, and wouldn't allow you to used this artificial named group through the Sonos app or a voice command.

I personally use the Lutron hum and app to create my morning group music. I works fine for me since I also use Lutron lights, but probably a costly solution to everyone else that seems like it would be rather simple.


Thanks for your reply
the IFTTT applet has a question/option "where do you want to play" and that shows a LIST of your Rooms

it also has an option "Include grouped rooms?" with only three options... all, include grouped, this room

there is no option to indicate a 'group name'

and it is not clear WHICH group is going to be selected for the 'include grouped" option, when the room in the LIST question is part of several groups.

I realize that there is no option to select a group name... i am asking if they will add one or what group will be used in the "include grouped" question where there are more than one.
Userlevel 7
Badge +21
@southern gal, I could be wrong about this, but I don't think IFTTT has a mechanism to establish a named group. That functionality would really need to be on the Sonos side. If Sonos ever does that, I imagine you wouldn't need IFTTT at all for your morning and evening listening preferences.

You could also get this done if IFTTT/Sonos allowed you to manually to list rooms when creating an applet. It could then be effectively used to create a named group. Not ideal, and wouldn't allow you to used this artificial named group through the Sonos app or a voice command.

I personally use the Lutron hum and app to create my morning group music. I works fine for me since I also use Lutron lights, but probably a costly solution to everyone else that seems like it would be rather simple.
Userlevel 4
Badge +5
It would be great if we could have an option to select the specific GROUP name to use in the applet.

the questions now are "where do you want to play?" and "include grouped Rooms" ... so i have speakers that may be in several different groups. for example a group called Morning will have some of the same speakers as the Evening group but not all. So if a speaker named Den is in both... how does IFTTT/SONOS know which GROUP to play for the 'include grouped rooms"?

it doesnt right now... so the option is grouped rooms, only this room, or all rooms.

hoping this is something that can be considered.

in short the question is... if a speaker is in several different groups and it is selected for "where do you want to play"... which group will be used for 'include grouped rooms"

alternatively for the "where do you want to play" you could let us select the GROUP name.
Userlevel 3
Badge +2
Managed to set up quite a few playlists to run using Google Assistant, which is cool.
Can also pause and resume.

Can't seem to get next and previous track to work when pksying a favourite, though.
Userlevel 7
Badge +21
Not for me, no smart phone and my geezer cell plan doesn't include text messages. E-Mail please!
Userlevel 1
Please implement this: https://ifttt.com/partner-blog/2017/10/IFTTT-users-can-now-subscribe-to-your-service

I would like to receive emails for new actions and triggers as they are added.

Alle the other IFTTT integrations I use have this already.


I guess smart phone notifications would be good too?
Userlevel 1
Badge
Please implement this: https://ifttt.com/partner-blog/2017/10/IFTTT-users-can-now-subscribe-to-your-service

I would like to receive emails for new actions and triggers as they are added.

Alle the other IFTTT integrations I use have this already.
Userlevel 1


Yes, I mean sleep mode. I am sorry!


No worries ? I just wasn’t sure if it was a feature I hadn’t come across. I’m no expert
Is there any possibility to pause the music after a specific time similiar to the „slumber mode“ in Sonos Controller?

I would like to use Siri Shortcuts and IFTTT to play music for a specific time when I go to bed.


I believe the next version of Shortcuts, presumably to be released soon, will include time / clock triggered actions. See here:

https://twitter.com/viticci/status/1052303850575519745?s=21


Thank you for your quick response.

I believe it is what I‘m looking for and will work for ne. I hope Apple will release soon. But for a more elegant solution I hope the „slumber mode“ will integrated in IFFFT by Sonos.


I’m not familiar with slumber mode? Is it ‘sleep’?


Yes, I mean sleep mode. I am sorry!
Userlevel 1
Is there any possibility to pause the music after a specific time similiar to the „slumber mode“ in Sonos Controller?

I would like to use Siri Shortcuts and IFTTT to play music for a specific time when I go to bed.


I believe the next version of Shortcuts, presumably to be released soon, will include time / clock triggered actions. See here:

https://twitter.com/viticci/status/1052303850575519745?s=21


Thank you for your quick response.

I believe it is what I‘m looking for and will work for ne. I hope Apple will release soon. But for a more elegant solution I hope the „slumber mode“ will integrated in IFFFT by Sonos.


I’m not familiar with slumber mode? Is it ‘sleep’?

Reply