add No GridMeter mode
This commit is contained in:
parent
c2aad6783b
commit
51668f0d1c
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue