From 33df9b1ff10f6bda692cc31ae5633e06c32f13f4 Mon Sep 17 00:00:00 2001 From: Zach Varberg Date: Wed, 24 Aug 2016 14:04:19 -0500 Subject: [PATCH] Fix event map name in NYCE Motion sensor There was a null pointer as a result of using the wrong map name This resolves: https://smartthings.atlassian.net/browse/DPROT-153 --- .../nyce-motion-sensor.src/nyce-motion-sensor.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devicetypes/smartthings/nyce-motion-sensor.src/nyce-motion-sensor.groovy b/devicetypes/smartthings/nyce-motion-sensor.src/nyce-motion-sensor.groovy index d372c38..f48e788 100644 --- a/devicetypes/smartthings/nyce-motion-sensor.src/nyce-motion-sensor.groovy +++ b/devicetypes/smartthings/nyce-motion-sensor.src/nyce-motion-sensor.groovy @@ -147,8 +147,8 @@ private Map parseIasMessage(String description) { ZoneStatus zs = zigbee.parseZoneStatus(description) Map resultMap = [:] - result.name = 'motion' - result.value = zs.isAlarm2Set() ? 'active' : 'inactive' + resultMap.name = 'motion' + resultMap.value = zs.isAlarm2Set() ? 'active' : 'inactive' log.debug(zs.isAlarm2Set() ? 'motion' : 'no motion') return resultMap