definition (name: "Zigbee Scene Keypad", namespace: "smartthings", author: "SmartThings", mcdSync: true) {
....
}
Last active
December 28, 2019 02:42
-
-
Save w35l3y/04c9a5b35c9183cc7504697ee86e2824 to your computer and use it in GitHub Desktop.
SmartThings snippets
private getModelBindings(model) {
def bindings = []
for(def endpoint : 1..modelNumberOfButtons[model]) {
bindings += zigbee.addBinding(zigbee.ONOFF_CLUSTER, ["destEndpoint" : endpoint])
}
bindings
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment