[TC-SC-5.2] step 15 use OnOff cluster to test group command, if a DUT did not support OnOff cluster, then it would fail to PASS step 16
# Step 15: Send group command via GroupID 0x0103
self.step("15")
dev_ctrl.SendGroupCommand(0x0103, Clusters.OnOff.Commands.On())
await asyncio.sleep(3)
# Step 16: Validate group command received
self.step("16")
on_off = await self.read_single_attribute_check_success(endpoint=groups_endpoint,
cluster=Clusters.OnOff, attribute=Clusters.OnOff.Attributes.OnOff)
asserts.assert_true(on_off, "OnOff should be TRUE after group On command")
await dev_ctrl.SendCommand(node_id, groups_endpoint, Clusters.OnOff.Commands.Off())
# restore the GroupInfo for groupID 0x0103 to use Per-Group address policy
dev_ctrl.SetGroupInfo(0x0103, "Group #3")
[TC-SC-5.2] step 15 use OnOff cluster to test group command, if a DUT did not support OnOff cluster, then it would fail to PASS step 16
# Step 15: Send group command via GroupID 0x0103
self.step("15")
dev_ctrl.SendGroupCommand(0x0103, Clusters.OnOff.Commands.On())
await asyncio.sleep(3)
# Step 16: Validate group command received
self.step("16")
on_off = await self.read_single_attribute_check_success(endpoint=groups_endpoint,
cluster=Clusters.OnOff, attribute=Clusters.OnOff.Attributes.OnOff)
asserts.assert_true(on_off, "OnOff should be TRUE after group On command")
await dev_ctrl.SendCommand(node_id, groups_endpoint, Clusters.OnOff.Commands.Off())
# restore the GroupInfo for groupID 0x0103 to use Per-Group address policy
dev_ctrl.SetGroupInfo(0x0103, "Group #3")