iobroker.eos-admin 9.0.35 → 9.0.36
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/NEXOWATT_EOS_BUILD_INFO.json +10 -13
- package/README.md +9 -3
- package/adminWww/.vite/manifest.json +39 -39
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +107 -107
- package/adminWww/assets/{AdapterUpdateDialog-DH6S-kWX.js → AdapterUpdateDialog-D2nDWE_N.js} +1 -1
- package/adminWww/assets/{Adapters-CIlqSF5B.js → Adapters-D0sVqNBU.js} +1 -1
- package/adminWww/assets/{ConfigManager-BhVBfM-q.js → ConfigManager-Zm7UoaaN.js} +1 -1
- package/adminWww/assets/{Enums-3H97czGs.js → Enums-BGL7pR-O.js} +1 -1
- package/adminWww/assets/{Fields-vWLKiuvO.js → Fields-A8J3u1yq.js} +1 -1
- package/adminWww/assets/{Files-wmjjMXYM.js → Files-CQPjCvW6.js} +1 -1
- package/adminWww/assets/{Hosts-Bk-xmI98.js → Hosts-CxzkkNBj.js} +1 -1
- package/adminWww/assets/{Instances-Db6Vgh62.js → Instances-eEbEukDh.js} +1 -1
- package/adminWww/assets/{Intro-Dc3wAG9V.js → Intro-I_Tknp0E.js} +1 -1
- package/adminWww/assets/{Logs-CPbEGWNq.js → Logs-C3GPz61Q.js} +1 -1
- package/adminWww/assets/{Objects-DJB-2468.js → Objects-DDnisxNB.js} +1 -1
- package/adminWww/assets/{Overview-DdvghCLQ.js → Overview-BpZFdEmp.js} +1 -1
- package/adminWww/assets/{State-0UzpgKYj.js → State-DY6Nw0SB.js} +1 -1
- package/adminWww/assets/{UsedResources-Bcmo58YD.js → UsedResources-CtUpdP2b.js} +1 -1
- package/adminWww/assets/{Users-BGHf3Rox.js → Users-DcqlSfc5.js} +1 -1
- package/adminWww/assets/{bootstrap-qkrk_CAn.js → bootstrap-Didkuj-F.js} +3 -3
- package/adminWww/assets/{hostInit-DlGqatlv.js → hostInit-Chrs-wsg.js} +1 -1
- package/adminWww/assets/{icons-material-CUNq6tdT.js → icons-material-SqwOQW6y.js} +1 -1
- package/adminWww/assets/{index-BrtKq3UN.js → index-CpDo61Mz.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-DujLjpXt.js → installSVGRenderer-DZMZ3pJw.js} +1 -1
- package/adminWww/assets/{mf-entry-bootstrap-0-3e1cd85c.js → mf-entry-bootstrap-0-b0c4981a.js} +2 -2
- package/adminWww/index.html +23 -23
- package/adminWww/mf-manifest.json +1 -1
- package/adminWww/mf-stats.json +1 -1
- package/adminWww/remoteEntry-eos-9.0.36.js +12 -0
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosDashboardProcessStatus.js +11 -3
- package/build/lib/eosDashboardProcessStatus.js.map +1 -1
- package/build/lib/eosLegacyMigration.js +142 -49
- package/build/lib/eosLegacyMigration.js.map +1 -1
- package/build/lib/eosLicenseService.js +9 -0
- package/build/lib/eosLicenseService.js.map +1 -1
- package/build/lib/eosModuleConfigStore.js +21 -8
- package/build/lib/eosModuleConfigStore.js.map +1 -1
- package/build/lib/eosModuleHost.js +271 -104
- package/build/lib/eosModuleHost.js.map +1 -1
- package/build/lib/eosModuleHttp.js +23 -5
- package/build/lib/eosModuleHttp.js.map +1 -1
- package/build/lib/eosModuleProcess.js +17 -6
- package/build/lib/eosModuleProcess.js.map +1 -1
- package/build/lib/eosModuleProcessWorker.js +34 -1
- package/build/lib/eosModuleProcessWorker.js.map +1 -1
- package/build/lib/eosRuntimeControl.js +48 -14
- package/build/lib/eosRuntimeControl.js.map +1 -1
- package/build/lib/eosRuntimeHealth.js +35 -7
- package/build/lib/eosRuntimeHealth.js.map +1 -1
- package/build/lib/eosSupervisorNotifications.js +1 -1
- package/build/lib/eosSupervisorNotifications.js.map +1 -1
- package/build/lib/eosUiProcess.js +42 -4
- package/build/lib/eosUiProcess.js.map +1 -1
- package/build/lib/eosUiProcessWorker.js +21 -0
- package/build/lib/eosUiProcessWorker.js.map +1 -1
- package/build/lib/eosUnifiedOwnership.js +10 -8
- package/build/lib/eosUnifiedOwnership.js.map +1 -1
- package/build/lib/web.js +28 -24
- package/build/lib/web.js.map +1 -1
- package/build/main.js +35 -0
- package/build/main.js.map +1 -1
- package/docs/README.md +1 -0
- package/docs/reports/unified-9.0.36/MIGRATION.md +25 -0
- package/docs/reports/unified-9.0.36/PRUEFBERICHT.md +61 -0
- package/docs/reports/unified-9.0.36/PRUEFERGEBNISSE.json +112 -0
- package/docs/reports/unified-9.0.36/raw/INDEX.json +262 -0
- package/docs/reports/unified-9.0.36/raw/admin-934-legacy-ui-reproduction.json +66 -0
- package/docs/reports/unified-9.0.36/raw/admin-936-legacy-ui-reproduction.json +64 -0
- package/docs/reports/unified-9.0.36/raw/admin-health-browser22.json +49 -0
- package/docs/reports/unified-9.0.36/raw/admin-health-browser24.json +49 -0
- package/docs/reports/unified-9.0.36/raw/admin-runtime-migration-browser22.json +80 -0
- package/docs/reports/unified-9.0.36/raw/admin-runtime-migration-browser24.json +80 -0
- package/docs/reports/unified-9.0.36/raw/backend.log +6 -0
- package/docs/reports/unified-9.0.36/raw/core-final-node22.log +1439 -0
- package/docs/reports/unified-9.0.36/raw/core-final-node24.log +1381 -0
- package/docs/reports/unified-9.0.36/raw/customer-934-node22-final.log +78 -0
- package/docs/reports/unified-9.0.36/raw/customer-934-node22-repeat.log +78 -0
- package/docs/reports/unified-9.0.36/raw/customer-935-node24-final.log +74 -0
- package/docs/reports/unified-9.0.36/raw/customer-935-node24-repeat.log +74 -0
- package/docs/reports/unified-9.0.36/raw/customer-admin-six-controls24.log +24 -0
- package/docs/reports/unified-9.0.36/raw/customer-earlier-pid-stop.log +22 -0
- package/docs/reports/unified-9.0.36/raw/customer-six-process-restart-node22.log +28 -0
- package/docs/reports/unified-9.0.36/raw/customer-six-process-restart-node24.log +24 -0
- package/docs/reports/unified-9.0.36/raw/dashboard-de-en-nl.json +728 -0
- package/docs/reports/unified-9.0.36/raw/fixtures-verification.log +44 -0
- package/docs/reports/unified-9.0.36/raw/frontend.log +152 -0
- package/docs/reports/unified-9.0.36/raw/installer.log +26 -0
- package/docs/reports/unified-9.0.36/raw/legacy-migration-node22.log +630 -0
- package/docs/reports/unified-9.0.36/raw/legacy-migration-node24.log +109 -0
- package/docs/reports/unified-9.0.36/raw/lint.log +45 -0
- package/docs/reports/unified-9.0.36/raw/module-standby-drain22.log +446 -0
- package/docs/reports/unified-9.0.36/raw/module-standby-drain24.log +80 -0
- package/docs/reports/unified-9.0.36/raw/module-standby-linux-memory.log +6 -0
- package/docs/reports/unified-9.0.36/raw/modules.log +5 -0
- package/docs/reports/unified-9.0.36/raw/node22-migration.log +1329 -0
- package/docs/reports/unified-9.0.36/raw/node22-mira.log +222 -0
- package/docs/reports/unified-9.0.36/raw/node22-system-status.log +225 -0
- package/docs/reports/unified-9.0.36/raw/node22-tests-final.log +18358 -0
- package/docs/reports/unified-9.0.36/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.36/raw/node24-migration.log +1301 -0
- package/docs/reports/unified-9.0.36/raw/node24-mira.log +41 -0
- package/docs/reports/unified-9.0.36/raw/node24-system-status.log +42 -0
- package/docs/reports/unified-9.0.36/raw/node24-tests-final.log +3058 -0
- package/docs/reports/unified-9.0.36/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.36/raw/npm-runtime-audit.json +77 -0
- package/docs/reports/unified-9.0.36/raw/ocpp-owner-isolation22.log +109 -0
- package/docs/reports/unified-9.0.36/raw/ocpp-owner-isolation24.log +24 -0
- package/docs/reports/unified-9.0.36/raw/qa-source-check.log +2 -0
- package/docs/reports/unified-9.0.36/raw/release-metadata.log +13 -0
- package/docs/reports/unified-9.0.36/raw/sbom.log +9 -0
- package/docs/reports/unified-9.0.36/raw/standby-independent-drain.log +4 -0
- package/docs/reports/unified-9.0.36/raw/standby-independent-sockets.log +3 -0
- package/docs/reports/unified-9.0.36/raw/typecheck.log +5 -0
- package/docs/reports/unified-9.0.36/raw/ui-runtime.log +8 -0
- package/docs/start/START_HIER_9.0.36.md +32 -0
- package/docs/unified/ARCHITECTURE.md +6 -0
- package/io-package.json +8 -8
- package/package.json +5 -3
- package/public/eos-migration/index.html +1 -1
- package/public/eos-migration/index.js +23 -7
- package/public/eos-runtime/index.js +82 -15
- package/release-manifests/unified/build-environment.cdx.json +6 -6
- package/release-manifests/unified/files.json +199 -142
- package/release-manifests/unified/frontend.cdx.json +6 -6
- package/release-manifests/unified/installer.cdx.json +6 -6
- package/release-manifests/unified/obsolete-admin-assets.json +83 -0
- package/release-manifests/unified/runtime.cdx.json +26 -26
- package/release-manifests/unified/validation.json +15 -15
- package/tools/eos-release-manifest.cjs +1 -1
- package/ui/io-package.json +5 -1
- package/ui/lib/hosted-startup-status.js +2 -2
- package/ui/package.json +1 -1
- package/ui/www/dashboard-process-status.js +7 -4
- package/ui/www/i18n/en.json +1 -0
- package/ui/www/i18n/nl.json +1 -0
- package/ui/www/live-display.js +10 -5
- package/ui/www/manifest.webmanifest +2 -2
- package/adminWww/remoteEntry-eos-9.0.35.js +0 -12
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
const POLL_MS = 5000;
|
|
5
5
|
/** @type {Record<string,string>} */ const states = { running: 'Läuft', starting: 'Startet', stopping: 'Wird beendet',
|
|
6
6
|
stopped: 'Beendet', disabled: 'Deaktiviert', moduleDisabled: 'Modul deaktiviert', blocked: 'Start blockiert', notStarted: 'Nicht gestartet',
|
|
7
|
-
error: 'Fehler', failed: 'Fehler', backoff: 'Neustart wartet', unknown: 'Unbestätigt' };
|
|
7
|
+
standby: 'Läuft · wartet auf Freigabe', moduleStandby: 'Läuft · Modul deaktiviert', standbyUnconfirmed: 'Heartbeat unbestätigt', configurationPending: 'Initialisierung ausstehend', emsWaiting: 'Läuft · EMS nicht bereit', error: 'Fehler', failed: 'Fehler', backoff: 'Neustart wartet', unknown: 'Unbestätigt' };
|
|
8
8
|
/** @type {Record<string,string>} */ const labels = { admin: 'EOS Administration', ui: 'Oberfläche', ems: 'Energiemanagement (EMS)', devices: 'Geräte', eebus: 'EEBus', backup: 'Sicherung', ocpp: 'OCPP-Ladestationen' };
|
|
9
9
|
/** @type {Record<string,string>} */ const errors = {
|
|
10
10
|
AUTHENTICATION_REQUIRED: 'Bitte erneut bei EOS anmelden.',
|
|
@@ -19,7 +19,12 @@
|
|
|
19
19
|
EOS_MODULE_CONFIG_UNAVAILABLE: 'Die gespeicherte Modulkonfiguration ist nicht lesbar. Moduleinstellungen und Systemprotokoll prüfen.',
|
|
20
20
|
EOS_MODULE_DEPENDENCY_MISSING: 'Eine benötigte Moduldatei oder Abhängigkeit fehlt. Das vollständige EOS-Paket erneut installieren.',
|
|
21
21
|
EOS_RUNTIME_START_FAILED: 'Der Prozessstart wurde nicht bestätigt. Die Meldung und die Moduleinstellungen prüfen.',
|
|
22
|
-
EOS_RUNTIME_MIGRATION_BLOCKED: '
|
|
22
|
+
EOS_RUNTIME_MIGRATION_BLOCKED: 'Die Bestandsübernahme sperrt den Start dieses Prozesses.',
|
|
23
|
+
EOS_MIGRATION_DISABLED_UI_REVIEW: 'Die bisherige EOS-Oberfläche war deaktiviert. Die Übernahme prüft ihren bestätigten Stillstand und die vorhandene Zielkonfiguration.',
|
|
24
|
+
EOS_MIGRATION_STOP_UNCONFIRMED: 'Der Stillstand einer bisherigen Instanz ist noch nicht bestätigt. Im ioBroker die betreffende Instanz und den zugehörigen Host prüfen.',
|
|
25
|
+
EOS_MIGRATION_DESTINATION_CONFIGURED: 'In EOS bestehen bereits Einstellungen für diesen Bereich. Vor einer Übernahme beide Konfigurationsstände vergleichen.',
|
|
26
|
+
EOS_MIGRATION_PROTECTED_FIELDS_UNAVAILABLE: 'ioBroker hat geschützte Einstellungen einer bisherigen Instanz nicht freigegeben. Den gesicherten Altbestand prüfen.',
|
|
27
|
+
EOS_MIGRATION_JOURNAL_INVALID: 'Der gespeicherte Übernahmestand konnte nicht bestätigt werden. Den Übernahmestatus mit der vorhandenen Sicherung prüfen.',
|
|
23
28
|
EOS_RUNTIME_LICENSE_REQUIRED: 'Die erforderliche Lizenzfreigabe fehlt. Lizenzstatus prüfen.',
|
|
24
29
|
EOS_RUNTIME_OWNERSHIP_REQUIRED: 'Die Zuständigkeit für die Geräte ist nicht bestätigt. Ein anderer Adapter kann noch aktiv sein.',
|
|
25
30
|
EOS_RUNTIME_BUSY: 'Ein Steuerauftrag läuft bereits. Den bestätigten Abschluss abwarten.',
|
|
@@ -32,15 +37,17 @@
|
|
|
32
37
|
EOS_MODULE_CONFIG_CONFLICT: 'Die Einstellung wurde zwischenzeitlich geändert. Status aktualisieren und die Auswahl erneut prüfen.',
|
|
33
38
|
EOS_MIGRATION_SOURCE_VERSION: 'Die Version eines vorhandenen Adapters passt nicht zur Übernahme. Übernahmestatus prüfen.',
|
|
34
39
|
EOS_MIGRATION_MODULE_LICENSE_REQUIRED: 'Für die angeforderte Übernahme fehlt eine Modulfreigabe. Übernahmestatus prüfen.',
|
|
35
|
-
EOS_MIGRATION_RESTART_REQUIRED: 'Die Freigabe
|
|
40
|
+
EOS_MIGRATION_RESTART_REQUIRED: 'Die Freigabe ist gültig. EOS fordert einmalig einen automatischen Adapterneustart für die Bestandsprüfung an. Bleibt dieser Status dauerhaft bestehen, die EOS-Instanz einmal in ioBroker neu starten.',
|
|
36
41
|
EOS_MODULE_PROCESS_EXIT: 'Der Prozess wurde unerwartet beendet. EOS prüft den kontrollierten Wiederanlauf.',
|
|
42
|
+
LEGACY_CONFLICT: 'Eine bisherige Adapterinstanz hat die Gerätezuständigkeit noch nicht übergeben.',
|
|
43
|
+
OWNERSHIP_UNAVAILABLE: 'Die Gerätezuständigkeit ist noch nicht bestätigt. Host und Altinstanz in ioBroker prüfen.',
|
|
37
44
|
LEGACY_ENABLED_OR_UNKNOWN: 'Der bisherige Adapter ist noch aktiv oder sein Zustand ist nicht bestätigt.',
|
|
38
45
|
LEGACY_STOP_NOT_CONFIRMED: 'Das Ende des bisherigen Adapters ist nicht bestätigt.',
|
|
39
46
|
LICENSE_REQUIRED: 'Die erforderliche Lizenzfreigabe fehlt. Lizenzstatus prüfen.',
|
|
40
47
|
LICENSE_INVALID: 'Die erforderliche Lizenzfreigabe fehlt. Lizenzstatus prüfen.',
|
|
41
48
|
OWNERSHIP_CHANGED: 'Die Zuständigkeit für die Geräte hat sich geändert. Den Übernahmestatus prüfen.',
|
|
42
49
|
};
|
|
43
|
-
/** @typedef {{enabled:boolean,canEnable:boolean,canDisable:boolean,canRestart:boolean,busy:boolean,reason:string,revision:string}} Controls */
|
|
50
|
+
/** @typedef {{enabled:boolean,canEnable:boolean,canDisable:boolean,canRestart:boolean,busy:boolean,reason:string,operationReason:string,revision:string}} Controls */
|
|
44
51
|
/** @param {string} id @returns {HTMLElement} */
|
|
45
52
|
function element(id) { const node = document.getElementById(id); if (!node) throw new Error('EOS_RUNTIME_ELEMENT'); return node; }
|
|
46
53
|
const refreshButton = /** @type {HTMLButtonElement} */ (element('refresh'));
|
|
@@ -70,8 +77,13 @@
|
|
|
70
77
|
if (typeof raw.enabled !== 'boolean' || typeof raw.canEnable !== 'boolean' || typeof raw.canDisable !== 'boolean' ||
|
|
71
78
|
typeof raw.canRestart !== 'boolean' || typeof raw.busy !== 'boolean' || typeof raw.revision !== 'string' ||
|
|
72
79
|
!/^[a-f0-9-]{36}$/.test(raw.revision)) return null;
|
|
80
|
+
let reason = safeCode(raw.reason);
|
|
81
|
+
// These are operational fences in the current protocol. A previous rejected
|
|
82
|
+
// control attempt may retain its code after the supervisor allows startup.
|
|
83
|
+
if (typeof raw.operationReason === 'string' && (raw.canEnable || raw.canRestart) &&
|
|
84
|
+
['EOS_RUNTIME_MIGRATION_BLOCKED', 'EOS_RUNTIME_OWNERSHIP_REQUIRED'].includes(reason)) reason = '';
|
|
73
85
|
return { enabled: raw.enabled, canEnable: raw.canEnable, canDisable: raw.canDisable, canRestart: raw.canRestart,
|
|
74
|
-
busy: raw.busy, reason: safeCode(raw.
|
|
86
|
+
busy: raw.busy, reason, operationReason: safeCode(raw.operationReason), revision: raw.revision };
|
|
75
87
|
}
|
|
76
88
|
/** @param {string} text @param {boolean} [error] */
|
|
77
89
|
function showControlMessage(text, error = false) { controlMessage.textContent = text; controlMessage.className = `runtime-control-message${error ? ' is-error' : ''}`; }
|
|
@@ -97,8 +109,19 @@
|
|
|
97
109
|
const title = document.createElement('dt'); title.textContent = label;
|
|
98
110
|
const content = document.createElement('dd'); content.textContent = value; node.append(title, content);
|
|
99
111
|
}
|
|
100
|
-
/** @param {
|
|
101
|
-
function
|
|
112
|
+
/** @param {unknown} value @param {string} id */
|
|
113
|
+
function migrationNote(value, id) {
|
|
114
|
+
const report = record(value);
|
|
115
|
+
const sourceId = id === 'ems' ? 'ui' : id;
|
|
116
|
+
const issues = Array.isArray(report.issues) ? report.issues.map(record) : [];
|
|
117
|
+
const local = issues.find(row => row.id === sourceId);
|
|
118
|
+
const issue = local || (issues.length === 1 ? issues[0] : undefined);
|
|
119
|
+
const code = safeCode(issue?.code || report.code);
|
|
120
|
+
const source = typeof issue?.source === 'string' && /^(?:nexowatt-ui|nexowatt-devices|eebus|nexowatt-backup|ocpp21)\.\d{1,8}$/.test(issue.source) ? issue.source : '';
|
|
121
|
+
return code ? `${source ? `${source} · ` : ''}${code}. ${errors[code] || 'Die Einzelheiten stehen im Übernahmestatus.'}` : '';
|
|
122
|
+
}
|
|
123
|
+
/** @param {HTMLElement} card @param {string} id @param {Controls|null} entry @param {string} state @param {unknown} migration */
|
|
124
|
+
function addControls(card, id, entry, state, migration) {
|
|
102
125
|
const actions = document.createElement('div'); actions.className = 'runtime-controls';
|
|
103
126
|
actions.setAttribute('aria-label', `${labels[id]} bedienen`);
|
|
104
127
|
for (const [action, text] of [['enable', 'Aktivieren'], ['disable', 'Deaktivieren'], ['restart', 'Neustarten']]) {
|
|
@@ -111,7 +134,14 @@
|
|
|
111
134
|
const note = document.createElement('p'); note.className = 'runtime-control-note';
|
|
112
135
|
if (!entry) note.textContent = 'Prozessbedienung derzeit nicht verfügbar. Status aktualisieren.';
|
|
113
136
|
else if (entry.busy) note.textContent = 'Steuerauftrag läuft. Der bestätigte Prozessstatus wird automatisch aktualisiert.';
|
|
114
|
-
else if (entry.reason
|
|
137
|
+
else if (entry.reason === 'EOS_RUNTIME_MIGRATION_BLOCKED') {
|
|
138
|
+
const admission = state === 'running' ? 'Der Prozess läuft. Die Bestandsübernahme sperrt seinen Neustart.'
|
|
139
|
+
: entry.enabled ? explanation(entry.reason) : 'Der Prozess ist deaktiviert. Die Bestandsübernahme sperrt das Aktivieren.';
|
|
140
|
+
note.textContent = [admission, migrationNote(migration, id)].filter(Boolean).join(' ');
|
|
141
|
+
note.classList.add('is-blocked');
|
|
142
|
+
} else if (entry.operationReason && (!entry.reason || entry.reason === 'EOS_RUNTIME_MODULE_DISABLED' || entry.reason === 'EOS_RUNTIME_DISABLED')) {
|
|
143
|
+
note.textContent = 'Die Schalter bedienen den Prozess. Gerätebefehle bleiben bis zur bestätigten Betriebsfreigabe gesperrt.';
|
|
144
|
+
} else if (entry.reason) { note.textContent = explanation(entry.reason); note.classList.add('is-blocked'); }
|
|
115
145
|
else if (id === 'ui') note.textContent = 'Deaktivieren beendet die Oberfläche. Die Administration und diese Seite bleiben erreichbar.';
|
|
116
146
|
else if (id === 'ems') note.textContent = 'Deaktivieren hält die EMS-Regelung an. Aktivieren startet sie mit der gespeicherten Konfiguration.';
|
|
117
147
|
else note.textContent = 'Aktivieren schaltet Modul und Prozess gemeinsam ein. Deaktivieren beendet den Prozess; die Konfiguration bleibt gespeichert.';
|
|
@@ -120,7 +150,7 @@
|
|
|
120
150
|
const link = document.createElement('a'); link.className = 'runtime-config-link'; link.href = `/modules/${id}/`;
|
|
121
151
|
link.textContent = 'Moduleinstellungen öffnen'; card.append(link);
|
|
122
152
|
}
|
|
123
|
-
if (entry?.reason.includes('MIGRATION')) {
|
|
153
|
+
if (entry?.reason.includes('MIGRATION') || entry?.operationReason.includes('MIGRATION')) {
|
|
124
154
|
const link = document.createElement('a'); link.className = 'runtime-config-link'; link.href = '/migration/';
|
|
125
155
|
link.textContent = 'Übernahmestatus öffnen'; card.append(link);
|
|
126
156
|
}
|
|
@@ -140,20 +170,37 @@
|
|
|
140
170
|
const entry = !isExternal && id !== 'admin' ? readControls(row.controls) : null;
|
|
141
171
|
if (entry) controls.set(id, entry);
|
|
142
172
|
const state = typeof row.state === 'string' && Object.hasOwn(states, row.state) ? row.state : 'unknown';
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
|
|
173
|
+
const atRest = ['stopped', 'disabled', 'unknown'].includes(state);
|
|
174
|
+
const operationReason = entry?.operationReason || '';
|
|
175
|
+
const waiting = state === 'running' && ((row.standby === true && row.active === false) ||
|
|
176
|
+
(!!operationReason && (id === 'ems' && row.emsReady === false || id === 'ui' && row.active === true)));
|
|
177
|
+
const awaitingActivation = waiting && row.waitingReason === 'EOS_RUNTIME_MODULE_DISABLED' && !operationReason;
|
|
178
|
+
const fresh = typeof row.lastHeartbeatAt === 'number' && row.lastHeartbeatAt > 0 && typeof row.pid === 'number' &&
|
|
179
|
+
row.pid > 0 && row.lastHeartbeatAt <= value.observedAt && value.observedAt - row.lastHeartbeatAt <= (id === 'ui' || id === 'ems' ? 5000 : 4000);
|
|
180
|
+
const displayState = waiting ? (!fresh ? 'standbyUnconfirmed' : awaitingActivation ? 'moduleStandby' : 'standby')
|
|
181
|
+
: state === 'running' && id === 'ems' && row.emsReady === false ? 'emsWaiting'
|
|
182
|
+
: atRest && entry?.enabled === false ? 'disabled'
|
|
183
|
+
: atRest && entry?.reason === 'EOS_RUNTIME_MIGRATION_BLOCKED' ? 'blocked'
|
|
184
|
+
: atRest && row.configurationPending === true ? 'configurationPending'
|
|
185
|
+
: atRest && entry?.reason === 'EOS_RUNTIME_MODULE_DISABLED' ? 'moduleDisabled'
|
|
186
|
+
: atRest && entry?.reason && !entry.canRestart && !entry.canEnable && !entry.busy && entry.enabled ? 'blocked'
|
|
146
187
|
: state === 'stopped' && row.generation === 0 && entry?.enabled ? 'notStarted' : state;
|
|
147
188
|
const card = document.createElement('section'); card.className = 'eos-panel runtime-card'; card.dataset.process = id;
|
|
148
189
|
const header = document.createElement('header'); const heading = document.createElement('h2');
|
|
149
190
|
heading.textContent = isExternal ? (id === 'ocpp-external' ? 'OCPP · externe Instanzprüfung' : `OCPP · ${id}`) : labels[id] || id;
|
|
150
|
-
const badge = document.createElement('span'); badge.className = `runtime-badge${displayState === 'running' ? ' is-running' : ['error', 'failed', 'backoff'].includes(displayState) ? ' is-error' :
|
|
191
|
+
const badge = document.createElement('span'); badge.className = `runtime-badge${displayState === 'running' ? ' is-running' : ['error', 'failed', 'backoff'].includes(displayState) ? ' is-error' : ['blocked', 'emsWaiting', 'standby', 'moduleStandby', 'standbyUnconfirmed'].includes(displayState) ? ' is-blocked' : ''}`;
|
|
151
192
|
badge.textContent = states[displayState] || 'Unbestätigt'; header.append(heading, badge); card.append(header);
|
|
152
193
|
const kind = document.createElement('p'); kind.className = 'runtime-kind';
|
|
153
194
|
kind.textContent = isExternal ? 'Separater ioBroker-Adapter' : id === 'admin' ? 'Administrationsprozess' : 'Eigener EOS-Prozess'; card.append(kind);
|
|
154
195
|
const fields = document.createElement('dl');
|
|
155
196
|
field(fields, 'Prozessnummer (PID)', ['running', 'starting', 'stopping'].includes(state) && typeof row.pid === 'number' && row.pid > 0 ? natural(row.pid) : 'Unbekannt');
|
|
156
197
|
field(fields, isExternal ? 'Controller meldet aktiv' : id === 'ui' ? 'Oberfläche aktiv' : id === 'admin' ? 'Administration erreichbar' : 'Betrieb freigegeben', boolean(row.active, 'Ja', 'Nein'));
|
|
198
|
+
if (waiting) {
|
|
199
|
+
const old = Array.isArray(row.waitingFor) ? row.waitingFor.filter(name => typeof name === 'string' &&
|
|
200
|
+
/^(?:nexowatt-ui|nexowatt-devices|eebus|nexowatt-backup|ocpp21)\.\d{1,8}$/.test(name)) : [];
|
|
201
|
+
if (old.length) field(fields, 'Bisherige Zuständigkeit', old.join(', '));
|
|
202
|
+
field(fields, 'Betrieb', awaitingActivation ? 'Wartet auf Modulaktivierung' : 'Wartet auf bestätigte Zuständigkeit');
|
|
203
|
+
}
|
|
157
204
|
if (id === 'ems') field(fields, 'EMS bereit', boolean(row.emsReady, 'Ja', 'Nein'));
|
|
158
205
|
if (isExternal) field(fields, 'OCPP-Verbindung', boolean(row.connected, 'Verbunden', 'Getrennt'));
|
|
159
206
|
if (!isExternal && id !== 'admin') {
|
|
@@ -163,14 +210,34 @@
|
|
|
163
210
|
if (row.nextRestartAt) field(fields, 'Neustart frühestens', date(row.nextRestartAt));
|
|
164
211
|
}
|
|
165
212
|
if (isExternal) field(fields, 'Letzte Alive-Meldung', date(row.lastHeartbeatAt));
|
|
213
|
+
if (row.configurationPending === true) field(fields, 'Modulkonfiguration', 'Noch nicht eingelesen');
|
|
166
214
|
const code = safeCode(row.reason);
|
|
167
|
-
if (code && !['RUNNING', 'DISABLED'].includes(code)) field(fields, 'Meldung', code);
|
|
215
|
+
if (code && !['RUNNING', 'DISABLED', 'STARTING', 'READY', 'STOPPED', 'WAITING_FOR_OWNERSHIP'].includes(code)) field(fields, 'Meldung', code);
|
|
168
216
|
card.append(fields);
|
|
217
|
+
if (waiting) {
|
|
218
|
+
const detail = document.createElement('p'); detail.className = 'runtime-control-note is-blocked';
|
|
219
|
+
const waitingReason = safeCode(row.waitingReason);
|
|
220
|
+
const action = awaitingActivation ? 'Der Prozess ist bereit. Mit „Aktivieren“ wird das Modul mit seiner gespeicherten Konfiguration eingeschaltet.'
|
|
221
|
+
: id === 'ui' ? 'Die Oberfläche ist erreichbar. Die Gerätebedienung wartet auf die Betriebsfreigabe.'
|
|
222
|
+
: id === 'ems' ? 'Der EMS-Prozess läuft im Wartezustand. Die Regelung wartet auf die Betriebsfreigabe.'
|
|
223
|
+
: 'Der Prozess wartet mit Geräteverbindungen und Steuerbefehlen auf die Übergabe.';
|
|
224
|
+
detail.textContent = [action, waitingReason === 'EOS_RUNTIME_MODULE_DISABLED' ? '' : errors[waitingReason] || '',
|
|
225
|
+
operationReason === 'EOS_RUNTIME_MIGRATION_BLOCKED' ? migrationNote(value.migration, id) : ''].filter(Boolean).join(' ');
|
|
226
|
+
card.append(detail);
|
|
227
|
+
}
|
|
228
|
+
if (!waiting && operationReason && operationReason !== entry?.reason) {
|
|
229
|
+
const note = document.createElement('p'); note.className = 'runtime-control-note is-blocked';
|
|
230
|
+
note.textContent = operationReason === 'EOS_RUNTIME_MIGRATION_BLOCKED'
|
|
231
|
+
? [entry?.enabled === false ? 'Nach dem Aktivieren wartet der Betrieb auf die Bestandsübernahme.' :
|
|
232
|
+
'Die Betriebsfreigabe wartet auf die Bestandsübernahme.', migrationNote(value.migration, id)].filter(Boolean).join(' ')
|
|
233
|
+
: explanation(operationReason);
|
|
234
|
+
card.append(note);
|
|
235
|
+
}
|
|
169
236
|
if (code && errors[code] && entry?.reason !== code) {
|
|
170
237
|
const note = document.createElement('p'); note.className = 'runtime-control-note is-blocked';
|
|
171
238
|
note.textContent = errors[code]; card.append(note);
|
|
172
239
|
}
|
|
173
|
-
if (!isExternal && id !== 'admin') addControls(card, id, entry);
|
|
240
|
+
if (!isExternal && id !== 'admin') addControls(card, id, entry, state, value.migration);
|
|
174
241
|
else {
|
|
175
242
|
const note = document.createElement('p'); note.className = 'runtime-control-note';
|
|
176
243
|
note.textContent = isExternal ? 'Diese separate Instanz wird im ioBroker verwaltet. Die EOS-Schalter verändern sie nicht.'
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
|
|
3
3
|
"bomFormat": "CycloneDX",
|
|
4
4
|
"specVersion": "1.5",
|
|
5
|
-
"serialNumber": "urn:uuid:
|
|
5
|
+
"serialNumber": "urn:uuid:b128dc92-83fa-4645-922f-4168dc3bdcb8",
|
|
6
6
|
"version": 1,
|
|
7
7
|
"metadata": {
|
|
8
|
-
"timestamp": "2026-11-
|
|
8
|
+
"timestamp": "2026-11-26T20:24:04.226Z",
|
|
9
9
|
"lifecycles": [
|
|
10
10
|
{
|
|
11
11
|
"phase": "pre-build"
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
}
|
|
20
20
|
],
|
|
21
21
|
"component": {
|
|
22
|
-
"bom-ref": "iobroker.eos-admin@9.0.
|
|
22
|
+
"bom-ref": "iobroker.eos-admin@9.0.36",
|
|
23
23
|
"type": "library",
|
|
24
24
|
"name": "iobroker.eos-admin",
|
|
25
|
-
"version": "9.0.
|
|
25
|
+
"version": "9.0.36",
|
|
26
26
|
"scope": "required",
|
|
27
27
|
"author": "NexoWatt",
|
|
28
28
|
"description": "NexoWatt EOS: licensed local energy management, dashboard and ioBroker system administration in one adapter.",
|
|
29
|
-
"purl": "pkg:npm/iobroker.eos-admin@9.0.
|
|
29
|
+
"purl": "pkg:npm/iobroker.eos-admin@9.0.36",
|
|
30
30
|
"properties": [],
|
|
31
31
|
"externalReferences": []
|
|
32
32
|
}
|
|
@@ -26355,7 +26355,7 @@
|
|
|
26355
26355
|
],
|
|
26356
26356
|
"dependencies": [
|
|
26357
26357
|
{
|
|
26358
|
-
"ref": "iobroker.eos-admin@9.0.
|
|
26358
|
+
"ref": "iobroker.eos-admin@9.0.36",
|
|
26359
26359
|
"dependsOn": [
|
|
26360
26360
|
"@iobroker/adapter-core@3.4.3",
|
|
26361
26361
|
"@iobroker/plugin-docker@1.2.1",
|