mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-23 13:14:11 +00:00
Merge pull request #1149 from varzac/dprot-153-null-pointer
Fix event map name in NYCE Motion sensor
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