goECharger: set limit for charging current

This commit is contained in:
Simon Stürz 2021-10-06 15:40:14 +02:00
parent e7eae3711f
commit b039823694

View File

@ -360,8 +360,7 @@ void IntegrationPluginGoECharger::update(Thing *thing, const QVariantMap &status
uint cableLimit = statusMap.value("cbl").toUInt();
// Set the limit for the max charging amps
// FIXME: set the max value for the state to limit
//thing->setStateMaxValue(goeHomeMaxChargingCurrentStateTypeId, qMin(amaLimit, cableLimit));
thing->setStateMaxValue(goeHomeMaxChargingCurrentStateTypeId, qMin(amaLimit, cableLimit));
thing->setStateValue(goeHomeAbsoluteMaxAmpereStateTypeId, amaLimit);
thing->setStateValue(goeHomeCableType2AmpereStateTypeId, cableLimit);