Changed SG Ready values to Off, Low, Standard and High as required by nymea
parent
662cb212c0
commit
501556868b
|
|
@ -234,16 +234,16 @@ void IntegrationPluginStiebelEltron::setupThing(ThingSetupInfo *info) {
|
|||
qCDebug(dcStiebelEltron()) << thing << "SG Ready activation changed" << smartGridState;
|
||||
switch (smartGridState) {
|
||||
case StiebelEltronModbusConnection::SmartGridStateModeOne:
|
||||
thing->setStateValue(stiebelEltronSgReadyModeStateTypeId, "Mode 1");
|
||||
thing->setStateValue(stiebelEltronSgReadyModeStateTypeId, "Off");
|
||||
break;
|
||||
case StiebelEltronModbusConnection::SmartGridStateModeTwo:
|
||||
thing->setStateValue(stiebelEltronSgReadyModeStateTypeId, "Mode 2");
|
||||
thing->setStateValue(stiebelEltronSgReadyModeStateTypeId, "Low");
|
||||
break;
|
||||
case StiebelEltronModbusConnection::SmartGridStateModeThree:
|
||||
thing->setStateValue(stiebelEltronSgReadyModeStateTypeId, "Mode 3");
|
||||
thing->setStateValue(stiebelEltronSgReadyModeStateTypeId, "Standard");
|
||||
break;
|
||||
case StiebelEltronModbusConnection::SmartGridStateModeFour:
|
||||
thing->setStateValue(stiebelEltronSgReadyModeStateTypeId, "Mode 4");
|
||||
thing->setStateValue(stiebelEltronSgReadyModeStateTypeId, "High");
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -293,13 +293,13 @@
|
|||
"displayNameAction": "Set SG Ready mode",
|
||||
"type": "QString",
|
||||
"possibleValues": [
|
||||
"Mode 1",
|
||||
"Mode 2",
|
||||
"Mode 3",
|
||||
"Mode 4"
|
||||
"Off",
|
||||
"Low",
|
||||
"Standard",
|
||||
"High"
|
||||
],
|
||||
"writable": true,
|
||||
"defaultValue": "Mode 3",
|
||||
"defaultValue": "Standard",
|
||||
"suggestLogging": true
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue