![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
Condition data model for scene. More...
#import <ThingSmartSceneConditionModel.h>
Properties | |
NSString * | conditionId |
The condition id. More... | |
NSString * | iconUrl |
The url of condition icon. More... | |
NSString * | entityId |
The city id. If this condition is a meteorological condition, devId if this is a device condition, "timer" if this is a timer condition. More... | |
NSString * | entityName |
The city name. If this is a meteorological condition, device name if this is a device condition, "timer" if this is a timer condition. More... | |
ThingConditionAutoType | entityType |
The entity type. Device as condition it will be NSInteger 1, 3 for meteorological condition, 6 for timer condition, 7 for human body detector condition, 10 for geofencing condition. More... | |
NSString * | exprDisplay |
Description of condition, like "Switch : Open","Humidity : Comfort". More... | |
NSString * | scenarioId |
The scene id ,can be used to save the scene's Id which this action belonged to. More... | |
NSString * | entitySubIds |
Meteorological condition's subId or device's dpId, timer condition is "timer". More... | |
NSArray * | expr |
ThingSceneConditionStatus | status |
The condition status, see ThingSceneConditionStatus enum. More... | |
NSDictionary * | extraInfo |
Unit of temperature, or geofence detail, {"tempUnit":"fahrenheit","Hangzhou City":"cityName"},{"center":{"latitude":30.273173191721956,"longitude":120.09600875035049},"geotitle":"xxx","radius":180.00011311593616}}. More... | |
BOOL | devDelMark |
If this condition is a device type condition and this device has been removed from the current account, this flag is YES. More... | |
NSString * | deleteDevIcon |
If this condition is a device type condition, and this device has been removed from the current account, then provide this icon url to display the device icon. More... | |
NSString * | cityName |
The city name. More... | |
CLLocationDegrees | cityLatitude |
The city latitude. More... | |
CLLocationDegrees | cityLongitude |
The city longitude. More... | |
NSString * | productId |
Recommend product id. More... | |
NSString * | productPic |
Recommend product icon. More... | |
NSString * | defaultIconUrl |
Recommend product local default icon. More... | |
ThingSConditionExpressionType | conditionExpressionType |
Condition data model for scene.
Definition at line 62 of file ThingSmartSceneConditionModel.h.
- (BOOL) cd_isDevice |
Provided by category ThingSmartSceneConditionModel(CheckDevice).
- (BOOL) cd_isDevice |
Provided by category ThingSmartSceneConditionModel(CheckDevice).
- (BOOL) cd_isDevice |
Provided by category ThingSmartSceneConditionModel(CheckDevice).
- (BOOL) cd_isDevice |
Provided by category ThingSmartSceneConditionModel(CheckDevice).
- (BOOL) checkWhetherDeviceIsNormal |
Provided by category ThingSmartSceneConditionModel(CheckDevice).
- (BOOL) checkWhetherDeviceIsNormal |
Provided by category ThingSmartSceneConditionModel(CheckDevice).
- (BOOL) checkWhetherDeviceIsNormal |
Provided by category ThingSmartSceneConditionModel(CheckDevice).
- (BOOL) checkWhetherDeviceIsNormal |
Provided by category ThingSmartSceneConditionModel(CheckDevice).
- (BOOL) isCelsius |
Determine whether is celsius for temperature unit.
- (BOOL) isCelsius |
Determine whether is celsius for temperature unit.
- (BOOL) isCelsius |
Determine whether is celsius for temperature unit.
- (BOOL) isCelsius |
Determine whether is celsius for temperature unit.
- (BOOL) isDevice |
Determine whether is device type.
- (BOOL) isDevice |
Determine whether is device type.
- (BOOL) isDevice |
Determine whether is device type.
- (BOOL) isDevice |
Determine whether is device type.
- (BOOL) isFahrenheit |
Determine whether is fahrenheit for temperature unit.
- (BOOL) isFahrenheit |
Determine whether is fahrenheit for temperature unit.
- (BOOL) isFahrenheit |
Determine whether is fahrenheit for temperature unit.
- (BOOL) isFahrenheit |
Determine whether is fahrenheit for temperature unit.
- (BOOL) isRecommend |
Determine whethe is recommend type condition.
- (BOOL) isRecommend |
Determine whethe is recommend type condition.
- (BOOL) isRecommend |
Determine whethe is recommend type condition.
- (BOOL) isRecommend |
Determine whethe is recommend type condition.
- (BOOL) isSunsetrise |
Determine whether is sunset or sunrise type.
- (BOOL) isSunsetrise |
Determine whether is sunset or sunrise type.
- (BOOL) isSunsetrise |
Determine whether is sunset or sunrise type.
- (BOOL) isSunsetrise |
Determine whether is sunset or sunrise type.
- (BOOL) isValid |
Detemine whether the condition is valid. When the condition is non-device type, condition is valid. When the condition is device type, the condition is valid if device is not removed and online.
- (BOOL) isValid |
Detemine whether the condition is valid. When the condition is non-device type, condition is valid. When the condition is device type, the condition is valid if device is not removed and online.
- (BOOL) isValid |
Detemine whether the condition is valid. When the condition is non-device type, condition is valid. When the condition is device type, the condition is valid if device is not removed and online.
- (BOOL) isValid |
Detemine whether the condition is valid. When the condition is non-device type, condition is valid. When the condition is device type, the condition is valid if device is not removed and online.
- (BOOL) isWeather |
Determine whether is weather type.
- (BOOL) isWeather |
Determine whether is weather type.
- (BOOL) isWeather |
Determine whether is weather type.
- (BOOL) isWeather |
Determine whether is weather type.
- (NSString *) temperatureUnit |
A unit of temperature, such as 'fahrenheit', 'celsius'.
- (NSString *) temperatureUnit |
A unit of temperature, such as 'fahrenheit', 'celsius'.
- (NSString *) temperatureUnit |
A unit of temperature, such as 'fahrenheit', 'celsius'.
- (NSString *) temperatureUnit |
A unit of temperature, such as 'fahrenheit', 'celsius'.
- (NSString *) windSpeedUnit |
A unit for wind speed, such as 'm/s'.
- (NSString *) windSpeedUnit |
A unit for wind speed, such as 'm/s'.
- (NSString *) windSpeedUnit |
A unit for wind speed, such as 'm/s'.
- (NSString *) windSpeedUnit |
A unit for wind speed, such as 'm/s'.
|
readwritenonatomicassign |
The city latitude.
Definition at line 111 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomicassign |
The city longitude.
Definition at line 114 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomiccopy |
The city name.
Definition at line 108 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomicassign |
The expression type for condition. see more: ThingSConditionExpressionType.
eg: ("$humidity","==","comfort") Indicates Precise matching mode, including (==, >, <) specific equations. It includes all the DP description types in the condition are enum, value, bool, etc. When the dp type equal enum, value, bool, you can use ThingSConditionExpressionTypePrecise. eg: ("$dp1")Indicates simple matching mode, excluding an equation. The DP description types in the condition is only string and raw. When the dp type equal string or raw,you can use ThingSConditionExpressionTypeSimple.
Definition at line 133 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomiccopy |
The condition id.
Definition at line 65 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomiccopy |
Recommend product local default icon.
Definition at line 125 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomiccopy |
If this condition is a device type condition, and this device has been removed from the current account, then provide this icon url to display the device icon.
Definition at line 105 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomicassign |
If this condition is a device type condition and this device has been removed from the current account, this flag is YES.
Definition at line 102 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomiccopy |
The city id. If this condition is a meteorological condition, devId if this is a device condition, "timer" if this is a timer condition.
Definition at line 71 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomiccopy |
The city name. If this is a meteorological condition, device name if this is a device condition, "timer" if this is a timer condition.
Definition at line 74 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomiccopy |
Meteorological condition's subId or device's dpId, timer condition is "timer".
Definition at line 86 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomicassign |
The entity type. Device as condition it will be NSInteger 1, 3 for meteorological condition, 6 for timer condition, 7 for human body detector condition, 10 for geofencing condition.
Definition at line 77 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomicstrong |
Condition's expression, like ("$humidity","==","comfort") or(“$dp1”,“==”,1) timer:{timeZoneId = "Asia/Shanghai",loops = "0000000",time = "08:00",date = "20180308"} loops = "0000000" ,each bit representing from Sunday to Saturday. Details in Doc: https://thinginc.github.io/thingsmart_home_ios_sdk_doc/en/resource/SmartScene.html#smart-scene
Definition at line 93 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomiccopy |
Description of condition, like "Switch : Open","Humidity : Comfort".
Definition at line 80 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomicstrong |
Unit of temperature, or geofence detail, {"tempUnit":"fahrenheit","Hangzhou City":"cityName"},{"center":{"latitude":30.273173191721956,"longitude":120.09600875035049},"geotitle":"xxx","radius":180.00011311593616}}.
Definition at line 99 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomiccopy |
The url of condition icon.
Definition at line 68 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomiccopy |
Recommend product id.
Definition at line 119 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomiccopy |
Recommend product icon.
Definition at line 122 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomiccopy |
The scene id ,can be used to save the scene's Id which this action belonged to.
Definition at line 83 of file ThingSmartSceneConditionModel.h.
|
readwritenonatomicassign |
The condition status, see ThingSceneConditionStatus enum.
Definition at line 96 of file ThingSmartSceneConditionModel.h.