Closed Coiado closed 5 years ago
The productId
can be found in TuyaSmartDeviceModel
. You can get your home list by -[TuyaSmartHomeManager getHomeListWithSuccess:failure:]
, then get home detail by -[TuyaSmartHome getHomeDetailWithSuccess]
, then get deviceList
in TuyaSmartHome
instance property.
Thank you very much for your answer! Now I can create a group, but I saw that some productIds
in my deviceList
are not the same, what make they different? Is there a unique productId
for each deviceList
?
productId
represents the type of product, devId
represents the unique id of the specific device.
For example, Smart plug A
and Smart plug B
have the same productId
, but different devId
.
I see, but if I try to create my own group with a plug and a lamp, which productId
should I use? Because everytime I create a group with different devices I have the Error: "No permission", I can only create group with the same devices?
Yes, different product can't in same group.
Okay, thank you very much for your help!
Hello, I'm trying to create a group of devices with the function
TuyaSmartGroup.createGroup
, but there's a parameter calledproductId
, where can I find this ID? In the documentation, they said we must use the user device list, but I can't find thegroupId
in my device list.