Skip to content

Commit

Permalink
chore: release v0.4.9
Browse files Browse the repository at this point in the history
Bugfix: switch off detection
Bugfix: index_m memory button was not displayed
  • Loading branch information
Xenon-s committed Nov 14, 2020
1 parent 692c337 commit c7a1f0a
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 10 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion admin/index_m.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@
});

createDynamicTable(settings, onChange, device); // create dynamic table "device"
console.warn(settings);
$('#dynamicTableLoading, #dynamicTableLoadingText').css('display', 'none'); // ladekringel
}, 2000);

Expand Down Expand Up @@ -596,7 +597,7 @@

<!-- dynamic table -->
<div class="card-panel blue lighten-5">
<table id="dynamicTable" class="table-values remove-last-column">
<table id="dynamicTable" class="table-values changeOnChangeEvent remove-last-column">
<thead>
<tr>
<th class="header translate" data-name="enabled" style="width: 40px">active
Expand Down
14 changes: 13 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
13 changes: 7 additions & 6 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
};
};
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.device-reminder",
"version": "0.4.8",
"version": "0.4.9",
"description": "device-reminder",
"author": {
"name": "xenon-s",
Expand Down

0 comments on commit c7a1f0a

Please sign in to comment.