optimizer: skip disabled loadpoints
This commit is contained in:
parent
9b58349204
commit
995e0044bc
1 changed files with 4 additions and 1 deletions
|
|
@ -205,7 +205,10 @@ func (site *Site) optimizerUpdate(battery []types.Measurement) error {
|
|||
continue
|
||||
}
|
||||
|
||||
add(site.loadpointRequest(lp, minLen, firstSlotDuration, grid))
|
||||
// skip disabled loadpoints
|
||||
if req, detail := site.loadpointRequest(lp, minLen, firstSlotDuration, grid); req.CMax > 0 {
|
||||
add(req, detail)
|
||||
}
|
||||
}
|
||||
|
||||
for i, dev := range site.batteryMeters {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue