Merge pull request #1179 from varzac/smartsense-motion-temp-alarm2

DVCSMP-1999 Use proper IAS Zone alarm for triggering motion
This commit is contained in:
Vinay Rao
2016-08-31 13:00:49 -07:00
committed by GitHub

View File

@@ -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) {