Generic energy: Update EV charger interface

update-evcharger-interface
Simon Stürz 2025-12-22 17:11:51 +01:00
parent b4fd80a59b
commit d9cfa92550
2 changed files with 3 additions and 3 deletions

View File

@ -187,7 +187,7 @@ void IntegrationPluginGenericEnergy::executeAction(ThingActionInfo *info)
} else if (action.actionTypeId() == wallboxDesiredPhaseCountActionTypeId) { } else if (action.actionTypeId() == wallboxDesiredPhaseCountActionTypeId) {
thing->setStateValue(wallboxDesiredPhaseCountStateTypeId, action.paramValue(wallboxDesiredPhaseCountActionDesiredPhaseCountParamTypeId).toUInt()); thing->setStateValue(wallboxDesiredPhaseCountStateTypeId, action.paramValue(wallboxDesiredPhaseCountActionDesiredPhaseCountParamTypeId).toUInt());
} else if (action.actionTypeId() == wallboxMaxChargingCurrentActionTypeId) { } else if (action.actionTypeId() == wallboxMaxChargingCurrentActionTypeId) {
thing->setStateValue(wallboxMaxChargingCurrentStateTypeId, action.paramValue(wallboxMaxChargingCurrentActionMaxChargingCurrentParamTypeId).toUInt()); thing->setStateValue(wallboxMaxChargingCurrentStateTypeId, action.paramValue(wallboxMaxChargingCurrentActionMaxChargingCurrentParamTypeId).toDouble());
} else if (action.actionTypeId() == wallboxPhaseCountActionTypeId) { } else if (action.actionTypeId() == wallboxPhaseCountActionTypeId) {
thing->setStateValue(wallboxPhaseCountStateTypeId, action.paramValue(wallboxPhaseCountActionPhaseCountParamTypeId).toUInt()); thing->setStateValue(wallboxPhaseCountStateTypeId, action.paramValue(wallboxPhaseCountActionPhaseCountParamTypeId).toUInt());
} else if (action.actionTypeId() == wallboxPluggedInActionTypeId) { } else if (action.actionTypeId() == wallboxPluggedInActionTypeId) {

View File

@ -380,7 +380,7 @@
"id": "017b2d92-eb57-4177-b489-437b04e212eb", "id": "017b2d92-eb57-4177-b489-437b04e212eb",
"name": "maxChargingCurrent", "name": "maxChargingCurrent",
"displayName": "Maximum charging current", "displayName": "Maximum charging current",
"type": "uint", "type": "double",
"minValue": 6, "minValue": 6,
"maxValue": 64, "maxValue": 64,
"defaultValue": 32 "defaultValue": 32
@ -392,7 +392,7 @@
"name": "maxChargingCurrent", "name": "maxChargingCurrent",
"displayName": "Maximum charging current", "displayName": "Maximum charging current",
"displayNameAction": "Set maximum charging current", "displayNameAction": "Set maximum charging current",
"type": "uint", "type": "double",
"unit": "Ampere", "unit": "Ampere",
"minValue": 6, "minValue": 6,
"maxValue": 32, "maxValue": 32,