Iris leypad to trigger rule

try this app

or create a virtual switch based on keypad entry