Skip to content

Commit

Permalink
Implement zapp-cie. #507
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Nov 30, 2018
1 parent f463b0f commit a6935a4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
8 changes: 8 additions & 0 deletions lib/zigbee.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const logger = require('./util/logger');
const settings = require('./util/settings');
const data = require('./util/data');
const utils = require('./util/utils');
const cieApp = require('zapp-cie');

const advancedSettings = settings.get().advanced;
const shepherdSettings = {
Expand Down Expand Up @@ -82,6 +83,13 @@ class Zigbee {
}

onReady() {
// Mount cieApp
this.shepherd.mount(cieApp, (err, epId) => {
if (!err) {
logger.info('Mount the cieApp, epId: ' + epId);
}
});

// Check if we have to turn off the led
if (settings.get().serial.disable_led) {
this.shepherd.controller.request('UTIL', 'ledControl', {ledid: 3, mode: 0});
Expand Down
11 changes: 11 additions & 0 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"rimraf": "*",
"winston": "2.4.2",
"zigbee-shepherd": "git+https://github.com/Koenkk/zigbee-shepherd.git#ce52ac4131e2a505af6197b4a26d2b5360e4eb80",
"zigbee-shepherd-converters": "6.0.6"
"zigbee-shepherd-converters": "6.0.6",
"zapp-cie": "*"
},
"devDependencies": {
"chai": "*",
Expand Down

0 comments on commit a6935a4

Please sign in to comment.