# Send webhook from GitHub to Homey

**URL:** <https://community.homey.app/t/send-webhook-from-github-to-homey/35753>\
**Category:** Questions & Help\
**Created:** [October 10, 2020, 3:59pm UTC](https://community.homey.app/t/send-webhook-from-github-to-homey/35753 "2020-10-10T15:59:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Markus\_Sacramento](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/markus_sacramento/32/1277_2.png) [@Markus\_Sacramento](https://community.homey.app/u/Markus_Sacramento)\
**Post date:** [October 10, 2020, 3:59pm UTC](https://community.homey.app/t/send-webhook-from-github-to-homey/35753/1 "2020-10-10T15:59:48Z")

</div>

I have a GitHub Respository which I would like to send webhook to homey when data changes.  
I have created a webhook at:  
[https://developer.athom.com/webhooks](https://developer.athom.com/webhooks) and then used the URL and secret to set up the webhook at my github respository:  
[https://github.com/“USER”/cgm-remote-monitor/settings/hooks](https://github.com/%22USER%22/cgm-remote-monitor/settings/hooks)  
It looks fine and all deliveries seems to be sent as they are supposed to.

 ![1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/f/bf2ed9b5b44a3ab4c330c051cec49a21f1e54930.png)

Back at [https://developer.athom.com/webhooks](https://developer.athom.com/webhooks) the Trigger count and last trigger are updated everytime I test to redeliver from GitHub so I think It recieves the webhook.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/9/0927bf6c18cc880ae4b557ec991b71a88ee30e38.png)

But I don’t manage to get the data some how.  
I’ve created a flow like below but I don’t know what I should put in since I would like to begin to retrieve all data just to know It is working.

 ![Screenshot_20201010-175524_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/d/ad82b11d4bf2c9fb52f7ccc33a39ea6146118a7c.jpeg)

Does anyone have any sugestions on how to make this to work?

---

<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:** [October 10, 2020, 7:55pm UTC](https://community.homey.app/t/send-webhook-from-github-to-homey/35753/2 "2020-10-10T19:55:19Z")

</div>

“Händelse” (event?) cannot be a wildcard, it should be a static string. So really the only dynamic data that you can pass should be contained in the “tag” parameter. There is no possibility to read any body data, for instance.

---

<div class="post-metadata">

**Author:** ![Markus\_Sacramento](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/markus_sacramento/32/1277_2.png) [@Markus\_Sacramento](https://community.homey.app/u/Markus_Sacramento)\
**Post date:** [October 11, 2020, 6:29am UTC](https://community.homey.app/t/send-webhook-from-github-to-homey/35753/3 "2020-10-11T06:29:39Z")

</div>

I see. Some page I read about Webhooks said that a wildcard gives you all your event.  
But that’s not importent I can specify from GitHub but I still don’t get values.  
When I created the Webhook as a test it sends a ping event. I guess that event is called ping?  
I have changed the event-name from wildcard to ping and I still doesn’t get any data down to my Homey.  
I think the Webhook catch at my Athom cloud service (development) doesn’t send anything to homey but I’m not sure how to write that function.

---

<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:** [October 11, 2020, 6:52am UTC](https://community.homey.app/t/send-webhook-from-github-to-homey/35753/4 "2020-10-11T06:52:38Z")

</div>

The “help” on the flow card shows the URL that you need to pass to Github:

```auto
https://<homey-cloud-id>.connect.athom.com/api/manager/logic/webhook/<event>?tag=<tag>

```

Which means that `<event>` is something you have to define yourself (also `<homey-cloud-id>` should be replaced by your actual Homey cloud id, and `<tag>` is also something you can define yourself).

So if you have a trigger on the event “ping”, the URL needs to be:

```auto
https://<homey-cloud-id>.connect.athom.com/api/manager/logic/webhook/ping?tag=<tag>

```

If you want to trigger on an event “foobar”, the URL would be:

```auto
https://<homey-cloud-id>.connect.athom.com/api/manager/logic/webhook/foobar?tag=<tag>

```

So `<event>` should be replaced by the event string that you defined in the trigger flow card.

The data that gets passed to `tag` will be available as a tag in Homey’s flows. So if you want to trigger an event “ping” with tag data “Hello World”, the URL would become this:

```auto
https://<homey-cloud-id>.connect.athom.com/api/manager/logic/webhook/ping?tag=Hello%20World

```

(`%20` is a space, URL-encoded)
