![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
ThingSmartSceneDPModel provides more attributes for developers to implement the datapoint of device. More...
#import <ThingSmartSceneDPModel.h>
Properties | |
NSInteger | dpId |
The dp id, it maybe condition id or device id. More... | |
NSString * | entityId |
The product ID.This property represent the product's id this data-points belongs to. Only device's datapoints has this value. More... | |
NSString * | entityName |
The entity name, it maybe condition name or datapoint name of device. More... | |
NSInteger | 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 * | iconUrl |
The icon URL of condition. More... | |
NSArray * | valueRangeJson |
Condition's or device's data point' value range, like "value:{"unit":"","min":10,"max":1000,"scale":0,"step":1,"type":"value"}". More... | |
NSString * | actDetail |
Properties of device, like {"id":1,"desc":"","name":"Switch","property":{"type":"bool"},"attr":3,"code":"switch_on","type":"obj","mode":"rw"}. More... | |
ThingSmartSchemaModel * | dpModel |
Description of data point and selected value. More... | |
NSString * | operators |
The operation description, operators like "["=="]". More... | |
NSDictionary * | property |
The condition name, code, properties. For details check the dpModel property. More... | |
NSString * | entitySubId |
The entity sub id of condition or datapoint of device, condition's subId like "humidity", device data point's subId like "1". More... | |
NSArray * | mcGroups |
Multi control information, value is nil if not belong to any multi control group, format:[{"id":123,"groupName":"more control group 1"}]. More... | |
NSDictionary * | condCalExtraInfo |
Extra information about dp value's calculate type and other extra information, calType's range is ["sum","average","max","min","count","duration"]. More... | |
NSString * | jumpUrl |
The jump url. More... | |
NSDictionary * | structElementJson |
The the value range of the device struct datapoint. More... | |
NSInteger | selectedRow |
The selected row, -1 means haven't selected, set by you. More... | |
NSInteger | selectedOperationRow |
The selected operator, -1 means haven't selected, set by you. More... | |
NSString * | devId |
The device Id,set by you. More... | |
SceneDisplayType | displayType |
The displayType of this datapoint‘s value. More... | |
BOOL | useCustomValue |
NSString * | externalDisplayValue |
NSString * | customUnitKey |
NSArray *expr | __deprecated |
Expression, eg:(("$humidity","==","comfort"), (“$dp1”,“==”,“1”), ...), set by you. More... | |
NSString *cityId | __deprecated |
The city Id, set by you. More... | |
NSString *cityName | __deprecated |
The city name, set by you. More... | |
CLLocationDegrees cityLatitude | __deprecated |
The city's latitude, set by you. More... | |
CLLocationDegrees cityLongitude | __deprecated |
The city's longitude, set by you. More... | |
NSInteger sceneDPId | __deprecated |
The deprecated property. More... | |
ThingSmartSceneDPModel provides more attributes for developers to implement the datapoint of device.
Definition at line 15 of file ThingSmartSceneDPModel.h.
- ((deprecated("Use `isPercentDP` instead.") __attribute__ |
Check if the datapoint display type is percent or percent1. Percent type is from 0 to 100, Percent1 type is from 1 to 100. This method works the same as isPercentDP
.
- ((deprecated("Use `isPercentDP` instead.") __attribute__ |
Check if the datapoint display type is percent or percent1. Percent type is from 0 to 100, Percent1 type is from 1 to 100. This method works the same as isPercentDP
.
- ((deprecated("Use `isPercentDP` instead.") __attribute__ |
Check if the datapoint display type is percent or percent1. Percent type is from 0 to 100, Percent1 type is from 1 to 100. This method works the same as isPercentDP
.
- ((deprecated("Use `isPercentDP` instead.") __attribute__ |
Check if the datapoint display type is percent or percent1. Percent type is from 0 to 100, Percent1 type is from 1 to 100. This method works the same as isPercentDP
.
- (NSDictionary *) customExtraInfo |
- (NSDictionary *) customExtraInfo |
- (NSDictionary *) customExtraInfo |
- (NSDictionary *) customExtraInfo |
- (SceneDisplayType) displayType |
The datapoint display type. Detail see SceneDisplayType
enum definition.
- (SceneDisplayType) displayType |
The datapoint display type. Detail see SceneDisplayType
enum definition.
- (SceneDisplayType) displayType |
The datapoint display type. Detail see SceneDisplayType
enum definition.
- (SceneDisplayType) displayType |
The datapoint display type. Detail see SceneDisplayType
enum definition.
- (BOOL) isCountDownDP |
Check if datapoint display type is countdown. In includes h/m(hous, minute) and h/m/s(hous, minute, seconds) two display types.
- (BOOL) isCountDownDP |
Check if datapoint display type is countdown. In includes h/m(hous, minute) and h/m/s(hous, minute, seconds) two display types.
- (BOOL) isCountDownDP |
Check if datapoint display type is countdown. In includes h/m(hous, minute) and h/m/s(hous, minute, seconds) two display types.
- (BOOL) isCountDownDP |
Check if datapoint display type is countdown. In includes h/m(hous, minute) and h/m/s(hous, minute, seconds) two display types.
- (BOOL) isMatterColorTempDp |
- (BOOL) isMatterColorTempDp |
- (BOOL) isMatterColorTempDp |
- (BOOL) isMatterColorTempDp |
- (BOOL) isPercentDP |
Check if the datapoint display type is percent or percent1. Percent type is from 0 to 100, Percent1 type is from 1 to 100.
- (BOOL) isPercentDP |
Check if the datapoint display type is percent or percent1. Percent type is from 0 to 100, Percent1 type is from 1 to 100.
- (BOOL) isPercentDP |
Check if the datapoint display type is percent or percent1. Percent type is from 0 to 100, Percent1 type is from 1 to 100.
- (BOOL) isPercentDP |
Check if the datapoint display type is percent or percent1. Percent type is from 0 to 100, Percent1 type is from 1 to 100.
- (BOOL) isRawDP |
Check if the datapoint property type is raw.
- (BOOL) isRawDP |
Check if the datapoint property type is raw.
- (BOOL) isRawDP |
Check if the datapoint property type is raw.
- (BOOL) isRawDP |
Check if the datapoint property type is raw.
- (BOOL) isStringDP |
Check if the datapoint property type is string.
- (BOOL) isStringDP |
Check if the datapoint property type is string.
- (BOOL) isStringDP |
Check if the datapoint property type is string.
- (BOOL) isStringDP |
Check if the datapoint property type is string.
- (BOOL) isSunsetriseDP |
Check if datapoint entity subtype is sunset or sunrise type.
- (BOOL) isSunsetriseDP |
Check if datapoint entity subtype is sunset or sunrise type.
- (BOOL) isSunsetriseDP |
Check if datapoint entity subtype is sunset or sunrise type.
- (BOOL) isSunsetriseDP |
Check if datapoint entity subtype is sunset or sunrise type.
- (BOOL) isTempDP |
Check if datapoint property unit is temperature unit, such as ℃ and ℉.
- (BOOL) isTempDP |
Check if datapoint property unit is temperature unit, such as ℃ and ℉.
- (BOOL) isTempDP |
Check if datapoint property unit is temperature unit, such as ℃ and ℉.
- (BOOL) isTempDP |
Check if datapoint property unit is temperature unit, such as ℃ and ℉.
- (BOOL) isTransparentDP |
Check if the datapoint property type is raw or string type.
- (BOOL) isTransparentDP |
Check if the datapoint property type is raw or string type.
- (BOOL) isTransparentDP |
Check if the datapoint property type is raw or string type.
- (BOOL) isTransparentDP |
Check if the datapoint property type is raw or string type.
- (BOOL) isWeatherDP |
Check if datapoint entity type is weather type.
- (BOOL) isWeatherDP |
Check if datapoint entity type is weather type.
- (BOOL) isWeatherDP |
Check if datapoint entity type is weather type.
- (BOOL) isWeatherDP |
Check if datapoint entity type is weather type.
- (NSInteger) kForPercent |
- (NSInteger) kForPercent |
- (NSInteger) kForPercent |
- (NSInteger) kForPercent |
- (ThingSmartSceneDPModel *) modelWithEntityId: | (NSString *) | entityId | |
isCondition: | (BOOL) | isCondition | |
expr: | (NSArray *) | expr | |
actDic: | (NSDictionary *) | actDic | |
This method should be called, because set properties on the object for logical processing.
- (ThingSmartSceneDPModel *) modelWithEntityId: | (NSString *) | entityId | |
isCondition: | (BOOL) | isCondition | |
expr: | (NSArray *) | expr | |
actDic: | (NSDictionary *) | actDic | |
This method should be called, because set properties on the object for logical processing.
- (ThingSmartSceneDPModel *) modelWithEntityId: | (NSString *) | entityId | |
isCondition: | (BOOL) | isCondition | |
expr: | (NSArray *) | expr | |
actDic: | (NSDictionary *) | actDic | |
This method should be called, because set properties on the object for logical processing.
- (ThingSmartSceneDPModel *) modelWithEntityId: | (NSString *) | entityId | |
isCondition: | (BOOL) | isCondition | |
expr: | (NSArray *) | expr | |
actDic: | (NSDictionary *) | actDic | |
This method should be called, because set properties on the object for logical processing.
- (NSDictionary *) percentDp |
This method returns the percentage of data point.
- (NSDictionary *) percentDp |
This method returns the percentage of data point.
- (NSDictionary *) percentDp |
This method returns the percentage of data point.
- (NSDictionary *) percentDp |
This method returns the percentage of data point.
- (NSInteger) percentToValue |
This method converts percentage values to specific values.
- (NSInteger) percentToValue |
This method converts percentage values to specific values.
- (NSInteger) percentToValue |
This method converts percentage values to specific values.
- (NSInteger) percentToValue |
This method converts percentage values to specific values.
- (NSInteger) selectedValue |
This method returns the selected value of data point.
- (NSInteger) selectedValue |
This method returns the selected value of data point.
- (NSInteger) selectedValue |
This method returns the selected value of data point.
- (NSInteger) selectedValue |
This method returns the selected value of data point.
- (NSString *) selectedValueDisplayStr |
This method returns a specific description of the selected data point value.
- (NSString *) selectedValueDisplayStr |
This method returns a specific description of the selected data point value.
- (NSString *) selectedValueDisplayStr |
This method returns a specific description of the selected data point value.
- (NSString *) selectedValueDisplayStr |
This method returns a specific description of the selected data point value.
- (TSceneDPTempType) tempType |
Return temperature type for datapoint property unit. return kSceneDPTempTypeCelsius when datapoint unit is ℃, return kSceneDPTempTypeFahrenheit when datapoint unit is ℉, otherwise return kSceneDPTempTypeNone.
- (TSceneDPTempType) tempType |
Return temperature type for datapoint property unit. return kSceneDPTempTypeCelsius when datapoint unit is ℃, return kSceneDPTempTypeFahrenheit when datapoint unit is ℉, otherwise return kSceneDPTempTypeNone.
- (TSceneDPTempType) tempType |
Return temperature type for datapoint property unit. return kSceneDPTempTypeCelsius when datapoint unit is ℃, return kSceneDPTempTypeFahrenheit when datapoint unit is ℉, otherwise return kSceneDPTempTypeNone.
- (TSceneDPTempType) tempType |
Return temperature type for datapoint property unit. return kSceneDPTempTypeCelsius when datapoint unit is ℃, return kSceneDPTempTypeFahrenheit when datapoint unit is ℉, otherwise return kSceneDPTempTypeNone.
- (NSInteger) valueToPercent |
This method converts specific values to percentage values.
- (NSInteger) valueToPercent |
This method converts specific values to percentage values.
- (NSInteger) valueToPercent |
This method converts specific values to percentage values.
- (NSInteger) valueToPercent |
This method converts specific values to percentage values.
|
readwritenonatomicassign |
Expression, eg:(("$humidity","==","comfort"), (“$dp1”,“==”,“1”), ...), set by you.
The deprecated property.
The city's longitude, set by you.
The city's latitude, set by you.
The city name, set by you.
The city Id, set by you.
Definition at line 87 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicstrong |
The city Id, set by you.
Definition at line 90 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicstrong |
The city name, set by you.
Definition at line 93 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicassign |
The city's latitude, set by you.
Definition at line 96 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicassign |
The city's longitude, set by you.
Definition at line 99 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicassign |
The deprecated property.
Definition at line 102 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicstrong |
Properties of device, like {"id":1,"desc":"","name":"Switch","property":{"type":"bool"},"attr":3,"code":"switch_on","type":"obj","mode":"rw"}.
Definition at line 36 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicstrong |
Extra information about dp value's calculate type and other extra information, calType's range is ["sum","average","max","min","count","duration"].
Definition at line 54 of file ThingSmartSceneDPModel.h.
|
readwritenonatomiccopy |
Definition at line 82 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicstrong |
The device Id,set by you.
Definition at line 72 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicassign |
The displayType of this datapoint‘s value.
Definition at line 75 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicassign |
The dp id, it maybe condition id or device id.
Definition at line 18 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicstrong |
Description of data point and selected value.
Definition at line 39 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicstrong |
The product ID.This property represent the product's id this data-points belongs to. Only device's datapoints has this value.
Definition at line 21 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicstrong |
The entity name, it maybe condition name or datapoint name of device.
Definition at line 24 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicstrong |
The entity sub id of condition or datapoint of device, condition's subId like "humidity", device data point's subId like "1".
Definition at line 48 of file ThingSmartSceneDPModel.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 27 of file ThingSmartSceneDPModel.h.
|
readwritenonatomiccopy |
Definition at line 81 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicstrong |
The icon URL of condition.
Definition at line 30 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicstrong |
The jump url.
Definition at line 57 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicstrong |
Multi control information, value is nil if not belong to any multi control group, format:[{"id":123,"groupName":"more control group 1"}].
Definition at line 51 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicstrong |
The operation description, operators like "["=="]".
Definition at line 42 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicstrong |
The condition name, code, properties. For details check the dpModel property.
Definition at line 45 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicassign |
The selected operator, -1 means haven't selected, set by you.
Definition at line 69 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicassign |
The selected row, -1 means haven't selected, set by you.
Definition at line 66 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicstrong |
The the value range of the device struct datapoint.
Definition at line 60 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicassign |
Definition at line 80 of file ThingSmartSceneDPModel.h.
|
readwritenonatomicstrong |
Condition's or device's data point' value range, like "value:{"unit":"","min":10,"max":1000,"scale":0,"step":1,"type":"value"}".
Definition at line 33 of file ThingSmartSceneDPModel.h.