I didn’t need to create input booleans for the buttons, since they are just making a toggle API call.
Here is an example of the Flic config of an “Internet Request”.
I should mention these are a bit of a pain in the butt to set up since you have to use the Flic app UI through your phone. I’ve put in a feature request for them to have the Hub as a webserver for config!
I have a few Flic Buttons here and I am using it with this https://github.com/pschmitt/home-assistant-addons flicd addon.
I need no Hub and no Phone, only the Bluetooth inside the Pi of my HassOS installation.
Yes, this is correct! To pair it with the Pi you have to press it a few seconds and then you have it inside Home Assistant to use it in automations. That‘s all.
Resurrecting an old thread but I’m looking to purchase several of these flic2 buttons. I run hassio in a VM and it’s in a basement a long way from where the buttons would be deployed anyway.
Can I use my esp32s dotted around the house for Bluetooth pairing and therefore HA integration?
You need the flicd running on the device where you pair the buttons. I have a Pi Zero W for this in a central place in my house.
In Home Assistant I only have to add the IP of the Pi Zero W to let the buttons work.
Simply press them for more than seven seconds. That’s all!
I don’t know where I read this, but it was easy to find.
Then you can go to the developer tools/events and start to listen to “flic_click”. When you press the button once, twice or hold it you will get different events. You will need the “button_name” for your automation.
Like for eg. ZigBee buttons you will not get any device, you have to create an automations which fires at flic_click like here:
Thanks. That makes things a lot clearer. However. No matter how many times or how long I press, the buttons do not seem to pair because listening never gets a response.
I have the flicd running on another Pi. But that should make no difference. I don’t know if you can see the flicd.log. It should look like this (after Home Assistant is started):
cat /var/log/flicd.log
Available HCI devices found:
Trying hci0
Flic server is now up and running!
HCI socket busy, bringing down and then retrying
Successfully bound HCI socket
Initialization of Bluetooth controller done!
Accepted new client
If I click on a new button it flashes red. If I press it 7 seconds and the click it afterwards it doesn’t flash red, as it is connected.
Maybe your Bluetooth is not good, so the buttons don’t get it.
They are flic 2, just got them. I get the same message in my log up to the part that says “Accepted new client.” They are working fine through Amazon Alexa but I really want to be able to run HA routines with them.
I appreciate your help.
There is no explanation of anything there. Install the repository, add the lines to config.yaml and press the button for 7 seconds. There are no troubleshooting tips, no way of contacting the author, nothing. I have no idea what to do.
Yes, it is written how to pair a button, that is what I meant. I don’t know why it is working here and not at your installation. There are only a few things to do and they worked directly here. So I didn’t have to search for problems.
I now this doesn’t help you.
So I may have a solution (but I’m at work now so I won’t be able to test until I get home). It seems that the repository was added but somehow not active in HA. I was looking through the supervisor integration and saw the flic program but it was inactive. I have activated it now so hopefully that was all it took to make it work. I will test and confirm this evening.