SmartTapToRunAbility.bind(params: BindParams)
版本要求:
@ray-js/panel-sdk≥1.11.0
描述
给一键执行绑定自动化触发条件
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| 是 | 绑定参数 |
返回值
类型:Promise<BindTapToRunResult>
绑定结果
引用对象
type
BindTapToRunResult一键执行绑定结果| 属性 | 类型 | 描述 |
|---|---|---|
associativeEntityId | string | 关联实体 ID,格式为 dpId#dpValue |
associativeEntityValue | string | 关联的规则 ID |
bindId | number | 绑定 ID,一般用来解绑 |
bizDomain | string | 业务域,一键执行固定为 wirelessSwitchBindScene |
id | number | 数据 ID |
ownerId | string | 家庭 ID |
sourceEntityId | string | 设备 ID |
triggerRuleId | string | 触发规则 ID |