Tuya iOS Smart Life App SDK 5.15.0
ThingSmartSceneConditionModel Class Reference

Condition data model for scene. More...

#import <ThingSmartSceneConditionModel.h>

Inheritance diagram for ThingSmartSceneConditionModel:

Instance Methods

(BOOL) - isDevice
 
(BOOL) - isWeather
 
(BOOL) - isSunsetrise
 
(BOOL) - isRecommend
 
(NSString *) - temperatureUnit
 
(NSString *) - windSpeedUnit
 
(BOOL) - isFahrenheit
 
(BOOL) - isCelsius
 
(BOOL) - isValid
 
(BOOL) - isDevice
 
(BOOL) - isWeather
 
(BOOL) - isSunsetrise
 
(BOOL) - isRecommend
 
(NSString *) - temperatureUnit
 
(NSString *) - windSpeedUnit
 
(BOOL) - isFahrenheit
 
(BOOL) - isCelsius
 
(BOOL) - isValid
 
(BOOL) - isDevice
 
(BOOL) - isWeather
 
(BOOL) - isSunsetrise
 
(BOOL) - isRecommend
 
(NSString *) - temperatureUnit
 
(NSString *) - windSpeedUnit
 
(BOOL) - isFahrenheit
 
(BOOL) - isCelsius
 
(BOOL) - isValid
 
(BOOL) - isDevice
 
(BOOL) - isWeather
 
(BOOL) - isSunsetrise
 
(BOOL) - isRecommend
 
(NSString *) - temperatureUnit
 
(NSString *) - windSpeedUnit
 
(BOOL) - isFahrenheit
 
(BOOL) - isCelsius
 
(BOOL) - isValid
 
(BOOL) - checkWhetherDeviceIsNormal
 
(BOOL) - checkWhetherDeviceIsNormal
 
(BOOL) - checkWhetherDeviceIsNormal
 
(BOOL) - checkWhetherDeviceIsNormal
 
(BOOL) - cd_isDevice
 
(BOOL) - cd_isDevice
 
(BOOL) - cd_isDevice
 
(BOOL) - cd_isDevice
 

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...
 
NSArrayexpr
 
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
 

Detailed Description

Condition data model for scene.

Definition at line 62 of file ThingSmartSceneConditionModel.h.

Method Documentation

◆ cd_isDevice [1/4]

- (BOOL) cd_isDevice

◆ cd_isDevice [2/4]

- (BOOL) cd_isDevice

◆ cd_isDevice [3/4]

- (BOOL) cd_isDevice

◆ cd_isDevice [4/4]

- (BOOL) cd_isDevice

◆ checkWhetherDeviceIsNormal [1/4]

- (BOOL) checkWhetherDeviceIsNormal

◆ checkWhetherDeviceIsNormal [2/4]

- (BOOL) checkWhetherDeviceIsNormal

◆ checkWhetherDeviceIsNormal [3/4]

- (BOOL) checkWhetherDeviceIsNormal

◆ checkWhetherDeviceIsNormal [4/4]

- (BOOL) checkWhetherDeviceIsNormal

◆ isCelsius [1/4]

- (BOOL) isCelsius

Determine whether is celsius for temperature unit.

◆ isCelsius [2/4]

- (BOOL) isCelsius

Determine whether is celsius for temperature unit.

◆ isCelsius [3/4]

- (BOOL) isCelsius

Determine whether is celsius for temperature unit.

◆ isCelsius [4/4]

- (BOOL) isCelsius

Determine whether is celsius for temperature unit.

◆ isDevice [1/4]

- (BOOL) isDevice

Determine whether is device type.

◆ isDevice [2/4]

- (BOOL) isDevice

Determine whether is device type.

◆ isDevice [3/4]

- (BOOL) isDevice

Determine whether is device type.

◆ isDevice [4/4]

- (BOOL) isDevice

Determine whether is device type.

◆ isFahrenheit [1/4]

- (BOOL) isFahrenheit

Determine whether is fahrenheit for temperature unit.

◆ isFahrenheit [2/4]

- (BOOL) isFahrenheit

Determine whether is fahrenheit for temperature unit.

◆ isFahrenheit [3/4]

- (BOOL) isFahrenheit

Determine whether is fahrenheit for temperature unit.

◆ isFahrenheit [4/4]

- (BOOL) isFahrenheit

Determine whether is fahrenheit for temperature unit.

◆ isRecommend [1/4]

- (BOOL) isRecommend

Determine whethe is recommend type condition.

◆ isRecommend [2/4]

- (BOOL) isRecommend

Determine whethe is recommend type condition.

◆ isRecommend [3/4]

- (BOOL) isRecommend

Determine whethe is recommend type condition.

◆ isRecommend [4/4]

- (BOOL) isRecommend

Determine whethe is recommend type condition.

◆ isSunsetrise [1/4]

- (BOOL) isSunsetrise

Determine whether is sunset or sunrise type.

◆ isSunsetrise [2/4]

- (BOOL) isSunsetrise

Determine whether is sunset or sunrise type.

◆ isSunsetrise [3/4]

- (BOOL) isSunsetrise

Determine whether is sunset or sunrise type.

◆ isSunsetrise [4/4]

- (BOOL) isSunsetrise

Determine whether is sunset or sunrise type.

◆ isValid [1/4]

- (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.

◆ isValid [2/4]

- (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.

◆ isValid [3/4]

- (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.

◆ isValid [4/4]

- (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.

◆ isWeather [1/4]

- (BOOL) isWeather

Determine whether is weather type.

◆ isWeather [2/4]

- (BOOL) isWeather

Determine whether is weather type.

◆ isWeather [3/4]

- (BOOL) isWeather

Determine whether is weather type.

◆ isWeather [4/4]

- (BOOL) isWeather

Determine whether is weather type.

◆ temperatureUnit [1/4]

- (NSString *) temperatureUnit

A unit of temperature, such as 'fahrenheit', 'celsius'.

◆ temperatureUnit [2/4]

- (NSString *) temperatureUnit

A unit of temperature, such as 'fahrenheit', 'celsius'.

◆ temperatureUnit [3/4]

- (NSString *) temperatureUnit

A unit of temperature, such as 'fahrenheit', 'celsius'.

◆ temperatureUnit [4/4]

- (NSString *) temperatureUnit

A unit of temperature, such as 'fahrenheit', 'celsius'.

◆ windSpeedUnit [1/4]

- (NSString *) windSpeedUnit

A unit for wind speed, such as 'm/s'.

◆ windSpeedUnit [2/4]

- (NSString *) windSpeedUnit

A unit for wind speed, such as 'm/s'.

◆ windSpeedUnit [3/4]

- (NSString *) windSpeedUnit

A unit for wind speed, such as 'm/s'.

◆ windSpeedUnit [4/4]

- (NSString *) windSpeedUnit

A unit for wind speed, such as 'm/s'.

Property Documentation

◆ cityLatitude

- (CLLocationDegrees) cityLatitude
readwritenonatomicassign

The city latitude.

Definition at line 111 of file ThingSmartSceneConditionModel.h.

◆ cityLongitude

- (CLLocationDegrees) cityLongitude
readwritenonatomicassign

The city longitude.

Definition at line 114 of file ThingSmartSceneConditionModel.h.

◆ cityName

- (NSString *) cityName
readwritenonatomiccopy

The city name.

Definition at line 108 of file ThingSmartSceneConditionModel.h.

◆ conditionExpressionType

- (ThingSConditionExpressionType) conditionExpressionType
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.

◆ conditionId

- (NSString *) conditionId
readwritenonatomiccopy

The condition id.

Definition at line 65 of file ThingSmartSceneConditionModel.h.

◆ defaultIconUrl

- (NSString *) defaultIconUrl
readwritenonatomiccopy

Recommend product local default icon.

Definition at line 125 of file ThingSmartSceneConditionModel.h.

◆ deleteDevIcon

- (NSString *) deleteDevIcon
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.

◆ devDelMark

- (BOOL) devDelMark
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.

◆ entityId

- (NSString *) entityId
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.

◆ entityName

- (NSString *) entityName
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.

◆ entitySubIds

- (NSString *) entitySubIds
readwritenonatomiccopy

Meteorological condition's subId or device's dpId, timer condition is "timer".

Definition at line 86 of file ThingSmartSceneConditionModel.h.

◆ entityType

- (ThingConditionAutoType) entityType
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.

◆ expr

- (NSArray *) expr
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.

◆ exprDisplay

- (NSString *) exprDisplay
readwritenonatomiccopy

Description of condition, like "Switch : Open","Humidity : Comfort".

Definition at line 80 of file ThingSmartSceneConditionModel.h.

◆ extraInfo

- (NSDictionary *) extraInfo
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.

◆ iconUrl

- (NSString *) iconUrl
readwritenonatomiccopy

The url of condition icon.

Definition at line 68 of file ThingSmartSceneConditionModel.h.

◆ productId

- (NSString *) productId
readwritenonatomiccopy

Recommend product id.

Definition at line 119 of file ThingSmartSceneConditionModel.h.

◆ productPic

- (NSString *) productPic
readwritenonatomiccopy

Recommend product icon.

Definition at line 122 of file ThingSmartSceneConditionModel.h.

◆ scenarioId

- (NSString *) scenarioId
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.

◆ status

- (ThingSceneConditionStatus) status
readwritenonatomicassign

The condition status, see ThingSceneConditionStatus enum.

Definition at line 96 of file ThingSmartSceneConditionModel.h.


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