mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-04-01 06:13:06 +01:00
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
This commit is contained in:
@@ -147,8 +147,8 @@ private Map parseIasMessage(String description) {
|
|||||||
ZoneStatus zs = zigbee.parseZoneStatus(description)
|
ZoneStatus zs = zigbee.parseZoneStatus(description)
|
||||||
Map resultMap = [:]
|
Map resultMap = [:]
|
||||||
|
|
||||||
result.name = 'motion'
|
resultMap.name = 'motion'
|
||||||
result.value = zs.isAlarm2Set() ? 'active' : 'inactive'
|
resultMap.value = zs.isAlarm2Set() ? 'active' : 'inactive'
|
||||||
log.debug(zs.isAlarm2Set() ? 'motion' : 'no motion')
|
log.debug(zs.isAlarm2Set() ? 'motion' : 'no motion')
|
||||||
|
|
||||||
return resultMap
|
return resultMap
|
||||||
|
|||||||
Reference in New Issue
Block a user