Show phase detection in log level debug

This commit is contained in:
andig 2020-08-10 10:13:05 +02:00
parent 0922bc774c
commit b4018a92f7
2 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ const (
evVehicleConnect = "connect" // vehicle connected
evVehicleDisconnect = "disconnect" // vehicle disconnected
minActiveCurrent = 1 // minimum current at which a phase is treated as active
minActiveCurrent = 1.0 // minimum current at which a phase is treated as active
)
// ThresholdConfig defines enable/disable hysteresis parameters
@ -429,7 +429,7 @@ func (lp *LoadPoint) detectPhases() {
if phases > 0 {
lp.Phases = min(phases, lp.Phases)
lp.log.TRACE.Printf("detected phases: %d (%v)", lp.Phases, []float64{i1, i2, i3})
lp.log.DEBUG.Printf("detected phases: %d (%v)", lp.Phases, []float64{i1, i2, i3})
lp.publish("activePhases", lp.Phases)
}

View file

@ -253,7 +253,7 @@ loadpoints:
sensitivity: 1 # current raise/lower step size (default 10A)
enable: # pv mode enable behavior
delay: 1m # threshold must be exceeded for this long
threshold: 0 # minimum export power (W). If zero, export must exceeds minimum charge power to enable
threshold: 0 # minimum export power (W). If zero, export must exceed minimum charge power to enable
disable: # pv mode disable behavior
delay: 5m # threshold must be exceeded for this long
threshold: 200 # maximum import power (W)