iobroker.zigbee 1.10.11 → 1.10.13

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/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "zigbee",
4
- "version": "1.10.11",
4
+ "version": "1.10.13",
5
5
  "news": {
6
+ "1.10.13": {
7
+ "en": "corr icon download bug (axios)",
8
+ "de": "corr icon download bug (axios)",
9
+ "ru": "значок скачать bug (axios)",
10
+ "pt": "corr ícone de download bug (eixos)",
11
+ "nl": "corr pictogram download bug (axios)",
12
+ "fr": "corr icône de téléchargement bug (axios)",
13
+ "it": "corr icon download bug (assios)",
14
+ "es": "corr icono descargar bug (axios)",
15
+ "pl": "corr ikona pobierz błąd (axios)",
16
+ "uk": "корр іконки завантажити помилку (axios)",
17
+ "zh-cn": "corr 图标下载错误( axios)"
18
+ },
19
+ "1.10.12": {
20
+ "en": "corr Channel Scan",
21
+ "de": "corr Channel Scan",
22
+ "ru": "корректор канала",
23
+ "pt": "escaneamento do canal de cortiça",
24
+ "nl": "corr kanaalscan",
25
+ "fr": "balayage du canal corr",
26
+ "it": "corr Channel Scansione",
27
+ "es": "corr Channel Scan",
28
+ "pl": "corr Channel Scan",
29
+ "uk": "сканування каналу",
30
+ "zh-cn": "频道扫描"
31
+ },
6
32
  "1.10.11": {
7
33
  "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
34
  "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",
@@ -67,32 +93,6 @@
67
93
  "pl": "dodaj opcję kontroli przepływu\ndodaj nowy NewHerdsman\ndodaj nowego koordynatora ezsp Firmware (7.4.1.0)",
68
94
  "uk": "додати варіант контролю потоку\nдодати новийHerdsman\nadd new ezsp manager Прошивка (7.4.1.0)",
69
95
  "zh-cn": "添加流量控制选项\n添加新赫兹曼\n添加新的 ezsp 协调员 Firmware (7.4.1.0)"
70
- },
71
- "1.10.6": {
72
- "en": "core update\ndependency update",
73
- "de": "kern-update\naktualisierung der abhängigkeit",
74
- "ru": "обновление\nобновление",
75
- "pt": "atualização do núcleo\natualização de dependência",
76
- "nl": "kernupdate\nafhankelijkheidsupdate",
77
- "fr": "mise à jour de base\nmise à jour de la dépendance",
78
- "it": "aggiornamento del core\naggiornamento della dipendenza",
79
- "es": "actualización básica\nactualización de la dependencia",
80
- "pl": "podstawowa aktualizacja\naktualizacja zależności",
81
- "uk": "оновлення ядра\nоновлення залежності",
82
- "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": {
@@ -518,7 +518,7 @@ class StatesController extends EventEmitter {
518
518
  }
519
519
  icon = `img/${model_modif}.png`;
520
520
  } catch (e) {
521
- this.debug(`ERROR : icon not found from ${icon} saved into ${pathToIcon}`);
521
+ this.warn(`ERROR : icon not found from ${icon} saved into ${pathToIcon}`);
522
522
  }
523
523
  }
524
524
  }
@@ -560,7 +560,8 @@ class StatesController extends EventEmitter {
560
560
  writer.on('finish', resolve);
561
561
  writer.on('error', reject);
562
562
  }).catch(err => {
563
- reject(err);
563
+ // reject(err);
564
+ this.warn(`ERROR : icon path not found ${image_path}`);
564
565
  });
565
566
  });
566
567
  }
@@ -1007,63 +1007,24 @@ class ZigbeeController extends EventEmitter {
1007
1007
  }
1008
1008
 
1009
1009
  async getChannelsEnergy() {
1010
- /*
1011
- const BLANK_EUI64 = "0xFFFFFFFFFFFFFFFF";
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
- let result = {};
1021
- let payload = ZDO.Buffalo.buildRequest(false, clusterId, [11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26], 0x05, undefined, 0, undefined);
1022
- this.warn(`Payload is [${JSON.stringify(payload)}]`);
1023
- result = await this.herdsman.adapter.sendZdo(0x0, 0x0, clusterId , payload, false);
1024
- this.warn(`result is ${JSON.stringify(result)}`)
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 touchlinkReset ${error.stack}`);
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.11",
3
+ "version": "1.10.13",
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.1.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",