-
public interface IThingZigbeeGroup
The interface provides zigbee group related operations, including device update, add, and remove.
-
-
Method Summary
Modifier and Type Method Description abstract void
sendCommand(String devId, List<String> devIds, String gid, int actionId, IThingResultCallback<ZigbeeGroupCreateResultBean> callback)
abstract void
updateGroupDeviceList(long homeId, List<String> devIds, IResultCallback callback)
Update group device list. abstract void
addDeviceToGroup(String devId, List<String> devIds, String gid, IThingResultCallback<ZigbeeGroupCreateResultBean> callback)
Add device to group. abstract void
delDeviceToGroup(String devId, List<String> devIds, String gid, IThingResultCallback<ZigbeeGroupCreateResultBean> callback)
Del device to group. abstract void
queryZigbeeDeviceListToAddGroup(long gid, long groupId, String productId, String parentId, IThingResultCallback<List<GroupDeviceBean>> callback)
Obtain the device list of product. abstract void
createZigbeeGroup(String productId, long gid, String parentId, String name, IThingResultCallback<CloudZigbeeGroupCreateBean> callback)
Creating a Zigbee device Group. -
-
Method Detail
-
sendCommand
@Deprecated() abstract void sendCommand(String devId, List<String> devIds, String gid, int actionId, IThingResultCallback<ZigbeeGroupCreateResultBean> callback)
- Parameters:
devId
- the device iddevIds
- the sub device idsgid
- the group idactionId
- the action idcallback
- the callback com.thingclips.smart.home.sdk.callback.IThingResultCallback
-
updateGroupDeviceList
abstract void updateGroupDeviceList(long homeId, List<String> devIds, IResultCallback callback)
Update group device list.
- Parameters:
homeId
- the home iddevIds
- the sub device idscallback
- the callback com.thingclips.smart.sdk.api.IResultCallback
-
addDeviceToGroup
abstract void addDeviceToGroup(String devId, List<String> devIds, String gid, IThingResultCallback<ZigbeeGroupCreateResultBean> callback)
Add device to group.
- Parameters:
devId
- the device iddevIds
- the sub device idsgid
- the group idcallback
- the callback com.thingclips.smart.home.sdk.callback.IThingResultCallback
-
delDeviceToGroup
abstract void delDeviceToGroup(String devId, List<String> devIds, String gid, IThingResultCallback<ZigbeeGroupCreateResultBean> callback)
Del device to group.
- Parameters:
devId
- the device iddevIds
- the sub device idsgid
- the group idcallback
- the callback com.thingclips.smart.home.sdk.callback.IThingResultCallback
-
queryZigbeeDeviceListToAddGroup
abstract void queryZigbeeDeviceListToAddGroup(long gid, long groupId, String productId, String parentId, IThingResultCallback<List<GroupDeviceBean>> callback)
Obtain the device list of product.
Group List Acquisition.
- Parameters:
groupId
- The group is not created, parameter groupId must be an integer -1productId
- Select the pid of the device that created the grouparentId
- Select the meshId of the device that created the group, deviceBean.callback
- IThingResultCallback IThingResultCallback
-
createZigbeeGroup
abstract void createZigbeeGroup(String productId, long gid, String parentId, String name, IThingResultCallback<CloudZigbeeGroupCreateBean> callback)
Creating a Zigbee device Group.
- Parameters:
productId
- The pid of the device what is using to create groupgid
- home id or groupIdparentId
- Select the meshId of the device that created the group, deviceBean.name
- A name of the group to be createdcallback
- IThingResultCallback IThingResultCallback
-
-
-
-