Add phaseCount state and setting
parent
53e851d87a
commit
284b447e31
|
|
@ -51,6 +51,8 @@ void IntegrationPluginGenericCar::setupThing(ThingSetupInfo *info)
|
|||
} else if (paramTypeId == carSettingsMinChargingCurrentParamTypeId) {
|
||||
qCDebug(dcGenericCar()) << "Car minimum charging current settings changed" << value.toUInt() << "A";
|
||||
thing->setStateValue(carMinChargingCurrentStateTypeId, value);
|
||||
} else if (paramTypeId == carSettingsPhaseCountParamTypeId) {
|
||||
thing->setStateValue(carPhaseCountStateTypeId, value);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -34,6 +34,15 @@
|
|||
"minValue": 5,
|
||||
"maxValue": 200,
|
||||
"defaultValue": 50
|
||||
},
|
||||
{
|
||||
"id": "6ee1534a-f2c7-4819-8cd5-728dc63a31ba",
|
||||
"name": "phaseCount",
|
||||
"displayName": "Phase count",
|
||||
"type": "uint",
|
||||
"minValue": 1,
|
||||
"maxValue": 3,
|
||||
"defaultValue": 1
|
||||
}
|
||||
],
|
||||
"stateTypes": [
|
||||
|
|
@ -77,6 +86,16 @@
|
|||
"minValue": 6,
|
||||
"maxValue": 16,
|
||||
"defaultValue": 6
|
||||
},
|
||||
{
|
||||
"id": "c886c062-bf1a-46c5-8e54-aed804a22d57",
|
||||
"name": "phaseCount",
|
||||
"displayName": "Phase count",
|
||||
"displayNameEvent": "Phase count changed",
|
||||
"type": "uint",
|
||||
"minValue": 1,
|
||||
"maxValue": 3,
|
||||
"defaultValue": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue