From 6b9baf01147680f88b008e5dd646dc35a47abd8b Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Thu, 19 Mar 2020 19:34:11 +0100 Subject: [PATCH] Allow to specify adapter type. https://github.com/Koenkk/zigbee-herdsman/issues/72 --- lib/util/settings.js | 1 + lib/zigbee.js | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/util/settings.js b/lib/util/settings.js index 458896345..4f5c7769d 100644 --- a/lib/util/settings.js +++ b/lib/util/settings.js @@ -148,6 +148,7 @@ const schema = { properties: { port: {type: ['string', 'null']}, disable_led: {type: 'boolean'}, + adapter: {type: 'string', enum: ['deconz', 'zstack']}, }, }, ban: {type: 'array', items: {type: 'string'}}, diff --git a/lib/zigbee.js b/lib/zigbee.js index ae55e26fb..2aed7f929 100644 --- a/lib/zigbee.js +++ b/lib/zigbee.js @@ -25,6 +25,7 @@ const herdsmanSettings = { baudRate: settings.get().advanced.baudrate, rtscts: settings.get().advanced.rtscts, path: settings.get().serial.port, + adapter: settings.get().serial.adapter, }, };