Merge remote-tracking branch 'origin/main'

This commit is contained in:
kostas 2024-06-26 15:55:09 +02:00
commit 0aea1b5c56
1 changed files with 10 additions and 1 deletions

View File

@ -31,8 +31,17 @@ public static class Controller
{
var mode = s.SelectControlMode().WriteLine();
if (mode is EssMode.Off or EssMode.NoGridMeter)
if (mode is EssMode.Off)
return EssControl.Default;
if (mode is EssMode.NoGridMeter)
return new EssControl
{
LimitedBy = EssLimit.NoLimit,
Mode = EssMode.NoGridMeter,
PowerCorrection = 0,
PowerSetpoint = s.Battery == null ? 1000 : s.Battery.Devices.Count * s.Config.BatterySelfDischargePower // 1000 default value for heating the battery
};
var essDelta = s.ComputePowerDelta(mode);