Changed SG Ready values to Off, Low, Standard and High as required by nymea

master
l.heizinger 2022-02-22 10:22:24 +01:00 committed by Simon Stürz
parent 662cb212c0
commit 501556868b
2 changed files with 9 additions and 9 deletions

View File

@ -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;
}
});

View File

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