iobroker.senec 1.6.3 → 1.6.4
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 +14 -1
- package/main.js +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -366,6 +366,9 @@ This channel contains calculated values. Currently these are day/week/month/year
|
|
|
366
366
|
*Read-only number, which designates the number of wallbox [0..3]. This is only available on systems with configured wallboxes.*
|
|
367
367
|
|
|
368
368
|
## Changelog
|
|
369
|
+
### 1.6.4 (NoBl)
|
|
370
|
+
* Bugfix (numbers are numbers again)
|
|
371
|
+
|
|
369
372
|
### 1.6.3 (NoBl)
|
|
370
373
|
* Code optimization
|
|
371
374
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "senec",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.4",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.6.4": {
|
|
7
|
+
"en": "Numbers are numbers again",
|
|
8
|
+
"de": "Zahlen sind wieder Zahlen",
|
|
9
|
+
"ru": "Номера снова",
|
|
10
|
+
"pt": "Os números são números novamente",
|
|
11
|
+
"nl": "Nummers zijn weer getallen",
|
|
12
|
+
"fr": "Les nombres sont de nouveau des nombres",
|
|
13
|
+
"it": "I numeri sono di nuovo numeri",
|
|
14
|
+
"es": "Números son números de nuevo",
|
|
15
|
+
"pl": "Liczby są ponownie numerami",
|
|
16
|
+
"uk": "Кількість чисел знову",
|
|
17
|
+
"zh-cn": "数字再次编号"
|
|
18
|
+
},
|
|
6
19
|
"1.6.3": {
|
|
7
20
|
"en": "Bugfixes for API reading.",
|
|
8
21
|
"de": "Bugfixes im API Handling.",
|
package/main.js
CHANGED
|
@@ -454,9 +454,9 @@ class Senec extends utils.Adapter {
|
|
|
454
454
|
this.doState(pfx + key, value, "", "", false);
|
|
455
455
|
} else {
|
|
456
456
|
for (const[key2, value2] of Object.entries(value)) {
|
|
457
|
-
this.doState(pfx + key + "." + key2, (value2.wert).toFixed(2), "", value2.einheit, false);
|
|
457
|
+
this.doState(pfx + key + "." + key2, Number((value2.wert).toFixed(2)), "", value2.einheit, false);
|
|
458
458
|
if (kiloList.includes(value2.einheit)) {
|
|
459
|
-
this.doState(pfx + key + "." + key2 + " (k" + value2.einheit + ")", (value2.wert / 1000).toFixed(2), "", "k" + value2.einheit, false);
|
|
459
|
+
this.doState(pfx + key + "." + key2 + " (k" + value2.einheit + ")", Number((value2.wert / 1000).toFixed(2)), "", "k" + value2.einheit, false);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
}
|
|
@@ -471,13 +471,13 @@ class Senec extends utils.Adapter {
|
|
|
471
471
|
if (key == "startzeitpunkt") {
|
|
472
472
|
this.doState(pfx + key, value, "", "", false);
|
|
473
473
|
} else {
|
|
474
|
-
this.doState(pfx + key, (value.wert).toFixed(2), "", value.einheit, false);
|
|
474
|
+
this.doState(pfx + key, Number((value.wert).toFixed(2)), "", value.einheit, false);
|
|
475
475
|
if (kiloList.includes(value.einheit)) {
|
|
476
|
-
this.doState(pfx + key + " (k"+ value.einheit + ")", (value.wert / 1000).toFixed(2), "", "k" + value.einheit, false);
|
|
476
|
+
this.doState(pfx + key + " (k"+ value.einheit + ")", Number((value.wert / 1000).toFixed(2)), "", "k" + value.einheit, false);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
const autarky = (((obj.aggregation.stromerzeugung.wert - obj.aggregation.netzeinspeisung.wert - obj.aggregation.speicherbeladung.wert + obj.aggregation.speicherentnahme.wert) / obj.aggregation.stromverbrauch.wert) * 100).toFixed(2);
|
|
480
|
+
const autarky = Number((((obj.aggregation.stromerzeugung.wert - obj.aggregation.netzeinspeisung.wert - obj.aggregation.speicherbeladung.wert + obj.aggregation.speicherentnahme.wert) / obj.aggregation.stromverbrauch.wert) * 100).toFixed(2));
|
|
481
481
|
this.doState(pfx + "Autarkie", autarky, "", "%", false);
|
|
482
482
|
}
|
|
483
483
|
|