You can’t avoid it; your automation is designed to trigger for a single-click.
A “double-click” is just two consecutive single-clicks with less than a second between the two.
Your automation is designed to trigger on a single-click then wait (for up to 900ms) for another single-click. If the second single-click is not received within 900ms, then it wasn’t a double-click but simply a single-click.
You can determine if the wait_for_trigger
detected the second single-click or timed out by checking the wait
variable.
BTW, you should add the max_exceeded
option to your automation like this:
max_exceeded: silent