mirror of
https://github.com/nymea/nymea-plugins.git
synced 2026-07-13 00:02:28 +02:00
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();
|
||||
|
||||
// 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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user