From 6ad4f0990cc4882fe55fe143f1cb88aa2848747c Mon Sep 17 00:00:00 2001 From: Vinay Rao Date: Sat, 27 Aug 2016 01:05:10 -0700 Subject: [PATCH] CHF-201 changing timeout for health check to 4 hours for battery powered devices --- .../smartsense-moisture-sensor.groovy | 4 ++-- .../smartsense-motion-sensor.groovy | 4 ++-- .../smartsense-multi-sensor.groovy | 2 +- .../smartsense-open-closed-sensor.groovy | 2 +- .../smartsense-temp-humidity-sensor.groovy | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/devicetypes/smartthings/smartsense-moisture-sensor.src/smartsense-moisture-sensor.groovy b/devicetypes/smartthings/smartsense-moisture-sensor.src/smartsense-moisture-sensor.groovy index 746787c..7de68d1 100644 --- a/devicetypes/smartthings/smartsense-moisture-sensor.src/smartsense-moisture-sensor.groovy +++ b/devicetypes/smartthings/smartsense-moisture-sensor.src/smartsense-moisture-sensor.groovy @@ -24,7 +24,7 @@ metadata { capability "Temperature Measurement" capability "Water Sensor" capability "Health Check" - capability "Sensor" + capability "Sensor" command "enrollResponse" @@ -304,7 +304,7 @@ def refresh() { } def configure() { - sendEvent(name: "checkInterval", value: 7200, displayed: false, data: [protocol: "zigbee"]) + sendEvent(name: "checkInterval", value: 14400, displayed: false, data: [protocol: "zigbee"]) String zigbeeEui = swapEndianHex(device.hub.zigbeeEui) log.debug "Configuring Reporting, IAS CIE, and Bindings." diff --git a/devicetypes/smartthings/smartsense-motion-sensor.src/smartsense-motion-sensor.groovy b/devicetypes/smartthings/smartsense-motion-sensor.src/smartsense-motion-sensor.groovy index 1dab182..bb9acb7 100644 --- a/devicetypes/smartthings/smartsense-motion-sensor.src/smartsense-motion-sensor.groovy +++ b/devicetypes/smartthings/smartsense-motion-sensor.src/smartsense-motion-sensor.groovy @@ -24,7 +24,7 @@ metadata { capability "Temperature Measurement" capability "Refresh" capability "Health Check" - capability "Sensor" + capability "Sensor" command "enrollResponse" @@ -315,7 +315,7 @@ def refresh() { } def configure() { - sendEvent(name: "checkInterval", value: 7200, displayed: false, data: [protocol: "zigbee"]) + sendEvent(name: "checkInterval", value: 14400, displayed: false, data: [protocol: "zigbee"]) String zigbeeEui = swapEndianHex(device.hub.zigbeeEui) log.debug "Configuring Reporting, IAS CIE, and Bindings." diff --git a/devicetypes/smartthings/smartsense-multi-sensor.src/smartsense-multi-sensor.groovy b/devicetypes/smartthings/smartsense-multi-sensor.src/smartsense-multi-sensor.groovy index 72973e5..ad3c60d 100644 --- a/devicetypes/smartthings/smartsense-multi-sensor.src/smartsense-multi-sensor.groovy +++ b/devicetypes/smartthings/smartsense-multi-sensor.src/smartsense-multi-sensor.groovy @@ -413,7 +413,7 @@ def refresh() { } def configure() { - sendEvent(name: "checkInterval", value: 7200, displayed: false, data: [protocol: "zigbee"]) + sendEvent(name: "checkInterval", value: 14400, displayed: false, data: [protocol: "zigbee"]) log.debug "Configuring Reporting" diff --git a/devicetypes/smartthings/smartsense-open-closed-sensor.src/smartsense-open-closed-sensor.groovy b/devicetypes/smartthings/smartsense-open-closed-sensor.src/smartsense-open-closed-sensor.groovy index 90fb06b..f9b24e8 100644 --- a/devicetypes/smartthings/smartsense-open-closed-sensor.src/smartsense-open-closed-sensor.groovy +++ b/devicetypes/smartthings/smartsense-open-closed-sensor.src/smartsense-open-closed-sensor.groovy @@ -267,7 +267,7 @@ def refresh() { } def configure() { - sendEvent(name: "checkInterval", value: 7200, displayed: false, data: [protocol: "zigbee"]) + sendEvent(name: "checkInterval", value: 14400, displayed: false, data: [protocol: "zigbee"]) String zigbeeEui = swapEndianHex(device.hub.zigbeeEui) log.debug "Configuring Reporting, IAS CIE, and Bindings." diff --git a/devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy b/devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy index 70bf317..cbdb78b 100644 --- a/devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy +++ b/devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy @@ -275,7 +275,7 @@ def refresh() } def configure() { - sendEvent(name: "checkInterval", value: 7200, displayed: false, data: [protocol: "zigbee"]) + sendEvent(name: "checkInterval", value: 14400, displayed: false, data: [protocol: "zigbee"]) log.debug "Configuring Reporting and Bindings." def configCmds = [