iobroker.nexowatt-ui 0.8.71 → 0.8.73

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 CHANGED
@@ -1,8 +1,16 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "nexowatt-ui",
4
- "version": "0.8.71",
4
+ "version": "0.8.73",
5
5
  "news": {
6
+ "0.8.73": {
7
+ "de": "Version 0.8.73: EVCS-Kacheln flackern beim Hover nicht mehr. Hover bleibt auf der Ladepunktseite neutral; grüne Umrandung/Leuchten erscheint nur bei echter aktiver Ladung.",
8
+ "en": "Version 0.8.73: EVCS tiles no longer flicker on hover. Hover remains neutral on the chargepoint page; green border/glow is shown only for real active charging."
9
+ },
10
+ "0.8.72": {
11
+ "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.",
12
+ "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."
13
+ },
6
14
  "0.8.71": {
7
15
  "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
16
  "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."
@@ -22,14 +30,6 @@
22
30
  "0.8.67": {
23
31
  "de": "Version 0.8.67: EOS Access-Control auf die bestehenden Gruppen system.group.administrator, system.group.installer und system.group.user ausgerichtet. Admin hat Vollzugriff, Installer darf Setup ohne Lizenzverwaltung, Benutzer erhält SmartHome-/NexoLogik-/Kundeneinstellungen.",
24
32
  "en": "Version 0.8.67: Aligns EOS access control with the existing groups system.group.administrator, system.group.installer and system.group.user. Admin has full access, installer can configure without license management, customer gets SmartHome/NexoLogic/customer settings."
25
- },
26
- "0.8.66": {
27
- "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
- "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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.nexowatt-ui",
3
- "version": "0.8.71",
3
+ "version": "0.8.73",
4
4
  "description": "Responsive NexoWatt EMS visualization adapter.",
5
5
  "author": "NexoWatt",
6
6
  "license": "UNLICENSED",
@@ -280,7 +280,9 @@
280
280
  "test:loadmanagement-summary-actual": "node scripts/verify-loadmanagement-summary-actual.js",
281
281
  "test:evcs-visual-online-state": "node scripts/verify-evcs-visual-online-state.js",
282
282
  "test:charging-active-demand-reserve": "node scripts/verify-charging-active-demand-reserve.js",
283
- "test:evcs-online-id-depth": "node scripts/verify-evcs-online-id-depth.js"
283
+ "test:evcs-online-id-depth": "node scripts/verify-evcs-online-id-depth.js",
284
+ "test:evcs-tile-hover": "node scripts/verify-evcs-tile-hover.js",
285
+ "test:evcs-hover-state": "node scripts/verify-evcs-hover-state.js"
284
286
  },
285
287
  "dependencies": {
286
288
  "@iobroker/adapter-core": "^3.4.1",
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:8da6fb5dd3a6058cc8011167063c7cdd2c459d3ebd8b6709c9d5e2c85fcffc37
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
- if (type !== 'checkbox') inp.addEventListener('input', commit);
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); buildHeatingRodUI(); setDirty(); }, { min: 0, step: 10, width: '150px' }), 'Gesamtleistung des Heizstabs / Verbunds.'));
5055
- grpBasic.body.appendChild(_mkCfgField('Stufen', _mkCfgSelect(String(dev.stageCount || 1), stageCountOptions, (v) => { dev.stageCount = _clampInt(v, 1, 12, 1); _syncHeatingRodDeviceStages(dev); buildHeatingRodUI(); setDirty(); }, { width: '110px' }), 'Anzahl nativer Heizstab-Stufen.'));
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
- buildHeatingRodUI();
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
- sRow.appendChild(_mkCfgInput('number', stage.powerW, (v) => {
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
- sRow.appendChild(_mkCfgInput('number', stage.onAboveW, (v) => {
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) stage.offBelowW = stage.onAboveW;
5158
- buildHeatingRodUI();
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
- sRow.appendChild(_mkCfgInput('number', stage.offBelowW, (v) => {
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) stage.offBelowW = stage.onAboveW;
5165
- buildHeatingRodUI();
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
- buildHeatingRodUI();
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
- buildHeatingRodUI();
5250
+ rebuildHeatingRodUIStable('heatingrod-stage-read-dp');
5193
5251
  setDirty();
5194
5252
  }, 'Status-DP / KNX Read (optional)'));
5195
5253
 
@@ -44,6 +44,6 @@
44
44
  "purpose": "maskable"
45
45
  }
46
46
  ],
47
- "version": "0.8.71",
47
+ "version": "0.8.73",
48
48
  "appVersion": "0.8.67"
49
49
  }
package/www/styles.css CHANGED
@@ -11676,3 +11676,62 @@ input.nw-config-checkbox,
11676
11676
  position: static;
11677
11677
  }
11678
11678
  }
11679
+
11680
+ /* 0.8.73 EVCS: Kacheln dürfen beim Überfahren mit der Maus nicht grün blinken.
11681
+ Die grüne Umrandung ist ein Betriebszustand und wird ausschließlich über
11682
+ `nw-tile--state-on` gesetzt, also wenn der Ladepunkt wirklich aktiv lädt.
11683
+ Hover bleibt auf der EVCS-Seite rein passiv, damit Live-Updates + Mausbewegung
11684
+ keine optischen Flacker-/Blinkeffekte erzeugen. */
11685
+ body.nw-page-evcs #evcsList .nw-tile{
11686
+ transform:none !important;
11687
+ transition:opacity .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease !important;
11688
+ }
11689
+ body.nw-page-evcs #evcsList .nw-tile:hover,
11690
+ body.nw-page-evcs #evcsList .nw-tile:focus{
11691
+ transform:none !important;
11692
+ }
11693
+ body.nw-page-evcs #evcsList .nw-tile:not(.nw-tile--state-on):hover,
11694
+ body.nw-page-evcs #evcsList .nw-tile:not(.nw-tile--state-on):focus{
11695
+ border-color:rgba(255,255,255,.075) !important;
11696
+ box-shadow:0 10px 30px rgba(0,0,0,.40) !important;
11697
+ }
11698
+ body.nw-page-evcs #evcsList .nw-tile.nw-tile--state-warning:hover,
11699
+ body.nw-page-evcs #evcsList .nw-tile.nw-tile--state-warning:focus{
11700
+ border-color:rgba(249,115,22,.90) !important;
11701
+ }
11702
+ body.nw-page-evcs #evcsList .nw-tile.nw-tile--state-on,
11703
+ body.nw-page-evcs #evcsList .nw-tile.nw-tile--state-on:hover,
11704
+ body.nw-page-evcs #evcsList .nw-tile.nw-tile--state-on:focus{
11705
+ border-color:rgba(0,230,118,.86) !important;
11706
+ box-shadow:0 0 0 1px rgba(0,230,118,.18), 0 10px 30px rgba(0,0,0,.40) !important;
11707
+ transform:none !important;
11708
+ }
11709
+
11710
+ /* NexoWatt 0.8.73 – EVCS-Kacheln: Hover darf keine Aktiv-/Blink-Optik erzeugen.
11711
+ Grund: Ladepunkt-Kacheln werden per SSE regelmäßig aktualisiert. Ein globaler Hover-
11712
+ Effekt mit grünem Rand/Transform wirkt dadurch wie Flackern. Auf der EVCS-Seite
11713
+ bleibt Hover deshalb optisch neutral; grün leuchtet nur bei echter aktiver Ladung
11714
+ über die vorhandene Zustandsklasse .nw-tile--state-on. */
11715
+ body.nw-page-evcs .nw-evcs-page .nw-tile,
11716
+ body.nw-page-evcs .nw-evcs-page .nw-tile:hover,
11717
+ body.nw-page-evcs .nw-evcs-page .nw-tile:focus,
11718
+ body.nw-page-evcs .nw-evcs-page .nw-tile:focus-visible{
11719
+ transform:none !important;
11720
+ }
11721
+
11722
+ body.nw-page-evcs .nw-evcs-page .nw-tile:not(.nw-tile--state-on):hover,
11723
+ body.nw-page-evcs .nw-evcs-page .nw-tile:not(.nw-tile--state-on):focus,
11724
+ body.nw-page-evcs .nw-evcs-page .nw-tile:not(.nw-tile--state-on):focus-visible{
11725
+ border-color:rgba(255,255,255,.075) !important;
11726
+ box-shadow:0 10px 30px rgba(0,0,0,.40) !important;
11727
+ background:rgba(255,255,255,.045) !important;
11728
+ }
11729
+
11730
+ body.nw-page-evcs .nw-evcs-page .nw-tile.nw-tile--state-on,
11731
+ body.nw-page-evcs .nw-evcs-page .nw-tile.nw-tile--state-on:hover,
11732
+ body.nw-page-evcs .nw-evcs-page .nw-tile.nw-tile--state-on:focus,
11733
+ body.nw-page-evcs .nw-evcs-page .nw-tile.nw-tile--state-on:focus-visible{
11734
+ border-color:rgba(0,230,118,.88) !important;
11735
+ box-shadow:0 0 0 1px rgba(0,230,118,.24), 0 0 18px rgba(0,230,118,.22), 0 10px 30px rgba(0,0,0,.40) !important;
11736
+ background:radial-gradient(circle at top left, rgba(0,230,118,.16), rgba(255,255,255,.045)) !important;
11737
+ }
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:ba6f611a3153fceb857eda1abcf032d15769ffc1c9df970c99f16f345e169146
5
+ * Quell-Hash: sha256:9144ed53dfb13ba49f7da7d43c61d60f8ed0ad1f126dcf209ae9ea48e28bb35f
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-v371';
45
+ const CACHE_NAME = 'nexowatt-cache-v373';
46
46
 
47
47
  const OFFLINE_URLS = [
48
48
  './',