From c46c9372ac7756731206bc8d60be29e4ce51f8cb Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 15 May 2023 21:46:46 +0200 Subject: [PATCH] Allow disabling buffer soc settings without warnings --- core/site.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/site.go b/core/site.go index 3e71e65f6..e4d88530c 100644 --- a/core/site.go +++ b/core/site.go @@ -183,11 +183,11 @@ func NewSiteFromConfig( return nil, errors.New("missing either grid or pv meter") } - if site.BufferStartSoc <= site.BufferSoc { + if site.BufferStartSoc != 0 && site.BufferStartSoc <= site.BufferSoc { site.log.WARN.Println("bufferStartSoc must be larger than bufferSoc") } - if site.PrioritySoc > site.BufferSoc { + if site.BufferSoc != 0 && site.BufferSoc <= site.PrioritySoc { site.log.WARN.Println("bufferSoc must be larger than prioritySoc") }