Struggling with simple IFTTT Integration


#1

1) Give a description of the problem
Im trying to get a simple piston to work with IFTTT

2) What is the expected behavior?
IF movement on a motion sensor then run IFTTT recipe to sound a doorbell (Dlink siren)

3) What is happening/not happening?
not working at all …no bell is rung as the IFTTT recipe never runs

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
19/10/2018, 18:04:45 +163ms
+0ms ╔Received event [Door].motion = inactive with a delay of 50ms
+100ms ║RunTime Analysis CS > 13ms > PS > 74ms > PE > 13ms > CE
+102ms ║Runtime (39367 bytes) successfully initialized in 74ms (v0.3.108.20180906) (101ms)
+103ms ║╔Execution stage started
+122ms ║║Comparison (enum) present is (string) present = true (2ms)
+124ms ║║Condition #2 evaluated true (13ms)
+138ms ║║Comparison (time) 65085288 is_between (time) 7200000 … (time) 82800000 = true (11ms)
+140ms ║║Time restriction check passed
+142ms ║║Condition #3 evaluated true (16ms)
+146ms ║║Comparison (enum) inactive changes = true (1ms)
+148ms ║║Condition #4 evaluated true (4ms)
+149ms ║║Condition group #1 evaluated true (state did not change) (40ms)
+157ms ║║Comparison (string) null executes (string) Doorbell = false (2ms)
+158ms ║║Condition #6 evaluated false (6ms)
+160ms ║║Condition group #5 evaluated false (state did not change) (8ms)
+163ms ║╚Execution stage complete. (59ms)
+164ms ╚Event processed successfully (165ms)
19/10/2018, 18:04:15 +317ms
+2ms ╔Received event [Door].motion = active with a delay of 55ms
+121ms ║RunTime Analysis CS > 13ms > PS > 86ms > PE > 22ms > CE
+124ms ║Runtime (39372 bytes) successfully initialized in 86ms (v0.3.108.20180906) (122ms)
+125ms ║╔Execution stage started
+146ms ║║Comparison (enum) present is (string) present = true (2ms)
+148ms ║║Condition #2 evaluated true (17ms)
+162ms ║║Comparison (time) 65055467 is_between (time) 7200000 … (time) 82800000 = true (10ms)
+164ms ║║Time restriction check passed
+166ms ║║Condition #3 evaluated true (17ms)
+170ms ║║Comparison (enum) active changes = true (1ms)
+172ms ║║Cancelling condition #4’s schedules…
+173ms ║║Condition #4 evaluated true (6ms)
+174ms ║║Cancelling condition #1’s schedules…
+175ms ║║Condition group #1 evaluated true (state changed) (44ms)
+183ms ║║Comparison (string) null executes (string) Doorbell = false (2ms)
+185ms ║║Condition #6 evaluated false (7ms)
+186ms ║║Condition group #5 evaluated false (state did not change) (8ms)
+189ms ║╚Execution stage complete. (64ms)
+191ms ╚Event processed successfully (191ms)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

You have the wrong action. You have a second IF rather than a DO statement. You have to enable Maker Webhooks in IFTTT. Build your recipe using that as the THIS portion of your recipe. It will then give you a link to put into webCoRE. You then have to use the action “make a web request” in webCoRE. If you need a more detailed breakdown, post back here.


#3

So I think I haven’t grasped this at all LOL
Ive integrated IFTTT with webcore , but am VERy confused as to what exactly to set up in ifttt
I assume I want to create a maker event (which I thought I had ) but not sure how to do that so that it actually gets a trigger then runs …ie plays the doorbell sound on the link siren

I made THIS recipe

then another to trigger it (I think )

but pretty sure I’ve actually grasped the concept incorrectly

any help appreciated !

Bill P


#4

you might simplify it for debug, take out the time and presence checks and see if it works with just motion


#5

Wait…why are you triggering a web request from a web request from a web request? What is actually performing the action of making the doorbell go off? Is it ST? or something else?


#6

you should just need the first ifttt i think, i have one that i use to set my Leeo color led…

then from webcore to call the ifttt…
Send the set_leeo_up_color IFTTT Maker event, passing value1 = 'x005500';


#7

Thats where I’m confused
Im simply trying to say to IFTTT
IF movement happens, trigger the siren (thats controlled by IFTTT)
So my first attempt at a recipe assumed that I create a maker event called doorbell which is then called by WEBCORe… th confusion arose as I watched a video where it implied I needed to enter a url into an IFTTT recipe to make this work at all …hence the 2nd one …


#8

editted my previous post while you were typing. this is how to call the ifttt

Send the set_leeo_up_color IFTTT Maker event, passing value1 = 'x005500';


#9

You need only the first of your two recipes. You will then put the link generated from that recipe into webCoRE. To get the link you need, you have to go into the setting of the maker webhooks service in IFTTT.

2018-10-19
2018-10-19%20(1)
2018-10-19%20(2)

That will give you the url that you have to post into your WebCore settings page.

Only then can you make a webcall to IFTTT using the built in integration. Then you don’t select an IF in webCore, but a DO. Leave location as your device and then select “Send an IFTTT maker event” as your action.


Switchbot controlling Aircon
#10

Hmm
ok Ive removed all presence time sensors… no change (Im sure its more fundamental than that LOL )
Kevin…this is only my second piston, so I’m not sure how to achieve what you suggest there …sorry !
Ive also removed the second IFTTT recipe so now have only one saying if maker event DOORBELL then play default sound on Dlink Siren
sorry to be a bit slow here , but I’m not grasping this at all (been a long day LOL )


#11

I have just posted step by step instructions that you should follow to enable the IFTTT integration. Sorry i couldn’t type them faster. LMAO


#12

EUREKA

I did have the integration set up correctly, it was the piston I was getting wrong (and having 2 ifttt recipes LOL )

thats it working now…thank SO much for all your help… now I can put it all back together regarding presence and times etc…

cheers again !!!

Bill P


#13

In webcore, go to settings, then:
2018-10-19%20(3)
Clck on Integrations and then put your URL in the box and click apply.


#14

try new piston from this code…

note that this is not tested…


#15

That piston has no triggers…no little lightning bolts next to your if statements. Be careful.


#16

in the editor there is lightning next to the motion changes to active


#17

This is the one that is now working for me …does this look correct?


#18

Whats the thing about lightning bolts? I have one opposite the doors motion statement… is that ok?