diff --git a/core/site_api.go b/core/site_api.go index 8a35ee052..b098e1e1e 100644 --- a/core/site_api.go +++ b/core/site_api.go @@ -183,8 +183,8 @@ func (site *Site) SetBufferSoc(soc float64) error { return ErrBatteryNotConfigured } - if soc != 0 && soc <= site.prioritySoc { - return errors.New("buffer soc must be larger than priority soc") + if soc != 0 && soc < site.prioritySoc { + return errors.New("buffer soc must not be smaller than priority soc") } if site.bufferStartSoc != 0 && soc > site.bufferStartSoc {