Optimizer: ignore disconnected loadpoints
This commit is contained in:
parent
8451169aec
commit
4b0524e392
1 changed files with 5 additions and 0 deletions
|
|
@ -124,6 +124,11 @@ func (site *Site) optimizerUpdate(battery []measurement) error {
|
|||
}
|
||||
|
||||
for _, lp := range site.Loadpoints() {
|
||||
// ignore disconnected loadpoints
|
||||
if lp.GetStatus() == api.StatusA {
|
||||
continue
|
||||
}
|
||||
|
||||
bat := evopt.BatteryConfig{
|
||||
ChargeFromGrid: lo.ToPtr(true),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue