Update simple heat pump to power interface
This commit is contained in:
parent
7f544566e9
commit
b4bc9bf2b3
@ -901,8 +901,8 @@ void IntegrationPluginGenericThings::executeAction(ThingActionInfo *info)
|
|||||||
info->finish(Thing::ThingErrorNoError);
|
info->finish(Thing::ThingErrorNoError);
|
||||||
}
|
}
|
||||||
} else if (thing->thingClassId() == simpleHeatPumpThingClassId) {
|
} else if (thing->thingClassId() == simpleHeatPumpThingClassId) {
|
||||||
if (action.actionTypeId() == simpleHeatPumpBoostActionTypeId) {
|
if (action.actionTypeId() == simpleHeatPumpPowerActionTypeId) {
|
||||||
thing->setStateValue(simpleHeatPumpBoostStateTypeId, action.paramValue(simpleHeatPumpBoostActionBoostParamTypeId).toBool());
|
thing->setStateValue(simpleHeatPumpPowerStateTypeId, action.paramValue(simpleHeatPumpBoostActionPowerParamTypeId).toBool());
|
||||||
info->finish(Thing::ThingErrorNoError);
|
info->finish(Thing::ThingErrorNoError);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -1831,10 +1831,10 @@
|
|||||||
"stateTypes": [
|
"stateTypes": [
|
||||||
{
|
{
|
||||||
"id": "ac2ac0f9-058c-4586-8871-2d9dbc6e1758",
|
"id": "ac2ac0f9-058c-4586-8871-2d9dbc6e1758",
|
||||||
"name": "boost",
|
"name": "power",
|
||||||
"displayName": "Boost production enabled",
|
"displayName": "Heat pump enabled",
|
||||||
"displayNameEvent": "Boost production changed",
|
"displayNameEvent": "Heat pump changed",
|
||||||
"displayNameAction": "Boost production",
|
"displayNameAction": "Enable/Disable heat pump",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"writable": true,
|
"writable": true,
|
||||||
"defaultValue": false,
|
"defaultValue": false,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user