From 460b9fc90676961ad37d3587dfaf1a7d60c6f4f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 16 Nov 2021 14:45:25 +0100 Subject: [PATCH] Update simple heat pump to power interface --- genericthings/integrationplugingenericthings.cpp | 4 ++-- genericthings/integrationplugingenericthings.json | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/genericthings/integrationplugingenericthings.cpp b/genericthings/integrationplugingenericthings.cpp index ff7b4ae..0e00d93 100644 --- a/genericthings/integrationplugingenericthings.cpp +++ b/genericthings/integrationplugingenericthings.cpp @@ -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 { diff --git a/genericthings/integrationplugingenericthings.json b/genericthings/integrationplugingenericthings.json index 407f705..83163ee 100644 --- a/genericthings/integrationplugingenericthings.json +++ b/genericthings/integrationplugingenericthings.json @@ -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,