Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- zigbeeModel: ['multi'],
- model: 'IM6001-MPP01',
- vendor: 'Samjin-SmartThings',
- description: 'MultiPurpose Sensor',
- supports: 'contact, temperature, tilt, vibration',
- fromZigbee: [fz.generic_temperature],
- toZigbee: [],
- configure: (ieeeAddr, shepherd, coordinator, callback) => {
- const device = shepherd.find(ieeeAddr, 1);
- const actions = [
- (cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
- (cb) => device.report('ssIasZone', 'zoneStatus', 0, 30, null, cb),
- (cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 1, zoneid: 23}, cb),
- ];
- execute(device, actions, callback);
- },
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement