2018-12-04 12:09:52 -07:00
|
|
|
/**
|
|
|
|
* This is a fake cie app which makes it possible for some iAS devices to join the network.
|
|
|
|
* Based on: https://github.com/zigbeer/zapp-cie
|
|
|
|
*/
|
|
|
|
|
2019-08-03 11:20:04 -07:00
|
|
|
const Ziee = require('zigbee-herdsman/dist/deprecated/ziee');
|
|
|
|
const Zive = require('zigbee-herdsman/dist/deprecated/zive');
|
2018-12-04 12:09:52 -07:00
|
|
|
const cieClusters = new Ziee();
|
2019-04-09 09:23:55 -07:00
|
|
|
// Direction-Value 1: input, 2: output, 3: input/output
|
2018-12-04 12:09:52 -07:00
|
|
|
|
2019-04-09 09:23:55 -07:00
|
|
|
// IasZone Cluster-Init Direction
|
2018-12-04 12:09:52 -07:00
|
|
|
cieClusters.init('ssIasZone', 'dir', {value: 2}); // Client Side(Output)
|
|
|
|
|
|
|
|
// Init Command Response Handler
|
|
|
|
cieClusters.init('ssIasZone', 'cmdRsps', {
|
|
|
|
enrollReq: (zapp, argObj, cb) => {},
|
|
|
|
statusChangeNotification: (zapp, argObj, cb) => {},
|
|
|
|
});
|
|
|
|
|
2019-04-09 09:23:55 -07:00
|
|
|
// Create Zive with profId: 0x0104 (Decimal: 260 / HA), devId: 0x0400 (Decimal: 1024 / iasControlIndicatingEquipment)
|
|
|
|
// Check the Values by https://github.com/zigbeer/zcl-id/wiki#5-table-of-identifiers
|
2018-12-04 12:09:52 -07:00
|
|
|
const cieApp = new Zive({profId: 0x0104, devId: 0x0400, discCmds: []}, cieClusters);
|
|
|
|
module.exports = cieApp;
|