If This Then Sonos

  • 7 September 2018
  • 60 replies
  • 28713 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

Userlevel 2
Badge
Many thanks Ryan! This was a very long awaited/requested feature and I'm pleased it's finally here! Even if in the meantime some of us bought third party systems (such as Smarthings) to give a basic remote control of our Sonos environment as a workaround. I certainly hope the IFTTT channel as it is officially maintained by Sonos will offer more options.

Would you consider commands to group rooms and commands to issue text to speech in the near future? Also right now I can only see distinct actions to change the volume and play a stream, but no ability to set the playing volume for a stream (hence requiring two separate actions).

Also, are you planning to add triggers as well to issue smart home actions when a speaker starts or stops playing? (Right now all I see are actions)

Well done and thanks again!
Userlevel 5
Badge +9
I'm pleased to see these developments. Like @william_37 I would love to have the ability within both the API and IFTTT to manage groups. I've long been able to control my speakers using SmartThings and webCoRE in a manner equal to or better than the present IFTTT actions allow (i.e., implementing TTS. for example), but managing groups has long been on my wish list. I hope as the new API advances either Sonos or an outside developer will be able to expand on the current Device-Type Handler (DTH) currently available for Sonos within SmartThings, which in turn will help us make Sonos a more cohesive partner within our smart home systems.
Userlevel 7
Badge +26
@Tuck, Google Assistant support is coming this year. With IFTTT you might be able to get a little something working before hand, but nothing like what we're working on.
[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.
I do use IFTTT for 'triggering' a few rather basic actions, like emailing shopping lists, ringing a lost mobile, flashing lights for reminders etc. and this latest Sonos integration, now opens up many further possibilities.

I personally wish Philips Hue lights and their motion sensors were available as 'triggers' too and not just in the 'actions' area, as it would be quite nice to trigger a particular light-scene in a room and then have Sonos automatically begin playing some music that suits the chosen mood/atmosphere... or of course vice versa, where a 'triggered' Sonos playlist, then switches on a suitable hue light-scene in a room, during post-sunset hours.

It’s really great to see all these smart-home devices beginning to communicate with each other in a very simple and customisable way for the end-user.

Thankyou so much Sonos ... really looking forward to using some of these useful actions and seeing the ongoing development with this new integration.?
Great news but what would even be better is to hear that SONOS now connects to Google Home and to my NEST system. But hey, I can wait, and wait, and wait some more:🆒...............
Userlevel 5
Badge +9
One thing is I can use it to play favourites but I don't seem to be able to set a Sonos Playlist as a favourite in the app. Is there a way of using it to play Sonos Playlists?

I had to use the desktop app to add a Playlist to my favorites as it wasn't obvious to me how do it in the phone app.

Userlevel 1
I followed the excellent guide here https://www.macstories.net/ios/how-to-trigger-ifttt-applets-with-ios-12s-new-shortcuts-app-and-siri/

To control Sonos with Apple’s new Shortcut app on iOS 12. Means I can set lighting and play music at a particular volume at the press of a single button or via a single Siri command. Pretty neat.

There are a few things missing though that would really take the Sonos integration to the next level:
- being able to edit the actions so that multiple things can be included in one. For example, playing a particular piece of music at a certain volume. Most of the time you would want to specify the two together
- have a volume change occurr over a specified period of time. For example, if using it is an alarm, I would like to set lights to fade on gradually and, set the radio to gradually come on over a few minutes, starting at say 2% volume and increasing to 15%. Could also work the other way if setting a sleep timer, better than suddenly turning off.
- control things like whether a piece of music should repeat or only play once

Otherwise, it’s working great. Just more complex control and a bit of refinement here and there.

Even better would be Sonos creating their own iOS 12 shortcut connections within the app, but until they come, this is wonderful.
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
Userlevel 7
Badge +26

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

Userlevel 7
Badge +26
You're welcome! The team is just getting started. You'll see more functionality added over time as the beta develops. You're correct, Sonos is only available as an action for the system, not for triggers. I don't have any specific plans I can share on what's up next or will come down the road. I'll make sure to pass along your feedback to the team so they know what the community is asking for.
Userlevel 1
Badge +1
I'm confused by the 'Pause entire household' option? I want to pause all speakers when I leave home but this gives the option of individual speakers plus the option already mentioned.



Very happy with the integration though, my Kronaby watch is now set to play a favourite with the press of a button.
Userlevel 2
Badge
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
Userlevel 7
Badge +26
@billythepuppet, thanks for the feedback. I'll pass that along to the team so they can look into ways to make it a little more clear and generally a better experience overall. The IFTTT integration is in beta, so you can expect to see it changing.

@william_37, your analysis on why it functions is exactly correct in this case. The Play Stream is designed for use with longer content, such as internet radio. I'll pass along a suggestion to the team for some sort of Play Clip or timed play option.
Userlevel 7
Badge +20
Am I missing something? Trying to play a favorite or playlist by sending an email or text but don't see that applet available. Any reason why?
You need to create your own applet using the IFTTTT app or website, consisting of a trigger (such as 'Send IFTTT an email tagged') and an action using one of the Sonos actions. Looks something like the following when done:

Userlevel 1
Badge
This is excellent news!! And it works great. I have been able to create my own applets to control Sonos from my Google Home device. What's fantastic is that I can now integrate my "goodnight" and "good morning" functions so that my Nest lights and Sonos work together to create the settings. Truly excellent, sending a huge thank you and applause to all the Sonos folks and beyond who helped bring this to fruition. 🆒
Thanks so much for this feature! I have had a play and setup some great appletts:

Connecting to my Ring doorbell so I have a doorbell sound over Sonos
Connecting to Nest Protect so if an emergency it sounds over Sonos

Info here: https://www.smarthomegeeks.co.uk/how-to/how-to-connect-sonos-to-ifttt/

It would be really cool if you could add alarms to IFTTT?
Userlevel 5
Badge +9
I'd like to add that I was pleased that Amazon removed the "Sending that to IFTTT" response after every trigger command this past week. Big improvement for ANY IFTTT integration involving Alexa.
Userlevel 1
Please add grouping and ungrouping to this!
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.
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
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
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 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.
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?

Reply