iobroker.zigbee 1.10.11 → 1.10.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/admin/adapter-settings.js +1 -1
- package/admin/admin.js +1 -1
- package/admin/vis-network.min.css +1 -1
- package/io-package.json +14 -14
- package/lib/zigbeecontroller.js +11 -50
- package/package.json +2 -2
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "zigbee",
|
|
4
|
-
"version": "1.10.
|
|
4
|
+
"version": "1.10.12",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.10.12": {
|
|
7
|
+
"en": "corr Channel Scan",
|
|
8
|
+
"de": "corr Channel Scan",
|
|
9
|
+
"ru": "корректор канала",
|
|
10
|
+
"pt": "escaneamento do canal de cortiça",
|
|
11
|
+
"nl": "corr kanaalscan",
|
|
12
|
+
"fr": "balayage du canal corr",
|
|
13
|
+
"it": "corr Channel Scansione",
|
|
14
|
+
"es": "corr Channel Scan",
|
|
15
|
+
"pl": "corr Channel Scan",
|
|
16
|
+
"uk": "сканування каналу",
|
|
17
|
+
"zh-cn": "频道扫描"
|
|
18
|
+
},
|
|
6
19
|
"1.10.11": {
|
|
7
20
|
"en": "BREAKING CHANGE\n\nbugs : ChannelScan is currently not available\n\n\nfix linter errors\ndisable map display for deactivated devices\nnew option on map: disable physics interaction\nnew zigbee-herdsman-converters 20.28.0\nnew zigbee-herdsman 2.1.1\nAllow use of keyless converters (used for TuYa and compatible devices in zigbee-herdsman-converters\nswap from request to axios\ndelete groups works again",
|
|
8
21
|
"de": "VERWENDUNGSBEREICH\n\nbugs : ChannelScan ist derzeit nicht verfügbar\n\n\nlinterfehler beheben\nkartenanzeige für deaktivierte geräte deaktivieren\nneue option auf der karte: physik-interaktion deaktivieren\nneue zickbee-herdsman-konverter 20.28.0\nneuer zickbee-herdsman 2.1.1\nVerwenden von schlüssellosen Wandlern (für TuYa und kompatible Geräte in Zickbee-herdsman-Konverter verwendet)\nswap von anfrage an axios\nlöschen von gruppen funktioniert wieder",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "podstawowa aktualizacja\naktualizacja zależności",
|
|
81
94
|
"uk": "оновлення ядра\nоновлення залежності",
|
|
82
95
|
"zh-cn": "核心更新\n依赖性更新"
|
|
83
|
-
},
|
|
84
|
-
"1.10.5": {
|
|
85
|
-
"en": "icon ota device update\nicon fix",
|
|
86
|
-
"de": "icon ota device update\nsymbol fix",
|
|
87
|
-
"ru": "обновление значок ota\nзначок",
|
|
88
|
-
"pt": "atualização do dispositivo do ícone ota\ncorreção do ícone",
|
|
89
|
-
"nl": "pictogram ota apparaat update\npictogramfix",
|
|
90
|
-
"fr": "icône ota mise à jour du périphérique\ncorrection de l'icône",
|
|
91
|
-
"it": "icona ota aggiornamento del dispositivo\nicona fix",
|
|
92
|
-
"es": "icono ota actualización del dispositivo\nicono de fijación",
|
|
93
|
-
"pl": "icon ota aktualizacji urządzenia\nikona fix",
|
|
94
|
-
"uk": "ota пристрій оновлення\nфіксатор ікони",
|
|
95
|
-
"zh-cn": "图标 ota 设备更新\n图标修复"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
package/lib/zigbeecontroller.js
CHANGED
|
@@ -1007,63 +1007,24 @@ class ZigbeeController extends EventEmitter {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
|
|
1009
1009
|
async getChannelsEnergy() {
|
|
1010
|
-
|
|
1011
|
-
const
|
|
1012
|
-
const SLEEPY = 0xffff;
|
|
1013
|
-
|
|
1014
|
-
let clusterId = ZDO.ClusterId.NWK_UPDATE_REQUEST;
|
|
1015
|
-
|
|
1016
|
-
//for (let i=26;i>0;i--)
|
|
1017
|
-
{
|
|
1010
|
+
const clusterId = ZDO.ClusterId.NWK_UPDATE_REQUEST;
|
|
1011
|
+
const result = {};
|
|
1018
1012
|
try
|
|
1019
1013
|
{
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
this.
|
|
1023
|
-
result =
|
|
1024
|
-
this.
|
|
1025
|
-
//await this.Wait(5000);
|
|
1026
|
-
|
|
1027
|
-
//let payload1 = ZDO.Buffalo.buildRequest(true, clusterId, [16,17,18,19,20], 0x5, undefined, 0, undefined);
|
|
1028
|
-
//result = await this.herdsman.adapter.sendZdo(0x0, 0x0, clusterId , payload1, false);
|
|
1029
|
-
//this.warn(`result 2 is ${JSON.stringify(result)}`)
|
|
1030
|
-
//await this.Wait(5000);
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
//let payload2 = ZDO.Buffalo.buildRequest(true, clusterId, [21,22,23,24,25], 0x5, undefined, 0, undefined);
|
|
1034
|
-
//result = await this.herdsman.adapter.sendZdo(0x0, 0x0, clusterId , payload2, false);
|
|
1035
|
-
//this.warn(`result 3 is ${JSON.stringify(result)}`)
|
|
1036
|
-
/* const payload = {
|
|
1037
|
-
dstaddr: 0x0,
|
|
1038
|
-
dstaddrmode: 0x02,
|
|
1039
|
-
channelmask: 0x07FFF800,
|
|
1040
|
-
scanduration: 0x5,
|
|
1041
|
-
scancount: 1,
|
|
1042
|
-
nwkmanageraddr: 0x0000
|
|
1043
|
-
};
|
|
1044
|
-
const energyScan = this.herdsman.adapter.znp.waitFor(
|
|
1045
|
-
2, // unpi_1.Constants.Type.AREQ,
|
|
1046
|
-
5, // Subsystem.ZDO,
|
|
1047
|
-
'mgmtNwkUpdateNotify'
|
|
1048
|
-
);
|
|
1049
|
-
await this.herdsman.adapter.znp.request(
|
|
1050
|
-
0x5, // Subsystem.ZDO
|
|
1051
|
-
'mgmtNwkUpdateReq',
|
|
1052
|
-
payload,
|
|
1053
|
-
energyScan.ID
|
|
1054
|
-
);
|
|
1055
|
-
const result = await energyScan.start().promise;
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
//return result.payload;
|
|
1014
|
+
const payload = ZDO.Buffalo.buildRequest(false, clusterId, [11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26], 0x05, 1, 0, undefined);
|
|
1015
|
+
const scanresult = await this.herdsman.adapter.sendZdo(0x0, 0x0, clusterId , payload, false);
|
|
1016
|
+
this.debug(`scanresult is ${JSON.stringify(scanresult)}`)
|
|
1017
|
+
result.energyvalues = scanresult[1].entryList;
|
|
1018
|
+
this.debug(`result is ${JSON.stringify(result)}`)
|
|
1059
1019
|
}
|
|
1060
1020
|
catch (error) {
|
|
1061
1021
|
this.sendError(error);
|
|
1062
|
-
this.error(`Failed to
|
|
1022
|
+
this.error(`Failed to scan channels ${error.stack}`);
|
|
1023
|
+
result.error = error;
|
|
1063
1024
|
|
|
1064
1025
|
}
|
|
1065
|
-
|
|
1066
|
-
|
|
1026
|
+
return result;
|
|
1027
|
+
|
|
1067
1028
|
}
|
|
1068
1029
|
}
|
|
1069
1030
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.zigbee",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.12",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Kirov Ilya",
|
|
6
6
|
"email": "kirovilya@gmail.com"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"serialport": "^12.0.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@iobroker/adapter-core": "^3.
|
|
24
|
+
"@iobroker/adapter-core": "^3.2.2",
|
|
25
25
|
"@iobroker/dm-utils": "^0.5.0",
|
|
26
26
|
"humanize-duration": "^3.32.1",
|
|
27
27
|
"tar": "^7.4.3",
|