From 82212db2092bb1217e884cdb9be51f1bfe7f017c Mon Sep 17 00:00:00 2001 From: andig Date: Tue, 29 Mar 2022 22:18:07 +0200 Subject: [PATCH] PV Mode: ensure default hysteresis (#3035) --- core/loadpoint.go | 8 +++++--- evcc.dist.yaml | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/core/loadpoint.go b/core/loadpoint.go index bde23c9ff..e5b0ce7b0 100644 --- a/core/loadpoint.go +++ b/core/loadpoint.go @@ -255,9 +255,11 @@ func NewLoadPoint(log *util.Logger) *LoadPoint { Mode: api.ModeOff, Phases: 3, status: api.StatusNone, - MinCurrent: 6, // A - MaxCurrent: 16, // A - SoC: SoCConfig{Min: 0, Target: 100}, // % + MinCurrent: 6, // A + MaxCurrent: 16, // A + SoC: SoCConfig{Min: 0, Target: 100}, // % + Enable: ThresholdConfig{Delay: time.Minute, Threshold: 0}, // t, W + Disable: ThresholdConfig{Delay: 3 * time.Minute, Threshold: 0}, // t, W GuardDuration: 5 * time.Minute, progress: NewProgress(0, 10), // soc progress indicator } diff --git a/evcc.dist.yaml b/evcc.dist.yaml index a5341635b..252d3b09d 100644 --- a/evcc.dist.yaml +++ b/evcc.dist.yaml @@ -97,9 +97,9 @@ loadpoints: delay: 1m # threshold must be exceeded for this long threshold: 0 # grid power threshold (in Watts, negative=export). If zero, export must exceed minimum charge power to enable disable: # pv mode disable behavior - delay: 10m # threshold must be exceeded for this long - threshold: 200 # maximum import power (W) - guardDuration: 5m # switch charger contactor not more often than this (default 10m) + delay: 3m # threshold must be exceeded for this long + threshold: 0 # maximum import power (W) + guardDuration: 5m # switch charger contactor not more often than this (default 5m) minCurrent: 6 # minimum charge current (default 6A) maxCurrent: 16 # maximum charge current (default 16A)