09-18-2024, 08:55 PM
How define triggers to click, doubleclick and hold on on input.
With setting below
works single click as expected - toggle output 3
but double click turns on output 1 and toggle output 3 twice
hold input longer then 1 sek turn on output 2 as expected
how to eliminate double toggling output 3 in doubleclick?
With setting below
Code:
on_click:
- min_length: 50ms
max_length: 350ms
then:
- switch.toggle: output03
- min_length: 1000ms
max_length: 5000ms
then:
- switch.turn_on: output02
on_double_click:
- min_length: 50ms
max_length: 350ms
then:
- switch.turn_on: output01
but double click turns on output 1 and toggle output 3 twice
hold input longer then 1 sek turn on output 2 as expected
how to eliminate double toggling output 3 in doubleclick?