![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
ThingSmartSceneModel provides more data attributes for developers to implement business logic of the scene. More...
#import <ThingSmartSceneModel.h>
Instance Methods | |
(BOOL) | - isManual |
(BOOL) | - isRecommend |
(BOOL) | - isCollection |
(NSSet *) | - offlineDevices |
(NSSet *) | - deletedDevices |
(BOOL) | - containExceptionDevice |
(NSInteger) | - effectiveActionCount |
(BOOL) | - containsUnpurchasedDevice |
(BOOL) | - isManual |
(BOOL) | - isRecommend |
(BOOL) | - isCollection |
(NSSet *) | - offlineDevices |
(NSSet *) | - deletedDevices |
(BOOL) | - containExceptionDevice |
(NSInteger) | - effectiveActionCount |
(BOOL) | - containsUnpurchasedDevice |
(BOOL) | - isManual |
(BOOL) | - isRecommend |
(BOOL) | - isCollection |
(NSSet *) | - offlineDevices |
(NSSet *) | - deletedDevices |
(BOOL) | - containExceptionDevice |
(NSInteger) | - effectiveActionCount |
(BOOL) | - containsUnpurchasedDevice |
(BOOL) | - isManual |
(BOOL) | - isRecommend |
(BOOL) | - isCollection |
(NSSet *) | - offlineDevices |
(NSSet *) | - deletedDevices |
(BOOL) | - containExceptionDevice |
(NSInteger) | - effectiveActionCount |
(BOOL) | - containsUnpurchasedDevice |
Properties | |
NSString * | sceneId |
The scene id, it's unique. But only custom scene has this property. More... | |
NSString * | code |
The scene code, only default scene has this property. More... | |
NSString * | name |
The scene name, it describes what the scene is used to. More... | |
BOOL | enabled |
Whether the scene enabled, this status is used to automation scene and default enabled in tap-to-run scene. More... | |
BOOL | stickyOnTop |
Whether show scene in first page, the status only can be switched when editing scene. More... | |
NSArray< ThingSmartScenePreConditionModel * > * | preConditions |
The pre condition object model list is used to set the valid time period for automation scene. More information about ThingSmartScenePreConditionModel, you can see ThingSmartScenePreConditionModel class. More... | |
NSArray< ThingSmartSceneConditionModel * > * | conditions |
The condition model list,. More... | |
NSArray< ThingSmartSceneActionModel * > * | actions |
The action model list,. More... | |
NSArray< ThingSmartSceneConditionModel * > * | statusConditions |
The status condition model list. More... | |
NSArray * | devList |
The device list,. More... | |
NSString * | coverIcon |
The scene background icon URL. More... | |
NSString * | displayColor |
The scene background color hex string. More... | |
NSString * | background |
The scene background URL, when created a new scene, use the URL provided by Thing. More... | |
ThingSmartConditionMatchType | matchType |
The condition match type, For detail you can see ThingSmartConditionMatchType enumeration value introduction. More... | |
ThingSmartConditionSubMatchType | subMatchType |
The status condition match type, For detail you can see ThingSmartConditionMatchType enumeration value introduction. More... | |
BOOL | boundForPanel |
Whether this scene is bound to a panel. This attribute only supports standard zigbee devices. More... | |
BOOL | boundForWiFiPanel |
Whether this scene is bound by a panel with new firmware. The new panel indicates that the scene supports zigbee devices and wifi devices. More... | |
BOOL | localLinkage |
Whether the automation scene supports to execute in LAN, If YES indicates the automation scene can be executed when zigbee gateway is offline. More... | |
BOOL | newLocalScene |
Whether the tap-to-run scene supports to execute in LAN, If YES indicates you can directly notify the zigbee gateway to execute the scene through TCP or MQTT messages. More... | |
ThingSmartScenePanelType | panelType |
The bound panel type, For detail you can see ThingSmartScenePanelType enumeration value introduction. More... | |
ThingSmartSceneRecommendType | recommendType |
The recommend scene type, For detail you can see ThingSmartSceneRecommendType enumeration value introduction. More... | |
ThingSmartSceneCollectionType | collectionType |
The collection scene type, For detail you can see ThingSmartSceneCollectionType enumeration value introduction. More... | |
NSString * | recomDescription |
The recommend scene description. More... | |
CGFloat | recomCoefficient |
The recommended coefficient value of recommended scene, the range value is 0-100. More... | |
long long | disableTime |
The timestamp when the automation scene will be automatically closed, The zero means it has not been set. More... | |
ThingSmartSceneWorkingStatus | outOfWork |
Describe scenario execution status,See enum ThingSmartSceneWorkingStatus . More... | |
BOOL | notShowInTabList |
When is true, this scene not disappear in scene tab view. More... | |
ThingLocalLinkageType | linkageType |
The linkage type. More... | |
NSArray * | roomIds |
The room id list, eg:"123,234". More... | |
NSArray< NSString * > * | categorys |
The category id list, eg:"xadacc,cag1af3". More... | |
NSString * | gwId |
The master gateway id. More... | |
BOOL | cached |
Whether the scene has already obtained details. More... | |
NSString * | arrowIconUrl |
The arrow icon URL. More... | |
NSString * | hotCount |
The hot value of recommended scene. More... | |
ThingSmartSceneRuleGenre | ruleGenre |
The type of scene. More... | |
NSString *subTitle | __deprecated |
The scene subtitle. More... | |
NSString *editIcon | __deprecated |
The scene edit icon URL. More... | |
NSString *displayIcon | __deprecated |
The scene display icon URL. More... | |
TSceneRecomBizType | bizType |
The recommend source biz type. More... | |
NSString * | recommendSource |
The recommend source description. More... | |
NSString * | jumpUrl |
The target jump URL. More... | |
NSString * | jumpType |
The type of target page. More... | |
NSString * | iconUrl |
The icon url. More... | |
NSString * | iconTitle |
The icon title. More... | |
ThingSmartSceneModel provides more data attributes for developers to implement business logic of the scene.
Definition at line 79 of file ThingSmartSceneModel.h.
- (BOOL) containExceptionDevice |
Determine whether the scene contains exception devices, offline and removed devices are exception devices.
- (BOOL) containExceptionDevice |
Determine whether the scene contains exception devices, offline and removed devices are exception devices.
- (BOOL) containExceptionDevice |
Determine whether the scene contains exception devices, offline and removed devices are exception devices.
- (BOOL) containExceptionDevice |
Determine whether the scene contains exception devices, offline and removed devices are exception devices.
- (BOOL) containsUnpurchasedDevice |
Determine whether the scene contains devices to be purchased.
- (BOOL) containsUnpurchasedDevice |
Determine whether the scene contains devices to be purchased.
- (BOOL) containsUnpurchasedDevice |
Determine whether the scene contains devices to be purchased.
- (BOOL) containsUnpurchasedDevice |
Determine whether the scene contains devices to be purchased.
- (NSSet *) deletedDevices |
Return set of devices did removed in the scene.
- (NSSet *) deletedDevices |
Return set of devices did removed in the scene.
- (NSSet *) deletedDevices |
Return set of devices did removed in the scene.
- (NSSet *) deletedDevices |
Return set of devices did removed in the scene.
- (NSInteger) effectiveActionCount |
Return the number of valid actions in the scene.
- (NSInteger) effectiveActionCount |
Return the number of valid actions in the scene.
- (NSInteger) effectiveActionCount |
Return the number of valid actions in the scene.
- (NSInteger) effectiveActionCount |
Return the number of valid actions in the scene.
- (BOOL) isCollection |
Determine whether is collection scene.
- (BOOL) isCollection |
Determine whether is collection scene.
- (BOOL) isCollection |
Determine whether is collection scene.
- (BOOL) isCollection |
Determine whether is collection scene.
- (BOOL) isManual |
Determine whether is manual scene.
- (BOOL) isManual |
Determine whether is manual scene.
- (BOOL) isManual |
Determine whether is manual scene.
- (BOOL) isManual |
Determine whether is manual scene.
- (BOOL) isRecommend |
Determine whether is recommend scene.
- (BOOL) isRecommend |
Determine whether is recommend scene.
- (BOOL) isRecommend |
Determine whether is recommend scene.
- (BOOL) isRecommend |
Determine whether is recommend scene.
- (NSSet *) offlineDevices |
Return set for offline devices in the scene.
- (NSSet *) offlineDevices |
Return set for offline devices in the scene.
- (NSSet *) offlineDevices |
Return set for offline devices in the scene.
- (NSSet *) offlineDevices |
Return set for offline devices in the scene.
|
readwritenonatomicstrong |
The scene subtitle.
The scene display icon URL.
The scene edit icon URL.
Definition at line 191 of file ThingSmartSceneModel.h.
|
readwritenonatomicstrong |
The scene edit icon URL.
Definition at line 194 of file ThingSmartSceneModel.h.
|
readwritenonatomicstrong |
The scene display icon URL.
Definition at line 197 of file ThingSmartSceneModel.h.
|
readwritenonatomicstrong |
The action model list,.
Definition at line 103 of file ThingSmartSceneModel.h.
|
readwritenonatomiccopy |
The arrow icon URL.
Definition at line 180 of file ThingSmartSceneModel.h.
|
readwritenonatomicstrong |
The scene background URL, when created a new scene, use the URL provided by Thing.
Definition at line 118 of file ThingSmartSceneModel.h.
|
readnonatomicassign |
The recommend source biz type.
Provided by category ThingSmartSceneModel(ThingSceneRecom).
Definition at line 247 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
Whether this scene is bound to a panel. This attribute only supports standard zigbee devices.
Definition at line 127 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
Whether this scene is bound by a panel with new firmware. The new panel indicates that the scene supports zigbee devices and wifi devices.
Definition at line 130 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
Whether the scene has already obtained details.
Definition at line 177 of file ThingSmartSceneModel.h.
|
readwritenonatomiccopy |
The category id list, eg:"xadacc,cag1af3".
Definition at line 169 of file ThingSmartSceneModel.h.
|
readwritenonatomicstrong |
The scene code, only default scene has this property.
Definition at line 85 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
The collection scene type, For detail you can see ThingSmartSceneCollectionType enumeration value introduction.
Definition at line 145 of file ThingSmartSceneModel.h.
|
readwritenonatomicstrong |
The condition model list,.
Definition at line 100 of file ThingSmartSceneModel.h.
|
readwritenonatomiccopy |
The scene background icon URL.
Definition at line 112 of file ThingSmartSceneModel.h.
|
readwritenonatomicstrong |
The device list,.
Definition at line 109 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
The timestamp when the automation scene will be automatically closed, The zero means it has not been set.
Definition at line 154 of file ThingSmartSceneModel.h.
|
readwritenonatomiccopy |
The scene background color hex string.
Provided by category ThingSmartSceneModel(ThingSceneRecom).
Definition at line 115 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
Whether the scene enabled, this status is used to automation scene and default enabled in tap-to-run scene.
Definition at line 91 of file ThingSmartSceneModel.h.
|
readwritenonatomiccopy |
The master gateway id.
Definition at line 172 of file ThingSmartSceneModel.h.
|
readwritenonatomiccopy |
The hot value of recommended scene.
Definition at line 183 of file ThingSmartSceneModel.h.
|
readwritenonatomiccopy |
The icon title.
Provided by category ThingSmartSceneModel(ThingSceneRecom).
Definition at line 259 of file ThingSmartSceneModel.h.
|
readwritenonatomiccopy |
The icon url.
Provided by category ThingSmartSceneModel(ThingSceneRecom).
Definition at line 255 of file ThingSmartSceneModel.h.
|
readwritenonatomiccopy |
The type of target page.
Provided by category ThingSmartSceneModel(ThingSceneRecom).
Definition at line 253 of file ThingSmartSceneModel.h.
|
readwritenonatomiccopy |
The target jump URL.
Provided by category ThingSmartSceneModel(ThingSceneRecom).
Definition at line 251 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
The linkage type.
Definition at line 163 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
Whether the automation scene supports to execute in LAN, If YES indicates the automation scene can be executed when zigbee gateway is offline.
Definition at line 133 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
The condition match type, For detail you can see ThingSmartConditionMatchType enumeration value introduction.
Definition at line 121 of file ThingSmartSceneModel.h.
|
readwritenonatomicstrong |
The scene name, it describes what the scene is used to.
Definition at line 88 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
Whether the tap-to-run scene supports to execute in LAN, If YES indicates you can directly notify the zigbee gateway to execute the scene through TCP or MQTT messages.
Definition at line 136 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
When is true, this scene not disappear in scene tab view.
Definition at line 160 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
Describe scenario execution status,See enum ThingSmartSceneWorkingStatus
.
Definition at line 157 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
The bound panel type, For detail you can see ThingSmartScenePanelType enumeration value introduction.
Definition at line 139 of file ThingSmartSceneModel.h.
|
readwritenonatomicstrong |
The pre condition object model list is used to set the valid time period for automation scene. More information about ThingSmartScenePreConditionModel, you can see ThingSmartScenePreConditionModel class.
Definition at line 97 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
The recommended coefficient value of recommended scene, the range value is 0-100.
Definition at line 151 of file ThingSmartSceneModel.h.
|
readwritenonatomiccopy |
The recommend scene description.
Definition at line 148 of file ThingSmartSceneModel.h.
|
readwritenonatomiccopy |
The recommend source description.
Provided by category ThingSmartSceneModel(ThingSceneRecom).
Definition at line 249 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
The recommend scene type, For detail you can see ThingSmartSceneRecommendType enumeration value introduction.
Definition at line 142 of file ThingSmartSceneModel.h.
|
readwritenonatomiccopy |
The room id list, eg:"123,234".
Definition at line 166 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
The type of scene.
Definition at line 186 of file ThingSmartSceneModel.h.
|
readwritenonatomicstrong |
The scene id, it's unique. But only custom scene has this property.
Definition at line 82 of file ThingSmartSceneModel.h.
|
readwritenonatomicstrong |
The status condition model list.
Definition at line 106 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
Whether show scene in first page, the status only can be switched when editing scene.
Definition at line 94 of file ThingSmartSceneModel.h.
|
readwritenonatomicassign |
The status condition match type, For detail you can see ThingSmartConditionMatchType enumeration value introduction.
Definition at line 124 of file ThingSmartSceneModel.h.