getBindRuleList
接口描述
查询设备条件已绑定的场景。
请求参数
参数 | 数据类型 | 说明 | 是否必填 |
---|---|---|---|
bizDomain | String | 业务域 | 是 |
devId | String | 设备 ID | 是 @ray-js/ray^1.4.61 开始支持 |
entityType | Number | 实体类型 | 是 |
gid | String | 家庭 ID | 是 引入HomeKit并使用getCurrentHomeInfo获取homeId传入 |
返回参数
参数 | 数据类型 | 说明 |
---|---|---|
data | Array | 规则列表 |
请求示例
import { getBindRuleList, home } from '@ray-js/ray';
// Need HomeKit
const { homeId } = await home.getCurrentHomeInfo()
getBindRuleList({
devId: 'vdevo161469104176416',
bizDomain: 'wirelessSwitchBindScene',
entityType: 2,
gid: homeId
})
.then((response) => {
console.log(response);
})
.catch();
返回示例
[{
associativeEntityId: '1#single_click'
associativeEntityValueList: [],
bizDomain: 'wirelessSwitchBindScene',
sourceEntityId: 'vdevo1614