# Logic + webhook

**URL:** <https://community.homey.app/t/logic-webhook/14393>\
**Category:** Flows\
**Created:** [June 13, 2019, 8:53pm UTC](https://community.homey.app/t/logic-webhook/14393 "2019-06-13T20:53:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![HS64](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hs64/32/12501_2.png) [@HS64](https://community.homey.app/u/HS64)\
**Post date:** [June 13, 2019, 8:53pm UTC](https://community.homey.app/t/logic-webhook/14393/1 "2019-06-13T20:53:23Z")

</div>

I have designed a flow in Node-RED, where a webhook is created using mobile IP (fritz.box -\> device presence check). With method “get” the URL is sent to homey.  
With homee works it perfect since months without any problems.  
How exactly does the URL have to be structured in order to work with “logic - a webhook has been received” with homey?  
My sample URLs: (event = anwesend, abwesend / tag = anwesend, abwesend  
[https://homey-cloud-id.connect.athom.com/api/manager/logic/webhook/anwesend?tag=anwesend](https://homey-cloud-id.connect.athom.com/api/manager/logic/webhook/anwesend?tag=anwesend)  
[https://homey-cloud-id.connect.athom.com/api/manager/logic/webhook/abwesend?tag=abwesend](https://homey-cloud-id.connect.athom.com/api/manager/logic/webhook/abwesend?tag=abwesend)  
Where is my mistake 🙂

---

<div class="post-metadata">

**Author:** ![TonD](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tond/32/50_2.png) [@TonD](https://community.homey.app/u/TonD)\
**Post date:** [June 17, 2019, 1:11pm UTC](https://community.homey.app/t/logic-webhook/14393/2 "2019-06-17T13:11:32Z")

</div>

Unfortunately I don’t know what’s going on so I can’t help you, but I just wanted to say I have the same problem. Following @Rocodamelshekima’s suggestion ([IOS Presence app (locative)](https://community.homey.app/t/ios-presence-app-locative/14451)) but for me the webhook flow never seems to be triggered.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [June 17, 2019, 2:11pm UTC](https://community.homey.app/t/logic-webhook/14393/3 "2019-06-17T14:11:33Z")

</div>

Best use event=precense?tag=present  
event=precense?tag=notpresent

Rest of the url looks ok

Flows in Homey will look like this:

![chrome_2019-06-17_16-14-57](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/4/41faa78682df6c96d1240351e66527629fc87f88.png)

---

<div class="post-metadata">

**Author:** ![HS64](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hs64/32/12501_2.png) [@HS64](https://community.homey.app/u/HS64)\
**Post date:** [June 17, 2019, 5:45pm UTC](https://community.homey.app/t/logic-webhook/14393/4 "2019-06-17T17:45:34Z")

</div>

sorry for the second post / topic

 ![homey_1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/5/5714945a6d75969938d842ad4c9b049032ee9ab5.jpeg)

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [June 17, 2019, 5:49pm UTC](https://community.homey.app/t/logic-webhook/14393/5 "2019-06-17T17:49:30Z")

</div>

Which of the webhooks did you run?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/f/f455d53b374aa92684d909f2a7aa6cf7d5e2912c.png)

In the webhook it spells `precense` in the flows `presence`. Might that be the problem?

If not, remove the cards in the And… and Then… column and add one that sends you a message and the received value to check if the webhook is received.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [June 17, 2019, 5:51pm UTC](https://community.homey.app/t/logic-webhook/14393/6 "2019-06-17T17:51:24Z")

</div>

> [@DaneedeKruyff](#):
>
> Might that be the problem?

Guess that was my mistake.  
U can also try to make a flow in Homey to send te GET request by picking a logic card stating “Make a web request” . Just to double check

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [June 17, 2019, 5:53pm UTC](https://community.homey.app/t/logic-webhook/14393/7 "2019-06-17T17:53:26Z")

</div>

Well, you misspelled it both in the webhook and flow part, so it should work if the example was followed to the letter 🤣

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [June 17, 2019, 5:53pm UTC](https://community.homey.app/t/logic-webhook/14393/8 "2019-06-17T17:53:44Z")

</div>

True that

---

<div class="post-metadata">

**Author:** ![HS64](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hs64/32/12501_2.png) [@HS64](https://community.homey.app/u/HS64)\
**Post date:** [June 17, 2019, 6:02pm UTC](https://community.homey.app/t/logic-webhook/14393/9 "2019-06-17T18:02:34Z")

</div>

many thanks for your help…I have found the mistake …it was a problem with Node-RED 🙄
