From c1c2431299bf9b5eea9ebafcb08d818d3eda30c2 Mon Sep 17 00:00:00 2001 From: Tom Manley Date: Mon, 4 Jan 2016 15:56:12 -0600 Subject: [PATCH] multi: Adjust threshold multiplier to prevent motion detection while idle The previous threshold multiplier was found to be too low so motion was being detected while the sensor was idle. This new value of 630 seems to produce better results. --- .../smartsense-multi-sensor.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 5771b85..b950034 100644 --- a/devicetypes/smartthings/smartsense-multi-sensor.src/smartsense-multi-sensor.groovy +++ b/devicetypes/smartthings/smartsense-multi-sensor.src/smartsense-multi-sensor.groovy @@ -381,7 +381,7 @@ def getTemperature(value) { log.debug "Refreshing Values for manufacturer: SmartThings " refreshCmds = refreshCmds + [ - /* These values of Motion Threshold Multiplier(01) and Motion Threshold (D200) + /* These values of Motion Threshold Multiplier(01) and Motion Threshold (7602) seem to be giving pretty accurate results for the XYZ co-ordinates for this manufacturer. Separating these out in a separate if-else because I do not want to touch Centralite part as of now. @@ -392,7 +392,7 @@ def getTemperature(value) { "send 0x${device.deviceNetworkId} 1 1", "delay 400", "zcl mfg-code ${manufacturerCode}", "delay 200", - "zcl global write 0xFC02 2 0x21 {D200}", "delay 200", + "zcl global write 0xFC02 2 0x21 {7602}", "delay 200", "send 0x${device.deviceNetworkId} 1 1", "delay 400", ]