How to action long presses on switches

I am using zwave version Shelley double relays.

I want to avoid accidental switching off. The switch panel manufacturer no longer has covers for individual switches.

I have already detached the channel/switch.

How do I detect a long press to toggle the relays?