Samsung Button to arm SHM

I was trying to bumble around with this in the smartthings app, but it doesn’t seem to work right.

I would like to use a Samsung “Button” to control the SHM. The button recognizes 3 states, “tap”, “double tap”, and “hold”. I might say for example, a tap is “arm away”, a double tap is “arm home”, and a hold is “disarm”.

Does anyone know how to get that working ?

Using the classic app I do this using a routine. One routine sets SHM to armed stay with double tap and another routine sets SMH to disarmed with single tap.