From f45ab690455b113c09fbd352166b7690376ec451 Mon Sep 17 00:00:00 2001 From: Tom Manley Date: Wed, 1 Mar 2017 00:32:52 -0600 Subject: [PATCH] smartsense-motion-sensor: fix motion event reporting for some devices The motion event reporting for any device that used the Occupancy Sensor cluster for reporting motion was broken. I'm not sure if any devices using this DTH actually use this cluster. I think all the officially supported devices report motion throug the IAS Zone cluster. https://smartthings.atlassian.net/browse/DVCSMP-2484 --- .../smartsense-motion-sensor.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 a93e927..362d1b8 100644 --- a/devicetypes/smartthings/smartsense-motion-sensor.src/smartsense-motion-sensor.groovy +++ b/devicetypes/smartthings/smartsense-motion-sensor.src/smartsense-motion-sensor.groovy @@ -107,8 +107,8 @@ def parse(String description) { } } else if (descMap.clusterInt == 0x0406 && descMap.attrInt == 0x0000) { def value = descMap.value.endsWith("01") ? "active" : "inactive" - log.warn "Doing a read attr motion event" - resultMap = getMotionResult(value) + log.debug "Doing a read attr motion event" + map = getMotionResult(value) } } }