getZigbeeLocalGroupDeviceList(params: IGetZigbeeLocalGroupDeviceList)

版本要求:
@ray-js/ray≥1.5.2

描述

获取可以加入 Zigbee 遥控器群组的设备列表

参数

参数类型必填说明
是请求参数

返回值

类型:Promise<IGetZigbeeLocalGroupDeviceListResponse>
设备列表数组,每个元素包含 productId、devId、devOnline、devName 等设备信息

引用对象

typeIGetZigbeeLocalGroupDeviceListResponse
IZigbeeLocalGroupDevice[]

示例代码

基础用法

import { getZigbeeLocalGroupDeviceList } from '@ray-js/ray';

getZigbeeLocalGroupDeviceList({
  devId: 'your_device_id',
  meshId: 'gateway_mesh_id',
  categoryCode: '7001',
  homeId: 'your_home_id',
}).then((response) => {
  console.log('设备列表:', response);
}).catch((err) => {
  console.error(err);
});