Homey Community Forum

URL to run flow

Hi

Can anyone explain how I can trigger a flow from an URL (internal)?

Best regards
Michael

Hi there,
can you elaborate what you mean by internal?
Otherwise there are several options to use webhooks. Some super complex and powerful down to very easy and simple. If you could explain a bit more what you want to do maybe it is easier to propose a suitable solution :slight_smile:

I just wants to be able to send a GET url to the Homey from another computer.

Ï have LK IHC in my house, its not possible to connect IHC directly to the Homey, but I can send GET URL from the IHC computer.

This means I would be able to send a GET URL when I switch on my alarm to execute the flow “Away”

If you just want to call a get URL then you could use one of my apps. It is lightweight, simple and easy to use and understands simple GET calls to transform them into a a flow trigger: Micro Web Server | Homey

For more complex tasks you can have a look at this here: Webhook Manager | Homey

And of course you could also mingle with webhooks on Homey’s developer page too: Homey Developer

There’s also the built-in Logic card “A webhook is received”.

The webhooks page on the Developer website is meant for app developers that want to use webhooks in their apps.

1 Like

in addition you can use:

But thanks @robertklep I didn’t know there is a build-in Logic card.

I have tryed the webhook manager and HTTP request flowcard without luck
Can somebody please write a step by step guide?

Webhook manager, I used the “on event test” (Webhook flow card)
then I tryed to post my URL
https://webhooks.athom.com/webhook/XXXXXXXXXXXXXXXXXXXXX/?token=XXXXXXXX&event=test

Nothing happens, I get (OK) in browser

@Kongedam
Sorry. Never used the webhooks and that manager app myself. I preferred direct communication with Homey. Hence why I added that to the Micro Webserver, which could be used like this:
image
Details on this in particular can be found here: [App] Micro Web Server

i’ll give you an hint, you should read hints that are there in flow cards (the small i icon, from information), as there it explains the right url to call to:
webhook
Translation:

Make a GET request to Homey from another device. Example:
https://<homey-cloud-id>.connect.athom.com.api.manager/logic/webhook/<event>?tag=<tag>

2 Likes

While we’re giving hints: you should read what @Kongedam is actually writing. He’s trying to use the Webhook Manager app, which uses URL’s of the form https://webhooks.athom.com/webhook/...

I didn’t even know there was an app for webhooks outside of the HTTP app :upside_down_face: learn something new everyday

1 Like

Correct,
Can someone make a step by step guide to it?

I made a flow like this
flow

Then I call it from Chrome browser on my computer with this URL
XXXXXX = the numbers from Webhook Managers settings page

https://webhooks.athom.com/webhook/XXXXXXXXXXXXXXXXXXXXXX/?token=XXXXXXXXXX&event=test

Should I call “test” as the flowcard is named or “testing” as the flow is called?

chrome_2021-03-06_08-28-37
So event=test

1 Like

It works now,
I did everything correct, but it dident work.
After a restart og the homey it works :slight_smile:

Hi Brian

I know this is not the right topic. I have IHC as well. Did you manage to send a command to IHC as well.
I’m spending too much time in HASSIO at the moment I just wants to be able to Connect my IHC, Google Home and Hue together with one device, and Homey seems to be a good solution for that. :slight_smile:

I have full connection between Homey and IHC in both directions. You will need IHC Captain beta version running in between :relaxed: