If This Then Sonos

  • 7 September 2018
  • 60 replies
  • 35528 views


Show first post
This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.

60 replies

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.
Userlevel 4
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.
Userlevel 4
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 2
Badge
Please add grouping and ungrouping to this!
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 5
Badge +9
The ability to add ingredients to an IFTTT recipe would add significantly to the existing capabilities. Sonos' IFTTT integration is still in its infancy, however, and I would suspect (hope?) that something like this is on the roadmap.
Hi folks,
I'm using IFTTT webhook to trigger my Sonos. Webhooks offer the possibility to create a more dynamic applet by passing on attributes. See the documentation at https://maker.ifttt.com/use/add_your_key_here. This content will be passed on to the Action in your Recipe. It seems that the Sonos service in IFTTT does not respect these attributes. This would allow one dynamic applet instead of one applet for each playlist and/or room.
Anyone an idea if I'm missing anything?
You are great! it works! Previous version of my applets (find already done on ifttt page) was that said "works with Google assistant" and not "works with Sonos".
That's awesome, hope that sonos improve Google assistant asap, till now i'm in love with IFTTT!:D
Hi folks!
I'm new to this world, can someone tell me if i can start music from my Sonos with Google Home mini using IFTTT?
I've already set my 2 account on ifttt page, when i say something like "Ok Google start Sonos" (like i've set up on ifttt page) google home mini don't reply to me, it seems like he reached the command but can't send it to Sonos...
Anyone did it?

Yes you can, create an IFTTT routine and select 'Google Assistant' as your trigger and then (as an example) set the phrase you wish to use, such as 'play my favourite playlist'... then ... select 'Sonos' as your action and chose to play a chosen playlist on a particular room, grouped rooms, or everywhere.

There are also many other Sonos actions for setting the volume level, muting/unmuting and skipping next/previous songs etc.

Simply link your Google and Sonos accounts to your IFTTT account.

Hope that helps ?
Hi folks!
I'm new to this world, can someone tell me if i can start music from my Sonos with Google Home mini using IFTTT?
I've already set my 2 account on ifttt page, when i say something like "Ok Google start Sonos" (like i've set up on ifttt page) google home mini don't reply to me, it seems like he reached the command but can't send it to Sonos...
Anyone did it?
Can you maybe work on an option to group all your speakers with one button?
This is useful if you connect the playbar to the tv, without using all speakers in house.
If you can group all the speakers afterwards, you could easily hear the same song troughout your whole house.

Besides that it's great that you're working with IFTTT, can't wait to see more 😃!
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?

Userlevel 1
Sorry pasted 2 screen shots together incorrectly on the previous post hence the double up on some options.

Userlevel 1
@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.[/quote]

Yes I have the same issue.

Can I suggest adding a 'notification' type which will resume the previous scene or state after playing a chosen sound/track at a specific volume.

LIFX have this functionality with IFTTT. Below the IFTTT Applet flashes the lights in a predefined Scene (group) blue at a 100% brightness when my doorbell rings. Afterwards they return to the colour and brightness they were previously at. Obviously not so noticeable in the day time so I really hope to be able to use Sonos as well.

Perhaps in the meantime you could remove the looping notification/tracks?

Userlevel 1
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 1000* +1. delighted to be getting closer to a proper integration for my Ring doorbell and my Sonos speakers. Gutted that I cant use it as the notification just loops.
Userlevel 7
Badge +26
Hopefully that is not one of the features going away in the upcoming desktop update.
It's not going away with that update. It's some of the configuration and setup stuff within settings that are getting removed, and just about everything that's going away is listed in the thread. (I only say "just about" in case I forgot something.) Music library management and playlist work will all be staying the same. Including adding radio stations.

But let's keep that discussion in the right place.
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.



Hopefully that is not one of the features going away in the upcoming desktop update.
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?
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.


Thanks so much. This changes EVERYTHING 😃
Userlevel 3
Badge +6
Ok could someone please explain to me how when away, I can turn on individual Sonos throughout the house to play something so neighbours think there is someone in,for example.
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 2
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. 🆒
This is really cool.

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?
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: