FWIW, Flic buttons can make web requests. I’ve installed the ‘Micro web server’ app which makes it easy to start Homey flows via a local web request. So, all my Flic buttons communicate with Homey locally - and reliably.
I use the web server to provide a simple dashboard so I got used to using it for web hooks. It helps that you can invoke advanced flows directly - something you can’t do presently with the native Flic integration.
You can achieve the same result using Homey web hooks but this approach is a little simpler, in my view.
Just install the ‘Micro web server’ app to have it create a web server running on port 5080 (you can change that if you want) using the same address as your Homey.
The setup instructions talk about FTP, but you don’t need to do that unless you want to host pages in the server.
To start a flow, simply add the ‘Web Trigger’ when card provided by the app. It can sit alongside other triggers in advanced flows - you don’t have to make copies of existing ones.
In the Flic app, remove the Homey trigger and replace it with an ‘Internet Request’. Select ‘GET’ and enter a URL like:
http://xxx:5080/webTrigger?name=yyy
Where xxx is the address of your Homey (name or IP address) and yyy is the trigger name you assigned to the web trigger card in your flow.
That’s it.
Note there’s no security on the web server. However:
People can connect only through your local network which should be protected
People can execute only those flows that use the web trigger card
And to do that, they need to know the trigger name
I attach a flow I use to control our bedroom fan. The Flic turns it on for a couple of hours or, if it’s already on, turns it off. Note that the flow can also be started manually.
Homey has a built in local webhook implementation as well, but it’s not advertised:
(It is limited to send 1 tag (or argument) aling, whilst Micro Web Server can send max 4 of those).
Pro 2023: http://my_homey_ip/webhook?event=my_event_name&tag=my_tag_goes_here
Pro 2016-2019: http://my_homey_ip/api/manager/logic/webhook/my_event_name?tag=my_tag_goes_here
Replace my_homey_ip with Homey’s local IP (like 192.168.1.x or 10.0.0.x etc.)