Advertisement
Guest User

device.js

a guest
Feb 20th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. {
  2. zigbeeModel: ['multi'],
  3. model: 'IM6001-MPP01',
  4. vendor: 'Samjin-SmartThings',
  5. description: 'MultiPurpose Sensor',
  6. supports: 'contact, temperature, tilt, vibration',
  7. fromZigbee: [fz.generic_temperature],
  8. toZigbee: [],
  9. configure: (ieeeAddr, shepherd, coordinator, callback) => {
  10. const device = shepherd.find(ieeeAddr, 1);
  11. const actions = [
  12. (cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
  13. (cb) => device.report('ssIasZone', 'zoneStatus', 0, 30, null, cb),
  14. (cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 1, zoneid: 23}, cb),
  15. ];
  16.  
  17. execute(device, actions, callback);
  18. },
  19. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement