From 06fb89da3a64c323822fc96ea894b689c292dea2 Mon Sep 17 00:00:00 2001 From: Marius Ciotlos Date: Tue, 8 May 2018 10:18:13 +0300 Subject: [PATCH] Added credits and corrected comment to reflect code --- README.md | 1 + lib/converters/zigbee2mqtt.js | 9 +++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 237350a6..df391059 100644 --- a/README.md +++ b/README.md @@ -18,3 +18,4 @@ The [wiki](https://github.com/Koenkk/zigbee2mqtt/wiki) provides you all the info * [oskarn97](https://github.com/oskarn97) * [dgomes](https://github.com/dgomes) * [Koenkk](https://github.com/Koenk) +* [kirovilya](https://github.com/kirovilya) \ No newline at end of file diff --git a/lib/converters/zigbee2mqtt.js b/lib/converters/zigbee2mqtt.js index ba8a077f..04b857a7 100644 --- a/lib/converters/zigbee2mqtt.js +++ b/lib/converters/zigbee2mqtt.js @@ -100,6 +100,7 @@ const parsers = [ type: 'attReport', convert: (msg) => { /* + Source: https://github.com/kirovilya/ioBroker.zigbee +---+ | 2 | +---+---+---+ @@ -156,12 +157,8 @@ const parsers = [ type: 'attReport', convert: (msg) => { /* - 65285: 500, presentValue = rotation angel left < 0, rigth > 0 - 65285: 360, presentValue = ? angel - 65285: 110, presentValue = ? angel - 65285: 420, presentValue = ? angel - 65285: 320, presentValue = ? angel - 65285: 330, presentValue = ? angel + Source: https://github.com/kirovilya/ioBroker.zigbee + presentValue = rotation angel left < 0, rigth > 0 */ var v = msg.data.data['presentValue']; if (v < 0) {