fix id
parent
6713ef8a78
commit
3a750ad640
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue