goECharger: set limit for charging current
This commit is contained in:
parent
e7eae3711f
commit
b039823694
@ -360,8 +360,7 @@ void IntegrationPluginGoECharger::update(Thing *thing, const QVariantMap &status
|
|||||||
uint cableLimit = statusMap.value("cbl").toUInt();
|
uint cableLimit = statusMap.value("cbl").toUInt();
|
||||||
|
|
||||||
// Set the limit for the max charging amps
|
// 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(goeHomeAbsoluteMaxAmpereStateTypeId, amaLimit);
|
||||||
thing->setStateValue(goeHomeCableType2AmpereStateTypeId, cableLimit);
|
thing->setStateValue(goeHomeCableType2AmpereStateTypeId, cableLimit);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user