TuyaSmartHomeDelegate Protocol Reference

Conforms to NSObject
Declared in TuyaSmartHome.h

– homeDidUpdateInfo:

the delegate of home update information, such as the name, online 家庭信息变化代理回调

- (void)homeDidUpdateInfo:(TuyaSmartHome *)home

Parameters

home

instance

Discussion

the delegate of home update information, such as the name, online 家庭信息变化代理回调

Declared In

TuyaSmartHome.h

– homeDidUpdateSharedInfo:

the delegate of shared device list update. 设备共享信息变化代理回调

- (void)homeDidUpdateSharedInfo:(TuyaSmartHome *)home

Parameters

home

instance

Discussion

the delegate of shared device list update. 设备共享信息变化代理回调

Declared In

TuyaSmartHome.h

– home:didAddRoom:

the delegate when a new room is added. 家庭下新增房间代理回调

- (void)home:(TuyaSmartHome *)home didAddRoom:(TuyaSmartRoomModel *)room

Parameters

home

instance

room

roomModel

Discussion

the delegate when a new room is added. 家庭下新增房间代理回调

Declared In

TuyaSmartHome.h

– home:didRemoveRoom:

the delegate when an existing room is removed. 家庭下删除房间代理回调

- (void)home:(TuyaSmartHome *)home didRemoveRoom:(long long)roomId

Parameters

home

instance

roomId

roomId

Discussion

the delegate when an existing room is removed. 家庭下删除房间代理回调

Declared In

TuyaSmartHome.h

– home:roomInfoUpdate:

the delegate of room update information, such as the name. 家庭下房间信息变化代理回调

- (void)home:(TuyaSmartHome *)home roomInfoUpdate:(TuyaSmartRoomModel *)room

Parameters

home

instance

room

roomModel

Discussion

the delegate of room update information, such as the name. 家庭下房间信息变化代理回调

Declared In

TuyaSmartHome.h

– home:roomRelationUpdate:

the delegate of relation update of room, group and device. 房间和设备,群组关系变化代理回调

- (void)home:(TuyaSmartHome *)home roomRelationUpdate:(TuyaSmartRoomModel *)room

Parameters

home

instance

room

roomModel

Discussion

the delegate of relation update of room, group and device. 房间和设备,群组关系变化代理回调

Declared In

TuyaSmartHome.h

– home:didAddDeivice:

the delegate when a new device is added. 家庭下新增设备代理回调

- (void)home:(TuyaSmartHome *)home didAddDeivice:(TuyaSmartDeviceModel *)device

Parameters

home

instance

device

deviceModel

Discussion

the delegate when a new device is added. 家庭下新增设备代理回调

Declared In

TuyaSmartHome.h

– home:didRemoveDeivice:

the delegate when an existing device is removed. 家庭下删除设备代理回调

- (void)home:(TuyaSmartHome *)home didRemoveDeivice:(NSString *)devId

Parameters

home

instance

devId

devId

Discussion

the delegate when an existing device is removed. 家庭下删除设备代理回调

Declared In

TuyaSmartHome.h

– home:deviceInfoUpdate:

the delegate of device update information, such as the name. 家庭下设备的信息变化代理回调

- (void)home:(TuyaSmartHome *)home deviceInfoUpdate:(TuyaSmartDeviceModel *)device

Parameters

home

instance

device

deviceModel

Discussion

the delegate of device update information, such as the name. 家庭下设备的信息变化代理回调

Declared In

TuyaSmartHome.h

– home:device:dpsUpdate:

the delegate of device dps update. 家庭下设备的 dps 变化代理回调

- (void)home:(TuyaSmartHome *)home device:(TuyaSmartDeviceModel *)device dpsUpdate:(NSDictionary *)dps

Parameters

home

instance

device

deviceModel

dps

dps

Discussion

the delegate of device dps update. 家庭下设备的 dps 变化代理回调

Declared In

TuyaSmartHome.h

– home:device:warningInfoUpdate:

the delegate of warning information update 家庭下设备的告警信息变化的代理回调

- (void)home:(TuyaSmartHome *)home device:(TuyaSmartDeviceModel *)device warningInfoUpdate:(NSDictionary *)warningInfo

Parameters

home

instance

device

deviceModel

warningInfo

warning Info

Discussion

the delegate of warning information update 家庭下设备的告警信息变化的代理回调

Declared In

TuyaSmartHome.h

– home:device:firmwareUpgradeStatusModel:

the delegate of device firmware upgrade status update 家庭下设备升级状态的回调

- (void)home:(TuyaSmartHome *)home device:(TuyaSmartDeviceModel *)device firmwareUpgradeStatusModel:(TuyaSmartFirmwareUpgradeStatusModel *)upgradeStatusModel

Parameters

home

家庭实例 home instance

device

设备模型 deviceModel

upgradeStatusModel

设备升级状态模型 upgradeStatusModel

Discussion

the delegate of device firmware upgrade status update 家庭下设备升级状态的回调

Declared In

TuyaSmartHome.h

– home:didAddGroup:

the delegate when a new group is added. 家庭下新增群组代理回调

- (void)home:(TuyaSmartHome *)home didAddGroup:(TuyaSmartGroupModel *)group

Parameters

home

instance

group

groupModel

Discussion

the delegate when a new group is added. 家庭下新增群组代理回调

Declared In

TuyaSmartHome.h

– home:group:dpsUpdate:

the delegate of group dps update. 家庭下群组 dps 变化代理回调

- (void)home:(TuyaSmartHome *)home group:(TuyaSmartGroupModel *)group dpsUpdate:(NSDictionary *)dps

Parameters

home

instance

group

groupModel

dps

dps

Discussion

the delegate of group dps update. 家庭下群组 dps 变化代理回调

Declared In

TuyaSmartHome.h

– home:didRemoveGroup:

the delegate when an existing group is removed. 家庭下删除群组代理回调

- (void)home:(TuyaSmartHome *)home didRemoveGroup:(NSString *)groupId

Parameters

home

instance

groupId

groupId

Discussion

the delegate when an existing group is removed. 家庭下删除群组代理回调

Declared In

TuyaSmartHome.h

– home:groupInfoUpdate:

the delegate of group update information, such as the name. 家庭下群组基本信息变化(例如群组名字等)代理回调

- (void)home:(TuyaSmartHome *)home groupInfoUpdate:(TuyaSmartGroupModel *)group

Parameters

home

instance

group

groupModel

Discussion

the delegate of group update information, such as the name. 家庭下群组基本信息变化(例如群组名字等)代理回调

Declared In

TuyaSmartHome.h

– homeDidUpdateRoomInfo:

the delegate of relation update of home and room.(deprecated) 家庭下房间信息信息变化代理回调(已废弃)

- (void)homeDidUpdateRoomInfo:(TuyaSmartHome *)home

Parameters

home

instance

Discussion

the delegate of relation update of home and room.(deprecated) 家庭下房间信息信息变化代理回调(已废弃)

Declared In

TuyaSmartHome.h

– home:device:upgradeStatus:

the delegate of device firmware upgrade status update 家庭下设备升级状态的回调(废弃)

- (void)home:(TuyaSmartHome *)home device:(TuyaSmartDeviceModel *)device upgradeStatus:(TuyaSmartDeviceUpgradeStatus)upgradeStatus

Parameters

home

instance

device

deviceModel

upgradeStatus

upgrade status

Discussion

the delegate of device firmware upgrade status update 家庭下设备升级状态的回调(废弃)

Declared In

TuyaSmartHome.h