From 4bcfe7c029712073ff9804915813bf6ae3cd9ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Mon, 22 Dec 2025 15:18:41 +0100 Subject: [PATCH] PCE: Update EV charger interface and add full charging current resolution --- pcelectric/integrationpluginpcelectric.cpp | 2 +- pcelectric/integrationpluginpcelectric.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pcelectric/integrationpluginpcelectric.cpp b/pcelectric/integrationpluginpcelectric.cpp index 630c35e..19a9f89 100644 --- a/pcelectric/integrationpluginpcelectric.cpp +++ b/pcelectric/integrationpluginpcelectric.cpp @@ -223,7 +223,7 @@ void IntegrationPluginPcElectric::executeAction(ThingActionInfo *info) } else if (info->action().actionTypeId() == ev11MaxChargingCurrentActionTypeId) { - uint desiredChargingCurrent = info->action().paramValue(ev11MaxChargingCurrentActionMaxChargingCurrentParamTypeId).toUInt(); + double desiredChargingCurrent = info->action().paramValue(ev11MaxChargingCurrentActionMaxChargingCurrentParamTypeId).toDouble(); qCDebug(dcPcElectric()) << "Set max charging current to" << desiredChargingCurrent << "A"; // Update buffer diff --git a/pcelectric/integrationpluginpcelectric.json b/pcelectric/integrationpluginpcelectric.json index 1003faf..97b477d 100644 --- a/pcelectric/integrationpluginpcelectric.json +++ b/pcelectric/integrationpluginpcelectric.json @@ -126,11 +126,12 @@ "displayName": "Maximum charging current", "displayNameEvent": "Maximum charging current changed", "displayNameAction": "Set maximum charging current", - "type": "uint", + "type": "double", "unit": "Ampere", "defaultValue": 6, "minValue": 6, "maxValue": 16, + "stepSize": 0.01, "writable": true }, {