iobroker.nexowatt-ui 0.8.71 → 0.8.72
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/io-package.json +5 -5
- package/package.json +1 -1
- package/www/ems-apps.js +76 -18
- package/www/manifest.webmanifest +1 -1
- package/www/sw.js +2 -2
package/io-package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "nexowatt-ui",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.72",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.8.72": {
|
|
7
|
+
"de": "Version 0.8.72: App-Center-Heizstab-Eingaben stabilisiert. Stufenwerte lösen beim Tippen keinen vollständigen Rebuild mehr aus; notwendige Strukturänderungen erhalten Scrollposition und Fokus.",
|
|
8
|
+
"en": "Version 0.8.72: Stabilizes App Center heating-rod inputs. Stage values no longer trigger a full rebuild while typing; required structural updates preserve scroll position and focus."
|
|
9
|
+
},
|
|
6
10
|
"0.8.71": {
|
|
7
11
|
"de": "Version 0.8.71: Speicherregelung gegen überschießende Eigenverbrauchs-Entlade-Sollwerte gehärtet. Ist-Leistung wird nicht mehr aus Steuer-/Setpoint-DPs fürs Balancing genutzt; Demand-Cap wird nach der Rampe erneut hart angewendet.",
|
|
8
12
|
"en": "Version 0.8.71: Hardens storage control against excessive self-consumption discharge setpoints. Battery actual power is no longer taken from control/setpoint datapoints for balancing; demand cap is enforced again after ramp limiting."
|
|
@@ -26,10 +30,6 @@
|
|
|
26
30
|
"0.8.66": {
|
|
27
31
|
"de": "Version 0.8.66: NPM-Release-Version erhöht und EVCS-Online-Erkennung vertieft. Explizite Online-Datenpunkte werden separat gespiegelt und im Lademanagement als authoritative Quelle vor Status-Texten genutzt; VIS bevorzugt den echten Online-Zustand vor active/idle.",
|
|
28
32
|
"en": "Version 0.8.66: Bumps npm release version and hardens EVCS online detection. Explicit online datapoints are mirrored separately and used as authoritative source before status text; VIS prefers the real online state over active/idle."
|
|
29
|
-
},
|
|
30
|
-
"0.8.65": {
|
|
31
|
-
"de": "Version 0.8.65: EVCS VIS Online/Offline-Darstellung korrigiert und zentrale EVCS-Reservierung auf aktiven Ladebedarf begrenzt. Inaktive Ladepunkte blockieren kein Budget; Diagnose für Active-Demand-Reserve ergänzt.",
|
|
32
|
-
"en": "Version 0.8.65: Fixes EVCS VIS online/offline tile state and limits central EVCS reservation to active charging demand. Idle charge points no longer block budget; active-demand reserve diagnostics added."
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"title": "NexoWatt UI",
|
package/package.json
CHANGED
package/www/ems-apps.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
3
3
|
*
|
|
4
4
|
* Quelle: src-ts/runtime-executables/www/ems-apps.ts
|
|
5
|
-
* Quell-Hash: sha256:
|
|
5
|
+
* Quell-Hash: sha256:768d44a084be9bbf87f46101ea27a89fc0e67073cb101cd81bb845406d2b66a9
|
|
6
6
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
7
7
|
*
|
|
8
8
|
* Zweck:
|
|
@@ -4501,7 +4501,12 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
4501
4501
|
// Heizstab Speicher-Reserve snapped back to the default 1000 W).
|
|
4502
4502
|
// Ereignis-Kommentar: Bindet das UI-Ereignis 'change' an inp. Beim Umbau prüfen, welche DOM-Elemente/States dadurch geändert werden.
|
|
4503
4503
|
inp.addEventListener('change', commit);
|
|
4504
|
-
|
|
4504
|
+
// Installer-UX: Some controls trigger a structural re-render of their
|
|
4505
|
+
// section (for example changing the heating-rod stage count). For normal
|
|
4506
|
+
// text/number fields we still commit live, but callers can disable live
|
|
4507
|
+
// input commits with opts.commitOnInput=false so typing inside deep forms
|
|
4508
|
+
// never rebuilds the section and jumps the page to the top.
|
|
4509
|
+
if (type !== 'checkbox' && opts.commitOnInput !== false) inp.addEventListener('input', commit);
|
|
4505
4510
|
return inp;
|
|
4506
4511
|
}
|
|
4507
4512
|
/**
|
|
@@ -4896,6 +4901,47 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
4896
4901
|
els.thermalDevices.appendChild(row);
|
|
4897
4902
|
});
|
|
4898
4903
|
}
|
|
4904
|
+
/**
|
|
4905
|
+
* Code-Teil: rebuildHeatingRodUIStable
|
|
4906
|
+
* Zweck: Rendert die Heizstab-Konfiguration neu, ohne den Installateur beim
|
|
4907
|
+
* Bearbeiten tiefer Felder an den Seitenanfang zu springen. Diese Funktion
|
|
4908
|
+
* ist nur für echte Strukturänderungen gedacht (z. B. Stufenzahl oder DP-
|
|
4909
|
+
* Auswahl). Reine Zahlenänderungen in Stufenfeldern dürfen nicht komplett
|
|
4910
|
+
* neu rendern, weil sonst Fokus, Cursor und Scrollposition verloren gehen.
|
|
4911
|
+
*/
|
|
4912
|
+
function rebuildHeatingRodUIStable(reason = '') {
|
|
4913
|
+
let scrollX = 0;
|
|
4914
|
+
let scrollY = 0;
|
|
4915
|
+
let activeId = '';
|
|
4916
|
+
let activeValue = null;
|
|
4917
|
+
try {
|
|
4918
|
+
scrollX = window.scrollX || 0;
|
|
4919
|
+
scrollY = window.scrollY || 0;
|
|
4920
|
+
const active = document && document.activeElement;
|
|
4921
|
+
activeId = active && active.id ? String(active.id) : '';
|
|
4922
|
+
if (active && (active.tagName === 'INPUT' || active.tagName === 'TEXTAREA' || active.tagName === 'SELECT')) {
|
|
4923
|
+
activeValue = ('value' in active) ? active.value : null;
|
|
4924
|
+
}
|
|
4925
|
+
} catch (_e) {}
|
|
4926
|
+
|
|
4927
|
+
try { buildHeatingRodUI(); } catch (_e) {}
|
|
4928
|
+
|
|
4929
|
+
try {
|
|
4930
|
+
requestAnimationFrame(() => {
|
|
4931
|
+
try {
|
|
4932
|
+
window.scrollTo(scrollX, scrollY);
|
|
4933
|
+
if (activeId) {
|
|
4934
|
+
const restored = document.getElementById(activeId);
|
|
4935
|
+
if (restored && typeof restored.focus === 'function') {
|
|
4936
|
+
restored.focus({ preventScroll: true });
|
|
4937
|
+
if (activeValue !== null && 'value' in restored && restored.value === '') restored.value = activeValue;
|
|
4938
|
+
}
|
|
4939
|
+
}
|
|
4940
|
+
} catch (_e2) {}
|
|
4941
|
+
});
|
|
4942
|
+
} catch (_e) {}
|
|
4943
|
+
}
|
|
4944
|
+
|
|
4899
4945
|
/**
|
|
4900
4946
|
* Code-Teil: buildHeatingRodUI
|
|
4901
4947
|
* Zweck: Erzeugt UI-/Konfigurations- oder Datenstruktur.
|
|
@@ -5051,8 +5097,8 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
5051
5097
|
grpBasic.body.appendChild(_mkCfgField('Name (optional)', _mkCfgInput('text', dev.name || '', (v) => { dev.name = String(v || '').trim(); setDirty(); }, { width: '220px', placeholder: 'Anzeige-Name' }), 'Leer lassen = Name aus Energiefluss-Slot.'));
|
|
5052
5098
|
grpBasic.body.appendChild(_mkCfgField('Modus', _mkCfgSelect(dev.mode || 'pvAuto', modeOptions, (v) => { dev.mode = v; setDirty(); }, { width: '160px' }), 'PV-Auto = native Stufenregelung, Manuell = nur bilanzieren, Aus = alles aus.'));
|
|
5053
5099
|
grpBasic.body.appendChild(_mkCfgField('Priorität', _mkCfgInput('number', dev.priority, (v) => { dev.priority = _clampInt(v, 1, 999, 200 + slot); setDirty(); }, { min: 1, max: 999, step: 1, width: '110px' }), 'Kleinere Zahl = wird früher aus PV versorgt.'));
|
|
5054
|
-
grpBasic.body.appendChild(_mkCfgField('Max. Leistung (W)', _mkCfgInput('number', dev.maxPowerW, (v) => { dev.maxPowerW = Math.max(0, Math.round(Number(v) || 0)); _syncHeatingRodDeviceStages(dev);
|
|
5055
|
-
grpBasic.body.appendChild(_mkCfgField('Stufen', _mkCfgSelect(String(dev.stageCount || 1), stageCountOptions, (v) => { dev.stageCount = _clampInt(v, 1, 12, 1); _syncHeatingRodDeviceStages(dev);
|
|
5100
|
+
grpBasic.body.appendChild(_mkCfgField('Max. Leistung (W)', _mkCfgInput('number', dev.maxPowerW, (v) => { dev.maxPowerW = Math.max(0, Math.round(Number(v) || 0)); _syncHeatingRodDeviceStages(dev); rebuildHeatingRodUIStable('heatingrod-max-power'); setDirty(); }, { min: 0, step: 10, width: '150px', commitOnInput: false }), 'Gesamtleistung des Heizstabs / Verbunds.'));
|
|
5101
|
+
grpBasic.body.appendChild(_mkCfgField('Stufen', _mkCfgSelect(String(dev.stageCount || 1), stageCountOptions, (v) => { dev.stageCount = _clampInt(v, 1, 12, 1); _syncHeatingRodDeviceStages(dev); rebuildHeatingRodUIStable('heatingrod-stage-count'); setDirty(); }, { width: '110px' }), 'Anzahl nativer Heizstab-Stufen.'));
|
|
5056
5102
|
right.appendChild(grpBasic.wrap);
|
|
5057
5103
|
|
|
5058
5104
|
const grpTiming = _mkCfgGroup('Timing');
|
|
@@ -5065,7 +5111,7 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
5065
5111
|
// Ereignis-Kommentar: Bindet das UI-Ereignis 'click' an resetBtn. Beim Umbau prüfen, welche DOM-Elemente/States dadurch geändert werden.
|
|
5066
5112
|
resetBtn.addEventListener('click', () => {
|
|
5067
5113
|
_syncHeatingRodDeviceStages(dev, { resetAll: true });
|
|
5068
|
-
|
|
5114
|
+
rebuildHeatingRodUIStable('heatingrod-stage-reset');
|
|
5069
5115
|
setDirty();
|
|
5070
5116
|
});
|
|
5071
5117
|
grpTiming.body.appendChild(_mkCfgField('Stufenhilfe', resetBtn, 'Verteilt die Gesamtleistung gleichmäßig über alle aktuell konfigurierten Stufen und setzt passende Default-Grenzen.'));
|
|
@@ -5145,26 +5191,38 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
5145
5191
|
label.appendChild(labelSub);
|
|
5146
5192
|
sRow.appendChild(label);
|
|
5147
5193
|
|
|
5148
|
-
|
|
5194
|
+
// Wichtig: Diese drei Stufenfelder dürfen beim Tippen nicht die komplette
|
|
5195
|
+
// Heizstab-UI neu aufbauen. Ein Rebuild entfernt das aktive Eingabefeld
|
|
5196
|
+
// aus dem DOM und der Browser springt in langen Installerseiten an den
|
|
5197
|
+
// Anfang. Deshalb schreiben wir hier nur in die In-Memory-Konfiguration;
|
|
5198
|
+
// Strukturänderungen bleiben auf Stufenzahl, Reset und DP-Auswahl begrenzt.
|
|
5199
|
+
let offBelowInput = null;
|
|
5200
|
+
const powerInput = _mkCfgInput('number', stage.powerW, (v) => {
|
|
5149
5201
|
stage.powerW = Math.max(0, Math.round(Number(v) || 0));
|
|
5150
5202
|
dev.maxPowerW = Math.max(0, (dev.stages || []).reduce((sum, it) => sum + Math.max(0, Math.round(Number(it.powerW) || 0)), 0));
|
|
5151
|
-
buildHeatingRodUI();
|
|
5152
5203
|
setDirty();
|
|
5153
|
-
}, { min: 0, step: 10, width: '100%' })
|
|
5204
|
+
}, { min: 0, step: 10, width: '100%' });
|
|
5205
|
+
sRow.appendChild(powerInput);
|
|
5154
5206
|
|
|
5155
|
-
|
|
5207
|
+
const onAboveInput = _mkCfgInput('number', stage.onAboveW, (v) => {
|
|
5156
5208
|
stage.onAboveW = Math.max(0, Math.round(Number(v) || 0));
|
|
5157
|
-
if (stage.offBelowW > stage.onAboveW)
|
|
5158
|
-
|
|
5209
|
+
if (stage.offBelowW > stage.onAboveW) {
|
|
5210
|
+
stage.offBelowW = stage.onAboveW;
|
|
5211
|
+
if (offBelowInput) offBelowInput.value = String(stage.offBelowW);
|
|
5212
|
+
}
|
|
5159
5213
|
setDirty();
|
|
5160
|
-
}, { min: 0, step: 10, width: '100%' })
|
|
5214
|
+
}, { min: 0, step: 10, width: '100%' });
|
|
5215
|
+
sRow.appendChild(onAboveInput);
|
|
5161
5216
|
|
|
5162
|
-
|
|
5217
|
+
offBelowInput = _mkCfgInput('number', stage.offBelowW, (v) => {
|
|
5163
5218
|
stage.offBelowW = Math.max(0, Math.round(Number(v) || 0));
|
|
5164
|
-
if (stage.offBelowW > stage.onAboveW)
|
|
5165
|
-
|
|
5219
|
+
if (stage.offBelowW > stage.onAboveW) {
|
|
5220
|
+
stage.offBelowW = stage.onAboveW;
|
|
5221
|
+
offBelowInput.value = String(stage.offBelowW);
|
|
5222
|
+
}
|
|
5166
5223
|
setDirty();
|
|
5167
|
-
}, { min: 0, step: 10, width: '100%' })
|
|
5224
|
+
}, { min: 0, step: 10, width: '100%' });
|
|
5225
|
+
sRow.appendChild(offBelowInput);
|
|
5168
5226
|
|
|
5169
5227
|
stageWrap.appendChild(sRow);
|
|
5170
5228
|
|
|
@@ -5183,13 +5241,13 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
5183
5241
|
|
|
5184
5242
|
dpRow.appendChild(mkStageDpField(`Stufe ${s} Write (bool)`, `heatingrod_${slot}_stage${s}_w`, stage.writeId || '', (v) => {
|
|
5185
5243
|
stage.writeId = String(v || '').trim();
|
|
5186
|
-
|
|
5244
|
+
rebuildHeatingRodUIStable('heatingrod-stage-write-dp');
|
|
5187
5245
|
setDirty();
|
|
5188
5246
|
}, 'Schalt-DP / KNX Write'));
|
|
5189
5247
|
|
|
5190
5248
|
dpRow.appendChild(mkStageDpField(`Stufe ${s} Read (bool)`, `heatingrod_${slot}_stage${s}_r`, stage.readId || '', (v) => {
|
|
5191
5249
|
stage.readId = String(v || '').trim();
|
|
5192
|
-
|
|
5250
|
+
rebuildHeatingRodUIStable('heatingrod-stage-read-dp');
|
|
5193
5251
|
setDirty();
|
|
5194
5252
|
}, 'Status-DP / KNX Read (optional)'));
|
|
5195
5253
|
|
package/www/manifest.webmanifest
CHANGED
package/www/sw.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
3
3
|
*
|
|
4
4
|
* Quelle: src-ts/runtime-executables/www/sw.ts
|
|
5
|
-
* Quell-Hash: sha256:
|
|
5
|
+
* Quell-Hash: sha256:cad065f7d06f52b31222b0ead0b9cc609d095ef9a12d58b89322310e3295d1af
|
|
6
6
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
7
7
|
*
|
|
8
8
|
* Zweck:
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
// Increment cache name on releases so browser updates JS/HTML reliably.
|
|
44
44
|
// NOTE: Keep this monotonic to force SW updates on hotfixes.
|
|
45
|
-
const CACHE_NAME = 'nexowatt-cache-
|
|
45
|
+
const CACHE_NAME = 'nexowatt-cache-v372';
|
|
46
46
|
|
|
47
47
|
const OFFLINE_URLS = [
|
|
48
48
|
'./',
|