![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
Data model for Scene Base Action. More...
#import <ThingSmartSceneActionModel.h>
Properties | |
NSString * | actionId |
The action id. More... | |
NSString * | entityId |
The entity id. If action is a device, entityId is devId, and groupId for group action, "delay" for a delay action, sceneId of operated scene for scene action. More... | |
NSString * | entityName |
The entity name, like "lamp", "lamp group". More... | |
NSString * | scenarioId |
The scene id, can be used to save the scene's Id which this action belonged to. More... | |
NSString * | actionDisplay |
Describe what this action will do, like "Switch : Open". More... | |
NSDictionary * | actionDisplayNew |
NSString * | actionExecutor |
NSDictionary * | executorProperty |
Execute property, like {"1":true, ...}, "1" is dpId, a data point's Id, value is the value you want this datapoint to set. Delay action should be like "executorProperty":{"seconds":"5","minutes":"0"}. More... | |
NSDictionary * | extraProperty |
Local property of scene , save gId and gwId. More... | |
BOOL | devDelMark |
If this action is a device type action and this device has been removed from the current account, this flag is YES. More... | |
NSString * | deleteDevIcon |
If this action is a device type action, and this device has been removed from the current account, then provide this icon url to display the device icon. More... | |
ThingSceneActionStatus | status |
Execute action status, you can use this property to store the execute status when executing. More... | |
NSDictionary * | relationGroup |
Batch control device information. More... | |
NSString * | uiid |
The panel id, this value will be assigned by cloud server when this action should be oprate by a React Native panel. More... | |
NSDictionary * | uiInfo |
The panel info, this value will be assigned by cloud server when this action should be oprate by a React Native panel. More... | |
long | i18nTime |
The panel info, this value will be assigned by cloud server when this action should be oprate by a React Native panel. More... | |
NSString * | pid |
The panel relate device's pid, this value will be assigned by cloud server when this action should be oprate by a React Native panel. More... | |
NSString * | productId |
The recommend product id. More... | |
NSString * | productPic |
The recommend product icon. More... | |
NSString * | defaultIconUrl |
The recommend product local default icon. More... | |
Data model for Scene Base Action.
Definition at line 50 of file ThingSmartSceneActionModel.h.
- (BOOL) checkWhetherDeviceIsNormal |
Provided by category ThingSmartSceneActionModel(CheckDevice).
- (BOOL) checkWhetherDeviceIsNormal |
Provided by category ThingSmartSceneActionModel(CheckDevice).
- (BOOL) checkWhetherDeviceIsNormal |
Provided by category ThingSmartSceneActionModel(CheckDevice).
- (BOOL) checkWhetherDeviceIsNormal |
Provided by category ThingSmartSceneActionModel(CheckDevice).
- (BOOL) isBatchControl |
Determine whether is batch control device type.
- (BOOL) isBatchControl |
Determine whether is batch control device type.
- (BOOL) isBatchControl |
Determine whether is batch control device type.
- (BOOL) isBatchControl |
Determine whether is batch control device type.
- (BOOL) isDelay |
Check whether is delay type.
- (BOOL) isDelay |
Check whether is delay type.
- (BOOL) isDelay |
Check whether is delay type.
- (BOOL) isDelay |
Check whether is delay type.
- (BOOL) isDevice |
Determine whether is device type. It includes normal device type and infrared device type.
- (BOOL) isDevice |
Determine whether is device type. It includes normal device type and infrared device type.
- (BOOL) isDevice |
Determine whether is device type. It includes normal device type and infrared device type.
- (BOOL) isDevice |
Determine whether is device type. It includes normal device type and infrared device type.
- (BOOL) isEnergy |
Determine whether is energy type.
- (BOOL) isEnergy |
Determine whether is energy type.
- (BOOL) isEnergy |
Determine whether is energy type.
- (BOOL) isEnergy |
Determine whether is energy type.
- (BOOL) isGroup |
Determine whether is group type.
- (BOOL) isGroup |
Determine whether is group type.
- (BOOL) isGroup |
Determine whether is group type.
- (BOOL) isGroup |
Determine whether is group type.
- (BOOL) isIRDevice |
Determine whether is infrared device type. It includes ACTION_EXECUTOR_IR_ISSUE, ACTION_EXECUTOR_IR_ISSUE_VII.
- (BOOL) isIRDevice |
Determine whether is infrared device type. It includes ACTION_EXECUTOR_IR_ISSUE, ACTION_EXECUTOR_IR_ISSUE_VII.
- (BOOL) isIRDevice |
Determine whether is infrared device type. It includes ACTION_EXECUTOR_IR_ISSUE, ACTION_EXECUTOR_IR_ISSUE_VII.
- (BOOL) isIRDevice |
Determine whether is infrared device type. It includes ACTION_EXECUTOR_IR_ISSUE, ACTION_EXECUTOR_IR_ISSUE_VII.
- (BOOL) isMessage |
Determine whether is message type. It includes ACTION_EXECUTOR_APP_PUSH, ACTION_EXECUTOR_APP_CALL, ACTION_EXECUTOR_SMS_SEND.
- (BOOL) isMessage |
Determine whether is message type. It includes ACTION_EXECUTOR_APP_PUSH, ACTION_EXECUTOR_APP_CALL, ACTION_EXECUTOR_SMS_SEND.
- (BOOL) isMessage |
Determine whether is message type. It includes ACTION_EXECUTOR_APP_PUSH, ACTION_EXECUTOR_APP_CALL, ACTION_EXECUTOR_SMS_SEND.
- (BOOL) isMessage |
Determine whether is message type. It includes ACTION_EXECUTOR_APP_PUSH, ACTION_EXECUTOR_APP_CALL, ACTION_EXECUTOR_SMS_SEND.
- (BOOL) isNormalDevice |
Determine whether is normal device type. It includes ACTION_EXECUTOR_DP_ISSUE, ACTION_EXECUTOR_TOGGLE, ACTION_EXECUTOR_STEP.
- (BOOL) isNormalDevice |
Determine whether is normal device type. It includes ACTION_EXECUTOR_DP_ISSUE, ACTION_EXECUTOR_TOGGLE, ACTION_EXECUTOR_STEP.
- (BOOL) isNormalDevice |
Determine whether is normal device type. It includes ACTION_EXECUTOR_DP_ISSUE, ACTION_EXECUTOR_TOGGLE, ACTION_EXECUTOR_STEP.
- (BOOL) isNormalDevice |
Determine whether is normal device type. It includes ACTION_EXECUTOR_DP_ISSUE, ACTION_EXECUTOR_TOGGLE, ACTION_EXECUTOR_STEP.
- (BOOL) isRecommend |
Determine whether is recommend type.
- (BOOL) isRecommend |
Determine whether is recommend type.
- (BOOL) isRecommend |
Determine whether is recommend type.
- (BOOL) isRecommend |
Determine whether is recommend type.
- (BOOL) isRuleHandle |
Determine whether is rule handle type. It includes ACTION_EXECUTOR_RULE_ENABLE, ACTION_EXECUTOR_RULE_DISABLE, ACTION_EXECUTOR_RULE_TRIGGER, ACTION_EXECUTOR_LIGHT.
- (BOOL) isRuleHandle |
Determine whether is rule handle type. It includes ACTION_EXECUTOR_RULE_ENABLE, ACTION_EXECUTOR_RULE_DISABLE, ACTION_EXECUTOR_RULE_TRIGGER, ACTION_EXECUTOR_LIGHT.
- (BOOL) isRuleHandle |
Determine whether is rule handle type. It includes ACTION_EXECUTOR_RULE_ENABLE, ACTION_EXECUTOR_RULE_DISABLE, ACTION_EXECUTOR_RULE_TRIGGER, ACTION_EXECUTOR_LIGHT.
- (BOOL) isRuleHandle |
Determine whether is rule handle type. It includes ACTION_EXECUTOR_RULE_ENABLE, ACTION_EXECUTOR_RULE_DISABLE, ACTION_EXECUTOR_RULE_TRIGGER, ACTION_EXECUTOR_LIGHT.
- (BOOL) isSecurity |
Determine whether is security type.
- (BOOL) isSecurity |
Determine whether is security type.
- (BOOL) isSecurity |
Determine whether is security type.
- (BOOL) isSecurity |
Determine whether is security type.
- (BOOL) isValid |
Detemine whether the action is valid. When the action is non-device type, action is valid. When the action is device type, the action is valid if device is not removed and online.
- (BOOL) isValid |
Detemine whether the action is valid. When the action is non-device type, action is valid. When the action is device type, the action is valid if device is not removed and online.
- (BOOL) isValid |
Detemine whether the action is valid. When the action is non-device type, action is valid. When the action is device type, the action is valid if device is not removed and online.
- (BOOL) isValid |
Detemine whether the action is valid. When the action is non-device type, action is valid. When the action is device type, the action is valid if device is not removed and online.
|
readwritenonatomiccopy |
Describe what this action will do, like "Switch : Open".
Definition at line 65 of file ThingSmartSceneActionModel.h.
|
readwritenonatomicstrong |
Describe what this action will do with origin format like the below example, you can use it to create the description. { 1: [ "Switch", "Open" ] }
Definition at line 74 of file ThingSmartSceneActionModel.h.
|
readwritenonatomiccopy |
The action type, can be the followed types: "dpIssue" :execute a device action. "deviceGroupDpIssue": execute a group action. "irIssue": execute an infrared device, like an air conditioner which is controlled by a remote control. "irIssueVii": execute an infrared device, like an air conditioner which is controlled by a remote control.ExecutorProperty is real infrared ray remotes control code. "ruleTrigger": execute a scene. "ruleEnable": Enable an automation. "ruleDisable": Disable an automation. "delay": Delay for a while.
Definition at line 86 of file ThingSmartSceneActionModel.h.
|
readwritenonatomiccopy |
The action id.
Definition at line 53 of file ThingSmartSceneActionModel.h.
|
readwritenonatomiccopy |
The recommend product local default icon.
Definition at line 130 of file ThingSmartSceneActionModel.h.
|
readwritenonatomiccopy |
If this action is a device type action, and this device has been removed from the current account, then provide this icon url to display the device icon.
Definition at line 98 of file ThingSmartSceneActionModel.h.
|
readwritenonatomicassign |
If this action is a device type action and this device has been removed from the current account, this flag is YES.
Definition at line 95 of file ThingSmartSceneActionModel.h.
|
readwritenonatomiccopy |
The entity id. If action is a device, entityId is devId, and groupId for group action, "delay" for a delay action, sceneId of operated scene for scene action.
Definition at line 56 of file ThingSmartSceneActionModel.h.
|
readwritenonatomiccopy |
The entity name, like "lamp", "lamp group".
Definition at line 59 of file ThingSmartSceneActionModel.h.
|
readwritenonatomicstrong |
Execute property, like {"1":true, ...}, "1" is dpId, a data point's Id, value is the value you want this datapoint to set. Delay action should be like "executorProperty":{"seconds":"5","minutes":"0"}.
Definition at line 89 of file ThingSmartSceneActionModel.h.
|
readwritenonatomicstrong |
Local property of scene , save gId and gwId.
Definition at line 92 of file ThingSmartSceneActionModel.h.
|
readwritenonatomicassign |
The panel info, this value will be assigned by cloud server when this action should be oprate by a React Native panel.
Definition at line 115 of file ThingSmartSceneActionModel.h.
|
readwritenonatomiccopy |
The panel relate device's pid, this value will be assigned by cloud server when this action should be oprate by a React Native panel.
Definition at line 118 of file ThingSmartSceneActionModel.h.
|
readwritenonatomiccopy |
The recommend product id.
Definition at line 124 of file ThingSmartSceneActionModel.h.
|
readwritenonatomiccopy |
The recommend product icon.
Definition at line 127 of file ThingSmartSceneActionModel.h.
|
readwritenonatomicstrong |
Batch control device information.
Definition at line 104 of file ThingSmartSceneActionModel.h.
|
readwritenonatomiccopy |
The scene id, can be used to save the scene's Id which this action belonged to.
Definition at line 62 of file ThingSmartSceneActionModel.h.
|
readwritenonatomicassign |
Execute action status, you can use this property to store the execute status when executing.
Definition at line 101 of file ThingSmartSceneActionModel.h.
|
readwritenonatomiccopy |
The panel id, this value will be assigned by cloud server when this action should be oprate by a React Native panel.
Definition at line 109 of file ThingSmartSceneActionModel.h.
|
readwritenonatomicstrong |
The panel info, this value will be assigned by cloud server when this action should be oprate by a React Native panel.
Definition at line 112 of file ThingSmartSceneActionModel.h.