Z-wave can detect those conditions natively?
Single tap- top left : 11- top right : 21- bottom left : 31- bottom right: 41Double tap- top left : 12- top right : 22- bottom left : 32- bottom right: 42Long press- top left : 13- top right : 23- bottom left : 33- bottom right: 43Release from Long press- top left : 15- top right : 25- bottom left : 35- bottom right: 45
Z-wave can detect those conditions natively? I know X10 cannot so I added that capability to my Advanced Smart Lights code. If you can't get it working like mvdarend suggests, you could try modifying what I've written to fit your needs.