![]() main.js - copy in the code below and change the ip address to the local IP of your home assistant server. module.json - you can either leave this alone, or change the name and version number as you wish. This will create a folder with two files. It is a hit and miss and I also had to restart the module and the flic hub couple times. Press Create Module and call it home assistant. States are 'click", “double_click”, and “hold”. Connect the Flic Hub to your network Either plug in the Ethernet cable or configure WiFi using the Flic app. press it once and you should see the name and button details and the type of click.Ĩ- Go back to HA and MQTT integration and search for “flic” and you should see all your buttons listed and use them from there in your automations. 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. keep var mqtt and var myButtons as is (just copy them)ħ- if everything works you should see a list of your buttons and some details.var password is your MQTT password you can get from step 3.var username of your MQTT username that you can find in HA under Settings > Devices & Services > MQTT > Configure > Re-configure MQTT > copy the username and password from there.Here is the curl that works: curl -k -X POST -H 'Authori. var server is the IP address of your HA or MQTT server if different. I am trying to get the Flic button (via the hub) to work with the home assistant api via the http request but the flic hub seems to be sending the header data incorrectly making authentication fail.You can replace the first lines, change the values between the quotes to: Connect MQTT Integration Now available with our Hub SDK LEARN MORE Testimonials 'I love the Flic, its Hub and SDK because it gives the ability to put some functional buttons in the household from where the whole family can trigger something in the house, like turning of all the lights when going to bed. The Broadlink integration still requires reverse engineering all the infrared. Var mqtt = require("./mqtt").create(server, //Dictionary of Button objects One year on, Is Home Assistant easy to use No. A new generation of smart IoT buttons is here. Here is what worked for me using the instruction the amazing Ingo put together but adding a little more details in case someone find them useful or not sure what to change.Ģ- Create a new module and rename it to MQTTģ- Create two new files by or rename the default files to main.js and mqtt.jsĤ- Copy the code from the files main.js and mqtt.js from Github GitHub - id628/flic2hass: A Flic SDK utility to publish all Flic buttons to Home Assistant via MQTTĥ- If your MQTT has a password. Flic 2 Button: Control home, smart lights, music, routines with a simple push.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |