Thumbnail

IFTTT Sender

Provides a means to send HTTPGet() messages from ARC to the IFTTT applet Webhooks Channel in the IF This clause, allowing EZB scripts to use a ControlCommand() to activate IFTTT applets

Requires ARC v4 (Updated 5/22/2017)

How to add the IFTTT Sender robot skill

  1. Load the most recent release of ARC (Get ARC).
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Robot Skill from the button ribbon bar in ARC.
  4. Choose the Misc category tab.
  5. Press the IFTTT Sender icon to add the robot skill to your project.

Don't have a robot yet?

Follow the Getting Started Guide to build a robot and use the IFTTT Sender robot skill.

How to use the IFTTT Sender robot skill

Please note that this plugin only handles the sending of messages to IFTTT. If you plan on receiving messages from IFTTT, take a look at this tutorial: https://synthiam.com/Support/Skills/Misc/IFTTT-Sender?id=15883

As this is my first plugin, it may be a bit rough... feedback and advice welcomed. Thanks to DJ Sures for the great plugin tutorial and sample code.

User-inserted image

  • Click on My Applets

    User-inserted image

  • Click on New Applet

    User-inserted image

  • Click the "If This" clause

    User-inserted image

  • Choose Maker Webhooks channel

    User-inserted image

  • Choose a trigger- receive a web request

    User-inserted image

  • Enter an Event Name- Remember this exact name for use in your EZB script. In my example, I chose office_light_on Click Create trigger

    User-inserted image

  • Click Then That

    User-inserted image

  • Choose Action Service- in may case, SmartThings.. you could chose anything e.g. WeMo

    User-inserted image

  • The rest of the steps are SmartThings specific... Choose Action

    User-inserted image

  • I picked Switch On

    User-inserted image

  • Finally- Finished with IFTTT side

    User-inserted image

  • Now, unto setting up the Plugin..... In your EZB project, add the IFTTT Sender Plugin

    User-inserted image

  • Click the Configure button

    User-inserted image

  • Click the Get Key button

    User-inserted image

  • Copy the IFTTT key

    User-inserted image

  • Paste it into the form and save it

    User-inserted image

  • The plugin is now ready to use...

  • Create a script in your project

    User-inserted image

  • Right-click in your script and choose ControlCommand for IFTTT Sender

    User-inserted image

  • Edit the script- use the exact Event Name you setup in the IFTTT applet. Remember to keep the quotes

User-inserted image

  • Save your script and test it

    User-inserted image

  • You are now ready to start using the plugin in any script... enjoy


ARC Pro

Upgrade to ARC Pro

Synthiam ARC Pro is a new tool that will help unleash your creativity with programming robots in just seconds!

#1  

I did all of the things you mentioned but

User-inserted image

it  mentions Send event is not defined. Doesn't it need to know which website to go to -IFTTT. Is this site built in behind the scenes? I put in the key as you have suggested and erased the preliminary words that were copied and pasted at the same time. Any suggestions?

PRO
Synthiam
#2  

His example is ezscript. You’re using JavaScript which means the command needs to be in quotes

also check ControlCommand() Cheat Sheet list. Does that not show the correct command?

#3  

I did use the Cheat Sheet in Javascript and pulled up the ControlCommand for IFTTT. I then changed the word Event_name to Button to keep it simple (this is also the name of the applet in IFTTT) and kept the "  " around it . It seems like it should have worked but it states that it is not defined. Do I need to define it somewhere else? somewhat similar to what you do with a global variable in a script.

PRO
Synthiam
#4  

I’ve never used this robot skill so I was only guessing some suggestions. When I’m home tonight or tomorrow I’ll take a look and see if I have any ideas

#5  

Appreciate it. Looks like this skill was done in 2017 and it may need some updating. If you can verify that it works on your end then I can conclude it is something on my end that needs modification.

#6  

Just a heads up- I tried to put the IFTTT app on my Iphone this morning and think the app itself was hacked as it had a very suspicious username, password and email already filled in. I did not continue with it for my phone but it is already ok and on my computer.

#7   — Edited

I don't know anything about this skill or if this skill is outdated or not and will work. However In any case, DJ is correct. If the script you are using is the one you picture then writing in Javascript you will need the have quotes " " around the command SendEvent. Notice how it's in black type? in your picture. That's a clue that something is wrong in that spot.

Just a guess but maybe you're correct and something else needs to be stated so the script knows where to send the event.

#8  

Great catch Dave!! (maybe that is what DJ was trying to tell me but I didn't realize it) I haven't had to modify that area of the script before so it was new to me. I got it to work although it is a bit slow with a response time of about 45 seconds to a minute. Good for some things but not for others.

#9   — Edited

Automation Man, I'm glad I was able to clarify this for you. Ya, I learned this difference between EZ Script and Javascript the hard way also so it kinda jumped out at me when I saw your picture. EZ Script is very forgiving like that. Then when DJ mentioned it a couple posts later I thought I'd help validate what he was pointing at.

Too bad it's so slow. I hope you can overcome. Have fun.

#10  

I did figure out the issue with response time and reliability. It was that the Wemo devices don't work well with Ifttt.