SmartTapToRunAbility.getTapToRunRules(params?: TapToRunQueryParams)
版本要求:
@ray-js/panel-sdk≥1.11.0
描述
查询当前家庭下可绑定的一键执行列表,会去掉失效或自动化规则。
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| 否 | 查询参数 |
返回值
类型:Promise<TapToRunRules>
可绑定的一键执行规则列表
引用对象
type
TapToRunRules可绑定的一键执行规则列表type
TapToRunRule可绑定的一键执行规则| 属性 | 类型 | 描述 |
|---|---|---|
| 执行动作列表 | ||
background | string | 背景图地址 |
boundForPanel | boolean | 面板绑定 |
boundForWiFiPanel | boolean | WiFi 面板绑定 |
coverIcon | string | 图标 |
displayColor | string | 背景颜色 |
enabled | boolean | 规则是否启用 |
id | string | 执行规则 ID |
name | string | 联动名称或备注 |
type
TapToRunAction一键执行动作项| 属性 | 类型 | 描述 |
|---|---|---|
actionDisplay | string | 执行动作的显示名称 |
actionExecutor | string | 执行动作的执行者 |
actionStrategy | string | 执行动作的执行策略 |
entityId | string | 动作所属实体 ID |
gmtModified | number | 修改时间戳 |
id | string | 动作唯一 ID |
orderNum | number | 动作顺序号 |
ruleId | string | 规则 ID |
status | boolean | 动作状态 |