From dadec937fa1f574ed085d5a2ea83e9d7f809dcf0 Mon Sep 17 00:00:00 2001 From: Zach Varberg Date: Wed, 31 Aug 2016 09:38:38 -0500 Subject: [PATCH 1/2] 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) { From 048eb77e64ab5ec96af4ff51cd6dc9a64560a4a8 Mon Sep 17 00:00:00 2001 From: Vinay Rao Date: Tue, 30 Aug 2016 16:46:10 -0700 Subject: [PATCH 2/2] fixes SSVD-2632 The Device Details Recently tab does not log any activity regarding OSRAM Lightify RGWB bulb color change --- .../smartthings/zigbee-rgbw-bulb.src/zigbee-rgbw-bulb.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devicetypes/smartthings/zigbee-rgbw-bulb.src/zigbee-rgbw-bulb.groovy b/devicetypes/smartthings/zigbee-rgbw-bulb.src/zigbee-rgbw-bulb.groovy index 9be662c..e7137b6 100644 --- a/devicetypes/smartthings/zigbee-rgbw-bulb.src/zigbee-rgbw-bulb.groovy +++ b/devicetypes/smartthings/zigbee-rgbw-bulb.src/zigbee-rgbw-bulb.groovy @@ -106,11 +106,11 @@ def parse(String description) { if (zigbeeMap?.clusterInt == COLOR_CONTROL_CLUSTER) { if(zigbeeMap.attrInt == ATTRIBUTE_HUE){ //Hue Attribute def hueValue = Math.round(zigbee.convertHexToInt(zigbeeMap.value) / 255 * 360) - sendEvent(name: "hue", value: hueValue, displayed:false) + sendEvent(name: "hue", value: hueValue, descriptionText: "Color has changed") } else if(zigbeeMap.attrInt == ATTRIBUTE_SATURATION){ //Saturation Attribute def saturationValue = Math.round(zigbee.convertHexToInt(zigbeeMap.value) / 255 * 100) - sendEvent(name: "saturation", value: saturationValue, displayed:false) + sendEvent(name: "saturation", value: saturationValue, descriptionText: "Color has changed", displayed: false) } } else {