SmartTapToRunAbility.bind(params: BindParams)

版本要求:
@ray-js/panel-sdk≥1.11.0

描述

给一键执行绑定自动化触发条件

参数

参数类型必填说明
是绑定参数

返回值

类型:Promise<BindTapToRunResult>
绑定结果

引用对象

typeBindTapToRunResult一键执行绑定结果
属性类型描述
associativeEntityIdstring关联实体 ID,格式为 dpId#dpValue
associativeEntityValuestring关联的规则 ID
bindIdnumber绑定 ID,一般用来解绑
bizDomainstring业务域,一键执行固定为 wirelessSwitchBindScene
idnumber数据 ID
ownerIdstring家庭 ID
sourceEntityIdstring设备 ID
triggerRuleIdstring触发规则 ID

示例代码

示例

const result = await sdm.tapToRun.bind({
  dpId: '1',
  dpValue: 'single_click',
  ruleId: 'scene_abc123',
});
console.log('绑定结果:', result);