I modified my device type, but nothing’s really changed. I do get the same events (join, ep_cnt:1, ep:08) in the hub’s log every time I press one of the buttons. I have tried pressing the buttons as I trigger the configure, but that didn’t seem to help
metadata {
definition (name: "Securifi Key Fob", namespace: "tierneykev", author: "Kevin Tierney") {
command getClusters
capability "Configuration"
}
tiles {
standardTile("thing", "device.thing", width: 2, height: 2) {
state(name:"default", icon: "st.unknown.thing.thing-circle", label: "Please Wait")
}
standardTile("refresh", "device.image", inactiveLabel: false, decoration: "flat") {
state "refresh", action:"getClusters", icon:"st.secondary.refresh"
}
standardTile("configure", "device.power", inactiveLabel: false, decoration: "flat") {
state "configure", label:'', action:"configuration.configure", icon:"st.secondary.configure"
}
main "thing"
details(["thing","refresh","configure"])
}
}
def getClusters() {
"zdo active 0x${device.deviceNetworkId}"
log.debug "Get Clusters Called";
}
def parse(String description) {
log.debug "parse description: $description"
if (description?.startsWith('enroll request')) {
List cmds = enrollResponse()
log.debug "enroll response: ${cmds}"
result = cmds?.collect { new physicalgraph.device.HubAction(it) }
}
return result
}
def enrollResponse() {
log.debug "Sending enroll response"
[
"raw 0x500 {01 23 00 00 00}", "delay 200",
"send 0x${device.deviceNetworkId} 0x08 1"
]
}
def configure(){
log.debug "Config Called"
def configCmds = [
"zcl global write 0x500 0x10 0xf0 {${device.zigbeeId}}", "delay 200",
"send 0x${device.deviceNetworkId} 0x08 1", "delay 1500",
"zdo bind 0x${device.deviceNetworkId} 0x08 0x01 0x0501 {${device.zigbeeId}} {}", "delay 500",
"zdo bind 0x${device.deviceNetworkId} 0x08 1 1 {${device.zigbeeId}} {}"
]
return configCmds
}