From 53e19a4efc2b07c9a610d1d11fa5907fd6a46b46 Mon Sep 17 00:00:00 2001 From: andig Date: Tue, 3 Jun 2025 11:11:54 +0200 Subject: [PATCH] Revert "Loadpoint: publish charge voltages also with phase switching (#21510)" This reverts commit 94b1145e39cc5751174fd69be90f5fd831ac2a99. --- core/loadpoint.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/loadpoint.go b/core/loadpoint.go index b3ce3e4a0..0db6ca419 100644 --- a/core/loadpoint.go +++ b/core/loadpoint.go @@ -1559,6 +1559,10 @@ func (lp *Loadpoint) phasesFromChargeCurrents() { // updateChargeVoltages uses PhaseVoltages interface to count phases with nominal grid voltage func (lp *Loadpoint) updateChargeVoltages() { + if lp.hasPhaseSwitching() { + return // we don't need the voltages + } + phaseMeter, ok := lp.chargeMeter.(api.PhaseVoltages) if !ok { return // don't guess @@ -1574,10 +1578,6 @@ func (lp *Loadpoint) updateChargeVoltages() { lp.log.DEBUG.Printf("charge voltages: %.3gV", chargeVoltages) lp.publish(keys.ChargeVoltages, chargeVoltages) - if lp.hasPhaseSwitching() { - return // we don't need the voltages - } - a1, a2, a3 := u1 >= minActiveVoltage, u2 >= minActiveVoltage, u3 >= minActiveVoltage // Quine-McCluskey for (¬L1∧L2∧¬L3) ∨ (L1∧L2∧¬L3) ∨ (¬L1∧¬L2∧L3) ∨ (L1∧¬L2∧L3) ∨ (¬L1∧L2∧L3) -> ¬L1 ∧ L3 ∨ L2 ∧ ¬L3 ∨ ¬L2 ∧ L3