AmtronECU: fix charging state for firmware version < 5.22
This commit is contained in:
parent
25671f284b
commit
f1eb02c722
@ -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