From b0398236949ef69b15a3effe59b5716098238e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Wed, 6 Oct 2021 15:40:14 +0200 Subject: [PATCH] goECharger: set limit for charging current --- goecharger/integrationplugingoecharger.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/goecharger/integrationplugingoecharger.cpp b/goecharger/integrationplugingoecharger.cpp index 2d9c2cc4..c355db9c 100644 --- a/goecharger/integrationplugingoecharger.cpp +++ b/goecharger/integrationplugingoecharger.cpp @@ -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);