Total HA newbie here. The last piece of my setup jigsaw, for now, is to get my Flic integrated.
This page and instructions look great, thanks for taking the time to share. I’m not getting any success though. I’ve added the automation in automation.YAML file but nothing happening.
I got my Flic Buttons working with flicd they are working most of the time just fine. The range is very bad and my Bluetooth dongle only supports 5 Buttons max. I got a flic hub laying around.
Is the methode with the flic hub with the sdk and webhooks working localy?
This is absolutely awesome!
I am still trying to figure out how to manage automation based on click types. I only use one help but it seems to switch a light on on click and off on hold without any click type config… which is neat but I want to add a double click function.
I edited line 16 of the flic hub code to make a more detailed log output so you can see the button name and press types. (handy for when you do not know what button it is and what the name you gave it was…)
Can anyone tell me what is going wrong here? I have removed ‘template’ because apparently it only needs to say it once in the config file and it says it at the top and also when I do add ‘template’ it says duplicate key.
Does anyone look at this anymore? I have managed to sort out the above.
I have done everything @diegomorales17 said in their first post yet I cannot get it to work. The flic button does not seem to exist anywhere in my HA and the automation says there is an error.
Am I meant to remove or leave the square brackets? Am I meant to remove or leave the ’ surrounding the bits I have to type?
I wanted to share an integration I have made for Flic Hub. It uses a TCP socket between the hub and HA. The integration will automatically find the hub or can be configured using the UIin HA.
I can’t add the integration to HA. I have installed the components through HACS, I have activated SDK on the Flic Hub and I have created a module based on “tcpserver.js” and started the module. I can see connection attempts from the HA IP but it disconnects and in HA GUI I get an error message: “Unable to connect to device”.
Made by JohNan - GitHub - JohNan/pyflichub-tcpclient
The server should have started now!
Waiting for connections…
Connection from 192.168.5.197
Client disconnected: 192.168.5.197
Have you double checked the port? The default port in the script is 8124 and it looks like you have set 8125 in HA.
But if you see the connection attempt the port should be correct. Can you enable debug logs for the integration and post them here? I think you have to enable them manually by adding it to configuration.yml
logger:
default: info
logs:
pyflichub.client: debug
custom_components.flichub: debug
Same question, this was INCREDIBLY easy to set up and works amazingly well (thank you!) however I can’t see how to differentiate between click, double click, and hold button functions for automations etc. Is there a way to do this that I’m not seeing?
UPDATE: I found this blueprint, and it works PERFECTLY - just add the blueprint, then make an automation for your button based on this and it combines actions for single/double/hold into one automation. BEAUTIFUL!