Inro: Update EV charger interface and add full charging current resolution
parent
2aed3d0f61
commit
81454f8b6d
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue