Tuya iOS Smart Life App SDK 5.15.0
TSmartScenePreconditionParam Class Reference

#import <TSmartScenePreconditionParam.h>

Inheritance diagram for TSmartScenePreconditionParam:

Instance Methods

(NSString *) - stringFromPreconditionType
 Returns a description string based on the preconditionType. It includes allday, daytime, night, custom. More...
 
(NSString *) - stringFromPreconditionType
 Returns a description string based on the preconditionType. It includes allday, daytime, night, custom. More...
 
(NSString *) - stringFromPreconditionType
 Returns a description string based on the preconditionType. It includes allday, daytime, night, custom. More...
 
(NSString *) - stringFromPreconditionType
 Returns a description string based on the preconditionType. It includes allday, daytime, night, custom. More...
 

Properties

NSString * sceneID
 The scene id. You can pass nil when create an automation scene. More...
 
NSString * conditionID
 The current condition id. You need to pass the original condition id when editing scene for automation scene. More...
 
TSmartScenePreconditionType preconditionType
 The precondition type, detail see TSmartScenePreconditionType. More...
 
NSString * beginDate
 The begin date. eg:"00:59". When the preconditionType is TSmartScenePreconditionTypeCustom, the beginDate must be passed. More...
 
NSString * endDate
 The end date. eg:"18:30". When the preconditionType is TSmartScenePreconditionTypeCustom, the endDate must be passed. More...
 
NSString * loops
 The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid. More...
 
NSString * cityId
 The current city id. When the preconditionType is TSmartScenePreconditionTypeAllDay, you don't have to pass cityId. More...
 
NSString * cityName
 The current city name. When the preconditionType is TSmartScenePreconditionTypeAllDay, you don't have to pass cityName. More...
 
NSString * timeZoneId
 The timezone id, default is "Asia/Shanghai". More...
 

Detailed Description

Definition at line 26 of file TSmartScenePreconditionParam.h.

Method Documentation

◆ stringFromPreconditionType [1/4]

- (NSString *) stringFromPreconditionType

Returns a description string based on the preconditionType. It includes allday, daytime, night, custom.

◆ stringFromPreconditionType [2/4]

- (NSString *) stringFromPreconditionType

Returns a description string based on the preconditionType. It includes allday, daytime, night, custom.

◆ stringFromPreconditionType [3/4]

- (NSString *) stringFromPreconditionType

Returns a description string based on the preconditionType. It includes allday, daytime, night, custom.

◆ stringFromPreconditionType [4/4]

- (NSString *) stringFromPreconditionType

Returns a description string based on the preconditionType. It includes allday, daytime, night, custom.

Property Documentation

◆ beginDate

- (NSString *) beginDate
readwritenonatomicstrong

The begin date. eg:"00:59". When the preconditionType is TSmartScenePreconditionTypeCustom, the beginDate must be passed.

Definition at line 38 of file TSmartScenePreconditionParam.h.

◆ cityId

- (NSString *) cityId
readwritenonatomicstrong

The current city id. When the preconditionType is TSmartScenePreconditionTypeAllDay, you don't have to pass cityId.

Definition at line 47 of file TSmartScenePreconditionParam.h.

◆ cityName

- (NSString *) cityName
readwritenonatomicstrong

The current city name. When the preconditionType is TSmartScenePreconditionTypeAllDay, you don't have to pass cityName.

Definition at line 50 of file TSmartScenePreconditionParam.h.

◆ conditionID

- (NSString *) conditionID
readwritenonatomicstrong

The current condition id. You need to pass the original condition id when editing scene for automation scene.

Definition at line 32 of file TSmartScenePreconditionParam.h.

◆ endDate

- (NSString *) endDate
readwritenonatomicstrong

The end date. eg:"18:30". When the preconditionType is TSmartScenePreconditionTypeCustom, the endDate must be passed.

Definition at line 41 of file TSmartScenePreconditionParam.h.

◆ loops

- (NSString *) loops
readwritenonatomicstrong

The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid.

Definition at line 44 of file TSmartScenePreconditionParam.h.

◆ preconditionType

- (TSmartScenePreconditionType) preconditionType
readwritenonatomicassign

The precondition type, detail see TSmartScenePreconditionType.

Definition at line 35 of file TSmartScenePreconditionParam.h.

◆ sceneID

- (NSString *) sceneID
readwritenonatomicstrong

The scene id. You can pass nil when create an automation scene.

Definition at line 29 of file TSmartScenePreconditionParam.h.

◆ timeZoneId

- (NSString *) timeZoneId
readwritenonatomicstrong

The timezone id, default is "Asia/Shanghai".

Definition at line 53 of file TSmartScenePreconditionParam.h.


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