From e95eac7dd50a26f30280c39bcc48276ab2c0d5b4 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Wed, 26 Jul 2023 13:23:27 +0200 Subject: [PATCH] Mennekes: Use voltage instead of current to determine connected phases --- mennekes/integrationpluginmennekes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mennekes/integrationpluginmennekes.cpp b/mennekes/integrationpluginmennekes.cpp index f8c18c0..fb3d478 100644 --- a/mennekes/integrationpluginmennekes.cpp +++ b/mennekes/integrationpluginmennekes.cpp @@ -482,13 +482,13 @@ void IntegrationPluginMennekes::updateECUPhaseCount(Thing *thing) } qCDebug(dcMennekes()) << "Actively charging phases:" << phaseCount; if (phaseCount == 0) { - if (amtronECUConnection->meterCurrentL1() > 0) { + if (amtronECUConnection->meterVoltageL1() > 0) { phaseCount++; } - if (amtronECUConnection->meterCurrentL2() > 0) { + if (amtronECUConnection->meterVoltageL2() > 0) { phaseCount++; } - if (amtronECUConnection->meterCurrentL3() > 0) { + if (amtronECUConnection->meterVoltageL3() > 0) { phaseCount++; } qCDebug(dcMennekes()) << "Connected phases:" << phaseCount;