From 5b52defe9e8bfa54251029ad91ee0e35355e6c67 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Sat, 21 Apr 2018 12:45:22 +0200 Subject: [PATCH] Add more logging --- lib/controller.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/controller.js b/lib/controller.js index 513ba940a..a8208e71f 100644 --- a/lib/controller.js +++ b/lib/controller.js @@ -34,6 +34,13 @@ class Controller { } handleZigbeeMessage(message) { + if (message.type == 'devInterview') { + logger.info('Connecting with device, please wait...'); + } + if (message.type == 'devIncoming') { + logger.info('New device joined the network!'); + } + if (!message.endpoints) { // We dont handle messages without endpoints. return;