SHARE
TWEET

Untitled

a guest Aug 25th, 2019 107 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top