Update max charging current
parent
7213194a97
commit
b35845cc99
|
|
@ -82,7 +82,7 @@
|
|||
"displayName": "Charging current",
|
||||
"displayNameEvent": "Charging current changed",
|
||||
"displayNameAction": "Set charging current",
|
||||
"type": "double",
|
||||
"type": "uint",
|
||||
"unit": "Ampere",
|
||||
"minValue": 6,
|
||||
"maxValue": 80,
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ void IntegrationPluginWebasto::executeAction(ThingActionInfo *info)
|
|||
thing->setStateValue(liveWallboxPowerActionTypeId, enabled);
|
||||
int ampere = 0;
|
||||
if (enabled) {
|
||||
ampere = thing->stateValue(liveWallboxMaxChargingCurrentStateTypeId).toInt();
|
||||
ampere = thing->stateValue(liveWallboxMaxChargingCurrentStateTypeId).toUInt();
|
||||
}
|
||||
QUuid requestId = connection->setChargeCurrent(ampere);
|
||||
if (requestId.isNull()) {
|
||||
|
|
@ -218,7 +218,7 @@ void IntegrationPluginWebasto::executeAction(ThingActionInfo *info)
|
|||
m_asyncActions.insert(requestId, info);
|
||||
}
|
||||
} else if (action.actionTypeId() == liveWallboxMaxChargingCurrentActionTypeId) {
|
||||
int ampere = action.paramValue(liveWallboxMaxChargingCurrentActionMaxChargingCurrentParamTypeId).toInt();
|
||||
int ampere = action.paramValue(liveWallboxMaxChargingCurrentActionMaxChargingCurrentParamTypeId).toUInt();
|
||||
thing->setStateValue(liveWallboxMaxChargingCurrentStateTypeId, ampere);
|
||||
QUuid requestId = connection->setChargeCurrent(ampere);
|
||||
if (requestId.isNull()) {
|
||||
|
|
|
|||
|
|
@ -91,11 +91,11 @@
|
|||
"displayName": "Charging current",
|
||||
"displayNameAction": "Set charging current",
|
||||
"displayNameEvent": "Charging current changed",
|
||||
"type": "double",
|
||||
"type": "uint",
|
||||
"unit": "Ampere",
|
||||
"minValue": 6.00,
|
||||
"maxValue": 80.00,
|
||||
"defaultValue": 6.00,
|
||||
"minValue": 6,
|
||||
"maxValue": 80,
|
||||
"defaultValue": 6,
|
||||
"writable": true
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue