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

@@ -14,6 +14,7 @@ metadata {
capability "Switch"
capability "Refresh"
capability "Sensor"
capability "Health Check"
command "refresh"
}
@@ -48,6 +49,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"
@@ -87,3 +92,7 @@ void refresh() {
log.debug "Executing 'refresh'"
parent.manualRefresh()
}
def ping() {
log.debug "${parent.ping(this)}"
}