fix id
This commit is contained in:
parent
6713ef8a78
commit
3a750ad640
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user