getSceneList
版本要求:
@ray-js/ray≥1.4.61
方法签名
getSceneList(params: )描述
查询设备支持的一键执行场景,包含失效及自动化规则
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| 是 | 查询参数 |
返回值
类型:Promise<ISceneListItem[]>
联动规则列表
引用对象
interface
ISceneListItem| 属性 | 类型 | 描述 |
|---|---|---|
actions | any[] | 执行动作 |
attribute | number | 属性 |
auditStatus | number | 审核状态 |
background | string | 背景图地址 |
boundForPanel | boolean | 面板绑定 |
boundForWiFiPanel | boolean | WiFi 面板绑定 |
code | string | 规则 code |
commonField | string | 通用字段 |
coverIcon | string | 图标 |
disableTime | number | 禁用时间 |
displayColor | string | 背景颜色 |
enabled | true | 规则是否启用 |
devId | string | 设备 ID |
name | string | 联动名称 |
id | string | 执行规则 ID |