From 9e1780c5c40fb0f17d28edb4ef1ea68bfd969225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Thu, 4 Nov 2021 13:22:43 +0100 Subject: [PATCH] Show theoretical hardware limit for the charging current --- keba/integrationpluginkeba.cpp | 1 + keba/integrationpluginkeba.json | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/keba/integrationpluginkeba.cpp b/keba/integrationpluginkeba.cpp index 370e9728..80209bb8 100644 --- a/keba/integrationpluginkeba.cpp +++ b/keba/integrationpluginkeba.cpp @@ -433,6 +433,7 @@ void IntegrationPluginKeba::onReportTwoReceived(const KeContact::ReportTwo &repo thing->setStateValue(wallboxMaxChargingCurrentStateTypeId, qRound(reportTwo.currentUser)); thing->setStateValue(wallboxMaxChargingCurrentPercentStateTypeId, reportTwo.maxCurrentPercentage); + thing->setStateValue(wallboxMaxChargingCurrentHardwareStateTypeId, reportTwo.currentHardwareLimitation); // Set the state limits according to the hardware limits if (reportTwo.currentHardwareLimitation > 0) { diff --git a/keba/integrationpluginkeba.json b/keba/integrationpluginkeba.json index 0b35bff6..9cf84009 100644 --- a/keba/integrationpluginkeba.json +++ b/keba/integrationpluginkeba.json @@ -153,6 +153,16 @@ "minValue": 0, "maxValue": 100 }, + { + "id": "33e2ed95-f01e-44db-8156-34d124a8ecc8", + "name": "maxChargingCurrentHardware", + "displayName": "Maximal hardware charging current", + "displayNameEvent": "Maximal hardware charging current changed", + "type": "uint", + "unit": "Ampere", + "defaultValue": 32, + "suggestLogging": true + }, { "id": "4a2d75d8-a3a0-4b40-9ca7-e8b6f11d0ef9", "name": "voltagePhaseA",