Tuya iOS Smart Life App SDK 5.15.0
ThingSmartHome Class Reference

#import <ThingSmartHome.h>

Inheritance diagram for ThingSmartHome:

Instance Methods

(instancetype) - NS_UNAVAILABLE
 
(void) - getHomeDataWithSuccess:failure:
 
(void) - getHomeLocalDevicesWithSuccess:failure:
 
(void) - getLoalDeviceConfigWithDevId:success:failure:
 
(void) - getHomeDeviceSortWithSuccess:failure:
 
(void) - getDeviceOTAStatusWithHomeId:success:failure:
 
(void) - updateHomeInfoWithName:geoName:latitude:longitude:success:failure:
 
(void) - updateHomeInfoWithName:geoName:latitude:longitude:rooms:overWriteRoom:success:failure:
 
(void) - dismissHomeWithSuccess:failure:
 
(instancetype) - NS_UNAVAILABLE
 
(void) - getHomeDataWithSuccess:failure:
 
(void) - getHomeLocalDevicesWithSuccess:failure:
 
(void) - getLoalDeviceConfigWithDevId:success:failure:
 
(void) - getHomeDeviceSortWithSuccess:failure:
 
(void) - getDeviceOTAStatusWithHomeId:success:failure:
 
(void) - updateHomeInfoWithName:geoName:latitude:longitude:success:failure:
 
(void) - updateHomeInfoWithName:geoName:latitude:longitude:rooms:overWriteRoom:success:failure:
 
(void) - dismissHomeWithSuccess:failure:
 
(instancetype) - NS_UNAVAILABLE
 
(void) - getHomeDataWithSuccess:failure:
 
(void) - getHomeLocalDevicesWithSuccess:failure:
 
(void) - getLoalDeviceConfigWithDevId:success:failure:
 
(void) - getHomeDeviceSortWithSuccess:failure:
 
(void) - getDeviceOTAStatusWithHomeId:success:failure:
 
(void) - updateHomeInfoWithName:geoName:latitude:longitude:success:failure:
 
(void) - updateHomeInfoWithName:geoName:latitude:longitude:rooms:overWriteRoom:success:failure:
 
(void) - dismissHomeWithSuccess:failure:
 
(instancetype) - NS_UNAVAILABLE
 
(void) - getHomeDataWithSuccess:failure:
 
(void) - getHomeLocalDevicesWithSuccess:failure:
 
(void) - getLoalDeviceConfigWithDevId:success:failure:
 
(void) - getHomeDeviceSortWithSuccess:failure:
 
(void) - getDeviceOTAStatusWithHomeId:success:failure:
 
(void) - updateHomeInfoWithName:geoName:latitude:longitude:success:failure:
 
(void) - updateHomeInfoWithName:geoName:latitude:longitude:rooms:overWriteRoom:success:failure:
 
(void) - dismissHomeWithSuccess:failure:
 
(void) - getMeshListWithSuccess:failure:
 
(void) - getMeshListWithSuccess:failure:
 
(void) - getMeshListWithSuccess:failure:
 
(void) - getMeshListWithSuccess:failure:
 
(void) - getSIGMeshListWithSuccess:failure:
 
(void) - getSIGMeshListWithSuccess:failure:
 
(void) - getSIGMeshListWithSuccess:failure:
 
(void) - getSIGMeshListWithSuccess:failure:
 
(void) - startAllWithSuccess:failure:
 
(void) - startAllWithSuccess:failure:
 
(void) - startAllWithSuccess:failure:
 
(void) - startAllWithSuccess:failure:
 
(void) - startStage1WithSuccess:failure:
 
(void) - startStage1WithSuccess:failure:
 
(void) - startStage1WithSuccess:failure:
 
(void) - startStage1WithSuccess:failure:
 
(void) - startStage2WithSuccess:failure:
 
(void) - startStage2WithSuccess:failure:
 
(void) - startStage2WithSuccess:failure:
 
(void) - startStage2WithSuccess:failure:
 
(void) - getHomeDetailWithSuccess:failure:
 
(void) - getHomeDetailWithSuccess:failure:
 
(void) - getHomeDetailWithSuccess:failure:
 
(void) - getHomeDetailWithSuccess:failure:
 
(void) - addHomeMemberWithName:headPic:countryCode:userAccount:isAdmin:success:failure:
 
(void) - addHomeMemberWithName:headPic:countryCode:userAccount:isAdmin:success:failure:
 
(void) - addHomeMemberWithName:headPic:countryCode:userAccount:isAdmin:success:failure:
 
(void) - addHomeMemberWithName:headPic:countryCode:userAccount:isAdmin:success:failure:
 
(void) - addHomeMemberWithName:headPic:countryCode:userAccount:role:success:failure:
 
(void) - addHomeMemberWithName:headPic:countryCode:userAccount:role:success:failure:
 
(void) - addHomeMemberWithName:headPic:countryCode:userAccount:role:success:failure:
 
(void) - addHomeMemberWithName:headPic:countryCode:userAccount:role:success:failure:
 
(NSString *) - geoName
 The home location. More...
 
(NSString *) - geoName
 The home location. More...
 
(NSString *) - geoName
 The home location. More...
 
(NSString *) - geoName
 The home location. More...
 
(void) - getHomeWeatherSketchWithSuccess:failure:
 
(void) - getHomeWeatherSketchWithSuccess:failure:
 
(void) - getHomeWeatherSketchWithSuccess:failure:
 
(void) - getHomeWeatherSketchWithSuccess:failure:
 
(void) - getHomeWeatherDetailWithOption:success:failure:
 
(void) - getHomeWeatherDetailWithOption:success:failure:
 
(void) - getHomeWeatherDetailWithOption:success:failure:
 
(void) - getHomeWeatherDetailWithOption:success:failure:
 
(void) - sortDeviceOrGroupWithOrderList:success:failure:
 
(void) - updateReleationsWithSuccess:failure:
 
(void) - getRoomListWithSuccess:failure:
 
(void) - addHomeRoomWithName:success:failure:
 
(void) - addHomeRoomWithName:roomTagId:success:failure:
 
(void) - addHomeRoomWithName:completion:failure:
 
(void) - removeHomeRoomWithRoomId:success:failure:
 
(void) - sortRoomList:success:failure:
 
(void) - getHomeMemberListWithSuccess:failure:
 
(void) - addHomeMemberWithAddMemeberRequestModel:success:failure:
 
(void) - joinFamilyWithAccept:success:failure:
 
(void) - syncHomeDeviceListWithSuccess:failure:
 
(void) - sortDeviceOrGroupWithOrderList:success:failure:
 
(void) - updateReleationsWithSuccess:failure:
 
(void) - getRoomListWithSuccess:failure:
 
(void) - addHomeRoomWithName:success:failure:
 
(void) - addHomeRoomWithName:roomTagId:success:failure:
 
(void) - addHomeRoomWithName:completion:failure:
 
(void) - removeHomeRoomWithRoomId:success:failure:
 
(void) - sortRoomList:success:failure:
 
(void) - getHomeMemberListWithSuccess:failure:
 
(void) - addHomeMemberWithAddMemeberRequestModel:success:failure:
 
(void) - joinFamilyWithAccept:success:failure:
 
(void) - syncHomeDeviceListWithSuccess:failure:
 
(void) - sortDeviceOrGroupWithOrderList:success:failure:
 
(void) - updateReleationsWithSuccess:failure:
 
(void) - getRoomListWithSuccess:failure:
 
(void) - addHomeRoomWithName:success:failure:
 
(void) - addHomeRoomWithName:roomTagId:success:failure:
 
(void) - addHomeRoomWithName:completion:failure:
 
(void) - removeHomeRoomWithRoomId:success:failure:
 
(void) - sortRoomList:success:failure:
 
(void) - getHomeMemberListWithSuccess:failure:
 
(void) - addHomeMemberWithAddMemeberRequestModel:success:failure:
 
(void) - joinFamilyWithAccept:success:failure:
 
(void) - syncHomeDeviceListWithSuccess:failure:
 
(void) - sortDeviceOrGroupWithOrderList:success:failure:
 
(void) - updateReleationsWithSuccess:failure:
 
(void) - getRoomListWithSuccess:failure:
 
(void) - addHomeRoomWithName:success:failure:
 
(void) - addHomeRoomWithName:roomTagId:success:failure:
 
(void) - addHomeRoomWithName:completion:failure:
 
(void) - removeHomeRoomWithRoomId:success:failure:
 
(void) - sortRoomList:success:failure:
 
(void) - getHomeMemberListWithSuccess:failure:
 
(void) - addHomeMemberWithAddMemeberRequestModel:success:failure:
 
(void) - joinFamilyWithAccept:success:failure:
 
(void) - syncHomeDeviceListWithSuccess:failure:
 

Class Methods

(instancetype) + homeWithHomeId:
 
(instancetype) + homeWithHomeId:
 
(instancetype) + homeWithHomeId:
 
(instancetype) + homeWithHomeId:
 

Properties

long long homeId
 
id< ThingSmartHomeDelegatedelegate
 
ThingSmartHomeModelhomeModel
 
NSArray< ThingSmartRoomModel * > * roomList
 
NSArray< ThingSmartDeviceModel * > * deviceList
 
NSArray< ThingSmartDeviceModel * > * localDeviceList
 
NSArray< ThingSmartGroupModel * > * groupList
 
NSArray< ThingSmartDeviceModel * > * sharedDeviceList
 
NSArray< ThingSmartGroupModel * > * sharedGroupList
 
NSArray< ThingSmartDeviceOTAModel * > * deviceOtaList
 
ThingSmartBleMeshModelmeshModel
 
ThingSmartBleMeshModelbeaconMeshModel
 
ThingSmartBleMeshModelsigMeshModel
 

Detailed Description

Definition at line 157 of file ThingSmartHome.h.

Method Documentation

◆ addHomeMemberWithAddMemeberRequestModel:success:failure: [1/4]

- (void) addHomeMemberWithAddMemeberRequestModel: (ThingSmartHomeAddMemberRequestModel *)  requestModel
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

Adds a home member.

Parameters
requestModelThe member model.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeMemberWithAddMemeberRequestModel:success:failure: [2/4]

- (void) addHomeMemberWithAddMemeberRequestModel: (ThingSmartHomeAddMemberRequestModel *)  requestModel
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

Adds a home member.

Parameters
requestModelThe member model.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeMemberWithAddMemeberRequestModel:success:failure: [3/4]

- (void) addHomeMemberWithAddMemeberRequestModel: (ThingSmartHomeAddMemberRequestModel *)  requestModel
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

Adds a home member.

Parameters
requestModelThe member model.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeMemberWithAddMemeberRequestModel:success:failure: [4/4]

- (void) addHomeMemberWithAddMemeberRequestModel: (ThingSmartHomeAddMemberRequestModel *)  requestModel
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

Adds a home member.

Parameters
requestModelThe member model.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeMemberWithName:headPic:countryCode:userAccount:isAdmin:success:failure: [1/4]

- (void) addHomeMemberWithName: (NSString *)  name
headPic: (UIImage *)  headPic
countryCode: (NSString *)  countryCode
userAccount: (NSString *)  account
isAdmin: (BOOL)  isAdmin
success: (ThingSuccessDict success
failure: ("This method is)  deprecated
(Use ")  __deprecated_msg[ThingSmartHome addHomeMemberWithName:headPic:countryCode:userAccount:role:success:failure:] 

Adds a home member.

Parameters
nameThe member's name.
headPicThe member's avatar.
countryCodeThe country code.
accountThe user account.
isAdminSpecifies whether the member is an administrator.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use addHomeMemberWithName:headPic:countryCode:userAccount:role:success:failure: (ThingSmartHome(ThingDeprecatedApi)) instead.

Provided by category ThingSmartHome(ThingDeprecatedApi).

◆ addHomeMemberWithName:headPic:countryCode:userAccount:isAdmin:success:failure: [2/4]

- (void) addHomeMemberWithName: (NSString *)  name
headPic: (UIImage *)  headPic
countryCode: (NSString *)  countryCode
userAccount: (NSString *)  account
isAdmin: (BOOL)  isAdmin
success: (ThingSuccessDict success
failure: ("This method is)  deprecated
(Use ")  __deprecated_msg[ThingSmartHome addHomeMemberWithName:headPic:countryCode:userAccount:role:success:failure:] 

Adds a home member.

Parameters
nameThe member's name.
headPicThe member's avatar.
countryCodeThe country code.
accountThe user account.
isAdminSpecifies whether the member is an administrator.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use addHomeMemberWithName:headPic:countryCode:userAccount:role:success:failure: (ThingSmartHome(ThingDeprecatedApi)) instead.

Provided by category ThingSmartHome(ThingDeprecatedApi).

◆ addHomeMemberWithName:headPic:countryCode:userAccount:isAdmin:success:failure: [3/4]

- (void) addHomeMemberWithName: (NSString *)  name
headPic: (UIImage *)  headPic
countryCode: (NSString *)  countryCode
userAccount: (NSString *)  account
isAdmin: (BOOL)  isAdmin
success: (ThingSuccessDict success
failure: ("This method is)  deprecated
(Use ")  __deprecated_msg[ThingSmartHome addHomeMemberWithName:headPic:countryCode:userAccount:role:success:failure:] 

Adds a home member.

Parameters
nameThe member's name.
headPicThe member's avatar.
countryCodeThe country code.
accountThe user account.
isAdminSpecifies whether the member is an administrator.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use addHomeMemberWithName:headPic:countryCode:userAccount:role:success:failure: (ThingSmartHome(ThingDeprecatedApi)) instead.

Provided by category ThingSmartHome(ThingDeprecatedApi).

◆ addHomeMemberWithName:headPic:countryCode:userAccount:isAdmin:success:failure: [4/4]

- (void) addHomeMemberWithName: (NSString *)  name
headPic: (UIImage *)  headPic
countryCode: (NSString *)  countryCode
userAccount: (NSString *)  account
isAdmin: (BOOL)  isAdmin
success: (ThingSuccessDict success
failure: ("This method is)  deprecated
(Use ")  __deprecated_msg[ThingSmartHome addHomeMemberWithName:headPic:countryCode:userAccount:role:success:failure:] 

Adds a home member.

Parameters
nameThe member's name.
headPicThe member's avatar.
countryCodeThe country code.
accountThe user account.
isAdminSpecifies whether the member is an administrator.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use addHomeMemberWithName:headPic:countryCode:userAccount:role:success:failure: (ThingSmartHome(ThingDeprecatedApi)) instead.

Provided by category ThingSmartHome(ThingDeprecatedApi).

◆ addHomeMemberWithName:headPic:countryCode:userAccount:role:success:failure: [1/4]

- (void) addHomeMemberWithName: (NSString *)  name
headPic: (UIImage *)  headPic
countryCode: (NSString *)  countryCode
userAccount: (NSString *)  account
role: (ThingHomeRoleType)  role
success: (ThingSuccessDict success
failure: ("This method is)  deprecated
(Use ")  __deprecated_msg[ThingSmartHome addHomeMemberWithAddMemeberRequestModel:success:failure:] 

Adds a home member.

Parameters
nameThe member's name.
headPicThe member's avatar.
countryCodeThe country code.
accountThe user account.
roleThe type of the home role.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use addHomeMemberWithAddMemeberRequestModel:success:failure: instead.

Provided by category ThingSmartHome(ThingDeprecatedApi).

◆ addHomeMemberWithName:headPic:countryCode:userAccount:role:success:failure: [2/4]

- (void) addHomeMemberWithName: (NSString *)  name
headPic: (UIImage *)  headPic
countryCode: (NSString *)  countryCode
userAccount: (NSString *)  account
role: (ThingHomeRoleType)  role
success: (ThingSuccessDict success
failure: ("This method is)  deprecated
(Use ")  __deprecated_msg[ThingSmartHome addHomeMemberWithAddMemeberRequestModel:success:failure:] 

Adds a home member.

Parameters
nameThe member's name.
headPicThe member's avatar.
countryCodeThe country code.
accountThe user account.
roleThe type of the home role.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use addHomeMemberWithAddMemeberRequestModel:success:failure: instead.

Provided by category ThingSmartHome(ThingDeprecatedApi).

◆ addHomeMemberWithName:headPic:countryCode:userAccount:role:success:failure: [3/4]

- (void) addHomeMemberWithName: (NSString *)  name
headPic: (UIImage *)  headPic
countryCode: (NSString *)  countryCode
userAccount: (NSString *)  account
role: (ThingHomeRoleType)  role
success: (ThingSuccessDict success
failure: ("This method is)  deprecated
(Use ")  __deprecated_msg[ThingSmartHome addHomeMemberWithAddMemeberRequestModel:success:failure:] 

Adds a home member.

Parameters
nameThe member's name.
headPicThe member's avatar.
countryCodeThe country code.
accountThe user account.
roleThe type of the home role.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use addHomeMemberWithAddMemeberRequestModel:success:failure: instead.

Provided by category ThingSmartHome(ThingDeprecatedApi).

◆ addHomeMemberWithName:headPic:countryCode:userAccount:role:success:failure: [4/4]

- (void) addHomeMemberWithName: (NSString *)  name
headPic: (UIImage *)  headPic
countryCode: (NSString *)  countryCode
userAccount: (NSString *)  account
role: (ThingHomeRoleType)  role
success: (ThingSuccessDict success
failure: ("This method is)  deprecated
(Use ")  __deprecated_msg[ThingSmartHome addHomeMemberWithAddMemeberRequestModel:success:failure:] 

Adds a home member.

Parameters
nameThe member's name.
headPicThe member's avatar.
countryCodeThe country code.
accountThe user account.
roleThe type of the home role.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use addHomeMemberWithAddMemeberRequestModel:success:failure: instead.

Provided by category ThingSmartHome(ThingDeprecatedApi).

◆ addHomeRoomWithName:completion:failure: [1/4]

- (void) addHomeRoomWithName: (NSString *_Nonnull)  name
completion: (void(^)(ThingSmartRoomModel *_Nonnull roomModel))  completion
failure: (ThingFailureError _Nullable)  failure 

Adds a new room.

Parameters
nameThe room name.
completionCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeRoomWithName:completion:failure: [2/4]

- (void) addHomeRoomWithName: (NSString *_Nonnull)  name
completion: (void(^)(ThingSmartRoomModel *_Nonnull roomModel))  completion
failure: (ThingFailureError _Nullable)  failure 

Adds a new room.

Parameters
nameThe room name.
completionCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeRoomWithName:completion:failure: [3/4]

- (void) addHomeRoomWithName: (NSString *_Nonnull)  name
completion: (void(^)(ThingSmartRoomModel *_Nonnull roomModel))  completion
failure: (ThingFailureError _Nullable)  failure 

Adds a new room.

Parameters
nameThe room name.
completionCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeRoomWithName:completion:failure: [4/4]

- (void) addHomeRoomWithName: (NSString *_Nonnull)  name
completion: (void(^)(ThingSmartRoomModel *_Nonnull roomModel))  completion
failure: (ThingFailureError _Nullable)  failure 

Adds a new room.

Parameters
nameThe room name.
completionCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeRoomWithName:roomTagId:success:failure: [1/4]

- (void) addHomeRoomWithName: (NSString *_Nonnull)  name
roomTagId: (long long)  roomTagId
success: (ThingSuccessHandler _Nullable)  success
failure: (ThingFailureError _Nullable)  failure 

Adds a new room.

Parameters
nameThe room name.
roomTagIdCan associate multiple rooms with the same tag (room tag will be available in the future).
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeRoomWithName:roomTagId:success:failure: [2/4]

- (void) addHomeRoomWithName: (NSString *_Nonnull)  name
roomTagId: (long long)  roomTagId
success: (ThingSuccessHandler _Nullable)  success
failure: (ThingFailureError _Nullable)  failure 

Adds a new room.

Parameters
nameThe room name.
roomTagIdCan associate multiple rooms with the same tag (room tag will be available in the future).
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeRoomWithName:roomTagId:success:failure: [3/4]

- (void) addHomeRoomWithName: (NSString *_Nonnull)  name
roomTagId: (long long)  roomTagId
success: (ThingSuccessHandler _Nullable)  success
failure: (ThingFailureError _Nullable)  failure 

Adds a new room.

Parameters
nameThe room name.
roomTagIdCan associate multiple rooms with the same tag (room tag will be available in the future).
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeRoomWithName:roomTagId:success:failure: [4/4]

- (void) addHomeRoomWithName: (NSString *_Nonnull)  name
roomTagId: (long long)  roomTagId
success: (ThingSuccessHandler _Nullable)  success
failure: (ThingFailureError _Nullable)  failure 

Adds a new room.

Parameters
nameThe room name.
roomTagIdCan associate multiple rooms with the same tag (room tag will be available in the future).
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeRoomWithName:success:failure: [1/4]

- (void) addHomeRoomWithName: (NSString *_Nonnull)  name
success: (ThingSuccessHandler _Nullable)  success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartHome addHomeRoomWithName:completion:failure:] 

Adds a new room.

Parameters
nameThe room name.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeRoomWithName:success:failure: [2/4]

- (void) addHomeRoomWithName: (NSString *_Nonnull)  name
success: (ThingSuccessHandler _Nullable)  success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartHome addHomeRoomWithName:completion:failure:] 

Adds a new room.

Parameters
nameThe room name.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeRoomWithName:success:failure: [3/4]

- (void) addHomeRoomWithName: (NSString *_Nonnull)  name
success: (ThingSuccessHandler _Nullable)  success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartHome addHomeRoomWithName:completion:failure:] 

Adds a new room.

Parameters
nameThe room name.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeRoomWithName:success:failure: [4/4]

- (void) addHomeRoomWithName: (NSString *_Nonnull)  name
success: (ThingSuccessHandler _Nullable)  success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartHome addHomeRoomWithName:completion:failure:] 

Adds a new room.

Parameters
nameThe room name.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ dismissHomeWithSuccess:failure: [1/4]

- (void) dismissHomeWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Removes a home.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ dismissHomeWithSuccess:failure: [2/4]

- (void) dismissHomeWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Removes a home.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ dismissHomeWithSuccess:failure: [3/4]

- (void) dismissHomeWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Removes a home.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ dismissHomeWithSuccess:failure: [4/4]

- (void) dismissHomeWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Removes a home.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ geoName [1/4]

- (NSString *) geoName

The home location.

Provided by category ThingSmartHome(Weather).

◆ geoName [2/4]

- (NSString *) geoName

The home location.

Provided by category ThingSmartHome(Weather).

◆ geoName [3/4]

- (NSString *) geoName

The home location.

Provided by category ThingSmartHome(Weather).

◆ geoName [4/4]

- (NSString *) geoName

The home location.

Provided by category ThingSmartHome(Weather).

◆ getDeviceOTAStatusWithHomeId:success:failure: [1/4]

- (void) getDeviceOTAStatusWithHomeId: (long long)  homeId
success: (void(^)(NSArray< ThingSmartDeviceOTAModel * > *))  success
failure: (ThingFailureError failure 

After the home details are returned, the device OTA update status is changed.

Parameters
homeIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getDeviceOTAStatusWithHomeId:success:failure: [2/4]

- (void) getDeviceOTAStatusWithHomeId: (long long)  homeId
success: (void(^)(NSArray< ThingSmartDeviceOTAModel * > *))  success
failure: (ThingFailureError failure 

After the home details are returned, the device OTA update status is changed.

Parameters
homeIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getDeviceOTAStatusWithHomeId:success:failure: [3/4]

- (void) getDeviceOTAStatusWithHomeId: (long long)  homeId
success: (void(^)(NSArray< ThingSmartDeviceOTAModel * > *))  success
failure: (ThingFailureError failure 

After the home details are returned, the device OTA update status is changed.

Parameters
homeIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getDeviceOTAStatusWithHomeId:success:failure: [4/4]

- (void) getDeviceOTAStatusWithHomeId: (long long)  homeId
success: (void(^)(NSArray< ThingSmartDeviceOTAModel * > *))  success
failure: (ThingFailureError failure 

After the home details are returned, the device OTA update status is changed.

Parameters
homeIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getHomeDataWithSuccess:failure: [1/4]

- (void) getHomeDataWithSuccess: (void(^)(ThingSmartHomeModel *homeModel))  success
failure: (ThingFailureError failure 

After the home object is initialized, you must get the details of the home, homeModel, roomList, deviceList, and groupList to set the data.

Parameters
successCalled when the task is finished. ThingSmartHomeModel is returned.
failureCalled when the task is interrupted by an error.

◆ getHomeDataWithSuccess:failure: [2/4]

- (void) getHomeDataWithSuccess: (void(^)(ThingSmartHomeModel *homeModel))  success
failure: (ThingFailureError failure 

After the home object is initialized, you must get the details of the home, homeModel, roomList, deviceList, and groupList to set the data.

Parameters
successCalled when the task is finished. ThingSmartHomeModel is returned.
failureCalled when the task is interrupted by an error.

◆ getHomeDataWithSuccess:failure: [3/4]

- (void) getHomeDataWithSuccess: (void(^)(ThingSmartHomeModel *homeModel))  success
failure: (ThingFailureError failure 

After the home object is initialized, you must get the details of the home, homeModel, roomList, deviceList, and groupList to set the data.

Parameters
successCalled when the task is finished. ThingSmartHomeModel is returned.
failureCalled when the task is interrupted by an error.

◆ getHomeDataWithSuccess:failure: [4/4]

- (void) getHomeDataWithSuccess: (void(^)(ThingSmartHomeModel *homeModel))  success
failure: (ThingFailureError failure 

After the home object is initialized, you must get the details of the home, homeModel, roomList, deviceList, and groupList to set the data.

Parameters
successCalled when the task is finished. ThingSmartHomeModel is returned.
failureCalled when the task is interrupted by an error.

◆ getHomeDetailWithSuccess:failure: [1/4]

- (void) getHomeDetailWithSuccess: (void(^)(ThingSmartHomeModel *homeModel))  success
failure: ("This method is)  deprecated
(it will not response panel)  info
(you need get it by calling method `-(void) getPanelInfoWithProductID:productVersion:success:failure:` defined in)  ThingPanelProtocol
(please use - instead.")  __deprecated_msg[ThingSmartHome getHomeDataWithSuccess:failure:] 

After the home object is initialized, you must get the details of the home, homeModel, roomList, deviceList, and groupList to set the data.

Parameters
successCalled when the task is finished. ThingSmartHomeModel is returned.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, it will not response panel info, you need get it by calling method - (void)getPanelInfoWithProductID:productVersion:success:failure: defined in ThingPanelProtocol, please use -[ThingSmartHome getHomeDataWithSuccess:failure:] instead.

Provided by category ThingSmartHome(ThingDeprecatedApi).

◆ getHomeDetailWithSuccess:failure: [2/4]

- (void) getHomeDetailWithSuccess: (void(^)(ThingSmartHomeModel *homeModel))  success
failure: ("This method is)  deprecated
(it will not response panel)  info
(you need get it by calling method `-(void) getPanelInfoWithProductID:productVersion:success:failure:` defined in)  ThingPanelProtocol
(please use - instead.")  __deprecated_msg[ThingSmartHome getHomeDataWithSuccess:failure:] 

After the home object is initialized, you must get the details of the home, homeModel, roomList, deviceList, and groupList to set the data.

Parameters
successCalled when the task is finished. ThingSmartHomeModel is returned.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, it will not response panel info, you need get it by calling method - (void)getPanelInfoWithProductID:productVersion:success:failure: defined in ThingPanelProtocol, please use -[ThingSmartHome getHomeDataWithSuccess:failure:] instead.

Provided by category ThingSmartHome(ThingDeprecatedApi).

◆ getHomeDetailWithSuccess:failure: [3/4]

- (void) getHomeDetailWithSuccess: (void(^)(ThingSmartHomeModel *homeModel))  success
failure: ("This method is)  deprecated
(it will not response panel)  info
(you need get it by calling method `-(void) getPanelInfoWithProductID:productVersion:success:failure:` defined in)  ThingPanelProtocol
(please use - instead.")  __deprecated_msg[ThingSmartHome getHomeDataWithSuccess:failure:] 

After the home object is initialized, you must get the details of the home, homeModel, roomList, deviceList, and groupList to set the data.

Parameters
successCalled when the task is finished. ThingSmartHomeModel is returned.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, it will not response panel info, you need get it by calling method - (void)getPanelInfoWithProductID:productVersion:success:failure: defined in ThingPanelProtocol, please use -[ThingSmartHome getHomeDataWithSuccess:failure:] instead.

Provided by category ThingSmartHome(ThingDeprecatedApi).

◆ getHomeDetailWithSuccess:failure: [4/4]

- (void) getHomeDetailWithSuccess: (void(^)(ThingSmartHomeModel *homeModel))  success
failure: ("This method is)  deprecated
(it will not response panel)  info
(you need get it by calling method `-(void) getPanelInfoWithProductID:productVersion:success:failure:` defined in)  ThingPanelProtocol
(please use - instead.")  __deprecated_msg[ThingSmartHome getHomeDataWithSuccess:failure:] 

After the home object is initialized, you must get the details of the home, homeModel, roomList, deviceList, and groupList to set the data.

Parameters
successCalled when the task is finished. ThingSmartHomeModel is returned.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, it will not response panel info, you need get it by calling method - (void)getPanelInfoWithProductID:productVersion:success:failure: defined in ThingPanelProtocol, please use -[ThingSmartHome getHomeDataWithSuccess:failure:] instead.

Provided by category ThingSmartHome(ThingDeprecatedApi).

◆ getHomeDeviceSortWithSuccess:failure: [1/4]

- (void) getHomeDeviceSortWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

◆ getHomeDeviceSortWithSuccess:failure: [2/4]

- (void) getHomeDeviceSortWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

◆ getHomeDeviceSortWithSuccess:failure: [3/4]

- (void) getHomeDeviceSortWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

◆ getHomeDeviceSortWithSuccess:failure: [4/4]

- (void) getHomeDeviceSortWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

◆ getHomeLocalDevicesWithSuccess:failure: [1/4]

- (void) getHomeLocalDevicesWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

get local devices

Parameters
successCalled when the task is finished
failureCalled when the task is interrupted by an error

◆ getHomeLocalDevicesWithSuccess:failure: [2/4]

- (void) getHomeLocalDevicesWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

get local devices

Parameters
successCalled when the task is finished
failureCalled when the task is interrupted by an error

◆ getHomeLocalDevicesWithSuccess:failure: [3/4]

- (void) getHomeLocalDevicesWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

get local devices

Parameters
successCalled when the task is finished
failureCalled when the task is interrupted by an error

◆ getHomeLocalDevicesWithSuccess:failure: [4/4]

- (void) getHomeLocalDevicesWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

get local devices

Parameters
successCalled when the task is finished
failureCalled when the task is interrupted by an error

◆ getHomeMemberListWithSuccess:failure: [1/4]

- (void) getHomeMemberListWithSuccess: (void(^)(NSArray< ThingSmartHomeMemberModel * > *memberList))  success
failure: (ThingFailureError failure 

Returns a list of home members

Parameters
successCalled when the task is finished. A list of ThingSmartHomeMemberModel is returned.
failureCalled when the task is interrupted by an error.

◆ getHomeMemberListWithSuccess:failure: [2/4]

- (void) getHomeMemberListWithSuccess: (void(^)(NSArray< ThingSmartHomeMemberModel * > *memberList))  success
failure: (ThingFailureError failure 

Returns a list of home members

Parameters
successCalled when the task is finished. A list of ThingSmartHomeMemberModel is returned.
failureCalled when the task is interrupted by an error.

◆ getHomeMemberListWithSuccess:failure: [3/4]

- (void) getHomeMemberListWithSuccess: (void(^)(NSArray< ThingSmartHomeMemberModel * > *memberList))  success
failure: (ThingFailureError failure 

Returns a list of home members

Parameters
successCalled when the task is finished. A list of ThingSmartHomeMemberModel is returned.
failureCalled when the task is interrupted by an error.

◆ getHomeMemberListWithSuccess:failure: [4/4]

- (void) getHomeMemberListWithSuccess: (void(^)(NSArray< ThingSmartHomeMemberModel * > *memberList))  success
failure: (ThingFailureError failure 

Returns a list of home members

Parameters
successCalled when the task is finished. A list of ThingSmartHomeMemberModel is returned.
failureCalled when the task is interrupted by an error.

◆ getHomeWeatherDetailWithOption:success:failure: [1/4]

- (void) getHomeWeatherDetailWithOption: (ThingSmartWeatherOptionModel *)  optionModel
success: (void(^)(NSArray< ThingSmartWeatherModel * > *))  success
failure: (ThingFailureError failure 

Returns detailed parameters of home weather, such as temperature, humidity, UV index, and air quality.

optionModel can be set to nil. If so, the parameter settings of the last successful request are returned. If only one unit setting is changed for the request, the remaining parameter settings of the last successful request are returned.

The functions that are enabled by weather services can vary based on different regions. Therefore, the response parameters may differ from region to region. In particular, if the current home account is located in China, information about the wind speed and barometric pressure is not returned.

Parameters
optionModelThe configurations of weather parameter units.
successCalled when the task is finished. A list of ThingSmartWeatherModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHome(Weather).

◆ getHomeWeatherDetailWithOption:success:failure: [2/4]

- (void) getHomeWeatherDetailWithOption: (ThingSmartWeatherOptionModel *)  optionModel
success: (void(^)(NSArray< ThingSmartWeatherModel * > *))  success
failure: (ThingFailureError failure 

Returns detailed parameters of home weather, such as temperature, humidity, UV index, and air quality.

optionModel can be set to nil. If so, the parameter settings of the last successful request are returned. If only one unit setting is changed for the request, the remaining parameter settings of the last successful request are returned.

The functions that are enabled by weather services can vary based on different regions. Therefore, the response parameters may differ from region to region. In particular, if the current home account is located in China, information about the wind speed and barometric pressure is not returned.

Parameters
optionModelThe configurations of weather parameter units.
successCalled when the task is finished. A list of ThingSmartWeatherModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHome(Weather).

◆ getHomeWeatherDetailWithOption:success:failure: [3/4]

- (void) getHomeWeatherDetailWithOption: (ThingSmartWeatherOptionModel *)  optionModel
success: (void(^)(NSArray< ThingSmartWeatherModel * > *))  success
failure: (ThingFailureError failure 

Returns detailed parameters of home weather, such as temperature, humidity, UV index, and air quality.

optionModel can be set to nil. If so, the parameter settings of the last successful request are returned. If only one unit setting is changed for the request, the remaining parameter settings of the last successful request are returned.

The functions that are enabled by weather services can vary based on different regions. Therefore, the response parameters may differ from region to region. In particular, if the current home account is located in China, information about the wind speed and barometric pressure is not returned.

Parameters
optionModelThe configurations of weather parameter units.
successCalled when the task is finished. A list of ThingSmartWeatherModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHome(Weather).

◆ getHomeWeatherDetailWithOption:success:failure: [4/4]

- (void) getHomeWeatherDetailWithOption: (ThingSmartWeatherOptionModel *)  optionModel
success: (void(^)(NSArray< ThingSmartWeatherModel * > *))  success
failure: (ThingFailureError failure 

Returns detailed parameters of home weather, such as temperature, humidity, UV index, and air quality.

optionModel can be set to nil. If so, the parameter settings of the last successful request are returned. If only one unit setting is changed for the request, the remaining parameter settings of the last successful request are returned.

The functions that are enabled by weather services can vary based on different regions. Therefore, the response parameters may differ from region to region. In particular, if the current home account is located in China, information about the wind speed and barometric pressure is not returned.

Parameters
optionModelThe configurations of weather parameter units.
successCalled when the task is finished. A list of ThingSmartWeatherModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHome(Weather).

◆ getHomeWeatherSketchWithSuccess:failure: [1/4]

- (void) getHomeWeatherSketchWithSuccess: (void(^)(ThingSmartWeatherSketchModel *))  success
failure: (ThingFailureError failure 

Returns brief weather parameters for the home. This request also returns brief weather parameters for the city where the home is located, such as the city name, weather conditions for the day (such as sunny, cloudy, and rainy), and weather picture information.

Parameters
successCalled when the task is finished. ThingSmartWeatherSketchModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHome(Weather).

◆ getHomeWeatherSketchWithSuccess:failure: [2/4]

- (void) getHomeWeatherSketchWithSuccess: (void(^)(ThingSmartWeatherSketchModel *))  success
failure: (ThingFailureError failure 

Returns brief weather parameters for the home. This request also returns brief weather parameters for the city where the home is located, such as the city name, weather conditions for the day (such as sunny, cloudy, and rainy), and weather picture information.

Parameters
successCalled when the task is finished. ThingSmartWeatherSketchModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHome(Weather).

◆ getHomeWeatherSketchWithSuccess:failure: [3/4]

- (void) getHomeWeatherSketchWithSuccess: (void(^)(ThingSmartWeatherSketchModel *))  success
failure: (ThingFailureError failure 

Returns brief weather parameters for the home. This request also returns brief weather parameters for the city where the home is located, such as the city name, weather conditions for the day (such as sunny, cloudy, and rainy), and weather picture information.

Parameters
successCalled when the task is finished. ThingSmartWeatherSketchModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHome(Weather).

◆ getHomeWeatherSketchWithSuccess:failure: [4/4]

- (void) getHomeWeatherSketchWithSuccess: (void(^)(ThingSmartWeatherSketchModel *))  success
failure: (ThingFailureError failure 

Returns brief weather parameters for the home. This request also returns brief weather parameters for the city where the home is located, such as the city name, weather conditions for the day (such as sunny, cloudy, and rainy), and weather picture information.

Parameters
successCalled when the task is finished. ThingSmartWeatherSketchModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHome(Weather).

◆ getLoalDeviceConfigWithDevId:success:failure: [1/4]

- (void) getLoalDeviceConfigWithDevId: (NSString *)  devId
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

get local device config info

Parameters
devIddevId of local device
successCalled when the task is finished
failureCalled when the task is interrupted by an error

◆ getLoalDeviceConfigWithDevId:success:failure: [2/4]

- (void) getLoalDeviceConfigWithDevId: (NSString *)  devId
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

get local device config info

Parameters
devIddevId of local device
successCalled when the task is finished
failureCalled when the task is interrupted by an error

◆ getLoalDeviceConfigWithDevId:success:failure: [3/4]

- (void) getLoalDeviceConfigWithDevId: (NSString *)  devId
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

get local device config info

Parameters
devIddevId of local device
successCalled when the task is finished
failureCalled when the task is interrupted by an error

◆ getLoalDeviceConfigWithDevId:success:failure: [4/4]

- (void) getLoalDeviceConfigWithDevId: (NSString *)  devId
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

get local device config info

Parameters
devIddevId of local device
successCalled when the task is finished
failureCalled when the task is interrupted by an error

◆ getMeshListWithSuccess:failure: [1/4]

- (void) getMeshListWithSuccess: (void(^)(NSArray< ThingSmartBleMeshModel * > *list))  success
failure: (ThingFailureError failure 

Returns the mesh list for the home.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHome(BleMesh).

◆ getMeshListWithSuccess:failure: [2/4]

- (void) getMeshListWithSuccess: (void(^)(NSArray< ThingSmartBleMeshModel * > *list))  success
failure: (ThingFailureError failure 

Returns the mesh list for the home.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHome(BleMesh).

◆ getMeshListWithSuccess:failure: [3/4]

- (void) getMeshListWithSuccess: (void(^)(NSArray< ThingSmartBleMeshModel * > *list))  success
failure: (ThingFailureError failure 

Returns the mesh list for the home.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHome(BleMesh).

◆ getMeshListWithSuccess:failure: [4/4]

- (void) getMeshListWithSuccess: (void(^)(NSArray< ThingSmartBleMeshModel * > *list))  success
failure: (ThingFailureError failure 

Returns the mesh list for the home.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHome(BleMesh).

◆ getRoomListWithSuccess:failure: [1/4]

- (void) getRoomListWithSuccess: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Get room List.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getRoomListWithSuccess:failure: [2/4]

- (void) getRoomListWithSuccess: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Get room List.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getRoomListWithSuccess:failure: [3/4]

- (void) getRoomListWithSuccess: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Get room List.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getRoomListWithSuccess:failure: [4/4]

- (void) getRoomListWithSuccess: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Get room List.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getSIGMeshListWithSuccess:failure: [1/4]

- (void) getSIGMeshListWithSuccess: (void(^)(NSArray< ThingSmartBleMeshModel * > *list))  success
failure: (ThingFailureError failure 

Returns the Bluetooth mesh list for the home.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHome(SIGMesh).

◆ getSIGMeshListWithSuccess:failure: [2/4]

- (void) getSIGMeshListWithSuccess: (void(^)(NSArray< ThingSmartBleMeshModel * > *list))  success
failure: (ThingFailureError failure 

Returns the Bluetooth mesh list for the home.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHome(SIGMesh).

◆ getSIGMeshListWithSuccess:failure: [3/4]

- (void) getSIGMeshListWithSuccess: (void(^)(NSArray< ThingSmartBleMeshModel * > *list))  success
failure: (ThingFailureError failure 

Returns the Bluetooth mesh list for the home.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHome(SIGMesh).

◆ getSIGMeshListWithSuccess:failure: [4/4]

- (void) getSIGMeshListWithSuccess: (void(^)(NSArray< ThingSmartBleMeshModel * > *list))  success
failure: (ThingFailureError failure 

Returns the Bluetooth mesh list for the home.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHome(SIGMesh).

◆ homeWithHomeId: [1/4]

+ (instancetype) homeWithHomeId: (long long)  homeId

Initializes the home.

Parameters
homeIdThe home ID.
Returns
The instance.

◆ homeWithHomeId: [2/4]

+ (instancetype) homeWithHomeId: (long long)  homeId

Initializes the home.

Parameters
homeIdThe home ID.
Returns
The instance.

◆ homeWithHomeId: [3/4]

+ (instancetype) homeWithHomeId: (long long)  homeId

Initializes the home.

Parameters
homeIdThe home ID.
Returns
The instance.

◆ homeWithHomeId: [4/4]

+ (instancetype) homeWithHomeId: (long long)  homeId

Initializes the home.

Parameters
homeIdThe home ID.
Returns
The instance.

◆ joinFamilyWithAccept:success:failure: [1/4]

- (void) joinFamilyWithAccept: (BOOL)  accept
success: (ThingSuccessBOOL success
failure: (ThingFailureError failure 

Accepts or rejects to share the home.

Parameters
acceptA Boolean value that specifies whether to accept the invitation.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ joinFamilyWithAccept:success:failure: [2/4]

- (void) joinFamilyWithAccept: (BOOL)  accept
success: (ThingSuccessBOOL success
failure: (ThingFailureError failure 

Accepts or rejects to share the home.

Parameters
acceptA Boolean value that specifies whether to accept the invitation.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ joinFamilyWithAccept:success:failure: [3/4]

- (void) joinFamilyWithAccept: (BOOL)  accept
success: (ThingSuccessBOOL success
failure: (ThingFailureError failure 

Accepts or rejects to share the home.

Parameters
acceptA Boolean value that specifies whether to accept the invitation.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ joinFamilyWithAccept:success:failure: [4/4]

- (void) joinFamilyWithAccept: (BOOL)  accept
success: (ThingSuccessBOOL success
failure: (ThingFailureError failure 

Accepts or rejects to share the home.

Parameters
acceptA Boolean value that specifies whether to accept the invitation.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ NS_UNAVAILABLE [1/4]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [2/4]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [3/4]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [4/4]

- (instancetype) NS_UNAVAILABLE

◆ removeHomeRoomWithRoomId:success:failure: [1/4]

- (void) removeHomeRoomWithRoomId: (long long)  roomId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Remove a room

Parameters
roomIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ removeHomeRoomWithRoomId:success:failure: [2/4]

- (void) removeHomeRoomWithRoomId: (long long)  roomId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Remove a room

Parameters
roomIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ removeHomeRoomWithRoomId:success:failure: [3/4]

- (void) removeHomeRoomWithRoomId: (long long)  roomId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Remove a room

Parameters
roomIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ removeHomeRoomWithRoomId:success:failure: [4/4]

- (void) removeHomeRoomWithRoomId: (long long)  roomId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Remove a room

Parameters
roomIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sortDeviceOrGroupWithOrderList:success:failure: [1/4]

- (void) sortDeviceOrGroupWithOrderList: (NSArray< NSDictionary * > *)  orderList
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sorts devices and groups for the home.

Parameters
orderListThe order list ["bizId": @"XXX", @"bizType": @"XXX"},@"bizId": @"XXX",@"bizType": @"XXX"}], where bizId is the device's device ID or group's group ID, device's bizType = @"6" group's bizType = @"5".
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sortDeviceOrGroupWithOrderList:success:failure: [2/4]

- (void) sortDeviceOrGroupWithOrderList: (NSArray< NSDictionary * > *)  orderList
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sorts devices and groups for the home.

Parameters
orderListThe order list ["bizId": @"XXX", @"bizType": @"XXX"},@"bizId": @"XXX",@"bizType": @"XXX"}], where bizId is the device's device ID or group's group ID, device's bizType = @"6" group's bizType = @"5".
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sortDeviceOrGroupWithOrderList:success:failure: [3/4]

- (void) sortDeviceOrGroupWithOrderList: (NSArray< NSDictionary * > *)  orderList
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sorts devices and groups for the home.

Parameters
orderListThe order list ["bizId": @"XXX", @"bizType": @"XXX"},@"bizId": @"XXX",@"bizType": @"XXX"}], where bizId is the device's device ID or group's group ID, device's bizType = @"6" group's bizType = @"5".
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sortDeviceOrGroupWithOrderList:success:failure: [4/4]

- (void) sortDeviceOrGroupWithOrderList: (NSArray< NSDictionary * > *)  orderList
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sorts devices and groups for the home.

Parameters
orderListThe order list ["bizId": @"XXX", @"bizType": @"XXX"},@"bizId": @"XXX",@"bizType": @"XXX"}], where bizId is the device's device ID or group's group ID, device's bizType = @"6" group's bizType = @"5".
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sortRoomList:success:failure: [1/4]

- (void) sortRoomList: (NSArray< ThingSmartRoomModel * > *)  roomList
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sorts the homes.

Parameters
roomListA list of homes.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sortRoomList:success:failure: [2/4]

- (void) sortRoomList: (NSArray< ThingSmartRoomModel * > *)  roomList
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sorts the homes.

Parameters
roomListA list of homes.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sortRoomList:success:failure: [3/4]

- (void) sortRoomList: (NSArray< ThingSmartRoomModel * > *)  roomList
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sorts the homes.

Parameters
roomListA list of homes.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sortRoomList:success:failure: [4/4]

- (void) sortRoomList: (NSArray< ThingSmartRoomModel * > *)  roomList
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sorts the homes.

Parameters
roomListA list of homes.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ startAllWithSuccess:failure: [1/4]

- (void) startAllWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Provided by category ThingSmartHome(Stage).

◆ startAllWithSuccess:failure: [2/4]

- (void) startAllWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Provided by category ThingSmartHome(Stage).

◆ startAllWithSuccess:failure: [3/4]

- (void) startAllWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Provided by category ThingSmartHome(Stage).

◆ startAllWithSuccess:failure: [4/4]

- (void) startAllWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Provided by category ThingSmartHome(Stage).

◆ startStage1WithSuccess:failure: [1/4]

- (void) startStage1WithSuccess: (ThingSuccessHandler _Nullable)  success
failure: (ThingFailureError _Nullable)  failure 

Provided by category ThingSmartHome(Stage).

◆ startStage1WithSuccess:failure: [2/4]

- (void) startStage1WithSuccess: (ThingSuccessHandler _Nullable)  success
failure: (ThingFailureError _Nullable)  failure 

Provided by category ThingSmartHome(Stage).

◆ startStage1WithSuccess:failure: [3/4]

- (void) startStage1WithSuccess: (ThingSuccessHandler _Nullable)  success
failure: (ThingFailureError _Nullable)  failure 

Provided by category ThingSmartHome(Stage).

◆ startStage1WithSuccess:failure: [4/4]

- (void) startStage1WithSuccess: (ThingSuccessHandler _Nullable)  success
failure: (ThingFailureError _Nullable)  failure 

Provided by category ThingSmartHome(Stage).

◆ startStage2WithSuccess:failure: [1/4]

- (void) startStage2WithSuccess: (ThingSuccessHandler _Nullable)  success
failure: (ThingFailureError _Nullable)  failure 

Provided by category ThingSmartHome(Stage).

◆ startStage2WithSuccess:failure: [2/4]

- (void) startStage2WithSuccess: (ThingSuccessHandler _Nullable)  success
failure: (ThingFailureError _Nullable)  failure 

Provided by category ThingSmartHome(Stage).

◆ startStage2WithSuccess:failure: [3/4]

- (void) startStage2WithSuccess: (ThingSuccessHandler _Nullable)  success
failure: (ThingFailureError _Nullable)  failure 

Provided by category ThingSmartHome(Stage).

◆ startStage2WithSuccess:failure: [4/4]

- (void) startStage2WithSuccess: (ThingSuccessHandler _Nullable)  success
failure: (ThingFailureError _Nullable)  failure 

Provided by category ThingSmartHome(Stage).

◆ syncHomeDeviceListWithSuccess:failure: [1/4]

- (void) syncHomeDeviceListWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Synchronizes the home device list.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ syncHomeDeviceListWithSuccess:failure: [2/4]

- (void) syncHomeDeviceListWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Synchronizes the home device list.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ syncHomeDeviceListWithSuccess:failure: [3/4]

- (void) syncHomeDeviceListWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Synchronizes the home device list.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ syncHomeDeviceListWithSuccess:failure: [4/4]

- (void) syncHomeDeviceListWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Synchronizes the home device list.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateHomeInfoWithName:geoName:latitude:longitude:rooms:overWriteRoom:success:failure: [1/4]

- (void) updateHomeInfoWithName: (NSString *)  homeName
geoName: (NSString *)  geoName
latitude: (double)  latitude
longitude: (double)  longitude
rooms: (NSArray *)  rooms
overWriteRoom: (BOOL)  overWriteRoom
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the home information. API version 3.0 is used.

Parameters
homeNameThe home name.
geoNameThe city name.
latitudeThe latitude.
longitudeThe longitude.
roomsThe array of room names.
overWriteRoomNSDictionary only supports "overWriteRoom":boolean.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateHomeInfoWithName:geoName:latitude:longitude:rooms:overWriteRoom:success:failure: [2/4]

- (void) updateHomeInfoWithName: (NSString *)  homeName
geoName: (NSString *)  geoName
latitude: (double)  latitude
longitude: (double)  longitude
rooms: (NSArray *)  rooms
overWriteRoom: (BOOL)  overWriteRoom
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the home information. API version 3.0 is used.

Parameters
homeNameThe home name.
geoNameThe city name.
latitudeThe latitude.
longitudeThe longitude.
roomsThe array of room names.
overWriteRoomNSDictionary only supports "overWriteRoom":boolean.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateHomeInfoWithName:geoName:latitude:longitude:rooms:overWriteRoom:success:failure: [3/4]

- (void) updateHomeInfoWithName: (NSString *)  homeName
geoName: (NSString *)  geoName
latitude: (double)  latitude
longitude: (double)  longitude
rooms: (NSArray *)  rooms
overWriteRoom: (BOOL)  overWriteRoom
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the home information. API version 3.0 is used.

Parameters
homeNameThe home name.
geoNameThe city name.
latitudeThe latitude.
longitudeThe longitude.
roomsThe array of room names.
overWriteRoomNSDictionary only supports "overWriteRoom":boolean.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateHomeInfoWithName:geoName:latitude:longitude:rooms:overWriteRoom:success:failure: [4/4]

- (void) updateHomeInfoWithName: (NSString *)  homeName
geoName: (NSString *)  geoName
latitude: (double)  latitude
longitude: (double)  longitude
rooms: (NSArray *)  rooms
overWriteRoom: (BOOL)  overWriteRoom
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the home information. API version 3.0 is used.

Parameters
homeNameThe home name.
geoNameThe city name.
latitudeThe latitude.
longitudeThe longitude.
roomsThe array of room names.
overWriteRoomNSDictionary only supports "overWriteRoom":boolean.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateHomeInfoWithName:geoName:latitude:longitude:success:failure: [1/4]

- (void) updateHomeInfoWithName: (NSString *)  homeName
geoName: (NSString *)  geoName
latitude: (double)  latitude
longitude: (double)  longitude
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the home information. API version 2.0 is used.

Parameters
homeNameThe home name.
geoNameThe city name.
latitudeThe latitude.
longitudeThe longitude.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateHomeInfoWithName:geoName:latitude:longitude:success:failure: [2/4]

- (void) updateHomeInfoWithName: (NSString *)  homeName
geoName: (NSString *)  geoName
latitude: (double)  latitude
longitude: (double)  longitude
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the home information. API version 2.0 is used.

Parameters
homeNameThe home name.
geoNameThe city name.
latitudeThe latitude.
longitudeThe longitude.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateHomeInfoWithName:geoName:latitude:longitude:success:failure: [3/4]

- (void) updateHomeInfoWithName: (NSString *)  homeName
geoName: (NSString *)  geoName
latitude: (double)  latitude
longitude: (double)  longitude
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the home information. API version 2.0 is used.

Parameters
homeNameThe home name.
geoNameThe city name.
latitudeThe latitude.
longitudeThe longitude.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateHomeInfoWithName:geoName:latitude:longitude:success:failure: [4/4]

- (void) updateHomeInfoWithName: (NSString *)  homeName
geoName: (NSString *)  geoName
latitude: (double)  latitude
longitude: (double)  longitude
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the home information. API version 2.0 is used.

Parameters
homeNameThe home name.
geoNameThe city name.
latitudeThe latitude.
longitudeThe longitude.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateReleationsWithSuccess:failure: [1/4]

- (void) updateReleationsWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Update releations for the home including how many rooms in the home, how many devices and groups in the room, how many groups in the mesh how many devices in the group,

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateReleationsWithSuccess:failure: [2/4]

- (void) updateReleationsWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Update releations for the home including how many rooms in the home, how many devices and groups in the room, how many groups in the mesh how many devices in the group,

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateReleationsWithSuccess:failure: [3/4]

- (void) updateReleationsWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Update releations for the home including how many rooms in the home, how many devices and groups in the room, how many groups in the mesh how many devices in the group,

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateReleationsWithSuccess:failure: [4/4]

- (void) updateReleationsWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Update releations for the home including how many rooms in the home, how many devices and groups in the room, how many groups in the mesh how many devices in the group,

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Property Documentation

◆ beaconMeshModel

- (ThingSmartBleMeshModel *) beaconMeshModel
readnonatomicstrong

Provided by category ThingSmartHome(BleMesh).

Definition at line 14 of file ThingSmartHome+BleMesh.h.

◆ delegate

- (id< ThingSmartHomeDelegate >) delegate
readwritenonatomicweak

Definition at line 159 of file ThingSmartHome.h.

◆ deviceList

- (NSArray< ThingSmartDeviceModel * > *) deviceList
readnonatomiccopy

Definition at line 165 of file ThingSmartHome.h.

◆ deviceOtaList

- (NSArray< ThingSmartDeviceOTAModel * > *) deviceOtaList
readnonatomiccopy

Definition at line 175 of file ThingSmartHome.h.

◆ groupList

- (NSArray< ThingSmartGroupModel * > *) groupList
readnonatomiccopy

Definition at line 169 of file ThingSmartHome.h.

◆ homeId

- (long long) homeId
readnonatomicassign

Definition at line 158 of file ThingSmartHome.h.

◆ homeModel

- (ThingSmartHomeModel *) homeModel
readnonatomicstrong

Definition at line 161 of file ThingSmartHome.h.

◆ localDeviceList

- (NSArray< ThingSmartDeviceModel * > *) localDeviceList
readnonatomiccopy

Definition at line 167 of file ThingSmartHome.h.

◆ meshModel

- (ThingSmartBleMeshModel *) meshModel
readnonatomicstrong

Provided by category ThingSmartHome(BleMesh).

Definition at line 12 of file ThingSmartHome+BleMesh.h.

◆ roomList

- (NSArray< ThingSmartRoomModel * > *) roomList
readnonatomiccopy

Definition at line 163 of file ThingSmartHome.h.

◆ sharedDeviceList

- (NSArray< ThingSmartDeviceModel * > *) sharedDeviceList
readnonatomiccopy

Definition at line 171 of file ThingSmartHome.h.

◆ sharedGroupList

- (NSArray< ThingSmartGroupModel * > *) sharedGroupList
readnonatomiccopy

Definition at line 173 of file ThingSmartHome.h.

◆ sigMeshModel

- (ThingSmartBleMeshModel *) sigMeshModel
readnonatomicstrong

Provided by category ThingSmartHome(SIGMesh).

Definition at line 14 of file ThingSmartHome+SIGMesh.h.


The documentation for this class was generated from the following files: