Here's how to configure IFTTT so that you can use it with bttn HTTP action, or HTTP Short/Long action.


This guide assumes that you already have a my.bt.tn account, a bttn and an IFTTT account.


1) Start by taking into use the IFTTT Maker Webhook channel

- Go to https://ifttt.com/search and search for "webhook". 

- Select "Webhooks" and activate it.


2) Find out your IFTTT webhook address

- See the settings of your new Webhooks channel (https://ifttt.com/services/maker_webhooks/settings)

- This page shows an URL like https://maker.ifttt.com/use/xxxxxyyyyzzz

- Visit the shown URL with your browser. The page that opens will show your unique webhook address. Take note of the address, as this is what we will be targeting with bttn HTTP action later.


3) Create your IFTTT maker webhook applet

- Go to https://ifttt.com/create

- Select the maker webhook as the "This" part
- Select "Receive a web request"

- When asked to give an event name, type for example "start" or "turn_on", something that fits your purpose. Take note of the event name, as you need it to configure your bttn action.

- Select whatever you like as the "That" part and save your applet.

- Be sure to keep the webhook URLs to yourself, i.e. don't share them on Facebook, as anyone can use the URL to launch your IFTTT applet.


- If you wish to use bttn short press to turn something on and long press to turn it off, you can create two similar maker applets. For example one with event "turn_on" and another with event "turn_off". 

- You can now test your new applet by visiting its webhook URL with your browser.


4) Configure your bttn or bttn group to send a HTTP request to your IFTTT webhook address

- Go to my.bt.tn

- Click Action next to your bttn or bttn group

- Create either a new HTTP action or select the "Short / long press (demo)" under 3rd party connections.

- Target your action to the URL given in step 2, and include the event name given in step 3.


- Example of simple HTTP GET:  https://maker.ifttt.com/trigger/start/with/key/xxxxyyyyzzzz

- Example of using start and stop events to control e.g. a Wemo Smart Switch or HUE lights

    Turn on event: https://maker.ifttt.com/trigger/turn_on/with/key/xxxxyyyyzzzz

    Turn off event: https://maker.ifttt.com/trigger/turn_off/with/key/xxxxyyyyzzzz