iobroker.sun2000 0.2.0 → 0.2.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 +3 -0
- package/io-package.json +14 -1
- package/main.js +10 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,6 +68,9 @@ The development of this adapter was inspired by discussions from the forum threa
|
|
|
68
68
|
Placeholder for the next version (at the beginning of the line):
|
|
69
69
|
### **WORK IN PROGRESS**
|
|
70
70
|
-->
|
|
71
|
+
### 0.2.1 (2024-02-02)
|
|
72
|
+
* Requirements from [Add sun2000 to latest](https://github.com/ioBroker/ioBroker.repositories/pull/3219)
|
|
73
|
+
|
|
71
74
|
### 0.2.0 (2024-01-24)
|
|
72
75
|
* [Add sun2000 to latest](https://github.com/ioBroker/ioBroker.repositories/pull/3219)
|
|
73
76
|
* improve error handling (#34)
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "sun2000",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.2.1": {
|
|
7
|
+
"en": "Requirements from [Add sun2000 to latest](https://github.com/ioBroker/ioBroker.repositories/pull/3219)",
|
|
8
|
+
"de": "Anforderungen von [Sonnen 2000 bis spätestens](https://github.com/ioBroker/ioBroker.repositories/pull/3219)",
|
|
9
|
+
"ru": "Требования от [Add sun2000 до последнего] (https://github.com/ioBroker/ioBroker.repositories/pull/3219)",
|
|
10
|
+
"pt": "Requisitos de [Adicionar sun2000 para o mais recente](https://github.com/ioBroker/ioBroker.repositories/pull/3219)",
|
|
11
|
+
"nl": "Vereisten van [Toevoegen aan sun2000 laatste](https://github.com/ioBroker/ioBroker.repositoria/pull/3219)",
|
|
12
|
+
"fr": "Exigences de [Ajouter sun2000 à la dernière](https://github.com/ioBroker/ioBroker.repositories/pull/3219)",
|
|
13
|
+
"it": "Requisiti da [Add sun2000 to more](https://github.com/ioBroker/ioBroker.repositories/pull/3219)",
|
|
14
|
+
"es": "Necesidades de [Agregar el sol 2000 a más tardar](https://github.com/ioBroker/ioBroker.repositories/pull/3219)",
|
|
15
|
+
"pl": "Data umieszczenia w wykazie",
|
|
16
|
+
"uk": "Вимоги до [Додати сонце2000 to last](https://github.com/ioBroker/ioBroker.repositories/pull/3219)",
|
|
17
|
+
"zh-cn": "(https://github.com/ioBroker/ioBroker.repositories/pul/3219) 需求"
|
|
18
|
+
},
|
|
6
19
|
"0.2.0": {
|
|
7
20
|
"en": "improve error handling (#34)\nadd simple optimizer info \nRiemann sum of input power with energy loss for new state `dailySolarYield`\ntry to recreate the `yield today` from the fusion portal",
|
|
8
21
|
"de": "fehlerbehandlung verbessern (#34)\neinfache optimierer-info hinzufügen\nRiemann Summe der Eingangsleistung mit Energieverlust für neuen Zustand `dailySolarYield `\nversuchen, den `yield heute` aus dem fusionsportal wiederherzustellen",
|
package/main.js
CHANGED
|
@@ -38,13 +38,14 @@ class Sun2000 extends utils.Adapter {
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
this.on('ready', this.onReady.bind(this));
|
|
41
|
-
this.on('stateChange', this.onStateChange.bind(this));
|
|
41
|
+
// this.on('stateChange', this.onStateChange.bind(this));
|
|
42
42
|
// this.on('objectChange', this.onObjectChange.bind(this));
|
|
43
43
|
// this.on('message', this.onMessage.bind(this));
|
|
44
44
|
this.on('unload', this.onUnload.bind(this));
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
async initPath() {
|
|
48
|
+
/*
|
|
48
49
|
await this.extendObjectAsync('info', {
|
|
49
50
|
type: 'channel',
|
|
50
51
|
common: {
|
|
@@ -66,7 +67,7 @@ class Sun2000 extends utils.Adapter {
|
|
|
66
67
|
},
|
|
67
68
|
native: {},
|
|
68
69
|
});
|
|
69
|
-
|
|
70
|
+
*/
|
|
70
71
|
await this.extendObjectAsync('meter', {
|
|
71
72
|
type: 'device',
|
|
72
73
|
common: {
|
|
@@ -367,11 +368,12 @@ class Sun2000 extends utils.Adapter {
|
|
|
367
368
|
// }
|
|
368
369
|
// }
|
|
369
370
|
|
|
370
|
-
/**
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
371
|
+
// /**
|
|
372
|
+
// * Is called if a subscribed state changes
|
|
373
|
+
// * @param {string} id
|
|
374
|
+
// * @param {ioBroker.State | null | undefined} state
|
|
375
|
+
// **/
|
|
376
|
+
/*
|
|
375
377
|
onStateChange(id, state) {
|
|
376
378
|
if (state) {
|
|
377
379
|
// The state was changed
|
|
@@ -381,7 +383,7 @@ class Sun2000 extends utils.Adapter {
|
|
|
381
383
|
this.log.info(`state ${id} deleted`);
|
|
382
384
|
}
|
|
383
385
|
}
|
|
384
|
-
|
|
386
|
+
*/
|
|
385
387
|
// If you need to accept messages in your adapter, uncomment the following block and the corresponding line in the constructor.
|
|
386
388
|
// /**
|
|
387
389
|
// * Some message was sent to this instance over message box. Used by email, pushover, text2speech, ...
|