Vestel: Update EV charger interface and add full charging current resolution
parent
94a3c31a3a
commit
a7d900e516
|
|
@ -187,7 +187,7 @@ void IntegrationPluginVestel::executeAction(ThingActionInfo *info)
|
||||||
// Note: only write the register if power is true, otherwise we would start charging. The state represents the desired current,
|
// Note: only write the register if power is true, otherwise we would start charging. The state represents the desired current,
|
||||||
// once the power is true, the current will be written to the corresponding current.
|
// once the power is true, the current will be written to the corresponding current.
|
||||||
|
|
||||||
int maxChargingCurrent = info->action().paramValue(evc04MaxChargingCurrentActionMaxChargingCurrentParamTypeId).toInt();
|
quint16 maxChargingCurrent = static_cast<quint16>(qRound(info->action().paramValue(evc04MaxChargingCurrentActionMaxChargingCurrentParamTypeId).toDouble()));
|
||||||
|
|
||||||
if (info->thing()->stateValue(evc04PowerStateTypeId).toBool()) {
|
if (info->thing()->stateValue(evc04PowerStateTypeId).toBool()) {
|
||||||
qCDebug(dcVestel()) << "Write max charging current" << maxChargingCurrent;
|
qCDebug(dcVestel()) << "Write max charging current" << maxChargingCurrent;
|
||||||
|
|
|
||||||
|
|
@ -107,10 +107,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": 32,
|
"maxValue": 32,
|
||||||
|
"stepSize": 1.0,
|
||||||
"defaultValue": 6,
|
"defaultValue": 6,
|
||||||
"writable": true
|
"writable": true
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue