Inro: Update EV charger interface and add full charging current resolution
This commit is contained in:
parent
2aed3d0f61
commit
81454f8b6d
@ -217,7 +217,7 @@ void IntegrationPluginInro::executeAction(ThingActionInfo *info)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (info->action().actionTypeId() == pantaboxMaxChargingCurrentActionTypeId) {
|
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";
|
qCDebug(dcInro()) << "PANTABOX: Set max charging current" << chargingCurrent << "A";
|
||||||
|
|
||||||
QModbusReply *reply = connection->setMaxChargingCurrent(chargingCurrent);
|
QModbusReply *reply = connection->setMaxChargingCurrent(chargingCurrent);
|
||||||
|
|||||||
@ -108,10 +108,11 @@
|
|||||||
"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": 16,
|
"maxValue": 16,
|
||||||
|
"stepSize": 1.0,
|
||||||
"defaultValue": 6,
|
"defaultValue": 6,
|
||||||
"writable": true
|
"writable": true
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user