From 8ada85e1ce3e424ef261dea484426c66ac601507 Mon Sep 17 00:00:00 2001 From: Koenkk Date: Sun, 3 Jun 2018 00:50:30 +0200 Subject: [PATCH] Log to MQTT when pairing with device. #85 --- lib/controller.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/controller.js b/lib/controller.js index e2809f4b3..f50e9f406 100644 --- a/lib/controller.js +++ b/lib/controller.js @@ -180,9 +180,11 @@ class Controller { debug('Recieved zigbee message with data', message.data); if (message.type == 'devInterview') { - logger.info('Connecting with device, please wait...'); + logger.info('Connecting with device...'); + this.mqtt.log('pairing', 'connecting with device'); } else if (message.type == 'devIncoming') { - logger.info('New device joined the network!'); + logger.info('Device incoming...'); + this.mqtt.log('pairing', 'device incoming'); } // We dont handle messages without endpoints.