Skip to content

Commit

Permalink
Merge pull request SmartThingsCommunity#1483 from juano2310/staging
Browse files Browse the repository at this point in the history
DVCSMP-2211 - Update Button Number
  • Loading branch information
bflorian authored Nov 18, 2016
2 parents b9993a9 + e443cb6 commit ee2e1ee
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
9 changes: 9 additions & 0 deletions devicetypes/smartthings/aeon-key-fob.src/aeon-key-fob.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ def configure() {
return cmd
}


def installed() {
initialize()
}

def updated() {
initialize()
}

def initialize() {
sendEvent(name: "numberOfButtons", value: 4)
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@ def configure() {
return cmds
}


def installed() {
initialize()
}

def updated() {
initialize()
}

def initialize() {
sendEvent(name: "numberOfButtons", value: 4)
}
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,15 @@ def updateState(String name, String value) {
device.updateDataValue(name, value)
}


def installed() {
initialize()
}

def updated() {
initialize()
}

def initialize() {
sendEvent(name: "numberOfButtons", value: 3)
}
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@ private hold(button) {
sendEvent(name: "button", value: "held", data: [buttonNumber: button], descriptionText: "$device.displayName button $button was held", isStateChange: true)
}


def installed() {
initialize()
}

def updated() {
initialize()
}

def initialize() {
sendEvent(name: "numberOfButtons", value: 4)
}

0 comments on commit ee2e1ee

Please sign in to comment.