Backend that listen for events from the Flic (https://flic.io/) bluetooth smart buttons.
platypush.message.event.button.flic.FlicButtonEventwhen a button is pressed. The event will also contain the press sequence (e.g.
["ShortPressEvent", "LongPressEvent", "ShortPressEvent"])
fliclib (https://github.com/50ButtonsEach/fliclib-linux-hci). For the backend to work properly you need to have the
flicddaemon from the fliclib running, and you have to first pair the buttons with your device using any of the scanners provided by the library.
server (str) – flicd server host (default: localhost)
long_press_timeout (float) – How long you should press a button for a press action to be considered “long press” (default: 0.3 secohds)
btn_timeout (float) – How long since the last button release before considering the user interaction completed (default: 0.5 seconds)
Starts the backend thread. To be implemented in the derived classes if the loop method isn’t defined.