# Connect with webhook json format and use in flow

**URL:** <https://community.homey.app/t/connect-with-webhook-json-format-and-use-in-flow/63539>\
**Category:** Questions & Help\
**Tags:** flow, homey-pro\
**Created:** [May 12, 2022, 4:22am UTC](https://community.homey.app/t/connect-with-webhook-json-format-and-use-in-flow/63539 "2022-05-12T04:22:32Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bono\_van\_der\_Pasch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bono_van_der_pasch/32/54793_2.png) [@Bono\_van\_der\_Pasch](https://community.homey.app/u/Bono_van_der_Pasch)\
**Post date:** [May 12, 2022, 4:22am UTC](https://community.homey.app/t/connect-with-webhook-json-format-and-use-in-flow/63539/1 "2022-05-12T04:22:32Z")

</div>

Goodmorning!

Maybe you can maken my morning better haha! I was try to use a text from a incoming webhook post in my homey. The text is every time something else.

This is what I get from the webhook:

{  
“\_data”: {  
“actionData”: {  
“Timestamp”: “2022-05-11T12:17:53.4670000”,  
“ControlID”: “b”,  
“MsgInID”: “-100480081”,  
“MsgOutID”: “100480081”  
},  
“remote”: true,  
“notificationId”: “1766FC90-B82E-42FE-97FD-960373499FE5”,  
“priority”: “10”  
},  
“\_remoteNotificationCompleteCallbackCalled”: false,  
“\_isRemote”: true,  
“\_notificationId”: “1766FC90-B82E-42FE-97FD-960373499FE5”,  
“\_alert”: “ \*\*TEST BR P1 teststraat 1 \*\* ”,  
“\_sound”: “pager.caf”,  
“\_category”: “reply”,  
“\_contentAvailable”: 1  
}

I want to put the text after alert in a variable and use them for let Sonos speak.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/7/c7e52970b4431143f3e7064d237c31002422f1b1.png)

This is a video how they made it in home assistant. I hope someone can help me with the webhook and json.

[![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/6/96cf9835bbba4427c316c80fcc3271b22708a430.jpeg "PreCom Home Assistant webhook automation") ](https://www.youtube.com/watch?v=Cn6SOPvGPis)

Thanks! Greeetz Bono

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 12, 2022, 3:55pm UTC](https://community.homey.app/t/connect-with-webhook-json-format-and-use-in-flow/63539/2 "2022-05-12T15:55:06Z")

</div>

Hi Bono,

This might get you started. Read the replies on this topic:

> [@Generate a device with json data](https://community.homey.app/t/generate-a-device-with-json-data/49439):
>
> Hello, I have a device sending this json data: ([http://192.168.180.134/data.json](http://192.168.180.134/data.json)) {"software\_version": "NRZ-2020-133", "age":"54", "sensordatavalues":[{"value\_type":"SDS\_P1","value":"0.90"},{"value\_type":"SDS\_P2","value":"0.70"},{"value\_type":"BME280\_temperature","value":"22.82"},{"value\_type":"BME280\_pressure","value":"98221.00"},{"value\_type":"BME280\_humidity","value":"52.27"},{"value\_type":"samples","value":"4958986"},{"value\_type":"min\_micro","value":"28"},{"value\_type":"max\_micro","value"…

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [May 12, 2022, 4:09pm UTC](https://community.homey.app/t/connect-with-webhook-json-format-and-use-in-flow/63539/3 "2022-05-12T16:09:12Z")

</div>

The issue here is that the data gets pushed to Homey in a webhook.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 12, 2022, 4:10pm UTC](https://community.homey.app/t/connect-with-webhook-json-format-and-use-in-flow/63539/4 "2022-05-12T16:10:52Z")

</div>

With http request app Homey can listen for a POST webhook

> ![Screenshot_20220512-181941_Chrome~01](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/b/3befcc27c83798b0b8ab93fe33eb3464c1ff4c89.jpeg)  
> Hint:  
> ![Screenshot_20220512-181807_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/0/500f8523bf22fc413dad552ed1862d0fcacbcb1c.jpeg)

.  
Then one could extract a value from the JSON body and save it to a BetterLogic variable.

> ![Screenshot_20220512-181923_Chrome~01](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/2/e267b5f04b3d79a15bb00eb0633c919f620d9b83.jpeg)  
> Hint:  
> ![Screenshot_20220512-181842_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/5/752e43a5975a1a3013bb5c02501a9c4fab7be99b.jpeg)

---

<div class="post-metadata">

**Author:** ![Joenoo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joenoo/32/18671_2.png) [@Joenoo](https://community.homey.app/u/Joenoo)\
**Post date:** [May 13, 2022, 6:47am UTC](https://community.homey.app/t/connect-with-webhook-json-format-and-use-in-flow/63539/5 "2022-05-13T06:47:47Z")

</div>

This looks very similar to what I am doing here: [[How To] Setup two-way communication between Homey and Android smartphone](https://community.homey.app/t/how-to-setup-two-way-communication-between-homey-and-android-smartphone/55510)

A bit more detail:

With the Tasker plugin AutoNotification it is possible to intercept any notification on your Android phone. Then you just sent the data of that notification via Tasker as a webhook to Homey.

---

<div class="post-metadata">

**Author:** ![DaanV](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@DaanV](https://community.homey.app/u/DaanV)\
**Post date:** [May 13, 2022, 4:00pm UTC](https://community.homey.app/t/connect-with-webhook-json-format-and-use-in-flow/63539/6 "2022-05-13T16:00:58Z")

</div>

The webhook from PreCom in iOs is working for me. Also the text over the Sonos speakers. I hope this is also working for you. The webhook URL in the PreCom app for me is then [https://xxxxAthomCloudIdxxxx.connect.athom.com/api/app/com.internet/pager](https://xxxxAthomCloudIdxxxx.connect.athom.com/api/app/com.internet/pager)

 ![13-5-2022 17-57-51](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/7/479b79bfc6fca502bb1ac2c81761fd958dc633ce.jpeg)  
 ![13-5-2022 17-58-21](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/b/fb2e99b43f88d370ad0237e6400485f63119d7b9.jpeg)

Grt, Daan

---

<div class="post-metadata">

**Author:** ![DaanV](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@DaanV](https://community.homey.app/u/DaanV)\
**Post date:** [October 1, 2023, 3:53pm UTC](https://community.homey.app/t/connect-with-webhook-json-format-and-use-in-flow/63539/9 "2023-10-01T15:53:20Z")

</div>

I have now purchased a Homey Pro 2023. But the http request flow cards app no ​​longer works. How can I send a request to my homey and convert the json objects to a tag?

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [October 1, 2023, 4:06pm UTC](https://community.homey.app/t/connect-with-webhook-json-format-and-use-in-flow/63539/10 "2023-10-01T16:06:43Z")

</div>

You can use the build in Logic: “Webhook event received” card

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [October 1, 2023, 5:44pm UTC](https://community.homey.app/t/connect-with-webhook-json-format-and-use-in-flow/63539/11 "2023-10-01T17:44:10Z")

</div>

and you can process the JSON with one of these ‘advanced flow’ cards

 ![Screenshot_20231001-201106_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/7/2718e20bdba63485716b189b2125f2cc20bd6d32.jpeg)

There’s also 2 webhook apps you could check out

> [@\[APP\]\[Pro\] Webhook.manager](https://community.homey.app/t/app-pro-webhook-manager/50357):
>
> Support topic for the app [Webhook Manager](https://homey.app/a/webhook.manager/) After installing the app, go to the ‘Settings’ page and see the Webhook Manager settings. It shows the URL you can POST to and example code in PHP with the correct URL for your installation. For example, in PHP using CURL: \<?php $data = array("event" =\> "MyEvent", "data1" =\> "test1", "data2" =\> "test2", "data3" =\> "test3"); $data\_string = json\_encode($data); $ch = curl\_init('http…

> **[Webhooks](https://homey.app/en-gb/app/skogsaas.webhooks/Webhooks/)**
>
> Webhooks with full access to request headers, query and body

---

<div class="post-metadata">

**Author:** ![DaanV](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@DaanV](https://community.homey.app/u/DaanV)\
**Post date:** [October 1, 2023, 7:07pm UTC](https://community.homey.app/t/connect-with-webhook-json-format-and-use-in-flow/63539/12 "2023-10-01T19:07:12Z")

</div>

> [@Peter\_Kawa](#):
>
> ere’s also 2 webhook apps you cou

Thanks for your quick response. The second app ‘Webhooks’ worked for me. In combination with logic cards I can convert the json object to a text tag.

---

<div class="post-metadata">

**Author:** ![Jeroen\_Reijling](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_reijling/32/12749_2.png) [@Jeroen\_Reijling](https://community.homey.app/u/Jeroen_Reijling)\
**Post date:** [December 3, 2024, 9:39pm UTC](https://community.homey.app/t/connect-with-webhook-json-format-and-use-in-flow/63539/13 "2024-12-03T21:39:31Z")

</div>

Did you also get this to work on the Home Pro 2023?

---

<div class="post-metadata">

**Author:** ![Jack\_Krielen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jack_krielen/32/13556_2.png) [@Jack\_Krielen](https://community.homey.app/u/Jack_Krielen)\
**Post date:** [December 24, 2024, 2:07pm UTC](https://community.homey.app/t/connect-with-webhook-json-format-and-use-in-flow/63539/14 "2024-12-24T14:07:37Z")

</div>

Hey Jeroen,

You can try to use the app PreCom from the app store;  
1.0.5: [PreCom App for Homey | Homey](https://homey.app/en-nl/app/com.krielkip.precom/PreCom/)  
Test version (1.1.0) : [PreCom App for Homey | Homey](https://homey.app/en-nl/app/com.krielkip.precom/PreCom/test/)
