iobroker.nexowatt-ui 0.8.73 → 0.8.76
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/ems/modules/heating-rod-control.js +108 -33
- package/io-package.json +13 -13
- package/main.js +91 -68
- package/package.json +1 -1
- package/www/app.js +28 -23
- package/www/ems-apps.html +2 -2
- package/www/ems-apps.js +83 -12
- package/www/history.js +2 -2
- package/www/index.html +0 -1
- package/www/logic.html +5 -5
- package/www/manifest.webmanifest +2 -2
- package/www/rfid-report.html +6 -6
- package/www/settings.html +0 -1
- package/www/simulation.html +2 -2
- package/www/smarthome-config.html +2 -2
- package/www/storagefarm.html +2 -2
- package/www/sw.js +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
3
3
|
*
|
|
4
4
|
* Quelle: src-ts/runtime-executables/ems/modules/heating-rod-control.ts
|
|
5
|
-
* Quell-Hash: sha256:
|
|
5
|
+
* Quell-Hash: sha256:91ca00f069c17ba10cefec4128b240bd73ba20bb7ef20647f344831da010b4a0
|
|
6
6
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
7
7
|
*
|
|
8
8
|
* Zweck:
|
|
@@ -169,6 +169,23 @@ function normalizeUserMode(raw) {
|
|
|
169
169
|
if (s === 'off' || s === 'aus' || s === '0') return 'off';
|
|
170
170
|
return 'inherit';
|
|
171
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* Code-Teil: normalizeHeatingRodAutoMode
|
|
174
|
+
* Zweck: Normalisiert die Betriebsart, die hinter dem einen sichtbaren Auto-Button liegt.
|
|
175
|
+
* Zusammenhang: `pvAuto` bleibt der Kundenmodus im Frontend; diese Auswahl entscheidet intern,
|
|
176
|
+
* ob Auto nach gemessenem PV-Überschuss am NVP oder nach 0-W-Einspeisung/Forecast regelt.
|
|
177
|
+
* TypeScript: Beim späteren Ausbau als Union-Typ `'pvSurplus' | 'zeroExportForecast'` führen.
|
|
178
|
+
*/
|
|
179
|
+
function normalizeHeatingRodAutoMode(raw) {
|
|
180
|
+
const s = String(raw || '').trim().toLowerCase();
|
|
181
|
+
if (s === 'zeroexportforecast' || s === 'zero-export-forecast' || s === 'zero_export_forecast'
|
|
182
|
+
|| s === 'zeroexport' || s === 'zero-export' || s === 'zero_export'
|
|
183
|
+
|| s === 'zerofeedin' || s === 'zero-feed-in' || s === 'zero_feed_in'
|
|
184
|
+
|| s === 'zero' || s === '0w' || s === '0-w' || s === '0_w'
|
|
185
|
+
|| s === '0einspeisung' || s === '0-einspeisung' || s === '0_einspeisung'
|
|
186
|
+
|| s === 'zeroeinspeisung' || s === 'forecast') return 'zeroExportForecast';
|
|
187
|
+
return 'pvSurplus';
|
|
188
|
+
}
|
|
172
189
|
/**
|
|
173
190
|
* Code-Teil: normalizeConsumerType
|
|
174
191
|
* Zweck: Kapselt einen lokalen Verarbeitungsschritt, damit Aufrufer nicht direkt in Detaildaten eingreifen.
|
|
@@ -598,7 +615,7 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
598
615
|
def: 'inherit',
|
|
599
616
|
states: {
|
|
600
617
|
inherit: 'System',
|
|
601
|
-
pvAuto: 'Auto
|
|
618
|
+
pvAuto: 'Auto',
|
|
602
619
|
manual1: 'Manuell Stufe 1',
|
|
603
620
|
manual2: 'Manuell Stufe 2',
|
|
604
621
|
manual3: 'Manuell Stufe 3',
|
|
@@ -669,6 +686,7 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
669
686
|
await mk('heatingRod.summary.tsLegacyFinalCleanupJson', 'TypeScript Heizstab Legacy-JS-Final-Cleanup (JSON)', 'string', 'json');
|
|
670
687
|
await mk('heatingRod.summary.tsLegacyNormalDiagnosticsJson', 'TypeScript Heizstab Legacy-JS-Normaldiagnose entfernt (JSON)', 'string', 'json');
|
|
671
688
|
await mk('heatingRod.summary.legacyJsReferenceJson', 'Heizstab Legacy-JS-Referenzdiagnose Alias (JSON)', 'string', 'json');
|
|
689
|
+
await mk('heatingRod.summary.autoMode', 'Heizstab Auto-Betriebsart', 'string', 'text');
|
|
672
690
|
await mk('heatingRod.summary.zeroExportActive', 'Zero/minus feed-in logic active', 'boolean', 'indicator');
|
|
673
691
|
await mk('heatingRod.summary.zeroExportCanProbe', 'Zero/minus feed-in probe allowed', 'boolean', 'indicator');
|
|
674
692
|
await mk('heatingRod.summary.zeroExportReason', 'Zero/minus feed-in reason', 'string', 'text');
|
|
@@ -735,6 +753,7 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
735
753
|
await mk(`heatingRod.devices.${d.id}.appliedW`, 'Applied power (W)', 'number', 'value.power', 'W');
|
|
736
754
|
await mk(`heatingRod.devices.${d.id}.measuredW`, 'Measured (W)', 'number', 'value.power', 'W');
|
|
737
755
|
await mk(`heatingRod.devices.${d.id}.status`, 'Status', 'string', 'text');
|
|
756
|
+
await mk(`heatingRod.devices.${d.id}.autoMode`, 'Auto-Betriebsart', 'string', 'text');
|
|
738
757
|
await mk(`heatingRod.devices.${d.id}.zeroExportActive`, 'Zero/minus feed-in active', 'boolean', 'indicator');
|
|
739
758
|
await mk(`heatingRod.devices.${d.id}.zeroExportReason`, 'Zero/minus feed-in reason', 'string', 'text');
|
|
740
759
|
await mk(`heatingRod.devices.${d.id}.zeroExportCanProbe`, 'Zero/minus feed-in probe allowed', 'boolean', 'indicator');
|
|
@@ -1397,8 +1416,17 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
1397
1416
|
return Math.round(clamp(def, minV, maxV));
|
|
1398
1417
|
};
|
|
1399
1418
|
|
|
1419
|
+
// Betriebsart des einen Auto-Buttons: neue Konfiguration (`cfg.autoMode`) hat Vorrang.
|
|
1420
|
+
// Alte Installationen mit `zeroExport.enabled=true` werden nur dann automatisch migriert,
|
|
1421
|
+
// wenn noch keine explizite Betriebsart gespeichert wurde. So kann ein späteres Zurückstellen
|
|
1422
|
+
// auf PV-Überschuss nicht durch ein altes Detail-Flag wieder überschrieben werden.
|
|
1423
|
+
const explicitAutoMode = cfg.autoMode ?? cfg.automationMode ?? raw.autoMode ?? raw.mode;
|
|
1424
|
+
const legacyZeroEnabled = !!(raw.enabled || raw.active);
|
|
1425
|
+
const autoMode = normalizeHeatingRodAutoMode(explicitAutoMode || (legacyZeroEnabled ? 'zeroExportForecast' : 'pvSurplus'));
|
|
1426
|
+
|
|
1400
1427
|
return {
|
|
1401
|
-
|
|
1428
|
+
autoMode,
|
|
1429
|
+
enabled: autoMode === 'zeroExportForecast',
|
|
1402
1430
|
feedInLimitW: n(['feedInLimitW', 'allowedExportW', 'exportLimitW'], 1000, 0, 1000000),
|
|
1403
1431
|
feedInToleranceW: n(['feedInToleranceW', 'exportToleranceW'], 150, 0, 100000),
|
|
1404
1432
|
targetExportBufferW: n(['targetExportBufferW', 'exportBufferW'], 100, 0, 100000),
|
|
@@ -1623,7 +1651,7 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
1623
1651
|
_computeZeroExportInfo(pvBase) {
|
|
1624
1652
|
const cfg = this._getZeroExportCfg();
|
|
1625
1653
|
if (!cfg.enabled) {
|
|
1626
|
-
return { active: false, canProbe: false, reason: '
|
|
1654
|
+
return { active: false, canProbe: false, reason: 'auto_mode_pv_surplus', cfg };
|
|
1627
1655
|
}
|
|
1628
1656
|
if (!pvBase || !pvBase.gridKnown) {
|
|
1629
1657
|
return { active: true, canProbe: false, reason: 'grid_unknown', cfg };
|
|
@@ -2323,12 +2351,12 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
2323
2351
|
};
|
|
2324
2352
|
}
|
|
2325
2353
|
|
|
2326
|
-
//
|
|
2327
|
-
//
|
|
2328
|
-
//
|
|
2329
|
-
//
|
|
2330
|
-
if (info && info.active && info.storageReady === false &&
|
|
2331
|
-
const reduceBase = Math.max(currentStage, observedStage);
|
|
2354
|
+
// In der Betriebsart 0-W/Forecast ersetzt diese Strategie den normalen
|
|
2355
|
+
// PV-Überschuss-Start. Speicher-Vorrang reduziert deshalb auch laufende
|
|
2356
|
+
// Auto-Stufen stufenweise, damit der Heizstab keinen Akku leerzieht, wenn
|
|
2357
|
+
// die versteckte PV-Leistung noch nicht belastbar bestätigt ist.
|
|
2358
|
+
if (info && info.active && info.storageReady === false && Math.max(currentStage, observedStage, targetStage) > 0) {
|
|
2359
|
+
const reduceBase = Math.max(currentStage, observedStage, targetStage);
|
|
2332
2360
|
targetStage = Math.min(targetStage, this._previousPhysicalStageBelow(d, reduceBase));
|
|
2333
2361
|
st.zeroCooldownUntilMs = now + Math.max(0, cfg.cooldownSec * 1000);
|
|
2334
2362
|
st.zeroLastStepDownMs = now;
|
|
@@ -2348,6 +2376,30 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
2348
2376
|
};
|
|
2349
2377
|
}
|
|
2350
2378
|
|
|
2379
|
+
// Ohne Netzpunktmessung fehlt der harte 0-W-Schutz. In dieser Situation
|
|
2380
|
+
// hält die 0-W-/Forecast-Betriebsart keine Auto-Stufe fest, sondern reduziert
|
|
2381
|
+
// kontrolliert, bis wieder belastbare NVP-Daten vorliegen.
|
|
2382
|
+
if (info && info.active && String(info.reason || '') === 'grid_unknown' && Math.max(currentStage, observedStage, targetStage) > 0) {
|
|
2383
|
+
const reduceBase = Math.max(currentStage, observedStage, targetStage);
|
|
2384
|
+
targetStage = this._previousPhysicalStageBelow(d, reduceBase);
|
|
2385
|
+
st.zeroCooldownUntilMs = now + Math.max(0, cfg.cooldownSec * 1000);
|
|
2386
|
+
st.zeroLastStepDownMs = now;
|
|
2387
|
+
st.lastDecreaseMs = now;
|
|
2388
|
+
st.zeroProbe = null;
|
|
2389
|
+
st.targetStage = targetStage;
|
|
2390
|
+
reason = 'grid_unknown_reduce';
|
|
2391
|
+
this._stageCtl.set(d.id, st);
|
|
2392
|
+
return {
|
|
2393
|
+
targetStage,
|
|
2394
|
+
reduceNow: true,
|
|
2395
|
+
hardOff: false,
|
|
2396
|
+
reason,
|
|
2397
|
+
importHoldMs,
|
|
2398
|
+
dischargeHoldMs,
|
|
2399
|
+
nextAllowedAt: st.zeroCooldownUntilMs || 0,
|
|
2400
|
+
};
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2351
2403
|
const probe = (st.zeroProbe && typeof st.zeroProbe === 'object') ? st.zeroProbe : null;
|
|
2352
2404
|
if (probe) {
|
|
2353
2405
|
const probeStage = Math.max(0, Math.min(Math.round(Number(probe.stage) || 0), d.stageCount));
|
|
@@ -3917,6 +3969,13 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
3917
3969
|
...extra,
|
|
3918
3970
|
};
|
|
3919
3971
|
};
|
|
3972
|
+
// Der TS-Spiegel modelliert den normalen PV-/Budgetpfad. Die 0-W-/Forecast-
|
|
3973
|
+
// Strategie arbeitet bewusst mit Probe-Stufen und Live-Netzpunktwächter und
|
|
3974
|
+
// bleibt deshalb hier JS-autoritativer Pfad, damit TS den Probe-Zielwert nicht
|
|
3975
|
+
// mit einem klassischen Überschussziel überschreibt.
|
|
3976
|
+
if (entry && entry.zeroExportActive) {
|
|
3977
|
+
return fallback('zero-export-forecast-js-strategy', { zeroExportActive: true });
|
|
3978
|
+
}
|
|
3920
3979
|
if (!evaluate) return fallback('missing-ts-mirror');
|
|
3921
3980
|
try {
|
|
3922
3981
|
const d = entry && entry.device || {};
|
|
@@ -4071,6 +4130,10 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
4071
4130
|
const pvBase = this._computeBasePvAvailableW(currentAutoHeatingRodW);
|
|
4072
4131
|
const budgetProtection = this._updateBudgetGateProtection(pvBase, now);
|
|
4073
4132
|
const zeroExportInfo = this._computeZeroExportInfo(pvBase);
|
|
4133
|
+
// Diese Betriebsart bestimmt nur die interne Auto-Strategie. Im Kunden-UI bleibt
|
|
4134
|
+
// weiterhin genau ein Auto-Button (`pvAuto`) sichtbar.
|
|
4135
|
+
const heatingRodAutoMode = normalizeHeatingRodAutoMode(zeroExportInfo && zeroExportInfo.cfg && zeroExportInfo.cfg.autoMode);
|
|
4136
|
+
const zeroExportStrategyActive = heatingRodAutoMode === 'zeroExportForecast' && !!zeroExportInfo.active;
|
|
4074
4137
|
const minPvAutomationW = this._getPvAutomationMinW();
|
|
4075
4138
|
const pvNowForAutomationW = this._readPvNowW(staleMs);
|
|
4076
4139
|
const pvAutomationAllowedByMin = minPvAutomationW <= 0 || pvNowForAutomationW >= minPvAutomationW;
|
|
@@ -4100,8 +4163,9 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
4100
4163
|
await this._setStateIfChanged(`heatingRod.devices.${d.id}.maxPowerW`, Math.round(num(d.maxPowerW, 0)));
|
|
4101
4164
|
await this._setStateIfChanged(`heatingRod.devices.${d.id}.stageCount`, d.stageCount);
|
|
4102
4165
|
await this._setStateIfChanged(`heatingRod.devices.${d.id}.wiredStages`, d.wiredStages);
|
|
4103
|
-
await this._setStateIfChanged(`heatingRod.devices.${d.id}.
|
|
4104
|
-
await this._setStateIfChanged(`heatingRod.devices.${d.id}.
|
|
4166
|
+
await this._setStateIfChanged(`heatingRod.devices.${d.id}.autoMode`, heatingRodAutoMode);
|
|
4167
|
+
await this._setStateIfChanged(`heatingRod.devices.${d.id}.zeroExportActive`, !!zeroExportStrategyActive);
|
|
4168
|
+
await this._setStateIfChanged(`heatingRod.devices.${d.id}.zeroExportCanProbe`, !!(zeroExportStrategyActive && zeroExportInfo.canProbe));
|
|
4105
4169
|
await this._setStateIfChanged(`heatingRod.devices.${d.id}.zeroExportReason`, String(zeroExportInfo.reason || ''));
|
|
4106
4170
|
await this._setStateIfChanged(`heatingRod.devices.${d.id}.zeroExportNextAllowedAt`, Math.round(num((this._stageCtl.get(d.id) || {}).zeroCooldownUntilMs, 0)));
|
|
4107
4171
|
|
|
@@ -4322,27 +4386,32 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
4322
4386
|
continue;
|
|
4323
4387
|
}
|
|
4324
4388
|
|
|
4325
|
-
let desiredStage =
|
|
4389
|
+
let desiredStage = 0;
|
|
4326
4390
|
let zeroDecision = null;
|
|
4327
|
-
let budgetDecision =
|
|
4328
|
-
|
|
4329
|
-
//
|
|
4330
|
-
//
|
|
4331
|
-
//
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4391
|
+
let budgetDecision = null;
|
|
4392
|
+
// Die globale Betriebsart ersetzt nur den Algorithmus hinter `pvAuto`;
|
|
4393
|
+
// die Kundenbedienung bleibt ein einzelner Auto-Button. Im 0-W-/Forecast-Modus
|
|
4394
|
+
// darf der sichtbare NVP-Überschuss NICHT als Startbudget dienen, weil WR/Speicher
|
|
4395
|
+
// ihn bei 0-Einspeisung absichtlich auf 0 W halten.
|
|
4396
|
+
if (zeroExportStrategyActive) {
|
|
4397
|
+
const st = this._ensureStageCtlState(d.id, observedStage);
|
|
4398
|
+
desiredStage = Math.max(0, Math.min(Math.round(Number(st.targetStage ?? observedStage) || 0), d.stageCount));
|
|
4399
|
+
budgetDecision = { targetStage: desiredStage, reduceNow: false, hardOff: false, reason: 'zero_export_replaces_pv_surplus' };
|
|
4335
4400
|
zeroDecision = this._applyZeroExportStageStrategy(d, desiredStage, observedStage, pvBase, zeroExportInfo, now, measuredW);
|
|
4336
4401
|
desiredStage = Math.max(0, Math.min(num(zeroDecision.targetStage, desiredStage), d.stageCount));
|
|
4337
4402
|
await this._setStateIfChanged(`heatingRod.devices.${d.id}.zeroExportReason`, String(zeroDecision.reason || zeroExportInfo.reason || ''));
|
|
4338
4403
|
await this._setStateIfChanged(`heatingRod.devices.${d.id}.zeroExportNextAllowedAt`, Math.round(num(zeroDecision.nextAllowedAt, 0)));
|
|
4404
|
+
} else {
|
|
4405
|
+
desiredStage = this._computeDesiredStage(d, remainingW, observedStage, measuredW);
|
|
4406
|
+
budgetDecision = this._applyBudgetFollowerStageStrategy(d, desiredStage, observedStage, pvBase, budgetProtection, now, !pvMinBlocksStepUp);
|
|
4407
|
+
desiredStage = Math.max(0, Math.min(num(budgetDecision.targetStage, desiredStage), d.stageCount));
|
|
4339
4408
|
}
|
|
4340
4409
|
|
|
4341
4410
|
// Reiner PV-Betrieb: bei Netzbezug oder Speicherentladung keine Stufe halten
|
|
4342
4411
|
// oder neu zuschalten. Bei aktivem 0-Einspeise-Sondermodus werden kurze Transienten
|
|
4343
4412
|
// nicht sofort gekillt, sondern erst nach den konfigurierten Schutzzeiten.
|
|
4344
4413
|
let forceNonPvDown = !!((budgetDecision && budgetDecision.reduceNow) || (budgetProtection && budgetProtection.reduceNow));
|
|
4345
|
-
if (
|
|
4414
|
+
if (zeroExportStrategyActive) forceNonPvDown = !!(forceNonPvDown || (zeroDecision && zeroDecision.reduceNow));
|
|
4346
4415
|
if (forceNonPvDown) {
|
|
4347
4416
|
// Reduce to the next lower *physical* actuator set. This is important for
|
|
4348
4417
|
// installations that accidentally map several virtual stages to the same KNX/relay
|
|
@@ -4354,7 +4423,7 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
4354
4423
|
desiredStage = Math.min(desiredStage, lowerPhysicalStage);
|
|
4355
4424
|
}
|
|
4356
4425
|
|
|
4357
|
-
const forceStorageProtectOff = !!(pvBase.forceOff && desiredStage <= 0 && !(
|
|
4426
|
+
const forceStorageProtectOff = !!(pvBase.forceOff && desiredStage <= 0 && !(zeroExportStrategyActive && zeroDecision && !zeroDecision.reduceNow));
|
|
4358
4427
|
let targetStage = forceStorageProtectOff
|
|
4359
4428
|
? 0
|
|
4360
4429
|
: (forceNonPvDown ? desiredStage : this._applyTiming(d, desiredStage, observedStage));
|
|
@@ -4367,7 +4436,8 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
4367
4436
|
deviceId: d.id,
|
|
4368
4437
|
jsTargetStage: jsTargetStageBeforeTs,
|
|
4369
4438
|
jsTargetW: jsTargetWBeforeTs,
|
|
4370
|
-
jsStatus: forceStorageProtectOff ? 'storage_protect' : (forceNonPvDown ? 'pv_only_protect' : 'pv_auto'),
|
|
4439
|
+
jsStatus: zeroExportStrategyActive ? 'zero_export_forecast_auto' : (forceStorageProtectOff ? 'storage_protect' : (forceNonPvDown ? 'pv_only_protect' : 'pv_auto')),
|
|
4440
|
+
zeroExportActive: !!zeroExportStrategyActive,
|
|
4371
4441
|
effectiveMode,
|
|
4372
4442
|
availablePvW: Math.max(0, Number(pvBase && pvBase.availableW) || 0),
|
|
4373
4443
|
availableTotalW: pvBase && pvBase.budgetGateEffectiveW !== null && pvBase.budgetGateEffectiveW !== undefined ? Math.max(0, Number(pvBase.budgetGateEffectiveW) || 0) : Math.max(0, Number(pvBase && pvBase.availableW) || 0),
|
|
@@ -4419,7 +4489,7 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
4419
4489
|
const forcePvWrite = !!(forceStorageProtectOff || forceNonPvDown || (targetStage <= 0 && mayWriteOff && offWouldTouchLoad));
|
|
4420
4490
|
const res = await this._applyStageState(d, targetStage, feedback, { force: forcePvWrite });
|
|
4421
4491
|
const effectiveTargetStage = Math.max(0, Math.min(num(res.targetStage, targetStage), d.wiredStages));
|
|
4422
|
-
this._markAutoOwnership(d, effectiveTargetStage > 0, effectiveTargetStage, 'pvAuto');
|
|
4492
|
+
this._markAutoOwnership(d, effectiveTargetStage > 0, effectiveTargetStage, zeroExportStrategyActive ? 'zeroExportForecast' : 'pvAuto');
|
|
4423
4493
|
const targetW = this._sumStagePowerModel(d, effectiveTargetStage, observedStage, measuredW);
|
|
4424
4494
|
const measuredUsedW = (typeof measuredW === 'number' && Number.isFinite(measuredW) && measuredW > 0)
|
|
4425
4495
|
? Math.max(0, measuredW)
|
|
@@ -4593,7 +4663,10 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
4593
4663
|
pvReserveW: tariffImportPreferred ? 0 : used,
|
|
4594
4664
|
actualW: Math.max(0, Math.round(currentHeatingRodW || appliedTotalW || used || 0)),
|
|
4595
4665
|
pvOnly: !tariffImportPreferred,
|
|
4596
|
-
|
|
4666
|
+
// Budget-Diagnose: bei gleichem Frontend-Auto-Button sichtbar machen,
|
|
4667
|
+
// ob der Heizstab gerade klassisch nach NVP-Überschuss oder per
|
|
4668
|
+
// 0-W-/Forecast-Strategie geführt wird.
|
|
4669
|
+
mode: tariffImportPreferred ? 'tariffNegative' : (zeroExportStrategyActive ? 'zeroExportForecast' : 'pvAuto'),
|
|
4597
4670
|
});
|
|
4598
4671
|
}
|
|
4599
4672
|
} catch (_e) {
|
|
@@ -4620,12 +4693,13 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
4620
4693
|
await this._setStateIfChanged('heatingRod.summary.gridImportLimitW', Math.round(num(pvBase.importToleranceW, 0)));
|
|
4621
4694
|
await this._setStateIfChanged('heatingRod.summary.gridImportExceeded', !!(budgetProtection && budgetProtection.importActive));
|
|
4622
4695
|
await this._setStateIfChanged('heatingRod.summary.storageDischargeExceeded', !!(budgetProtection && budgetProtection.dischargeActive));
|
|
4623
|
-
await this._setStateIfChanged('heatingRod.summary.
|
|
4624
|
-
await this._setStateIfChanged('heatingRod.summary.
|
|
4696
|
+
await this._setStateIfChanged('heatingRod.summary.autoMode', heatingRodAutoMode);
|
|
4697
|
+
await this._setStateIfChanged('heatingRod.summary.zeroExportActive', !!zeroExportStrategyActive);
|
|
4698
|
+
await this._setStateIfChanged('heatingRod.summary.zeroExportCanProbe', !!(zeroExportStrategyActive && zeroExportInfo.canProbe));
|
|
4625
4699
|
await this._setStateIfChanged('heatingRod.summary.zeroExportReason', String(zeroExportInfo.reason || ''));
|
|
4626
4700
|
await this._setStateIfChanged('heatingRod.summary.zeroExportPvNowW', Math.round(num(zeroExportInfo.pvNowW, 0)));
|
|
4627
|
-
await this._setStateIfChanged('heatingRod.summary.zeroExportForecastOk', !!zeroExportInfo.forecastOk);
|
|
4628
|
-
await this._setStateIfChanged('heatingRod.summary.zeroExportFeedInAtLimit', !!zeroExportInfo.feedInAtLimit);
|
|
4701
|
+
await this._setStateIfChanged('heatingRod.summary.zeroExportForecastOk', !!(zeroExportStrategyActive && zeroExportInfo.forecastOk));
|
|
4702
|
+
await this._setStateIfChanged('heatingRod.summary.zeroExportFeedInAtLimit', !!(zeroExportStrategyActive && zeroExportInfo.feedInAtLimit));
|
|
4629
4703
|
await this._setStateIfChanged('heatingRod.summary.pvAutomationMinW', Math.round(num(minPvAutomationW, 0)));
|
|
4630
4704
|
await this._setStateIfChanged('heatingRod.summary.pvAutomationPvNowW', Math.round(num(pvNowForAutomationW, 0)));
|
|
4631
4705
|
await this._setStateIfChanged('heatingRod.summary.pvAutomationAllowed', !!pvAutomationAllowedByMin);
|
|
@@ -4712,8 +4786,9 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
4712
4786
|
protection: budgetProtection || null,
|
|
4713
4787
|
},
|
|
4714
4788
|
zeroExport: {
|
|
4715
|
-
|
|
4716
|
-
|
|
4789
|
+
autoMode: heatingRodAutoMode,
|
|
4790
|
+
active: !!zeroExportStrategyActive,
|
|
4791
|
+
canProbe: !!(zeroExportStrategyActive && zeroExportInfo.canProbe),
|
|
4717
4792
|
reason: zeroExportInfo.reason,
|
|
4718
4793
|
pvNowW: Math.round(num(zeroExportInfo.pvNowW, 0)),
|
|
4719
4794
|
feedInAtLimit: !!zeroExportInfo.feedInAtLimit,
|
|
@@ -4724,7 +4799,7 @@ class HeatingRodControlModule extends BaseModule {
|
|
|
4724
4799
|
},
|
|
4725
4800
|
}));
|
|
4726
4801
|
await this._setStateIfChanged('heatingRod.summary.lastUpdate', now);
|
|
4727
|
-
await this._setStateIfChanged('heatingRod.summary.status', (this._devices && this._devices.length) ? `ok_${pvBase.source}${!pvAutomationAllowedByMin ? '_pv_min_block' : ''}${pvBase.forceOff ? '_storage_protect' : ''}${budgetProtection && budgetProtection.reason !== 'ok' ? `_gate_${String(budgetProtection.reason)}` : ''}${
|
|
4802
|
+
await this._setStateIfChanged('heatingRod.summary.status', (this._devices && this._devices.length) ? `ok_${pvBase.source}${!pvAutomationAllowedByMin ? '_pv_min_block' : ''}${pvBase.forceOff ? '_storage_protect' : ''}${budgetProtection && budgetProtection.reason !== 'ok' ? `_gate_${String(budgetProtection.reason)}` : ''}${zeroExportStrategyActive ? `_zero_${String(zeroExportInfo.reason || 'active')}` : ''}` : 'no_devices');
|
|
4728
4803
|
}
|
|
4729
4804
|
}
|
|
4730
4805
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "nexowatt-ui",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.76",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.8.76": {
|
|
7
|
+
"de": "Version 0.8.76: Ergänzt die Heizstab-Betriebsart für den bestehenden Auto-Button. Im Heizstab-AppCenter kann jetzt zwischen PV-Überschuss am NVP und 0-W-Einspeisung/Forecast gewählt werden; die alte separate Testlast-Aktivierung wurde bereinigt.",
|
|
8
|
+
"en": "Version 0.8.76: Adds a heating-rod operating mode behind the existing Auto button. The heating-rod App Center can now select PV surplus at the grid connection point or zero-export/forecast control; the old separate test-load activation was cleaned up."
|
|
9
|
+
},
|
|
10
|
+
"0.8.75": {
|
|
11
|
+
"de": "Version 0.8.75: Entfernt den Passwortschutz aus dem Kunden-/LIVE-Frontend. Schnellsteuerung, EVCS, SmartHome, RFID und Kundeneinstellungen sind ohne Admin-/Installer-Login bedienbar; App-Center, Simulation, Mapping und Lizenz bleiben geschützt.",
|
|
12
|
+
"en": "Version 0.8.75: Removes the password gate from the customer/LIVE frontend. Quick controls, EVCS, SmartHome, RFID and customer settings are operable without admin/installer login; App Center, simulation, mapping and license remain protected."
|
|
13
|
+
},
|
|
14
|
+
"0.8.74": {
|
|
15
|
+
"de": "Version 0.8.74: History-Verbraucherfarben stärker getrennt. Speicherfarm erscheint im Kundenmenü nur, wenn die App im App-Center aktiv ist und eine echte Farm-Konfiguration vorhanden ist.",
|
|
16
|
+
"en": "Version 0.8.74: History extra-consumer colors are more distinct. Storage Farm appears in the customer menu only when the app is active in the App Center and a real farm configuration exists."
|
|
17
|
+
},
|
|
6
18
|
"0.8.73": {
|
|
7
19
|
"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
20
|
"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."
|
|
@@ -18,18 +30,6 @@
|
|
|
18
30
|
"0.8.70": {
|
|
19
31
|
"de": "Version 0.8.70: Speicher-Einstellungen herstellerneutral bereinigt. Sichtbare FENECON-/Sungrow-Texte wurden durch allgemeine DP-Zuordnungs- und Gateway-Beschreibungen ersetzt; Legacy-IDs bleiben intern kompatibel.",
|
|
20
32
|
"en": "Version 0.8.70: Cleans up storage settings to be vendor-neutral. Visible FENECON/Sungrow wording was replaced by generic datapoint-mapping and gateway descriptions; legacy IDs remain internally compatible."
|
|
21
|
-
},
|
|
22
|
-
"0.8.69": {
|
|
23
|
-
"de": "Version 0.8.69: Speicherregelung herstelleroffener: getrennte Lade-/Entlade-Sollwert-DPs und optionaler Run-DP für Einzel-Speicher ergänzt. Eigenverbrauchs-Entladung ist für generische Speicher nun standardmäßig aktiv, solange keine Reserve-/Tarifsperre greift.",
|
|
24
|
-
"en": "Version 0.8.69: Storage control is more vendor-open: adds separate charge/discharge target datapoints and an optional run datapoint for single storages. Self-consumption discharge is now enabled by default for generic storages unless reserve/tariff gates block it."
|
|
25
|
-
},
|
|
26
|
-
"0.8.68": {
|
|
27
|
-
"de": "Version 0.8.68: Härtet die Rollenfreigabe für App-Center und Lizenzverwaltung. Geschützte Seiten laden keine Hintergrundwerte mehr ohne Admin-/Installer-Session; Abbrechen im Login legt keine Konfiguration frei. Lizenz-Info ist Admin-only.",
|
|
28
|
-
"en": "Version 0.8.68: Hardens role-gated access for App Center and license management. Protected pages no longer load background values without an admin/installer session; cancelling login cannot reveal configuration. License info is admin-only."
|
|
29
|
-
},
|
|
30
|
-
"0.8.67": {
|
|
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.",
|
|
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."
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"title": "NexoWatt UI",
|