Merge PR #172: Menekes: Fix AmtronECU charging state for firmware version < 5.22

pull/174/head
jenkins 2024-05-14 15:04:07 +02:00
commit 8bebf4ce9b
1 changed files with 2 additions and 0 deletions

View File

@ -646,6 +646,8 @@ void IntegrationPluginMennekes::setupAmtronECUConnection(ThingSetupInfo *info)
}
thing->setStateValue(amtronECUCurrentPowerStateTypeId, totalPower);
thing->setStateValue(amtronECUChargingStateTypeId, totalPower > 0);
double totalEnergy = 0; // Wh
if (amtronECUConnection->meterEnergyL1() != 0xffffffff) {