mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-08 05:31:56 +00: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)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user