Log to MQTT when pairing with device. #85

This commit is contained in:
Koenkk
2018-06-03 00:50:30 +02:00
parent a8dca627d9
commit 8ada85e1ce
+4 -2
View File
@@ -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.