From a297e79b0e9e7cf0268451fb93d99204360d882b Mon Sep 17 00:00:00 2001 From: jackchi Date: Tue, 4 Apr 2017 10:23:04 -0700 Subject: [PATCH] Revert "Added health-check for Logitech Harmony Hub" This reverts commit cbd15ae9ccfae79e25e70b14b2918542379ed3de. --- .../logitech-harmony-hub-c2c.groovy | 15 --------------- .../logitech-harmony-connect.groovy | 4 ---- 2 files changed, 19 deletions(-) diff --git a/devicetypes/smartthings/logitech-harmony-hub-c2c.src/logitech-harmony-hub-c2c.groovy b/devicetypes/smartthings/logitech-harmony-hub-c2c.src/logitech-harmony-hub-c2c.groovy index e287e94..8395f80 100644 --- a/devicetypes/smartthings/logitech-harmony-hub-c2c.src/logitech-harmony-hub-c2c.groovy +++ b/devicetypes/smartthings/logitech-harmony-hub-c2c.src/logitech-harmony-hub-c2c.groovy @@ -7,7 +7,6 @@ metadata { definition (name: "Logitech Harmony Hub C2C", namespace: "smartthings", author: "SmartThings") { capability "Media Controller" capability "Refresh" - capability "Health Check" command "activityoff" command "alloff" @@ -39,16 +38,6 @@ metadata { } } -def installed() { - log.debug "installed()" - sendEvent(name: "DeviceWatch-Enroll", value: JsonOutput.toJson([protocol: "cloud", scheme:"untracked"]), displayed: false) -} - -def updated() { - log.debug "updated()" - sendEvent(name: "DeviceWatch-Enroll", value: JsonOutput.toJson([protocol: "cloud", scheme:"untracked"]), displayed: false) -} - def startActivity(String activityId) { log.debug "Executing 'Start Activity'" log.trace parent.activity("$device.deviceNetworkId-$activityId","start") @@ -69,10 +58,6 @@ def poll() { log.trace parent.poll() } -def ping() { - refresh() -} - def refresh() { log.debug "Executing 'Refresh'" log.trace parent.poll() diff --git a/smartapps/smartthings/logitech-harmony-connect.src/logitech-harmony-connect.groovy b/smartapps/smartthings/logitech-harmony-connect.src/logitech-harmony-connect.groovy index 72763ef..43c55fa 100644 --- a/smartapps/smartthings/logitech-harmony-connect.src/logitech-harmony-connect.groovy +++ b/smartapps/smartthings/logitech-harmony-connect.src/logitech-harmony-connect.groovy @@ -511,10 +511,6 @@ def pollResponse(response, data) { if (ResponseValues) { def map = [:] ResponseValues.hubs.each { - // Device-Watch relies on the Logitech Harmony Cloud to get the Device state. - def isAlive = it.value.status - def d = getChildDevice("harmony-${it.key}") - d?.sendEvent(name: "DeviceWatch-DeviceStatus", value: isAlive!=504? "online":"offline", displayed: false, isStateChange: true) if (it.value.message == "OK") { map["${it.key}"] = "${it.value.response.data.currentAvActivity},${it.value.response.data.activityStatus}" def hub = getChildDevice("harmony-${it.key}")