SmartGroupModel.getGroupInfo()

Requires:
@ray-js/panel-sdk≥1.5.0

Description

Get smart group information

Parameters

None

Return Value

Type: GroupInfo
Group information object containing groupId, name, deviceList, schema, dps, etc.

Referenced Types

typeGroupInfoGroup information
PropertyTypeDescription
Mapping from dp id to dp code
Mapping from dp code to dp id

Examples

Example

const groupInfo = group.getGroupInfo();
console.log(groupInfo.name);        // Group name
console.log(groupInfo.deviceList);  // Sub-device list in the group