Skip to content

Commit a153336

Browse files
soldagfabaff
authored andcommitted
Flic: Support ignoring individual click types. (home-assistant#1568)
1 parent 347f40f commit a153336

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/_components/binary_sensor.flic.markdown

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Configuration variables:
3030
- **host** (*Optional*): The IP or hostname of the flic service server. (default: `localhost`)
3131
- **port** (*Optional*): The port of the flic service. (default: `5551`)
3232
- **discovery** (*Optional*): If `true`, the component is configured to constantly scan for new buttons. (default: `true`)
33+
- **ignored_click_types**: List of click types whose occurrence should not trigger and `flic_click` event.
3334

3435

3536
#### {% linkable_title Discovery %}
@@ -61,3 +62,7 @@ Event data:
6162
- **button_name**: The name of the button, that triggered the event.
6263
- **button_address**: The bluetooth address of the button, that triggered the event.
6364
- **click_type**: The type of click. Possible values are `single`, `double` and `hold`.
65+
66+
67+
##### {% linkable_title Ignoring Click Types %}
68+
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.

0 commit comments

Comments
 (0)