This commit is contained in:
Michael Zanetti 2020-04-01 10:52:30 +02:00
parent 6713ef8a78
commit 3a750ad640

View File

@ -426,8 +426,8 @@ void IntegrationPluginPhilipsHue::setupThing(ThingSetupInfo *info)
if (thing->thingClassId() == smartButtonThingClassId) { if (thing->thingClassId() == smartButtonThingClassId) {
HueRemote *smartButton = new HueRemote(this); HueRemote *smartButton = new HueRemote(this);
smartButton->setName(thing->name()); smartButton->setName(thing->name());
smartButton->setId(thing->paramValue(tapThingSensorIdParamTypeId).toInt()); smartButton->setId(thing->paramValue(smartButtonThingSensorIdParamTypeId).toInt());
smartButton->setModelId(thing->paramValue(tapThingModelIdParamTypeId).toString()); smartButton->setModelId(thing->paramValue(smartButtonThingModelIdParamTypeId).toString());
connect(smartButton, &HueRemote::stateChanged, this, &IntegrationPluginPhilipsHue::remoteStateChanged); connect(smartButton, &HueRemote::stateChanged, this, &IntegrationPluginPhilipsHue::remoteStateChanged);
connect(smartButton, &HueRemote::buttonPressed, this, &IntegrationPluginPhilipsHue::onRemoteButtonEvent); connect(smartButton, &HueRemote::buttonPressed, this, &IntegrationPluginPhilipsHue::onRemoteButtonEvent);