From 5a47aedd9e1633b139a9189dca0ca122146d859d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?So=CC=88ren=20Oldag?= Date: Fri, 9 Dec 2016 02:20:06 +0100 Subject: [PATCH] Flic: Support ignoring individual click types. --- source/_components/binary_sensor.flic.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/_components/binary_sensor.flic.markdown b/source/_components/binary_sensor.flic.markdown index 4dfa40d67059..e4d225d0ea63 100644 --- a/source/_components/binary_sensor.flic.markdown +++ b/source/_components/binary_sensor.flic.markdown @@ -30,6 +30,7 @@ Configuration variables: - **host** (*Optional*): The IP or hostname of the flic service server. (default: `localhost`) - **port** (*Optional*): The port of the flic service. (default: `5551`) - **discovery** (*Optional*): If `true`, the component is configured to constantly scan for new buttons. (default: `true`) +- **ignored_click_types**: List of click types whose occurrence should not trigger and `flic_click` event. #### {% linkable_title Discovery %} @@ -61,3 +62,7 @@ Event data: - **button_name**: The name of the button, that triggered the event. - **button_address**: The bluetooth address of the button, that triggered the event. - **click_type**: The type of click. Possible values are `single`, `double` and `hold`. + + +##### {% linkable_title Ignoring Click Types %} +For some purposes it might make sense to exclude a specific click type from triggering click events. For example when ignoring double clicks, pressing the button twice fast results in two `single` instead of a `double` click event. This is very useful for applications where you want to click fast.