TuyaSmartSceneModel Class Reference

Inherits from NSObject
Conforms to NSCoding
Declared in TuyaSmartSceneModel.h

Overview

场景Model, 有conditons的场景称为自动化。 scene model, we call a scene with conditions “automation”.

  sceneId

场景id (只有自定义场景有该字段) scene’s Id, only custom scene has this property.

@property (nonatomic, strong) NSString *sceneId

Discussion

场景id (只有自定义场景有该字段) scene’s Id, only custom scene has this property.

Declared In

TuyaSmartSceneModel.h

  code

场景code (只有默认场景有该字段) scene’s code, only default scene has this property.

@property (nonatomic, strong) NSString *code

Discussion

场景code (只有默认场景有该字段) scene’s code, only default scene has this property.

Declared In

TuyaSmartSceneModel.h

  name

场景名称 scene name

@property (nonatomic, strong) NSString *name

Discussion

场景名称 scene name

Declared In

TuyaSmartSceneModel.h

  enabled

自动化场景是否开启 automation enable status

@property (nonatomic, assign) BOOL enabled

Discussion

自动化场景是否开启 automation enable status

Declared In

TuyaSmartSceneModel.h

  stickyOnTop

是否显示在首页 show or not to show in first page.

@property (nonatomic, assign) BOOL stickyOnTop

Discussion

是否显示在首页 show or not to show in first page.

Declared In

TuyaSmartSceneModel.h

  preConditions

场景前置条件,如自动化生效时间 preconditions, eg: valid time period of automation.

@property (nonatomic, strong) NSArray<TuyaSmartScenePreConditionModel*> *preConditions

Discussion

场景前置条件,如自动化生效时间 preconditions, eg: valid time period of automation.

Declared In

TuyaSmartSceneModel.h

  conditions

场景条件 conditions of automation.

@property (nonatomic, strong) NSArray<TuyaSmartSceneConditionModel*> *conditions

Discussion

场景条件 conditions of automation.

Declared In

TuyaSmartSceneModel.h

  actions

场景动作 scene actions.

@property (nonatomic, strong) NSArray<TuyaSmartSceneActionModel*> *actions

Discussion

场景动作 scene actions.

Declared In

TuyaSmartSceneModel.h

  devList

设备列表 device list

@property (nonatomic, strong) NSArray *devList

Discussion

设备列表 device list

Declared In

TuyaSmartSceneModel.h

  coverIcon

场景icon的url。 Scene’s icon url.

@property (nonatomic, copy) NSString *coverIcon

Discussion

场景icon的url。 Scene’s icon url.

Declared In

TuyaSmartSceneModel.h

  displayColor

场景的背景色。FFFFFF Scene’s background color. FFFFFF

@property (nonatomic, copy) NSString *displayColor

Discussion

场景的背景色。FFFFFF Scene’s background color. FFFFFF

Declared In

TuyaSmartSceneModel.h

  __deprecated

场景子标题 scene subTitle

@property (nonatomic, strong) NSString *__deprecated

Discussion

场景子标题 scene subTitle

Declared In

TuyaSmartSceneModel.h

  background

背景图片url, 目前仅可使用涂鸦提供的图片url。查看TuyaSmartSceneManager中的API。 scene background url, when created a new scene, use the url provided by tuya. API in TuyaSmartSceneManager.

@property (nonatomic, strong) NSString *background

Discussion

背景图片url, 目前仅可使用涂鸦提供的图片url。查看TuyaSmartSceneManager中的API。 scene background url, when created a new scene, use the url provided by tuya. API in TuyaSmartSceneManager.

Declared In

TuyaSmartSceneModel.h

  matchType

matchType == 1 满足任一条件时,执行 matchType == 2 满足所有条件时,执行

@property (nonatomic, assign) TuyaSmartConditionMatchType matchType

Discussion

matchType == 1 满足任一条件时,执行 matchType == 2 满足所有条件时,执行

matchType == 1 automation will execute when any conditon is matched. matchType == 2 automation will execute when all conditons are matched.

Declared In

TuyaSmartSceneModel.h

  boundForPanel

是否有场景面板绑定 scene is or isn’t bound by a panel.

@property (nonatomic, assign) BOOL boundForPanel

Discussion

是否有场景面板绑定 scene is or isn’t bound by a panel.

Declared In

TuyaSmartSceneModel.h

  boundForWiFiPanel

是否有新固件场景面板绑定,此类支持zigbee设备和wifi设备 scene is or isn’t bound by a panel with new firware, this type of smart support zigbee and wifi devices.

@property (nonatomic, assign) BOOL boundForWiFiPanel

Discussion

是否有新固件场景面板绑定,此类支持zigbee设备和wifi设备 scene is or isn’t bound by a panel with new firware, this type of smart support zigbee and wifi devices.

Declared In

TuyaSmartSceneModel.h

  localLinkage

是否支持本地联动,即自动化场景是否可以在zigbee网关不联网的情况下执行。 Support to execute in local network, YES meas this automation can be executed when zigbee gateway is offline.

@property (nonatomic, assign) BOOL localLinkage

Discussion

是否支持本地联动,即自动化场景是否可以在zigbee网关不联网的情况下执行。 Support to execute in local network, YES meas this automation can be executed when zigbee gateway is offline.

Declared In

TuyaSmartSceneModel.h

  newLocalScene

新版本地场景,可以通过tcp或者mqtt协议通知zigbee网关直接执行的场景,由云端打标。 New version of local scene, can be triggered via tcp or mqtt protocol to make zigbee gateway execute this scene.This property is assigned by Tuya cloud server.

@property (nonatomic, assign) BOOL newLocalScene

Discussion

新版本地场景,可以通过tcp或者mqtt协议通知zigbee网关直接执行的场景,由云端打标。 New version of local scene, can be triggered via tcp or mqtt protocol to make zigbee gateway execute this scene.This property is assigned by Tuya cloud server.

Declared In

TuyaSmartSceneModel.h

  recommendType

推荐场景类型 Recommend type.

@property (nonatomic, assign) TuyaSmartSceneRecommendType recommendType

Discussion

推荐场景类型 Recommend type.

Declared In

TuyaSmartSceneModel.h

  collectionType

收藏场景类型 Collection scene type.

@property (nonatomic, assign) TuyaSmartSceneCollectionType collectionType

Discussion

收藏场景类型 Collection scene type.

Declared In

TuyaSmartSceneModel.h

  recomDescription

推荐场景描述 Recommend description.

@property (nonatomic, copy) NSString *recomDescription

Discussion

推荐场景描述 Recommend description.

Declared In

TuyaSmartSceneModel.h

  recomCoefficient

推荐场景的推荐系数0-100 Recommend coefficient,0-100.

@property (nonatomic, assign) CGFloat recomCoefficient

Discussion

推荐场景的推荐系数0-100 Recommend coefficient,0-100.

Declared In

TuyaSmartSceneModel.h

  disableTime

自动化场景将会被自动关闭的时间点的时间戳。0表示未被设置过。 The timeStamp when automation will be disabled automatically.0 means net setted.

@property (nonatomic, assign) long long disableTime

Discussion

自动化场景将会被自动关闭的时间点的时间戳。0表示未被设置过。 The timeStamp when automation will be disabled automatically.0 means net setted.

Declared In

TuyaSmartSceneModel.h