Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0f0795944c | |||
| ad24dd7335 | |||
| 1f8e253f69 |
@@ -56,14 +56,14 @@ type DeviceAttributeOption struct {
|
||||
Type uint8 `json:"type"` // 设备类型
|
||||
ConnectType uint8 `json:"connect_type"` // 连接类型
|
||||
Attribute []struct {
|
||||
Type uint8 `json:"type"` // 属性类型
|
||||
Name string `json:"name"` // 属性名称
|
||||
Flag uint8 `json:"flag"` // 属性标识
|
||||
Field string `json:"field"` // 属性字段名
|
||||
Readonly bool `json:"readonly"` // 是否只读
|
||||
AllowItem *[]uint8 `json:"allow_item,omitempty"` // 可用选项列表
|
||||
Min *uint32 `json:"min,omitempty"` // 最小值
|
||||
Max *uint32 `json:"max,omitempty"` // 最大值
|
||||
Type uint8 `json:"type"` // 属性类型
|
||||
Name string `json:"name"` // 属性名称
|
||||
Flag uint8 `json:"flag"` // 属性标识
|
||||
Field string `json:"field"` // 属性字段名
|
||||
Readonly bool `json:"readonly"` // 是否只读
|
||||
AllowItem *map[uint8]string `json:"allow_item,omitempty"` // 可用选项列表
|
||||
Min *uint32 `json:"min,omitempty"` // 最小值
|
||||
Max *uint32 `json:"max,omitempty"` // 最大值
|
||||
} `json:"attribute"` // 设备属性列表
|
||||
}
|
||||
|
||||
@@ -149,6 +149,7 @@ type AutomationTask struct {
|
||||
RepeatType uint8 `json:"repeat_type"` // 重复类型
|
||||
CustomRepeatRange []uint8 `json:"custom_repeat_range"` // 自定义重复范围
|
||||
IsSatisfyAll uint8 `json:"is_satisfy_all"` // 是否要满足所有条件
|
||||
Status uint8 `json:"status"` // 状态
|
||||
EventConditionList []AutomationCondition `json:"event_condition_list"` // 事件条件列表
|
||||
StatusConditionList []AutomationCondition `json:"status_condition_list"` // 事件条件列表
|
||||
ActionList []AutomationAction `json:"action_list"` // 动作列表
|
||||
|
||||
Reference in New Issue
Block a user