Only one click on_click

I’m trying to figure out a way to use on_double_click and
on_press in the same ESPHOME action so that they work identically. The problem with this configuration is that double click is perceived as both one on_double_click and 2x on_press action, which causes the same process is running twice. Instead of on_press I tried on_click but for some unknown reason, although the log shows the action, but it does not start any process

         - switch.turn_on: moode_power_off

Is it possible to use both actions, or if not, to block on_double_click and filter the on_click double click?

Look at the second example for on_multi_click.

1 Like

Try to use “delayed_off” filter.