Sonos via IFTTT
· v0.3.3
About
Instructions:
https://r-485-apps.wixsite.com/sonos
___
Please READ the full description, including the "What's New" section (click "MORE")!
__
Disclaimer 1: this widget is not an official Sonos or IFTTT application. All product names, logos, brands, trademarks and registered trademarks are property of their respective owners. All company, product and service names used in this description and in the app are for identification purposes only.
Disclaimer 2: this widget is not easy to configure, especially if you aren’t familiar with IFTTT. Good luck!
Disclaimer 3: the features are limited in the free version. Read more in "What's new"
__
→ Do you own Sonos speakers?
☑ YES
→ Do you know how to control them using IFTTT?
☑ YES
If your answer is yes to both questions, download this widget and READ the description (OPEN the links!).
__
1) What is IFTTT?
IFTTT, also known as “if this then that”, is a free platform that helps you do more with all your apps and devices. You can create fun, relevant and personal Applets for your Sonos speakers. When something happens, your speakers can inform you. For example, you can play a tune on your Sonos speakers when the weather forecast indicates rain, so you remember to take an umbrella with you to work.
IFTTT connects “services” to implement the logic. For the example given above, you can connect a weather forecast service (Weather Underground) to the Sonos service. Such a logic flow (i.e. “IF rain forecast THEN turn hue blue”) is defined as an “applet”. You can use the IFTTT app on your phone (download from the Google Play or App Store) or their website.
The services include Strava, Uber, Facebook, Instagram, YouTube, Spotify, FitBit, Google Calendar, The New York Times…
Suggestions of how to use IFTTT with Sonos (from the official IFTTT page)
https://ifttt.com/sonos
YouTube videos on how to use IFTTT to control your Sonos speakers
https://www.youtube.com/results?search_query=ifttt+sonos+speakers
2) What are IFTTT webhooks and how to use them to trigger events?
“Webhooks” are in the list of available “services” on IFTTT. If you just type “webhook” in the search bar of the IFTTT app on your phone, you’ll find it.
In practice, a webhook is a unique web address (URL) that accepts a request from a browser or from any device connected to the internet. When this URL is requested, IFTTT recognizes it as a trigger and runs an applet (you have to create and configure the applet yourself! That can be done easily using the IFTTT app on your phone). When you are logged to your IFTTT account, access https://ifttt.com/maker_webhooks to get a key. This key is needed to construct the URLs which you’ll use to trigger your applets.
As you’ll learn when reading the DOCUMENTATION (a link to the documentation will be available on that page when you are logged in), a webhook URL looks like this:
https://maker.ifttt.com/trigger/{event-name}/with/key/{your-IFTTT-key}
You can configure an applet to pause your Sonos speaker when the following URL is called:
https://maker.ifttt.com/trigger/sonospause/with/key/{your-IFTTT-key}
Hint: after you configure the app, you can test the URL from ANY browser (e.g. Google Chrome on your phone). We recommend that you do that BEFORE testing the widget.
_____
Privacy policy
r.485 apps do NOT collect or sell any personal information. Some r.485 apps, however, offer interfaces on which you can request data from third-party services (e.g. IFTTT). These services may be able to access and collect some of your information on the moment you make a request. r.485 has no influence on this data collection process and will not be responsible for any privacy issues related to you and the third-party services. For more information: https://r-485-privacy-policy.blogspot.be
What's new
This application can be used for free during a few days. After this trial period, you must become a premium user of the r.485 app pack. Support the development and unlock the app!
✔ Use our mobile app pack to unlock:
ツ Android ★★★★★:
• play.google.com/store/apps/details?id=com.connectiq.r485.mapsr485companion2
ツ iOS ★★★★★
• itunes.apple.com/us/app/id1502830009
The upgrade is sold by Apple's App Store and Goolge's Play Store. They handle the payments and collect taxes. Therefore the prices may vary from country to country.
.
Remark: IFTTT has a free "standard" plan and a paid "pro" plan (https://ifttt.com/plans). Unlocking this widget does NOT upgrade your IFTTT plan.
.
Click "MORE" to read the full description.
.
Use the Garmin Connect Mobile app to edit the settings (http://apps.garmin.com/settingsHelp).
.
Please use the link "contact developer" if you have questions.
.
*!*!*!*!* What does this widget actually do? *!*!*!*!*
This widget makes requests to webhooks. So, before you use it, you should configure the webhooks that will control your Sonos speakers. If you read the previous sections carefully, you should already be able to do it.
When you press a button on the widget (e.g. “play”), it makes a HTTP request to
https://maker.ifttt.com/trigger/{event-name}/with/key/{your-IFTTT-key}
- If you press the play button, {event-name} is "sonosresume".
- If you press the pause button, {event-name} is "sonospause"
- If you press the previous button, {event-name} is "sonosprevious"
- If you press the next button, {event-name} is "sonosnext"
- If you press the volume button, {event-name} is "sonosvolume". "value1" is the volume chosen. Use it as a "ingredient" in the applet.
{your-IFTTT-key} must also be configured in the widget settings.
Use the Garmin Connect Mobile (or the Garmin Connect IQ Store) app on your phone to change the settings. You can also use Garmin Express on your computer. Here is an explanation on how to do it:
https://forums.garmin.com/developer/connect-iq/w/wiki/14/changing-your-app-settings-in-garmin-express-gcm-ciq-mobile-store
Remark: if you have more speakers, you can indicate it in the widget settings. As from the second speaker, the event names will be appended with a number (e.g. "sonosresume2", "sonospause2", etc).