iobroker.zigbee 1.7.2 → 1.7.3
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/io-package.json +13 -1
- package/lib/statescontroller.js +11 -10
- package/package.json +2 -2
package/README.md
CHANGED
package/io-package.json
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "zigbee",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.3",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.7.3": {
|
|
7
|
+
"en": "missing icons with multiple description",
|
|
8
|
+
"de": "fehlende Symbole mit mehrfacher Beschreibung",
|
|
9
|
+
"ru": "отсутствующие значки с несколькими описаниями",
|
|
10
|
+
"pt": "ícones ausentes com descrição múltipla",
|
|
11
|
+
"nl": "ontbrekende pictogrammen met meerdere beschrijvingen",
|
|
12
|
+
"fr": "icônes manquantes avec plusieurs descriptions",
|
|
13
|
+
"it": "icone mancanti con descrizione multipla",
|
|
14
|
+
"es": "faltan iconos con descripción múltiple",
|
|
15
|
+
"pl": "brakujące ikony z wieloma opisami",
|
|
16
|
+
"zh-cn": "缺少具有多个描述的图标"
|
|
17
|
+
},
|
|
6
18
|
"1.7.2": {
|
|
7
19
|
"en": "corr download missing icon",
|
|
8
20
|
"de": "korrektur download fehlendes Icon",
|
package/lib/statescontroller.js
CHANGED
|
@@ -492,13 +492,16 @@ class StatesController extends EventEmitter {
|
|
|
492
492
|
const modelDesc = statesMapping.findModel(model);
|
|
493
493
|
let icon = (modelDesc && modelDesc.icon) ? modelDesc.icon : 'img/unknown.png';
|
|
494
494
|
// clear icon if it external
|
|
495
|
-
const model_modif = model.replace(
|
|
495
|
+
const model_modif = model.replace(/\//g, '-');
|
|
496
|
+
|
|
496
497
|
const pathToIcon = this.adapter.adapterDir + '/admin/img/' + model_modif + '.png';
|
|
497
498
|
|
|
498
|
-
if (icon.startsWith('http')) {
|
|
499
|
-
this.warn(`download icon from ${icon} saved into ${pathToIcon}`);
|
|
499
|
+
if (icon.startsWith('http')) {
|
|
500
500
|
try {
|
|
501
|
-
|
|
501
|
+
if (!fs.existsSync(pathToIcon)) {
|
|
502
|
+
this.warn(`download icon from ${icon} saved into ${pathToIcon}`);
|
|
503
|
+
this.downloadIcon(icon, pathToIcon);
|
|
504
|
+
}
|
|
502
505
|
icon = 'img/' + model_modif + '.png';
|
|
503
506
|
} catch (e) {
|
|
504
507
|
this.debug(`ERROR : icon not found from ${icon} saved into ${pathToIcon}`);
|
|
@@ -530,15 +533,13 @@ class StatesController extends EventEmitter {
|
|
|
530
533
|
reject(err);
|
|
531
534
|
})
|
|
532
535
|
)
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
});
|
|
536
|
+
.on('close', function () {
|
|
537
|
+
resolve();
|
|
538
|
+
});
|
|
539
|
+
});
|
|
538
540
|
});
|
|
539
541
|
}
|
|
540
542
|
}
|
|
541
|
-
|
|
542
543
|
|
|
543
544
|
async syncDevStates(dev, model) {
|
|
544
545
|
const devId = dev.ieeeAddr.substr(2);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.zigbee",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Kirov Ilya",
|
|
6
6
|
"email": "kirovilya@gmail.com"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"zigbee-herdsman": "0.14.33",
|
|
22
|
-
"zigbee-herdsman-converters": "14.0.
|
|
22
|
+
"zigbee-herdsman-converters": "14.0.529",
|
|
23
23
|
"@iobroker/adapter-core": "^2.4.0",
|
|
24
24
|
"tar": "^6.0.5",
|
|
25
25
|
"typescript": "^4.0.5"
|