From 3f422c88ebcf82b00f54dfee4b253e464393ac68 Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 28 Feb 2022 09:43:18 +0100 Subject: [PATCH] Warn when other phases than L1 are active (#2719) --- core/loadpoint.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/loadpoint.go b/core/loadpoint.go index d3384981e..80ff7ae48 100644 --- a/core/loadpoint.go +++ b/core/loadpoint.go @@ -1327,8 +1327,11 @@ func (lp *LoadPoint) updateChargeCurrents() { if lp.charging() { var phases int - for _, i := range lp.chargeCurrents { + for l, i := range lp.chargeCurrents { if i >= minActiveCurrent { + if l > 0 && phases == 0 { + lp.log.WARN.Printf("invalid wiring: phase %d observed active should be first phase", l+1) + } phases++ } }