[CHF-595] Device Health enrollment needs to be in both updated() & installed()

This commit is contained in:
jackchi
2017-04-11 12:16:05 -07:00
parent 2b05817843
commit b2b03604a7
8 changed files with 82 additions and 9 deletions

View File

@@ -45,10 +45,20 @@ metadata {
}
}
void installed() {
def initialize() {
sendEvent(name: "DeviceWatch-Enroll", value: "{\"protocol\": \"LAN\", \"scheme\":\"untracked\", \"hubHardwareId\": \"${device.hub.hardwareID}\"}", displayed: false)
}
void installed() {
log.debug "installed()"
initialize()
}
def updated() {
log.debug "updated()"
initialize()
}
// parse events into attributes
def parse(description) {
log.debug "Parsing '${description}'"