![]() ![]() You can also do the same with the battery_status attribute, should you wish to be notified when your buttons are running low on juice. Ĭreate an automation for each button and press type combination, example: Button1 - Click, Button1 - Double Click, Button1 - Hold, etc etc, until you have all your buttons mapped out. 1. ![]() binary_sensor._buttonĮntity_id: binary_sensor._button This is basically a small bit of Javascript that runs directly on your Flic Hub which then connects to your MQTT network. Var url = " IP OF YOUR HA INSTANCE]:8123/api/webhook/-" īuttonManager.on("buttonSingleOrDoubleClickOrHold", function(obj) "įinally, to interact with your button presses or holds, you can now go and create automations based on the binary sensor state and attributes, as follows: - id: '' If anyone is interested in using the Flic buttons with the Flic Hub but without cloud, I’ve got it working using their newish Flic SDK. With double custom Bluetooth chips, The Flic Hub can connect to 64 Flic buttons, Bluetooth speakers, and smartphones at the same time, with next-to-zero delay. ![]() From here onwards, modify only what is in // main.js The Flic Hub has significantly better connectivity than any smartphone out there, optimized for Flic and your smart home. WIRELESS MOUNTING - Flic 2 can be mounted wherever it fits your needs. Set routines for Push, double push or hold. In there, login and click on “Create Module” and give it a name (whichever you want), go to main.js and paste the code below. TRIGGER HOMEKIT ROUTINES - Flic 2 can trigger your HomeKit routines, REQUIRES THE FLIC HUB LR and An Apple TV, iPad or a HomePod set up as a Home Hub. Connect the Flic Hub to your network Either plug in the Ethernet cable or configure WiFi using the Flic app. So Flic Hub has an SDK, which you can access sitting on your local network and accessing the url: Setup To access the Flic Hub SDK, please follow these steps: Power the Flic Hub Power the Flic Hub using the USB port with a power adapter with at least 2A output. Connect your Home Connect appliances to the small Bluetooth button, for example. Also I realize there is the flicd integration, but upon testing it, I found the coverage of using the integrated BT in the RPi4 was very weak, less than half of the Flic Hub as per my testing. With Flic the small flexible assistant for your home this is now easy to do. Hi, recently joined the HA hype and had some Flic buttons and a Flic Hub laying around, so I decided to come up with a solution to integrate them to Home Assistant in a, what I would call, more natural way to interact with the button presses. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |