获取 Zigbee 遥控器群组 localId 列表功能
getZigbeeLocalGroupRelation
引入
@ray-js/ray^1.5.2 以上版本可使用
import { getZigbeeLocalGroupRelation } from '@ray-js/ray'
参数
IGetZigbeeLocalGroupRelation
属性 | 类型 | 必填 | 说明 |
---|---|---|---|
devId | string |
是 | 遥控器设备 Id |
返回
IGetZigbeeLocalGroupRelationResponse
本 API 返回一个对象,包含一个名为 locals
的数组,每个元素包含以下属性:
属性 | 类型 | 说明 |
---|---|---|
code | string |
功能点 code |
order | number |
排序 |
localId | string |
设备端用到的群组 localId |
categoryCode | string |
面板使用的 code,用来做映射,值以 300 为前缀, 例如 3001 |
函数定义示例
/**
* 获取 Zigbee 遥控器