Revert "Revert "WWST-40 Philips Hue: Implement device watch""

This commit is contained in:
Vinay Rao
2016-09-06 17:07:14 -07:00
committed by GitHub
parent b7e0cbda09
commit 1c0ddd2571
5 changed files with 130 additions and 47 deletions

View File

@@ -16,6 +16,7 @@ metadata {
capability "Switch"
capability "Refresh"
capability "Sensor"
capability "Health Check"
command "setAdjustedColor"
command "reset"
@@ -55,6 +56,10 @@ metadata {
}
}
void installed() {
sendEvent(name: "checkInterval", value: 60 * 30, data: [protocol: "lan"], displayed: false)
}
// parse events into attributes
def parse(description) {
log.debug "parse() - $description"
@@ -166,3 +171,7 @@ def verifyPercent(percent) {
return false
}
}
def ping() {
log.debug "${parent.ping(this)}"
}