Update simple heat pump to power interface

master
Simon Stürz 2021-11-16 14:45:25 +01:00
parent 7f544566e9
commit b4bc9bf2b3
2 changed files with 6 additions and 6 deletions

View File

@ -901,8 +901,8 @@ void IntegrationPluginGenericThings::executeAction(ThingActionInfo *info)
info->finish(Thing::ThingErrorNoError);
}
} else if (thing->thingClassId() == simpleHeatPumpThingClassId) {
if (action.actionTypeId() == simpleHeatPumpBoostActionTypeId) {
thing->setStateValue(simpleHeatPumpBoostStateTypeId, action.paramValue(simpleHeatPumpBoostActionBoostParamTypeId).toBool());
if (action.actionTypeId() == simpleHeatPumpPowerActionTypeId) {
thing->setStateValue(simpleHeatPumpPowerStateTypeId, action.paramValue(simpleHeatPumpBoostActionPowerParamTypeId).toBool());
info->finish(Thing::ThingErrorNoError);
}
} else {

View File

@ -1831,10 +1831,10 @@
"stateTypes": [
{
"id": "ac2ac0f9-058c-4586-8871-2d9dbc6e1758",
"name": "boost",
"displayName": "Boost production enabled",
"displayNameEvent": "Boost production changed",
"displayNameAction": "Boost production",
"name": "power",
"displayName": "Heat pump enabled",
"displayNameEvent": "Heat pump changed",
"displayNameAction": "Enable/Disable heat pump",
"type": "bool",
"writable": true,
"defaultValue": false,