If anyone knows how to subscribe to a keypress or keyhold on this device, could you kindly post the code. My attempts have all failed. I want to use the A and B buttons to perform some tasks.
Thank you
My attempts
subscribe(thekeypad, ‘button’, buttonHandler)
subscribe(thekeypad, ‘numberOfButtons’, buttonHandler)
Also looked at code in SmartAlarm, Keypad DTH and Keypad manager without figuring it out.
Thanks for the offer. I installed your code, setting it up to turn lights on/off when the off / partial keys are pressed. My Xfinity keypad varies from the Iris, and pressing the A (Iris *) B (Iris Panic) The Stay, Away and Sleep (iris partial???) icon buttons did nothing. Xfinity has no Off button. So I looked at your code and created a small SmartApp with
subscribe (thekeypad, “codeEntered”, buttonHandler)
The button handler put out a notification only when a four digit pin was entered.
Thanks
bamarayne
(Jason "The Enabler" as deemed so by @Smart)
9
Use the live logs to see what your keypad is logging with the button presses. Then write your code to use that.
Gave up on attemping to use a single key press on the Xfinity 3400-X keypad. Wrote a very simple Smartapp to toggle two lights on or off when pin codes 0000 or 1111 are entered.
I tried using the Keypad Coordinator, however the Xfinity 3400-X does not send anything when only the icon (Stay, Away, Night) status key is pressed, nor does it have an “Off” or “Panic” key. Alarm off is created by entering a valid pin code without first pressing an icon key.