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;
|
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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue