Guest User

Untitled

a guest
Aug 25th, 2019
118
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private Map parseIasMessage(String description) {
  2.     ZoneStatus zs = zigbee.parseZoneStatus(description)
  3.  
  4.     if (zs.isAlarm1Set()){
  5.         return 'open'
  6.     }
  7.     else if (zs.isTamperSet()){
  8.         return 'open'
  9.     } else {return 'closed'}
  10.    
  11. }
RAW Paste Data