i'm currently playing with this as i want to use a keypad to control something external things.
right now i have 2 rules using an Iris v3 keypad
when i disable the keypad (enter my code then off), i'm turning on a virtual switch, then turning it off 10 seconds later (i can adjust as needed). Once the virtual switch turns off, I'm arming the keypad again
when i trigger the virtual switch, i'm putting all the stuff i want to happen in here
in my testing it works fairly well. I am also using [Release] Nyckelharpa, an HSM Extension, but i reverted back to the Iris V3 keypad driver as i am able to control the status on the keypad better
i am thinking about other things though such as security. someone could theoretically spend all day trying to unlock the keypad, and they'll eventually stumble across a combination, so i'm most likely going to set up another virtual switch to act as a lockout in case too many incorrect passwords are entered in a specific time frame