Skip to content

Commit 01b2f57

Browse files
committed
Merge pull request SmartThingsCommunity#112 from workingmonk/temp_humidity_sensor
Improving the stability and reliability of the temp humidity sensor
2 parents 99a4d75 + d601484 commit 01b2f57

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy

+10-13
Original file line numberDiff line numberDiff line change
@@ -253,22 +253,19 @@ def configure() {
253253

254254
log.debug "Configuring Reporting and Bindings."
255255
def configCmds = [
256+
"zdo bind 0x${device.deviceNetworkId} 1 1 1 {${device.zigbeeId}} {}", "delay 500",
257+
"zcl global send-me-a-report 1 0x20 0x20 30 21600 {01}", //checkin time 6 hrs
258+
"send 0x${device.deviceNetworkId} 1 1", "delay 500",
256259

257-
258-
"zcl global send-me-a-report 1 0x20 0x20 600 3600 {0100}", "delay 500",
259-
"send 0x${device.deviceNetworkId} 1 1", "delay 1000",
260-
261-
"zcl global send-me-a-report 0x402 0 0x29 300 3600 {6400}", "delay 200",
262-
"send 0x${device.deviceNetworkId} 1 1", "delay 1500",
263-
264-
"zcl global send-me-a-report 0xFC45 0 0x29 300 3600 {6400}", "delay 200",
265-
"send 0x${device.deviceNetworkId} 1 1", "delay 1500",
266-
267-
"zdo bind 0x${device.deviceNetworkId} 1 1 0xFC45 {${device.zigbeeId}} {}", "delay 1000",
268260
"zdo bind 0x${device.deviceNetworkId} 1 1 0x402 {${device.zigbeeId}} {}", "delay 500",
269-
"zdo bind 0x${device.deviceNetworkId} 1 1 1 {${device.zigbeeId}} {}"
261+
"zcl global send-me-a-report 0x402 0 0x29 30 3600 {6400}",
262+
"send 0x${device.deviceNetworkId} 1 1", "delay 500",
263+
264+
"zdo bind 0x${device.deviceNetworkId} 1 1 0xFC45 {${device.zigbeeId}} {}", "delay 500",
265+
"zcl global send-me-a-report 0xFC45 0 0x29 30 3600 {6400}",
266+
"send 0x${device.deviceNetworkId} 1 1", "delay 500"
270267
]
271-
return configCmds + refresh() // send refresh cmds as part of config
268+
return configCmds + refresh() // send refresh cmds as part of config
272269
}
273270

274271
private hex(value) {

0 commit comments

Comments
 (0)