iobroker.goodwe-sems 0.1.12 → 0.1.13
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.de.md +4 -0
- package/README.md +4 -0
- package/io-package.json +14 -14
- package/lib/semsApi.js +7 -0
- package/package.json +1 -1
package/README.de.md
CHANGED
|
@@ -151,6 +151,10 @@ Pull Requests willkommen, insbesondere um zusätzliche, vom Portal gelieferte Fe
|
|
|
151
151
|
-->
|
|
152
152
|
### **WORK IN PROGRESS**
|
|
153
153
|
|
|
154
|
+
### 0.1.13 (2026-07-19)
|
|
155
|
+
|
|
156
|
+
- (Stefan Bühler) Diagnose: rohe JSON-Antwort jedes SEMS-API-Aufrufs wird jetzt auf Debug-Level geloggt, nicht mehr nur beim Monitor-Detail-Aufruf. Tests mit einem echten Konto zeigten eine Meldung `SEMS-API-Fehler: ... GetPowerStationIdByOwner ... unbekannter Fehler (code=undefined)` - die vom Adapter angenommene Erfolgs-/Fehler-Code-Konvention (`code: 0`/`"0"`/`"00000"`) wurde bisher nur gegen selbst geschriebene Testfixtures geprüft, nicht gegen diesen konkreten Endpunkt auf einem echten Konto. Dieses Logging ist der schnellste Weg, die tatsächliche Antwortstruktur zu sehen und den echten Fehler zu beheben, ohne dass Zugangsdaten von irgendjemandem benötigt werden
|
|
157
|
+
|
|
154
158
|
### 0.1.12 (2026-07-19)
|
|
155
159
|
|
|
156
160
|
Weitere Fixes aus einem Repochecker-Recheck der `ioBroker.repositories`-Listing-PR:
|
package/README.md
CHANGED
|
@@ -151,6 +151,10 @@ Pull requests are welcome, especially to add further fields delivered by the por
|
|
|
151
151
|
-->
|
|
152
152
|
### **WORK IN PROGRESS**
|
|
153
153
|
|
|
154
|
+
### 0.1.13 (2026-07-19)
|
|
155
|
+
|
|
156
|
+
- (Stefan Bühler) diagnostics: log the raw JSON envelope of every SEMS API call at debug level, not just the monitor-detail call. Real-account testing surfaced a `SEMS-API-Fehler: ... GetPowerStationIdByOwner ... unbekannter Fehler (code=undefined)` report - the success/error code convention this adapter assumes (`code: 0`/`"0"`/`"00000"`) was only ever validated against test fixtures, not this specific endpoint on a live account. This logging is the fastest way to see the actual response shape and fix the real bug without needing access to anyone's SEMS credentials
|
|
157
|
+
|
|
154
158
|
### 0.1.12 (2026-07-19)
|
|
155
159
|
|
|
156
160
|
Further fixes from a repochecker recheck on the `ioBroker.repositories` listing PR:
|
package/io-package.json
CHANGED
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "goodwe-sems",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.13",
|
|
5
5
|
"news": {
|
|
6
|
-
"0.1.5": {
|
|
7
|
-
"en": "fix: correct PayPal donation link in README",
|
|
8
|
-
"de": "Fix: PayPal-Spendenlink im README korrigiert",
|
|
9
|
-
"ru": "исправление: исправлена ссылка для пожертвований PayPal в README",
|
|
10
|
-
"pt": "correção: link de doação PayPal corrigido no README",
|
|
11
|
-
"nl": "fix: PayPal-donatielink in README gecorrigeerd",
|
|
12
|
-
"fr": "correction : lien de don PayPal corrigé dans le README",
|
|
13
|
-
"it": "correzione: link di donazione PayPal corretto nel README",
|
|
14
|
-
"es": "corrección: se corrigió el enlace de donación de PayPal en el README",
|
|
15
|
-
"pl": "poprawka: poprawiono link do darowizny PayPal w README",
|
|
16
|
-
"uk": "виправлення: виправлено посилання для пожертв PayPal у README",
|
|
17
|
-
"zh-cn": "修复:更正 README 中的 PayPal 捐赠链接"
|
|
18
|
-
},
|
|
19
6
|
"0.1.6": {
|
|
20
7
|
"en": "security/quality audit: sanitize inverter serials used in state IDs, survive broken inverter array entries, validate server-provided API base URL (HTTPS + GoodWe domains only), fix scientific-notation number parsing, reject invalid portal timestamps, filter stations without id",
|
|
21
8
|
"de": "Sicherheits-/Qualitätsaudit: Wechselrichter-Seriennummern für State-IDs bereinigt, defekte Einträge im Inverter-Array abgefangen, vom Server gelieferte API-Basis-URL validiert (nur HTTPS + GoodWe-Domains), Zahlen-Parsing für Exponentialschreibweise korrigiert, ungültige Portal-Zeitstempel verworfen, Anlagen ohne ID gefiltert",
|
|
@@ -93,6 +80,19 @@
|
|
|
93
80
|
"pl": "kolejne poprawki: usunieto wpis news dla 0.1.10 (nigdy nie opublikowano na npm), dodano needs: check-and-lint do zadania adapter-tests, @types/node ustalono na ^22, poprawiono schematy w .vscode/settings.json, dodano automerge dependabot",
|
|
94
81
|
"uk": "подальші виправлення: видалено запис news для 0.1.10 (ніколи не публікувався на npm), додано needs: check-and-lint для adapter-tests, @types/node зафіксовано на ^22, виправлено схеми в .vscode/settings.json, додано automerge для dependabot",
|
|
95
82
|
"zh-cn": "进一步修复:移除 0.1.10 的 news 条目(从未发布到 npm),为 adapter-tests 任务添加 needs: check-and-lint,将 @types/node 固定为 ^22,修复 .vscode/settings.json 中的 schema 匹配,添加 dependabot 自动合并"
|
|
83
|
+
},
|
|
84
|
+
"0.1.13": {
|
|
85
|
+
"en": "diagnostics: log the raw JSON envelope of every SEMS API call at debug level (not just the monitor-detail call). This helps pinpoint reports like \"unbekannter Fehler (code=undefined)\" on GetPowerStationIdByOwner, where the actual success/error convention used by that endpoint differs from what earlier testing assumed",
|
|
86
|
+
"de": "Diagnose: rohe JSON-Antwort jedes SEMS-API-Aufrufs wird jetzt auf Debug-Level geloggt (nicht mehr nur beim Monitor-Detail-Aufruf). Hilft, Meldungen wie \"unbekannter Fehler (code=undefined)\" bei GetPowerStationIdByOwner einzugrenzen, wenn die tatsächliche Erfolgs-/Fehler-Konvention dieses Endpunkts von den bisherigen Annahmen abweicht",
|
|
87
|
+
"ru": "диагностика: сырой JSON-ответ каждого вызова SEMS API теперь логируется на уровне debug",
|
|
88
|
+
"pt": "diagnóstico: a resposta JSON bruta de cada chamada à API SEMS agora é registada ao nível de debug",
|
|
89
|
+
"nl": "diagnostiek: de ruwe JSON-respons van elke SEMS API-aanroep wordt nu op debug-niveau gelogd",
|
|
90
|
+
"fr": "diagnostic : la reponse JSON brute de chaque appel a l'API SEMS est desormais journalisee au niveau debug",
|
|
91
|
+
"it": "diagnostica: la risposta JSON grezza di ogni chiamata all'API SEMS viene ora registrata a livello debug",
|
|
92
|
+
"es": "diagnostico: la respuesta JSON en bruto de cada llamada a la API de SEMS ahora se registra en el nivel debug",
|
|
93
|
+
"pl": "diagnostyka: surowa odpowiedz JSON kazdego wywolania API SEMS jest teraz logowana na poziomie debug",
|
|
94
|
+
"uk": "діагностика: сирий JSON-вiдповiдь кожного виклику SEMS API тепер логується на рiвнi debug",
|
|
95
|
+
"zh-cn": "诊断:每次 SEMS API 调用的原始 JSON 响应现在都会在 debug 级别记录"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
package/lib/semsApi.js
CHANGED
|
@@ -308,6 +308,13 @@ class SemsApi {
|
|
|
308
308
|
this._timerFns,
|
|
309
309
|
);
|
|
310
310
|
|
|
311
|
+
// Always log the raw envelope at debug level (not just on error) - some SEMS
|
|
312
|
+
// endpoints use success/error conventions that differ from the ones this
|
|
313
|
+
// adapter was originally built and tested against, so this is the fastest way
|
|
314
|
+
// to diagnose "unbekannter Fehler (code=undefined)"-style reports from real
|
|
315
|
+
// accounts without needing access to the account's credentials.
|
|
316
|
+
this.log("debug", `SEMS-API-Antwort ${path}: ${JSON.stringify(json)}`);
|
|
317
|
+
|
|
311
318
|
const code = json && json.code;
|
|
312
319
|
|
|
313
320
|
if (String(code) === RATE_LIMIT_CODE) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.goodwe-sems",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "ioBroker adapter to read GoodWe inverter data from the SEMS Portal cloud API (for installations without local/LAN access to the inverter).",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "bueste",
|