How to Fire IFTTT applets through BLI commands

BeoLiving Intelligence is capable of firing IFTTT applets in a really simple way. This tutorial will show you the configuration process with an example that illustrates how to find your phone just by pressing a wall button.

Basically, BeoLiving Intelligence will trigger your Applet by sending a POST HTTP request to an specific URL. Depending on the trigger selected a body message with an specific format will be needed or not. To fire HTTP requests with BeoLiving Intelligence, Custom HTTP driver must be configured correctly to fire all Applets you want with multiple requests.

Creating your IFTTT applet with Webhooks as a service

To create your Applet follow the next instructions:

  1. Choose Webhooks as a service (the one that will trigger your Applet).
  2. Select “Receive a web request” as a trigger.
  3. Set an “Event name” that will identify your trigger.
  4. Select the action of your Applet. Depending on the action selected, a JSON body on the POST HTTP sent by BeoLiving Intelligence should be added. For the example showed in this document select the action “VoIP Calls” (IFTTT application must be installed in your phone).
  5. To know the URL that will fire your Applet its necessary to visit the IFTTT Webhook documentation and go to “Documentation”. The trigger URL will be shown. “{event}” value should be equal to the Event name you chose at point 3. Also the optional JSON body is mentioned at point 4.

Configuring Custom HTTP driver on BeoLiving Intelligence

Enter to the web-interface of BeoLiving Intelligence and follow the next steps:

  1. Add Custom HTTP system.
  2. At “Connection settings” of Custom HTTP driver insert constant prefix of your Applet trigger URL as the Base Url. For example, if the URL is https://maker.ifttt.com/trigger/myFabulousEvent/with/key/abcDFgHijK, insert just https://maker.ifttt.com/trigger/.

    Custom HTTP Connection Settings
  3. Go to Resources and add a “POST” resource with the rest of the URL at the resource address. For example, address equal “myFabulousEvent/with/key/abcDFgHijK”. Add as many resources as Applets you desire to fire. If it’s necessary (depending on your Applet) add the body of the request (check Custom HTTP system help for more information). In the case of the Applet that it’s being described in this tutorial, body request is not necessary.

    HTTP resources
  4. Create a Macro setting a SEND command on the Custom HTTP resource created at 4. Add the Event you prefer. In our example, this could be any physical button of your configuration. After pressing this button, the HTTP request will be fired and your phone will start ringing.

    HTTP macro