add No GridMeter mode

This commit is contained in:
atef 2024-06-26 15:07:24 +02:00
parent c2aad6783b
commit 51668f0d1c
1 changed files with 10 additions and 1 deletions

View File

@ -31,8 +31,17 @@ public static class Controller
{ {
var mode = s.SelectControlMode().WriteLine(); var mode = s.SelectControlMode().WriteLine();
if (mode is EssMode.Off or EssMode.NoGridMeter) if (mode is EssMode.Off)
return EssControl.Default; 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); var essDelta = s.ComputePowerDelta(mode);