Dash Buttons to trigger IFTTT to trigger physical devices?


#1

I currently use Dash buttons to trigger one singular event via IFTTT. I use the dasher code to trigger IFTTT and it’s all fairly straight forward and easy. The issue is I’m only allowed to trigger one item (one light of many in my living room, for example…). I’d like to hit the button and trigger a Webcore Piston instead.

I’ve successfully integrated my WebCoRE to my IFTTT, but I’m not really understanding how to tie it into dasher. I tried setting IF IFTTT is triggered, do this, but I can’t figure out how to trigger that IFTTT.

For my applet, I did --> IF THIS (webhook), then THAT (webhook) with THAT being the URL spit out by webcore. I ran it and nothing happened?


#2

Not sure on webhooks. But can’t you call your piston from IFTTT via the url for your piston?


#3

You can skip IFTTT altogether, just setup Dasher to call a piston URL (as noted by @Gopack2) directly.


#4

Oh yeah, you guys are amazing! Thanks a bunch.


#5

Just discovered webhooks and IFTTT maker using webCoRE to send events to IFTTT and then to my X1 cable box but can you do stuff the other way around using IFTTT to send events to webCoRE?


#6

Yes, search for “ifttt send data”


#7

Hopefully you don’t mind me asking this here but I saw your comment and wondering some details. I’m assuming URL is for external piston URL but what do I use for body?


#8

Body is the data you want to send to your piston. Let me see if I can find a good example.


#9

I was trying to think of a way to arm/disarm SHM SmartThings from IFTTT.


#10

Oh, for the URL, you can just append say… shmCommand=arm or shmCommand=disarm.

In your piston, you can use the variable $args.shmCommand to extract arm or disarm.

Call the external url for your piston… ie http://yourpiston_url?shmCommand=arm

In your piston, you’d have something like…

if $args.shmCommand == arm
  do if_stuff
else
  do else_stuff

Edit: Just a note that you can do this pretty much with anything that can make a webcall.


#11

Not sure if you use iOS but I’d like to do this ultimately with Siri Shortcuts. Here’s a blank shortcut I’ve been using for IFTTT webhooks. Could I do something like this? Basically want to be able to arm and disarm SHM with Siri.

https://www.icloud.com/shortcuts/8844054c99884b1cbd62735e061a7afa


#12

And how do I make mine look like yours with the

shmCommand == arm


#13

Yours will work just fine like you have it. Mine was formatted like that just for text clarity.


#14

Not sure if you use shortcuts or not but how do this on that end? Is it POST or GET?