From d9cfa92550dc3d67143f78ddaa863e3ad0375c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Mon, 22 Dec 2025 17:11:51 +0100 Subject: [PATCH] Generic energy: Update EV charger interface --- genericenergy/integrationplugingenericenergy.cpp | 2 +- genericenergy/integrationplugingenericenergy.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/genericenergy/integrationplugingenericenergy.cpp b/genericenergy/integrationplugingenericenergy.cpp index 61df52e..956ed89 100644 --- a/genericenergy/integrationplugingenericenergy.cpp +++ b/genericenergy/integrationplugingenericenergy.cpp @@ -187,7 +187,7 @@ void IntegrationPluginGenericEnergy::executeAction(ThingActionInfo *info) } else if (action.actionTypeId() == wallboxDesiredPhaseCountActionTypeId) { thing->setStateValue(wallboxDesiredPhaseCountStateTypeId, action.paramValue(wallboxDesiredPhaseCountActionDesiredPhaseCountParamTypeId).toUInt()); } else if (action.actionTypeId() == wallboxMaxChargingCurrentActionTypeId) { - thing->setStateValue(wallboxMaxChargingCurrentStateTypeId, action.paramValue(wallboxMaxChargingCurrentActionMaxChargingCurrentParamTypeId).toUInt()); + thing->setStateValue(wallboxMaxChargingCurrentStateTypeId, action.paramValue(wallboxMaxChargingCurrentActionMaxChargingCurrentParamTypeId).toDouble()); } else if (action.actionTypeId() == wallboxPhaseCountActionTypeId) { thing->setStateValue(wallboxPhaseCountStateTypeId, action.paramValue(wallboxPhaseCountActionPhaseCountParamTypeId).toUInt()); } else if (action.actionTypeId() == wallboxPluggedInActionTypeId) { diff --git a/genericenergy/integrationplugingenericenergy.json b/genericenergy/integrationplugingenericenergy.json index e73add4..f7dcac5 100644 --- a/genericenergy/integrationplugingenericenergy.json +++ b/genericenergy/integrationplugingenericenergy.json @@ -380,7 +380,7 @@ "id": "017b2d92-eb57-4177-b489-437b04e212eb", "name": "maxChargingCurrent", "displayName": "Maximum charging current", - "type": "uint", + "type": "double", "minValue": 6, "maxValue": 64, "defaultValue": 32 @@ -392,7 +392,7 @@ "name": "maxChargingCurrent", "displayName": "Maximum charging current", "displayNameAction": "Set maximum charging current", - "type": "uint", + "type": "double", "unit": "Ampere", "minValue": 6, "maxValue": 32,