Inro: Update EV charger interface and add full charging current resolution

master
Simon Stürz 2025-12-22 16:14:41 +01:00
parent 2aed3d0f61
commit 81454f8b6d
2 changed files with 3 additions and 2 deletions

View File

@ -217,7 +217,7 @@ void IntegrationPluginInro::executeAction(ThingActionInfo *info)
}
if (info->action().actionTypeId() == pantaboxMaxChargingCurrentActionTypeId) {
quint16 chargingCurrent = info->action().paramValue(pantaboxMaxChargingCurrentActionMaxChargingCurrentParamTypeId).toUInt();
quint16 chargingCurrent = static_cast<quint16>(qRound(info->action().paramValue(pantaboxMaxChargingCurrentActionMaxChargingCurrentParamTypeId).toDouble()));
qCDebug(dcInro()) << "PANTABOX: Set max charging current" << chargingCurrent << "A";
QModbusReply *reply = connection->setMaxChargingCurrent(chargingCurrent);

View File

@ -108,10 +108,11 @@
"name": "maxChargingCurrent",
"displayName": "Maximum charging current",
"displayNameAction": "Set maximum charging current",
"type": "uint",
"type": "double",
"unit": "Ampere",
"minValue": 6,
"maxValue": 16,
"stepSize": 1.0,
"defaultValue": 6,
"writable": true
},