From 2ba86a13ebfc5cf880989f0476f0c6fdd646c7ca Mon Sep 17 00:00:00 2001 From: Koenkk Date: Sun, 29 Jul 2018 22:09:20 +0200 Subject: [PATCH] Add linkquality to messages. #173 --- lib/controller.js | 5 +++++ npm-shrinkwrap.json | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/controller.js b/lib/controller.js index 7df64994..96154f49 100644 --- a/lib/controller.js +++ b/lib/controller.js @@ -312,6 +312,11 @@ class Controller { } }); + // Add device linkquality. + if (message.linkquality) { + payload.linkquality = message.linkquality; + } + this.mqttPublishDeviceState(device.ieeeAddr, payload, cache); }; diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 2ce7d348..5f3a44bb 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -2838,7 +2838,7 @@ } }, "zigbee-shepherd": { - "version": "git+https://github.com/Koenkk/zigbee-shepherd.git#2078557a485466c032cc26b2cd2b8ac29edeceac", + "version": "git+https://github.com/Koenkk/zigbee-shepherd.git#0cc6c18190ca2b4cf979e5b877961a7727799af2", "requires": { "areq": "0.2.0", "busyman": "0.3.0", @@ -2866,9 +2866,9 @@ } }, "zigbee-shepherd-converters": { - "version": "2.0.34", - "resolved": "https://registry.npmjs.org/zigbee-shepherd-converters/-/zigbee-shepherd-converters-2.0.34.tgz", - "integrity": "sha512-8q2Lh2kAJG3Lg+Hp+PH/tCSbzDndn3f6XkI+7t0W5zynIHcGvViNNubx9UbGduBCJK7tv0rjEJU4/DCUoH7UPw==", + "version": "2.0.35", + "resolved": "https://registry.npmjs.org/zigbee-shepherd-converters/-/zigbee-shepherd-converters-2.0.35.tgz", + "integrity": "sha512-vTgTGXEIIUAQox6WAtkYjTgmCs8jsrtgWGbTRy9PKBue13Jf+1U5K+HZlaqyILE6ye3omWG2Wqr0WlUjA11svw==", "requires": { "debounce": "1.1.0" },