Prioritizer: no flexibility for switch devices in MinPV (#30194)
This commit is contained in:
parent
c00c21aa04
commit
dcc8ed6f7e
1 changed files with 5 additions and 1 deletions
|
|
@ -662,7 +662,11 @@ func (lp *Loadpoint) GetChargePowerFlexibility(rates api.Rates) float64 {
|
|||
return lp.GetChargePower()
|
||||
}
|
||||
|
||||
// MinPV mode
|
||||
// MinPV mode: a charger without current control (switch socket or heatpump) cannot release power.
|
||||
if lp.chargerHasFeature(api.SwitchDevice) || lp.chargerHasFeature(api.Continuous) {
|
||||
return 0
|
||||
}
|
||||
|
||||
return max(0, lp.GetChargePower()-lp.EffectiveMinPower())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue