TuyaSmartMultiControl Class Reference

Inherits from NSObject
Declared in TuyaSmartMultiControl.h

– queryDeviceLinkInfoWithDevId:dpId:success:failure:

查询设备下 dp 按键关联的多控和自动化

- (void)queryDeviceLinkInfoWithDevId:(NSString *)devId dpId:(NSString *)dpId success:(void ( ^ ) ( TuyaSmartMultiControlLinkModel *))success failure:(TYFailureError)failure

Parameters

devId

设备id

dpId

数据点id

success

成功回调

failure

失败回调

Discussion

查询设备下 dp 按键关联的多控和自动化

Declared In

TuyaSmartMultiControl.h

– addMultiControlWithDevId:groupName:groupDetail:success:failure:

新增多控组

- (void)addMultiControlWithDevId:(NSString *)devId groupName:(NSString *)groupName groupDetail:(NSArray<TuyaSmartMultiControlDetailModel*> *)groupDetail success:(void ( ^ ) ( TuyaSmartMultiControlModel *))success failure:(TYFailureError)failure

Parameters

devId

主设备id

groupName

多控组名称

groupDetail

多控组关联详情

success

成功回调

failure

失败回调

Discussion

新增多控组

Declared In

TuyaSmartMultiControl.h

– updateMultiControlWithDevId:multiControlModel:success:failure:

更新多控组

- (void)updateMultiControlWithDevId:(NSString *)devId multiControlModel:(TuyaSmartMultiControlModel *)model success:(void ( ^ ) ( TuyaSmartMultiControlModel *))success failure:(TYFailureError)failure

Parameters

devId

主设备id

model

多控组数据模型

success

成功回调

failure

失败回调

Discussion

更新多控组

Declared In

TuyaSmartMultiControl.h

– queryDeviceDpRelationWithDevId:success:failure:

获取附属设备的 dp 点信息、已关联的多控、场景自动化信息

- (void)queryDeviceDpRelationWithDevId:(NSString *)devId success:(void ( ^ ) ( TuyaSmartMultiControlDpRelationModel *))success failure:(TYFailureError)failure

Parameters

devId

设备id

success

成功回调

failure

失败回调

Discussion

获取附属设备的 dp 点信息、已关联的多控、场景自动化信息

Declared In

TuyaSmartMultiControl.h

– enableMultiControlWithMultiControlId:enable:success:failure:

启用或停用多控组

- (void)enableMultiControlWithMultiControlId:(NSString *)multiControlId enable:(BOOL)enable success:(TYSuccessBOOL)success failure:(TYFailureError)failure

Parameters

multiControlId

多控组 Id

enable

启用或停用

success

成功回调

failure

失败回调

Discussion

启用或停用多控组

Declared In

TuyaSmartMultiControl.h

– getMultiControlDeviceListWithHomeId:success:failure:

查询支持执行动作的设备ID列表及设备群组列表(包括用户的和家庭的)

- (void)getMultiControlDeviceListWithHomeId:(long long)homeId success:(void ( ^ ) ( NSArray<TuyaSmartMultiControlDeviceModel*> *))success failure:(TYFailureError)failure

Parameters

homeId

家庭 Id

success

成功回调

failure

失败回调

Discussion

查询支持执行动作的设备ID列表及设备群组列表(包括用户的和家庭的)

Declared In

TuyaSmartMultiControl.h

– getDeviceDpInfoWithDevId:success:failure:

获取设备下所有 dp 点信息

- (void)getDeviceDpInfoWithDevId:(NSString *)devId success:(void ( ^ ) ( NSArray<TuyaSmartMultiControlDatapointModel*> *))success failure:(TYFailureError)failure

Parameters

devId

设备id

success

成功回调

failure

失败回调

Discussion

获取设备下所有 dp 点信息

Declared In

TuyaSmartMultiControl.h