Flic button integration success story

add this code to the configurator.yaml file

binary_sensor:
  - platform: flic
    discovery: true

now you need to press and hold the flic button close to the Bluetooth controller till you get a green light on the flic button.

the device is now linked, if you go into home assistant, developer tools, states and search for something like this (binary_sensor.flic_80e4daxxx05c), press the button and see if the state changes from off to on. if this does then all you need to do is set up your automation or scrips as you require.

below is an example to toggle a light with a single click. you can use either single, double, and hold to change the click method you prefer.

button_name: flic_80e4daxxx05c
click_type: single

Trigger

automation.yaml example
will need to change the following to make it your own:
button_name:
click_type: single, double or hold
entity_id:

- id: '0000000000095'
  alias: Button. Flic. Test
  description: Flic single click to toggle light.
  trigger:
  - platform: event
    event_type: flic_click
    event_data:
      button_name: flic_80e4daxxx05c
      click_type: single
  condition: []
  action:
  - service: homeassistant.toggle
    target:
      entity_id: light.lighttjb_main_level_light_color_on_off
  mode: single

Hope this helps and Merry Christmas