Instructions
1) create an IFTTT account:
www.ifttt.com
2) read the basic principles:
https://help.ifttt.com/hc/en-us/articles/360021401373-Creating-your-own-Applet
Maybe you could try creating some basic applets using services which you are familiar too. You can start with something different than Webhooks or Sonos, just to understand how IFTTT works in general.
3) learn what Webhooks are and get a key:
https://ifttt.com/maker_webhooks
Remark: if you already have a key, you can find it when you access the link to the documentation (which I strongly recommend that you read too)
4) create an applet that looks like:
"If
*Webhook*
then
*Sonos*
To create such an applet on your phone:
- open the app
- tap "get more" at the bottom of the screen
- tap the "+" sign on the right ("make your own applets from scratch"
- tap the "+" sign after "if"
- search for "Webhooks"
- choose the event name (e.g. sonospause. Check the event names used by the widget below.)
- tap the "+" sign before "that"
- search for Sonos
- select an action you want (e.g. pause)
You should be able to run this applet from any web browser. You don't need you watch nor our app to make it work. For example, if you type on Google Chrome:
https://maker.ifttt.com/trigger/sonospause/with/key/your-IFTTT-key
your sonos should pause.
Go to step 5 only after you manage to do it.
5) finally you can configure the widget.
----> If you are a Garmin user:
Use the Garmin Connect Mobile app to enter your IFTTT webhook key and the "event names" on its settings. Instructions:
https://forums.garmin.com/developer/connect-iq/w/wiki/14/changing-your-app-settings-in-garmin-express-gcm-ciq-mobile-store
----> If you are a Fitbit user:
https://help.fitbit.com/articles/en_US/Help_article/2224.htm
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.