Flic buttons. Local or cloud based?

I use Flic buttons around the house for different things. I noticed that the ones that trigger Homey Flows are not working when the internet is down.

I thourght they were connected locally. Do they use cloud connection to trigger Homey Flows?

I have a Flic Hub and a Homey Pro 2023.

1 Like

The app uses webhooks:

Now, I suspect the dev uses internet webhooks instead of local webhooks, that’s why it doesn’t work when inet is down.

Discuss this with the app developer please, support links are present at the app store app page

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.

Andy

Hi

Thanks for the input.

Sorry for not clarifying. I’m not using the Flic app for Homey, but the build in feature in Flic that can trigger Flows in Homey from the Flic Hub.

Hi

So you installed that web server in order to have the Flic’s communicate locally?

How do you set that up? It sounds a little cumbersome, but perhaps its because I dont see how it would work :slight_smile:

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.

Andy

1 Like

Wow, thanks for the explanation! :slight_smile:

I saw that there is a logic card for a Webhook event.

Would that work without having to install the Micro web server app?

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

1 Like