That’s not implemented in Z2M itself. But can be achieved with this Blueprint:
I made my own for ZHA which can control each button with multiple press types and dial options per button: