From dadec937fa1f574ed085d5a2ea83e9d7f809dcf0 Mon Sep 17 00:00:00 2001 From: Zach Varberg Date: Wed, 31 Aug 2016 09:38:38 -0500 Subject: [PATCH] Use proper IAS Zone alarm for triggering motion Previously we were incorrectly looking at the alarm1 bit when we should be looking at the alarm2 bit. This resolves: https://smartthings.atlassian.net/browse/DVCSMP-1999 --- .../smartsense-motion-temp-sensor.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicetypes/smartthings/smartsense-motion-temp-sensor.src/smartsense-motion-temp-sensor.groovy b/devicetypes/smartthings/smartsense-motion-temp-sensor.src/smartsense-motion-temp-sensor.groovy index f5ebc5f..b05e9e7 100644 --- a/devicetypes/smartthings/smartsense-motion-temp-sensor.src/smartsense-motion-temp-sensor.groovy +++ b/devicetypes/smartthings/smartsense-motion-temp-sensor.src/smartsense-motion-temp-sensor.groovy @@ -170,7 +170,7 @@ private Map parseCustomMessage(String description) { private Map parseIasMessage(String description) { ZoneStatus zs = zigbee.parseZoneStatus(description) - return zs.isAlarm1Set() ? getMotionResult('active') : getMotionResult('inactive') + return (zs.isAlarm1Set() || zs.isAlarm2Set()) ? getMotionResult('active') : getMotionResult('inactive') } def getTemperature(value) {