Skip to content

Commit

Permalink
Change gas sensor check interval to 5 mintues for better user experie…
Browse files Browse the repository at this point in the history
…nce.

Gas has no battey , it can response health check service ping immediately.
  • Loading branch information
jinkangzhangS committed Jul 24, 2018
1 parent c4caa02 commit 9e31234
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def ping() {
}
def configure() {
log.debug "configure"
//The gas heart beat is 30 mintues, so we set double time for one package loss.
sendEvent(name: "checkInterval", value: 30 * 2 * 60 + 2*60, displayed: false, data: [protocol: "zigbee", hubHardwareId: device.hub.hardwareID, offlinePingable: "1"])
//The gas sensor has no battery , it can response the ping immediately
//so i set the checkTinterval to 5 minutes .
sendEvent(name: "checkInterval", value: 5*60, displayed: false, data: [protocol: "zigbee", hubHardwareId: device.hub.hardwareID, offlinePingable: "1"])
}

0 comments on commit 9e31234

Please sign in to comment.