Merge PR #143: Mennekes: Use voltage instead of current to determine connected phases

master
jenkins 2023-08-17 14:11:21 +02:00
commit 7e01211601
1 changed files with 3 additions and 3 deletions

View File

@ -502,13 +502,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;