Merge PR #172: Menekes: Fix AmtronECU charging state for firmware version < 5.22
This commit is contained in:
commit
8bebf4ce9b
@ -646,6 +646,8 @@ void IntegrationPluginMennekes::setupAmtronECUConnection(ThingSetupInfo *info)
|
|||||||
}
|
}
|
||||||
|
|
||||||
thing->setStateValue(amtronECUCurrentPowerStateTypeId, totalPower);
|
thing->setStateValue(amtronECUCurrentPowerStateTypeId, totalPower);
|
||||||
|
thing->setStateValue(amtronECUChargingStateTypeId, totalPower > 0);
|
||||||
|
|
||||||
|
|
||||||
double totalEnergy = 0; // Wh
|
double totalEnergy = 0; // Wh
|
||||||
if (amtronECUConnection->meterEnergyL1() != 0xffffffff) {
|
if (amtronECUConnection->meterEnergyL1() != 0xffffffff) {
|
||||||
|
|||||||
Reference in New Issue
Block a user