bindRule
版本要求:
@ray-js/ray≥1.7.60
方法签名
bindRule(params: )描述
将按键条件与场景规则关联,建立设备按键与联动规则的绑定关系
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| 是 | 绑定规则参数 |
返回值
类型:Promise<IBindRuleResponse>
绑定结果信息
引用对象
interface
IBindRuleResponse| 属性 | 类型 | 描述 |
|---|---|---|
associativeEntityId | AssociativeEntityId | 与面板/设备建立绑定关系,通常为设备ID、DP点、群组、规则,dpId#value等 |
associativeEntityValue | AssociativeEntityValue | 当associativeEntityId不足以区分情况下使用,通常可关联设备、DP值、群组、规则等 |
bizDomain | string | 业务域 |
id | number | 数据 ID |
ownerId | string | 家庭 ID |
sourceEntityId | string | 设备 ID |
triggerRuleId | string | 规则 ID |
triggerRuleVO | any | 执行动作设备信息 |
type
AssociativeEntityIdtype
AssociativeEntityValue