Webhook And IFTTT


#1

using cayenne webhook trigger feature we will send a custom message notification to the mobile. we will be also using IFTTT for this. https://ifttt.com/discover You can replace the SMS service with other services provided by IFTT. https://ifttt.com/search.

  1. Add a new device to the cayenne dashboard. Here is a tutorial to get started Adding a New Device using MQTT

  2. Add a button to dashboard by following the step to add an actuator from the above tutorial.image

  3. Create a new account in https://ifttt.com/

  4. Let’s start by creating a new applet.image
    image

  5. add the “this” condition.
    image

  1. Search for webhooks.

image
image

  1. Add a new event name and create the trigger.
    image

  2. Now we will create the action.
    image

  3. Choose the action you want to be executed when the trigger happens.image

  4. I will send an SMS notification to my mobile when the button is pressed.
    image

  5. You need to verify your mobile number in next step.

  6. Add the custom message you want when the button is pressed
    image

  7. Create action and click Finish. This complete adding an applet.
    image

  8. Search for webhook Sevice.image

  9. Click on setting to get the URL.image
    image

  10. On cayenne dashboard navigate to triggers.image

  11. Drag and drop the device into the IF condition. Select the button widget and the ON action.image

  12. Click on the Setup Webhook option in THEN.image

  13. Select POST and Add this URL by replacing xxxxxxx… by your URL last parameter from webhook setting. https://maker.ifttt.com/trigger/webhook_testing/with/key/xxxxxxxxxxxxxxxxxxxxxxx

image

image

  1. Click save and it is done.

RESULT:
When you turn ON the button on your dashboard, we get an SMS notification about it.

image

Debug:

Make sure the run counter is incremented, indicating the trigger has successfully occurred.
image


Trigger won't stop sending emails and text messages
Trigger email identification text control?
Trigger notification comment
Controlling "off the shelf" Smart sockets
#2

Nice write up!


#3

@adam looking forward to see come cool project using this from you.