iobroker.yamaha 0.5.0 → 0.5.1
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 +4 -0
- package/io-package.json +15 -15
- package/lib/soef.js +9 -9
- package/main.js +0 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -43,6 +43,10 @@ You have to enable "network standby" function in the configuration of your recei
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
## Changelog
|
|
46
|
+
### 0.5.1 (2022-03-29)
|
|
47
|
+
* (Apollon77) Fix crash cases reported by Sentry
|
|
48
|
+
* (Sneak-L8) fix type of pureDirect
|
|
49
|
+
|
|
46
50
|
### 0.5.0 (2022-03-08)
|
|
47
51
|
* IMPORTANT: js-controller 2.0 is needed at least
|
|
48
52
|
* (Apollon77) Add Sentry for crash reporting
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "yamaha",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.1",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.5.1": {
|
|
7
|
+
"en": "Fix crash cases reported by Sentry\nfix type of pureDirect",
|
|
8
|
+
"de": "Von Sentry gemeldete Absturzfälle beheben\nfixer Typ von pureDirect",
|
|
9
|
+
"ru": "Исправить случаи сбоев, о которых сообщил Sentry\nисправить тип pureDirect",
|
|
10
|
+
"pt": "Corrigir casos de travamento relatados pelo Sentinela\ncorrigir tipo de pureDirect",
|
|
11
|
+
"nl": "Herstel crashgevallen gemeld door Sentry\nfix type pureDirect",
|
|
12
|
+
"fr": "Correction des cas de plantage signalés par Sentry\ncorrection du type de pureDirect",
|
|
13
|
+
"it": "Risolvi i casi di crash segnalati da Sentry\ncorreggere il tipo di pureDirect",
|
|
14
|
+
"es": "Solucionar casos de fallas informados por Sentry\ncorregir el tipo de pureDirect",
|
|
15
|
+
"pl": "Napraw przypadki awarii zgłoszone przez Sentry\nnapraw typ pureDirect",
|
|
16
|
+
"zh-cn": "修复 Sentry 报告的崩溃案例\n修复 pureDirect 的类型"
|
|
17
|
+
},
|
|
6
18
|
"0.5.0": {
|
|
7
19
|
"en": "IMPORTANT: js-controller 2.0 is needed at least\nAdd Sentry for crash reporting",
|
|
8
20
|
"de": "WICHTIG: js-controller 2.0 wird mindestens benötigt\nFügen Sie Sentry für Absturzberichte hinzu",
|
|
@@ -74,18 +86,6 @@
|
|
|
74
86
|
"es": "Actualice utils.js y uso, pruebas de CI y dependencias (Apollon77)",
|
|
75
87
|
"pl": "Zaktualizuj utils.js i wykorzystanie, CI Testing i deps (Apollon77)",
|
|
76
88
|
"zh-cn": "更新 utils.js 和用法、CI 测试和 deps (Apollon77)"
|
|
77
|
-
},
|
|
78
|
-
"0.3.17": {
|
|
79
|
-
"en": "update basic package-file testing (Apollon77)",
|
|
80
|
-
"de": "Erweiterung der Tests (Apollon77)",
|
|
81
|
-
"ru": "обновить базовое тестирование файла пакета (Apollon77)",
|
|
82
|
-
"pt": "atualizar o teste básico de arquivo de pacote (Apollon77)",
|
|
83
|
-
"nl": "update basispakketbestand testen (Apollon77)",
|
|
84
|
-
"fr": "mise à jour des tests de base du fichier de package (Apollon77)",
|
|
85
|
-
"it": "aggiornare il test di base del file di pacchetto (Apollon77)",
|
|
86
|
-
"es": "actualizar las pruebas básicas de archivos de paquetes (Apollon77)",
|
|
87
|
-
"pl": "aktualizacja podstawowego testowania plików pakietu (Apollon77)",
|
|
88
|
-
"zh-cn": "更新基本包文件测试(Apollon77)"
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
"title": "Yamaha",
|
|
@@ -605,11 +605,11 @@
|
|
|
605
605
|
"type": "state",
|
|
606
606
|
"common": {
|
|
607
607
|
"name": "pureDirect",
|
|
608
|
-
"type": "
|
|
608
|
+
"type": "string",
|
|
609
609
|
"role": "state",
|
|
610
610
|
"read": true,
|
|
611
611
|
"write": true,
|
|
612
|
-
"def":
|
|
612
|
+
"def": "not available",
|
|
613
613
|
"desc": "Pure Direct"
|
|
614
614
|
},
|
|
615
615
|
"native": {}
|
package/lib/soef.js
CHANGED
|
@@ -304,7 +304,7 @@ var njs = {
|
|
|
304
304
|
|
|
305
305
|
function deld() {
|
|
306
306
|
if (d >= devices.length) {
|
|
307
|
-
callback();
|
|
307
|
+
callback && callback();
|
|
308
308
|
return;
|
|
309
309
|
}
|
|
310
310
|
var did = devices[d++]._id;
|
|
@@ -597,7 +597,7 @@ function Devices (_adapter, _callback) {
|
|
|
597
597
|
list = that.list;
|
|
598
598
|
that.list = {};
|
|
599
599
|
}
|
|
600
|
-
if (!list) return callback(-1);
|
|
600
|
+
if (!list) return callback && callback(-1);
|
|
601
601
|
if (Array.isArray(list)) {
|
|
602
602
|
for (var i=0; i<list.length; i++) {
|
|
603
603
|
var objName = Object.keys( list[i] )[ 0 ];
|
|
@@ -665,7 +665,7 @@ function Devices (_adapter, _callback) {
|
|
|
665
665
|
|
|
666
666
|
this.readAllExistingObjects = function (callback) {
|
|
667
667
|
adapter.getForeignStates(adapter.namespace + '.*', {}, function(err, states) {
|
|
668
|
-
if (err || !states) return callback(-1);
|
|
668
|
+
if (err || !states) return callback && callback(-1);
|
|
669
669
|
var namespacelen = adapter.namespace.length + 1;
|
|
670
670
|
for (var fullId in states) {
|
|
671
671
|
var id = fullId.substr(namespacelen),
|
|
@@ -1013,14 +1013,14 @@ function checkIfUpdated(doUpdateCallback, callback) {
|
|
|
1013
1013
|
if (typeof doUpdateCallback == 'function') {
|
|
1014
1014
|
doUpdateCallback(prevVersion, aktVersion, function (err) {
|
|
1015
1015
|
savePrevVersion();
|
|
1016
|
-
callback();
|
|
1016
|
+
callback && callback();
|
|
1017
1017
|
});
|
|
1018
1018
|
return;
|
|
1019
1019
|
} else {
|
|
1020
1020
|
savePrevVersion();
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
callback();
|
|
1023
|
+
callback && callback();
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
1026
|
|
|
@@ -1063,7 +1063,7 @@ function _main (_adapter, options, callback ) {
|
|
|
1063
1063
|
|
|
1064
1064
|
switchToDebug();
|
|
1065
1065
|
_devices.init(_adapter, function(err) {
|
|
1066
|
-
callback();
|
|
1066
|
+
callback && callback();
|
|
1067
1067
|
});
|
|
1068
1068
|
};
|
|
1069
1069
|
exports.main = _main;
|
|
@@ -1093,9 +1093,9 @@ exports.Adapter = function (_args) {
|
|
|
1093
1093
|
if (!options.unload) {
|
|
1094
1094
|
options.unload = function (callback) {
|
|
1095
1095
|
try {
|
|
1096
|
-
fns.onUnload ? onUnload(
|
|
1096
|
+
fns.onUnload ? onUnload(callback) : callback && callback();
|
|
1097
1097
|
} catch (e) {
|
|
1098
|
-
callback();
|
|
1098
|
+
callback && callback();
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
1101
|
}
|
|
@@ -1147,7 +1147,7 @@ function changeAdapterConfig (_adapter, changeCallback, doneCallback) {
|
|
|
1147
1147
|
if (!err && obj && !obj.native) obj['native'] = {};
|
|
1148
1148
|
if (!err && obj && changeCallback(obj.native) !== false) {
|
|
1149
1149
|
_adapter.setForeignObject(obj._id, obj, {}, function (err, s_obj) {
|
|
1150
|
-
_adapter.log.
|
|
1150
|
+
_adapter.log.debug("soef.changeAdapterConfig: changed");
|
|
1151
1151
|
//_adapter.config = obj.native; //?!? nrmalisieren fehlt dann!!
|
|
1152
1152
|
//_adapter.normalizeConfig ...
|
|
1153
1153
|
if (doneCallback) doneCallback(err, obj);
|
package/main.js
CHANGED
|
@@ -352,14 +352,12 @@ YAMAHA.prototype.execCommand = function (id, val) {
|
|
|
352
352
|
if (cmd === undefined)
|
|
353
353
|
return;
|
|
354
354
|
if (cmd.length > 0) {
|
|
355
|
-
adapter.log.info("command: " + cmd[0] + " type: " + typeof this[cmd[0]]);
|
|
356
355
|
if (! (typeof this[cmd[0]] === "function")) {
|
|
357
356
|
adapter.log.info("Command " + cmd[0] + " not avaialable at the moment: " + typeof this[cmd[0]]);
|
|
358
357
|
return;
|
|
359
358
|
}
|
|
360
359
|
}
|
|
361
360
|
if (cmd.length === 1) {
|
|
362
|
-
adapter.log.info("command: " + cmd[0]);
|
|
363
361
|
this [cmd[0]] ();
|
|
364
362
|
} else if (cmd.length === 2) {
|
|
365
363
|
this [cmd[0]] (p.result(cmd[1]));
|