How to use IFTTT with TRIGGERcmd
This YouTube video shows and example using SmartThings -> IFTTT -> TRIGGERcmd:
The example below lets you email firstname.lastname@example.org from your IFTTT account's email address to trigger commands.
The email needs the computer name in the subject, and the trigger name in the body of the email.
- Log into your IFTTT account.
- Go to https://ifttt.com/create.
- Click the "+ this" link.
- Type "email" and click Email.
- Click Send IFTTT any email.
- Click the "+ that" link.
- Type "webhooks" and click Webhooks.
- Click Connect.
- Click "Make a web request".
- Paste this whole line into the URL field:
- Change the Method to POST.
- Change Content Type to "application/x-www-form-urlencoded".
- Change Body to:
- Click Create Action
- Click Finish
You can use the same concept to trigger commands with other IFTTT services (instead of Email) too of course.
I recommend you don't open your garage with a post on facebook.
See this article for how to pass parameters to your commands. You basically need to add another POST parameter called 'params' that contains your command parameters. You can put params in your URL with ¶ms=russ.txt, or you can add ¶ms=russ.txt to your IFTTT Body field.
Like this, but don't put a carriage return between your token and the & even though it looks like there is one in this screenshot:
This opens up a lot of possibilities. I just setup an IFTTT trigger to display on my PC any pictures I add to a Google Photos album.
trigFox last edited by
I think you've got Subject and Body reversed because the computer name is in the subject.
@trigFox , thank you for pointing that out! I fixed it. Now the screenshot matches the web request URL.
I'm new to this so sorry for the silly question...
If I want to run a trigger from IFTTT, for example, a trigger called "spotify" (which works when I trigger it from the web page manually), I then use this for the URL:
and then later in the IFTTT webhook I set the body to:
token=sdfhksdhfjkasdhfajksdfhajkhf.......... (whatever it is for my computer)
@dfwjr1973, you're close, but you're missing the computer part of the URL.
Thanks!! I try it when I get home tonight! Awesome app, BTW...
Thank you. Let me know your results please.
Yep...it works. Thanks for the help!
Here's another example.