From 3a750ad64039e92d6ff80838af7447499491ec6e Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Wed, 1 Apr 2020 10:52:30 +0200 Subject: [PATCH] fix id --- philipshue/integrationpluginphilipshue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/philipshue/integrationpluginphilipshue.cpp b/philipshue/integrationpluginphilipshue.cpp index 5a9f3bf5..aa8874f3 100644 --- a/philipshue/integrationpluginphilipshue.cpp +++ b/philipshue/integrationpluginphilipshue.cpp @@ -426,8 +426,8 @@ void IntegrationPluginPhilipsHue::setupThing(ThingSetupInfo *info) if (thing->thingClassId() == smartButtonThingClassId) { HueRemote *smartButton = new HueRemote(this); smartButton->setName(thing->name()); - smartButton->setId(thing->paramValue(tapThingSensorIdParamTypeId).toInt()); - smartButton->setModelId(thing->paramValue(tapThingModelIdParamTypeId).toString()); + smartButton->setId(thing->paramValue(smartButtonThingSensorIdParamTypeId).toInt()); + smartButton->setModelId(thing->paramValue(smartButtonThingModelIdParamTypeId).toString()); connect(smartButton, &HueRemote::stateChanged, this, &IntegrationPluginPhilipsHue::remoteStateChanged); connect(smartButton, &HueRemote::buttonPressed, this, &IntegrationPluginPhilipsHue::onRemoteButtonEvent);