Keypad code as trigger

I have not.

@bravenel can you take another look at this. I am unable to get my rule to Trigger when I disarm using a Ring Gen 1 Keypad. (Also tried with an Iris V2 Keypad and recreated the rule, but it also would not Trigger upon Disarm.)

As a secondary part to this, could you add the ability for Keypad Code event subscriptions to subscribe to both the arm event and disarm event. The Ring Gen 1 Keypad sends the code used on arm and disarm.

Summary


After arming and disarming still no event showing for the rule:


The rule machine app instance for the rule is 1006 however it does not trigger upon disarm as seen in log below:

Please show the Events from the device page for that keypad, where it was disarmed.

Do you have event logging turned on in that rule?

Yes, I have all logging enabled for the rule:

What's the appId for that rule? That's the number in the url.

1006

So it's not logging anything at all, right?

Correct, I do not see app id 1006 log anything at all:

It's a little difficult to tell what is going on. It has the right subscription, so it should be seeing the disarm event. I am not familiar with these keypads, and need to check with an associate about what they are sending in the event.

Please install this small test app. First put the code in Apps Code, then install it from Add User App. Select the keypad, and hit Done. Then disarm the keypad and post the logs from the app.

definition(
	name: "Test Keypad",
	namespace: "hubitat",
	author: "Bruce Ravenel",
	description: "Rule",
	category: "Convenience",
	iconUrl: "",
	iconX2Url: ""
)

preferences {
    section {
		input "keypad", "capability.securityKeypad", title: "Security Keypad"
    }
}

def updated() {
	unsubscribe()
	initialize()
}

def installed() {
	initialize()
}

def initialize() {
	subscribe(keypad, "securityKeypad.disarmed", handler)
}

def handler(evt) {
	log.debug "Keypad $keypad disarmed: data=$evt.data"
}

The driver is not sending the code. It should be in the event data, but you can see that it is null.

I'll get someone to look into this.

Thank you for your help, would it also be possible to have the rule machine trigger subscribe to the arm event as well as the disarm event. I can see in the debug logs that the keypad sends the code on both.

Well, right now the driver is not sending any code. But, as to allowing triggering on arm, I will look into it.

1 Like