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; qCDebug(dcStiebelEltron()) << thing << "SG Ready activation changed" << smartGridState;
switch (smartGridState) { switch (smartGridState) {
case StiebelEltronModbusConnection::SmartGridStateModeOne: case StiebelEltronModbusConnection::SmartGridStateModeOne:
thing->setStateValue(stiebelEltronSgReadyModeStateTypeId, "Mode 1"); thing->setStateValue(stiebelEltronSgReadyModeStateTypeId, "Off");
break; break;
case StiebelEltronModbusConnection::SmartGridStateModeTwo: case StiebelEltronModbusConnection::SmartGridStateModeTwo:
thing->setStateValue(stiebelEltronSgReadyModeStateTypeId, "Mode 2"); thing->setStateValue(stiebelEltronSgReadyModeStateTypeId, "Low");
break; break;
case StiebelEltronModbusConnection::SmartGridStateModeThree: case StiebelEltronModbusConnection::SmartGridStateModeThree:
thing->setStateValue(stiebelEltronSgReadyModeStateTypeId, "Mode 3"); thing->setStateValue(stiebelEltronSgReadyModeStateTypeId, "Standard");
break; break;
case StiebelEltronModbusConnection::SmartGridStateModeFour: case StiebelEltronModbusConnection::SmartGridStateModeFour:
thing->setStateValue(stiebelEltronSgReadyModeStateTypeId, "Mode 4"); thing->setStateValue(stiebelEltronSgReadyModeStateTypeId, "High");
break; break;
} }
}); });

View File

@ -293,13 +293,13 @@
"displayNameAction": "Set SG Ready mode", "displayNameAction": "Set SG Ready mode",
"type": "QString", "type": "QString",
"possibleValues": [ "possibleValues": [
"Mode 1", "Off",
"Mode 2", "Low",
"Mode 3", "Standard",
"Mode 4" "High"
], ],
"writable": true, "writable": true,
"defaultValue": "Mode 3", "defaultValue": "Standard",
"suggestLogging": true "suggestLogging": true
}, },
{ {