FE implementace deye modu
Some checks failed
CI and deploy / migration-check (push) Failing after 11s
CI and deploy / deploy (push) Has been skipped

This commit is contained in:
Dusan Vojacek
2026-04-20 08:50:20 +02:00
parent 43b594c8d5
commit d8dbb284fd
5 changed files with 109 additions and 8 deletions

View File

@@ -94,6 +94,7 @@ function emptySlot(iso: string): SlotData {
battery_setpoint_w: null,
grid_power_w: null,
grid_setpoint_w: null,
deye_physical_mode: null,
load_power_w: null,
gen_port_power_w: null,
pv_a_forecast_w: null,
@@ -118,6 +119,7 @@ function emptySlot(iso: string): SlotData {
function mergeInterval(s: SlotData, p: PlanningIntervalDto): void {
s.battery_setpoint_w = p.battery_setpoint_w ?? s.battery_setpoint_w
s.grid_setpoint_w = p.grid_setpoint_w ?? s.grid_setpoint_w
if (p.deye_physical_mode != null) s.deye_physical_mode = p.deye_physical_mode
s.ev1_setpoint_w = p.ev1_setpoint_w ?? s.ev1_setpoint_w
s.ev2_setpoint_w = p.ev2_setpoint_w ?? s.ev2_setpoint_w
if (s.ev1_setpoint_w == null && s.ev2_setpoint_w == null && p.ev_charge_power_w != null) {