// // YXHomeSceneConditionModel.h // Temperature // // Created by TC on 2025/3/8. // #import @class YXExprModel; NS_ASSUME_NONNULL_BEGIN @interface YXHomeSceneConditionModel : NSObject /// 条件编号 @property (nonatomic, nullable, copy) NSString *code; /// 设备id @property (nonatomic, nullable, copy) NSString *entity_id; /// 条件对象类型 timer 定时 weather 天气 device_report 设备上报 @property (nonatomic, nullable, copy) NSString *entity_type; /// 计算表达式 @property (nonatomic, nullable, strong) YXExprModel *expr; /// 记录id @property (nonatomic, nullable, copy) NSString *record_id; /// 场景id @property (nonatomic, nullable, copy) NSString *scene_id; @end /// 计算表达式 @interface YXExprModel : NSObject /// 比较表达式 @property (nonatomic, nullable, copy) NSString *comparator; /// 日期表达式 @property (nonatomic, nullable, copy) NSString *date; /// /* 触发周期,由 0 和 1 组成的 7 位数字。0 表示不执行,1 表示执行。第 1 位为周日,依次表示周一至周六。例如,0011000 /// 表示每周二,周三执行。 */ @property (nonatomic, nullable, copy) NSString *loops; /// 状态集 code @property (nonatomic, nullable, copy) NSString *status_code; /// 状态集 value @property (nonatomic, nullable, copy) NSString *status_value; /// 时间表达式 @property (nonatomic, nullable, copy) NSString *time; /// 时区id @property (nonatomic, nullable, copy) NSString *time_zone_id; /// 状态集 code @property (nonatomic, nullable, copy) NSString *weather_code; /// 状态集 value @property (nonatomic, nullable, copy) NSString *weather_value; @end NS_ASSUME_NONNULL_END