diff --git a/README.md b/README.md index 4754b091..a42a7041 100755 --- a/README.md +++ b/README.md @@ -177,6 +177,10 @@ To find out more about the function, simply read about it here at "**default dev ### __WORK IN PROGRESS__ --> +### 0.4.9 (2020-11-14) +* (xenon-s) Bugfix: switch off detection +* (xenon-s) Bugfix: index_m memory button was not displayed + ### 0.4.8 (2020-11-13) * (xenon-s) bugfix: Device status was partly recognized incorrectly diff --git a/admin/index_m.html b/admin/index_m.html index 453e5464..ef962455 100755 --- a/admin/index_m.html +++ b/admin/index_m.html @@ -407,6 +407,7 @@ }); createDynamicTable(settings, onChange, device); // create dynamic table "device" + console.warn(settings); $('#dynamicTableLoading, #dynamicTableLoadingText').css('display', 'none'); // ladekringel }, 2000); @@ -596,7 +597,7 @@
- +
active diff --git a/io-package.json b/io-package.json index 57c2faf7..c89e3ce6 100755 --- a/io-package.json +++ b/io-package.json @@ -1,8 +1,20 @@ { "common": { "name": "device-reminder", - "version": "0.4.8", + "version": "0.4.9", "news": { + "0.4.9": { + "en": "Bugfix: switch off detection\nBugfix: index_m memory button was not displayed", + "de": "Bugfix: Erkennung ausschalten\nBugfix: Die Schaltfläche index_m memory wurde nicht angezeigt", + "ru": "Исправление: отключение обнаружения\nИсправление: кнопка памяти index_m не отображалась", + "pt": "Correção: desligue a detecção\nCorreção de bug: o botão de memória index_m não era exibido", + "nl": "Bugfix: detectie uitschakelen\nBugfix: index_m geheugenknop werd niet weergegeven", + "fr": "Correction de bug: désactiver la détection\nCorrection de bug: le bouton mémoire index_m n'était pas affiché", + "it": "Bugfix: disattiva il rilevamento\nBugfix: il pulsante di memoria index_m non veniva visualizzato", + "es": "Corrección de error: apagar la detección\nCorrección de error: el botón de memoria index_m no se mostraba", + "pl": "Poprawka: wyłącz wykrywanie\nPoprawka: przycisk pamięci index_m nie był wyświetlany", + "zh-cn": "错误修正:关闭检测\n错误修正:未显示index_m内存按钮" + }, "0.4.8": { "en": "bugfix: Device status was partly recognized incorrectly", "de": "Bugfix: Gerätestatus wurde teilweise falsch erkannt", diff --git a/main.js b/main.js index e6e4679d..875f0015 100755 --- a/main.js +++ b/main.js @@ -78,7 +78,8 @@ class Template extends utils.Adapter { for (const i in objectInput) { this.log.debug(`element for each ${JSON.stringify(objectInput[i])}`) - const id = objectInput[i].pathConsumption; + let id = ``; + id = objectInput[i].pathConsumption const obj = objectInput[i]; this.log.debug(`obj in constructor "${JSON.stringify(obj)}"`); arrObj[id] = await this.funcCreateObject(obj); @@ -447,15 +448,15 @@ class Template extends utils.Adapter { await this.setStateAsync(obj.doNotDisturb, dnd, true); // Status in DP schreiben; // device nicht gestartet, Zustand ermitteln wenn autoOff == false - if (obj.verbrauch <= 0.2) { + if (obj.verbrauch <= 0.1) { this.log.debug(`Verbrauch unter 0,2W`); await this.monitoringConsumption(obj) - } else if (obj.verbrauch > 0.2 && !obj.started) { + } else if (obj.verbrauch > 0.1 && !obj.started) { + this.log.debug(`standby Berechnung abgebrochen`) + obj.arrStandby = []; if (obj.verbrauch < obj.startValue) { await this.setStatus(obj, status = 2); } else { - this.log.debug(`standby Berechnung abgebrochen`) - obj.arrStandby = []; await this.setStatus(obj, status = 4); }; }; @@ -538,7 +539,7 @@ class Template extends utils.Adapter { }; async monitoringConsumption(obj) { - const val = 10; + const val = 20; await this.calcStart(obj, "standby", val); this.log.debug(`ERGEBNIS standby: ${obj.resultStandby}, Länge array standby: ${obj.arrStandby.length}`); if (obj.resultStandby < 0.2 && obj.arrStandby.length >= val) { // verbrauch kleiner Vorgabe, Gerät wurde von Hand ausgeschaltet diff --git a/package-lock.json b/package-lock.json index 08657b98..82b1764f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "iobroker.device-reminder", - "version": "0.4.8", + "version": "0.4.9", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 29f58723..e50db4d2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.device-reminder", - "version": "0.4.8", + "version": "0.4.9", "description": "device-reminder", "author": { "name": "xenon-s",