Shelly Dimmer2 SW1 and SW2 input automation

I have multiple Shelly Dimmer2 and want the SW2 input to run an automation. But I can not just push the button (push/realise with a spring)… I have to hold it for some ms? How to selv this? The Shelly modulsystem is importet by HACS

To which input mode is the Shelly set?

“One button mode - Dimmer is controlled with single switch”