Send webhook from GitHub to Homey

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 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
It looks fine and all deliveries seems to be sent as they are supposed to.

Back at 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.

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.

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

“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.

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.

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

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:

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:

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:

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

(%20 is a space, URL-encoded)

1 Like