Update max charging current

pull/40/head
Simon Stürz 2021-10-28 10:50:44 +02:00
parent 7213194a97
commit b35845cc99
3 changed files with 7 additions and 7 deletions

View File

@ -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,

View File

@ -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()) {

View File

@ -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
},
{