/* * * Copyright (c) 2022 Project CHIP Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // THIS FILE IS GENERATED BY ZAP #pragma once #include #include #include #include #include #include #include #include #include #include #include /*----------------------------------------------------------------------------*\ | Cluster Name | ID | |---------------------------------------------------------------------+--------| | Identify | 0x0003 | | Groups | 0x0004 | | OnOff | 0x0006 | | LevelControl | 0x0008 | | PulseWidthModulation | 0x001C | | Descriptor | 0x001D | | Binding | 0x001E | | AccessControl | 0x001F | | Actions | 0x0025 | | BasicInformation | 0x0028 | | OtaSoftwareUpdateProvider | 0x0029 | | OtaSoftwareUpdateRequestor | 0x002A | | LocalizationConfiguration | 0x002B | | TimeFormatLocalization | 0x002C | | UnitLocalization | 0x002D | | PowerSourceConfiguration | 0x002E | | PowerSource | 0x002F | | GeneralCommissioning | 0x0030 | | NetworkCommissioning | 0x0031 | | DiagnosticLogs | 0x0032 | | GeneralDiagnostics | 0x0033 | | SoftwareDiagnostics | 0x0034 | | ThreadNetworkDiagnostics | 0x0035 | | WiFiNetworkDiagnostics | 0x0036 | | EthernetNetworkDiagnostics | 0x0037 | | TimeSynchronization | 0x0038 | | BridgedDeviceBasicInformation | 0x0039 | | Switch | 0x003B | | AdministratorCommissioning | 0x003C | | OperationalCredentials | 0x003E | | GroupKeyManagement | 0x003F | | FixedLabel | 0x0040 | | UserLabel | 0x0041 | | ProxyConfiguration | 0x0042 | | ProxyDiscovery | 0x0043 | | ProxyValid | 0x0044 | | BooleanState | 0x0045 | | IcdManagement | 0x0046 | | Timer | 0x0047 | | OvenCavityOperationalState | 0x0048 | | OvenMode | 0x0049 | | LaundryDryerControls | 0x004A | | ModeSelect | 0x0050 | | LaundryWasherMode | 0x0051 | | RefrigeratorAndTemperatureControlledCabinetMode | 0x0052 | | LaundryWasherControls | 0x0053 | | RvcRunMode | 0x0054 | | RvcCleanMode | 0x0055 | | TemperatureControl | 0x0056 | | RefrigeratorAlarm | 0x0057 | | DishwasherMode | 0x0059 | | AirQuality | 0x005B | | SmokeCoAlarm | 0x005C | | DishwasherAlarm | 0x005D | | MicrowaveOvenMode | 0x005E | | MicrowaveOvenControl | 0x005F | | OperationalState | 0x0060 | | RvcOperationalState | 0x0061 | | ScenesManagement | 0x0062 | | HepaFilterMonitoring | 0x0071 | | ActivatedCarbonFilterMonitoring | 0x0072 | | BooleanStateConfiguration | 0x0080 | | ValveConfigurationAndControl | 0x0081 | | ElectricalPowerMeasurement | 0x0090 | | ElectricalEnergyMeasurement | 0x0091 | | WaterHeaterManagement | 0x0094 | | DemandResponseLoadControl | 0x0096 | | Messages | 0x0097 | | DeviceEnergyManagement | 0x0098 | | EnergyEvse | 0x0099 | | EnergyPreference | 0x009B | | PowerTopology | 0x009C | | EnergyEvseMode | 0x009D | | WaterHeaterMode | 0x009E | | DeviceEnergyManagementMode | 0x009F | | DoorLock | 0x0101 | | WindowCovering | 0x0102 | | ServiceArea | 0x0150 | | PumpConfigurationAndControl | 0x0200 | | Thermostat | 0x0201 | | FanControl | 0x0202 | | ThermostatUserInterfaceConfiguration | 0x0204 | | ColorControl | 0x0300 | | BallastConfiguration | 0x0301 | | IlluminanceMeasurement | 0x0400 | | TemperatureMeasurement | 0x0402 | | PressureMeasurement | 0x0403 | | FlowMeasurement | 0x0404 | | RelativeHumidityMeasurement | 0x0405 | | OccupancySensing | 0x0406 | | CarbonMonoxideConcentrationMeasurement | 0x040C | | CarbonDioxideConcentrationMeasurement | 0x040D | | NitrogenDioxideConcentrationMeasurement | 0x0413 | | OzoneConcentrationMeasurement | 0x0415 | | Pm25ConcentrationMeasurement | 0x042A | | FormaldehydeConcentrationMeasurement | 0x042B | | Pm1ConcentrationMeasurement | 0x042C | | Pm10ConcentrationMeasurement | 0x042D | | TotalVolatileOrganicCompoundsConcentrationMeasurement | 0x042E | | RadonConcentrationMeasurement | 0x042F | | WiFiNetworkManagement | 0x0451 | | ThreadBorderRouterManagement | 0x0452 | | ThreadNetworkDirectory | 0x0453 | | WakeOnLan | 0x0503 | | Channel | 0x0504 | | TargetNavigator | 0x0505 | | MediaPlayback | 0x0506 | | MediaInput | 0x0507 | | LowPower | 0x0508 | | KeypadInput | 0x0509 | | ContentLauncher | 0x050A | | AudioOutput | 0x050B | | ApplicationLauncher | 0x050C | | ApplicationBasic | 0x050D | | AccountLogin | 0x050E | | ContentControl | 0x050F | | ContentAppObserver | 0x0510 | | ZoneManagement | 0x0550 | | CameraAvStreamManagement | 0x0551 | | WebRTCTransportProvider | 0x0553 | | WebRTCTransportRequestor | 0x0554 | | Chime | 0x0556 | | EcosystemInformation | 0x0750 | | CommissionerControl | 0x0751 | | UnitTesting | 0xFFF1FC05| | FaultInjection | 0xFFF1FC06| | SampleMei | 0xFFF1FC20| \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster Identify | 0x0003 | |------------------------------------------------------------------------------| | Commands: | | | * Identify | 0x00 | | * TriggerEffect | 0x40 | |------------------------------------------------------------------------------| | Attributes: | | | * IdentifyTime | 0x0000 | | * IdentifyType | 0x0001 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command Identify */ class IdentifyIdentify : public ClusterCommand { public: IdentifyIdentify(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("identify", credsIssuerConfig) { AddArgument("IdentifyTime", 0, UINT16_MAX, &mRequest.identifyTime); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Identify::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Identify::Commands::Identify::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Identify::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Identify::Commands::Identify::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Identify::Commands::Identify::Type mRequest; }; /* * Command TriggerEffect */ class IdentifyTriggerEffect : public ClusterCommand { public: IdentifyTriggerEffect(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("trigger-effect", credsIssuerConfig) { AddArgument("EffectIdentifier", 0, UINT8_MAX, &mRequest.effectIdentifier); AddArgument("EffectVariant", 0, UINT8_MAX, &mRequest.effectVariant); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Identify::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Identify::Commands::TriggerEffect::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Identify::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Identify::Commands::TriggerEffect::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Identify::Commands::TriggerEffect::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster Groups | 0x0004 | |------------------------------------------------------------------------------| | Commands: | | | * AddGroup | 0x00 | | * ViewGroup | 0x01 | | * GetGroupMembership | 0x02 | | * RemoveGroup | 0x03 | | * RemoveAllGroups | 0x04 | | * AddGroupIfIdentifying | 0x05 | |------------------------------------------------------------------------------| | Attributes: | | | * NameSupport | 0x0000 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command AddGroup */ class GroupsAddGroup : public ClusterCommand { public: GroupsAddGroup(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("add-group", credsIssuerConfig) { AddArgument("GroupID", 0, UINT16_MAX, &mRequest.groupID); AddArgument("GroupName", &mRequest.groupName); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Groups::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Groups::Commands::AddGroup::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Groups::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Groups::Commands::AddGroup::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Groups::Commands::AddGroup::Type mRequest; }; /* * Command ViewGroup */ class GroupsViewGroup : public ClusterCommand { public: GroupsViewGroup(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("view-group", credsIssuerConfig) { AddArgument("GroupID", 0, UINT16_MAX, &mRequest.groupID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Groups::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Groups::Commands::ViewGroup::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Groups::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Groups::Commands::ViewGroup::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Groups::Commands::ViewGroup::Type mRequest; }; /* * Command GetGroupMembership */ class GroupsGetGroupMembership : public ClusterCommand { public: GroupsGetGroupMembership(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-group-membership", credsIssuerConfig), mComplex_GroupList(&mRequest.groupList) { AddArgument("GroupList", &mComplex_GroupList); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Groups::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Groups::Commands::GetGroupMembership::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Groups::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Groups::Commands::GetGroupMembership::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Groups::Commands::GetGroupMembership::Type mRequest; TypedComplexArgument> mComplex_GroupList; }; /* * Command RemoveGroup */ class GroupsRemoveGroup : public ClusterCommand { public: GroupsRemoveGroup(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("remove-group", credsIssuerConfig) { AddArgument("GroupID", 0, UINT16_MAX, &mRequest.groupID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Groups::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Groups::Commands::RemoveGroup::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Groups::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Groups::Commands::RemoveGroup::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Groups::Commands::RemoveGroup::Type mRequest; }; /* * Command RemoveAllGroups */ class GroupsRemoveAllGroups : public ClusterCommand { public: GroupsRemoveAllGroups(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("remove-all-groups", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Groups::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Groups::Commands::RemoveAllGroups::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Groups::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Groups::Commands::RemoveAllGroups::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Groups::Commands::RemoveAllGroups::Type mRequest; }; /* * Command AddGroupIfIdentifying */ class GroupsAddGroupIfIdentifying : public ClusterCommand { public: GroupsAddGroupIfIdentifying(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("add-group-if-identifying", credsIssuerConfig) { AddArgument("GroupID", 0, UINT16_MAX, &mRequest.groupID); AddArgument("GroupName", &mRequest.groupName); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Groups::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Groups::Commands::AddGroupIfIdentifying::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Groups::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Groups::Commands::AddGroupIfIdentifying::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Groups::Commands::AddGroupIfIdentifying::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster OnOff | 0x0006 | |------------------------------------------------------------------------------| | Commands: | | | * Off | 0x00 | | * On | 0x01 | | * Toggle | 0x02 | | * OffWithEffect | 0x40 | | * OnWithRecallGlobalScene | 0x41 | | * OnWithTimedOff | 0x42 | |------------------------------------------------------------------------------| | Attributes: | | | * OnOff | 0x0000 | | * GlobalSceneControl | 0x4000 | | * OnTime | 0x4001 | | * OffWaitTime | 0x4002 | | * StartUpOnOff | 0x4003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command Off */ class OnOffOff : public ClusterCommand { public: OnOffOff(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("off", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OnOff::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OnOff::Commands::Off::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OnOff::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OnOff::Commands::Off::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OnOff::Commands::Off::Type mRequest; }; /* * Command On */ class OnOffOn : public ClusterCommand { public: OnOffOn(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("on", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OnOff::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OnOff::Commands::On::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OnOff::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OnOff::Commands::On::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OnOff::Commands::On::Type mRequest; }; /* * Command Toggle */ class OnOffToggle : public ClusterCommand { public: OnOffToggle(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("toggle", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OnOff::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OnOff::Commands::Toggle::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OnOff::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OnOff::Commands::Toggle::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OnOff::Commands::Toggle::Type mRequest; }; /* * Command OffWithEffect */ class OnOffOffWithEffect : public ClusterCommand { public: OnOffOffWithEffect(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("off-with-effect", credsIssuerConfig) { AddArgument("EffectIdentifier", 0, UINT8_MAX, &mRequest.effectIdentifier); AddArgument("EffectVariant", 0, UINT8_MAX, &mRequest.effectVariant); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OnOff::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OnOff::Commands::OffWithEffect::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OnOff::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OnOff::Commands::OffWithEffect::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OnOff::Commands::OffWithEffect::Type mRequest; }; /* * Command OnWithRecallGlobalScene */ class OnOffOnWithRecallGlobalScene : public ClusterCommand { public: OnOffOnWithRecallGlobalScene(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("on-with-recall-global-scene", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OnOff::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OnOff::Commands::OnWithRecallGlobalScene::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OnOff::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OnOff::Commands::OnWithRecallGlobalScene::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OnOff::Commands::OnWithRecallGlobalScene::Type mRequest; }; /* * Command OnWithTimedOff */ class OnOffOnWithTimedOff : public ClusterCommand { public: OnOffOnWithTimedOff(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("on-with-timed-off", credsIssuerConfig) { AddArgument("OnOffControl", 0, UINT8_MAX, &mRequest.onOffControl); AddArgument("OnTime", 0, UINT16_MAX, &mRequest.onTime); AddArgument("OffWaitTime", 0, UINT16_MAX, &mRequest.offWaitTime); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OnOff::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OnOff::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster LevelControl | 0x0008 | |------------------------------------------------------------------------------| | Commands: | | | * MoveToLevel | 0x00 | | * Move | 0x01 | | * Step | 0x02 | | * Stop | 0x03 | | * MoveToLevelWithOnOff | 0x04 | | * MoveWithOnOff | 0x05 | | * StepWithOnOff | 0x06 | | * StopWithOnOff | 0x07 | | * MoveToClosestFrequency | 0x08 | |------------------------------------------------------------------------------| | Attributes: | | | * CurrentLevel | 0x0000 | | * RemainingTime | 0x0001 | | * MinLevel | 0x0002 | | * MaxLevel | 0x0003 | | * CurrentFrequency | 0x0004 | | * MinFrequency | 0x0005 | | * MaxFrequency | 0x0006 | | * Options | 0x000F | | * OnOffTransitionTime | 0x0010 | | * OnLevel | 0x0011 | | * OnTransitionTime | 0x0012 | | * OffTransitionTime | 0x0013 | | * DefaultMoveRate | 0x0014 | | * StartUpCurrentLevel | 0x4000 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command MoveToLevel */ class LevelControlMoveToLevel : public ClusterCommand { public: LevelControlMoveToLevel(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-to-level", credsIssuerConfig) { AddArgument("Level", 0, UINT8_MAX, &mRequest.level); AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type mRequest; }; /* * Command Move */ class LevelControlMove : public ClusterCommand { public: LevelControlMove(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move", credsIssuerConfig) { AddArgument("MoveMode", 0, UINT8_MAX, &mRequest.moveMode); AddArgument("Rate", 0, UINT8_MAX, &mRequest.rate); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::Move::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::Move::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::LevelControl::Commands::Move::Type mRequest; }; /* * Command Step */ class LevelControlStep : public ClusterCommand { public: LevelControlStep(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("step", credsIssuerConfig) { AddArgument("StepMode", 0, UINT8_MAX, &mRequest.stepMode); AddArgument("StepSize", 0, UINT8_MAX, &mRequest.stepSize); AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::Step::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::Step::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::LevelControl::Commands::Step::Type mRequest; }; /* * Command Stop */ class LevelControlStop : public ClusterCommand { public: LevelControlStop(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop", credsIssuerConfig) { AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::Stop::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::Stop::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::LevelControl::Commands::Stop::Type mRequest; }; /* * Command MoveToLevelWithOnOff */ class LevelControlMoveToLevelWithOnOff : public ClusterCommand { public: LevelControlMoveToLevelWithOnOff(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-to-level-with-on-off", credsIssuerConfig) { AddArgument("Level", 0, UINT8_MAX, &mRequest.level); AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::MoveToLevelWithOnOff::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::MoveToLevelWithOnOff::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::LevelControl::Commands::MoveToLevelWithOnOff::Type mRequest; }; /* * Command MoveWithOnOff */ class LevelControlMoveWithOnOff : public ClusterCommand { public: LevelControlMoveWithOnOff(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-with-on-off", credsIssuerConfig) { AddArgument("MoveMode", 0, UINT8_MAX, &mRequest.moveMode); AddArgument("Rate", 0, UINT8_MAX, &mRequest.rate); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::MoveWithOnOff::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::MoveWithOnOff::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::LevelControl::Commands::MoveWithOnOff::Type mRequest; }; /* * Command StepWithOnOff */ class LevelControlStepWithOnOff : public ClusterCommand { public: LevelControlStepWithOnOff(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("step-with-on-off", credsIssuerConfig) { AddArgument("StepMode", 0, UINT8_MAX, &mRequest.stepMode); AddArgument("StepSize", 0, UINT8_MAX, &mRequest.stepSize); AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::StepWithOnOff::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::StepWithOnOff::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::LevelControl::Commands::StepWithOnOff::Type mRequest; }; /* * Command StopWithOnOff */ class LevelControlStopWithOnOff : public ClusterCommand { public: LevelControlStopWithOnOff(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop-with-on-off", credsIssuerConfig) { AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::StopWithOnOff::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::StopWithOnOff::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::LevelControl::Commands::StopWithOnOff::Type mRequest; }; /* * Command MoveToClosestFrequency */ class LevelControlMoveToClosestFrequency : public ClusterCommand { public: LevelControlMoveToClosestFrequency(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-to-closest-frequency", credsIssuerConfig) { AddArgument("Frequency", 0, UINT16_MAX, &mRequest.frequency); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::MoveToClosestFrequency::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LevelControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LevelControl::Commands::MoveToClosestFrequency::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::LevelControl::Commands::MoveToClosestFrequency::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster PulseWidthModulation | 0x001C | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster Descriptor | 0x001D | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * DeviceTypeList | 0x0000 | | * ServerList | 0x0001 | | * ClientList | 0x0002 | | * PartsList | 0x0003 | | * TagList | 0x0004 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster Binding | 0x001E | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * Binding | 0x0000 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster AccessControl | 0x001F | |------------------------------------------------------------------------------| | Commands: | | | * ReviewFabricRestrictions | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * Acl | 0x0000 | | * Extension | 0x0001 | | * SubjectsPerAccessControlEntry | 0x0002 | | * TargetsPerAccessControlEntry | 0x0003 | | * AccessControlEntriesPerFabric | 0x0004 | | * CommissioningARL | 0x0005 | | * Arl | 0x0006 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * AccessControlEntryChanged | 0x0000 | | * AccessControlExtensionChanged | 0x0001 | | * FabricRestrictionReviewUpdate | 0x0002 | \*----------------------------------------------------------------------------*/ /* * Command ReviewFabricRestrictions */ class AccessControlReviewFabricRestrictions : public ClusterCommand { public: AccessControlReviewFabricRestrictions(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("review-fabric-restrictions", credsIssuerConfig), mComplex_Arl(&mRequest.arl) { AddArgument("Arl", &mComplex_Arl); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AccessControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AccessControl::Commands::ReviewFabricRestrictions::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AccessControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AccessControl::Commands::ReviewFabricRestrictions::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::AccessControl::Commands::ReviewFabricRestrictions::Type mRequest; TypedComplexArgument> mComplex_Arl; }; /*----------------------------------------------------------------------------*\ | Cluster Actions | 0x0025 | |------------------------------------------------------------------------------| | Commands: | | | * InstantAction | 0x00 | | * InstantActionWithTransition | 0x01 | | * StartAction | 0x02 | | * StartActionWithDuration | 0x03 | | * StopAction | 0x04 | | * PauseAction | 0x05 | | * PauseActionWithDuration | 0x06 | | * ResumeAction | 0x07 | | * EnableAction | 0x08 | | * EnableActionWithDuration | 0x09 | | * DisableAction | 0x0A | | * DisableActionWithDuration | 0x0B | |------------------------------------------------------------------------------| | Attributes: | | | * ActionList | 0x0000 | | * EndpointLists | 0x0001 | | * SetupURL | 0x0002 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * StateChanged | 0x0000 | | * ActionFailed | 0x0001 | \*----------------------------------------------------------------------------*/ /* * Command InstantAction */ class ActionsInstantAction : public ClusterCommand { public: ActionsInstantAction(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("instant-action", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::InstantAction::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::InstantAction::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Actions::Commands::InstantAction::Type mRequest; }; /* * Command InstantActionWithTransition */ class ActionsInstantActionWithTransition : public ClusterCommand { public: ActionsInstantActionWithTransition(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("instant-action-with-transition", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::InstantActionWithTransition::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::InstantActionWithTransition::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Actions::Commands::InstantActionWithTransition::Type mRequest; }; /* * Command StartAction */ class ActionsStartAction : public ClusterCommand { public: ActionsStartAction(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("start-action", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::StartAction::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::StartAction::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Actions::Commands::StartAction::Type mRequest; }; /* * Command StartActionWithDuration */ class ActionsStartActionWithDuration : public ClusterCommand { public: ActionsStartActionWithDuration(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("start-action-with-duration", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); AddArgument("Duration", 0, UINT32_MAX, &mRequest.duration); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::StartActionWithDuration::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::StartActionWithDuration::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Actions::Commands::StartActionWithDuration::Type mRequest; }; /* * Command StopAction */ class ActionsStopAction : public ClusterCommand { public: ActionsStopAction(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop-action", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::StopAction::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::StopAction::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Actions::Commands::StopAction::Type mRequest; }; /* * Command PauseAction */ class ActionsPauseAction : public ClusterCommand { public: ActionsPauseAction(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("pause-action", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::PauseAction::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::PauseAction::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Actions::Commands::PauseAction::Type mRequest; }; /* * Command PauseActionWithDuration */ class ActionsPauseActionWithDuration : public ClusterCommand { public: ActionsPauseActionWithDuration(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("pause-action-with-duration", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); AddArgument("Duration", 0, UINT32_MAX, &mRequest.duration); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::PauseActionWithDuration::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::PauseActionWithDuration::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Actions::Commands::PauseActionWithDuration::Type mRequest; }; /* * Command ResumeAction */ class ActionsResumeAction : public ClusterCommand { public: ActionsResumeAction(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("resume-action", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::ResumeAction::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::ResumeAction::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Actions::Commands::ResumeAction::Type mRequest; }; /* * Command EnableAction */ class ActionsEnableAction : public ClusterCommand { public: ActionsEnableAction(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("enable-action", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::EnableAction::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::EnableAction::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Actions::Commands::EnableAction::Type mRequest; }; /* * Command EnableActionWithDuration */ class ActionsEnableActionWithDuration : public ClusterCommand { public: ActionsEnableActionWithDuration(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("enable-action-with-duration", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); AddArgument("Duration", 0, UINT32_MAX, &mRequest.duration); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::EnableActionWithDuration::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::EnableActionWithDuration::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Actions::Commands::EnableActionWithDuration::Type mRequest; }; /* * Command DisableAction */ class ActionsDisableAction : public ClusterCommand { public: ActionsDisableAction(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("disable-action", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::DisableAction::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::DisableAction::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Actions::Commands::DisableAction::Type mRequest; }; /* * Command DisableActionWithDuration */ class ActionsDisableActionWithDuration : public ClusterCommand { public: ActionsDisableActionWithDuration(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("disable-action-with-duration", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); AddArgument("Duration", 0, UINT32_MAX, &mRequest.duration); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::DisableActionWithDuration::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Actions::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Actions::Commands::DisableActionWithDuration::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Actions::Commands::DisableActionWithDuration::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster BasicInformation | 0x0028 | |------------------------------------------------------------------------------| | Commands: | | | * MfgSpecificPing | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * DataModelRevision | 0x0000 | | * VendorName | 0x0001 | | * VendorID | 0x0002 | | * ProductName | 0x0003 | | * ProductID | 0x0004 | | * NodeLabel | 0x0005 | | * Location | 0x0006 | | * HardwareVersion | 0x0007 | | * HardwareVersionString | 0x0008 | | * SoftwareVersion | 0x0009 | | * SoftwareVersionString | 0x000A | | * ManufacturingDate | 0x000B | | * PartNumber | 0x000C | | * ProductURL | 0x000D | | * ProductLabel | 0x000E | | * SerialNumber | 0x000F | | * LocalConfigDisabled | 0x0010 | | * Reachable | 0x0011 | | * UniqueID | 0x0012 | | * CapabilityMinima | 0x0013 | | * ProductAppearance | 0x0014 | | * SpecificationVersion | 0x0015 | | * MaxPathsPerInvoke | 0x0016 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * StartUp | 0x0000 | | * ShutDown | 0x0001 | | * Leave | 0x0002 | | * ReachableChanged | 0x0003 | \*----------------------------------------------------------------------------*/ /* * Command MfgSpecificPing */ class BasicInformationMfgSpecificPing : public ClusterCommand { public: BasicInformationMfgSpecificPing(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("mfg-specific-ping", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::BasicInformation::Id; constexpr chip::CommandId commandId = chip::app::Clusters::BasicInformation::Commands::MfgSpecificPing::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::BasicInformation::Id; constexpr chip::CommandId commandId = chip::app::Clusters::BasicInformation::Commands::MfgSpecificPing::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::BasicInformation::Commands::MfgSpecificPing::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster OtaSoftwareUpdateProvider | 0x0029 | |------------------------------------------------------------------------------| | Commands: | | | * QueryImage | 0x00 | | * ApplyUpdateRequest | 0x02 | | * NotifyUpdateApplied | 0x04 | |------------------------------------------------------------------------------| | Attributes: | | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command QueryImage */ class OtaSoftwareUpdateProviderQueryImage : public ClusterCommand { public: OtaSoftwareUpdateProviderQueryImage(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("query-image", credsIssuerConfig), mComplex_ProtocolsSupported(&mRequest.protocolsSupported) { AddArgument("VendorID", 0, UINT16_MAX, &mRequest.vendorID); AddArgument("ProductID", 0, UINT16_MAX, &mRequest.productID); AddArgument("SoftwareVersion", 0, UINT32_MAX, &mRequest.softwareVersion); AddArgument("ProtocolsSupported", &mComplex_ProtocolsSupported); AddArgument("HardwareVersion", 0, UINT16_MAX, &mRequest.hardwareVersion); AddArgument("Location", &mRequest.location); AddArgument("RequestorCanConsent", 0, 1, &mRequest.requestorCanConsent); AddArgument("MetadataForProvider", &mRequest.metadataForProvider); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OtaSoftwareUpdateProvider::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::QueryImage::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OtaSoftwareUpdateProvider::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::QueryImage::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::QueryImage::Type mRequest; TypedComplexArgument> mComplex_ProtocolsSupported; }; /* * Command ApplyUpdateRequest */ class OtaSoftwareUpdateProviderApplyUpdateRequest : public ClusterCommand { public: OtaSoftwareUpdateProviderApplyUpdateRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("apply-update-request", credsIssuerConfig) { AddArgument("UpdateToken", &mRequest.updateToken); AddArgument("NewVersion", 0, UINT32_MAX, &mRequest.newVersion); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OtaSoftwareUpdateProvider::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OtaSoftwareUpdateProvider::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateRequest::Type mRequest; }; /* * Command NotifyUpdateApplied */ class OtaSoftwareUpdateProviderNotifyUpdateApplied : public ClusterCommand { public: OtaSoftwareUpdateProviderNotifyUpdateApplied(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("notify-update-applied", credsIssuerConfig) { AddArgument("UpdateToken", &mRequest.updateToken); AddArgument("SoftwareVersion", 0, UINT32_MAX, &mRequest.softwareVersion); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OtaSoftwareUpdateProvider::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::NotifyUpdateApplied::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OtaSoftwareUpdateProvider::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::NotifyUpdateApplied::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::NotifyUpdateApplied::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster OtaSoftwareUpdateRequestor | 0x002A | |------------------------------------------------------------------------------| | Commands: | | | * AnnounceOTAProvider | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * DefaultOTAProviders | 0x0000 | | * UpdatePossible | 0x0001 | | * UpdateState | 0x0002 | | * UpdateStateProgress | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * StateTransition | 0x0000 | | * VersionApplied | 0x0001 | | * DownloadError | 0x0002 | \*----------------------------------------------------------------------------*/ /* * Command AnnounceOTAProvider */ class OtaSoftwareUpdateRequestorAnnounceOTAProvider : public ClusterCommand { public: OtaSoftwareUpdateRequestorAnnounceOTAProvider(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("announce-otaprovider", credsIssuerConfig) { AddArgument("ProviderNodeID", 0, UINT64_MAX, &mRequest.providerNodeID); AddArgument("VendorID", 0, UINT16_MAX, &mRequest.vendorID); AddArgument("AnnouncementReason", 0, UINT8_MAX, &mRequest.announcementReason); AddArgument("MetadataForNode", &mRequest.metadataForNode); AddArgument("Endpoint", 0, UINT16_MAX, &mRequest.endpoint); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OtaSoftwareUpdateRequestor::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OtaSoftwareUpdateRequestor::Commands::AnnounceOTAProvider::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OtaSoftwareUpdateRequestor::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OtaSoftwareUpdateRequestor::Commands::AnnounceOTAProvider::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OtaSoftwareUpdateRequestor::Commands::AnnounceOTAProvider::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster LocalizationConfiguration | 0x002B | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * ActiveLocale | 0x0000 | | * SupportedLocales | 0x0001 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster TimeFormatLocalization | 0x002C | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * HourFormat | 0x0000 | | * ActiveCalendarType | 0x0001 | | * SupportedCalendarTypes | 0x0002 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster UnitLocalization | 0x002D | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * TemperatureUnit | 0x0000 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster PowerSourceConfiguration | 0x002E | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * Sources | 0x0000 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster PowerSource | 0x002F | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * Status | 0x0000 | | * Order | 0x0001 | | * Description | 0x0002 | | * WiredAssessedInputVoltage | 0x0003 | | * WiredAssessedInputFrequency | 0x0004 | | * WiredCurrentType | 0x0005 | | * WiredAssessedCurrent | 0x0006 | | * WiredNominalVoltage | 0x0007 | | * WiredMaximumCurrent | 0x0008 | | * WiredPresent | 0x0009 | | * ActiveWiredFaults | 0x000A | | * BatVoltage | 0x000B | | * BatPercentRemaining | 0x000C | | * BatTimeRemaining | 0x000D | | * BatChargeLevel | 0x000E | | * BatReplacementNeeded | 0x000F | | * BatReplaceability | 0x0010 | | * BatPresent | 0x0011 | | * ActiveBatFaults | 0x0012 | | * BatReplacementDescription | 0x0013 | | * BatCommonDesignation | 0x0014 | | * BatANSIDesignation | 0x0015 | | * BatIECDesignation | 0x0016 | | * BatApprovedChemistry | 0x0017 | | * BatCapacity | 0x0018 | | * BatQuantity | 0x0019 | | * BatChargeState | 0x001A | | * BatTimeToFullCharge | 0x001B | | * BatFunctionalWhileCharging | 0x001C | | * BatChargingCurrent | 0x001D | | * ActiveBatChargeFaults | 0x001E | | * EndpointList | 0x001F | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * WiredFaultChange | 0x0000 | | * BatFaultChange | 0x0001 | | * BatChargeFaultChange | 0x0002 | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster GeneralCommissioning | 0x0030 | |------------------------------------------------------------------------------| | Commands: | | | * ArmFailSafe | 0x00 | | * SetRegulatoryConfig | 0x02 | | * CommissioningComplete | 0x04 | | * SetTCAcknowledgements | 0x06 | |------------------------------------------------------------------------------| | Attributes: | | | * Breadcrumb | 0x0000 | | * BasicCommissioningInfo | 0x0001 | | * RegulatoryConfig | 0x0002 | | * LocationCapability | 0x0003 | | * SupportsConcurrentConnection | 0x0004 | | * TCAcceptedVersion | 0x0005 | | * TCMinRequiredVersion | 0x0006 | | * TCAcknowledgements | 0x0007 | | * TCAcknowledgementsRequired | 0x0008 | | * TCUpdateDeadline | 0x0009 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command ArmFailSafe */ class GeneralCommissioningArmFailSafe : public ClusterCommand { public: GeneralCommissioningArmFailSafe(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("arm-fail-safe", credsIssuerConfig) { AddArgument("ExpiryLengthSeconds", 0, UINT16_MAX, &mRequest.expiryLengthSeconds); AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GeneralCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GeneralCommissioning::Commands::ArmFailSafe::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GeneralCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GeneralCommissioning::Commands::ArmFailSafe::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::GeneralCommissioning::Commands::ArmFailSafe::Type mRequest; }; /* * Command SetRegulatoryConfig */ class GeneralCommissioningSetRegulatoryConfig : public ClusterCommand { public: GeneralCommissioningSetRegulatoryConfig(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-regulatory-config", credsIssuerConfig) { AddArgument("NewRegulatoryConfig", 0, UINT8_MAX, &mRequest.newRegulatoryConfig); AddArgument("CountryCode", &mRequest.countryCode); AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GeneralCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GeneralCommissioning::Commands::SetRegulatoryConfig::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GeneralCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GeneralCommissioning::Commands::SetRegulatoryConfig::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::GeneralCommissioning::Commands::SetRegulatoryConfig::Type mRequest; }; /* * Command CommissioningComplete */ class GeneralCommissioningCommissioningComplete : public ClusterCommand { public: GeneralCommissioningCommissioningComplete(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("commissioning-complete", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GeneralCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GeneralCommissioning::Commands::CommissioningComplete::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GeneralCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GeneralCommissioning::Commands::CommissioningComplete::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::GeneralCommissioning::Commands::CommissioningComplete::Type mRequest; }; /* * Command SetTCAcknowledgements */ class GeneralCommissioningSetTCAcknowledgements : public ClusterCommand { public: GeneralCommissioningSetTCAcknowledgements(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-tcacknowledgements", credsIssuerConfig) { AddArgument("TCVersion", 0, UINT16_MAX, &mRequest.TCVersion); AddArgument("TCUserResponse", 0, UINT16_MAX, &mRequest.TCUserResponse); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GeneralCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GeneralCommissioning::Commands::SetTCAcknowledgements::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GeneralCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GeneralCommissioning::Commands::SetTCAcknowledgements::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::GeneralCommissioning::Commands::SetTCAcknowledgements::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster NetworkCommissioning | 0x0031 | |------------------------------------------------------------------------------| | Commands: | | | * ScanNetworks | 0x00 | | * AddOrUpdateWiFiNetwork | 0x02 | | * AddOrUpdateThreadNetwork | 0x03 | | * RemoveNetwork | 0x04 | | * ConnectNetwork | 0x06 | | * ReorderNetwork | 0x08 | | * QueryIdentity | 0x09 | |------------------------------------------------------------------------------| | Attributes: | | | * MaxNetworks | 0x0000 | | * Networks | 0x0001 | | * ScanMaxTimeSeconds | 0x0002 | | * ConnectMaxTimeSeconds | 0x0003 | | * InterfaceEnabled | 0x0004 | | * LastNetworkingStatus | 0x0005 | | * LastNetworkID | 0x0006 | | * LastConnectErrorValue | 0x0007 | | * SupportedWiFiBands | 0x0008 | | * SupportedThreadFeatures | 0x0009 | | * ThreadVersion | 0x000A | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command ScanNetworks */ class NetworkCommissioningScanNetworks : public ClusterCommand { public: NetworkCommissioningScanNetworks(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("scan-networks", credsIssuerConfig) { AddArgument("Ssid", &mRequest.ssid); AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::NetworkCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::NetworkCommissioning::Commands::ScanNetworks::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::NetworkCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::NetworkCommissioning::Commands::ScanNetworks::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::NetworkCommissioning::Commands::ScanNetworks::Type mRequest; }; /* * Command AddOrUpdateWiFiNetwork */ class NetworkCommissioningAddOrUpdateWiFiNetwork : public ClusterCommand { public: NetworkCommissioningAddOrUpdateWiFiNetwork(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("add-or-update-wi-fi-network", credsIssuerConfig) { AddArgument("Ssid", &mRequest.ssid); AddArgument("Credentials", &mRequest.credentials); AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); AddArgument("NetworkIdentity", &mRequest.networkIdentity); AddArgument("ClientIdentifier", &mRequest.clientIdentifier); AddArgument("PossessionNonce", &mRequest.possessionNonce); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::NetworkCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::NetworkCommissioning::Commands::AddOrUpdateWiFiNetwork::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::NetworkCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::NetworkCommissioning::Commands::AddOrUpdateWiFiNetwork::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::NetworkCommissioning::Commands::AddOrUpdateWiFiNetwork::Type mRequest; }; /* * Command AddOrUpdateThreadNetwork */ class NetworkCommissioningAddOrUpdateThreadNetwork : public ClusterCommand { public: NetworkCommissioningAddOrUpdateThreadNetwork(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("add-or-update-thread-network", credsIssuerConfig) { AddArgument("OperationalDataset", &mRequest.operationalDataset); AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::NetworkCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::NetworkCommissioning::Commands::AddOrUpdateThreadNetwork::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::NetworkCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::NetworkCommissioning::Commands::AddOrUpdateThreadNetwork::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::NetworkCommissioning::Commands::AddOrUpdateThreadNetwork::Type mRequest; }; /* * Command RemoveNetwork */ class NetworkCommissioningRemoveNetwork : public ClusterCommand { public: NetworkCommissioningRemoveNetwork(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("remove-network", credsIssuerConfig) { AddArgument("NetworkID", &mRequest.networkID); AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::NetworkCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::NetworkCommissioning::Commands::RemoveNetwork::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::NetworkCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::NetworkCommissioning::Commands::RemoveNetwork::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::NetworkCommissioning::Commands::RemoveNetwork::Type mRequest; }; /* * Command ConnectNetwork */ class NetworkCommissioningConnectNetwork : public ClusterCommand { public: NetworkCommissioningConnectNetwork(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("connect-network", credsIssuerConfig) { AddArgument("NetworkID", &mRequest.networkID); AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::NetworkCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::NetworkCommissioning::Commands::ConnectNetwork::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::NetworkCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::NetworkCommissioning::Commands::ConnectNetwork::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::NetworkCommissioning::Commands::ConnectNetwork::Type mRequest; }; /* * Command ReorderNetwork */ class NetworkCommissioningReorderNetwork : public ClusterCommand { public: NetworkCommissioningReorderNetwork(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("reorder-network", credsIssuerConfig) { AddArgument("NetworkID", &mRequest.networkID); AddArgument("NetworkIndex", 0, UINT8_MAX, &mRequest.networkIndex); AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::NetworkCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::NetworkCommissioning::Commands::ReorderNetwork::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::NetworkCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::NetworkCommissioning::Commands::ReorderNetwork::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::NetworkCommissioning::Commands::ReorderNetwork::Type mRequest; }; /* * Command QueryIdentity */ class NetworkCommissioningQueryIdentity : public ClusterCommand { public: NetworkCommissioningQueryIdentity(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("query-identity", credsIssuerConfig) { AddArgument("KeyIdentifier", &mRequest.keyIdentifier); AddArgument("PossessionNonce", &mRequest.possessionNonce); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::NetworkCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::NetworkCommissioning::Commands::QueryIdentity::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::NetworkCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::NetworkCommissioning::Commands::QueryIdentity::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::NetworkCommissioning::Commands::QueryIdentity::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster DiagnosticLogs | 0x0032 | |------------------------------------------------------------------------------| | Commands: | | | * RetrieveLogsRequest | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command RetrieveLogsRequest */ class DiagnosticLogsRetrieveLogsRequest : public ClusterCommand { public: DiagnosticLogsRetrieveLogsRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("retrieve-logs-request", credsIssuerConfig) { AddArgument("Intent", 0, UINT8_MAX, &mRequest.intent); AddArgument("RequestedProtocol", 0, UINT8_MAX, &mRequest.requestedProtocol); AddArgument("TransferFileDesignator", &mRequest.transferFileDesignator); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DiagnosticLogs::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DiagnosticLogs::Commands::RetrieveLogsRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DiagnosticLogs::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DiagnosticLogs::Commands::RetrieveLogsRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DiagnosticLogs::Commands::RetrieveLogsRequest::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster GeneralDiagnostics | 0x0033 | |------------------------------------------------------------------------------| | Commands: | | | * TestEventTrigger | 0x00 | | * TimeSnapshot | 0x01 | | * PayloadTestRequest | 0x03 | |------------------------------------------------------------------------------| | Attributes: | | | * NetworkInterfaces | 0x0000 | | * RebootCount | 0x0001 | | * UpTime | 0x0002 | | * TotalOperationalHours | 0x0003 | | * BootReason | 0x0004 | | * ActiveHardwareFaults | 0x0005 | | * ActiveRadioFaults | 0x0006 | | * ActiveNetworkFaults | 0x0007 | | * TestEventTriggersEnabled | 0x0008 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * HardwareFaultChange | 0x0000 | | * RadioFaultChange | 0x0001 | | * NetworkFaultChange | 0x0002 | | * BootReason | 0x0003 | \*----------------------------------------------------------------------------*/ /* * Command TestEventTrigger */ class GeneralDiagnosticsTestEventTrigger : public ClusterCommand { public: GeneralDiagnosticsTestEventTrigger(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-event-trigger", credsIssuerConfig) { AddArgument("EnableKey", &mRequest.enableKey); AddArgument("EventTrigger", 0, UINT64_MAX, &mRequest.eventTrigger); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GeneralDiagnostics::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GeneralDiagnostics::Commands::TestEventTrigger::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GeneralDiagnostics::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GeneralDiagnostics::Commands::TestEventTrigger::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::GeneralDiagnostics::Commands::TestEventTrigger::Type mRequest; }; /* * Command TimeSnapshot */ class GeneralDiagnosticsTimeSnapshot : public ClusterCommand { public: GeneralDiagnosticsTimeSnapshot(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("time-snapshot", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GeneralDiagnostics::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GeneralDiagnostics::Commands::TimeSnapshot::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GeneralDiagnostics::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GeneralDiagnostics::Commands::TimeSnapshot::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::GeneralDiagnostics::Commands::TimeSnapshot::Type mRequest; }; /* * Command PayloadTestRequest */ class GeneralDiagnosticsPayloadTestRequest : public ClusterCommand { public: GeneralDiagnosticsPayloadTestRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("payload-test-request", credsIssuerConfig) { AddArgument("EnableKey", &mRequest.enableKey); AddArgument("Value", 0, UINT8_MAX, &mRequest.value); AddArgument("Count", 0, UINT16_MAX, &mRequest.count); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GeneralDiagnostics::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GeneralDiagnostics::Commands::PayloadTestRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GeneralDiagnostics::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GeneralDiagnostics::Commands::PayloadTestRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::GeneralDiagnostics::Commands::PayloadTestRequest::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster SoftwareDiagnostics | 0x0034 | |------------------------------------------------------------------------------| | Commands: | | | * ResetWatermarks | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * ThreadMetrics | 0x0000 | | * CurrentHeapFree | 0x0001 | | * CurrentHeapUsed | 0x0002 | | * CurrentHeapHighWatermark | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * SoftwareFault | 0x0000 | \*----------------------------------------------------------------------------*/ /* * Command ResetWatermarks */ class SoftwareDiagnosticsResetWatermarks : public ClusterCommand { public: SoftwareDiagnosticsResetWatermarks(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("reset-watermarks", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::SoftwareDiagnostics::Id; constexpr chip::CommandId commandId = chip::app::Clusters::SoftwareDiagnostics::Commands::ResetWatermarks::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::SoftwareDiagnostics::Id; constexpr chip::CommandId commandId = chip::app::Clusters::SoftwareDiagnostics::Commands::ResetWatermarks::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::SoftwareDiagnostics::Commands::ResetWatermarks::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster ThreadNetworkDiagnostics | 0x0035 | |------------------------------------------------------------------------------| | Commands: | | | * ResetCounts | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * Channel | 0x0000 | | * RoutingRole | 0x0001 | | * NetworkName | 0x0002 | | * PanId | 0x0003 | | * ExtendedPanId | 0x0004 | | * MeshLocalPrefix | 0x0005 | | * OverrunCount | 0x0006 | | * NeighborTable | 0x0007 | | * RouteTable | 0x0008 | | * PartitionId | 0x0009 | | * Weighting | 0x000A | | * DataVersion | 0x000B | | * StableDataVersion | 0x000C | | * LeaderRouterId | 0x000D | | * DetachedRoleCount | 0x000E | | * ChildRoleCount | 0x000F | | * RouterRoleCount | 0x0010 | | * LeaderRoleCount | 0x0011 | | * AttachAttemptCount | 0x0012 | | * PartitionIdChangeCount | 0x0013 | | * BetterPartitionAttachAttemptCount | 0x0014 | | * ParentChangeCount | 0x0015 | | * TxTotalCount | 0x0016 | | * TxUnicastCount | 0x0017 | | * TxBroadcastCount | 0x0018 | | * TxAckRequestedCount | 0x0019 | | * TxAckedCount | 0x001A | | * TxNoAckRequestedCount | 0x001B | | * TxDataCount | 0x001C | | * TxDataPollCount | 0x001D | | * TxBeaconCount | 0x001E | | * TxBeaconRequestCount | 0x001F | | * TxOtherCount | 0x0020 | | * TxRetryCount | 0x0021 | | * TxDirectMaxRetryExpiryCount | 0x0022 | | * TxIndirectMaxRetryExpiryCount | 0x0023 | | * TxErrCcaCount | 0x0024 | | * TxErrAbortCount | 0x0025 | | * TxErrBusyChannelCount | 0x0026 | | * RxTotalCount | 0x0027 | | * RxUnicastCount | 0x0028 | | * RxBroadcastCount | 0x0029 | | * RxDataCount | 0x002A | | * RxDataPollCount | 0x002B | | * RxBeaconCount | 0x002C | | * RxBeaconRequestCount | 0x002D | | * RxOtherCount | 0x002E | | * RxAddressFilteredCount | 0x002F | | * RxDestAddrFilteredCount | 0x0030 | | * RxDuplicatedCount | 0x0031 | | * RxErrNoFrameCount | 0x0032 | | * RxErrUnknownNeighborCount | 0x0033 | | * RxErrInvalidSrcAddrCount | 0x0034 | | * RxErrSecCount | 0x0035 | | * RxErrFcsCount | 0x0036 | | * RxErrOtherCount | 0x0037 | | * ActiveTimestamp | 0x0038 | | * PendingTimestamp | 0x0039 | | * Delay | 0x003A | | * SecurityPolicy | 0x003B | | * ChannelPage0Mask | 0x003C | | * OperationalDatasetComponents | 0x003D | | * ActiveNetworkFaultsList | 0x003E | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * ConnectionStatus | 0x0000 | | * NetworkFaultChange | 0x0001 | \*----------------------------------------------------------------------------*/ /* * Command ResetCounts */ class ThreadNetworkDiagnosticsResetCounts : public ClusterCommand { public: ThreadNetworkDiagnosticsResetCounts(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("reset-counts", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ThreadNetworkDiagnostics::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ThreadNetworkDiagnostics::Commands::ResetCounts::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ThreadNetworkDiagnostics::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ThreadNetworkDiagnostics::Commands::ResetCounts::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ThreadNetworkDiagnostics::Commands::ResetCounts::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster WiFiNetworkDiagnostics | 0x0036 | |------------------------------------------------------------------------------| | Commands: | | | * ResetCounts | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * Bssid | 0x0000 | | * SecurityType | 0x0001 | | * WiFiVersion | 0x0002 | | * ChannelNumber | 0x0003 | | * Rssi | 0x0004 | | * BeaconLostCount | 0x0005 | | * BeaconRxCount | 0x0006 | | * PacketMulticastRxCount | 0x0007 | | * PacketMulticastTxCount | 0x0008 | | * PacketUnicastRxCount | 0x0009 | | * PacketUnicastTxCount | 0x000A | | * CurrentMaxRate | 0x000B | | * OverrunCount | 0x000C | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * Disconnection | 0x0000 | | * AssociationFailure | 0x0001 | | * ConnectionStatus | 0x0002 | \*----------------------------------------------------------------------------*/ /* * Command ResetCounts */ class WiFiNetworkDiagnosticsResetCounts : public ClusterCommand { public: WiFiNetworkDiagnosticsResetCounts(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("reset-counts", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WiFiNetworkDiagnostics::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WiFiNetworkDiagnostics::Commands::ResetCounts::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WiFiNetworkDiagnostics::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WiFiNetworkDiagnostics::Commands::ResetCounts::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WiFiNetworkDiagnostics::Commands::ResetCounts::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster EthernetNetworkDiagnostics | 0x0037 | |------------------------------------------------------------------------------| | Commands: | | | * ResetCounts | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * PHYRate | 0x0000 | | * FullDuplex | 0x0001 | | * PacketRxCount | 0x0002 | | * PacketTxCount | 0x0003 | | * TxErrCount | 0x0004 | | * CollisionCount | 0x0005 | | * OverrunCount | 0x0006 | | * CarrierDetect | 0x0007 | | * TimeSinceReset | 0x0008 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command ResetCounts */ class EthernetNetworkDiagnosticsResetCounts : public ClusterCommand { public: EthernetNetworkDiagnosticsResetCounts(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("reset-counts", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EthernetNetworkDiagnostics::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EthernetNetworkDiagnostics::Commands::ResetCounts::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EthernetNetworkDiagnostics::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EthernetNetworkDiagnostics::Commands::ResetCounts::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::EthernetNetworkDiagnostics::Commands::ResetCounts::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster TimeSynchronization | 0x0038 | |------------------------------------------------------------------------------| | Commands: | | | * SetUTCTime | 0x00 | | * SetTrustedTimeSource | 0x01 | | * SetTimeZone | 0x02 | | * SetDSTOffset | 0x04 | | * SetDefaultNTP | 0x05 | |------------------------------------------------------------------------------| | Attributes: | | | * UTCTime | 0x0000 | | * Granularity | 0x0001 | | * TimeSource | 0x0002 | | * TrustedTimeSource | 0x0003 | | * DefaultNTP | 0x0004 | | * TimeZone | 0x0005 | | * DSTOffset | 0x0006 | | * LocalTime | 0x0007 | | * TimeZoneDatabase | 0x0008 | | * NTPServerAvailable | 0x0009 | | * TimeZoneListMaxSize | 0x000A | | * DSTOffsetListMaxSize | 0x000B | | * SupportsDNSResolve | 0x000C | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * DSTTableEmpty | 0x0000 | | * DSTStatus | 0x0001 | | * TimeZoneStatus | 0x0002 | | * TimeFailure | 0x0003 | | * MissingTrustedTimeSource | 0x0004 | \*----------------------------------------------------------------------------*/ /* * Command SetUTCTime */ class TimeSynchronizationSetUTCTime : public ClusterCommand { public: TimeSynchronizationSetUTCTime(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-utctime", credsIssuerConfig) { AddArgument("UTCTime", 0, UINT64_MAX, &mRequest.UTCTime); AddArgument("Granularity", 0, UINT8_MAX, &mRequest.granularity); AddArgument("TimeSource", 0, UINT8_MAX, &mRequest.timeSource); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::TimeSynchronization::Id; constexpr chip::CommandId commandId = chip::app::Clusters::TimeSynchronization::Commands::SetUTCTime::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::TimeSynchronization::Id; constexpr chip::CommandId commandId = chip::app::Clusters::TimeSynchronization::Commands::SetUTCTime::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::TimeSynchronization::Commands::SetUTCTime::Type mRequest; }; /* * Command SetTrustedTimeSource */ class TimeSynchronizationSetTrustedTimeSource : public ClusterCommand { public: TimeSynchronizationSetTrustedTimeSource(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-trusted-time-source", credsIssuerConfig), mComplex_TrustedTimeSource(&mRequest.trustedTimeSource) { AddArgument("TrustedTimeSource", &mComplex_TrustedTimeSource); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::TimeSynchronization::Id; constexpr chip::CommandId commandId = chip::app::Clusters::TimeSynchronization::Commands::SetTrustedTimeSource::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::TimeSynchronization::Id; constexpr chip::CommandId commandId = chip::app::Clusters::TimeSynchronization::Commands::SetTrustedTimeSource::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::TimeSynchronization::Commands::SetTrustedTimeSource::Type mRequest; TypedComplexArgument> mComplex_TrustedTimeSource; }; /* * Command SetTimeZone */ class TimeSynchronizationSetTimeZone : public ClusterCommand { public: TimeSynchronizationSetTimeZone(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-time-zone", credsIssuerConfig), mComplex_TimeZone(&mRequest.timeZone) { AddArgument("TimeZone", &mComplex_TimeZone); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::TimeSynchronization::Id; constexpr chip::CommandId commandId = chip::app::Clusters::TimeSynchronization::Commands::SetTimeZone::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::TimeSynchronization::Id; constexpr chip::CommandId commandId = chip::app::Clusters::TimeSynchronization::Commands::SetTimeZone::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::TimeSynchronization::Commands::SetTimeZone::Type mRequest; TypedComplexArgument> mComplex_TimeZone; }; /* * Command SetDSTOffset */ class TimeSynchronizationSetDSTOffset : public ClusterCommand { public: TimeSynchronizationSetDSTOffset(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-dstoffset", credsIssuerConfig), mComplex_DSTOffset(&mRequest.DSTOffset) { AddArgument("DSTOffset", &mComplex_DSTOffset); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::TimeSynchronization::Id; constexpr chip::CommandId commandId = chip::app::Clusters::TimeSynchronization::Commands::SetDSTOffset::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::TimeSynchronization::Id; constexpr chip::CommandId commandId = chip::app::Clusters::TimeSynchronization::Commands::SetDSTOffset::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::TimeSynchronization::Commands::SetDSTOffset::Type mRequest; TypedComplexArgument> mComplex_DSTOffset; }; /* * Command SetDefaultNTP */ class TimeSynchronizationSetDefaultNTP : public ClusterCommand { public: TimeSynchronizationSetDefaultNTP(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-default-ntp", credsIssuerConfig) { AddArgument("DefaultNTP", &mRequest.defaultNTP); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::TimeSynchronization::Id; constexpr chip::CommandId commandId = chip::app::Clusters::TimeSynchronization::Commands::SetDefaultNTP::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::TimeSynchronization::Id; constexpr chip::CommandId commandId = chip::app::Clusters::TimeSynchronization::Commands::SetDefaultNTP::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::TimeSynchronization::Commands::SetDefaultNTP::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster BridgedDeviceBasicInformation | 0x0039 | |------------------------------------------------------------------------------| | Commands: | | | * KeepActive | 0x80 | |------------------------------------------------------------------------------| | Attributes: | | | * VendorName | 0x0001 | | * VendorID | 0x0002 | | * ProductName | 0x0003 | | * ProductID | 0x0004 | | * NodeLabel | 0x0005 | | * HardwareVersion | 0x0007 | | * HardwareVersionString | 0x0008 | | * SoftwareVersion | 0x0009 | | * SoftwareVersionString | 0x000A | | * ManufacturingDate | 0x000B | | * PartNumber | 0x000C | | * ProductURL | 0x000D | | * ProductLabel | 0x000E | | * SerialNumber | 0x000F | | * Reachable | 0x0011 | | * UniqueID | 0x0012 | | * ProductAppearance | 0x0014 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * StartUp | 0x0000 | | * ShutDown | 0x0001 | | * Leave | 0x0002 | | * ReachableChanged | 0x0003 | | * ActiveChanged | 0x0080 | \*----------------------------------------------------------------------------*/ /* * Command KeepActive */ class BridgedDeviceBasicInformationKeepActive : public ClusterCommand { public: BridgedDeviceBasicInformationKeepActive(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("keep-active", credsIssuerConfig) { AddArgument("StayActiveDuration", 0, UINT32_MAX, &mRequest.stayActiveDuration); AddArgument("TimeoutMs", 0, UINT32_MAX, &mRequest.timeoutMs); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::BridgedDeviceBasicInformation::Id; constexpr chip::CommandId commandId = chip::app::Clusters::BridgedDeviceBasicInformation::Commands::KeepActive::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::BridgedDeviceBasicInformation::Id; constexpr chip::CommandId commandId = chip::app::Clusters::BridgedDeviceBasicInformation::Commands::KeepActive::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::BridgedDeviceBasicInformation::Commands::KeepActive::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster Switch | 0x003B | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * NumberOfPositions | 0x0000 | | * CurrentPosition | 0x0001 | | * MultiPressMax | 0x0002 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * SwitchLatched | 0x0000 | | * InitialPress | 0x0001 | | * LongPress | 0x0002 | | * ShortRelease | 0x0003 | | * LongRelease | 0x0004 | | * MultiPressOngoing | 0x0005 | | * MultiPressComplete | 0x0006 | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster AdministratorCommissioning | 0x003C | |------------------------------------------------------------------------------| | Commands: | | | * OpenCommissioningWindow | 0x00 | | * OpenBasicCommissioningWindow | 0x01 | | * RevokeCommissioning | 0x02 | |------------------------------------------------------------------------------| | Attributes: | | | * WindowStatus | 0x0000 | | * AdminFabricIndex | 0x0001 | | * AdminVendorId | 0x0002 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command OpenCommissioningWindow */ class AdministratorCommissioningOpenCommissioningWindow : public ClusterCommand { public: AdministratorCommissioningOpenCommissioningWindow(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("open-commissioning-window", credsIssuerConfig) { AddArgument("CommissioningTimeout", 0, UINT16_MAX, &mRequest.commissioningTimeout); AddArgument("PAKEPasscodeVerifier", &mRequest.PAKEPasscodeVerifier); AddArgument("Discriminator", 0, UINT16_MAX, &mRequest.discriminator); AddArgument("Iterations", 0, UINT32_MAX, &mRequest.iterations); AddArgument("Salt", &mRequest.salt); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AdministratorCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AdministratorCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type mRequest; }; /* * Command OpenBasicCommissioningWindow */ class AdministratorCommissioningOpenBasicCommissioningWindow : public ClusterCommand { public: AdministratorCommissioningOpenBasicCommissioningWindow(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("open-basic-commissioning-window", credsIssuerConfig) { AddArgument("CommissioningTimeout", 0, UINT16_MAX, &mRequest.commissioningTimeout); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AdministratorCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AdministratorCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type mRequest; }; /* * Command RevokeCommissioning */ class AdministratorCommissioningRevokeCommissioning : public ClusterCommand { public: AdministratorCommissioningRevokeCommissioning(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("revoke-commissioning", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AdministratorCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AdministratorCommissioning::Commands::RevokeCommissioning::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AdministratorCommissioning::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AdministratorCommissioning::Commands::RevokeCommissioning::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::AdministratorCommissioning::Commands::RevokeCommissioning::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster OperationalCredentials | 0x003E | |------------------------------------------------------------------------------| | Commands: | | | * AttestationRequest | 0x00 | | * CertificateChainRequest | 0x02 | | * CSRRequest | 0x04 | | * AddNOC | 0x06 | | * UpdateNOC | 0x07 | | * UpdateFabricLabel | 0x09 | | * RemoveFabric | 0x0A | | * AddTrustedRootCertificate | 0x0B | |------------------------------------------------------------------------------| | Attributes: | | | * NOCs | 0x0000 | | * Fabrics | 0x0001 | | * SupportedFabrics | 0x0002 | | * CommissionedFabrics | 0x0003 | | * TrustedRootCertificates | 0x0004 | | * CurrentFabricIndex | 0x0005 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command AttestationRequest */ class OperationalCredentialsAttestationRequest : public ClusterCommand { public: OperationalCredentialsAttestationRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("attestation-request", credsIssuerConfig) { AddArgument("AttestationNonce", &mRequest.attestationNonce); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalCredentials::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalCredentials::Commands::AttestationRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalCredentials::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalCredentials::Commands::AttestationRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OperationalCredentials::Commands::AttestationRequest::Type mRequest; }; /* * Command CertificateChainRequest */ class OperationalCredentialsCertificateChainRequest : public ClusterCommand { public: OperationalCredentialsCertificateChainRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("certificate-chain-request", credsIssuerConfig) { AddArgument("CertificateType", 0, UINT8_MAX, &mRequest.certificateType); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalCredentials::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalCredentials::Commands::CertificateChainRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalCredentials::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalCredentials::Commands::CertificateChainRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OperationalCredentials::Commands::CertificateChainRequest::Type mRequest; }; /* * Command CSRRequest */ class OperationalCredentialsCSRRequest : public ClusterCommand { public: OperationalCredentialsCSRRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("csrrequest", credsIssuerConfig) { AddArgument("CSRNonce", &mRequest.CSRNonce); AddArgument("IsForUpdateNOC", 0, 1, &mRequest.isForUpdateNOC); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalCredentials::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalCredentials::Commands::CSRRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalCredentials::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalCredentials::Commands::CSRRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OperationalCredentials::Commands::CSRRequest::Type mRequest; }; /* * Command AddNOC */ class OperationalCredentialsAddNOC : public ClusterCommand { public: OperationalCredentialsAddNOC(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("add-noc", credsIssuerConfig) { AddArgument("NOCValue", &mRequest.NOCValue); AddArgument("ICACValue", &mRequest.ICACValue); AddArgument("IPKValue", &mRequest.IPKValue); AddArgument("CaseAdminSubject", 0, UINT64_MAX, &mRequest.caseAdminSubject); AddArgument("AdminVendorId", 0, UINT16_MAX, &mRequest.adminVendorId); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalCredentials::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalCredentials::Commands::AddNOC::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalCredentials::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalCredentials::Commands::AddNOC::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OperationalCredentials::Commands::AddNOC::Type mRequest; }; /* * Command UpdateNOC */ class OperationalCredentialsUpdateNOC : public ClusterCommand { public: OperationalCredentialsUpdateNOC(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("update-noc", credsIssuerConfig) { AddArgument("NOCValue", &mRequest.NOCValue); AddArgument("ICACValue", &mRequest.ICACValue); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalCredentials::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalCredentials::Commands::UpdateNOC::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalCredentials::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalCredentials::Commands::UpdateNOC::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OperationalCredentials::Commands::UpdateNOC::Type mRequest; }; /* * Command UpdateFabricLabel */ class OperationalCredentialsUpdateFabricLabel : public ClusterCommand { public: OperationalCredentialsUpdateFabricLabel(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("update-fabric-label", credsIssuerConfig) { AddArgument("Label", &mRequest.label); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalCredentials::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalCredentials::Commands::UpdateFabricLabel::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalCredentials::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalCredentials::Commands::UpdateFabricLabel::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OperationalCredentials::Commands::UpdateFabricLabel::Type mRequest; }; /* * Command RemoveFabric */ class OperationalCredentialsRemoveFabric : public ClusterCommand { public: OperationalCredentialsRemoveFabric(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("remove-fabric", credsIssuerConfig) { AddArgument("FabricIndex", 0, UINT8_MAX, &mRequest.fabricIndex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalCredentials::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalCredentials::Commands::RemoveFabric::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalCredentials::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalCredentials::Commands::RemoveFabric::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OperationalCredentials::Commands::RemoveFabric::Type mRequest; }; /* * Command AddTrustedRootCertificate */ class OperationalCredentialsAddTrustedRootCertificate : public ClusterCommand { public: OperationalCredentialsAddTrustedRootCertificate(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("add-trusted-root-certificate", credsIssuerConfig) { AddArgument("RootCACertificate", &mRequest.rootCACertificate); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalCredentials::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalCredentials::Commands::AddTrustedRootCertificate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalCredentials::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalCredentials::Commands::AddTrustedRootCertificate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OperationalCredentials::Commands::AddTrustedRootCertificate::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster GroupKeyManagement | 0x003F | |------------------------------------------------------------------------------| | Commands: | | | * KeySetWrite | 0x00 | | * KeySetRead | 0x01 | | * KeySetRemove | 0x03 | | * KeySetReadAllIndices | 0x04 | |------------------------------------------------------------------------------| | Attributes: | | | * GroupKeyMap | 0x0000 | | * GroupTable | 0x0001 | | * MaxGroupsPerFabric | 0x0002 | | * MaxGroupKeysPerFabric | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command KeySetWrite */ class GroupKeyManagementKeySetWrite : public ClusterCommand { public: GroupKeyManagementKeySetWrite(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("key-set-write", credsIssuerConfig), mComplex_GroupKeySet(&mRequest.groupKeySet) { AddArgument("GroupKeySet", &mComplex_GroupKeySet); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GroupKeyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GroupKeyManagement::Commands::KeySetWrite::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GroupKeyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GroupKeyManagement::Commands::KeySetWrite::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::GroupKeyManagement::Commands::KeySetWrite::Type mRequest; TypedComplexArgument mComplex_GroupKeySet; }; /* * Command KeySetRead */ class GroupKeyManagementKeySetRead : public ClusterCommand { public: GroupKeyManagementKeySetRead(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("key-set-read", credsIssuerConfig) { AddArgument("GroupKeySetID", 0, UINT16_MAX, &mRequest.groupKeySetID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GroupKeyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GroupKeyManagement::Commands::KeySetRead::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GroupKeyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GroupKeyManagement::Commands::KeySetRead::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::GroupKeyManagement::Commands::KeySetRead::Type mRequest; }; /* * Command KeySetRemove */ class GroupKeyManagementKeySetRemove : public ClusterCommand { public: GroupKeyManagementKeySetRemove(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("key-set-remove", credsIssuerConfig) { AddArgument("GroupKeySetID", 0, UINT16_MAX, &mRequest.groupKeySetID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GroupKeyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GroupKeyManagement::Commands::KeySetRemove::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GroupKeyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GroupKeyManagement::Commands::KeySetRemove::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::GroupKeyManagement::Commands::KeySetRemove::Type mRequest; }; /* * Command KeySetReadAllIndices */ class GroupKeyManagementKeySetReadAllIndices : public ClusterCommand { public: GroupKeyManagementKeySetReadAllIndices(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("key-set-read-all-indices", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GroupKeyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GroupKeyManagement::Commands::KeySetReadAllIndices::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::GroupKeyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::GroupKeyManagement::Commands::KeySetReadAllIndices::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::GroupKeyManagement::Commands::KeySetReadAllIndices::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster FixedLabel | 0x0040 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * LabelList | 0x0000 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster UserLabel | 0x0041 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * LabelList | 0x0000 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster ProxyConfiguration | 0x0042 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster ProxyDiscovery | 0x0043 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster ProxyValid | 0x0044 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster BooleanState | 0x0045 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * StateValue | 0x0000 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * StateChange | 0x0000 | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster IcdManagement | 0x0046 | |------------------------------------------------------------------------------| | Commands: | | | * RegisterClient | 0x00 | | * UnregisterClient | 0x02 | | * StayActiveRequest | 0x03 | |------------------------------------------------------------------------------| | Attributes: | | | * IdleModeDuration | 0x0000 | | * ActiveModeDuration | 0x0001 | | * ActiveModeThreshold | 0x0002 | | * RegisteredClients | 0x0003 | | * ICDCounter | 0x0004 | | * ClientsSupportedPerFabric | 0x0005 | | * UserActiveModeTriggerHint | 0x0006 | | * UserActiveModeTriggerInstruction | 0x0007 | | * OperatingMode | 0x0008 | | * MaximumCheckInBackOff | 0x0009 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command RegisterClient */ class IcdManagementRegisterClient : public ClusterCommand { public: IcdManagementRegisterClient(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("register-client", credsIssuerConfig) { AddArgument("CheckInNodeID", 0, UINT64_MAX, &mRequest.checkInNodeID); AddArgument("MonitoredSubject", 0, UINT64_MAX, &mRequest.monitoredSubject); AddArgument("Key", &mRequest.key); AddArgument("VerificationKey", &mRequest.verificationKey); AddArgument("ClientType", 0, UINT8_MAX, &mRequest.clientType); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::IcdManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::IcdManagement::Commands::RegisterClient::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::IcdManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::IcdManagement::Commands::RegisterClient::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::IcdManagement::Commands::RegisterClient::Type mRequest; }; /* * Command UnregisterClient */ class IcdManagementUnregisterClient : public ClusterCommand { public: IcdManagementUnregisterClient(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("unregister-client", credsIssuerConfig) { AddArgument("CheckInNodeID", 0, UINT64_MAX, &mRequest.checkInNodeID); AddArgument("VerificationKey", &mRequest.verificationKey); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::IcdManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::IcdManagement::Commands::UnregisterClient::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::IcdManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::IcdManagement::Commands::UnregisterClient::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::IcdManagement::Commands::UnregisterClient::Type mRequest; }; /* * Command StayActiveRequest */ class IcdManagementStayActiveRequest : public ClusterCommand { public: IcdManagementStayActiveRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stay-active-request", credsIssuerConfig) { AddArgument("StayActiveDuration", 0, UINT32_MAX, &mRequest.stayActiveDuration); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::IcdManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::IcdManagement::Commands::StayActiveRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::IcdManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::IcdManagement::Commands::StayActiveRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::IcdManagement::Commands::StayActiveRequest::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster Timer | 0x0047 | |------------------------------------------------------------------------------| | Commands: | | | * SetTimer | 0x00 | | * ResetTimer | 0x01 | | * AddTime | 0x02 | | * ReduceTime | 0x03 | |------------------------------------------------------------------------------| | Attributes: | | | * SetTime | 0x0000 | | * TimeRemaining | 0x0001 | | * TimerState | 0x0002 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command SetTimer */ class TimerSetTimer : public ClusterCommand { public: TimerSetTimer(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-timer", credsIssuerConfig) { AddArgument("NewTime", 0, UINT32_MAX, &mRequest.newTime); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Timer::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Timer::Commands::SetTimer::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Timer::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Timer::Commands::SetTimer::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Timer::Commands::SetTimer::Type mRequest; }; /* * Command ResetTimer */ class TimerResetTimer : public ClusterCommand { public: TimerResetTimer(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("reset-timer", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Timer::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Timer::Commands::ResetTimer::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Timer::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Timer::Commands::ResetTimer::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Timer::Commands::ResetTimer::Type mRequest; }; /* * Command AddTime */ class TimerAddTime : public ClusterCommand { public: TimerAddTime(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("add-time", credsIssuerConfig) { AddArgument("AdditionalTime", 0, UINT32_MAX, &mRequest.additionalTime); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Timer::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Timer::Commands::AddTime::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Timer::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Timer::Commands::AddTime::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Timer::Commands::AddTime::Type mRequest; }; /* * Command ReduceTime */ class TimerReduceTime : public ClusterCommand { public: TimerReduceTime(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("reduce-time", credsIssuerConfig) { AddArgument("TimeReduction", 0, UINT32_MAX, &mRequest.timeReduction); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Timer::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Timer::Commands::ReduceTime::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Timer::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Timer::Commands::ReduceTime::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Timer::Commands::ReduceTime::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster OvenCavityOperationalState | 0x0048 | |------------------------------------------------------------------------------| | Commands: | | | * Pause | 0x00 | | * Stop | 0x01 | | * Start | 0x02 | | * Resume | 0x03 | |------------------------------------------------------------------------------| | Attributes: | | | * PhaseList | 0x0000 | | * CurrentPhase | 0x0001 | | * CountdownTime | 0x0002 | | * OperationalStateList | 0x0003 | | * OperationalState | 0x0004 | | * OperationalError | 0x0005 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * OperationalError | 0x0000 | | * OperationCompletion | 0x0001 | \*----------------------------------------------------------------------------*/ /* * Command Pause */ class OvenCavityOperationalStatePause : public ClusterCommand { public: OvenCavityOperationalStatePause(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("pause", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OvenCavityOperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OvenCavityOperationalState::Commands::Pause::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OvenCavityOperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OvenCavityOperationalState::Commands::Pause::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OvenCavityOperationalState::Commands::Pause::Type mRequest; }; /* * Command Stop */ class OvenCavityOperationalStateStop : public ClusterCommand { public: OvenCavityOperationalStateStop(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OvenCavityOperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OvenCavityOperationalState::Commands::Stop::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OvenCavityOperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OvenCavityOperationalState::Commands::Stop::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OvenCavityOperationalState::Commands::Stop::Type mRequest; }; /* * Command Start */ class OvenCavityOperationalStateStart : public ClusterCommand { public: OvenCavityOperationalStateStart(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("start", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OvenCavityOperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OvenCavityOperationalState::Commands::Start::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OvenCavityOperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OvenCavityOperationalState::Commands::Start::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OvenCavityOperationalState::Commands::Start::Type mRequest; }; /* * Command Resume */ class OvenCavityOperationalStateResume : public ClusterCommand { public: OvenCavityOperationalStateResume(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("resume", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OvenCavityOperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OvenCavityOperationalState::Commands::Resume::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OvenCavityOperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OvenCavityOperationalState::Commands::Resume::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OvenCavityOperationalState::Commands::Resume::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster OvenMode | 0x0049 | |------------------------------------------------------------------------------| | Commands: | | | * ChangeToMode | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * SupportedModes | 0x0000 | | * CurrentMode | 0x0001 | | * StartUpMode | 0x0002 | | * OnMode | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command ChangeToMode */ class OvenModeChangeToMode : public ClusterCommand { public: OvenModeChangeToMode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("change-to-mode", credsIssuerConfig) { AddArgument("NewMode", 0, UINT8_MAX, &mRequest.newMode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OvenMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OvenMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OvenMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OvenMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OvenMode::Commands::ChangeToMode::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster LaundryDryerControls | 0x004A | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * SupportedDrynessLevels | 0x0000 | | * SelectedDrynessLevel | 0x0001 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster ModeSelect | 0x0050 | |------------------------------------------------------------------------------| | Commands: | | | * ChangeToMode | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * Description | 0x0000 | | * StandardNamespace | 0x0001 | | * SupportedModes | 0x0002 | | * CurrentMode | 0x0003 | | * StartUpMode | 0x0004 | | * OnMode | 0x0005 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command ChangeToMode */ class ModeSelectChangeToMode : public ClusterCommand { public: ModeSelectChangeToMode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("change-to-mode", credsIssuerConfig) { AddArgument("NewMode", 0, UINT8_MAX, &mRequest.newMode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ModeSelect::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ModeSelect::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ModeSelect::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ModeSelect::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ModeSelect::Commands::ChangeToMode::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster LaundryWasherMode | 0x0051 | |------------------------------------------------------------------------------| | Commands: | | | * ChangeToMode | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * SupportedModes | 0x0000 | | * CurrentMode | 0x0001 | | * StartUpMode | 0x0002 | | * OnMode | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command ChangeToMode */ class LaundryWasherModeChangeToMode : public ClusterCommand { public: LaundryWasherModeChangeToMode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("change-to-mode", credsIssuerConfig) { AddArgument("NewMode", 0, UINT8_MAX, &mRequest.newMode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LaundryWasherMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LaundryWasherMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LaundryWasherMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LaundryWasherMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::LaundryWasherMode::Commands::ChangeToMode::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster RefrigeratorAndTemperatureControlledCabinetMode | 0x0052 | |------------------------------------------------------------------------------| | Commands: | | | * ChangeToMode | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * SupportedModes | 0x0000 | | * CurrentMode | 0x0001 | | * StartUpMode | 0x0002 | | * OnMode | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command ChangeToMode */ class RefrigeratorAndTemperatureControlledCabinetModeChangeToMode : public ClusterCommand { public: RefrigeratorAndTemperatureControlledCabinetModeChangeToMode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("change-to-mode", credsIssuerConfig) { AddArgument("NewMode", 0, UINT8_MAX, &mRequest.newMode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::RefrigeratorAndTemperatureControlledCabinetMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::RefrigeratorAndTemperatureControlledCabinetMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::RefrigeratorAndTemperatureControlledCabinetMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::RefrigeratorAndTemperatureControlledCabinetMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::RefrigeratorAndTemperatureControlledCabinetMode::Commands::ChangeToMode::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster LaundryWasherControls | 0x0053 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * SpinSpeeds | 0x0000 | | * SpinSpeedCurrent | 0x0001 | | * NumberOfRinses | 0x0002 | | * SupportedRinses | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster RvcRunMode | 0x0054 | |------------------------------------------------------------------------------| | Commands: | | | * ChangeToMode | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * SupportedModes | 0x0000 | | * CurrentMode | 0x0001 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command ChangeToMode */ class RvcRunModeChangeToMode : public ClusterCommand { public: RvcRunModeChangeToMode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("change-to-mode", credsIssuerConfig) { AddArgument("NewMode", 0, UINT8_MAX, &mRequest.newMode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::RvcRunMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::RvcRunMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::RvcRunMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::RvcRunMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::RvcRunMode::Commands::ChangeToMode::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster RvcCleanMode | 0x0055 | |------------------------------------------------------------------------------| | Commands: | | | * ChangeToMode | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * SupportedModes | 0x0000 | | * CurrentMode | 0x0001 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command ChangeToMode */ class RvcCleanModeChangeToMode : public ClusterCommand { public: RvcCleanModeChangeToMode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("change-to-mode", credsIssuerConfig) { AddArgument("NewMode", 0, UINT8_MAX, &mRequest.newMode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::RvcCleanMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::RvcCleanMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::RvcCleanMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::RvcCleanMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::RvcCleanMode::Commands::ChangeToMode::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster TemperatureControl | 0x0056 | |------------------------------------------------------------------------------| | Commands: | | | * SetTemperature | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * TemperatureSetpoint | 0x0000 | | * MinTemperature | 0x0001 | | * MaxTemperature | 0x0002 | | * Step | 0x0003 | | * SelectedTemperatureLevel | 0x0004 | | * SupportedTemperatureLevels | 0x0005 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command SetTemperature */ class TemperatureControlSetTemperature : public ClusterCommand { public: TemperatureControlSetTemperature(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-temperature", credsIssuerConfig) { AddArgument("TargetTemperature", INT16_MIN, INT16_MAX, &mRequest.targetTemperature); AddArgument("TargetTemperatureLevel", 0, UINT8_MAX, &mRequest.targetTemperatureLevel); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::TemperatureControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::TemperatureControl::Commands::SetTemperature::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::TemperatureControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::TemperatureControl::Commands::SetTemperature::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::TemperatureControl::Commands::SetTemperature::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster RefrigeratorAlarm | 0x0057 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * Mask | 0x0000 | | * State | 0x0002 | | * Supported | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * Notify | 0x0000 | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster DishwasherMode | 0x0059 | |------------------------------------------------------------------------------| | Commands: | | | * ChangeToMode | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * SupportedModes | 0x0000 | | * CurrentMode | 0x0001 | | * StartUpMode | 0x0002 | | * OnMode | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command ChangeToMode */ class DishwasherModeChangeToMode : public ClusterCommand { public: DishwasherModeChangeToMode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("change-to-mode", credsIssuerConfig) { AddArgument("NewMode", 0, UINT8_MAX, &mRequest.newMode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DishwasherMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DishwasherMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DishwasherMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DishwasherMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DishwasherMode::Commands::ChangeToMode::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster AirQuality | 0x005B | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * AirQuality | 0x0000 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster SmokeCoAlarm | 0x005C | |------------------------------------------------------------------------------| | Commands: | | | * SelfTestRequest | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * ExpressedState | 0x0000 | | * SmokeState | 0x0001 | | * COState | 0x0002 | | * BatteryAlert | 0x0003 | | * DeviceMuted | 0x0004 | | * TestInProgress | 0x0005 | | * HardwareFaultAlert | 0x0006 | | * EndOfServiceAlert | 0x0007 | | * InterconnectSmokeAlarm | 0x0008 | | * InterconnectCOAlarm | 0x0009 | | * ContaminationState | 0x000A | | * SmokeSensitivityLevel | 0x000B | | * ExpiryDate | 0x000C | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * SmokeAlarm | 0x0000 | | * COAlarm | 0x0001 | | * LowBattery | 0x0002 | | * HardwareFault | 0x0003 | | * EndOfService | 0x0004 | | * SelfTestComplete | 0x0005 | | * AlarmMuted | 0x0006 | | * MuteEnded | 0x0007 | | * InterconnectSmokeAlarm | 0x0008 | | * InterconnectCOAlarm | 0x0009 | | * AllClear | 0x000A | \*----------------------------------------------------------------------------*/ /* * Command SelfTestRequest */ class SmokeCoAlarmSelfTestRequest : public ClusterCommand { public: SmokeCoAlarmSelfTestRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("self-test-request", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::SmokeCoAlarm::Id; constexpr chip::CommandId commandId = chip::app::Clusters::SmokeCoAlarm::Commands::SelfTestRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::SmokeCoAlarm::Id; constexpr chip::CommandId commandId = chip::app::Clusters::SmokeCoAlarm::Commands::SelfTestRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::SmokeCoAlarm::Commands::SelfTestRequest::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster DishwasherAlarm | 0x005D | |------------------------------------------------------------------------------| | Commands: | | | * Reset | 0x00 | | * ModifyEnabledAlarms | 0x01 | |------------------------------------------------------------------------------| | Attributes: | | | * Mask | 0x0000 | | * Latch | 0x0001 | | * State | 0x0002 | | * Supported | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * Notify | 0x0000 | \*----------------------------------------------------------------------------*/ /* * Command Reset */ class DishwasherAlarmReset : public ClusterCommand { public: DishwasherAlarmReset(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("reset", credsIssuerConfig) { AddArgument("Alarms", 0, UINT32_MAX, &mRequest.alarms); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DishwasherAlarm::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DishwasherAlarm::Commands::Reset::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DishwasherAlarm::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DishwasherAlarm::Commands::Reset::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DishwasherAlarm::Commands::Reset::Type mRequest; }; /* * Command ModifyEnabledAlarms */ class DishwasherAlarmModifyEnabledAlarms : public ClusterCommand { public: DishwasherAlarmModifyEnabledAlarms(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("modify-enabled-alarms", credsIssuerConfig) { AddArgument("Mask", 0, UINT32_MAX, &mRequest.mask); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DishwasherAlarm::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DishwasherAlarm::Commands::ModifyEnabledAlarms::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DishwasherAlarm::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DishwasherAlarm::Commands::ModifyEnabledAlarms::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DishwasherAlarm::Commands::ModifyEnabledAlarms::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster MicrowaveOvenMode | 0x005E | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * SupportedModes | 0x0000 | | * CurrentMode | 0x0001 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster MicrowaveOvenControl | 0x005F | |------------------------------------------------------------------------------| | Commands: | | | * SetCookingParameters | 0x00 | | * AddMoreTime | 0x01 | |------------------------------------------------------------------------------| | Attributes: | | | * CookTime | 0x0000 | | * MaxCookTime | 0x0001 | | * PowerSetting | 0x0002 | | * MinPower | 0x0003 | | * MaxPower | 0x0004 | | * PowerStep | 0x0005 | | * SupportedWatts | 0x0006 | | * SelectedWattIndex | 0x0007 | | * WattRating | 0x0008 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command SetCookingParameters */ class MicrowaveOvenControlSetCookingParameters : public ClusterCommand { public: MicrowaveOvenControlSetCookingParameters(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-cooking-parameters", credsIssuerConfig) { AddArgument("CookMode", 0, UINT8_MAX, &mRequest.cookMode); AddArgument("CookTime", 0, UINT32_MAX, &mRequest.cookTime); AddArgument("PowerSetting", 0, UINT8_MAX, &mRequest.powerSetting); AddArgument("WattSettingIndex", 0, UINT8_MAX, &mRequest.wattSettingIndex); AddArgument("StartAfterSetting", 0, 1, &mRequest.startAfterSetting); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MicrowaveOvenControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MicrowaveOvenControl::Commands::SetCookingParameters::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MicrowaveOvenControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MicrowaveOvenControl::Commands::SetCookingParameters::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MicrowaveOvenControl::Commands::SetCookingParameters::Type mRequest; }; /* * Command AddMoreTime */ class MicrowaveOvenControlAddMoreTime : public ClusterCommand { public: MicrowaveOvenControlAddMoreTime(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("add-more-time", credsIssuerConfig) { AddArgument("TimeToAdd", 0, UINT32_MAX, &mRequest.timeToAdd); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MicrowaveOvenControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MicrowaveOvenControl::Commands::AddMoreTime::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MicrowaveOvenControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MicrowaveOvenControl::Commands::AddMoreTime::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MicrowaveOvenControl::Commands::AddMoreTime::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster OperationalState | 0x0060 | |------------------------------------------------------------------------------| | Commands: | | | * Pause | 0x00 | | * Stop | 0x01 | | * Start | 0x02 | | * Resume | 0x03 | |------------------------------------------------------------------------------| | Attributes: | | | * PhaseList | 0x0000 | | * CurrentPhase | 0x0001 | | * CountdownTime | 0x0002 | | * OperationalStateList | 0x0003 | | * OperationalState | 0x0004 | | * OperationalError | 0x0005 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * OperationalError | 0x0000 | | * OperationCompletion | 0x0001 | \*----------------------------------------------------------------------------*/ /* * Command Pause */ class OperationalStatePause : public ClusterCommand { public: OperationalStatePause(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("pause", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalState::Commands::Pause::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalState::Commands::Pause::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OperationalState::Commands::Pause::Type mRequest; }; /* * Command Stop */ class OperationalStateStop : public ClusterCommand { public: OperationalStateStop(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalState::Commands::Stop::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalState::Commands::Stop::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OperationalState::Commands::Stop::Type mRequest; }; /* * Command Start */ class OperationalStateStart : public ClusterCommand { public: OperationalStateStart(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("start", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalState::Commands::Start::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalState::Commands::Start::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OperationalState::Commands::Start::Type mRequest; }; /* * Command Resume */ class OperationalStateResume : public ClusterCommand { public: OperationalStateResume(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("resume", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalState::Commands::Resume::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::OperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::OperationalState::Commands::Resume::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::OperationalState::Commands::Resume::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster RvcOperationalState | 0x0061 | |------------------------------------------------------------------------------| | Commands: | | | * Pause | 0x00 | | * Resume | 0x03 | | * GoHome | 0x80 | |------------------------------------------------------------------------------| | Attributes: | | | * PhaseList | 0x0000 | | * CurrentPhase | 0x0001 | | * CountdownTime | 0x0002 | | * OperationalStateList | 0x0003 | | * OperationalState | 0x0004 | | * OperationalError | 0x0005 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * OperationalError | 0x0000 | | * OperationCompletion | 0x0001 | \*----------------------------------------------------------------------------*/ /* * Command Pause */ class RvcOperationalStatePause : public ClusterCommand { public: RvcOperationalStatePause(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("pause", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::RvcOperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::RvcOperationalState::Commands::Pause::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::RvcOperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::RvcOperationalState::Commands::Pause::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::RvcOperationalState::Commands::Pause::Type mRequest; }; /* * Command Resume */ class RvcOperationalStateResume : public ClusterCommand { public: RvcOperationalStateResume(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("resume", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::RvcOperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::RvcOperationalState::Commands::Resume::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::RvcOperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::RvcOperationalState::Commands::Resume::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::RvcOperationalState::Commands::Resume::Type mRequest; }; /* * Command GoHome */ class RvcOperationalStateGoHome : public ClusterCommand { public: RvcOperationalStateGoHome(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("go-home", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::RvcOperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::RvcOperationalState::Commands::GoHome::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::RvcOperationalState::Id; constexpr chip::CommandId commandId = chip::app::Clusters::RvcOperationalState::Commands::GoHome::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::RvcOperationalState::Commands::GoHome::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster ScenesManagement | 0x0062 | |------------------------------------------------------------------------------| | Commands: | | | * AddScene | 0x00 | | * ViewScene | 0x01 | | * RemoveScene | 0x02 | | * RemoveAllScenes | 0x03 | | * StoreScene | 0x04 | | * RecallScene | 0x05 | | * GetSceneMembership | 0x06 | | * CopyScene | 0x40 | |------------------------------------------------------------------------------| | Attributes: | | | * LastConfiguredBy | 0x0000 | | * SceneTableSize | 0x0001 | | * FabricSceneInfo | 0x0002 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command AddScene */ class ScenesManagementAddScene : public ClusterCommand { public: ScenesManagementAddScene(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("add-scene", credsIssuerConfig), mComplex_ExtensionFieldSets(&mRequest.extensionFieldSets) { AddArgument("GroupID", 0, UINT16_MAX, &mRequest.groupID); AddArgument("SceneID", 0, UINT8_MAX, &mRequest.sceneID); AddArgument("TransitionTime", 0, UINT32_MAX, &mRequest.transitionTime); AddArgument("SceneName", &mRequest.sceneName); AddArgument("ExtensionFieldSets", &mComplex_ExtensionFieldSets); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ScenesManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ScenesManagement::Commands::AddScene::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ScenesManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ScenesManagement::Commands::AddScene::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ScenesManagement::Commands::AddScene::Type mRequest; TypedComplexArgument> mComplex_ExtensionFieldSets; }; /* * Command ViewScene */ class ScenesManagementViewScene : public ClusterCommand { public: ScenesManagementViewScene(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("view-scene", credsIssuerConfig) { AddArgument("GroupID", 0, UINT16_MAX, &mRequest.groupID); AddArgument("SceneID", 0, UINT8_MAX, &mRequest.sceneID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ScenesManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ScenesManagement::Commands::ViewScene::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ScenesManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ScenesManagement::Commands::ViewScene::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ScenesManagement::Commands::ViewScene::Type mRequest; }; /* * Command RemoveScene */ class ScenesManagementRemoveScene : public ClusterCommand { public: ScenesManagementRemoveScene(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("remove-scene", credsIssuerConfig) { AddArgument("GroupID", 0, UINT16_MAX, &mRequest.groupID); AddArgument("SceneID", 0, UINT8_MAX, &mRequest.sceneID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ScenesManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ScenesManagement::Commands::RemoveScene::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ScenesManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ScenesManagement::Commands::RemoveScene::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ScenesManagement::Commands::RemoveScene::Type mRequest; }; /* * Command RemoveAllScenes */ class ScenesManagementRemoveAllScenes : public ClusterCommand { public: ScenesManagementRemoveAllScenes(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("remove-all-scenes", credsIssuerConfig) { AddArgument("GroupID", 0, UINT16_MAX, &mRequest.groupID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ScenesManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ScenesManagement::Commands::RemoveAllScenes::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ScenesManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ScenesManagement::Commands::RemoveAllScenes::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ScenesManagement::Commands::RemoveAllScenes::Type mRequest; }; /* * Command StoreScene */ class ScenesManagementStoreScene : public ClusterCommand { public: ScenesManagementStoreScene(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("store-scene", credsIssuerConfig) { AddArgument("GroupID", 0, UINT16_MAX, &mRequest.groupID); AddArgument("SceneID", 0, UINT8_MAX, &mRequest.sceneID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ScenesManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ScenesManagement::Commands::StoreScene::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ScenesManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ScenesManagement::Commands::StoreScene::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ScenesManagement::Commands::StoreScene::Type mRequest; }; /* * Command RecallScene */ class ScenesManagementRecallScene : public ClusterCommand { public: ScenesManagementRecallScene(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("recall-scene", credsIssuerConfig) { AddArgument("GroupID", 0, UINT16_MAX, &mRequest.groupID); AddArgument("SceneID", 0, UINT8_MAX, &mRequest.sceneID); AddArgument("TransitionTime", 0, UINT32_MAX, &mRequest.transitionTime); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ScenesManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ScenesManagement::Commands::RecallScene::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ScenesManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ScenesManagement::Commands::RecallScene::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ScenesManagement::Commands::RecallScene::Type mRequest; }; /* * Command GetSceneMembership */ class ScenesManagementGetSceneMembership : public ClusterCommand { public: ScenesManagementGetSceneMembership(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-scene-membership", credsIssuerConfig) { AddArgument("GroupID", 0, UINT16_MAX, &mRequest.groupID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ScenesManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ScenesManagement::Commands::GetSceneMembership::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ScenesManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ScenesManagement::Commands::GetSceneMembership::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ScenesManagement::Commands::GetSceneMembership::Type mRequest; }; /* * Command CopyScene */ class ScenesManagementCopyScene : public ClusterCommand { public: ScenesManagementCopyScene(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("copy-scene", credsIssuerConfig) { AddArgument("Mode", 0, UINT8_MAX, &mRequest.mode); AddArgument("GroupIdentifierFrom", 0, UINT16_MAX, &mRequest.groupIdentifierFrom); AddArgument("SceneIdentifierFrom", 0, UINT8_MAX, &mRequest.sceneIdentifierFrom); AddArgument("GroupIdentifierTo", 0, UINT16_MAX, &mRequest.groupIdentifierTo); AddArgument("SceneIdentifierTo", 0, UINT8_MAX, &mRequest.sceneIdentifierTo); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ScenesManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ScenesManagement::Commands::CopyScene::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ScenesManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ScenesManagement::Commands::CopyScene::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ScenesManagement::Commands::CopyScene::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster HepaFilterMonitoring | 0x0071 | |------------------------------------------------------------------------------| | Commands: | | | * ResetCondition | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * Condition | 0x0000 | | * DegradationDirection | 0x0001 | | * ChangeIndication | 0x0002 | | * InPlaceIndicator | 0x0003 | | * LastChangedTime | 0x0004 | | * ReplacementProductList | 0x0005 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command ResetCondition */ class HepaFilterMonitoringResetCondition : public ClusterCommand { public: HepaFilterMonitoringResetCondition(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("reset-condition", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::HepaFilterMonitoring::Id; constexpr chip::CommandId commandId = chip::app::Clusters::HepaFilterMonitoring::Commands::ResetCondition::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::HepaFilterMonitoring::Id; constexpr chip::CommandId commandId = chip::app::Clusters::HepaFilterMonitoring::Commands::ResetCondition::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::HepaFilterMonitoring::Commands::ResetCondition::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster ActivatedCarbonFilterMonitoring | 0x0072 | |------------------------------------------------------------------------------| | Commands: | | | * ResetCondition | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * Condition | 0x0000 | | * DegradationDirection | 0x0001 | | * ChangeIndication | 0x0002 | | * InPlaceIndicator | 0x0003 | | * LastChangedTime | 0x0004 | | * ReplacementProductList | 0x0005 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command ResetCondition */ class ActivatedCarbonFilterMonitoringResetCondition : public ClusterCommand { public: ActivatedCarbonFilterMonitoringResetCondition(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("reset-condition", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ActivatedCarbonFilterMonitoring::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ActivatedCarbonFilterMonitoring::Commands::ResetCondition::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ActivatedCarbonFilterMonitoring::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ActivatedCarbonFilterMonitoring::Commands::ResetCondition::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ActivatedCarbonFilterMonitoring::Commands::ResetCondition::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster BooleanStateConfiguration | 0x0080 | |------------------------------------------------------------------------------| | Commands: | | | * SuppressAlarm | 0x00 | | * EnableDisableAlarm | 0x01 | |------------------------------------------------------------------------------| | Attributes: | | | * CurrentSensitivityLevel | 0x0000 | | * SupportedSensitivityLevels | 0x0001 | | * DefaultSensitivityLevel | 0x0002 | | * AlarmsActive | 0x0003 | | * AlarmsSuppressed | 0x0004 | | * AlarmsEnabled | 0x0005 | | * AlarmsSupported | 0x0006 | | * SensorFault | 0x0007 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * AlarmsStateChanged | 0x0000 | | * SensorFault | 0x0001 | \*----------------------------------------------------------------------------*/ /* * Command SuppressAlarm */ class BooleanStateConfigurationSuppressAlarm : public ClusterCommand { public: BooleanStateConfigurationSuppressAlarm(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("suppress-alarm", credsIssuerConfig) { AddArgument("AlarmsToSuppress", 0, UINT8_MAX, &mRequest.alarmsToSuppress); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::BooleanStateConfiguration::Id; constexpr chip::CommandId commandId = chip::app::Clusters::BooleanStateConfiguration::Commands::SuppressAlarm::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::BooleanStateConfiguration::Id; constexpr chip::CommandId commandId = chip::app::Clusters::BooleanStateConfiguration::Commands::SuppressAlarm::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::BooleanStateConfiguration::Commands::SuppressAlarm::Type mRequest; }; /* * Command EnableDisableAlarm */ class BooleanStateConfigurationEnableDisableAlarm : public ClusterCommand { public: BooleanStateConfigurationEnableDisableAlarm(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("enable-disable-alarm", credsIssuerConfig) { AddArgument("AlarmsToEnableDisable", 0, UINT8_MAX, &mRequest.alarmsToEnableDisable); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::BooleanStateConfiguration::Id; constexpr chip::CommandId commandId = chip::app::Clusters::BooleanStateConfiguration::Commands::EnableDisableAlarm::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::BooleanStateConfiguration::Id; constexpr chip::CommandId commandId = chip::app::Clusters::BooleanStateConfiguration::Commands::EnableDisableAlarm::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::BooleanStateConfiguration::Commands::EnableDisableAlarm::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster ValveConfigurationAndControl | 0x0081 | |------------------------------------------------------------------------------| | Commands: | | | * Open | 0x00 | | * Close | 0x01 | |------------------------------------------------------------------------------| | Attributes: | | | * OpenDuration | 0x0000 | | * DefaultOpenDuration | 0x0001 | | * AutoCloseTime | 0x0002 | | * RemainingDuration | 0x0003 | | * CurrentState | 0x0004 | | * TargetState | 0x0005 | | * CurrentLevel | 0x0006 | | * TargetLevel | 0x0007 | | * DefaultOpenLevel | 0x0008 | | * ValveFault | 0x0009 | | * LevelStep | 0x000A | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * ValveStateChanged | 0x0000 | | * ValveFault | 0x0001 | \*----------------------------------------------------------------------------*/ /* * Command Open */ class ValveConfigurationAndControlOpen : public ClusterCommand { public: ValveConfigurationAndControlOpen(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("open", credsIssuerConfig) { AddArgument("OpenDuration", 0, UINT32_MAX, &mRequest.openDuration); AddArgument("TargetLevel", 0, UINT8_MAX, &mRequest.targetLevel); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ValveConfigurationAndControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ValveConfigurationAndControl::Commands::Open::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ValveConfigurationAndControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ValveConfigurationAndControl::Commands::Open::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ValveConfigurationAndControl::Commands::Open::Type mRequest; }; /* * Command Close */ class ValveConfigurationAndControlClose : public ClusterCommand { public: ValveConfigurationAndControlClose(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("close", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ValveConfigurationAndControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ValveConfigurationAndControl::Commands::Close::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ValveConfigurationAndControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ValveConfigurationAndControl::Commands::Close::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ValveConfigurationAndControl::Commands::Close::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster ElectricalPowerMeasurement | 0x0090 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * PowerMode | 0x0000 | | * NumberOfMeasurementTypes | 0x0001 | | * Accuracy | 0x0002 | | * Ranges | 0x0003 | | * Voltage | 0x0004 | | * ActiveCurrent | 0x0005 | | * ReactiveCurrent | 0x0006 | | * ApparentCurrent | 0x0007 | | * ActivePower | 0x0008 | | * ReactivePower | 0x0009 | | * ApparentPower | 0x000A | | * RMSVoltage | 0x000B | | * RMSCurrent | 0x000C | | * RMSPower | 0x000D | | * Frequency | 0x000E | | * HarmonicCurrents | 0x000F | | * HarmonicPhases | 0x0010 | | * PowerFactor | 0x0011 | | * NeutralCurrent | 0x0012 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * MeasurementPeriodRanges | 0x0000 | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster ElectricalEnergyMeasurement | 0x0091 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * Accuracy | 0x0000 | | * CumulativeEnergyImported | 0x0001 | | * CumulativeEnergyExported | 0x0002 | | * PeriodicEnergyImported | 0x0003 | | * PeriodicEnergyExported | 0x0004 | | * CumulativeEnergyReset | 0x0005 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * CumulativeEnergyMeasured | 0x0000 | | * PeriodicEnergyMeasured | 0x0001 | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster WaterHeaterManagement | 0x0094 | |------------------------------------------------------------------------------| | Commands: | | | * Boost | 0x00 | | * CancelBoost | 0x01 | |------------------------------------------------------------------------------| | Attributes: | | | * HeaterTypes | 0x0000 | | * HeatDemand | 0x0001 | | * TankVolume | 0x0002 | | * EstimatedHeatRequired | 0x0003 | | * TankPercentage | 0x0004 | | * BoostState | 0x0005 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * BoostStarted | 0x0000 | | * BoostEnded | 0x0001 | \*----------------------------------------------------------------------------*/ /* * Command Boost */ class WaterHeaterManagementBoost : public ClusterCommand { public: WaterHeaterManagementBoost(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("boost", credsIssuerConfig), mComplex_BoostInfo(&mRequest.boostInfo) { AddArgument("BoostInfo", &mComplex_BoostInfo); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WaterHeaterManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WaterHeaterManagement::Commands::Boost::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WaterHeaterManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WaterHeaterManagement::Commands::Boost::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WaterHeaterManagement::Commands::Boost::Type mRequest; TypedComplexArgument mComplex_BoostInfo; }; /* * Command CancelBoost */ class WaterHeaterManagementCancelBoost : public ClusterCommand { public: WaterHeaterManagementCancelBoost(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("cancel-boost", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WaterHeaterManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WaterHeaterManagement::Commands::CancelBoost::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WaterHeaterManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WaterHeaterManagement::Commands::CancelBoost::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WaterHeaterManagement::Commands::CancelBoost::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster DemandResponseLoadControl | 0x0096 | |------------------------------------------------------------------------------| | Commands: | | | * RegisterLoadControlProgramRequest | 0x00 | | * UnregisterLoadControlProgramRequest | 0x01 | | * AddLoadControlEventRequest | 0x02 | | * RemoveLoadControlEventRequest | 0x03 | | * ClearLoadControlEventsRequest | 0x04 | |------------------------------------------------------------------------------| | Attributes: | | | * LoadControlPrograms | 0x0000 | | * NumberOfLoadControlPrograms | 0x0001 | | * Events | 0x0002 | | * ActiveEvents | 0x0003 | | * NumberOfEventsPerProgram | 0x0004 | | * NumberOfTransitions | 0x0005 | | * DefaultRandomStart | 0x0006 | | * DefaultRandomDuration | 0x0007 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * LoadControlEventStatusChange | 0x0000 | \*----------------------------------------------------------------------------*/ /* * Command RegisterLoadControlProgramRequest */ class DemandResponseLoadControlRegisterLoadControlProgramRequest : public ClusterCommand { public: DemandResponseLoadControlRegisterLoadControlProgramRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("register-load-control-program-request", credsIssuerConfig), mComplex_LoadControlProgram(&mRequest.loadControlProgram) { AddArgument("LoadControlProgram", &mComplex_LoadControlProgram); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DemandResponseLoadControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DemandResponseLoadControl::Commands::RegisterLoadControlProgramRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DemandResponseLoadControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DemandResponseLoadControl::Commands::RegisterLoadControlProgramRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DemandResponseLoadControl::Commands::RegisterLoadControlProgramRequest::Type mRequest; TypedComplexArgument mComplex_LoadControlProgram; }; /* * Command UnregisterLoadControlProgramRequest */ class DemandResponseLoadControlUnregisterLoadControlProgramRequest : public ClusterCommand { public: DemandResponseLoadControlUnregisterLoadControlProgramRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("unregister-load-control-program-request", credsIssuerConfig) { AddArgument("LoadControlProgramID", &mRequest.loadControlProgramID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DemandResponseLoadControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DemandResponseLoadControl::Commands::UnregisterLoadControlProgramRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DemandResponseLoadControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DemandResponseLoadControl::Commands::UnregisterLoadControlProgramRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DemandResponseLoadControl::Commands::UnregisterLoadControlProgramRequest::Type mRequest; }; /* * Command AddLoadControlEventRequest */ class DemandResponseLoadControlAddLoadControlEventRequest : public ClusterCommand { public: DemandResponseLoadControlAddLoadControlEventRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("add-load-control-event-request", credsIssuerConfig), mComplex_Event(&mRequest.event) { AddArgument("Event", &mComplex_Event); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DemandResponseLoadControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DemandResponseLoadControl::Commands::AddLoadControlEventRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DemandResponseLoadControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DemandResponseLoadControl::Commands::AddLoadControlEventRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DemandResponseLoadControl::Commands::AddLoadControlEventRequest::Type mRequest; TypedComplexArgument mComplex_Event; }; /* * Command RemoveLoadControlEventRequest */ class DemandResponseLoadControlRemoveLoadControlEventRequest : public ClusterCommand { public: DemandResponseLoadControlRemoveLoadControlEventRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("remove-load-control-event-request", credsIssuerConfig) { AddArgument("EventID", &mRequest.eventID); AddArgument("CancelControl", 0, UINT16_MAX, &mRequest.cancelControl); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DemandResponseLoadControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DemandResponseLoadControl::Commands::RemoveLoadControlEventRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DemandResponseLoadControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DemandResponseLoadControl::Commands::RemoveLoadControlEventRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DemandResponseLoadControl::Commands::RemoveLoadControlEventRequest::Type mRequest; }; /* * Command ClearLoadControlEventsRequest */ class DemandResponseLoadControlClearLoadControlEventsRequest : public ClusterCommand { public: DemandResponseLoadControlClearLoadControlEventsRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("clear-load-control-events-request", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DemandResponseLoadControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DemandResponseLoadControl::Commands::ClearLoadControlEventsRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DemandResponseLoadControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DemandResponseLoadControl::Commands::ClearLoadControlEventsRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DemandResponseLoadControl::Commands::ClearLoadControlEventsRequest::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster Messages | 0x0097 | |------------------------------------------------------------------------------| | Commands: | | | * PresentMessagesRequest | 0x00 | | * CancelMessagesRequest | 0x01 | |------------------------------------------------------------------------------| | Attributes: | | | * Messages | 0x0000 | | * ActiveMessageIDs | 0x0001 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * MessageQueued | 0x0000 | | * MessagePresented | 0x0001 | | * MessageComplete | 0x0002 | \*----------------------------------------------------------------------------*/ /* * Command PresentMessagesRequest */ class MessagesPresentMessagesRequest : public ClusterCommand { public: MessagesPresentMessagesRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("present-messages-request", credsIssuerConfig), mComplex_Responses(&mRequest.responses) { AddArgument("MessageID", &mRequest.messageID); AddArgument("Priority", 0, UINT8_MAX, &mRequest.priority); AddArgument("MessageControl", 0, UINT8_MAX, &mRequest.messageControl); AddArgument("StartTime", 0, UINT32_MAX, &mRequest.startTime); AddArgument("Duration", 0, UINT64_MAX, &mRequest.duration); AddArgument("MessageText", &mRequest.messageText); AddArgument("Responses", &mComplex_Responses, "", Argument::kOptional); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Messages::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Messages::Commands::PresentMessagesRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Messages::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Messages::Commands::PresentMessagesRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Messages::Commands::PresentMessagesRequest::Type mRequest; TypedComplexArgument< chip::Optional>> mComplex_Responses; }; /* * Command CancelMessagesRequest */ class MessagesCancelMessagesRequest : public ClusterCommand { public: MessagesCancelMessagesRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("cancel-messages-request", credsIssuerConfig), mComplex_MessageIDs(&mRequest.messageIDs) { AddArgument("MessageIDs", &mComplex_MessageIDs); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Messages::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Messages::Commands::CancelMessagesRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Messages::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Messages::Commands::CancelMessagesRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Messages::Commands::CancelMessagesRequest::Type mRequest; TypedComplexArgument> mComplex_MessageIDs; }; /*----------------------------------------------------------------------------*\ | Cluster DeviceEnergyManagement | 0x0098 | |------------------------------------------------------------------------------| | Commands: | | | * PowerAdjustRequest | 0x00 | | * CancelPowerAdjustRequest | 0x01 | | * StartTimeAdjustRequest | 0x02 | | * PauseRequest | 0x03 | | * ResumeRequest | 0x04 | | * ModifyForecastRequest | 0x05 | | * RequestConstraintBasedForecast | 0x06 | | * CancelRequest | 0x07 | |------------------------------------------------------------------------------| | Attributes: | | | * ESAType | 0x0000 | | * ESACanGenerate | 0x0001 | | * ESAState | 0x0002 | | * AbsMinPower | 0x0003 | | * AbsMaxPower | 0x0004 | | * PowerAdjustmentCapability | 0x0005 | | * Forecast | 0x0006 | | * OptOutState | 0x0007 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * PowerAdjustStart | 0x0000 | | * PowerAdjustEnd | 0x0001 | | * Paused | 0x0002 | | * Resumed | 0x0003 | \*----------------------------------------------------------------------------*/ /* * Command PowerAdjustRequest */ class DeviceEnergyManagementPowerAdjustRequest : public ClusterCommand { public: DeviceEnergyManagementPowerAdjustRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("power-adjust-request", credsIssuerConfig) { AddArgument("Power", INT64_MIN, INT64_MAX, &mRequest.power); AddArgument("Duration", 0, UINT32_MAX, &mRequest.duration); AddArgument("Cause", 0, UINT8_MAX, &mRequest.cause); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagement::Commands::PowerAdjustRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagement::Commands::PowerAdjustRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DeviceEnergyManagement::Commands::PowerAdjustRequest::Type mRequest; }; /* * Command CancelPowerAdjustRequest */ class DeviceEnergyManagementCancelPowerAdjustRequest : public ClusterCommand { public: DeviceEnergyManagementCancelPowerAdjustRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("cancel-power-adjust-request", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagement::Commands::CancelPowerAdjustRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagement::Commands::CancelPowerAdjustRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DeviceEnergyManagement::Commands::CancelPowerAdjustRequest::Type mRequest; }; /* * Command StartTimeAdjustRequest */ class DeviceEnergyManagementStartTimeAdjustRequest : public ClusterCommand { public: DeviceEnergyManagementStartTimeAdjustRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("start-time-adjust-request", credsIssuerConfig) { AddArgument("RequestedStartTime", 0, UINT32_MAX, &mRequest.requestedStartTime); AddArgument("Cause", 0, UINT8_MAX, &mRequest.cause); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagement::Commands::StartTimeAdjustRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagement::Commands::StartTimeAdjustRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DeviceEnergyManagement::Commands::StartTimeAdjustRequest::Type mRequest; }; /* * Command PauseRequest */ class DeviceEnergyManagementPauseRequest : public ClusterCommand { public: DeviceEnergyManagementPauseRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("pause-request", credsIssuerConfig) { AddArgument("Duration", 0, UINT32_MAX, &mRequest.duration); AddArgument("Cause", 0, UINT8_MAX, &mRequest.cause); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagement::Commands::PauseRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagement::Commands::PauseRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DeviceEnergyManagement::Commands::PauseRequest::Type mRequest; }; /* * Command ResumeRequest */ class DeviceEnergyManagementResumeRequest : public ClusterCommand { public: DeviceEnergyManagementResumeRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("resume-request", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagement::Commands::ResumeRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagement::Commands::ResumeRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DeviceEnergyManagement::Commands::ResumeRequest::Type mRequest; }; /* * Command ModifyForecastRequest */ class DeviceEnergyManagementModifyForecastRequest : public ClusterCommand { public: DeviceEnergyManagementModifyForecastRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("modify-forecast-request", credsIssuerConfig), mComplex_SlotAdjustments(&mRequest.slotAdjustments) { AddArgument("ForecastID", 0, UINT32_MAX, &mRequest.forecastID); AddArgument("SlotAdjustments", &mComplex_SlotAdjustments); AddArgument("Cause", 0, UINT8_MAX, &mRequest.cause); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagement::Commands::ModifyForecastRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagement::Commands::ModifyForecastRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DeviceEnergyManagement::Commands::ModifyForecastRequest::Type mRequest; TypedComplexArgument< chip::app::DataModel::List> mComplex_SlotAdjustments; }; /* * Command RequestConstraintBasedForecast */ class DeviceEnergyManagementRequestConstraintBasedForecast : public ClusterCommand { public: DeviceEnergyManagementRequestConstraintBasedForecast(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("request-constraint-based-forecast", credsIssuerConfig), mComplex_Constraints(&mRequest.constraints) { AddArgument("Constraints", &mComplex_Constraints); AddArgument("Cause", 0, UINT8_MAX, &mRequest.cause); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagement::Commands::RequestConstraintBasedForecast::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagement::Commands::RequestConstraintBasedForecast::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DeviceEnergyManagement::Commands::RequestConstraintBasedForecast::Type mRequest; TypedComplexArgument< chip::app::DataModel::List> mComplex_Constraints; }; /* * Command CancelRequest */ class DeviceEnergyManagementCancelRequest : public ClusterCommand { public: DeviceEnergyManagementCancelRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("cancel-request", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagement::Commands::CancelRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagement::Commands::CancelRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DeviceEnergyManagement::Commands::CancelRequest::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster EnergyEvse | 0x0099 | |------------------------------------------------------------------------------| | Commands: | | | * Disable | 0x01 | | * EnableCharging | 0x02 | | * EnableDischarging | 0x03 | | * StartDiagnostics | 0x04 | | * SetTargets | 0x05 | | * GetTargets | 0x06 | | * ClearTargets | 0x07 | |------------------------------------------------------------------------------| | Attributes: | | | * State | 0x0000 | | * SupplyState | 0x0001 | | * FaultState | 0x0002 | | * ChargingEnabledUntil | 0x0003 | | * DischargingEnabledUntil | 0x0004 | | * CircuitCapacity | 0x0005 | | * MinimumChargeCurrent | 0x0006 | | * MaximumChargeCurrent | 0x0007 | | * MaximumDischargeCurrent | 0x0008 | | * UserMaximumChargeCurrent | 0x0009 | | * RandomizationDelayWindow | 0x000A | | * NextChargeStartTime | 0x0023 | | * NextChargeTargetTime | 0x0024 | | * NextChargeRequiredEnergy | 0x0025 | | * NextChargeTargetSoC | 0x0026 | | * ApproximateEVEfficiency | 0x0027 | | * StateOfCharge | 0x0030 | | * BatteryCapacity | 0x0031 | | * VehicleID | 0x0032 | | * SessionID | 0x0040 | | * SessionDuration | 0x0041 | | * SessionEnergyCharged | 0x0042 | | * SessionEnergyDischarged | 0x0043 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * EVConnected | 0x0000 | | * EVNotDetected | 0x0001 | | * EnergyTransferStarted | 0x0002 | | * EnergyTransferStopped | 0x0003 | | * Fault | 0x0004 | | * Rfid | 0x0005 | \*----------------------------------------------------------------------------*/ /* * Command Disable */ class EnergyEvseDisable : public ClusterCommand { public: EnergyEvseDisable(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("disable", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvse::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EnergyEvse::Commands::Disable::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvse::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EnergyEvse::Commands::Disable::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::EnergyEvse::Commands::Disable::Type mRequest; }; /* * Command EnableCharging */ class EnergyEvseEnableCharging : public ClusterCommand { public: EnergyEvseEnableCharging(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("enable-charging", credsIssuerConfig) { AddArgument("ChargingEnabledUntil", 0, UINT32_MAX, &mRequest.chargingEnabledUntil); AddArgument("MinimumChargeCurrent", INT64_MIN, INT64_MAX, &mRequest.minimumChargeCurrent); AddArgument("MaximumChargeCurrent", INT64_MIN, INT64_MAX, &mRequest.maximumChargeCurrent); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvse::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EnergyEvse::Commands::EnableCharging::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvse::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EnergyEvse::Commands::EnableCharging::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::EnergyEvse::Commands::EnableCharging::Type mRequest; }; /* * Command EnableDischarging */ class EnergyEvseEnableDischarging : public ClusterCommand { public: EnergyEvseEnableDischarging(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("enable-discharging", credsIssuerConfig) { AddArgument("DischargingEnabledUntil", 0, UINT32_MAX, &mRequest.dischargingEnabledUntil); AddArgument("MaximumDischargeCurrent", INT64_MIN, INT64_MAX, &mRequest.maximumDischargeCurrent); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvse::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EnergyEvse::Commands::EnableDischarging::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvse::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EnergyEvse::Commands::EnableDischarging::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::EnergyEvse::Commands::EnableDischarging::Type mRequest; }; /* * Command StartDiagnostics */ class EnergyEvseStartDiagnostics : public ClusterCommand { public: EnergyEvseStartDiagnostics(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("start-diagnostics", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvse::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EnergyEvse::Commands::StartDiagnostics::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvse::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EnergyEvse::Commands::StartDiagnostics::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::EnergyEvse::Commands::StartDiagnostics::Type mRequest; }; /* * Command SetTargets */ class EnergyEvseSetTargets : public ClusterCommand { public: EnergyEvseSetTargets(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-targets", credsIssuerConfig), mComplex_ChargingTargetSchedules(&mRequest.chargingTargetSchedules) { AddArgument("ChargingTargetSchedules", &mComplex_ChargingTargetSchedules); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvse::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EnergyEvse::Commands::SetTargets::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvse::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EnergyEvse::Commands::SetTargets::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::EnergyEvse::Commands::SetTargets::Type mRequest; TypedComplexArgument< chip::app::DataModel::List> mComplex_ChargingTargetSchedules; }; /* * Command GetTargets */ class EnergyEvseGetTargets : public ClusterCommand { public: EnergyEvseGetTargets(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-targets", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvse::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EnergyEvse::Commands::GetTargets::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvse::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EnergyEvse::Commands::GetTargets::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::EnergyEvse::Commands::GetTargets::Type mRequest; }; /* * Command ClearTargets */ class EnergyEvseClearTargets : public ClusterCommand { public: EnergyEvseClearTargets(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("clear-targets", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvse::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EnergyEvse::Commands::ClearTargets::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvse::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EnergyEvse::Commands::ClearTargets::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::EnergyEvse::Commands::ClearTargets::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster EnergyPreference | 0x009B | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * EnergyBalances | 0x0000 | | * CurrentEnergyBalance | 0x0001 | | * EnergyPriorities | 0x0002 | | * LowPowerModeSensitivities | 0x0003 | | * CurrentLowPowerModeSensitivity | 0x0004 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster PowerTopology | 0x009C | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * AvailableEndpoints | 0x0000 | | * ActiveEndpoints | 0x0001 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster EnergyEvseMode | 0x009D | |------------------------------------------------------------------------------| | Commands: | | | * ChangeToMode | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * SupportedModes | 0x0000 | | * CurrentMode | 0x0001 | | * StartUpMode | 0x0002 | | * OnMode | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command ChangeToMode */ class EnergyEvseModeChangeToMode : public ClusterCommand { public: EnergyEvseModeChangeToMode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("change-to-mode", credsIssuerConfig) { AddArgument("NewMode", 0, UINT8_MAX, &mRequest.newMode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvseMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EnergyEvseMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvseMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::EnergyEvseMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::EnergyEvseMode::Commands::ChangeToMode::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster WaterHeaterMode | 0x009E | |------------------------------------------------------------------------------| | Commands: | | | * ChangeToMode | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * SupportedModes | 0x0000 | | * CurrentMode | 0x0001 | | * StartUpMode | 0x0002 | | * OnMode | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command ChangeToMode */ class WaterHeaterModeChangeToMode : public ClusterCommand { public: WaterHeaterModeChangeToMode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("change-to-mode", credsIssuerConfig) { AddArgument("NewMode", 0, UINT8_MAX, &mRequest.newMode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WaterHeaterMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WaterHeaterMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WaterHeaterMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WaterHeaterMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WaterHeaterMode::Commands::ChangeToMode::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster DeviceEnergyManagementMode | 0x009F | |------------------------------------------------------------------------------| | Commands: | | | * ChangeToMode | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * SupportedModes | 0x0000 | | * CurrentMode | 0x0001 | | * StartUpMode | 0x0002 | | * OnMode | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command ChangeToMode */ class DeviceEnergyManagementModeChangeToMode : public ClusterCommand { public: DeviceEnergyManagementModeChangeToMode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("change-to-mode", credsIssuerConfig) { AddArgument("NewMode", 0, UINT8_MAX, &mRequest.newMode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagementMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagementMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagementMode::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DeviceEnergyManagementMode::Commands::ChangeToMode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DeviceEnergyManagementMode::Commands::ChangeToMode::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster DoorLock | 0x0101 | |------------------------------------------------------------------------------| | Commands: | | | * LockDoor | 0x00 | | * UnlockDoor | 0x01 | | * UnlockWithTimeout | 0x03 | | * SetWeekDaySchedule | 0x0B | | * GetWeekDaySchedule | 0x0C | | * ClearWeekDaySchedule | 0x0D | | * SetYearDaySchedule | 0x0E | | * GetYearDaySchedule | 0x0F | | * ClearYearDaySchedule | 0x10 | | * SetHolidaySchedule | 0x11 | | * GetHolidaySchedule | 0x12 | | * ClearHolidaySchedule | 0x13 | | * SetUser | 0x1A | | * GetUser | 0x1B | | * ClearUser | 0x1D | | * SetCredential | 0x22 | | * GetCredentialStatus | 0x24 | | * ClearCredential | 0x26 | | * UnboltDoor | 0x27 | | * SetAliroReaderConfig | 0x28 | | * ClearAliroReaderConfig | 0x29 | |------------------------------------------------------------------------------| | Attributes: | | | * LockState | 0x0000 | | * LockType | 0x0001 | | * ActuatorEnabled | 0x0002 | | * DoorState | 0x0003 | | * DoorOpenEvents | 0x0004 | | * DoorClosedEvents | 0x0005 | | * OpenPeriod | 0x0006 | | * NumberOfTotalUsersSupported | 0x0011 | | * NumberOfPINUsersSupported | 0x0012 | | * NumberOfRFIDUsersSupported | 0x0013 | | * NumberOfWeekDaySchedulesSupportedPerUser | 0x0014 | | * NumberOfYearDaySchedulesSupportedPerUser | 0x0015 | | * NumberOfHolidaySchedulesSupported | 0x0016 | | * MaxPINCodeLength | 0x0017 | | * MinPINCodeLength | 0x0018 | | * MaxRFIDCodeLength | 0x0019 | | * MinRFIDCodeLength | 0x001A | | * CredentialRulesSupport | 0x001B | | * NumberOfCredentialsSupportedPerUser | 0x001C | | * Language | 0x0021 | | * LEDSettings | 0x0022 | | * AutoRelockTime | 0x0023 | | * SoundVolume | 0x0024 | | * OperatingMode | 0x0025 | | * SupportedOperatingModes | 0x0026 | | * DefaultConfigurationRegister | 0x0027 | | * EnableLocalProgramming | 0x0028 | | * EnableOneTouchLocking | 0x0029 | | * EnableInsideStatusLED | 0x002A | | * EnablePrivacyModeButton | 0x002B | | * LocalProgrammingFeatures | 0x002C | | * WrongCodeEntryLimit | 0x0030 | | * UserCodeTemporaryDisableTime | 0x0031 | | * SendPINOverTheAir | 0x0032 | | * RequirePINforRemoteOperation | 0x0033 | | * ExpiringUserTimeout | 0x0035 | | * AliroReaderVerificationKey | 0x0080 | | * AliroReaderGroupIdentifier | 0x0081 | | * AliroReaderGroupSubIdentifier | 0x0082 | | * AliroExpeditedTransactionSupportedProtocolVersions | 0x0083 | | * AliroGroupResolvingKey | 0x0084 | | * AliroSupportedBLEUWBProtocolVersions | 0x0085 | | * AliroBLEAdvertisingVersion | 0x0086 | | * NumberOfAliroCredentialIssuerKeysSupported | 0x0087 | | * NumberOfAliroEndpointKeysSupported | 0x0088 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * DoorLockAlarm | 0x0000 | | * DoorStateChange | 0x0001 | | * LockOperation | 0x0002 | | * LockOperationError | 0x0003 | | * LockUserChange | 0x0004 | \*----------------------------------------------------------------------------*/ /* * Command LockDoor */ class DoorLockLockDoor : public ClusterCommand { public: DoorLockLockDoor(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("lock-door", credsIssuerConfig) { AddArgument("PINCode", &mRequest.PINCode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::LockDoor::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::LockDoor::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::LockDoor::Type mRequest; }; /* * Command UnlockDoor */ class DoorLockUnlockDoor : public ClusterCommand { public: DoorLockUnlockDoor(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("unlock-door", credsIssuerConfig) { AddArgument("PINCode", &mRequest.PINCode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::UnlockDoor::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::UnlockDoor::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::UnlockDoor::Type mRequest; }; /* * Command UnlockWithTimeout */ class DoorLockUnlockWithTimeout : public ClusterCommand { public: DoorLockUnlockWithTimeout(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("unlock-with-timeout", credsIssuerConfig) { AddArgument("Timeout", 0, UINT16_MAX, &mRequest.timeout); AddArgument("PINCode", &mRequest.PINCode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::UnlockWithTimeout::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::UnlockWithTimeout::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::UnlockWithTimeout::Type mRequest; }; /* * Command SetWeekDaySchedule */ class DoorLockSetWeekDaySchedule : public ClusterCommand { public: DoorLockSetWeekDaySchedule(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-week-day-schedule", credsIssuerConfig) { AddArgument("WeekDayIndex", 0, UINT8_MAX, &mRequest.weekDayIndex); AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); AddArgument("DaysMask", 0, UINT8_MAX, &mRequest.daysMask); AddArgument("StartHour", 0, UINT8_MAX, &mRequest.startHour); AddArgument("StartMinute", 0, UINT8_MAX, &mRequest.startMinute); AddArgument("EndHour", 0, UINT8_MAX, &mRequest.endHour); AddArgument("EndMinute", 0, UINT8_MAX, &mRequest.endMinute); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::SetWeekDaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::SetWeekDaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::SetWeekDaySchedule::Type mRequest; }; /* * Command GetWeekDaySchedule */ class DoorLockGetWeekDaySchedule : public ClusterCommand { public: DoorLockGetWeekDaySchedule(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-week-day-schedule", credsIssuerConfig) { AddArgument("WeekDayIndex", 0, UINT8_MAX, &mRequest.weekDayIndex); AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::GetWeekDaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::GetWeekDaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::GetWeekDaySchedule::Type mRequest; }; /* * Command ClearWeekDaySchedule */ class DoorLockClearWeekDaySchedule : public ClusterCommand { public: DoorLockClearWeekDaySchedule(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("clear-week-day-schedule", credsIssuerConfig) { AddArgument("WeekDayIndex", 0, UINT8_MAX, &mRequest.weekDayIndex); AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::ClearWeekDaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::ClearWeekDaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::ClearWeekDaySchedule::Type mRequest; }; /* * Command SetYearDaySchedule */ class DoorLockSetYearDaySchedule : public ClusterCommand { public: DoorLockSetYearDaySchedule(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-year-day-schedule", credsIssuerConfig) { AddArgument("YearDayIndex", 0, UINT8_MAX, &mRequest.yearDayIndex); AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); AddArgument("LocalStartTime", 0, UINT32_MAX, &mRequest.localStartTime); AddArgument("LocalEndTime", 0, UINT32_MAX, &mRequest.localEndTime); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::SetYearDaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::SetYearDaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::SetYearDaySchedule::Type mRequest; }; /* * Command GetYearDaySchedule */ class DoorLockGetYearDaySchedule : public ClusterCommand { public: DoorLockGetYearDaySchedule(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-year-day-schedule", credsIssuerConfig) { AddArgument("YearDayIndex", 0, UINT8_MAX, &mRequest.yearDayIndex); AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::GetYearDaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::GetYearDaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::GetYearDaySchedule::Type mRequest; }; /* * Command ClearYearDaySchedule */ class DoorLockClearYearDaySchedule : public ClusterCommand { public: DoorLockClearYearDaySchedule(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("clear-year-day-schedule", credsIssuerConfig) { AddArgument("YearDayIndex", 0, UINT8_MAX, &mRequest.yearDayIndex); AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::ClearYearDaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::ClearYearDaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::ClearYearDaySchedule::Type mRequest; }; /* * Command SetHolidaySchedule */ class DoorLockSetHolidaySchedule : public ClusterCommand { public: DoorLockSetHolidaySchedule(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-holiday-schedule", credsIssuerConfig) { AddArgument("HolidayIndex", 0, UINT8_MAX, &mRequest.holidayIndex); AddArgument("LocalStartTime", 0, UINT32_MAX, &mRequest.localStartTime); AddArgument("LocalEndTime", 0, UINT32_MAX, &mRequest.localEndTime); AddArgument("OperatingMode", 0, UINT8_MAX, &mRequest.operatingMode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::SetHolidaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::SetHolidaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::SetHolidaySchedule::Type mRequest; }; /* * Command GetHolidaySchedule */ class DoorLockGetHolidaySchedule : public ClusterCommand { public: DoorLockGetHolidaySchedule(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-holiday-schedule", credsIssuerConfig) { AddArgument("HolidayIndex", 0, UINT8_MAX, &mRequest.holidayIndex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::GetHolidaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::GetHolidaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::GetHolidaySchedule::Type mRequest; }; /* * Command ClearHolidaySchedule */ class DoorLockClearHolidaySchedule : public ClusterCommand { public: DoorLockClearHolidaySchedule(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("clear-holiday-schedule", credsIssuerConfig) { AddArgument("HolidayIndex", 0, UINT8_MAX, &mRequest.holidayIndex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::ClearHolidaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::ClearHolidaySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::ClearHolidaySchedule::Type mRequest; }; /* * Command SetUser */ class DoorLockSetUser : public ClusterCommand { public: DoorLockSetUser(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-user", credsIssuerConfig) { AddArgument("OperationType", 0, UINT8_MAX, &mRequest.operationType); AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); AddArgument("UserName", &mRequest.userName); AddArgument("UserUniqueID", 0, UINT32_MAX, &mRequest.userUniqueID); AddArgument("UserStatus", 0, UINT8_MAX, &mRequest.userStatus); AddArgument("UserType", 0, UINT8_MAX, &mRequest.userType); AddArgument("CredentialRule", 0, UINT8_MAX, &mRequest.credentialRule); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::SetUser::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::SetUser::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::SetUser::Type mRequest; }; /* * Command GetUser */ class DoorLockGetUser : public ClusterCommand { public: DoorLockGetUser(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-user", credsIssuerConfig) { AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::GetUser::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::GetUser::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::GetUser::Type mRequest; }; /* * Command ClearUser */ class DoorLockClearUser : public ClusterCommand { public: DoorLockClearUser(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("clear-user", credsIssuerConfig) { AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::ClearUser::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::ClearUser::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::ClearUser::Type mRequest; }; /* * Command SetCredential */ class DoorLockSetCredential : public ClusterCommand { public: DoorLockSetCredential(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-credential", credsIssuerConfig), mComplex_Credential(&mRequest.credential) { AddArgument("OperationType", 0, UINT8_MAX, &mRequest.operationType); AddArgument("Credential", &mComplex_Credential); AddArgument("CredentialData", &mRequest.credentialData); AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); AddArgument("UserStatus", 0, UINT8_MAX, &mRequest.userStatus); AddArgument("UserType", 0, UINT8_MAX, &mRequest.userType); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::SetCredential::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::SetCredential::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::SetCredential::Type mRequest; TypedComplexArgument mComplex_Credential; }; /* * Command GetCredentialStatus */ class DoorLockGetCredentialStatus : public ClusterCommand { public: DoorLockGetCredentialStatus(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-credential-status", credsIssuerConfig), mComplex_Credential(&mRequest.credential) { AddArgument("Credential", &mComplex_Credential); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::GetCredentialStatus::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::GetCredentialStatus::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::GetCredentialStatus::Type mRequest; TypedComplexArgument mComplex_Credential; }; /* * Command ClearCredential */ class DoorLockClearCredential : public ClusterCommand { public: DoorLockClearCredential(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("clear-credential", credsIssuerConfig), mComplex_Credential(&mRequest.credential) { AddArgument("Credential", &mComplex_Credential); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::ClearCredential::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::ClearCredential::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::ClearCredential::Type mRequest; TypedComplexArgument> mComplex_Credential; }; /* * Command UnboltDoor */ class DoorLockUnboltDoor : public ClusterCommand { public: DoorLockUnboltDoor(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("unbolt-door", credsIssuerConfig) { AddArgument("PINCode", &mRequest.PINCode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::UnboltDoor::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::UnboltDoor::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::UnboltDoor::Type mRequest; }; /* * Command SetAliroReaderConfig */ class DoorLockSetAliroReaderConfig : public ClusterCommand { public: DoorLockSetAliroReaderConfig(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-aliro-reader-config", credsIssuerConfig) { AddArgument("SigningKey", &mRequest.signingKey); AddArgument("VerificationKey", &mRequest.verificationKey); AddArgument("GroupIdentifier", &mRequest.groupIdentifier); AddArgument("GroupResolvingKey", &mRequest.groupResolvingKey); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::SetAliroReaderConfig::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::SetAliroReaderConfig::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::SetAliroReaderConfig::Type mRequest; }; /* * Command ClearAliroReaderConfig */ class DoorLockClearAliroReaderConfig : public ClusterCommand { public: DoorLockClearAliroReaderConfig(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("clear-aliro-reader-config", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::ClearAliroReaderConfig::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::DoorLock::Id; constexpr chip::CommandId commandId = chip::app::Clusters::DoorLock::Commands::ClearAliroReaderConfig::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::DoorLock::Commands::ClearAliroReaderConfig::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster WindowCovering | 0x0102 | |------------------------------------------------------------------------------| | Commands: | | | * UpOrOpen | 0x00 | | * DownOrClose | 0x01 | | * StopMotion | 0x02 | | * GoToLiftValue | 0x04 | | * GoToLiftPercentage | 0x05 | | * GoToTiltValue | 0x07 | | * GoToTiltPercentage | 0x08 | |------------------------------------------------------------------------------| | Attributes: | | | * Type | 0x0000 | | * PhysicalClosedLimitLift | 0x0001 | | * PhysicalClosedLimitTilt | 0x0002 | | * CurrentPositionLift | 0x0003 | | * CurrentPositionTilt | 0x0004 | | * NumberOfActuationsLift | 0x0005 | | * NumberOfActuationsTilt | 0x0006 | | * ConfigStatus | 0x0007 | | * CurrentPositionLiftPercentage | 0x0008 | | * CurrentPositionTiltPercentage | 0x0009 | | * OperationalStatus | 0x000A | | * TargetPositionLiftPercent100ths | 0x000B | | * TargetPositionTiltPercent100ths | 0x000C | | * EndProductType | 0x000D | | * CurrentPositionLiftPercent100ths | 0x000E | | * CurrentPositionTiltPercent100ths | 0x000F | | * InstalledOpenLimitLift | 0x0010 | | * InstalledClosedLimitLift | 0x0011 | | * InstalledOpenLimitTilt | 0x0012 | | * InstalledClosedLimitTilt | 0x0013 | | * Mode | 0x0017 | | * SafetyStatus | 0x001A | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command UpOrOpen */ class WindowCoveringUpOrOpen : public ClusterCommand { public: WindowCoveringUpOrOpen(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("up-or-open", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WindowCovering::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WindowCovering::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type mRequest; }; /* * Command DownOrClose */ class WindowCoveringDownOrClose : public ClusterCommand { public: WindowCoveringDownOrClose(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("down-or-close", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WindowCovering::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WindowCovering::Commands::DownOrClose::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WindowCovering::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WindowCovering::Commands::DownOrClose::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WindowCovering::Commands::DownOrClose::Type mRequest; }; /* * Command StopMotion */ class WindowCoveringStopMotion : public ClusterCommand { public: WindowCoveringStopMotion(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop-motion", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WindowCovering::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WindowCovering::Commands::StopMotion::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WindowCovering::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WindowCovering::Commands::StopMotion::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WindowCovering::Commands::StopMotion::Type mRequest; }; /* * Command GoToLiftValue */ class WindowCoveringGoToLiftValue : public ClusterCommand { public: WindowCoveringGoToLiftValue(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("go-to-lift-value", credsIssuerConfig) { AddArgument("LiftValue", 0, UINT16_MAX, &mRequest.liftValue); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WindowCovering::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WindowCovering::Commands::GoToLiftValue::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WindowCovering::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WindowCovering::Commands::GoToLiftValue::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WindowCovering::Commands::GoToLiftValue::Type mRequest; }; /* * Command GoToLiftPercentage */ class WindowCoveringGoToLiftPercentage : public ClusterCommand { public: WindowCoveringGoToLiftPercentage(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("go-to-lift-percentage", credsIssuerConfig) { AddArgument("LiftPercent100thsValue", 0, UINT16_MAX, &mRequest.liftPercent100thsValue); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WindowCovering::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WindowCovering::Commands::GoToLiftPercentage::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WindowCovering::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WindowCovering::Commands::GoToLiftPercentage::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WindowCovering::Commands::GoToLiftPercentage::Type mRequest; }; /* * Command GoToTiltValue */ class WindowCoveringGoToTiltValue : public ClusterCommand { public: WindowCoveringGoToTiltValue(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("go-to-tilt-value", credsIssuerConfig) { AddArgument("TiltValue", 0, UINT16_MAX, &mRequest.tiltValue); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WindowCovering::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WindowCovering::Commands::GoToTiltValue::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WindowCovering::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WindowCovering::Commands::GoToTiltValue::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WindowCovering::Commands::GoToTiltValue::Type mRequest; }; /* * Command GoToTiltPercentage */ class WindowCoveringGoToTiltPercentage : public ClusterCommand { public: WindowCoveringGoToTiltPercentage(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("go-to-tilt-percentage", credsIssuerConfig) { AddArgument("TiltPercent100thsValue", 0, UINT16_MAX, &mRequest.tiltPercent100thsValue); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WindowCovering::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WindowCovering::Commands::GoToTiltPercentage::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WindowCovering::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WindowCovering::Commands::GoToTiltPercentage::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WindowCovering::Commands::GoToTiltPercentage::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster ServiceArea | 0x0150 | |------------------------------------------------------------------------------| | Commands: | | | * SelectAreas | 0x00 | | * SkipArea | 0x02 | |------------------------------------------------------------------------------| | Attributes: | | | * SupportedAreas | 0x0000 | | * SupportedMaps | 0x0001 | | * SelectedAreas | 0x0002 | | * CurrentArea | 0x0003 | | * EstimatedEndTime | 0x0004 | | * Progress | 0x0005 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command SelectAreas */ class ServiceAreaSelectAreas : public ClusterCommand { public: ServiceAreaSelectAreas(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("select-areas", credsIssuerConfig), mComplex_NewAreas(&mRequest.newAreas) { AddArgument("NewAreas", &mComplex_NewAreas); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ServiceArea::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ServiceArea::Commands::SelectAreas::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ServiceArea::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ServiceArea::Commands::SelectAreas::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ServiceArea::Commands::SelectAreas::Type mRequest; TypedComplexArgument> mComplex_NewAreas; }; /* * Command SkipArea */ class ServiceAreaSkipArea : public ClusterCommand { public: ServiceAreaSkipArea(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("skip-area", credsIssuerConfig) { AddArgument("SkippedArea", 0, UINT32_MAX, &mRequest.skippedArea); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ServiceArea::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ServiceArea::Commands::SkipArea::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ServiceArea::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ServiceArea::Commands::SkipArea::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ServiceArea::Commands::SkipArea::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster PumpConfigurationAndControl | 0x0200 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * MaxPressure | 0x0000 | | * MaxSpeed | 0x0001 | | * MaxFlow | 0x0002 | | * MinConstPressure | 0x0003 | | * MaxConstPressure | 0x0004 | | * MinCompPressure | 0x0005 | | * MaxCompPressure | 0x0006 | | * MinConstSpeed | 0x0007 | | * MaxConstSpeed | 0x0008 | | * MinConstFlow | 0x0009 | | * MaxConstFlow | 0x000A | | * MinConstTemp | 0x000B | | * MaxConstTemp | 0x000C | | * PumpStatus | 0x0010 | | * EffectiveOperationMode | 0x0011 | | * EffectiveControlMode | 0x0012 | | * Capacity | 0x0013 | | * Speed | 0x0014 | | * LifetimeRunningHours | 0x0015 | | * Power | 0x0016 | | * LifetimeEnergyConsumed | 0x0017 | | * OperationMode | 0x0020 | | * ControlMode | 0x0021 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * SupplyVoltageLow | 0x0000 | | * SupplyVoltageHigh | 0x0001 | | * PowerMissingPhase | 0x0002 | | * SystemPressureLow | 0x0003 | | * SystemPressureHigh | 0x0004 | | * DryRunning | 0x0005 | | * MotorTemperatureHigh | 0x0006 | | * PumpMotorFatalFailure | 0x0007 | | * ElectronicTemperatureHigh | 0x0008 | | * PumpBlocked | 0x0009 | | * SensorFailure | 0x000A | | * ElectronicNonFatalFailure | 0x000B | | * ElectronicFatalFailure | 0x000C | | * GeneralFault | 0x000D | | * Leakage | 0x000E | | * AirDetection | 0x000F | | * TurbineOperation | 0x0010 | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster Thermostat | 0x0201 | |------------------------------------------------------------------------------| | Commands: | | | * SetpointRaiseLower | 0x00 | | * SetWeeklySchedule | 0x01 | | * GetWeeklySchedule | 0x02 | | * ClearWeeklySchedule | 0x03 | | * SetActiveScheduleRequest | 0x05 | | * SetActivePresetRequest | 0x06 | | * AtomicRequest | 0xFE | |------------------------------------------------------------------------------| | Attributes: | | | * LocalTemperature | 0x0000 | | * OutdoorTemperature | 0x0001 | | * Occupancy | 0x0002 | | * AbsMinHeatSetpointLimit | 0x0003 | | * AbsMaxHeatSetpointLimit | 0x0004 | | * AbsMinCoolSetpointLimit | 0x0005 | | * AbsMaxCoolSetpointLimit | 0x0006 | | * PICoolingDemand | 0x0007 | | * PIHeatingDemand | 0x0008 | | * HVACSystemTypeConfiguration | 0x0009 | | * LocalTemperatureCalibration | 0x0010 | | * OccupiedCoolingSetpoint | 0x0011 | | * OccupiedHeatingSetpoint | 0x0012 | | * UnoccupiedCoolingSetpoint | 0x0013 | | * UnoccupiedHeatingSetpoint | 0x0014 | | * MinHeatSetpointLimit | 0x0015 | | * MaxHeatSetpointLimit | 0x0016 | | * MinCoolSetpointLimit | 0x0017 | | * MaxCoolSetpointLimit | 0x0018 | | * MinSetpointDeadBand | 0x0019 | | * RemoteSensing | 0x001A | | * ControlSequenceOfOperation | 0x001B | | * SystemMode | 0x001C | | * ThermostatRunningMode | 0x001E | | * StartOfWeek | 0x0020 | | * NumberOfWeeklyTransitions | 0x0021 | | * NumberOfDailyTransitions | 0x0022 | | * TemperatureSetpointHold | 0x0023 | | * TemperatureSetpointHoldDuration | 0x0024 | | * ThermostatProgrammingOperationMode | 0x0025 | | * ThermostatRunningState | 0x0029 | | * SetpointChangeSource | 0x0030 | | * SetpointChangeAmount | 0x0031 | | * SetpointChangeSourceTimestamp | 0x0032 | | * OccupiedSetback | 0x0034 | | * OccupiedSetbackMin | 0x0035 | | * OccupiedSetbackMax | 0x0036 | | * UnoccupiedSetback | 0x0037 | | * UnoccupiedSetbackMin | 0x0038 | | * UnoccupiedSetbackMax | 0x0039 | | * EmergencyHeatDelta | 0x003A | | * ACType | 0x0040 | | * ACCapacity | 0x0041 | | * ACRefrigerantType | 0x0042 | | * ACCompressorType | 0x0043 | | * ACErrorCode | 0x0044 | | * ACLouverPosition | 0x0045 | | * ACCoilTemperature | 0x0046 | | * ACCapacityformat | 0x0047 | | * PresetTypes | 0x0048 | | * ScheduleTypes | 0x0049 | | * NumberOfPresets | 0x004A | | * NumberOfSchedules | 0x004B | | * NumberOfScheduleTransitions | 0x004C | | * NumberOfScheduleTransitionPerDay | 0x004D | | * ActivePresetHandle | 0x004E | | * ActiveScheduleHandle | 0x004F | | * Presets | 0x0050 | | * Schedules | 0x0051 | | * SetpointHoldExpiryTimestamp | 0x0052 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command SetpointRaiseLower */ class ThermostatSetpointRaiseLower : public ClusterCommand { public: ThermostatSetpointRaiseLower(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("setpoint-raise-lower", credsIssuerConfig) { AddArgument("Mode", 0, UINT8_MAX, &mRequest.mode); AddArgument("Amount", INT8_MIN, INT8_MAX, &mRequest.amount); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::SetpointRaiseLower::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::SetpointRaiseLower::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Thermostat::Commands::SetpointRaiseLower::Type mRequest; }; /* * Command SetWeeklySchedule */ class ThermostatSetWeeklySchedule : public ClusterCommand { public: ThermostatSetWeeklySchedule(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-weekly-schedule", credsIssuerConfig), mComplex_Transitions(&mRequest.transitions) { AddArgument("NumberOfTransitionsForSequence", 0, UINT8_MAX, &mRequest.numberOfTransitionsForSequence); AddArgument("DayOfWeekForSequence", 0, UINT8_MAX, &mRequest.dayOfWeekForSequence); AddArgument("ModeForSequence", 0, UINT8_MAX, &mRequest.modeForSequence); AddArgument("Transitions", &mComplex_Transitions); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::SetWeeklySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::SetWeeklySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Thermostat::Commands::SetWeeklySchedule::Type mRequest; TypedComplexArgument< chip::app::DataModel::List> mComplex_Transitions; }; /* * Command GetWeeklySchedule */ class ThermostatGetWeeklySchedule : public ClusterCommand { public: ThermostatGetWeeklySchedule(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-weekly-schedule", credsIssuerConfig) { AddArgument("DaysToReturn", 0, UINT8_MAX, &mRequest.daysToReturn); AddArgument("ModeToReturn", 0, UINT8_MAX, &mRequest.modeToReturn); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::GetWeeklySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::GetWeeklySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Thermostat::Commands::GetWeeklySchedule::Type mRequest; }; /* * Command ClearWeeklySchedule */ class ThermostatClearWeeklySchedule : public ClusterCommand { public: ThermostatClearWeeklySchedule(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("clear-weekly-schedule", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::ClearWeeklySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::ClearWeeklySchedule::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Thermostat::Commands::ClearWeeklySchedule::Type mRequest; }; /* * Command SetActiveScheduleRequest */ class ThermostatSetActiveScheduleRequest : public ClusterCommand { public: ThermostatSetActiveScheduleRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-active-schedule-request", credsIssuerConfig) { AddArgument("ScheduleHandle", &mRequest.scheduleHandle); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::SetActiveScheduleRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::SetActiveScheduleRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Thermostat::Commands::SetActiveScheduleRequest::Type mRequest; }; /* * Command SetActivePresetRequest */ class ThermostatSetActivePresetRequest : public ClusterCommand { public: ThermostatSetActivePresetRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-active-preset-request", credsIssuerConfig) { AddArgument("PresetHandle", &mRequest.presetHandle); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::SetActivePresetRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::SetActivePresetRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Thermostat::Commands::SetActivePresetRequest::Type mRequest; }; /* * Command AtomicRequest */ class ThermostatAtomicRequest : public ClusterCommand { public: ThermostatAtomicRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("atomic-request", credsIssuerConfig), mComplex_AttributeRequests(&mRequest.attributeRequests) { AddArgument("RequestType", 0, UINT8_MAX, &mRequest.requestType); AddArgument("AttributeRequests", &mComplex_AttributeRequests); AddArgument("Timeout", 0, UINT16_MAX, &mRequest.timeout); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::AtomicRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::AtomicRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Thermostat::Commands::AtomicRequest::Type mRequest; TypedComplexArgument> mComplex_AttributeRequests; }; /*----------------------------------------------------------------------------*\ | Cluster FanControl | 0x0202 | |------------------------------------------------------------------------------| | Commands: | | | * Step | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * FanMode | 0x0000 | | * FanModeSequence | 0x0001 | | * PercentSetting | 0x0002 | | * PercentCurrent | 0x0003 | | * SpeedMax | 0x0004 | | * SpeedSetting | 0x0005 | | * SpeedCurrent | 0x0006 | | * RockSupport | 0x0007 | | * RockSetting | 0x0008 | | * WindSupport | 0x0009 | | * WindSetting | 0x000A | | * AirflowDirection | 0x000B | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command Step */ class FanControlStep : public ClusterCommand { public: FanControlStep(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("step", credsIssuerConfig) { AddArgument("Direction", 0, UINT8_MAX, &mRequest.direction); AddArgument("Wrap", 0, 1, &mRequest.wrap); AddArgument("LowestOff", 0, 1, &mRequest.lowestOff); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::FanControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::FanControl::Commands::Step::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::FanControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::FanControl::Commands::Step::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::FanControl::Commands::Step::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster ThermostatUserInterfaceConfiguration | 0x0204 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * TemperatureDisplayMode | 0x0000 | | * KeypadLockout | 0x0001 | | * ScheduleProgrammingVisibility | 0x0002 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster ColorControl | 0x0300 | |------------------------------------------------------------------------------| | Commands: | | | * MoveToHue | 0x00 | | * MoveHue | 0x01 | | * StepHue | 0x02 | | * MoveToSaturation | 0x03 | | * MoveSaturation | 0x04 | | * StepSaturation | 0x05 | | * MoveToHueAndSaturation | 0x06 | | * MoveToColor | 0x07 | | * MoveColor | 0x08 | | * StepColor | 0x09 | | * MoveToColorTemperature | 0x0A | | * EnhancedMoveToHue | 0x40 | | * EnhancedMoveHue | 0x41 | | * EnhancedStepHue | 0x42 | | * EnhancedMoveToHueAndSaturation | 0x43 | | * ColorLoopSet | 0x44 | | * StopMoveStep | 0x47 | | * MoveColorTemperature | 0x4B | | * StepColorTemperature | 0x4C | |------------------------------------------------------------------------------| | Attributes: | | | * CurrentHue | 0x0000 | | * CurrentSaturation | 0x0001 | | * RemainingTime | 0x0002 | | * CurrentX | 0x0003 | | * CurrentY | 0x0004 | | * DriftCompensation | 0x0005 | | * CompensationText | 0x0006 | | * ColorTemperatureMireds | 0x0007 | | * ColorMode | 0x0008 | | * Options | 0x000F | | * NumberOfPrimaries | 0x0010 | | * Primary1X | 0x0011 | | * Primary1Y | 0x0012 | | * Primary1Intensity | 0x0013 | | * Primary2X | 0x0015 | | * Primary2Y | 0x0016 | | * Primary2Intensity | 0x0017 | | * Primary3X | 0x0019 | | * Primary3Y | 0x001A | | * Primary3Intensity | 0x001B | | * Primary4X | 0x0020 | | * Primary4Y | 0x0021 | | * Primary4Intensity | 0x0022 | | * Primary5X | 0x0024 | | * Primary5Y | 0x0025 | | * Primary5Intensity | 0x0026 | | * Primary6X | 0x0028 | | * Primary6Y | 0x0029 | | * Primary6Intensity | 0x002A | | * WhitePointX | 0x0030 | | * WhitePointY | 0x0031 | | * ColorPointRX | 0x0032 | | * ColorPointRY | 0x0033 | | * ColorPointRIntensity | 0x0034 | | * ColorPointGX | 0x0036 | | * ColorPointGY | 0x0037 | | * ColorPointGIntensity | 0x0038 | | * ColorPointBX | 0x003A | | * ColorPointBY | 0x003B | | * ColorPointBIntensity | 0x003C | | * EnhancedCurrentHue | 0x4000 | | * EnhancedColorMode | 0x4001 | | * ColorLoopActive | 0x4002 | | * ColorLoopDirection | 0x4003 | | * ColorLoopTime | 0x4004 | | * ColorLoopStartEnhancedHue | 0x4005 | | * ColorLoopStoredEnhancedHue | 0x4006 | | * ColorCapabilities | 0x400A | | * ColorTempPhysicalMinMireds | 0x400B | | * ColorTempPhysicalMaxMireds | 0x400C | | * CoupleColorTempToLevelMinMireds | 0x400D | | * StartUpColorTemperatureMireds | 0x4010 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command MoveToHue */ class ColorControlMoveToHue : public ClusterCommand { public: ColorControlMoveToHue(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-to-hue", credsIssuerConfig) { AddArgument("Hue", 0, UINT8_MAX, &mRequest.hue); AddArgument("Direction", 0, UINT8_MAX, &mRequest.direction); AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveToHue::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveToHue::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::MoveToHue::Type mRequest; }; /* * Command MoveHue */ class ColorControlMoveHue : public ClusterCommand { public: ColorControlMoveHue(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-hue", credsIssuerConfig) { AddArgument("MoveMode", 0, UINT8_MAX, &mRequest.moveMode); AddArgument("Rate", 0, UINT8_MAX, &mRequest.rate); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveHue::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveHue::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::MoveHue::Type mRequest; }; /* * Command StepHue */ class ColorControlStepHue : public ClusterCommand { public: ColorControlStepHue(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("step-hue", credsIssuerConfig) { AddArgument("StepMode", 0, UINT8_MAX, &mRequest.stepMode); AddArgument("StepSize", 0, UINT8_MAX, &mRequest.stepSize); AddArgument("TransitionTime", 0, UINT8_MAX, &mRequest.transitionTime); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::StepHue::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::StepHue::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::StepHue::Type mRequest; }; /* * Command MoveToSaturation */ class ColorControlMoveToSaturation : public ClusterCommand { public: ColorControlMoveToSaturation(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-to-saturation", credsIssuerConfig) { AddArgument("Saturation", 0, UINT8_MAX, &mRequest.saturation); AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveToSaturation::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveToSaturation::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::MoveToSaturation::Type mRequest; }; /* * Command MoveSaturation */ class ColorControlMoveSaturation : public ClusterCommand { public: ColorControlMoveSaturation(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-saturation", credsIssuerConfig) { AddArgument("MoveMode", 0, UINT8_MAX, &mRequest.moveMode); AddArgument("Rate", 0, UINT8_MAX, &mRequest.rate); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveSaturation::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveSaturation::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type mRequest; }; /* * Command StepSaturation */ class ColorControlStepSaturation : public ClusterCommand { public: ColorControlStepSaturation(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("step-saturation", credsIssuerConfig) { AddArgument("StepMode", 0, UINT8_MAX, &mRequest.stepMode); AddArgument("StepSize", 0, UINT8_MAX, &mRequest.stepSize); AddArgument("TransitionTime", 0, UINT8_MAX, &mRequest.transitionTime); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::StepSaturation::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::StepSaturation::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::StepSaturation::Type mRequest; }; /* * Command MoveToHueAndSaturation */ class ColorControlMoveToHueAndSaturation : public ClusterCommand { public: ColorControlMoveToHueAndSaturation(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-to-hue-and-saturation", credsIssuerConfig) { AddArgument("Hue", 0, UINT8_MAX, &mRequest.hue); AddArgument("Saturation", 0, UINT8_MAX, &mRequest.saturation); AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveToHueAndSaturation::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveToHueAndSaturation::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::MoveToHueAndSaturation::Type mRequest; }; /* * Command MoveToColor */ class ColorControlMoveToColor : public ClusterCommand { public: ColorControlMoveToColor(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-to-color", credsIssuerConfig) { AddArgument("ColorX", 0, UINT16_MAX, &mRequest.colorX); AddArgument("ColorY", 0, UINT16_MAX, &mRequest.colorY); AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveToColor::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveToColor::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::MoveToColor::Type mRequest; }; /* * Command MoveColor */ class ColorControlMoveColor : public ClusterCommand { public: ColorControlMoveColor(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-color", credsIssuerConfig) { AddArgument("RateX", INT16_MIN, INT16_MAX, &mRequest.rateX); AddArgument("RateY", INT16_MIN, INT16_MAX, &mRequest.rateY); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveColor::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveColor::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::MoveColor::Type mRequest; }; /* * Command StepColor */ class ColorControlStepColor : public ClusterCommand { public: ColorControlStepColor(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("step-color", credsIssuerConfig) { AddArgument("StepX", INT16_MIN, INT16_MAX, &mRequest.stepX); AddArgument("StepY", INT16_MIN, INT16_MAX, &mRequest.stepY); AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::StepColor::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::StepColor::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::StepColor::Type mRequest; }; /* * Command MoveToColorTemperature */ class ColorControlMoveToColorTemperature : public ClusterCommand { public: ColorControlMoveToColorTemperature(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-to-color-temperature", credsIssuerConfig) { AddArgument("ColorTemperatureMireds", 0, UINT16_MAX, &mRequest.colorTemperatureMireds); AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveToColorTemperature::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveToColorTemperature::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::MoveToColorTemperature::Type mRequest; }; /* * Command EnhancedMoveToHue */ class ColorControlEnhancedMoveToHue : public ClusterCommand { public: ColorControlEnhancedMoveToHue(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("enhanced-move-to-hue", credsIssuerConfig) { AddArgument("EnhancedHue", 0, UINT16_MAX, &mRequest.enhancedHue); AddArgument("Direction", 0, UINT8_MAX, &mRequest.direction); AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type mRequest; }; /* * Command EnhancedMoveHue */ class ColorControlEnhancedMoveHue : public ClusterCommand { public: ColorControlEnhancedMoveHue(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("enhanced-move-hue", credsIssuerConfig) { AddArgument("MoveMode", 0, UINT8_MAX, &mRequest.moveMode); AddArgument("Rate", 0, UINT16_MAX, &mRequest.rate); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type mRequest; }; /* * Command EnhancedStepHue */ class ColorControlEnhancedStepHue : public ClusterCommand { public: ColorControlEnhancedStepHue(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("enhanced-step-hue", credsIssuerConfig) { AddArgument("StepMode", 0, UINT8_MAX, &mRequest.stepMode); AddArgument("StepSize", 0, UINT16_MAX, &mRequest.stepSize); AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type mRequest; }; /* * Command EnhancedMoveToHueAndSaturation */ class ColorControlEnhancedMoveToHueAndSaturation : public ClusterCommand { public: ColorControlEnhancedMoveToHueAndSaturation(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("enhanced-move-to-hue-and-saturation", credsIssuerConfig) { AddArgument("EnhancedHue", 0, UINT16_MAX, &mRequest.enhancedHue); AddArgument("Saturation", 0, UINT8_MAX, &mRequest.saturation); AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHueAndSaturation::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHueAndSaturation::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHueAndSaturation::Type mRequest; }; /* * Command ColorLoopSet */ class ColorControlColorLoopSet : public ClusterCommand { public: ColorControlColorLoopSet(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("color-loop-set", credsIssuerConfig) { AddArgument("UpdateFlags", 0, UINT8_MAX, &mRequest.updateFlags); AddArgument("Action", 0, UINT8_MAX, &mRequest.action); AddArgument("Direction", 0, UINT8_MAX, &mRequest.direction); AddArgument("Time", 0, UINT16_MAX, &mRequest.time); AddArgument("StartHue", 0, UINT16_MAX, &mRequest.startHue); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type mRequest; }; /* * Command StopMoveStep */ class ColorControlStopMoveStep : public ClusterCommand { public: ColorControlStopMoveStep(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop-move-step", credsIssuerConfig) { AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::StopMoveStep::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::StopMoveStep::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::StopMoveStep::Type mRequest; }; /* * Command MoveColorTemperature */ class ColorControlMoveColorTemperature : public ClusterCommand { public: ColorControlMoveColorTemperature(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-color-temperature", credsIssuerConfig) { AddArgument("MoveMode", 0, UINT8_MAX, &mRequest.moveMode); AddArgument("Rate", 0, UINT16_MAX, &mRequest.rate); AddArgument("ColorTemperatureMinimumMireds", 0, UINT16_MAX, &mRequest.colorTemperatureMinimumMireds); AddArgument("ColorTemperatureMaximumMireds", 0, UINT16_MAX, &mRequest.colorTemperatureMaximumMireds); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type mRequest; }; /* * Command StepColorTemperature */ class ColorControlStepColorTemperature : public ClusterCommand { public: ColorControlStepColorTemperature(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("step-color-temperature", credsIssuerConfig) { AddArgument("StepMode", 0, UINT8_MAX, &mRequest.stepMode); AddArgument("StepSize", 0, UINT16_MAX, &mRequest.stepSize); AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); AddArgument("ColorTemperatureMinimumMireds", 0, UINT16_MAX, &mRequest.colorTemperatureMinimumMireds); AddArgument("ColorTemperatureMaximumMireds", 0, UINT16_MAX, &mRequest.colorTemperatureMaximumMireds); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ColorControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster BallastConfiguration | 0x0301 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * PhysicalMinLevel | 0x0000 | | * PhysicalMaxLevel | 0x0001 | | * BallastStatus | 0x0002 | | * MinLevel | 0x0010 | | * MaxLevel | 0x0011 | | * IntrinsicBallastFactor | 0x0014 | | * BallastFactorAdjustment | 0x0015 | | * LampQuantity | 0x0020 | | * LampType | 0x0030 | | * LampManufacturer | 0x0031 | | * LampRatedHours | 0x0032 | | * LampBurnHours | 0x0033 | | * LampAlarmMode | 0x0034 | | * LampBurnHoursTripPoint | 0x0035 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster IlluminanceMeasurement | 0x0400 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * MeasuredValue | 0x0000 | | * MinMeasuredValue | 0x0001 | | * MaxMeasuredValue | 0x0002 | | * Tolerance | 0x0003 | | * LightSensorType | 0x0004 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster TemperatureMeasurement | 0x0402 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * MeasuredValue | 0x0000 | | * MinMeasuredValue | 0x0001 | | * MaxMeasuredValue | 0x0002 | | * Tolerance | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster PressureMeasurement | 0x0403 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * MeasuredValue | 0x0000 | | * MinMeasuredValue | 0x0001 | | * MaxMeasuredValue | 0x0002 | | * Tolerance | 0x0003 | | * ScaledValue | 0x0010 | | * MinScaledValue | 0x0011 | | * MaxScaledValue | 0x0012 | | * ScaledTolerance | 0x0013 | | * Scale | 0x0014 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster FlowMeasurement | 0x0404 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * MeasuredValue | 0x0000 | | * MinMeasuredValue | 0x0001 | | * MaxMeasuredValue | 0x0002 | | * Tolerance | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster RelativeHumidityMeasurement | 0x0405 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * MeasuredValue | 0x0000 | | * MinMeasuredValue | 0x0001 | | * MaxMeasuredValue | 0x0002 | | * Tolerance | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster OccupancySensing | 0x0406 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * Occupancy | 0x0000 | | * OccupancySensorType | 0x0001 | | * OccupancySensorTypeBitmap | 0x0002 | | * HoldTime | 0x0003 | | * HoldTimeLimits | 0x0004 | | * PIROccupiedToUnoccupiedDelay | 0x0010 | | * PIRUnoccupiedToOccupiedDelay | 0x0011 | | * PIRUnoccupiedToOccupiedThreshold | 0x0012 | | * UltrasonicOccupiedToUnoccupiedDelay | 0x0020 | | * UltrasonicUnoccupiedToOccupiedDelay | 0x0021 | | * UltrasonicUnoccupiedToOccupiedThreshold | 0x0022 | | * PhysicalContactOccupiedToUnoccupiedDelay | 0x0030 | | * PhysicalContactUnoccupiedToOccupiedDelay | 0x0031 | | * PhysicalContactUnoccupiedToOccupiedThreshold | 0x0032 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * OccupancyChanged | 0x0000 | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster CarbonMonoxideConcentrationMeasurement | 0x040C | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * MeasuredValue | 0x0000 | | * MinMeasuredValue | 0x0001 | | * MaxMeasuredValue | 0x0002 | | * PeakMeasuredValue | 0x0003 | | * PeakMeasuredValueWindow | 0x0004 | | * AverageMeasuredValue | 0x0005 | | * AverageMeasuredValueWindow | 0x0006 | | * Uncertainty | 0x0007 | | * MeasurementUnit | 0x0008 | | * MeasurementMedium | 0x0009 | | * LevelValue | 0x000A | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster CarbonDioxideConcentrationMeasurement | 0x040D | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * MeasuredValue | 0x0000 | | * MinMeasuredValue | 0x0001 | | * MaxMeasuredValue | 0x0002 | | * PeakMeasuredValue | 0x0003 | | * PeakMeasuredValueWindow | 0x0004 | | * AverageMeasuredValue | 0x0005 | | * AverageMeasuredValueWindow | 0x0006 | | * Uncertainty | 0x0007 | | * MeasurementUnit | 0x0008 | | * MeasurementMedium | 0x0009 | | * LevelValue | 0x000A | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster NitrogenDioxideConcentrationMeasurement | 0x0413 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * MeasuredValue | 0x0000 | | * MinMeasuredValue | 0x0001 | | * MaxMeasuredValue | 0x0002 | | * PeakMeasuredValue | 0x0003 | | * PeakMeasuredValueWindow | 0x0004 | | * AverageMeasuredValue | 0x0005 | | * AverageMeasuredValueWindow | 0x0006 | | * Uncertainty | 0x0007 | | * MeasurementUnit | 0x0008 | | * MeasurementMedium | 0x0009 | | * LevelValue | 0x000A | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster OzoneConcentrationMeasurement | 0x0415 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * MeasuredValue | 0x0000 | | * MinMeasuredValue | 0x0001 | | * MaxMeasuredValue | 0x0002 | | * PeakMeasuredValue | 0x0003 | | * PeakMeasuredValueWindow | 0x0004 | | * AverageMeasuredValue | 0x0005 | | * AverageMeasuredValueWindow | 0x0006 | | * Uncertainty | 0x0007 | | * MeasurementUnit | 0x0008 | | * MeasurementMedium | 0x0009 | | * LevelValue | 0x000A | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster Pm25ConcentrationMeasurement | 0x042A | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * MeasuredValue | 0x0000 | | * MinMeasuredValue | 0x0001 | | * MaxMeasuredValue | 0x0002 | | * PeakMeasuredValue | 0x0003 | | * PeakMeasuredValueWindow | 0x0004 | | * AverageMeasuredValue | 0x0005 | | * AverageMeasuredValueWindow | 0x0006 | | * Uncertainty | 0x0007 | | * MeasurementUnit | 0x0008 | | * MeasurementMedium | 0x0009 | | * LevelValue | 0x000A | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster FormaldehydeConcentrationMeasurement | 0x042B | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * MeasuredValue | 0x0000 | | * MinMeasuredValue | 0x0001 | | * MaxMeasuredValue | 0x0002 | | * PeakMeasuredValue | 0x0003 | | * PeakMeasuredValueWindow | 0x0004 | | * AverageMeasuredValue | 0x0005 | | * AverageMeasuredValueWindow | 0x0006 | | * Uncertainty | 0x0007 | | * MeasurementUnit | 0x0008 | | * MeasurementMedium | 0x0009 | | * LevelValue | 0x000A | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster Pm1ConcentrationMeasurement | 0x042C | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * MeasuredValue | 0x0000 | | * MinMeasuredValue | 0x0001 | | * MaxMeasuredValue | 0x0002 | | * PeakMeasuredValue | 0x0003 | | * PeakMeasuredValueWindow | 0x0004 | | * AverageMeasuredValue | 0x0005 | | * AverageMeasuredValueWindow | 0x0006 | | * Uncertainty | 0x0007 | | * MeasurementUnit | 0x0008 | | * MeasurementMedium | 0x0009 | | * LevelValue | 0x000A | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster Pm10ConcentrationMeasurement | 0x042D | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * MeasuredValue | 0x0000 | | * MinMeasuredValue | 0x0001 | | * MaxMeasuredValue | 0x0002 | | * PeakMeasuredValue | 0x0003 | | * PeakMeasuredValueWindow | 0x0004 | | * AverageMeasuredValue | 0x0005 | | * AverageMeasuredValueWindow | 0x0006 | | * Uncertainty | 0x0007 | | * MeasurementUnit | 0x0008 | | * MeasurementMedium | 0x0009 | | * LevelValue | 0x000A | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster TotalVolatileOrganicCompoundsConcentrationMeasurement | 0x042E | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * MeasuredValue | 0x0000 | | * MinMeasuredValue | 0x0001 | | * MaxMeasuredValue | 0x0002 | | * PeakMeasuredValue | 0x0003 | | * PeakMeasuredValueWindow | 0x0004 | | * AverageMeasuredValue | 0x0005 | | * AverageMeasuredValueWindow | 0x0006 | | * Uncertainty | 0x0007 | | * MeasurementUnit | 0x0008 | | * MeasurementMedium | 0x0009 | | * LevelValue | 0x000A | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster RadonConcentrationMeasurement | 0x042F | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * MeasuredValue | 0x0000 | | * MinMeasuredValue | 0x0001 | | * MaxMeasuredValue | 0x0002 | | * PeakMeasuredValue | 0x0003 | | * PeakMeasuredValueWindow | 0x0004 | | * AverageMeasuredValue | 0x0005 | | * AverageMeasuredValueWindow | 0x0006 | | * Uncertainty | 0x0007 | | * MeasurementUnit | 0x0008 | | * MeasurementMedium | 0x0009 | | * LevelValue | 0x000A | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster WiFiNetworkManagement | 0x0451 | |------------------------------------------------------------------------------| | Commands: | | | * NetworkPassphraseRequest | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * Ssid | 0x0000 | | * PassphraseSurrogate | 0x0001 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command NetworkPassphraseRequest */ class WiFiNetworkManagementNetworkPassphraseRequest : public ClusterCommand { public: WiFiNetworkManagementNetworkPassphraseRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("network-passphrase-request", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WiFiNetworkManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WiFiNetworkManagement::Commands::NetworkPassphraseRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WiFiNetworkManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WiFiNetworkManagement::Commands::NetworkPassphraseRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WiFiNetworkManagement::Commands::NetworkPassphraseRequest::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster ThreadBorderRouterManagement | 0x0452 | |------------------------------------------------------------------------------| | Commands: | | | * GetActiveDatasetRequest | 0x00 | | * GetPendingDatasetRequest | 0x01 | | * SetActiveDatasetRequest | 0x03 | | * SetPendingDatasetRequest | 0x04 | |------------------------------------------------------------------------------| | Attributes: | | | * BorderRouterName | 0x0000 | | * BorderAgentID | 0x0001 | | * ThreadVersion | 0x0002 | | * InterfaceEnabled | 0x0003 | | * ActiveDatasetTimestamp | 0x0004 | | * PendingDatasetTimestamp | 0x0005 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command GetActiveDatasetRequest */ class ThreadBorderRouterManagementGetActiveDatasetRequest : public ClusterCommand { public: ThreadBorderRouterManagementGetActiveDatasetRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-active-dataset-request", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ThreadBorderRouterManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ThreadBorderRouterManagement::Commands::GetActiveDatasetRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ThreadBorderRouterManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ThreadBorderRouterManagement::Commands::GetActiveDatasetRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ThreadBorderRouterManagement::Commands::GetActiveDatasetRequest::Type mRequest; }; /* * Command GetPendingDatasetRequest */ class ThreadBorderRouterManagementGetPendingDatasetRequest : public ClusterCommand { public: ThreadBorderRouterManagementGetPendingDatasetRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-pending-dataset-request", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ThreadBorderRouterManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ThreadBorderRouterManagement::Commands::GetPendingDatasetRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ThreadBorderRouterManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ThreadBorderRouterManagement::Commands::GetPendingDatasetRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ThreadBorderRouterManagement::Commands::GetPendingDatasetRequest::Type mRequest; }; /* * Command SetActiveDatasetRequest */ class ThreadBorderRouterManagementSetActiveDatasetRequest : public ClusterCommand { public: ThreadBorderRouterManagementSetActiveDatasetRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-active-dataset-request", credsIssuerConfig) { AddArgument("ActiveDataset", &mRequest.activeDataset); AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ThreadBorderRouterManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ThreadBorderRouterManagement::Commands::SetActiveDatasetRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ThreadBorderRouterManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ThreadBorderRouterManagement::Commands::SetActiveDatasetRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ThreadBorderRouterManagement::Commands::SetActiveDatasetRequest::Type mRequest; }; /* * Command SetPendingDatasetRequest */ class ThreadBorderRouterManagementSetPendingDatasetRequest : public ClusterCommand { public: ThreadBorderRouterManagementSetPendingDatasetRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-pending-dataset-request", credsIssuerConfig) { AddArgument("PendingDataset", &mRequest.pendingDataset); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ThreadBorderRouterManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ThreadBorderRouterManagement::Commands::SetPendingDatasetRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ThreadBorderRouterManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ThreadBorderRouterManagement::Commands::SetPendingDatasetRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ThreadBorderRouterManagement::Commands::SetPendingDatasetRequest::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster ThreadNetworkDirectory | 0x0453 | |------------------------------------------------------------------------------| | Commands: | | | * AddNetwork | 0x00 | | * RemoveNetwork | 0x01 | | * GetOperationalDataset | 0x02 | |------------------------------------------------------------------------------| | Attributes: | | | * PreferredExtendedPanID | 0x0000 | | * ThreadNetworks | 0x0001 | | * ThreadNetworkTableSize | 0x0002 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command AddNetwork */ class ThreadNetworkDirectoryAddNetwork : public ClusterCommand { public: ThreadNetworkDirectoryAddNetwork(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("add-network", credsIssuerConfig) { AddArgument("OperationalDataset", &mRequest.operationalDataset); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ThreadNetworkDirectory::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ThreadNetworkDirectory::Commands::AddNetwork::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ThreadNetworkDirectory::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ThreadNetworkDirectory::Commands::AddNetwork::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ThreadNetworkDirectory::Commands::AddNetwork::Type mRequest; }; /* * Command RemoveNetwork */ class ThreadNetworkDirectoryRemoveNetwork : public ClusterCommand { public: ThreadNetworkDirectoryRemoveNetwork(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("remove-network", credsIssuerConfig) { AddArgument("ExtendedPanID", &mRequest.extendedPanID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ThreadNetworkDirectory::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ThreadNetworkDirectory::Commands::RemoveNetwork::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ThreadNetworkDirectory::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ThreadNetworkDirectory::Commands::RemoveNetwork::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ThreadNetworkDirectory::Commands::RemoveNetwork::Type mRequest; }; /* * Command GetOperationalDataset */ class ThreadNetworkDirectoryGetOperationalDataset : public ClusterCommand { public: ThreadNetworkDirectoryGetOperationalDataset(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-operational-dataset", credsIssuerConfig) { AddArgument("ExtendedPanID", &mRequest.extendedPanID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ThreadNetworkDirectory::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ThreadNetworkDirectory::Commands::GetOperationalDataset::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ThreadNetworkDirectory::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ThreadNetworkDirectory::Commands::GetOperationalDataset::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ThreadNetworkDirectory::Commands::GetOperationalDataset::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster WakeOnLan | 0x0503 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * MACAddress | 0x0000 | | * LinkLocalAddress | 0x0001 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster Channel | 0x0504 | |------------------------------------------------------------------------------| | Commands: | | | * ChangeChannel | 0x00 | | * ChangeChannelByNumber | 0x02 | | * SkipChannel | 0x03 | | * GetProgramGuide | 0x04 | | * RecordProgram | 0x06 | | * CancelRecordProgram | 0x07 | |------------------------------------------------------------------------------| | Attributes: | | | * ChannelList | 0x0000 | | * Lineup | 0x0001 | | * CurrentChannel | 0x0002 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command ChangeChannel */ class ChannelChangeChannel : public ClusterCommand { public: ChannelChangeChannel(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("change-channel", credsIssuerConfig) { AddArgument("Match", &mRequest.match); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Channel::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Channel::Commands::ChangeChannel::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Channel::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Channel::Commands::ChangeChannel::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Channel::Commands::ChangeChannel::Type mRequest; }; /* * Command ChangeChannelByNumber */ class ChannelChangeChannelByNumber : public ClusterCommand { public: ChannelChangeChannelByNumber(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("change-channel-by-number", credsIssuerConfig) { AddArgument("MajorNumber", 0, UINT16_MAX, &mRequest.majorNumber); AddArgument("MinorNumber", 0, UINT16_MAX, &mRequest.minorNumber); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Channel::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Channel::Commands::ChangeChannelByNumber::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Channel::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Channel::Commands::ChangeChannelByNumber::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Channel::Commands::ChangeChannelByNumber::Type mRequest; }; /* * Command SkipChannel */ class ChannelSkipChannel : public ClusterCommand { public: ChannelSkipChannel(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("skip-channel", credsIssuerConfig) { AddArgument("Count", INT16_MIN, INT16_MAX, &mRequest.count); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Channel::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Channel::Commands::SkipChannel::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Channel::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Channel::Commands::SkipChannel::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Channel::Commands::SkipChannel::Type mRequest; }; /* * Command GetProgramGuide */ class ChannelGetProgramGuide : public ClusterCommand { public: ChannelGetProgramGuide(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-program-guide", credsIssuerConfig), mComplex_ChannelList(&mRequest.channelList), mComplex_PageToken(&mRequest.pageToken), mComplex_ExternalIDList(&mRequest.externalIDList) { AddArgument("StartTime", 0, UINT32_MAX, &mRequest.startTime); AddArgument("EndTime", 0, UINT32_MAX, &mRequest.endTime); AddArgument("ChannelList", &mComplex_ChannelList, "", Argument::kOptional); AddArgument("PageToken", &mComplex_PageToken, "", Argument::kOptional); AddArgument("RecordingFlag", 0, UINT32_MAX, &mRequest.recordingFlag); AddArgument("ExternalIDList", &mComplex_ExternalIDList, "", Argument::kOptional); AddArgument("Data", &mRequest.data); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Channel::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Channel::Commands::GetProgramGuide::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Channel::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Channel::Commands::GetProgramGuide::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Channel::Commands::GetProgramGuide::Type mRequest; TypedComplexArgument< chip::Optional>> mComplex_ChannelList; TypedComplexArgument> mComplex_PageToken; TypedComplexArgument< chip::Optional>> mComplex_ExternalIDList; }; /* * Command RecordProgram */ class ChannelRecordProgram : public ClusterCommand { public: ChannelRecordProgram(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("record-program", credsIssuerConfig), mComplex_ExternalIDList(&mRequest.externalIDList) { AddArgument("ProgramIdentifier", &mRequest.programIdentifier); AddArgument("ShouldRecordSeries", 0, 1, &mRequest.shouldRecordSeries); AddArgument("ExternalIDList", &mComplex_ExternalIDList); AddArgument("Data", &mRequest.data); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Channel::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Channel::Commands::RecordProgram::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Channel::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Channel::Commands::RecordProgram::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Channel::Commands::RecordProgram::Type mRequest; TypedComplexArgument> mComplex_ExternalIDList; }; /* * Command CancelRecordProgram */ class ChannelCancelRecordProgram : public ClusterCommand { public: ChannelCancelRecordProgram(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("cancel-record-program", credsIssuerConfig), mComplex_ExternalIDList(&mRequest.externalIDList) { AddArgument("ProgramIdentifier", &mRequest.programIdentifier); AddArgument("ShouldRecordSeries", 0, 1, &mRequest.shouldRecordSeries); AddArgument("ExternalIDList", &mComplex_ExternalIDList); AddArgument("Data", &mRequest.data); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Channel::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Channel::Commands::CancelRecordProgram::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Channel::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Channel::Commands::CancelRecordProgram::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Channel::Commands::CancelRecordProgram::Type mRequest; TypedComplexArgument> mComplex_ExternalIDList; }; /*----------------------------------------------------------------------------*\ | Cluster TargetNavigator | 0x0505 | |------------------------------------------------------------------------------| | Commands: | | | * NavigateTarget | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * TargetList | 0x0000 | | * CurrentTarget | 0x0001 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * TargetUpdated | 0x0000 | \*----------------------------------------------------------------------------*/ /* * Command NavigateTarget */ class TargetNavigatorNavigateTarget : public ClusterCommand { public: TargetNavigatorNavigateTarget(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("navigate-target", credsIssuerConfig) { AddArgument("Target", 0, UINT8_MAX, &mRequest.target); AddArgument("Data", &mRequest.data); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::TargetNavigator::Id; constexpr chip::CommandId commandId = chip::app::Clusters::TargetNavigator::Commands::NavigateTarget::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::TargetNavigator::Id; constexpr chip::CommandId commandId = chip::app::Clusters::TargetNavigator::Commands::NavigateTarget::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::TargetNavigator::Commands::NavigateTarget::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster MediaPlayback | 0x0506 | |------------------------------------------------------------------------------| | Commands: | | | * Play | 0x00 | | * Pause | 0x01 | | * Stop | 0x02 | | * StartOver | 0x03 | | * Previous | 0x04 | | * Next | 0x05 | | * Rewind | 0x06 | | * FastForward | 0x07 | | * SkipForward | 0x08 | | * SkipBackward | 0x09 | | * Seek | 0x0B | | * ActivateAudioTrack | 0x0C | | * ActivateTextTrack | 0x0D | | * DeactivateTextTrack | 0x0E | |------------------------------------------------------------------------------| | Attributes: | | | * CurrentState | 0x0000 | | * StartTime | 0x0001 | | * Duration | 0x0002 | | * SampledPosition | 0x0003 | | * PlaybackSpeed | 0x0004 | | * SeekRangeEnd | 0x0005 | | * SeekRangeStart | 0x0006 | | * ActiveAudioTrack | 0x0007 | | * AvailableAudioTracks | 0x0008 | | * ActiveTextTrack | 0x0009 | | * AvailableTextTracks | 0x000A | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * StateChanged | 0x0000 | \*----------------------------------------------------------------------------*/ /* * Command Play */ class MediaPlaybackPlay : public ClusterCommand { public: MediaPlaybackPlay(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("play", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::Play::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::Play::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaPlayback::Commands::Play::Type mRequest; }; /* * Command Pause */ class MediaPlaybackPause : public ClusterCommand { public: MediaPlaybackPause(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("pause", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::Pause::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::Pause::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaPlayback::Commands::Pause::Type mRequest; }; /* * Command Stop */ class MediaPlaybackStop : public ClusterCommand { public: MediaPlaybackStop(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::Stop::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::Stop::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaPlayback::Commands::Stop::Type mRequest; }; /* * Command StartOver */ class MediaPlaybackStartOver : public ClusterCommand { public: MediaPlaybackStartOver(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("start-over", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::StartOver::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::StartOver::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaPlayback::Commands::StartOver::Type mRequest; }; /* * Command Previous */ class MediaPlaybackPrevious : public ClusterCommand { public: MediaPlaybackPrevious(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("previous", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::Previous::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::Previous::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaPlayback::Commands::Previous::Type mRequest; }; /* * Command Next */ class MediaPlaybackNext : public ClusterCommand { public: MediaPlaybackNext(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("next", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::Next::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::Next::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaPlayback::Commands::Next::Type mRequest; }; /* * Command Rewind */ class MediaPlaybackRewind : public ClusterCommand { public: MediaPlaybackRewind(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("rewind", credsIssuerConfig) { AddArgument("AudioAdvanceUnmuted", 0, 1, &mRequest.audioAdvanceUnmuted); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::Rewind::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::Rewind::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaPlayback::Commands::Rewind::Type mRequest; }; /* * Command FastForward */ class MediaPlaybackFastForward : public ClusterCommand { public: MediaPlaybackFastForward(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("fast-forward", credsIssuerConfig) { AddArgument("AudioAdvanceUnmuted", 0, 1, &mRequest.audioAdvanceUnmuted); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::FastForward::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::FastForward::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaPlayback::Commands::FastForward::Type mRequest; }; /* * Command SkipForward */ class MediaPlaybackSkipForward : public ClusterCommand { public: MediaPlaybackSkipForward(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("skip-forward", credsIssuerConfig) { AddArgument("DeltaPositionMilliseconds", 0, UINT64_MAX, &mRequest.deltaPositionMilliseconds); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::SkipForward::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::SkipForward::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaPlayback::Commands::SkipForward::Type mRequest; }; /* * Command SkipBackward */ class MediaPlaybackSkipBackward : public ClusterCommand { public: MediaPlaybackSkipBackward(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("skip-backward", credsIssuerConfig) { AddArgument("DeltaPositionMilliseconds", 0, UINT64_MAX, &mRequest.deltaPositionMilliseconds); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::SkipBackward::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::SkipBackward::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaPlayback::Commands::SkipBackward::Type mRequest; }; /* * Command Seek */ class MediaPlaybackSeek : public ClusterCommand { public: MediaPlaybackSeek(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("seek", credsIssuerConfig) { AddArgument("Position", 0, UINT64_MAX, &mRequest.position); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::Seek::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::Seek::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaPlayback::Commands::Seek::Type mRequest; }; /* * Command ActivateAudioTrack */ class MediaPlaybackActivateAudioTrack : public ClusterCommand { public: MediaPlaybackActivateAudioTrack(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("activate-audio-track", credsIssuerConfig) { AddArgument("TrackID", &mRequest.trackID); AddArgument("AudioOutputIndex", 0, UINT8_MAX, &mRequest.audioOutputIndex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::ActivateAudioTrack::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::ActivateAudioTrack::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaPlayback::Commands::ActivateAudioTrack::Type mRequest; }; /* * Command ActivateTextTrack */ class MediaPlaybackActivateTextTrack : public ClusterCommand { public: MediaPlaybackActivateTextTrack(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("activate-text-track", credsIssuerConfig) { AddArgument("TrackID", &mRequest.trackID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::ActivateTextTrack::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::ActivateTextTrack::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaPlayback::Commands::ActivateTextTrack::Type mRequest; }; /* * Command DeactivateTextTrack */ class MediaPlaybackDeactivateTextTrack : public ClusterCommand { public: MediaPlaybackDeactivateTextTrack(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("deactivate-text-track", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::DeactivateTextTrack::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaPlayback::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaPlayback::Commands::DeactivateTextTrack::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaPlayback::Commands::DeactivateTextTrack::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster MediaInput | 0x0507 | |------------------------------------------------------------------------------| | Commands: | | | * SelectInput | 0x00 | | * ShowInputStatus | 0x01 | | * HideInputStatus | 0x02 | | * RenameInput | 0x03 | |------------------------------------------------------------------------------| | Attributes: | | | * InputList | 0x0000 | | * CurrentInput | 0x0001 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command SelectInput */ class MediaInputSelectInput : public ClusterCommand { public: MediaInputSelectInput(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("select-input", credsIssuerConfig) { AddArgument("Index", 0, UINT8_MAX, &mRequest.index); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaInput::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaInput::Commands::SelectInput::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaInput::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaInput::Commands::SelectInput::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaInput::Commands::SelectInput::Type mRequest; }; /* * Command ShowInputStatus */ class MediaInputShowInputStatus : public ClusterCommand { public: MediaInputShowInputStatus(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("show-input-status", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaInput::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaInput::Commands::ShowInputStatus::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaInput::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaInput::Commands::ShowInputStatus::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaInput::Commands::ShowInputStatus::Type mRequest; }; /* * Command HideInputStatus */ class MediaInputHideInputStatus : public ClusterCommand { public: MediaInputHideInputStatus(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("hide-input-status", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaInput::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaInput::Commands::HideInputStatus::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaInput::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaInput::Commands::HideInputStatus::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaInput::Commands::HideInputStatus::Type mRequest; }; /* * Command RenameInput */ class MediaInputRenameInput : public ClusterCommand { public: MediaInputRenameInput(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("rename-input", credsIssuerConfig) { AddArgument("Index", 0, UINT8_MAX, &mRequest.index); AddArgument("Name", &mRequest.name); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaInput::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaInput::Commands::RenameInput::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::MediaInput::Id; constexpr chip::CommandId commandId = chip::app::Clusters::MediaInput::Commands::RenameInput::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::MediaInput::Commands::RenameInput::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster LowPower | 0x0508 | |------------------------------------------------------------------------------| | Commands: | | | * Sleep | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command Sleep */ class LowPowerSleep : public ClusterCommand { public: LowPowerSleep(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("sleep", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LowPower::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LowPower::Commands::Sleep::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::LowPower::Id; constexpr chip::CommandId commandId = chip::app::Clusters::LowPower::Commands::Sleep::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::LowPower::Commands::Sleep::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster KeypadInput | 0x0509 | |------------------------------------------------------------------------------| | Commands: | | | * SendKey | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command SendKey */ class KeypadInputSendKey : public ClusterCommand { public: KeypadInputSendKey(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("send-key", credsIssuerConfig) { AddArgument("KeyCode", 0, UINT8_MAX, &mRequest.keyCode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::KeypadInput::Id; constexpr chip::CommandId commandId = chip::app::Clusters::KeypadInput::Commands::SendKey::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::KeypadInput::Id; constexpr chip::CommandId commandId = chip::app::Clusters::KeypadInput::Commands::SendKey::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::KeypadInput::Commands::SendKey::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster ContentLauncher | 0x050A | |------------------------------------------------------------------------------| | Commands: | | | * LaunchContent | 0x00 | | * LaunchURL | 0x01 | |------------------------------------------------------------------------------| | Attributes: | | | * AcceptHeader | 0x0000 | | * SupportedStreamingProtocols | 0x0001 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command LaunchContent */ class ContentLauncherLaunchContent : public ClusterCommand { public: ContentLauncherLaunchContent(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("launch-content", credsIssuerConfig), mComplex_Search(&mRequest.search), mComplex_PlaybackPreferences(&mRequest.playbackPreferences) { AddArgument("Search", &mComplex_Search); AddArgument("AutoPlay", 0, 1, &mRequest.autoPlay); AddArgument("Data", &mRequest.data); AddArgument("PlaybackPreferences", &mComplex_PlaybackPreferences, "", Argument::kOptional); AddArgument("UseCurrentContext", 0, 1, &mRequest.useCurrentContext); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentLauncher::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentLauncher::Commands::LaunchContent::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentLauncher::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentLauncher::Commands::LaunchContent::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ContentLauncher::Commands::LaunchContent::Type mRequest; TypedComplexArgument mComplex_Search; TypedComplexArgument> mComplex_PlaybackPreferences; }; /* * Command LaunchURL */ class ContentLauncherLaunchURL : public ClusterCommand { public: ContentLauncherLaunchURL(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("launch-url", credsIssuerConfig), mComplex_BrandingInformation(&mRequest.brandingInformation) { AddArgument("ContentURL", &mRequest.contentURL); AddArgument("DisplayString", &mRequest.displayString); AddArgument("BrandingInformation", &mComplex_BrandingInformation, "", Argument::kOptional); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentLauncher::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentLauncher::Commands::LaunchURL::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentLauncher::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentLauncher::Commands::LaunchURL::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ContentLauncher::Commands::LaunchURL::Type mRequest; TypedComplexArgument> mComplex_BrandingInformation; }; /*----------------------------------------------------------------------------*\ | Cluster AudioOutput | 0x050B | |------------------------------------------------------------------------------| | Commands: | | | * SelectOutput | 0x00 | | * RenameOutput | 0x01 | |------------------------------------------------------------------------------| | Attributes: | | | * OutputList | 0x0000 | | * CurrentOutput | 0x0001 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command SelectOutput */ class AudioOutputSelectOutput : public ClusterCommand { public: AudioOutputSelectOutput(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("select-output", credsIssuerConfig) { AddArgument("Index", 0, UINT8_MAX, &mRequest.index); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AudioOutput::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AudioOutput::Commands::SelectOutput::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AudioOutput::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AudioOutput::Commands::SelectOutput::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::AudioOutput::Commands::SelectOutput::Type mRequest; }; /* * Command RenameOutput */ class AudioOutputRenameOutput : public ClusterCommand { public: AudioOutputRenameOutput(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("rename-output", credsIssuerConfig) { AddArgument("Index", 0, UINT8_MAX, &mRequest.index); AddArgument("Name", &mRequest.name); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AudioOutput::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AudioOutput::Commands::RenameOutput::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AudioOutput::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AudioOutput::Commands::RenameOutput::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::AudioOutput::Commands::RenameOutput::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster ApplicationLauncher | 0x050C | |------------------------------------------------------------------------------| | Commands: | | | * LaunchApp | 0x00 | | * StopApp | 0x01 | | * HideApp | 0x02 | |------------------------------------------------------------------------------| | Attributes: | | | * CatalogList | 0x0000 | | * CurrentApp | 0x0001 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command LaunchApp */ class ApplicationLauncherLaunchApp : public ClusterCommand { public: ApplicationLauncherLaunchApp(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("launch-app", credsIssuerConfig), mComplex_Application(&mRequest.application) { AddArgument("Application", &mComplex_Application, "", Argument::kOptional); AddArgument("Data", &mRequest.data); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ApplicationLauncher::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ApplicationLauncher::Commands::LaunchApp::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ApplicationLauncher::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ApplicationLauncher::Commands::LaunchApp::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ApplicationLauncher::Commands::LaunchApp::Type mRequest; TypedComplexArgument> mComplex_Application; }; /* * Command StopApp */ class ApplicationLauncherStopApp : public ClusterCommand { public: ApplicationLauncherStopApp(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop-app", credsIssuerConfig), mComplex_Application(&mRequest.application) { AddArgument("Application", &mComplex_Application, "", Argument::kOptional); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ApplicationLauncher::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ApplicationLauncher::Commands::StopApp::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ApplicationLauncher::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ApplicationLauncher::Commands::StopApp::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ApplicationLauncher::Commands::StopApp::Type mRequest; TypedComplexArgument> mComplex_Application; }; /* * Command HideApp */ class ApplicationLauncherHideApp : public ClusterCommand { public: ApplicationLauncherHideApp(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("hide-app", credsIssuerConfig), mComplex_Application(&mRequest.application) { AddArgument("Application", &mComplex_Application, "", Argument::kOptional); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ApplicationLauncher::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ApplicationLauncher::Commands::HideApp::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ApplicationLauncher::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ApplicationLauncher::Commands::HideApp::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ApplicationLauncher::Commands::HideApp::Type mRequest; TypedComplexArgument> mComplex_Application; }; /*----------------------------------------------------------------------------*\ | Cluster ApplicationBasic | 0x050D | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * VendorName | 0x0000 | | * VendorID | 0x0001 | | * ApplicationName | 0x0002 | | * ProductID | 0x0003 | | * Application | 0x0004 | | * Status | 0x0005 | | * ApplicationVersion | 0x0006 | | * AllowedVendorList | 0x0007 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster AccountLogin | 0x050E | |------------------------------------------------------------------------------| | Commands: | | | * GetSetupPIN | 0x00 | | * Login | 0x02 | | * Logout | 0x03 | |------------------------------------------------------------------------------| | Attributes: | | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * LoggedOut | 0x0000 | \*----------------------------------------------------------------------------*/ /* * Command GetSetupPIN */ class AccountLoginGetSetupPIN : public ClusterCommand { public: AccountLoginGetSetupPIN(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-setup-pin", credsIssuerConfig) { AddArgument("TempAccountIdentifier", &mRequest.tempAccountIdentifier); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AccountLogin::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AccountLogin::Commands::GetSetupPIN::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AccountLogin::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AccountLogin::Commands::GetSetupPIN::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::AccountLogin::Commands::GetSetupPIN::Type mRequest; }; /* * Command Login */ class AccountLoginLogin : public ClusterCommand { public: AccountLoginLogin(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("login", credsIssuerConfig) { AddArgument("TempAccountIdentifier", &mRequest.tempAccountIdentifier); AddArgument("SetupPIN", &mRequest.setupPIN); AddArgument("Node", 0, UINT64_MAX, &mRequest.node); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AccountLogin::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AccountLogin::Commands::Login::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AccountLogin::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AccountLogin::Commands::Login::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::AccountLogin::Commands::Login::Type mRequest; }; /* * Command Logout */ class AccountLoginLogout : public ClusterCommand { public: AccountLoginLogout(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("logout", credsIssuerConfig) { AddArgument("Node", 0, UINT64_MAX, &mRequest.node); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AccountLogin::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AccountLogin::Commands::Logout::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::AccountLogin::Id; constexpr chip::CommandId commandId = chip::app::Clusters::AccountLogin::Commands::Logout::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::AccountLogin::Commands::Logout::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster ContentControl | 0x050F | |------------------------------------------------------------------------------| | Commands: | | | * UpdatePIN | 0x00 | | * ResetPIN | 0x01 | | * Enable | 0x03 | | * Disable | 0x04 | | * AddBonusTime | 0x05 | | * SetScreenDailyTime | 0x06 | | * BlockUnratedContent | 0x07 | | * UnblockUnratedContent | 0x08 | | * SetOnDemandRatingThreshold | 0x09 | | * SetScheduledContentRatingThreshold | 0x0A | |------------------------------------------------------------------------------| | Attributes: | | | * Enabled | 0x0000 | | * OnDemandRatings | 0x0001 | | * OnDemandRatingThreshold | 0x0002 | | * ScheduledContentRatings | 0x0003 | | * ScheduledContentRatingThreshold | 0x0004 | | * ScreenDailyTime | 0x0005 | | * RemainingScreenTime | 0x0006 | | * BlockUnrated | 0x0007 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * RemainingScreenTimeExpired | 0x0000 | \*----------------------------------------------------------------------------*/ /* * Command UpdatePIN */ class ContentControlUpdatePIN : public ClusterCommand { public: ContentControlUpdatePIN(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("update-pin", credsIssuerConfig) { AddArgument("OldPIN", &mRequest.oldPIN); AddArgument("NewPIN", &mRequest.newPIN); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::UpdatePIN::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::UpdatePIN::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ContentControl::Commands::UpdatePIN::Type mRequest; }; /* * Command ResetPIN */ class ContentControlResetPIN : public ClusterCommand { public: ContentControlResetPIN(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("reset-pin", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::ResetPIN::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::ResetPIN::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ContentControl::Commands::ResetPIN::Type mRequest; }; /* * Command Enable */ class ContentControlEnable : public ClusterCommand { public: ContentControlEnable(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("enable", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::Enable::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::Enable::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ContentControl::Commands::Enable::Type mRequest; }; /* * Command Disable */ class ContentControlDisable : public ClusterCommand { public: ContentControlDisable(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("disable", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::Disable::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::Disable::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ContentControl::Commands::Disable::Type mRequest; }; /* * Command AddBonusTime */ class ContentControlAddBonusTime : public ClusterCommand { public: ContentControlAddBonusTime(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("add-bonus-time", credsIssuerConfig) { AddArgument("PINCode", &mRequest.PINCode); AddArgument("BonusTime", 0, UINT32_MAX, &mRequest.bonusTime); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::AddBonusTime::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::AddBonusTime::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ContentControl::Commands::AddBonusTime::Type mRequest; }; /* * Command SetScreenDailyTime */ class ContentControlSetScreenDailyTime : public ClusterCommand { public: ContentControlSetScreenDailyTime(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-screen-daily-time", credsIssuerConfig) { AddArgument("ScreenTime", 0, UINT32_MAX, &mRequest.screenTime); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::SetScreenDailyTime::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::SetScreenDailyTime::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ContentControl::Commands::SetScreenDailyTime::Type mRequest; }; /* * Command BlockUnratedContent */ class ContentControlBlockUnratedContent : public ClusterCommand { public: ContentControlBlockUnratedContent(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("block-unrated-content", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::BlockUnratedContent::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::BlockUnratedContent::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ContentControl::Commands::BlockUnratedContent::Type mRequest; }; /* * Command UnblockUnratedContent */ class ContentControlUnblockUnratedContent : public ClusterCommand { public: ContentControlUnblockUnratedContent(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("unblock-unrated-content", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::UnblockUnratedContent::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::UnblockUnratedContent::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ContentControl::Commands::UnblockUnratedContent::Type mRequest; }; /* * Command SetOnDemandRatingThreshold */ class ContentControlSetOnDemandRatingThreshold : public ClusterCommand { public: ContentControlSetOnDemandRatingThreshold(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-on-demand-rating-threshold", credsIssuerConfig) { AddArgument("Rating", &mRequest.rating); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::SetOnDemandRatingThreshold::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::SetOnDemandRatingThreshold::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ContentControl::Commands::SetOnDemandRatingThreshold::Type mRequest; }; /* * Command SetScheduledContentRatingThreshold */ class ContentControlSetScheduledContentRatingThreshold : public ClusterCommand { public: ContentControlSetScheduledContentRatingThreshold(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-scheduled-content-rating-threshold", credsIssuerConfig) { AddArgument("Rating", &mRequest.rating); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::SetScheduledContentRatingThreshold::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentControl::Commands::SetScheduledContentRatingThreshold::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ContentControl::Commands::SetScheduledContentRatingThreshold::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster ContentAppObserver | 0x0510 | |------------------------------------------------------------------------------| | Commands: | | | * ContentAppMessage | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command ContentAppMessage */ class ContentAppObserverContentAppMessage : public ClusterCommand { public: ContentAppObserverContentAppMessage(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("content-app-message", credsIssuerConfig) { AddArgument("Data", &mRequest.data); AddArgument("EncodingHint", &mRequest.encodingHint); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentAppObserver::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentAppObserver::Commands::ContentAppMessage::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ContentAppObserver::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ContentAppObserver::Commands::ContentAppMessage::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ContentAppObserver::Commands::ContentAppMessage::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster ZoneManagement | 0x0550 | |------------------------------------------------------------------------------| | Commands: | | | * CreateTwoDCartesianZone | 0x00 | | * UpdateTwoDCartesianZone | 0x02 | | * GetTwoDCartesianZone | 0x03 | | * RemoveZone | 0x05 | |------------------------------------------------------------------------------| | Attributes: | | | * SupportedZoneSources | 0x0000 | | * Zones | 0x0001 | | * TimeControl | 0x0002 | | * Sensitivity | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * ZoneTriggered | 0x0000 | | * ZoneStopped | 0x0001 | \*----------------------------------------------------------------------------*/ /* * Command CreateTwoDCartesianZone */ class ZoneManagementCreateTwoDCartesianZone : public ClusterCommand { public: ZoneManagementCreateTwoDCartesianZone(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("create-two-dcartesian-zone", credsIssuerConfig), mComplex_Zone(&mRequest.zone) { AddArgument("Zone", &mComplex_Zone); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ZoneManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ZoneManagement::Commands::CreateTwoDCartesianZone::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ZoneManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ZoneManagement::Commands::CreateTwoDCartesianZone::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ZoneManagement::Commands::CreateTwoDCartesianZone::Type mRequest; TypedComplexArgument mComplex_Zone; }; /* * Command UpdateTwoDCartesianZone */ class ZoneManagementUpdateTwoDCartesianZone : public ClusterCommand { public: ZoneManagementUpdateTwoDCartesianZone(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("update-two-dcartesian-zone", credsIssuerConfig), mComplex_Zone(&mRequest.zone) { AddArgument("ZoneID", 0, UINT16_MAX, &mRequest.zoneID); AddArgument("Zone", &mComplex_Zone); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ZoneManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ZoneManagement::Commands::UpdateTwoDCartesianZone::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ZoneManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ZoneManagement::Commands::UpdateTwoDCartesianZone::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ZoneManagement::Commands::UpdateTwoDCartesianZone::Type mRequest; TypedComplexArgument mComplex_Zone; }; /* * Command GetTwoDCartesianZone */ class ZoneManagementGetTwoDCartesianZone : public ClusterCommand { public: ZoneManagementGetTwoDCartesianZone(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-two-dcartesian-zone", credsIssuerConfig) { AddArgument("ZoneID", 0, UINT16_MAX, &mRequest.zoneID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ZoneManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ZoneManagement::Commands::GetTwoDCartesianZone::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ZoneManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ZoneManagement::Commands::GetTwoDCartesianZone::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ZoneManagement::Commands::GetTwoDCartesianZone::Type mRequest; }; /* * Command RemoveZone */ class ZoneManagementRemoveZone : public ClusterCommand { public: ZoneManagementRemoveZone(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("remove-zone", credsIssuerConfig) { AddArgument("ZoneID", 0, UINT16_MAX, &mRequest.zoneID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ZoneManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ZoneManagement::Commands::RemoveZone::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::ZoneManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::ZoneManagement::Commands::RemoveZone::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::ZoneManagement::Commands::RemoveZone::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster CameraAvStreamManagement | 0x0551 | |------------------------------------------------------------------------------| | Commands: | | | * AudioStreamAllocate | 0x00 | | * AudioStreamDeallocate | 0x02 | | * VideoStreamAllocate | 0x03 | | * VideoStreamModify | 0x05 | | * VideoStreamDeallocate | 0x06 | | * SnapshotStreamAllocate | 0x07 | | * SnapshotStreamDeallocate | 0x09 | | * SetStreamPriorities | 0x0A | | * CaptureSnapshot | 0x0B | | * SetViewport | 0x0D | | * SetImageRotation | 0x0E | | * SetImageFlipHorizontal | 0x0F | | * SetImageFlipVertical | 0x10 | |------------------------------------------------------------------------------| | Attributes: | | | * MaxConcurrentVideoEncoders | 0x0000 | | * MaxEncodedPixelRate | 0x0001 | | * VideoSensorParams | 0x0002 | | * NightVisionCapable | 0x0003 | | * MinViewport | 0x0004 | | * RateDistortionTradeOffPoints | 0x0005 | | * MaxPreRollBufferSize | 0x0006 | | * MicrophoneCapabilities | 0x0007 | | * SpeakerCapabilities | 0x0008 | | * TwoWayTalkSupport | 0x0009 | | * SupportedSnapshotParams | 0x000A | | * MaxNetworkBandwidth | 0x000B | | * CurrentFrameRate | 0x000C | | * HDRModeEnabled | 0x000D | | * CurrentVideoCodecs | 0x000E | | * CurrentSnapshotConfig | 0x000F | | * FabricsUsingCamera | 0x0010 | | * AllocatedVideoStreams | 0x0011 | | * AllocatedAudioStreams | 0x0012 | | * AllocatedSnapshotStreams | 0x0013 | | * RankedVideoStreamPrioritiesList | 0x0014 | | * SoftRecordingPrivacyModeEnabled | 0x0015 | | * SoftLivestreamPrivacyModeEnabled | 0x0016 | | * HardPrivacyModeOn | 0x0017 | | * NightVision | 0x0018 | | * NightVisionIllum | 0x0019 | | * AWBEnabled | 0x001A | | * AutoShutterSpeedEnabled | 0x001B | | * AutoISOEnabled | 0x001C | | * Viewport | 0x001D | | * SpeakerMuted | 0x001E | | * SpeakerVolumeLevel | 0x001F | | * SpeakerMaxLevel | 0x0020 | | * SpeakerMinLevel | 0x0021 | | * MicrophoneMuted | 0x0022 | | * MicrophoneVolumeLevel | 0x0023 | | * MicrophoneMaxLevel | 0x0024 | | * MicrophoneMinLevel | 0x0025 | | * MicrophoneAGCEnabled | 0x0026 | | * ImageRotation | 0x0027 | | * ImageFlipHorizontal | 0x0028 | | * ImageFlipVertical | 0x0029 | | * LocalVideoRecordingEnabled | 0x002A | | * LocalSnapshotRecordingEnabled | 0x002B | | * StatusLightEnabled | 0x002C | | * StatusLightBrightness | 0x002D | | * DepthSensorStatus | 0x002E | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * VideoStreamChanged | 0x0000 | | * AudioStreamChanged | 0x0001 | | * SnapshotStreamChanged | 0x0002 | \*----------------------------------------------------------------------------*/ /* * Command AudioStreamAllocate */ class CameraAvStreamManagementAudioStreamAllocate : public ClusterCommand { public: CameraAvStreamManagementAudioStreamAllocate(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("audio-stream-allocate", credsIssuerConfig) { AddArgument("StreamType", 0, UINT8_MAX, &mRequest.streamType); AddArgument("AudioCodec", 0, UINT8_MAX, &mRequest.audioCodec); AddArgument("ChannelCount", 0, UINT8_MAX, &mRequest.channelCount); AddArgument("SampleRate", 0, UINT32_MAX, &mRequest.sampleRate); AddArgument("BitRate", 0, UINT32_MAX, &mRequest.bitRate); AddArgument("BitDepth", 0, UINT8_MAX, &mRequest.bitDepth); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::AudioStreamAllocate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::AudioStreamAllocate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::CameraAvStreamManagement::Commands::AudioStreamAllocate::Type mRequest; }; /* * Command AudioStreamDeallocate */ class CameraAvStreamManagementAudioStreamDeallocate : public ClusterCommand { public: CameraAvStreamManagementAudioStreamDeallocate(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("audio-stream-deallocate", credsIssuerConfig) { AddArgument("AudioStreamID", 0, UINT16_MAX, &mRequest.audioStreamID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::AudioStreamDeallocate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::AudioStreamDeallocate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::CameraAvStreamManagement::Commands::AudioStreamDeallocate::Type mRequest; }; /* * Command VideoStreamAllocate */ class CameraAvStreamManagementVideoStreamAllocate : public ClusterCommand { public: CameraAvStreamManagementVideoStreamAllocate(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("video-stream-allocate", credsIssuerConfig), mComplex_MinResolution(&mRequest.minResolution), mComplex_MaxResolution(&mRequest.maxResolution) { AddArgument("StreamType", 0, UINT8_MAX, &mRequest.streamType); AddArgument("VideoCodec", 0, UINT8_MAX, &mRequest.videoCodec); AddArgument("MinFrameRate", 0, UINT16_MAX, &mRequest.minFrameRate); AddArgument("MaxFrameRate", 0, UINT16_MAX, &mRequest.maxFrameRate); AddArgument("MinResolution", &mComplex_MinResolution); AddArgument("MaxResolution", &mComplex_MaxResolution); AddArgument("MinBitRate", 0, UINT32_MAX, &mRequest.minBitRate); AddArgument("MaxBitRate", 0, UINT32_MAX, &mRequest.maxBitRate); AddArgument("MinFragmentLen", 0, UINT16_MAX, &mRequest.minFragmentLen); AddArgument("MaxFragmentLen", 0, UINT16_MAX, &mRequest.maxFragmentLen); AddArgument("WatermarkEnabled", 0, 1, &mRequest.watermarkEnabled); AddArgument("OSDEnabled", 0, 1, &mRequest.OSDEnabled); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::VideoStreamAllocate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::VideoStreamAllocate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::CameraAvStreamManagement::Commands::VideoStreamAllocate::Type mRequest; TypedComplexArgument mComplex_MinResolution; TypedComplexArgument mComplex_MaxResolution; }; /* * Command VideoStreamModify */ class CameraAvStreamManagementVideoStreamModify : public ClusterCommand { public: CameraAvStreamManagementVideoStreamModify(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("video-stream-modify", credsIssuerConfig), mComplex_Resolution(&mRequest.resolution) { AddArgument("VideoStreamID", 0, UINT16_MAX, &mRequest.videoStreamID); AddArgument("Resolution", &mComplex_Resolution, "", Argument::kOptional); AddArgument("WatermarkEnabled", 0, 1, &mRequest.watermarkEnabled); AddArgument("OSDEnabled", 0, 1, &mRequest.OSDEnabled); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::VideoStreamModify::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::VideoStreamModify::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::CameraAvStreamManagement::Commands::VideoStreamModify::Type mRequest; TypedComplexArgument> mComplex_Resolution; }; /* * Command VideoStreamDeallocate */ class CameraAvStreamManagementVideoStreamDeallocate : public ClusterCommand { public: CameraAvStreamManagementVideoStreamDeallocate(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("video-stream-deallocate", credsIssuerConfig) { AddArgument("VideoStreamID", 0, UINT16_MAX, &mRequest.videoStreamID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::VideoStreamDeallocate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::VideoStreamDeallocate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::CameraAvStreamManagement::Commands::VideoStreamDeallocate::Type mRequest; }; /* * Command SnapshotStreamAllocate */ class CameraAvStreamManagementSnapshotStreamAllocate : public ClusterCommand { public: CameraAvStreamManagementSnapshotStreamAllocate(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("snapshot-stream-allocate", credsIssuerConfig), mComplex_MinResolution(&mRequest.minResolution), mComplex_MaxResolution(&mRequest.maxResolution) { AddArgument("ImageCodec", 0, UINT8_MAX, &mRequest.imageCodec); AddArgument("FrameRate", 0, UINT16_MAX, &mRequest.frameRate); AddArgument("BitRate", 0, UINT32_MAX, &mRequest.bitRate); AddArgument("MinResolution", &mComplex_MinResolution); AddArgument("MaxResolution", &mComplex_MaxResolution); AddArgument("Quality", 0, UINT8_MAX, &mRequest.quality); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::SnapshotStreamAllocate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::SnapshotStreamAllocate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::CameraAvStreamManagement::Commands::SnapshotStreamAllocate::Type mRequest; TypedComplexArgument mComplex_MinResolution; TypedComplexArgument mComplex_MaxResolution; }; /* * Command SnapshotStreamDeallocate */ class CameraAvStreamManagementSnapshotStreamDeallocate : public ClusterCommand { public: CameraAvStreamManagementSnapshotStreamDeallocate(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("snapshot-stream-deallocate", credsIssuerConfig) { AddArgument("SnapshotStreamID", 0, UINT16_MAX, &mRequest.snapshotStreamID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::SnapshotStreamDeallocate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::SnapshotStreamDeallocate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::CameraAvStreamManagement::Commands::SnapshotStreamDeallocate::Type mRequest; }; /* * Command SetStreamPriorities */ class CameraAvStreamManagementSetStreamPriorities : public ClusterCommand { public: CameraAvStreamManagementSetStreamPriorities(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-stream-priorities", credsIssuerConfig), mComplex_StreamPriorities(&mRequest.streamPriorities) { AddArgument("StreamPriorities", &mComplex_StreamPriorities); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::SetStreamPriorities::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::SetStreamPriorities::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::CameraAvStreamManagement::Commands::SetStreamPriorities::Type mRequest; TypedComplexArgument> mComplex_StreamPriorities; }; /* * Command CaptureSnapshot */ class CameraAvStreamManagementCaptureSnapshot : public ClusterCommand { public: CameraAvStreamManagementCaptureSnapshot(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("capture-snapshot", credsIssuerConfig), mComplex_RequestedResolution(&mRequest.requestedResolution) { AddArgument("SnapshotStreamID", 0, UINT16_MAX, &mRequest.snapshotStreamID); AddArgument("RequestedResolution", &mComplex_RequestedResolution); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::CaptureSnapshot::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::CaptureSnapshot::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::CameraAvStreamManagement::Commands::CaptureSnapshot::Type mRequest; TypedComplexArgument mComplex_RequestedResolution; }; /* * Command SetViewport */ class CameraAvStreamManagementSetViewport : public ClusterCommand { public: CameraAvStreamManagementSetViewport(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-viewport", credsIssuerConfig), mComplex_Viewport(&mRequest.viewport) { AddArgument("Viewport", &mComplex_Viewport); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::SetViewport::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::SetViewport::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::CameraAvStreamManagement::Commands::SetViewport::Type mRequest; TypedComplexArgument mComplex_Viewport; }; /* * Command SetImageRotation */ class CameraAvStreamManagementSetImageRotation : public ClusterCommand { public: CameraAvStreamManagementSetImageRotation(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-image-rotation", credsIssuerConfig) { AddArgument("Angle", 0, UINT16_MAX, &mRequest.angle); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::SetImageRotation::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::SetImageRotation::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::CameraAvStreamManagement::Commands::SetImageRotation::Type mRequest; }; /* * Command SetImageFlipHorizontal */ class CameraAvStreamManagementSetImageFlipHorizontal : public ClusterCommand { public: CameraAvStreamManagementSetImageFlipHorizontal(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-image-flip-horizontal", credsIssuerConfig) { AddArgument("Enabled", 0, 1, &mRequest.enabled); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::SetImageFlipHorizontal::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::SetImageFlipHorizontal::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::CameraAvStreamManagement::Commands::SetImageFlipHorizontal::Type mRequest; }; /* * Command SetImageFlipVertical */ class CameraAvStreamManagementSetImageFlipVertical : public ClusterCommand { public: CameraAvStreamManagementSetImageFlipVertical(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-image-flip-vertical", credsIssuerConfig) { AddArgument("Enabled", 0, 1, &mRequest.enabled); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::SetImageFlipVertical::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CameraAvStreamManagement::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CameraAvStreamManagement::Commands::SetImageFlipVertical::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::CameraAvStreamManagement::Commands::SetImageFlipVertical::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster WebRTCTransportProvider | 0x0553 | |------------------------------------------------------------------------------| | Commands: | | | * SolicitOffer | 0x01 | | * ProvideOffer | 0x03 | | * ProvideAnswer | 0x05 | | * ProvideICECandidate | 0x06 | | * EndSession | 0x07 | |------------------------------------------------------------------------------| | Attributes: | | | * CurrentSessions | 0x0000 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command SolicitOffer */ class WebRTCTransportProviderSolicitOffer : public ClusterCommand { public: WebRTCTransportProviderSolicitOffer(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("solicit-offer", credsIssuerConfig), mComplex_ICEServers(&mRequest.ICEServers) { AddArgument("StreamType", 0, UINT8_MAX, &mRequest.streamType); AddArgument("VideoStreamID", 0, UINT16_MAX, &mRequest.videoStreamID); AddArgument("AudioStreamID", 0, UINT16_MAX, &mRequest.audioStreamID); AddArgument("ICEServers", &mComplex_ICEServers, "", Argument::kOptional); AddArgument("ICETransportPolicy", &mRequest.ICETransportPolicy); AddArgument("MetadataOptions", 0, UINT8_MAX, &mRequest.metadataOptions); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportProvider::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportProvider::Commands::SolicitOffer::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportProvider::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportProvider::Commands::SolicitOffer::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WebRTCTransportProvider::Commands::SolicitOffer::Type mRequest; TypedComplexArgument>> mComplex_ICEServers; }; /* * Command ProvideOffer */ class WebRTCTransportProviderProvideOffer : public ClusterCommand { public: WebRTCTransportProviderProvideOffer(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("provide-offer", credsIssuerConfig), mComplex_ICEServers(&mRequest.ICEServers) { AddArgument("WebRTCSessionID", 0, UINT16_MAX, &mRequest.webRTCSessionID); AddArgument("Sdp", &mRequest.sdp); AddArgument("StreamType", 0, UINT8_MAX, &mRequest.streamType); AddArgument("VideoStreamID", 0, UINT16_MAX, &mRequest.videoStreamID); AddArgument("AudioStreamID", 0, UINT16_MAX, &mRequest.audioStreamID); AddArgument("ICEServers", &mComplex_ICEServers, "", Argument::kOptional); AddArgument("ICETransportPolicy", &mRequest.ICETransportPolicy); AddArgument("MetadataOptions", 0, UINT8_MAX, &mRequest.metadataOptions); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportProvider::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportProvider::Commands::ProvideOffer::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportProvider::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportProvider::Commands::ProvideOffer::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WebRTCTransportProvider::Commands::ProvideOffer::Type mRequest; TypedComplexArgument>> mComplex_ICEServers; }; /* * Command ProvideAnswer */ class WebRTCTransportProviderProvideAnswer : public ClusterCommand { public: WebRTCTransportProviderProvideAnswer(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("provide-answer", credsIssuerConfig) { AddArgument("WebRTCSessionID", 0, UINT16_MAX, &mRequest.webRTCSessionID); AddArgument("Sdp", &mRequest.sdp); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportProvider::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportProvider::Commands::ProvideAnswer::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportProvider::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportProvider::Commands::ProvideAnswer::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WebRTCTransportProvider::Commands::ProvideAnswer::Type mRequest; }; /* * Command ProvideICECandidate */ class WebRTCTransportProviderProvideICECandidate : public ClusterCommand { public: WebRTCTransportProviderProvideICECandidate(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("provide-icecandidate", credsIssuerConfig) { AddArgument("WebRTCSessionID", 0, UINT16_MAX, &mRequest.webRTCSessionID); AddArgument("ICECandidate", &mRequest.ICECandidate); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportProvider::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportProvider::Commands::ProvideICECandidate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportProvider::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportProvider::Commands::ProvideICECandidate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WebRTCTransportProvider::Commands::ProvideICECandidate::Type mRequest; }; /* * Command EndSession */ class WebRTCTransportProviderEndSession : public ClusterCommand { public: WebRTCTransportProviderEndSession(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("end-session", credsIssuerConfig) { AddArgument("WebRTCSessionID", 0, UINT16_MAX, &mRequest.webRTCSessionID); AddArgument("Reason", 0, UINT8_MAX, &mRequest.reason); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportProvider::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportProvider::Commands::EndSession::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportProvider::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportProvider::Commands::EndSession::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WebRTCTransportProvider::Commands::EndSession::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster WebRTCTransportRequestor | 0x0554 | |------------------------------------------------------------------------------| | Commands: | | | * Offer | 0x01 | | * Answer | 0x02 | | * ICECandidate | 0x03 | | * End | 0x04 | |------------------------------------------------------------------------------| | Attributes: | | | * CurrentSessions | 0x0000 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command Offer */ class WebRTCTransportRequestorOffer : public ClusterCommand { public: WebRTCTransportRequestorOffer(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("offer", credsIssuerConfig), mComplex_ICEServers(&mRequest.ICEServers) { AddArgument("WebRTCSessionID", 0, UINT16_MAX, &mRequest.webRTCSessionID); AddArgument("Sdp", &mRequest.sdp); AddArgument("ICEServers", &mComplex_ICEServers, "", Argument::kOptional); AddArgument("ICETransportPolicy", &mRequest.ICETransportPolicy); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportRequestor::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportRequestor::Commands::Offer::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportRequestor::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportRequestor::Commands::Offer::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WebRTCTransportRequestor::Commands::Offer::Type mRequest; TypedComplexArgument>> mComplex_ICEServers; }; /* * Command Answer */ class WebRTCTransportRequestorAnswer : public ClusterCommand { public: WebRTCTransportRequestorAnswer(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("answer", credsIssuerConfig) { AddArgument("WebRTCSessionID", 0, UINT16_MAX, &mRequest.webRTCSessionID); AddArgument("Sdp", &mRequest.sdp); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportRequestor::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportRequestor::Commands::Answer::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportRequestor::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportRequestor::Commands::Answer::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WebRTCTransportRequestor::Commands::Answer::Type mRequest; }; /* * Command ICECandidate */ class WebRTCTransportRequestorICECandidate : public ClusterCommand { public: WebRTCTransportRequestorICECandidate(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("icecandidate", credsIssuerConfig) { AddArgument("WebRTCSessionID", 0, UINT16_MAX, &mRequest.webRTCSessionID); AddArgument("ICECandidate", &mRequest.ICECandidate); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportRequestor::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportRequestor::Commands::ICECandidate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportRequestor::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportRequestor::Commands::ICECandidate::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WebRTCTransportRequestor::Commands::ICECandidate::Type mRequest; }; /* * Command End */ class WebRTCTransportRequestorEnd : public ClusterCommand { public: WebRTCTransportRequestorEnd(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("end", credsIssuerConfig) { AddArgument("WebRTCSessionID", 0, UINT16_MAX, &mRequest.webRTCSessionID); AddArgument("Reason", 0, UINT8_MAX, &mRequest.reason); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportRequestor::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportRequestor::Commands::End::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::WebRTCTransportRequestor::Id; constexpr chip::CommandId commandId = chip::app::Clusters::WebRTCTransportRequestor::Commands::End::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::WebRTCTransportRequestor::Commands::End::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster Chime | 0x0556 | |------------------------------------------------------------------------------| | Commands: | | | * PlayChimeSound | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * InstalledChimeSounds | 0x0000 | | * ActiveChimeID | 0x0001 | | * Enabled | 0x0002 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command PlayChimeSound */ class ChimePlayChimeSound : public ClusterCommand { public: ChimePlayChimeSound(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("play-chime-sound", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Chime::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Chime::Commands::PlayChimeSound::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Chime::Id; constexpr chip::CommandId commandId = chip::app::Clusters::Chime::Commands::PlayChimeSound::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::Chime::Commands::PlayChimeSound::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster EcosystemInformation | 0x0750 | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | | * DeviceDirectory | 0x0000 | | * LocationDirectory | 0x0001 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ | Cluster CommissionerControl | 0x0751 | |------------------------------------------------------------------------------| | Commands: | | | * RequestCommissioningApproval | 0x00 | | * CommissionNode | 0x01 | |------------------------------------------------------------------------------| | Attributes: | | | * SupportedDeviceCategories | 0x0000 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * CommissioningRequestResult | 0x0000 | \*----------------------------------------------------------------------------*/ /* * Command RequestCommissioningApproval */ class CommissionerControlRequestCommissioningApproval : public ClusterCommand { public: CommissionerControlRequestCommissioningApproval(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("request-commissioning-approval", credsIssuerConfig) { AddArgument("RequestID", 0, UINT64_MAX, &mRequest.requestID); AddArgument("VendorID", 0, UINT16_MAX, &mRequest.vendorID); AddArgument("ProductID", 0, UINT16_MAX, &mRequest.productID); AddArgument("Label", &mRequest.label); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CommissionerControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CommissionerControl::Commands::RequestCommissioningApproval::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CommissionerControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CommissionerControl::Commands::RequestCommissioningApproval::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::CommissionerControl::Commands::RequestCommissioningApproval::Type mRequest; }; /* * Command CommissionNode */ class CommissionerControlCommissionNode : public ClusterCommand { public: CommissionerControlCommissionNode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("commission-node", credsIssuerConfig) { AddArgument("RequestID", 0, UINT64_MAX, &mRequest.requestID); AddArgument("ResponseTimeoutSeconds", 0, UINT16_MAX, &mRequest.responseTimeoutSeconds); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CommissionerControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CommissionerControl::Commands::CommissionNode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::CommissionerControl::Id; constexpr chip::CommandId commandId = chip::app::Clusters::CommissionerControl::Commands::CommissionNode::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::CommissionerControl::Commands::CommissionNode::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster UnitTesting | 0xFFF1FC05 | |------------------------------------------------------------------------------| | Commands: | | | * Test | 0x00 | | * TestNotHandled | 0x01 | | * TestSpecific | 0x02 | | * TestUnknownCommand | 0x03 | | * TestAddArguments | 0x04 | | * TestSimpleArgumentRequest | 0x05 | | * TestStructArrayArgumentRequest | 0x06 | | * TestStructArgumentRequest | 0x07 | | * TestNestedStructArgumentRequest | 0x08 | | * TestListStructArgumentRequest | 0x09 | | * TestListInt8UArgumentRequest | 0x0A | | * TestNestedStructListArgumentRequest | 0x0B | | * TestListNestedStructListArgumentRequest | 0x0C | | * TestListInt8UReverseRequest | 0x0D | | * TestEnumsRequest | 0x0E | | * TestNullableOptionalRequest | 0x0F | | * TestComplexNullableOptionalRequest | 0x10 | | * SimpleStructEchoRequest | 0x11 | | * TimedInvokeRequest | 0x12 | | * TestSimpleOptionalArgumentRequest | 0x13 | | * TestEmitTestEventRequest | 0x14 | | * TestEmitTestFabricScopedEventRequest | 0x15 | | * TestBatchHelperRequest | 0x16 | | * TestSecondBatchHelperRequest | 0x17 | | * StringEchoRequest | 0x18 | | * GlobalEchoRequest | 0x19 | | * TestDifferentVendorMeiRequest | 0xFFF200AA| |------------------------------------------------------------------------------| | Attributes: | | | * Boolean | 0x0000 | | * Bitmap8 | 0x0001 | | * Bitmap16 | 0x0002 | | * Bitmap32 | 0x0003 | | * Bitmap64 | 0x0004 | | * Int8u | 0x0005 | | * Int16u | 0x0006 | | * Int24u | 0x0007 | | * Int32u | 0x0008 | | * Int40u | 0x0009 | | * Int48u | 0x000A | | * Int56u | 0x000B | | * Int64u | 0x000C | | * Int8s | 0x000D | | * Int16s | 0x000E | | * Int24s | 0x000F | | * Int32s | 0x0010 | | * Int40s | 0x0011 | | * Int48s | 0x0012 | | * Int56s | 0x0013 | | * Int64s | 0x0014 | | * Enum8 | 0x0015 | | * Enum16 | 0x0016 | | * FloatSingle | 0x0017 | | * FloatDouble | 0x0018 | | * OctetString | 0x0019 | | * ListInt8u | 0x001A | | * ListOctetString | 0x001B | | * ListStructOctetString | 0x001C | | * LongOctetString | 0x001D | | * CharString | 0x001E | | * LongCharString | 0x001F | | * EpochUs | 0x0020 | | * EpochS | 0x0021 | | * VendorId | 0x0022 | | * ListNullablesAndOptionalsStruct | 0x0023 | | * EnumAttr | 0x0024 | | * StructAttr | 0x0025 | | * RangeRestrictedInt8u | 0x0026 | | * RangeRestrictedInt8s | 0x0027 | | * RangeRestrictedInt16u | 0x0028 | | * RangeRestrictedInt16s | 0x0029 | | * ListLongOctetString | 0x002A | | * ListFabricScoped | 0x002B | | * TimedWriteBoolean | 0x0030 | | * GeneralErrorBoolean | 0x0031 | | * ClusterErrorBoolean | 0x0032 | | * GlobalEnum | 0x0033 | | * GlobalStruct | 0x0034 | | * Unsupported | 0x00FF | | * ReadFailureCode | 0x3000 | | * FailureInt32U | 0x3001 | | * NullableBoolean | 0x4000 | | * NullableBitmap8 | 0x4001 | | * NullableBitmap16 | 0x4002 | | * NullableBitmap32 | 0x4003 | | * NullableBitmap64 | 0x4004 | | * NullableInt8u | 0x4005 | | * NullableInt16u | 0x4006 | | * NullableInt24u | 0x4007 | | * NullableInt32u | 0x4008 | | * NullableInt40u | 0x4009 | | * NullableInt48u | 0x400A | | * NullableInt56u | 0x400B | | * NullableInt64u | 0x400C | | * NullableInt8s | 0x400D | | * NullableInt16s | 0x400E | | * NullableInt24s | 0x400F | | * NullableInt32s | 0x4010 | | * NullableInt40s | 0x4011 | | * NullableInt48s | 0x4012 | | * NullableInt56s | 0x4013 | | * NullableInt64s | 0x4014 | | * NullableEnum8 | 0x4015 | | * NullableEnum16 | 0x4016 | | * NullableFloatSingle | 0x4017 | | * NullableFloatDouble | 0x4018 | | * NullableOctetString | 0x4019 | | * NullableCharString | 0x401E | | * NullableEnumAttr | 0x4024 | | * NullableStruct | 0x4025 | | * NullableRangeRestrictedInt8u | 0x4026 | | * NullableRangeRestrictedInt8s | 0x4027 | | * NullableRangeRestrictedInt16u | 0x4028 | | * NullableRangeRestrictedInt16s | 0x4029 | | * WriteOnlyInt8u | 0x402A | | * NullableGlobalEnum | 0x4033 | | * NullableGlobalStruct | 0x4034 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | | * MeiInt8u | 0xFFF24F01| |------------------------------------------------------------------------------| | Events: | | | * TestEvent | 0x0001 | | * TestFabricScopedEvent | 0x0002 | | * TestDifferentVendorMeiEvent | 0xFFF200EE| \*----------------------------------------------------------------------------*/ /* * Command Test */ class UnitTestingTest : public ClusterCommand { public: UnitTestingTest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::Test::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::Test::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::Test::Type mRequest; }; /* * Command TestNotHandled */ class UnitTestingTestNotHandled : public ClusterCommand { public: UnitTestingTestNotHandled(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-not-handled", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestNotHandled::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestNotHandled::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestNotHandled::Type mRequest; }; /* * Command TestSpecific */ class UnitTestingTestSpecific : public ClusterCommand { public: UnitTestingTestSpecific(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-specific", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestSpecific::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestSpecific::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestSpecific::Type mRequest; }; /* * Command TestUnknownCommand */ class UnitTestingTestUnknownCommand : public ClusterCommand { public: UnitTestingTestUnknownCommand(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-unknown-command", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestUnknownCommand::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestUnknownCommand::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestUnknownCommand::Type mRequest; }; /* * Command TestAddArguments */ class UnitTestingTestAddArguments : public ClusterCommand { public: UnitTestingTestAddArguments(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-add-arguments", credsIssuerConfig) { AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); AddArgument("Arg2", 0, UINT8_MAX, &mRequest.arg2); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestAddArguments::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestAddArguments::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestAddArguments::Type mRequest; }; /* * Command TestSimpleArgumentRequest */ class UnitTestingTestSimpleArgumentRequest : public ClusterCommand { public: UnitTestingTestSimpleArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-simple-argument-request", credsIssuerConfig) { AddArgument("Arg1", 0, 1, &mRequest.arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestSimpleArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestSimpleArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestSimpleArgumentRequest::Type mRequest; }; /* * Command TestStructArrayArgumentRequest */ class UnitTestingTestStructArrayArgumentRequest : public ClusterCommand { public: UnitTestingTestStructArrayArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-struct-array-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1), mComplex_Arg2(&mRequest.arg2), mComplex_Arg3(&mRequest.arg3), mComplex_Arg4(&mRequest.arg4) { AddArgument("Arg1", &mComplex_Arg1); AddArgument("Arg2", &mComplex_Arg2); AddArgument("Arg3", &mComplex_Arg3); AddArgument("Arg4", &mComplex_Arg4); AddArgument("Arg5", 0, UINT8_MAX, &mRequest.arg5); AddArgument("Arg6", 0, 1, &mRequest.arg6); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestStructArrayArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestStructArrayArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestStructArrayArgumentRequest::Type mRequest; TypedComplexArgument> mComplex_Arg1; TypedComplexArgument> mComplex_Arg2; TypedComplexArgument> mComplex_Arg3; TypedComplexArgument> mComplex_Arg4; }; /* * Command TestStructArgumentRequest */ class UnitTestingTestStructArgumentRequest : public ClusterCommand { public: UnitTestingTestStructArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-struct-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) { AddArgument("Arg1", &mComplex_Arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestStructArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestStructArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestStructArgumentRequest::Type mRequest; TypedComplexArgument mComplex_Arg1; }; /* * Command TestNestedStructArgumentRequest */ class UnitTestingTestNestedStructArgumentRequest : public ClusterCommand { public: UnitTestingTestNestedStructArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-nested-struct-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) { AddArgument("Arg1", &mComplex_Arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestNestedStructArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestNestedStructArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestNestedStructArgumentRequest::Type mRequest; TypedComplexArgument mComplex_Arg1; }; /* * Command TestListStructArgumentRequest */ class UnitTestingTestListStructArgumentRequest : public ClusterCommand { public: UnitTestingTestListStructArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-list-struct-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) { AddArgument("Arg1", &mComplex_Arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestListStructArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestListStructArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestListStructArgumentRequest::Type mRequest; TypedComplexArgument> mComplex_Arg1; }; /* * Command TestListInt8UArgumentRequest */ class UnitTestingTestListInt8UArgumentRequest : public ClusterCommand { public: UnitTestingTestListInt8UArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-list-int8uargument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) { AddArgument("Arg1", &mComplex_Arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestListInt8UArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestListInt8UArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestListInt8UArgumentRequest::Type mRequest; TypedComplexArgument> mComplex_Arg1; }; /* * Command TestNestedStructListArgumentRequest */ class UnitTestingTestNestedStructListArgumentRequest : public ClusterCommand { public: UnitTestingTestNestedStructListArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-nested-struct-list-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) { AddArgument("Arg1", &mComplex_Arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestNestedStructListArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestNestedStructListArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestNestedStructListArgumentRequest::Type mRequest; TypedComplexArgument mComplex_Arg1; }; /* * Command TestListNestedStructListArgumentRequest */ class UnitTestingTestListNestedStructListArgumentRequest : public ClusterCommand { public: UnitTestingTestListNestedStructListArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-list-nested-struct-list-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) { AddArgument("Arg1", &mComplex_Arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestListNestedStructListArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestListNestedStructListArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestListNestedStructListArgumentRequest::Type mRequest; TypedComplexArgument> mComplex_Arg1; }; /* * Command TestListInt8UReverseRequest */ class UnitTestingTestListInt8UReverseRequest : public ClusterCommand { public: UnitTestingTestListInt8UReverseRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-list-int8ureverse-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) { AddArgument("Arg1", &mComplex_Arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestListInt8UReverseRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestListInt8UReverseRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestListInt8UReverseRequest::Type mRequest; TypedComplexArgument> mComplex_Arg1; }; /* * Command TestEnumsRequest */ class UnitTestingTestEnumsRequest : public ClusterCommand { public: UnitTestingTestEnumsRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-enums-request", credsIssuerConfig) { AddArgument("Arg1", 0, UINT16_MAX, &mRequest.arg1); AddArgument("Arg2", 0, UINT8_MAX, &mRequest.arg2); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestEnumsRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestEnumsRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestEnumsRequest::Type mRequest; }; /* * Command TestNullableOptionalRequest */ class UnitTestingTestNullableOptionalRequest : public ClusterCommand { public: UnitTestingTestNullableOptionalRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-nullable-optional-request", credsIssuerConfig) { AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestNullableOptionalRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestNullableOptionalRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestNullableOptionalRequest::Type mRequest; }; /* * Command TestComplexNullableOptionalRequest */ class UnitTestingTestComplexNullableOptionalRequest : public ClusterCommand { public: UnitTestingTestComplexNullableOptionalRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-complex-nullable-optional-request", credsIssuerConfig), mComplex_NullableStruct(&mRequest.nullableStruct), mComplex_OptionalStruct(&mRequest.optionalStruct), mComplex_NullableOptionalStruct(&mRequest.nullableOptionalStruct), mComplex_NullableList(&mRequest.nullableList), mComplex_OptionalList(&mRequest.optionalList), mComplex_NullableOptionalList(&mRequest.nullableOptionalList) { AddArgument("NullableInt", 0, UINT16_MAX, &mRequest.nullableInt); AddArgument("OptionalInt", 0, UINT16_MAX, &mRequest.optionalInt); AddArgument("NullableOptionalInt", 0, UINT16_MAX, &mRequest.nullableOptionalInt); AddArgument("NullableString", &mRequest.nullableString); AddArgument("OptionalString", &mRequest.optionalString); AddArgument("NullableOptionalString", &mRequest.nullableOptionalString); AddArgument("NullableStruct", &mComplex_NullableStruct); AddArgument("OptionalStruct", &mComplex_OptionalStruct, "", Argument::kOptional); AddArgument("NullableOptionalStruct", &mComplex_NullableOptionalStruct, "", Argument::kOptional); AddArgument("NullableList", &mComplex_NullableList); AddArgument("OptionalList", &mComplex_OptionalList, "", Argument::kOptional); AddArgument("NullableOptionalList", &mComplex_NullableOptionalList, "", Argument::kOptional); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestComplexNullableOptionalRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestComplexNullableOptionalRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestComplexNullableOptionalRequest::Type mRequest; TypedComplexArgument> mComplex_NullableStruct; TypedComplexArgument> mComplex_OptionalStruct; TypedComplexArgument< chip::Optional>> mComplex_NullableOptionalStruct; TypedComplexArgument< chip::app::DataModel::Nullable>> mComplex_NullableList; TypedComplexArgument>> mComplex_OptionalList; TypedComplexArgument>>> mComplex_NullableOptionalList; }; /* * Command SimpleStructEchoRequest */ class UnitTestingSimpleStructEchoRequest : public ClusterCommand { public: UnitTestingSimpleStructEchoRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("simple-struct-echo-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) { AddArgument("Arg1", &mComplex_Arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::SimpleStructEchoRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::SimpleStructEchoRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::SimpleStructEchoRequest::Type mRequest; TypedComplexArgument mComplex_Arg1; }; /* * Command TimedInvokeRequest */ class UnitTestingTimedInvokeRequest : public ClusterCommand { public: UnitTestingTimedInvokeRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("timed-invoke-request", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TimedInvokeRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TimedInvokeRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TimedInvokeRequest::Type mRequest; }; /* * Command TestSimpleOptionalArgumentRequest */ class UnitTestingTestSimpleOptionalArgumentRequest : public ClusterCommand { public: UnitTestingTestSimpleOptionalArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-simple-optional-argument-request", credsIssuerConfig) { AddArgument("Arg1", 0, 1, &mRequest.arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestSimpleOptionalArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestSimpleOptionalArgumentRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestSimpleOptionalArgumentRequest::Type mRequest; }; /* * Command TestEmitTestEventRequest */ class UnitTestingTestEmitTestEventRequest : public ClusterCommand { public: UnitTestingTestEmitTestEventRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-emit-test-event-request", credsIssuerConfig) { AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); AddArgument("Arg2", 0, UINT8_MAX, &mRequest.arg2); AddArgument("Arg3", 0, 1, &mRequest.arg3); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestEmitTestEventRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestEmitTestEventRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestEmitTestEventRequest::Type mRequest; }; /* * Command TestEmitTestFabricScopedEventRequest */ class UnitTestingTestEmitTestFabricScopedEventRequest : public ClusterCommand { public: UnitTestingTestEmitTestFabricScopedEventRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-emit-test-fabric-scoped-event-request", credsIssuerConfig) { AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestEmitTestFabricScopedEventRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestEmitTestFabricScopedEventRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestEmitTestFabricScopedEventRequest::Type mRequest; }; /* * Command TestBatchHelperRequest */ class UnitTestingTestBatchHelperRequest : public ClusterCommand { public: UnitTestingTestBatchHelperRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-batch-helper-request", credsIssuerConfig) { AddArgument("SleepBeforeResponseTimeMs", 0, UINT16_MAX, &mRequest.sleepBeforeResponseTimeMs); AddArgument("SizeOfResponseBuffer", 0, UINT16_MAX, &mRequest.sizeOfResponseBuffer); AddArgument("FillCharacter", 0, UINT8_MAX, &mRequest.fillCharacter); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestBatchHelperRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestBatchHelperRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestBatchHelperRequest::Type mRequest; }; /* * Command TestSecondBatchHelperRequest */ class UnitTestingTestSecondBatchHelperRequest : public ClusterCommand { public: UnitTestingTestSecondBatchHelperRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-second-batch-helper-request", credsIssuerConfig) { AddArgument("SleepBeforeResponseTimeMs", 0, UINT16_MAX, &mRequest.sleepBeforeResponseTimeMs); AddArgument("SizeOfResponseBuffer", 0, UINT16_MAX, &mRequest.sizeOfResponseBuffer); AddArgument("FillCharacter", 0, UINT8_MAX, &mRequest.fillCharacter); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestSecondBatchHelperRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestSecondBatchHelperRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestSecondBatchHelperRequest::Type mRequest; }; /* * Command StringEchoRequest */ class UnitTestingStringEchoRequest : public ClusterCommand { public: UnitTestingStringEchoRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("string-echo-request", credsIssuerConfig) { AddArgument("Payload", &mRequest.payload); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::StringEchoRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::StringEchoRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::StringEchoRequest::Type mRequest; }; /* * Command GlobalEchoRequest */ class UnitTestingGlobalEchoRequest : public ClusterCommand { public: UnitTestingGlobalEchoRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("global-echo-request", credsIssuerConfig), mComplex_Field1(&mRequest.field1) { AddArgument("Field1", &mComplex_Field1); AddArgument("Field2", 0, UINT8_MAX, &mRequest.field2); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::GlobalEchoRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::GlobalEchoRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::GlobalEchoRequest::Type mRequest; TypedComplexArgument mComplex_Field1; }; /* * Command TestDifferentVendorMeiRequest */ class UnitTestingTestDifferentVendorMeiRequest : public ClusterCommand { public: UnitTestingTestDifferentVendorMeiRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-different-vendor-mei-request", credsIssuerConfig) { AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestDifferentVendorMeiRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::UnitTesting::Id; constexpr chip::CommandId commandId = chip::app::Clusters::UnitTesting::Commands::TestDifferentVendorMeiRequest::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::UnitTesting::Commands::TestDifferentVendorMeiRequest::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster FaultInjection | 0xFFF1FC06 | |------------------------------------------------------------------------------| | Commands: | | | * FailAtFault | 0x00 | | * FailRandomlyAtFault | 0x01 | |------------------------------------------------------------------------------| | Attributes: | | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* * Command FailAtFault */ class FaultInjectionFailAtFault : public ClusterCommand { public: FaultInjectionFailAtFault(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("fail-at-fault", credsIssuerConfig) { AddArgument("Type", 0, UINT8_MAX, &mRequest.type); AddArgument("Id", 0, UINT32_MAX, &mRequest.id); AddArgument("NumCallsToSkip", 0, UINT32_MAX, &mRequest.numCallsToSkip); AddArgument("NumCallsToFail", 0, UINT32_MAX, &mRequest.numCallsToFail); AddArgument("TakeMutex", 0, 1, &mRequest.takeMutex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::FaultInjection::Id; constexpr chip::CommandId commandId = chip::app::Clusters::FaultInjection::Commands::FailAtFault::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::FaultInjection::Id; constexpr chip::CommandId commandId = chip::app::Clusters::FaultInjection::Commands::FailAtFault::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::FaultInjection::Commands::FailAtFault::Type mRequest; }; /* * Command FailRandomlyAtFault */ class FaultInjectionFailRandomlyAtFault : public ClusterCommand { public: FaultInjectionFailRandomlyAtFault(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("fail-randomly-at-fault", credsIssuerConfig) { AddArgument("Type", 0, UINT8_MAX, &mRequest.type); AddArgument("Id", 0, UINT32_MAX, &mRequest.id); AddArgument("Percentage", 0, UINT8_MAX, &mRequest.percentage); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::FaultInjection::Id; constexpr chip::CommandId commandId = chip::app::Clusters::FaultInjection::Commands::FailRandomlyAtFault::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::FaultInjection::Id; constexpr chip::CommandId commandId = chip::app::Clusters::FaultInjection::Commands::FailRandomlyAtFault::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::FaultInjection::Commands::FailRandomlyAtFault::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Cluster SampleMei | 0xFFF1FC20 | |------------------------------------------------------------------------------| | Commands: | | | * Ping | 0x00 | | * AddArguments | 0x02 | |------------------------------------------------------------------------------| | Attributes: | | | * FlipFlop | 0x0000 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | | * PingCountEvent | 0x0000 | \*----------------------------------------------------------------------------*/ /* * Command Ping */ class SampleMeiPing : public ClusterCommand { public: SampleMeiPing(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("ping", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::SampleMei::Id; constexpr chip::CommandId commandId = chip::app::Clusters::SampleMei::Commands::Ping::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::SampleMei::Id; constexpr chip::CommandId commandId = chip::app::Clusters::SampleMei::Commands::Ping::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::SampleMei::Commands::Ping::Type mRequest; }; /* * Command AddArguments */ class SampleMeiAddArguments : public ClusterCommand { public: SampleMeiAddArguments(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("add-arguments", credsIssuerConfig) { AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); AddArgument("Arg2", 0, UINT8_MAX, &mRequest.arg2); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::SampleMei::Id; constexpr chip::CommandId commandId = chip::app::Clusters::SampleMei::Commands::AddArguments::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointIds.at(0)); return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::SampleMei::Id; constexpr chip::CommandId commandId = chip::app::Clusters::SampleMei::Commands::AddArguments::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, groupId); return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); } private: chip::app::Clusters::SampleMei::Commands::AddArguments::Type mRequest; }; /*----------------------------------------------------------------------------*\ | Register all Clusters commands | \*----------------------------------------------------------------------------*/ void registerClusterIdentify(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::Identify; const char * clusterName = "Identify"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "identify-time", Attributes::IdentifyTime::Id, credsIssuerConfig), // make_unique(Id, "identify-type", Attributes::IdentifyType::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "identify-time", 0, UINT16_MAX, Attributes::IdentifyTime::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "identify-type", 0, UINT8_MAX, Attributes::IdentifyType::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "identify-time", Attributes::IdentifyTime::Id, credsIssuerConfig), // make_unique(Id, "identify-type", Attributes::IdentifyType::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterGroups(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::Groups; const char * clusterName = "Groups"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "name-support", Attributes::NameSupport::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "name-support", 0, UINT8_MAX, Attributes::NameSupport::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "name-support", Attributes::NameSupport::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterOnOff(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::OnOff; const char * clusterName = "OnOff"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "on-off", Attributes::OnOff::Id, credsIssuerConfig), // make_unique(Id, "global-scene-control", Attributes::GlobalSceneControl::Id, credsIssuerConfig), // make_unique(Id, "on-time", Attributes::OnTime::Id, credsIssuerConfig), // make_unique(Id, "off-wait-time", Attributes::OffWaitTime::Id, credsIssuerConfig), // make_unique(Id, "start-up-on-off", Attributes::StartUpOnOff::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "on-off", 0, 1, Attributes::OnOff::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "global-scene-control", 0, 1, Attributes::GlobalSceneControl::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "on-time", 0, UINT16_MAX, Attributes::OnTime::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "off-wait-time", 0, UINT16_MAX, Attributes::OffWaitTime::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "start-up-on-off", 0, UINT8_MAX, Attributes::StartUpOnOff::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "on-off", Attributes::OnOff::Id, credsIssuerConfig), // make_unique(Id, "global-scene-control", Attributes::GlobalSceneControl::Id, credsIssuerConfig), // make_unique(Id, "on-time", Attributes::OnTime::Id, credsIssuerConfig), // make_unique(Id, "off-wait-time", Attributes::OffWaitTime::Id, credsIssuerConfig), // make_unique(Id, "start-up-on-off", Attributes::StartUpOnOff::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterLevelControl(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::LevelControl; const char * clusterName = "LevelControl"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "current-level", Attributes::CurrentLevel::Id, credsIssuerConfig), // make_unique(Id, "remaining-time", Attributes::RemainingTime::Id, credsIssuerConfig), // make_unique(Id, "min-level", Attributes::MinLevel::Id, credsIssuerConfig), // make_unique(Id, "max-level", Attributes::MaxLevel::Id, credsIssuerConfig), // make_unique(Id, "current-frequency", Attributes::CurrentFrequency::Id, credsIssuerConfig), // make_unique(Id, "min-frequency", Attributes::MinFrequency::Id, credsIssuerConfig), // make_unique(Id, "max-frequency", Attributes::MaxFrequency::Id, credsIssuerConfig), // make_unique(Id, "options", Attributes::Options::Id, credsIssuerConfig), // make_unique(Id, "on-off-transition-time", Attributes::OnOffTransitionTime::Id, credsIssuerConfig), // make_unique(Id, "on-level", Attributes::OnLevel::Id, credsIssuerConfig), // make_unique(Id, "on-transition-time", Attributes::OnTransitionTime::Id, credsIssuerConfig), // make_unique(Id, "off-transition-time", Attributes::OffTransitionTime::Id, credsIssuerConfig), // make_unique(Id, "default-move-rate", Attributes::DefaultMoveRate::Id, credsIssuerConfig), // make_unique(Id, "start-up-current-level", Attributes::StartUpCurrentLevel::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "current-level", 0, UINT8_MAX, Attributes::CurrentLevel::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "remaining-time", 0, UINT16_MAX, Attributes::RemainingTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "min-level", 0, UINT8_MAX, Attributes::MinLevel::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "max-level", 0, UINT8_MAX, Attributes::MaxLevel::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-frequency", 0, UINT16_MAX, Attributes::CurrentFrequency::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "min-frequency", 0, UINT16_MAX, Attributes::MinFrequency::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "max-frequency", 0, UINT16_MAX, Attributes::MaxFrequency::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "options", 0, UINT8_MAX, Attributes::Options::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "on-off-transition-time", 0, UINT16_MAX, Attributes::OnOffTransitionTime::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "on-level", 0, UINT8_MAX, Attributes::OnLevel::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "on-transition-time", 0, UINT16_MAX, Attributes::OnTransitionTime::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "off-transition-time", 0, UINT16_MAX, Attributes::OffTransitionTime::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "default-move-rate", 0, UINT8_MAX, Attributes::DefaultMoveRate::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "start-up-current-level", 0, UINT8_MAX, Attributes::StartUpCurrentLevel::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "current-level", Attributes::CurrentLevel::Id, credsIssuerConfig), // make_unique(Id, "remaining-time", Attributes::RemainingTime::Id, credsIssuerConfig), // make_unique(Id, "min-level", Attributes::MinLevel::Id, credsIssuerConfig), // make_unique(Id, "max-level", Attributes::MaxLevel::Id, credsIssuerConfig), // make_unique(Id, "current-frequency", Attributes::CurrentFrequency::Id, credsIssuerConfig), // make_unique(Id, "min-frequency", Attributes::MinFrequency::Id, credsIssuerConfig), // make_unique(Id, "max-frequency", Attributes::MaxFrequency::Id, credsIssuerConfig), // make_unique(Id, "options", Attributes::Options::Id, credsIssuerConfig), // make_unique(Id, "on-off-transition-time", Attributes::OnOffTransitionTime::Id, credsIssuerConfig), // make_unique(Id, "on-level", Attributes::OnLevel::Id, credsIssuerConfig), // make_unique(Id, "on-transition-time", Attributes::OnTransitionTime::Id, credsIssuerConfig), // make_unique(Id, "off-transition-time", Attributes::OffTransitionTime::Id, credsIssuerConfig), // make_unique(Id, "default-move-rate", Attributes::DefaultMoveRate::Id, credsIssuerConfig), // make_unique(Id, "start-up-current-level", Attributes::StartUpCurrentLevel::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterPulseWidthModulation(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::PulseWidthModulation; const char * clusterName = "PulseWidthModulation"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterDescriptor(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::Descriptor; const char * clusterName = "Descriptor"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "device-type-list", Attributes::DeviceTypeList::Id, credsIssuerConfig), // make_unique(Id, "server-list", Attributes::ServerList::Id, credsIssuerConfig), // make_unique(Id, "client-list", Attributes::ClientList::Id, credsIssuerConfig), // make_unique(Id, "parts-list", Attributes::PartsList::Id, credsIssuerConfig), // make_unique(Id, "tag-list", Attributes::TagList::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "device-type-list", Attributes::DeviceTypeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "server-list", Attributes::ServerList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "client-list", Attributes::ClientList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "parts-list", Attributes::PartsList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "tag-list", Attributes::TagList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "device-type-list", Attributes::DeviceTypeList::Id, credsIssuerConfig), // make_unique(Id, "server-list", Attributes::ServerList::Id, credsIssuerConfig), // make_unique(Id, "client-list", Attributes::ClientList::Id, credsIssuerConfig), // make_unique(Id, "parts-list", Attributes::PartsList::Id, credsIssuerConfig), // make_unique(Id, "tag-list", Attributes::TagList::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterBinding(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::Binding; const char * clusterName = "Binding"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "binding", Attributes::Binding::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "binding", Attributes::Binding::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "binding", Attributes::Binding::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterAccessControl(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::AccessControl; const char * clusterName = "AccessControl"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "acl", Attributes::Acl::Id, credsIssuerConfig), // make_unique(Id, "extension", Attributes::Extension::Id, credsIssuerConfig), // make_unique(Id, "subjects-per-access-control-entry", Attributes::SubjectsPerAccessControlEntry::Id, credsIssuerConfig), // make_unique(Id, "targets-per-access-control-entry", Attributes::TargetsPerAccessControlEntry::Id, credsIssuerConfig), // make_unique(Id, "access-control-entries-per-fabric", Attributes::AccessControlEntriesPerFabric::Id, credsIssuerConfig), // make_unique(Id, "commissioning-arl", Attributes::CommissioningARL::Id, credsIssuerConfig), // make_unique(Id, "arl", Attributes::Arl::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "acl", Attributes::Acl::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "extension", Attributes::Extension::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "subjects-per-access-control-entry", 0, UINT16_MAX, Attributes::SubjectsPerAccessControlEntry::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "targets-per-access-control-entry", 0, UINT16_MAX, Attributes::TargetsPerAccessControlEntry::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "access-control-entries-per-fabric", 0, UINT16_MAX, Attributes::AccessControlEntriesPerFabric::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "commissioning-arl", Attributes::CommissioningARL::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "arl", Attributes::Arl::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "acl", Attributes::Acl::Id, credsIssuerConfig), // make_unique(Id, "extension", Attributes::Extension::Id, credsIssuerConfig), // make_unique(Id, "subjects-per-access-control-entry", Attributes::SubjectsPerAccessControlEntry::Id, credsIssuerConfig), // make_unique(Id, "targets-per-access-control-entry", Attributes::TargetsPerAccessControlEntry::Id, credsIssuerConfig), // make_unique(Id, "access-control-entries-per-fabric", Attributes::AccessControlEntriesPerFabric::Id, credsIssuerConfig), // make_unique(Id, "commissioning-arl", Attributes::CommissioningARL::Id, credsIssuerConfig), // make_unique(Id, "arl", Attributes::Arl::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "access-control-entry-changed", Events::AccessControlEntryChanged::Id, credsIssuerConfig), // make_unique(Id, "access-control-extension-changed", Events::AccessControlExtensionChanged::Id, credsIssuerConfig), // make_unique(Id, "fabric-restriction-review-update", Events::FabricRestrictionReviewUpdate::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "access-control-entry-changed", Events::AccessControlEntryChanged::Id, credsIssuerConfig), // make_unique(Id, "access-control-extension-changed", Events::AccessControlExtensionChanged::Id, credsIssuerConfig), // make_unique(Id, "fabric-restriction-review-update", Events::FabricRestrictionReviewUpdate::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterActions(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::Actions; const char * clusterName = "Actions"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "action-list", Attributes::ActionList::Id, credsIssuerConfig), // make_unique(Id, "endpoint-lists", Attributes::EndpointLists::Id, credsIssuerConfig), // make_unique(Id, "setup-url", Attributes::SetupURL::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "action-list", Attributes::ActionList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "endpoint-lists", Attributes::EndpointLists::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "setup-url", Attributes::SetupURL::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "action-list", Attributes::ActionList::Id, credsIssuerConfig), // make_unique(Id, "endpoint-lists", Attributes::EndpointLists::Id, credsIssuerConfig), // make_unique(Id, "setup-url", Attributes::SetupURL::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "state-changed", Events::StateChanged::Id, credsIssuerConfig), // make_unique(Id, "action-failed", Events::ActionFailed::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "state-changed", Events::StateChanged::Id, credsIssuerConfig), // make_unique(Id, "action-failed", Events::ActionFailed::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterBasicInformation(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::BasicInformation; const char * clusterName = "BasicInformation"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "data-model-revision", Attributes::DataModelRevision::Id, credsIssuerConfig), // make_unique(Id, "vendor-name", Attributes::VendorName::Id, credsIssuerConfig), // make_unique(Id, "vendor-id", Attributes::VendorID::Id, credsIssuerConfig), // make_unique(Id, "product-name", Attributes::ProductName::Id, credsIssuerConfig), // make_unique(Id, "product-id", Attributes::ProductID::Id, credsIssuerConfig), // make_unique(Id, "node-label", Attributes::NodeLabel::Id, credsIssuerConfig), // make_unique(Id, "location", Attributes::Location::Id, credsIssuerConfig), // make_unique(Id, "hardware-version", Attributes::HardwareVersion::Id, credsIssuerConfig), // make_unique(Id, "hardware-version-string", Attributes::HardwareVersionString::Id, credsIssuerConfig), // make_unique(Id, "software-version", Attributes::SoftwareVersion::Id, credsIssuerConfig), // make_unique(Id, "software-version-string", Attributes::SoftwareVersionString::Id, credsIssuerConfig), // make_unique(Id, "manufacturing-date", Attributes::ManufacturingDate::Id, credsIssuerConfig), // make_unique(Id, "part-number", Attributes::PartNumber::Id, credsIssuerConfig), // make_unique(Id, "product-url", Attributes::ProductURL::Id, credsIssuerConfig), // make_unique(Id, "product-label", Attributes::ProductLabel::Id, credsIssuerConfig), // make_unique(Id, "serial-number", Attributes::SerialNumber::Id, credsIssuerConfig), // make_unique(Id, "local-config-disabled", Attributes::LocalConfigDisabled::Id, credsIssuerConfig), // make_unique(Id, "reachable", Attributes::Reachable::Id, credsIssuerConfig), // make_unique(Id, "unique-id", Attributes::UniqueID::Id, credsIssuerConfig), // make_unique(Id, "capability-minima", Attributes::CapabilityMinima::Id, credsIssuerConfig), // make_unique(Id, "product-appearance", Attributes::ProductAppearance::Id, credsIssuerConfig), // make_unique(Id, "specification-version", Attributes::SpecificationVersion::Id, credsIssuerConfig), // make_unique(Id, "max-paths-per-invoke", Attributes::MaxPathsPerInvoke::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "data-model-revision", 0, UINT16_MAX, Attributes::DataModelRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "vendor-name", Attributes::VendorName::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "vendor-id", 0, UINT16_MAX, Attributes::VendorID::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "product-name", Attributes::ProductName::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "product-id", 0, UINT16_MAX, Attributes::ProductID::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "node-label", Attributes::NodeLabel::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "location", Attributes::Location::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "hardware-version", 0, UINT16_MAX, Attributes::HardwareVersion::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "hardware-version-string", Attributes::HardwareVersionString::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "software-version", 0, UINT32_MAX, Attributes::SoftwareVersion::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "software-version-string", Attributes::SoftwareVersionString::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "manufacturing-date", Attributes::ManufacturingDate::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "part-number", Attributes::PartNumber::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "product-url", Attributes::ProductURL::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "product-label", Attributes::ProductLabel::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "serial-number", Attributes::SerialNumber::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "local-config-disabled", 0, 1, Attributes::LocalConfigDisabled::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "reachable", 0, 1, Attributes::Reachable::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "unique-id", Attributes::UniqueID::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "capability-minima", Attributes::CapabilityMinima::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "product-appearance", Attributes::ProductAppearance::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "specification-version", 0, UINT32_MAX, Attributes::SpecificationVersion::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "max-paths-per-invoke", 0, UINT16_MAX, Attributes::MaxPathsPerInvoke::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "data-model-revision", Attributes::DataModelRevision::Id, credsIssuerConfig), // make_unique(Id, "vendor-name", Attributes::VendorName::Id, credsIssuerConfig), // make_unique(Id, "vendor-id", Attributes::VendorID::Id, credsIssuerConfig), // make_unique(Id, "product-name", Attributes::ProductName::Id, credsIssuerConfig), // make_unique(Id, "product-id", Attributes::ProductID::Id, credsIssuerConfig), // make_unique(Id, "node-label", Attributes::NodeLabel::Id, credsIssuerConfig), // make_unique(Id, "location", Attributes::Location::Id, credsIssuerConfig), // make_unique(Id, "hardware-version", Attributes::HardwareVersion::Id, credsIssuerConfig), // make_unique(Id, "hardware-version-string", Attributes::HardwareVersionString::Id, credsIssuerConfig), // make_unique(Id, "software-version", Attributes::SoftwareVersion::Id, credsIssuerConfig), // make_unique(Id, "software-version-string", Attributes::SoftwareVersionString::Id, credsIssuerConfig), // make_unique(Id, "manufacturing-date", Attributes::ManufacturingDate::Id, credsIssuerConfig), // make_unique(Id, "part-number", Attributes::PartNumber::Id, credsIssuerConfig), // make_unique(Id, "product-url", Attributes::ProductURL::Id, credsIssuerConfig), // make_unique(Id, "product-label", Attributes::ProductLabel::Id, credsIssuerConfig), // make_unique(Id, "serial-number", Attributes::SerialNumber::Id, credsIssuerConfig), // make_unique(Id, "local-config-disabled", Attributes::LocalConfigDisabled::Id, credsIssuerConfig), // make_unique(Id, "reachable", Attributes::Reachable::Id, credsIssuerConfig), // make_unique(Id, "unique-id", Attributes::UniqueID::Id, credsIssuerConfig), // make_unique(Id, "capability-minima", Attributes::CapabilityMinima::Id, credsIssuerConfig), // make_unique(Id, "product-appearance", Attributes::ProductAppearance::Id, credsIssuerConfig), // make_unique(Id, "specification-version", Attributes::SpecificationVersion::Id, credsIssuerConfig), // make_unique(Id, "max-paths-per-invoke", Attributes::MaxPathsPerInvoke::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "start-up", Events::StartUp::Id, credsIssuerConfig), // make_unique(Id, "shut-down", Events::ShutDown::Id, credsIssuerConfig), // make_unique(Id, "leave", Events::Leave::Id, credsIssuerConfig), // make_unique(Id, "reachable-changed", Events::ReachableChanged::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "start-up", Events::StartUp::Id, credsIssuerConfig), // make_unique(Id, "shut-down", Events::ShutDown::Id, credsIssuerConfig), // make_unique(Id, "leave", Events::Leave::Id, credsIssuerConfig), // make_unique(Id, "reachable-changed", Events::ReachableChanged::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterOtaSoftwareUpdateProvider(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::OtaSoftwareUpdateProvider; const char * clusterName = "OtaSoftwareUpdateProvider"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterOtaSoftwareUpdateRequestor(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::OtaSoftwareUpdateRequestor; const char * clusterName = "OtaSoftwareUpdateRequestor"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "default-otaproviders", Attributes::DefaultOTAProviders::Id, credsIssuerConfig), // make_unique(Id, "update-possible", Attributes::UpdatePossible::Id, credsIssuerConfig), // make_unique(Id, "update-state", Attributes::UpdateState::Id, credsIssuerConfig), // make_unique(Id, "update-state-progress", Attributes::UpdateStateProgress::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "default-otaproviders", Attributes::DefaultOTAProviders::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "update-possible", 0, 1, Attributes::UpdatePossible::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "update-state", 0, UINT8_MAX, Attributes::UpdateState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "update-state-progress", 0, UINT8_MAX, Attributes::UpdateStateProgress::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "default-otaproviders", Attributes::DefaultOTAProviders::Id, credsIssuerConfig), // make_unique(Id, "update-possible", Attributes::UpdatePossible::Id, credsIssuerConfig), // make_unique(Id, "update-state", Attributes::UpdateState::Id, credsIssuerConfig), // make_unique(Id, "update-state-progress", Attributes::UpdateStateProgress::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "state-transition", Events::StateTransition::Id, credsIssuerConfig), // make_unique(Id, "version-applied", Events::VersionApplied::Id, credsIssuerConfig), // make_unique(Id, "download-error", Events::DownloadError::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "state-transition", Events::StateTransition::Id, credsIssuerConfig), // make_unique(Id, "version-applied", Events::VersionApplied::Id, credsIssuerConfig), // make_unique(Id, "download-error", Events::DownloadError::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterLocalizationConfiguration(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::LocalizationConfiguration; const char * clusterName = "LocalizationConfiguration"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "active-locale", Attributes::ActiveLocale::Id, credsIssuerConfig), // make_unique(Id, "supported-locales", Attributes::SupportedLocales::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "active-locale", Attributes::ActiveLocale::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "supported-locales", Attributes::SupportedLocales::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "active-locale", Attributes::ActiveLocale::Id, credsIssuerConfig), // make_unique(Id, "supported-locales", Attributes::SupportedLocales::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterTimeFormatLocalization(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::TimeFormatLocalization; const char * clusterName = "TimeFormatLocalization"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "hour-format", Attributes::HourFormat::Id, credsIssuerConfig), // make_unique(Id, "active-calendar-type", Attributes::ActiveCalendarType::Id, credsIssuerConfig), // make_unique(Id, "supported-calendar-types", Attributes::SupportedCalendarTypes::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>( Id, "hour-format", 0, UINT8_MAX, Attributes::HourFormat::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "active-calendar-type", 0, UINT8_MAX, Attributes::ActiveCalendarType::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "supported-calendar-types", Attributes::SupportedCalendarTypes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "hour-format", Attributes::HourFormat::Id, credsIssuerConfig), // make_unique(Id, "active-calendar-type", Attributes::ActiveCalendarType::Id, credsIssuerConfig), // make_unique(Id, "supported-calendar-types", Attributes::SupportedCalendarTypes::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterUnitLocalization(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::UnitLocalization; const char * clusterName = "UnitLocalization"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "temperature-unit", Attributes::TemperatureUnit::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>( Id, "temperature-unit", 0, UINT8_MAX, Attributes::TemperatureUnit::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "temperature-unit", Attributes::TemperatureUnit::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterPowerSourceConfiguration(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::PowerSourceConfiguration; const char * clusterName = "PowerSourceConfiguration"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "sources", Attributes::Sources::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "sources", Attributes::Sources::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "sources", Attributes::Sources::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterPowerSource(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::PowerSource; const char * clusterName = "PowerSource"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "status", Attributes::Status::Id, credsIssuerConfig), // make_unique(Id, "order", Attributes::Order::Id, credsIssuerConfig), // make_unique(Id, "description", Attributes::Description::Id, credsIssuerConfig), // make_unique(Id, "wired-assessed-input-voltage", Attributes::WiredAssessedInputVoltage::Id, credsIssuerConfig), // make_unique(Id, "wired-assessed-input-frequency", Attributes::WiredAssessedInputFrequency::Id, credsIssuerConfig), // make_unique(Id, "wired-current-type", Attributes::WiredCurrentType::Id, credsIssuerConfig), // make_unique(Id, "wired-assessed-current", Attributes::WiredAssessedCurrent::Id, credsIssuerConfig), // make_unique(Id, "wired-nominal-voltage", Attributes::WiredNominalVoltage::Id, credsIssuerConfig), // make_unique(Id, "wired-maximum-current", Attributes::WiredMaximumCurrent::Id, credsIssuerConfig), // make_unique(Id, "wired-present", Attributes::WiredPresent::Id, credsIssuerConfig), // make_unique(Id, "active-wired-faults", Attributes::ActiveWiredFaults::Id, credsIssuerConfig), // make_unique(Id, "bat-voltage", Attributes::BatVoltage::Id, credsIssuerConfig), // make_unique(Id, "bat-percent-remaining", Attributes::BatPercentRemaining::Id, credsIssuerConfig), // make_unique(Id, "bat-time-remaining", Attributes::BatTimeRemaining::Id, credsIssuerConfig), // make_unique(Id, "bat-charge-level", Attributes::BatChargeLevel::Id, credsIssuerConfig), // make_unique(Id, "bat-replacement-needed", Attributes::BatReplacementNeeded::Id, credsIssuerConfig), // make_unique(Id, "bat-replaceability", Attributes::BatReplaceability::Id, credsIssuerConfig), // make_unique(Id, "bat-present", Attributes::BatPresent::Id, credsIssuerConfig), // make_unique(Id, "active-bat-faults", Attributes::ActiveBatFaults::Id, credsIssuerConfig), // make_unique(Id, "bat-replacement-description", Attributes::BatReplacementDescription::Id, credsIssuerConfig), // make_unique(Id, "bat-common-designation", Attributes::BatCommonDesignation::Id, credsIssuerConfig), // make_unique(Id, "bat-ansidesignation", Attributes::BatANSIDesignation::Id, credsIssuerConfig), // make_unique(Id, "bat-iecdesignation", Attributes::BatIECDesignation::Id, credsIssuerConfig), // make_unique(Id, "bat-approved-chemistry", Attributes::BatApprovedChemistry::Id, credsIssuerConfig), // make_unique(Id, "bat-capacity", Attributes::BatCapacity::Id, credsIssuerConfig), // make_unique(Id, "bat-quantity", Attributes::BatQuantity::Id, credsIssuerConfig), // make_unique(Id, "bat-charge-state", Attributes::BatChargeState::Id, credsIssuerConfig), // make_unique(Id, "bat-time-to-full-charge", Attributes::BatTimeToFullCharge::Id, credsIssuerConfig), // make_unique(Id, "bat-functional-while-charging", Attributes::BatFunctionalWhileCharging::Id, credsIssuerConfig), // make_unique(Id, "bat-charging-current", Attributes::BatChargingCurrent::Id, credsIssuerConfig), // make_unique(Id, "active-bat-charge-faults", Attributes::ActiveBatChargeFaults::Id, credsIssuerConfig), // make_unique(Id, "endpoint-list", Attributes::EndpointList::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>( Id, "status", 0, UINT8_MAX, Attributes::Status::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "order", 0, UINT8_MAX, Attributes::Order::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "description", Attributes::Description::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "wired-assessed-input-voltage", 0, UINT32_MAX, Attributes::WiredAssessedInputVoltage::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "wired-assessed-input-frequency", 0, UINT16_MAX, Attributes::WiredAssessedInputFrequency::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "wired-current-type", 0, UINT8_MAX, Attributes::WiredCurrentType::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "wired-assessed-current", 0, UINT32_MAX, Attributes::WiredAssessedCurrent::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "wired-nominal-voltage", 0, UINT32_MAX, Attributes::WiredNominalVoltage::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "wired-maximum-current", 0, UINT32_MAX, Attributes::WiredMaximumCurrent::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "wired-present", 0, 1, Attributes::WiredPresent::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "active-wired-faults", Attributes::ActiveWiredFaults::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "bat-voltage", 0, UINT32_MAX, Attributes::BatVoltage::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "bat-percent-remaining", 0, UINT8_MAX, Attributes::BatPercentRemaining::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "bat-time-remaining", 0, UINT32_MAX, Attributes::BatTimeRemaining::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "bat-charge-level", 0, UINT8_MAX, Attributes::BatChargeLevel::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "bat-replacement-needed", 0, 1, Attributes::BatReplacementNeeded::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "bat-replaceability", 0, UINT8_MAX, Attributes::BatReplaceability::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "bat-present", 0, 1, Attributes::BatPresent::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "active-bat-faults", Attributes::ActiveBatFaults::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "bat-replacement-description", Attributes::BatReplacementDescription::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "bat-common-designation", 0, UINT16_MAX, Attributes::BatCommonDesignation::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "bat-ansidesignation", Attributes::BatANSIDesignation::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "bat-iecdesignation", Attributes::BatIECDesignation::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "bat-approved-chemistry", 0, UINT16_MAX, Attributes::BatApprovedChemistry::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "bat-capacity", 0, UINT32_MAX, Attributes::BatCapacity::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "bat-quantity", 0, UINT8_MAX, Attributes::BatQuantity::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "bat-charge-state", 0, UINT8_MAX, Attributes::BatChargeState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "bat-time-to-full-charge", 0, UINT32_MAX, Attributes::BatTimeToFullCharge::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "bat-functional-while-charging", 0, 1, Attributes::BatFunctionalWhileCharging::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "bat-charging-current", 0, UINT32_MAX, Attributes::BatChargingCurrent::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "active-bat-charge-faults", Attributes::ActiveBatChargeFaults::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "endpoint-list", Attributes::EndpointList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "status", Attributes::Status::Id, credsIssuerConfig), // make_unique(Id, "order", Attributes::Order::Id, credsIssuerConfig), // make_unique(Id, "description", Attributes::Description::Id, credsIssuerConfig), // make_unique(Id, "wired-assessed-input-voltage", Attributes::WiredAssessedInputVoltage::Id, credsIssuerConfig), // make_unique(Id, "wired-assessed-input-frequency", Attributes::WiredAssessedInputFrequency::Id, credsIssuerConfig), // make_unique(Id, "wired-current-type", Attributes::WiredCurrentType::Id, credsIssuerConfig), // make_unique(Id, "wired-assessed-current", Attributes::WiredAssessedCurrent::Id, credsIssuerConfig), // make_unique(Id, "wired-nominal-voltage", Attributes::WiredNominalVoltage::Id, credsIssuerConfig), // make_unique(Id, "wired-maximum-current", Attributes::WiredMaximumCurrent::Id, credsIssuerConfig), // make_unique(Id, "wired-present", Attributes::WiredPresent::Id, credsIssuerConfig), // make_unique(Id, "active-wired-faults", Attributes::ActiveWiredFaults::Id, credsIssuerConfig), // make_unique(Id, "bat-voltage", Attributes::BatVoltage::Id, credsIssuerConfig), // make_unique(Id, "bat-percent-remaining", Attributes::BatPercentRemaining::Id, credsIssuerConfig), // make_unique(Id, "bat-time-remaining", Attributes::BatTimeRemaining::Id, credsIssuerConfig), // make_unique(Id, "bat-charge-level", Attributes::BatChargeLevel::Id, credsIssuerConfig), // make_unique(Id, "bat-replacement-needed", Attributes::BatReplacementNeeded::Id, credsIssuerConfig), // make_unique(Id, "bat-replaceability", Attributes::BatReplaceability::Id, credsIssuerConfig), // make_unique(Id, "bat-present", Attributes::BatPresent::Id, credsIssuerConfig), // make_unique(Id, "active-bat-faults", Attributes::ActiveBatFaults::Id, credsIssuerConfig), // make_unique(Id, "bat-replacement-description", Attributes::BatReplacementDescription::Id, credsIssuerConfig), // make_unique(Id, "bat-common-designation", Attributes::BatCommonDesignation::Id, credsIssuerConfig), // make_unique(Id, "bat-ansidesignation", Attributes::BatANSIDesignation::Id, credsIssuerConfig), // make_unique(Id, "bat-iecdesignation", Attributes::BatIECDesignation::Id, credsIssuerConfig), // make_unique(Id, "bat-approved-chemistry", Attributes::BatApprovedChemistry::Id, credsIssuerConfig), // make_unique(Id, "bat-capacity", Attributes::BatCapacity::Id, credsIssuerConfig), // make_unique(Id, "bat-quantity", Attributes::BatQuantity::Id, credsIssuerConfig), // make_unique(Id, "bat-charge-state", Attributes::BatChargeState::Id, credsIssuerConfig), // make_unique(Id, "bat-time-to-full-charge", Attributes::BatTimeToFullCharge::Id, credsIssuerConfig), // make_unique(Id, "bat-functional-while-charging", Attributes::BatFunctionalWhileCharging::Id, credsIssuerConfig), // make_unique(Id, "bat-charging-current", Attributes::BatChargingCurrent::Id, credsIssuerConfig), // make_unique(Id, "active-bat-charge-faults", Attributes::ActiveBatChargeFaults::Id, credsIssuerConfig), // make_unique(Id, "endpoint-list", Attributes::EndpointList::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "wired-fault-change", Events::WiredFaultChange::Id, credsIssuerConfig), // make_unique(Id, "bat-fault-change", Events::BatFaultChange::Id, credsIssuerConfig), // make_unique(Id, "bat-charge-fault-change", Events::BatChargeFaultChange::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "wired-fault-change", Events::WiredFaultChange::Id, credsIssuerConfig), // make_unique(Id, "bat-fault-change", Events::BatFaultChange::Id, credsIssuerConfig), // make_unique(Id, "bat-charge-fault-change", Events::BatChargeFaultChange::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterGeneralCommissioning(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::GeneralCommissioning; const char * clusterName = "GeneralCommissioning"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "breadcrumb", Attributes::Breadcrumb::Id, credsIssuerConfig), // make_unique(Id, "basic-commissioning-info", Attributes::BasicCommissioningInfo::Id, credsIssuerConfig), // make_unique(Id, "regulatory-config", Attributes::RegulatoryConfig::Id, credsIssuerConfig), // make_unique(Id, "location-capability", Attributes::LocationCapability::Id, credsIssuerConfig), // make_unique(Id, "supports-concurrent-connection", Attributes::SupportsConcurrentConnection::Id, credsIssuerConfig), // make_unique(Id, "tcaccepted-version", Attributes::TCAcceptedVersion::Id, credsIssuerConfig), // make_unique(Id, "tcmin-required-version", Attributes::TCMinRequiredVersion::Id, credsIssuerConfig), // make_unique(Id, "tcacknowledgements", Attributes::TCAcknowledgements::Id, credsIssuerConfig), // make_unique(Id, "tcacknowledgements-required", Attributes::TCAcknowledgementsRequired::Id, credsIssuerConfig), // make_unique(Id, "tcupdate-deadline", Attributes::TCUpdateDeadline::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "breadcrumb", 0, UINT64_MAX, Attributes::Breadcrumb::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "basic-commissioning-info", Attributes::BasicCommissioningInfo::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "regulatory-config", 0, UINT8_MAX, Attributes::RegulatoryConfig::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "location-capability", 0, UINT8_MAX, Attributes::LocationCapability::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "supports-concurrent-connection", 0, 1, Attributes::SupportsConcurrentConnection::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tcaccepted-version", 0, UINT16_MAX, Attributes::TCAcceptedVersion::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tcmin-required-version", 0, UINT16_MAX, Attributes::TCMinRequiredVersion::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tcacknowledgements", 0, UINT16_MAX, Attributes::TCAcknowledgements::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tcacknowledgements-required", 0, 1, Attributes::TCAcknowledgementsRequired::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tcupdate-deadline", 0, UINT32_MAX, Attributes::TCUpdateDeadline::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "breadcrumb", Attributes::Breadcrumb::Id, credsIssuerConfig), // make_unique(Id, "basic-commissioning-info", Attributes::BasicCommissioningInfo::Id, credsIssuerConfig), // make_unique(Id, "regulatory-config", Attributes::RegulatoryConfig::Id, credsIssuerConfig), // make_unique(Id, "location-capability", Attributes::LocationCapability::Id, credsIssuerConfig), // make_unique(Id, "supports-concurrent-connection", Attributes::SupportsConcurrentConnection::Id, credsIssuerConfig), // make_unique(Id, "tcaccepted-version", Attributes::TCAcceptedVersion::Id, credsIssuerConfig), // make_unique(Id, "tcmin-required-version", Attributes::TCMinRequiredVersion::Id, credsIssuerConfig), // make_unique(Id, "tcacknowledgements", Attributes::TCAcknowledgements::Id, credsIssuerConfig), // make_unique(Id, "tcacknowledgements-required", Attributes::TCAcknowledgementsRequired::Id, credsIssuerConfig), // make_unique(Id, "tcupdate-deadline", Attributes::TCUpdateDeadline::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterNetworkCommissioning(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::NetworkCommissioning; const char * clusterName = "NetworkCommissioning"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "max-networks", Attributes::MaxNetworks::Id, credsIssuerConfig), // make_unique(Id, "networks", Attributes::Networks::Id, credsIssuerConfig), // make_unique(Id, "scan-max-time-seconds", Attributes::ScanMaxTimeSeconds::Id, credsIssuerConfig), // make_unique(Id, "connect-max-time-seconds", Attributes::ConnectMaxTimeSeconds::Id, credsIssuerConfig), // make_unique(Id, "interface-enabled", Attributes::InterfaceEnabled::Id, credsIssuerConfig), // make_unique(Id, "last-networking-status", Attributes::LastNetworkingStatus::Id, credsIssuerConfig), // make_unique(Id, "last-network-id", Attributes::LastNetworkID::Id, credsIssuerConfig), // make_unique(Id, "last-connect-error-value", Attributes::LastConnectErrorValue::Id, credsIssuerConfig), // make_unique(Id, "supported-wi-fi-bands", Attributes::SupportedWiFiBands::Id, credsIssuerConfig), // make_unique(Id, "supported-thread-features", Attributes::SupportedThreadFeatures::Id, credsIssuerConfig), // make_unique(Id, "thread-version", Attributes::ThreadVersion::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "max-networks", 0, UINT8_MAX, Attributes::MaxNetworks::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "networks", Attributes::Networks::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "scan-max-time-seconds", 0, UINT8_MAX, Attributes::ScanMaxTimeSeconds::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "connect-max-time-seconds", 0, UINT8_MAX, Attributes::ConnectMaxTimeSeconds::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "interface-enabled", 0, 1, Attributes::InterfaceEnabled::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "last-networking-status", 0, UINT8_MAX, Attributes::LastNetworkingStatus::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "last-network-id", Attributes::LastNetworkID::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "last-connect-error-value", INT32_MIN, INT32_MAX, Attributes::LastConnectErrorValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "supported-wi-fi-bands", Attributes::SupportedWiFiBands::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "supported-thread-features", 0, UINT16_MAX, Attributes::SupportedThreadFeatures::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "thread-version", 0, UINT16_MAX, Attributes::ThreadVersion::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "max-networks", Attributes::MaxNetworks::Id, credsIssuerConfig), // make_unique(Id, "networks", Attributes::Networks::Id, credsIssuerConfig), // make_unique(Id, "scan-max-time-seconds", Attributes::ScanMaxTimeSeconds::Id, credsIssuerConfig), // make_unique(Id, "connect-max-time-seconds", Attributes::ConnectMaxTimeSeconds::Id, credsIssuerConfig), // make_unique(Id, "interface-enabled", Attributes::InterfaceEnabled::Id, credsIssuerConfig), // make_unique(Id, "last-networking-status", Attributes::LastNetworkingStatus::Id, credsIssuerConfig), // make_unique(Id, "last-network-id", Attributes::LastNetworkID::Id, credsIssuerConfig), // make_unique(Id, "last-connect-error-value", Attributes::LastConnectErrorValue::Id, credsIssuerConfig), // make_unique(Id, "supported-wi-fi-bands", Attributes::SupportedWiFiBands::Id, credsIssuerConfig), // make_unique(Id, "supported-thread-features", Attributes::SupportedThreadFeatures::Id, credsIssuerConfig), // make_unique(Id, "thread-version", Attributes::ThreadVersion::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterDiagnosticLogs(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::DiagnosticLogs; const char * clusterName = "DiagnosticLogs"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterGeneralDiagnostics(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::GeneralDiagnostics; const char * clusterName = "GeneralDiagnostics"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "network-interfaces", Attributes::NetworkInterfaces::Id, credsIssuerConfig), // make_unique(Id, "reboot-count", Attributes::RebootCount::Id, credsIssuerConfig), // make_unique(Id, "up-time", Attributes::UpTime::Id, credsIssuerConfig), // make_unique(Id, "total-operational-hours", Attributes::TotalOperationalHours::Id, credsIssuerConfig), // make_unique(Id, "boot-reason", Attributes::BootReason::Id, credsIssuerConfig), // make_unique(Id, "active-hardware-faults", Attributes::ActiveHardwareFaults::Id, credsIssuerConfig), // make_unique(Id, "active-radio-faults", Attributes::ActiveRadioFaults::Id, credsIssuerConfig), // make_unique(Id, "active-network-faults", Attributes::ActiveNetworkFaults::Id, credsIssuerConfig), // make_unique(Id, "test-event-triggers-enabled", Attributes::TestEventTriggersEnabled::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "network-interfaces", Attributes::NetworkInterfaces::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "reboot-count", 0, UINT16_MAX, Attributes::RebootCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "up-time", 0, UINT64_MAX, Attributes::UpTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "total-operational-hours", 0, UINT32_MAX, Attributes::TotalOperationalHours::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "boot-reason", 0, UINT8_MAX, Attributes::BootReason::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "active-hardware-faults", Attributes::ActiveHardwareFaults::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "active-radio-faults", Attributes::ActiveRadioFaults::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "active-network-faults", Attributes::ActiveNetworkFaults::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "test-event-triggers-enabled", 0, 1, Attributes::TestEventTriggersEnabled::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "network-interfaces", Attributes::NetworkInterfaces::Id, credsIssuerConfig), // make_unique(Id, "reboot-count", Attributes::RebootCount::Id, credsIssuerConfig), // make_unique(Id, "up-time", Attributes::UpTime::Id, credsIssuerConfig), // make_unique(Id, "total-operational-hours", Attributes::TotalOperationalHours::Id, credsIssuerConfig), // make_unique(Id, "boot-reason", Attributes::BootReason::Id, credsIssuerConfig), // make_unique(Id, "active-hardware-faults", Attributes::ActiveHardwareFaults::Id, credsIssuerConfig), // make_unique(Id, "active-radio-faults", Attributes::ActiveRadioFaults::Id, credsIssuerConfig), // make_unique(Id, "active-network-faults", Attributes::ActiveNetworkFaults::Id, credsIssuerConfig), // make_unique(Id, "test-event-triggers-enabled", Attributes::TestEventTriggersEnabled::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "hardware-fault-change", Events::HardwareFaultChange::Id, credsIssuerConfig), // make_unique(Id, "radio-fault-change", Events::RadioFaultChange::Id, credsIssuerConfig), // make_unique(Id, "network-fault-change", Events::NetworkFaultChange::Id, credsIssuerConfig), // make_unique(Id, "boot-reason", Events::BootReason::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "hardware-fault-change", Events::HardwareFaultChange::Id, credsIssuerConfig), // make_unique(Id, "radio-fault-change", Events::RadioFaultChange::Id, credsIssuerConfig), // make_unique(Id, "network-fault-change", Events::NetworkFaultChange::Id, credsIssuerConfig), // make_unique(Id, "boot-reason", Events::BootReason::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterSoftwareDiagnostics(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::SoftwareDiagnostics; const char * clusterName = "SoftwareDiagnostics"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "thread-metrics", Attributes::ThreadMetrics::Id, credsIssuerConfig), // make_unique(Id, "current-heap-free", Attributes::CurrentHeapFree::Id, credsIssuerConfig), // make_unique(Id, "current-heap-used", Attributes::CurrentHeapUsed::Id, credsIssuerConfig), // make_unique(Id, "current-heap-high-watermark", Attributes::CurrentHeapHighWatermark::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "thread-metrics", Attributes::ThreadMetrics::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-heap-free", 0, UINT64_MAX, Attributes::CurrentHeapFree::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-heap-used", 0, UINT64_MAX, Attributes::CurrentHeapUsed::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-heap-high-watermark", 0, UINT64_MAX, Attributes::CurrentHeapHighWatermark::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "thread-metrics", Attributes::ThreadMetrics::Id, credsIssuerConfig), // make_unique(Id, "current-heap-free", Attributes::CurrentHeapFree::Id, credsIssuerConfig), // make_unique(Id, "current-heap-used", Attributes::CurrentHeapUsed::Id, credsIssuerConfig), // make_unique(Id, "current-heap-high-watermark", Attributes::CurrentHeapHighWatermark::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "software-fault", Events::SoftwareFault::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "software-fault", Events::SoftwareFault::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterThreadNetworkDiagnostics(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ThreadNetworkDiagnostics; const char * clusterName = "ThreadNetworkDiagnostics"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "channel", Attributes::Channel::Id, credsIssuerConfig), // make_unique(Id, "routing-role", Attributes::RoutingRole::Id, credsIssuerConfig), // make_unique(Id, "network-name", Attributes::NetworkName::Id, credsIssuerConfig), // make_unique(Id, "pan-id", Attributes::PanId::Id, credsIssuerConfig), // make_unique(Id, "extended-pan-id", Attributes::ExtendedPanId::Id, credsIssuerConfig), // make_unique(Id, "mesh-local-prefix", Attributes::MeshLocalPrefix::Id, credsIssuerConfig), // make_unique(Id, "overrun-count", Attributes::OverrunCount::Id, credsIssuerConfig), // make_unique(Id, "neighbor-table", Attributes::NeighborTable::Id, credsIssuerConfig), // make_unique(Id, "route-table", Attributes::RouteTable::Id, credsIssuerConfig), // make_unique(Id, "partition-id", Attributes::PartitionId::Id, credsIssuerConfig), // make_unique(Id, "weighting", Attributes::Weighting::Id, credsIssuerConfig), // make_unique(Id, "data-version", Attributes::DataVersion::Id, credsIssuerConfig), // make_unique(Id, "stable-data-version", Attributes::StableDataVersion::Id, credsIssuerConfig), // make_unique(Id, "leader-router-id", Attributes::LeaderRouterId::Id, credsIssuerConfig), // make_unique(Id, "detached-role-count", Attributes::DetachedRoleCount::Id, credsIssuerConfig), // make_unique(Id, "child-role-count", Attributes::ChildRoleCount::Id, credsIssuerConfig), // make_unique(Id, "router-role-count", Attributes::RouterRoleCount::Id, credsIssuerConfig), // make_unique(Id, "leader-role-count", Attributes::LeaderRoleCount::Id, credsIssuerConfig), // make_unique(Id, "attach-attempt-count", Attributes::AttachAttemptCount::Id, credsIssuerConfig), // make_unique(Id, "partition-id-change-count", Attributes::PartitionIdChangeCount::Id, credsIssuerConfig), // make_unique(Id, "better-partition-attach-attempt-count", Attributes::BetterPartitionAttachAttemptCount::Id, credsIssuerConfig), // make_unique(Id, "parent-change-count", Attributes::ParentChangeCount::Id, credsIssuerConfig), // make_unique(Id, "tx-total-count", Attributes::TxTotalCount::Id, credsIssuerConfig), // make_unique(Id, "tx-unicast-count", Attributes::TxUnicastCount::Id, credsIssuerConfig), // make_unique(Id, "tx-broadcast-count", Attributes::TxBroadcastCount::Id, credsIssuerConfig), // make_unique(Id, "tx-ack-requested-count", Attributes::TxAckRequestedCount::Id, credsIssuerConfig), // make_unique(Id, "tx-acked-count", Attributes::TxAckedCount::Id, credsIssuerConfig), // make_unique(Id, "tx-no-ack-requested-count", Attributes::TxNoAckRequestedCount::Id, credsIssuerConfig), // make_unique(Id, "tx-data-count", Attributes::TxDataCount::Id, credsIssuerConfig), // make_unique(Id, "tx-data-poll-count", Attributes::TxDataPollCount::Id, credsIssuerConfig), // make_unique(Id, "tx-beacon-count", Attributes::TxBeaconCount::Id, credsIssuerConfig), // make_unique(Id, "tx-beacon-request-count", Attributes::TxBeaconRequestCount::Id, credsIssuerConfig), // make_unique(Id, "tx-other-count", Attributes::TxOtherCount::Id, credsIssuerConfig), // make_unique(Id, "tx-retry-count", Attributes::TxRetryCount::Id, credsIssuerConfig), // make_unique(Id, "tx-direct-max-retry-expiry-count", Attributes::TxDirectMaxRetryExpiryCount::Id, credsIssuerConfig), // make_unique(Id, "tx-indirect-max-retry-expiry-count", Attributes::TxIndirectMaxRetryExpiryCount::Id, credsIssuerConfig), // make_unique(Id, "tx-err-cca-count", Attributes::TxErrCcaCount::Id, credsIssuerConfig), // make_unique(Id, "tx-err-abort-count", Attributes::TxErrAbortCount::Id, credsIssuerConfig), // make_unique(Id, "tx-err-busy-channel-count", Attributes::TxErrBusyChannelCount::Id, credsIssuerConfig), // make_unique(Id, "rx-total-count", Attributes::RxTotalCount::Id, credsIssuerConfig), // make_unique(Id, "rx-unicast-count", Attributes::RxUnicastCount::Id, credsIssuerConfig), // make_unique(Id, "rx-broadcast-count", Attributes::RxBroadcastCount::Id, credsIssuerConfig), // make_unique(Id, "rx-data-count", Attributes::RxDataCount::Id, credsIssuerConfig), // make_unique(Id, "rx-data-poll-count", Attributes::RxDataPollCount::Id, credsIssuerConfig), // make_unique(Id, "rx-beacon-count", Attributes::RxBeaconCount::Id, credsIssuerConfig), // make_unique(Id, "rx-beacon-request-count", Attributes::RxBeaconRequestCount::Id, credsIssuerConfig), // make_unique(Id, "rx-other-count", Attributes::RxOtherCount::Id, credsIssuerConfig), // make_unique(Id, "rx-address-filtered-count", Attributes::RxAddressFilteredCount::Id, credsIssuerConfig), // make_unique(Id, "rx-dest-addr-filtered-count", Attributes::RxDestAddrFilteredCount::Id, credsIssuerConfig), // make_unique(Id, "rx-duplicated-count", Attributes::RxDuplicatedCount::Id, credsIssuerConfig), // make_unique(Id, "rx-err-no-frame-count", Attributes::RxErrNoFrameCount::Id, credsIssuerConfig), // make_unique(Id, "rx-err-unknown-neighbor-count", Attributes::RxErrUnknownNeighborCount::Id, credsIssuerConfig), // make_unique(Id, "rx-err-invalid-src-addr-count", Attributes::RxErrInvalidSrcAddrCount::Id, credsIssuerConfig), // make_unique(Id, "rx-err-sec-count", Attributes::RxErrSecCount::Id, credsIssuerConfig), // make_unique(Id, "rx-err-fcs-count", Attributes::RxErrFcsCount::Id, credsIssuerConfig), // make_unique(Id, "rx-err-other-count", Attributes::RxErrOtherCount::Id, credsIssuerConfig), // make_unique(Id, "active-timestamp", Attributes::ActiveTimestamp::Id, credsIssuerConfig), // make_unique(Id, "pending-timestamp", Attributes::PendingTimestamp::Id, credsIssuerConfig), // make_unique(Id, "delay", Attributes::Delay::Id, credsIssuerConfig), // make_unique(Id, "security-policy", Attributes::SecurityPolicy::Id, credsIssuerConfig), // make_unique(Id, "channel-page0mask", Attributes::ChannelPage0Mask::Id, credsIssuerConfig), // make_unique(Id, "operational-dataset-components", Attributes::OperationalDatasetComponents::Id, credsIssuerConfig), // make_unique(Id, "active-network-faults-list", Attributes::ActiveNetworkFaultsList::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>(Id, "channel", 0, UINT16_MAX, Attributes::Channel::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "routing-role", 0, UINT8_MAX, Attributes::RoutingRole::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "network-name", Attributes::NetworkName::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "pan-id", 0, UINT16_MAX, Attributes::PanId::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "extended-pan-id", 0, UINT64_MAX, Attributes::ExtendedPanId::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "mesh-local-prefix", Attributes::MeshLocalPrefix::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "overrun-count", 0, UINT64_MAX, Attributes::OverrunCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "neighbor-table", Attributes::NeighborTable::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "route-table", Attributes::RouteTable::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "partition-id", 0, UINT32_MAX, Attributes::PartitionId::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "weighting", 0, UINT16_MAX, Attributes::Weighting::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "data-version", 0, UINT16_MAX, Attributes::DataVersion::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "stable-data-version", 0, UINT16_MAX, Attributes::StableDataVersion::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "leader-router-id", 0, UINT8_MAX, Attributes::LeaderRouterId::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "detached-role-count", 0, UINT16_MAX, Attributes::DetachedRoleCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "child-role-count", 0, UINT16_MAX, Attributes::ChildRoleCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "router-role-count", 0, UINT16_MAX, Attributes::RouterRoleCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "leader-role-count", 0, UINT16_MAX, Attributes::LeaderRoleCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "attach-attempt-count", 0, UINT16_MAX, Attributes::AttachAttemptCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "partition-id-change-count", 0, UINT16_MAX, Attributes::PartitionIdChangeCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "better-partition-attach-attempt-count", 0, UINT16_MAX, Attributes::BetterPartitionAttachAttemptCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "parent-change-count", 0, UINT16_MAX, Attributes::ParentChangeCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-total-count", 0, UINT32_MAX, Attributes::TxTotalCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-unicast-count", 0, UINT32_MAX, Attributes::TxUnicastCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-broadcast-count", 0, UINT32_MAX, Attributes::TxBroadcastCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-ack-requested-count", 0, UINT32_MAX, Attributes::TxAckRequestedCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-acked-count", 0, UINT32_MAX, Attributes::TxAckedCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-no-ack-requested-count", 0, UINT32_MAX, Attributes::TxNoAckRequestedCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-data-count", 0, UINT32_MAX, Attributes::TxDataCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-data-poll-count", 0, UINT32_MAX, Attributes::TxDataPollCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-beacon-count", 0, UINT32_MAX, Attributes::TxBeaconCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-beacon-request-count", 0, UINT32_MAX, Attributes::TxBeaconRequestCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-other-count", 0, UINT32_MAX, Attributes::TxOtherCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-retry-count", 0, UINT32_MAX, Attributes::TxRetryCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-direct-max-retry-expiry-count", 0, UINT32_MAX, Attributes::TxDirectMaxRetryExpiryCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-indirect-max-retry-expiry-count", 0, UINT32_MAX, Attributes::TxIndirectMaxRetryExpiryCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-err-cca-count", 0, UINT32_MAX, Attributes::TxErrCcaCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-err-abort-count", 0, UINT32_MAX, Attributes::TxErrAbortCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-err-busy-channel-count", 0, UINT32_MAX, Attributes::TxErrBusyChannelCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "rx-total-count", 0, UINT32_MAX, Attributes::RxTotalCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "rx-unicast-count", 0, UINT32_MAX, Attributes::RxUnicastCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "rx-broadcast-count", 0, UINT32_MAX, Attributes::RxBroadcastCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "rx-data-count", 0, UINT32_MAX, Attributes::RxDataCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "rx-data-poll-count", 0, UINT32_MAX, Attributes::RxDataPollCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "rx-beacon-count", 0, UINT32_MAX, Attributes::RxBeaconCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "rx-beacon-request-count", 0, UINT32_MAX, Attributes::RxBeaconRequestCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "rx-other-count", 0, UINT32_MAX, Attributes::RxOtherCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "rx-address-filtered-count", 0, UINT32_MAX, Attributes::RxAddressFilteredCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "rx-dest-addr-filtered-count", 0, UINT32_MAX, Attributes::RxDestAddrFilteredCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "rx-duplicated-count", 0, UINT32_MAX, Attributes::RxDuplicatedCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "rx-err-no-frame-count", 0, UINT32_MAX, Attributes::RxErrNoFrameCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "rx-err-unknown-neighbor-count", 0, UINT32_MAX, Attributes::RxErrUnknownNeighborCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "rx-err-invalid-src-addr-count", 0, UINT32_MAX, Attributes::RxErrInvalidSrcAddrCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "rx-err-sec-count", 0, UINT32_MAX, Attributes::RxErrSecCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "rx-err-fcs-count", 0, UINT32_MAX, Attributes::RxErrFcsCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "rx-err-other-count", 0, UINT32_MAX, Attributes::RxErrOtherCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "active-timestamp", 0, UINT64_MAX, Attributes::ActiveTimestamp::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "pending-timestamp", 0, UINT64_MAX, Attributes::PendingTimestamp::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "delay", 0, UINT32_MAX, Attributes::Delay::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "security-policy", Attributes::SecurityPolicy::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "channel-page0mask", Attributes::ChannelPage0Mask::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "operational-dataset-components", Attributes::OperationalDatasetComponents::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "active-network-faults-list", Attributes::ActiveNetworkFaultsList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "channel", Attributes::Channel::Id, credsIssuerConfig), // make_unique(Id, "routing-role", Attributes::RoutingRole::Id, credsIssuerConfig), // make_unique(Id, "network-name", Attributes::NetworkName::Id, credsIssuerConfig), // make_unique(Id, "pan-id", Attributes::PanId::Id, credsIssuerConfig), // make_unique(Id, "extended-pan-id", Attributes::ExtendedPanId::Id, credsIssuerConfig), // make_unique(Id, "mesh-local-prefix", Attributes::MeshLocalPrefix::Id, credsIssuerConfig), // make_unique(Id, "overrun-count", Attributes::OverrunCount::Id, credsIssuerConfig), // make_unique(Id, "neighbor-table", Attributes::NeighborTable::Id, credsIssuerConfig), // make_unique(Id, "route-table", Attributes::RouteTable::Id, credsIssuerConfig), // make_unique(Id, "partition-id", Attributes::PartitionId::Id, credsIssuerConfig), // make_unique(Id, "weighting", Attributes::Weighting::Id, credsIssuerConfig), // make_unique(Id, "data-version", Attributes::DataVersion::Id, credsIssuerConfig), // make_unique(Id, "stable-data-version", Attributes::StableDataVersion::Id, credsIssuerConfig), // make_unique(Id, "leader-router-id", Attributes::LeaderRouterId::Id, credsIssuerConfig), // make_unique(Id, "detached-role-count", Attributes::DetachedRoleCount::Id, credsIssuerConfig), // make_unique(Id, "child-role-count", Attributes::ChildRoleCount::Id, credsIssuerConfig), // make_unique(Id, "router-role-count", Attributes::RouterRoleCount::Id, credsIssuerConfig), // make_unique(Id, "leader-role-count", Attributes::LeaderRoleCount::Id, credsIssuerConfig), // make_unique(Id, "attach-attempt-count", Attributes::AttachAttemptCount::Id, credsIssuerConfig), // make_unique(Id, "partition-id-change-count", Attributes::PartitionIdChangeCount::Id, credsIssuerConfig), // make_unique(Id, "better-partition-attach-attempt-count", Attributes::BetterPartitionAttachAttemptCount::Id, credsIssuerConfig), // make_unique(Id, "parent-change-count", Attributes::ParentChangeCount::Id, credsIssuerConfig), // make_unique(Id, "tx-total-count", Attributes::TxTotalCount::Id, credsIssuerConfig), // make_unique(Id, "tx-unicast-count", Attributes::TxUnicastCount::Id, credsIssuerConfig), // make_unique(Id, "tx-broadcast-count", Attributes::TxBroadcastCount::Id, credsIssuerConfig), // make_unique(Id, "tx-ack-requested-count", Attributes::TxAckRequestedCount::Id, credsIssuerConfig), // make_unique(Id, "tx-acked-count", Attributes::TxAckedCount::Id, credsIssuerConfig), // make_unique(Id, "tx-no-ack-requested-count", Attributes::TxNoAckRequestedCount::Id, credsIssuerConfig), // make_unique(Id, "tx-data-count", Attributes::TxDataCount::Id, credsIssuerConfig), // make_unique(Id, "tx-data-poll-count", Attributes::TxDataPollCount::Id, credsIssuerConfig), // make_unique(Id, "tx-beacon-count", Attributes::TxBeaconCount::Id, credsIssuerConfig), // make_unique(Id, "tx-beacon-request-count", Attributes::TxBeaconRequestCount::Id, credsIssuerConfig), // make_unique(Id, "tx-other-count", Attributes::TxOtherCount::Id, credsIssuerConfig), // make_unique(Id, "tx-retry-count", Attributes::TxRetryCount::Id, credsIssuerConfig), // make_unique(Id, "tx-direct-max-retry-expiry-count", Attributes::TxDirectMaxRetryExpiryCount::Id, credsIssuerConfig), // make_unique(Id, "tx-indirect-max-retry-expiry-count", Attributes::TxIndirectMaxRetryExpiryCount::Id, credsIssuerConfig), // make_unique(Id, "tx-err-cca-count", Attributes::TxErrCcaCount::Id, credsIssuerConfig), // make_unique(Id, "tx-err-abort-count", Attributes::TxErrAbortCount::Id, credsIssuerConfig), // make_unique(Id, "tx-err-busy-channel-count", Attributes::TxErrBusyChannelCount::Id, credsIssuerConfig), // make_unique(Id, "rx-total-count", Attributes::RxTotalCount::Id, credsIssuerConfig), // make_unique(Id, "rx-unicast-count", Attributes::RxUnicastCount::Id, credsIssuerConfig), // make_unique(Id, "rx-broadcast-count", Attributes::RxBroadcastCount::Id, credsIssuerConfig), // make_unique(Id, "rx-data-count", Attributes::RxDataCount::Id, credsIssuerConfig), // make_unique(Id, "rx-data-poll-count", Attributes::RxDataPollCount::Id, credsIssuerConfig), // make_unique(Id, "rx-beacon-count", Attributes::RxBeaconCount::Id, credsIssuerConfig), // make_unique(Id, "rx-beacon-request-count", Attributes::RxBeaconRequestCount::Id, credsIssuerConfig), // make_unique(Id, "rx-other-count", Attributes::RxOtherCount::Id, credsIssuerConfig), // make_unique(Id, "rx-address-filtered-count", Attributes::RxAddressFilteredCount::Id, credsIssuerConfig), // make_unique(Id, "rx-dest-addr-filtered-count", Attributes::RxDestAddrFilteredCount::Id, credsIssuerConfig), // make_unique(Id, "rx-duplicated-count", Attributes::RxDuplicatedCount::Id, credsIssuerConfig), // make_unique(Id, "rx-err-no-frame-count", Attributes::RxErrNoFrameCount::Id, credsIssuerConfig), // make_unique(Id, "rx-err-unknown-neighbor-count", Attributes::RxErrUnknownNeighborCount::Id, credsIssuerConfig), // make_unique(Id, "rx-err-invalid-src-addr-count", Attributes::RxErrInvalidSrcAddrCount::Id, credsIssuerConfig), // make_unique(Id, "rx-err-sec-count", Attributes::RxErrSecCount::Id, credsIssuerConfig), // make_unique(Id, "rx-err-fcs-count", Attributes::RxErrFcsCount::Id, credsIssuerConfig), // make_unique(Id, "rx-err-other-count", Attributes::RxErrOtherCount::Id, credsIssuerConfig), // make_unique(Id, "active-timestamp", Attributes::ActiveTimestamp::Id, credsIssuerConfig), // make_unique(Id, "pending-timestamp", Attributes::PendingTimestamp::Id, credsIssuerConfig), // make_unique(Id, "delay", Attributes::Delay::Id, credsIssuerConfig), // make_unique(Id, "security-policy", Attributes::SecurityPolicy::Id, credsIssuerConfig), // make_unique(Id, "channel-page0mask", Attributes::ChannelPage0Mask::Id, credsIssuerConfig), // make_unique(Id, "operational-dataset-components", Attributes::OperationalDatasetComponents::Id, credsIssuerConfig), // make_unique(Id, "active-network-faults-list", Attributes::ActiveNetworkFaultsList::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "connection-status", Events::ConnectionStatus::Id, credsIssuerConfig), // make_unique(Id, "network-fault-change", Events::NetworkFaultChange::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "connection-status", Events::ConnectionStatus::Id, credsIssuerConfig), // make_unique(Id, "network-fault-change", Events::NetworkFaultChange::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterWiFiNetworkDiagnostics(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::WiFiNetworkDiagnostics; const char * clusterName = "WiFiNetworkDiagnostics"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "bssid", Attributes::Bssid::Id, credsIssuerConfig), // make_unique(Id, "security-type", Attributes::SecurityType::Id, credsIssuerConfig), // make_unique(Id, "wi-fi-version", Attributes::WiFiVersion::Id, credsIssuerConfig), // make_unique(Id, "channel-number", Attributes::ChannelNumber::Id, credsIssuerConfig), // make_unique(Id, "rssi", Attributes::Rssi::Id, credsIssuerConfig), // make_unique(Id, "beacon-lost-count", Attributes::BeaconLostCount::Id, credsIssuerConfig), // make_unique(Id, "beacon-rx-count", Attributes::BeaconRxCount::Id, credsIssuerConfig), // make_unique(Id, "packet-multicast-rx-count", Attributes::PacketMulticastRxCount::Id, credsIssuerConfig), // make_unique(Id, "packet-multicast-tx-count", Attributes::PacketMulticastTxCount::Id, credsIssuerConfig), // make_unique(Id, "packet-unicast-rx-count", Attributes::PacketUnicastRxCount::Id, credsIssuerConfig), // make_unique(Id, "packet-unicast-tx-count", Attributes::PacketUnicastTxCount::Id, credsIssuerConfig), // make_unique(Id, "current-max-rate", Attributes::CurrentMaxRate::Id, credsIssuerConfig), // make_unique(Id, "overrun-count", Attributes::OverrunCount::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "bssid", Attributes::Bssid::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "security-type", 0, UINT8_MAX, Attributes::SecurityType::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "wi-fi-version", 0, UINT8_MAX, Attributes::WiFiVersion::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "channel-number", 0, UINT16_MAX, Attributes::ChannelNumber::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "rssi", INT8_MIN, INT8_MAX, Attributes::Rssi::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "beacon-lost-count", 0, UINT32_MAX, Attributes::BeaconLostCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "beacon-rx-count", 0, UINT32_MAX, Attributes::BeaconRxCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "packet-multicast-rx-count", 0, UINT32_MAX, Attributes::PacketMulticastRxCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "packet-multicast-tx-count", 0, UINT32_MAX, Attributes::PacketMulticastTxCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "packet-unicast-rx-count", 0, UINT32_MAX, Attributes::PacketUnicastRxCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "packet-unicast-tx-count", 0, UINT32_MAX, Attributes::PacketUnicastTxCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "current-max-rate", 0, UINT64_MAX, Attributes::CurrentMaxRate::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "overrun-count", 0, UINT64_MAX, Attributes::OverrunCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "bssid", Attributes::Bssid::Id, credsIssuerConfig), // make_unique(Id, "security-type", Attributes::SecurityType::Id, credsIssuerConfig), // make_unique(Id, "wi-fi-version", Attributes::WiFiVersion::Id, credsIssuerConfig), // make_unique(Id, "channel-number", Attributes::ChannelNumber::Id, credsIssuerConfig), // make_unique(Id, "rssi", Attributes::Rssi::Id, credsIssuerConfig), // make_unique(Id, "beacon-lost-count", Attributes::BeaconLostCount::Id, credsIssuerConfig), // make_unique(Id, "beacon-rx-count", Attributes::BeaconRxCount::Id, credsIssuerConfig), // make_unique(Id, "packet-multicast-rx-count", Attributes::PacketMulticastRxCount::Id, credsIssuerConfig), // make_unique(Id, "packet-multicast-tx-count", Attributes::PacketMulticastTxCount::Id, credsIssuerConfig), // make_unique(Id, "packet-unicast-rx-count", Attributes::PacketUnicastRxCount::Id, credsIssuerConfig), // make_unique(Id, "packet-unicast-tx-count", Attributes::PacketUnicastTxCount::Id, credsIssuerConfig), // make_unique(Id, "current-max-rate", Attributes::CurrentMaxRate::Id, credsIssuerConfig), // make_unique(Id, "overrun-count", Attributes::OverrunCount::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "disconnection", Events::Disconnection::Id, credsIssuerConfig), // make_unique(Id, "association-failure", Events::AssociationFailure::Id, credsIssuerConfig), // make_unique(Id, "connection-status", Events::ConnectionStatus::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "disconnection", Events::Disconnection::Id, credsIssuerConfig), // make_unique(Id, "association-failure", Events::AssociationFailure::Id, credsIssuerConfig), // make_unique(Id, "connection-status", Events::ConnectionStatus::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterEthernetNetworkDiagnostics(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::EthernetNetworkDiagnostics; const char * clusterName = "EthernetNetworkDiagnostics"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "phyrate", Attributes::PHYRate::Id, credsIssuerConfig), // make_unique(Id, "full-duplex", Attributes::FullDuplex::Id, credsIssuerConfig), // make_unique(Id, "packet-rx-count", Attributes::PacketRxCount::Id, credsIssuerConfig), // make_unique(Id, "packet-tx-count", Attributes::PacketTxCount::Id, credsIssuerConfig), // make_unique(Id, "tx-err-count", Attributes::TxErrCount::Id, credsIssuerConfig), // make_unique(Id, "collision-count", Attributes::CollisionCount::Id, credsIssuerConfig), // make_unique(Id, "overrun-count", Attributes::OverrunCount::Id, credsIssuerConfig), // make_unique(Id, "carrier-detect", Attributes::CarrierDetect::Id, credsIssuerConfig), // make_unique(Id, "time-since-reset", Attributes::TimeSinceReset::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "phyrate", 0, UINT8_MAX, Attributes::PHYRate::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "full-duplex", 0, 1, Attributes::FullDuplex::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "packet-rx-count", 0, UINT64_MAX, Attributes::PacketRxCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "packet-tx-count", 0, UINT64_MAX, Attributes::PacketTxCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tx-err-count", 0, UINT64_MAX, Attributes::TxErrCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "collision-count", 0, UINT64_MAX, Attributes::CollisionCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "overrun-count", 0, UINT64_MAX, Attributes::OverrunCount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "carrier-detect", 0, 1, Attributes::CarrierDetect::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "time-since-reset", 0, UINT64_MAX, Attributes::TimeSinceReset::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "phyrate", Attributes::PHYRate::Id, credsIssuerConfig), // make_unique(Id, "full-duplex", Attributes::FullDuplex::Id, credsIssuerConfig), // make_unique(Id, "packet-rx-count", Attributes::PacketRxCount::Id, credsIssuerConfig), // make_unique(Id, "packet-tx-count", Attributes::PacketTxCount::Id, credsIssuerConfig), // make_unique(Id, "tx-err-count", Attributes::TxErrCount::Id, credsIssuerConfig), // make_unique(Id, "collision-count", Attributes::CollisionCount::Id, credsIssuerConfig), // make_unique(Id, "overrun-count", Attributes::OverrunCount::Id, credsIssuerConfig), // make_unique(Id, "carrier-detect", Attributes::CarrierDetect::Id, credsIssuerConfig), // make_unique(Id, "time-since-reset", Attributes::TimeSinceReset::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterTimeSynchronization(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::TimeSynchronization; const char * clusterName = "TimeSynchronization"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "utctime", Attributes::UTCTime::Id, credsIssuerConfig), // make_unique(Id, "granularity", Attributes::Granularity::Id, credsIssuerConfig), // make_unique(Id, "time-source", Attributes::TimeSource::Id, credsIssuerConfig), // make_unique(Id, "trusted-time-source", Attributes::TrustedTimeSource::Id, credsIssuerConfig), // make_unique(Id, "default-ntp", Attributes::DefaultNTP::Id, credsIssuerConfig), // make_unique(Id, "time-zone", Attributes::TimeZone::Id, credsIssuerConfig), // make_unique(Id, "dstoffset", Attributes::DSTOffset::Id, credsIssuerConfig), // make_unique(Id, "local-time", Attributes::LocalTime::Id, credsIssuerConfig), // make_unique(Id, "time-zone-database", Attributes::TimeZoneDatabase::Id, credsIssuerConfig), // make_unique(Id, "ntpserver-available", Attributes::NTPServerAvailable::Id, credsIssuerConfig), // make_unique(Id, "time-zone-list-max-size", Attributes::TimeZoneListMaxSize::Id, credsIssuerConfig), // make_unique(Id, "dstoffset-list-max-size", Attributes::DSTOffsetListMaxSize::Id, credsIssuerConfig), // make_unique(Id, "supports-dnsresolve", Attributes::SupportsDNSResolve::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>(Id, "utctime", 0, UINT64_MAX, Attributes::UTCTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "granularity", 0, UINT8_MAX, Attributes::Granularity::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "time-source", 0, UINT8_MAX, Attributes::TimeSource::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "trusted-time-source", Attributes::TrustedTimeSource::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "default-ntp", Attributes::DefaultNTP::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "time-zone", Attributes::TimeZone::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "dstoffset", Attributes::DSTOffset::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "local-time", 0, UINT64_MAX, Attributes::LocalTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "time-zone-database", 0, UINT8_MAX, Attributes::TimeZoneDatabase::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "ntpserver-available", 0, 1, Attributes::NTPServerAvailable::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "time-zone-list-max-size", 0, UINT8_MAX, Attributes::TimeZoneListMaxSize::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "dstoffset-list-max-size", 0, UINT8_MAX, Attributes::DSTOffsetListMaxSize::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "supports-dnsresolve", 0, 1, Attributes::SupportsDNSResolve::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "utctime", Attributes::UTCTime::Id, credsIssuerConfig), // make_unique(Id, "granularity", Attributes::Granularity::Id, credsIssuerConfig), // make_unique(Id, "time-source", Attributes::TimeSource::Id, credsIssuerConfig), // make_unique(Id, "trusted-time-source", Attributes::TrustedTimeSource::Id, credsIssuerConfig), // make_unique(Id, "default-ntp", Attributes::DefaultNTP::Id, credsIssuerConfig), // make_unique(Id, "time-zone", Attributes::TimeZone::Id, credsIssuerConfig), // make_unique(Id, "dstoffset", Attributes::DSTOffset::Id, credsIssuerConfig), // make_unique(Id, "local-time", Attributes::LocalTime::Id, credsIssuerConfig), // make_unique(Id, "time-zone-database", Attributes::TimeZoneDatabase::Id, credsIssuerConfig), // make_unique(Id, "ntpserver-available", Attributes::NTPServerAvailable::Id, credsIssuerConfig), // make_unique(Id, "time-zone-list-max-size", Attributes::TimeZoneListMaxSize::Id, credsIssuerConfig), // make_unique(Id, "dstoffset-list-max-size", Attributes::DSTOffsetListMaxSize::Id, credsIssuerConfig), // make_unique(Id, "supports-dnsresolve", Attributes::SupportsDNSResolve::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "dsttable-empty", Events::DSTTableEmpty::Id, credsIssuerConfig), // make_unique(Id, "dststatus", Events::DSTStatus::Id, credsIssuerConfig), // make_unique(Id, "time-zone-status", Events::TimeZoneStatus::Id, credsIssuerConfig), // make_unique(Id, "time-failure", Events::TimeFailure::Id, credsIssuerConfig), // make_unique(Id, "missing-trusted-time-source", Events::MissingTrustedTimeSource::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "dsttable-empty", Events::DSTTableEmpty::Id, credsIssuerConfig), // make_unique(Id, "dststatus", Events::DSTStatus::Id, credsIssuerConfig), // make_unique(Id, "time-zone-status", Events::TimeZoneStatus::Id, credsIssuerConfig), // make_unique(Id, "time-failure", Events::TimeFailure::Id, credsIssuerConfig), // make_unique(Id, "missing-trusted-time-source", Events::MissingTrustedTimeSource::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterBridgedDeviceBasicInformation(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::BridgedDeviceBasicInformation; const char * clusterName = "BridgedDeviceBasicInformation"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "vendor-name", Attributes::VendorName::Id, credsIssuerConfig), // make_unique(Id, "vendor-id", Attributes::VendorID::Id, credsIssuerConfig), // make_unique(Id, "product-name", Attributes::ProductName::Id, credsIssuerConfig), // make_unique(Id, "product-id", Attributes::ProductID::Id, credsIssuerConfig), // make_unique(Id, "node-label", Attributes::NodeLabel::Id, credsIssuerConfig), // make_unique(Id, "hardware-version", Attributes::HardwareVersion::Id, credsIssuerConfig), // make_unique(Id, "hardware-version-string", Attributes::HardwareVersionString::Id, credsIssuerConfig), // make_unique(Id, "software-version", Attributes::SoftwareVersion::Id, credsIssuerConfig), // make_unique(Id, "software-version-string", Attributes::SoftwareVersionString::Id, credsIssuerConfig), // make_unique(Id, "manufacturing-date", Attributes::ManufacturingDate::Id, credsIssuerConfig), // make_unique(Id, "part-number", Attributes::PartNumber::Id, credsIssuerConfig), // make_unique(Id, "product-url", Attributes::ProductURL::Id, credsIssuerConfig), // make_unique(Id, "product-label", Attributes::ProductLabel::Id, credsIssuerConfig), // make_unique(Id, "serial-number", Attributes::SerialNumber::Id, credsIssuerConfig), // make_unique(Id, "reachable", Attributes::Reachable::Id, credsIssuerConfig), // make_unique(Id, "unique-id", Attributes::UniqueID::Id, credsIssuerConfig), // make_unique(Id, "product-appearance", Attributes::ProductAppearance::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "vendor-name", Attributes::VendorName::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "vendor-id", 0, UINT16_MAX, Attributes::VendorID::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "product-name", Attributes::ProductName::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "product-id", 0, UINT16_MAX, Attributes::ProductID::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "node-label", Attributes::NodeLabel::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "hardware-version", 0, UINT16_MAX, Attributes::HardwareVersion::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "hardware-version-string", Attributes::HardwareVersionString::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "software-version", 0, UINT32_MAX, Attributes::SoftwareVersion::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "software-version-string", Attributes::SoftwareVersionString::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "manufacturing-date", Attributes::ManufacturingDate::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "part-number", Attributes::PartNumber::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "product-url", Attributes::ProductURL::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "product-label", Attributes::ProductLabel::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "serial-number", Attributes::SerialNumber::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "reachable", 0, 1, Attributes::Reachable::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "unique-id", Attributes::UniqueID::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>( Id, "product-appearance", Attributes::ProductAppearance::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "vendor-name", Attributes::VendorName::Id, credsIssuerConfig), // make_unique(Id, "vendor-id", Attributes::VendorID::Id, credsIssuerConfig), // make_unique(Id, "product-name", Attributes::ProductName::Id, credsIssuerConfig), // make_unique(Id, "product-id", Attributes::ProductID::Id, credsIssuerConfig), // make_unique(Id, "node-label", Attributes::NodeLabel::Id, credsIssuerConfig), // make_unique(Id, "hardware-version", Attributes::HardwareVersion::Id, credsIssuerConfig), // make_unique(Id, "hardware-version-string", Attributes::HardwareVersionString::Id, credsIssuerConfig), // make_unique(Id, "software-version", Attributes::SoftwareVersion::Id, credsIssuerConfig), // make_unique(Id, "software-version-string", Attributes::SoftwareVersionString::Id, credsIssuerConfig), // make_unique(Id, "manufacturing-date", Attributes::ManufacturingDate::Id, credsIssuerConfig), // make_unique(Id, "part-number", Attributes::PartNumber::Id, credsIssuerConfig), // make_unique(Id, "product-url", Attributes::ProductURL::Id, credsIssuerConfig), // make_unique(Id, "product-label", Attributes::ProductLabel::Id, credsIssuerConfig), // make_unique(Id, "serial-number", Attributes::SerialNumber::Id, credsIssuerConfig), // make_unique(Id, "reachable", Attributes::Reachable::Id, credsIssuerConfig), // make_unique(Id, "unique-id", Attributes::UniqueID::Id, credsIssuerConfig), // make_unique(Id, "product-appearance", Attributes::ProductAppearance::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "start-up", Events::StartUp::Id, credsIssuerConfig), // make_unique(Id, "shut-down", Events::ShutDown::Id, credsIssuerConfig), // make_unique(Id, "leave", Events::Leave::Id, credsIssuerConfig), // make_unique(Id, "reachable-changed", Events::ReachableChanged::Id, credsIssuerConfig), // make_unique(Id, "active-changed", Events::ActiveChanged::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "start-up", Events::StartUp::Id, credsIssuerConfig), // make_unique(Id, "shut-down", Events::ShutDown::Id, credsIssuerConfig), // make_unique(Id, "leave", Events::Leave::Id, credsIssuerConfig), // make_unique(Id, "reachable-changed", Events::ReachableChanged::Id, credsIssuerConfig), // make_unique(Id, "active-changed", Events::ActiveChanged::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterSwitch(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::Switch; const char * clusterName = "Switch"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "number-of-positions", Attributes::NumberOfPositions::Id, credsIssuerConfig), // make_unique(Id, "current-position", Attributes::CurrentPosition::Id, credsIssuerConfig), // make_unique(Id, "multi-press-max", Attributes::MultiPressMax::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "number-of-positions", 0, UINT8_MAX, Attributes::NumberOfPositions::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-position", 0, UINT8_MAX, Attributes::CurrentPosition::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "multi-press-max", 0, UINT8_MAX, Attributes::MultiPressMax::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "number-of-positions", Attributes::NumberOfPositions::Id, credsIssuerConfig), // make_unique(Id, "current-position", Attributes::CurrentPosition::Id, credsIssuerConfig), // make_unique(Id, "multi-press-max", Attributes::MultiPressMax::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "switch-latched", Events::SwitchLatched::Id, credsIssuerConfig), // make_unique(Id, "initial-press", Events::InitialPress::Id, credsIssuerConfig), // make_unique(Id, "long-press", Events::LongPress::Id, credsIssuerConfig), // make_unique(Id, "short-release", Events::ShortRelease::Id, credsIssuerConfig), // make_unique(Id, "long-release", Events::LongRelease::Id, credsIssuerConfig), // make_unique(Id, "multi-press-ongoing", Events::MultiPressOngoing::Id, credsIssuerConfig), // make_unique(Id, "multi-press-complete", Events::MultiPressComplete::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "switch-latched", Events::SwitchLatched::Id, credsIssuerConfig), // make_unique(Id, "initial-press", Events::InitialPress::Id, credsIssuerConfig), // make_unique(Id, "long-press", Events::LongPress::Id, credsIssuerConfig), // make_unique(Id, "short-release", Events::ShortRelease::Id, credsIssuerConfig), // make_unique(Id, "long-release", Events::LongRelease::Id, credsIssuerConfig), // make_unique(Id, "multi-press-ongoing", Events::MultiPressOngoing::Id, credsIssuerConfig), // make_unique(Id, "multi-press-complete", Events::MultiPressComplete::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterAdministratorCommissioning(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::AdministratorCommissioning; const char * clusterName = "AdministratorCommissioning"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "window-status", Attributes::WindowStatus::Id, credsIssuerConfig), // make_unique(Id, "admin-fabric-index", Attributes::AdminFabricIndex::Id, credsIssuerConfig), // make_unique(Id, "admin-vendor-id", Attributes::AdminVendorId::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>( Id, "window-status", 0, UINT8_MAX, Attributes::WindowStatus::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "admin-fabric-index", 0, UINT8_MAX, Attributes::AdminFabricIndex::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "admin-vendor-id", 0, UINT16_MAX, Attributes::AdminVendorId::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "window-status", Attributes::WindowStatus::Id, credsIssuerConfig), // make_unique(Id, "admin-fabric-index", Attributes::AdminFabricIndex::Id, credsIssuerConfig), // make_unique(Id, "admin-vendor-id", Attributes::AdminVendorId::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterOperationalCredentials(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::OperationalCredentials; const char * clusterName = "OperationalCredentials"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "nocs", Attributes::NOCs::Id, credsIssuerConfig), // make_unique(Id, "fabrics", Attributes::Fabrics::Id, credsIssuerConfig), // make_unique(Id, "supported-fabrics", Attributes::SupportedFabrics::Id, credsIssuerConfig), // make_unique(Id, "commissioned-fabrics", Attributes::CommissionedFabrics::Id, credsIssuerConfig), // make_unique(Id, "trusted-root-certificates", Attributes::TrustedRootCertificates::Id, credsIssuerConfig), // make_unique(Id, "current-fabric-index", Attributes::CurrentFabricIndex::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "nocs", Attributes::NOCs::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "fabrics", Attributes::Fabrics::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "supported-fabrics", 0, UINT8_MAX, Attributes::SupportedFabrics::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "commissioned-fabrics", 0, UINT8_MAX, Attributes::CommissionedFabrics::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "trusted-root-certificates", Attributes::TrustedRootCertificates::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-fabric-index", 0, UINT8_MAX, Attributes::CurrentFabricIndex::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "nocs", Attributes::NOCs::Id, credsIssuerConfig), // make_unique(Id, "fabrics", Attributes::Fabrics::Id, credsIssuerConfig), // make_unique(Id, "supported-fabrics", Attributes::SupportedFabrics::Id, credsIssuerConfig), // make_unique(Id, "commissioned-fabrics", Attributes::CommissionedFabrics::Id, credsIssuerConfig), // make_unique(Id, "trusted-root-certificates", Attributes::TrustedRootCertificates::Id, credsIssuerConfig), // make_unique(Id, "current-fabric-index", Attributes::CurrentFabricIndex::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterGroupKeyManagement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::GroupKeyManagement; const char * clusterName = "GroupKeyManagement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "group-key-map", Attributes::GroupKeyMap::Id, credsIssuerConfig), // make_unique(Id, "group-table", Attributes::GroupTable::Id, credsIssuerConfig), // make_unique(Id, "max-groups-per-fabric", Attributes::MaxGroupsPerFabric::Id, credsIssuerConfig), // make_unique(Id, "max-group-keys-per-fabric", Attributes::MaxGroupKeysPerFabric::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "group-key-map", Attributes::GroupKeyMap::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "group-table", Attributes::GroupTable::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "max-groups-per-fabric", 0, UINT16_MAX, Attributes::MaxGroupsPerFabric::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "max-group-keys-per-fabric", 0, UINT16_MAX, Attributes::MaxGroupKeysPerFabric::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "group-key-map", Attributes::GroupKeyMap::Id, credsIssuerConfig), // make_unique(Id, "group-table", Attributes::GroupTable::Id, credsIssuerConfig), // make_unique(Id, "max-groups-per-fabric", Attributes::MaxGroupsPerFabric::Id, credsIssuerConfig), // make_unique(Id, "max-group-keys-per-fabric", Attributes::MaxGroupKeysPerFabric::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterFixedLabel(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::FixedLabel; const char * clusterName = "FixedLabel"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "label-list", Attributes::LabelList::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "label-list", Attributes::LabelList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "label-list", Attributes::LabelList::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterUserLabel(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::UserLabel; const char * clusterName = "UserLabel"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "label-list", Attributes::LabelList::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "label-list", Attributes::LabelList::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "label-list", Attributes::LabelList::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterProxyConfiguration(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ProxyConfiguration; const char * clusterName = "ProxyConfiguration"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterProxyDiscovery(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ProxyDiscovery; const char * clusterName = "ProxyDiscovery"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterProxyValid(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ProxyValid; const char * clusterName = "ProxyValid"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterBooleanState(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::BooleanState; const char * clusterName = "BooleanState"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "state-value", Attributes::StateValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "state-value", 0, 1, Attributes::StateValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "state-value", Attributes::StateValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "state-change", Events::StateChange::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "state-change", Events::StateChange::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterIcdManagement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::IcdManagement; const char * clusterName = "IcdManagement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "idle-mode-duration", Attributes::IdleModeDuration::Id, credsIssuerConfig), // make_unique(Id, "active-mode-duration", Attributes::ActiveModeDuration::Id, credsIssuerConfig), // make_unique(Id, "active-mode-threshold", Attributes::ActiveModeThreshold::Id, credsIssuerConfig), // make_unique(Id, "registered-clients", Attributes::RegisteredClients::Id, credsIssuerConfig), // make_unique(Id, "icdcounter", Attributes::ICDCounter::Id, credsIssuerConfig), // make_unique(Id, "clients-supported-per-fabric", Attributes::ClientsSupportedPerFabric::Id, credsIssuerConfig), // make_unique(Id, "user-active-mode-trigger-hint", Attributes::UserActiveModeTriggerHint::Id, credsIssuerConfig), // make_unique(Id, "user-active-mode-trigger-instruction", Attributes::UserActiveModeTriggerInstruction::Id, credsIssuerConfig), // make_unique(Id, "operating-mode", Attributes::OperatingMode::Id, credsIssuerConfig), // make_unique(Id, "maximum-check-in-back-off", Attributes::MaximumCheckInBackOff::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "idle-mode-duration", 0, UINT32_MAX, Attributes::IdleModeDuration::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "active-mode-duration", 0, UINT32_MAX, Attributes::ActiveModeDuration::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "active-mode-threshold", 0, UINT16_MAX, Attributes::ActiveModeThreshold::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "registered-clients", Attributes::RegisteredClients::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "icdcounter", 0, UINT32_MAX, Attributes::ICDCounter::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "clients-supported-per-fabric", 0, UINT16_MAX, Attributes::ClientsSupportedPerFabric::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "user-active-mode-trigger-hint", 0, UINT32_MAX, Attributes::UserActiveModeTriggerHint::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "user-active-mode-trigger-instruction", Attributes::UserActiveModeTriggerInstruction::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "operating-mode", 0, UINT8_MAX, Attributes::OperatingMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "maximum-check-in-back-off", 0, UINT32_MAX, Attributes::MaximumCheckInBackOff::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "idle-mode-duration", Attributes::IdleModeDuration::Id, credsIssuerConfig), // make_unique(Id, "active-mode-duration", Attributes::ActiveModeDuration::Id, credsIssuerConfig), // make_unique(Id, "active-mode-threshold", Attributes::ActiveModeThreshold::Id, credsIssuerConfig), // make_unique(Id, "registered-clients", Attributes::RegisteredClients::Id, credsIssuerConfig), // make_unique(Id, "icdcounter", Attributes::ICDCounter::Id, credsIssuerConfig), // make_unique(Id, "clients-supported-per-fabric", Attributes::ClientsSupportedPerFabric::Id, credsIssuerConfig), // make_unique(Id, "user-active-mode-trigger-hint", Attributes::UserActiveModeTriggerHint::Id, credsIssuerConfig), // make_unique(Id, "user-active-mode-trigger-instruction", Attributes::UserActiveModeTriggerInstruction::Id, credsIssuerConfig), // make_unique(Id, "operating-mode", Attributes::OperatingMode::Id, credsIssuerConfig), // make_unique(Id, "maximum-check-in-back-off", Attributes::MaximumCheckInBackOff::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterTimer(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::Timer; const char * clusterName = "Timer"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "set-time", Attributes::SetTime::Id, credsIssuerConfig), // make_unique(Id, "time-remaining", Attributes::TimeRemaining::Id, credsIssuerConfig), // make_unique(Id, "timer-state", Attributes::TimerState::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "set-time", 0, UINT32_MAX, Attributes::SetTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "time-remaining", 0, UINT32_MAX, Attributes::TimeRemaining::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "timer-state", 0, UINT8_MAX, Attributes::TimerState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "set-time", Attributes::SetTime::Id, credsIssuerConfig), // make_unique(Id, "time-remaining", Attributes::TimeRemaining::Id, credsIssuerConfig), // make_unique(Id, "timer-state", Attributes::TimerState::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterOvenCavityOperationalState(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::OvenCavityOperationalState; const char * clusterName = "OvenCavityOperationalState"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "phase-list", Attributes::PhaseList::Id, credsIssuerConfig), // make_unique(Id, "current-phase", Attributes::CurrentPhase::Id, credsIssuerConfig), // make_unique(Id, "countdown-time", Attributes::CountdownTime::Id, credsIssuerConfig), // make_unique(Id, "operational-state-list", Attributes::OperationalStateList::Id, credsIssuerConfig), // make_unique(Id, "operational-state", Attributes::OperationalState::Id, credsIssuerConfig), // make_unique(Id, "operational-error", Attributes::OperationalError::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>>( Id, "phase-list", Attributes::PhaseList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "current-phase", 0, UINT8_MAX, Attributes::CurrentPhase::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "countdown-time", 0, UINT32_MAX, Attributes::CountdownTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "operational-state-list", Attributes::OperationalStateList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "operational-state", 0, UINT8_MAX, Attributes::OperationalState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "operational-error", Attributes::OperationalError::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "phase-list", Attributes::PhaseList::Id, credsIssuerConfig), // make_unique(Id, "current-phase", Attributes::CurrentPhase::Id, credsIssuerConfig), // make_unique(Id, "countdown-time", Attributes::CountdownTime::Id, credsIssuerConfig), // make_unique(Id, "operational-state-list", Attributes::OperationalStateList::Id, credsIssuerConfig), // make_unique(Id, "operational-state", Attributes::OperationalState::Id, credsIssuerConfig), // make_unique(Id, "operational-error", Attributes::OperationalError::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "operational-error", Events::OperationalError::Id, credsIssuerConfig), // make_unique(Id, "operation-completion", Events::OperationCompletion::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "operational-error", Events::OperationalError::Id, credsIssuerConfig), // make_unique(Id, "operation-completion", Events::OperationCompletion::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterOvenMode(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::OvenMode; const char * clusterName = "OvenMode"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "supported-modes", Attributes::SupportedModes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-mode", 0, UINT8_MAX, Attributes::CurrentMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "start-up-mode", 0, UINT8_MAX, Attributes::StartUpMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "on-mode", 0, UINT8_MAX, Attributes::OnMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterLaundryDryerControls(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::LaundryDryerControls; const char * clusterName = "LaundryDryerControls"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-dryness-levels", Attributes::SupportedDrynessLevels::Id, credsIssuerConfig), // make_unique(Id, "selected-dryness-level", Attributes::SelectedDrynessLevel::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "supported-dryness-levels", Attributes::SupportedDrynessLevels::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "selected-dryness-level", 0, UINT8_MAX, Attributes::SelectedDrynessLevel::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-dryness-levels", Attributes::SupportedDrynessLevels::Id, credsIssuerConfig), // make_unique(Id, "selected-dryness-level", Attributes::SelectedDrynessLevel::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterModeSelect(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ModeSelect; const char * clusterName = "ModeSelect"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "description", Attributes::Description::Id, credsIssuerConfig), // make_unique(Id, "standard-namespace", Attributes::StandardNamespace::Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "description", Attributes::Description::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "standard-namespace", 0, UINT16_MAX, Attributes::StandardNamespace::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "supported-modes", Attributes::SupportedModes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-mode", 0, UINT8_MAX, Attributes::CurrentMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "start-up-mode", 0, UINT8_MAX, Attributes::StartUpMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "on-mode", 0, UINT8_MAX, Attributes::OnMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "description", Attributes::Description::Id, credsIssuerConfig), // make_unique(Id, "standard-namespace", Attributes::StandardNamespace::Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterLaundryWasherMode(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::LaundryWasherMode; const char * clusterName = "LaundryWasherMode"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "supported-modes", Attributes::SupportedModes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-mode", 0, UINT8_MAX, Attributes::CurrentMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "start-up-mode", 0, UINT8_MAX, Attributes::StartUpMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "on-mode", 0, UINT8_MAX, Attributes::OnMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterRefrigeratorAndTemperatureControlledCabinetMode(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::RefrigeratorAndTemperatureControlledCabinetMode; const char * clusterName = "RefrigeratorAndTemperatureControlledCabinetMode"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "supported-modes", Attributes::SupportedModes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-mode", 0, UINT8_MAX, Attributes::CurrentMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "start-up-mode", 0, UINT8_MAX, Attributes::StartUpMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "on-mode", 0, UINT8_MAX, Attributes::OnMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterLaundryWasherControls(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::LaundryWasherControls; const char * clusterName = "LaundryWasherControls"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "spin-speeds", Attributes::SpinSpeeds::Id, credsIssuerConfig), // make_unique(Id, "spin-speed-current", Attributes::SpinSpeedCurrent::Id, credsIssuerConfig), // make_unique(Id, "number-of-rinses", Attributes::NumberOfRinses::Id, credsIssuerConfig), // make_unique(Id, "supported-rinses", Attributes::SupportedRinses::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "spin-speeds", Attributes::SpinSpeeds::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "spin-speed-current", 0, UINT8_MAX, Attributes::SpinSpeedCurrent::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "number-of-rinses", 0, UINT8_MAX, Attributes::NumberOfRinses::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "supported-rinses", Attributes::SupportedRinses::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "spin-speeds", Attributes::SpinSpeeds::Id, credsIssuerConfig), // make_unique(Id, "spin-speed-current", Attributes::SpinSpeedCurrent::Id, credsIssuerConfig), // make_unique(Id, "number-of-rinses", Attributes::NumberOfRinses::Id, credsIssuerConfig), // make_unique(Id, "supported-rinses", Attributes::SupportedRinses::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterRvcRunMode(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::RvcRunMode; const char * clusterName = "RvcRunMode"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "supported-modes", Attributes::SupportedModes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-mode", 0, UINT8_MAX, Attributes::CurrentMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterRvcCleanMode(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::RvcCleanMode; const char * clusterName = "RvcCleanMode"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "supported-modes", Attributes::SupportedModes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-mode", 0, UINT8_MAX, Attributes::CurrentMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterTemperatureControl(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::TemperatureControl; const char * clusterName = "TemperatureControl"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "temperature-setpoint", Attributes::TemperatureSetpoint::Id, credsIssuerConfig), // make_unique(Id, "min-temperature", Attributes::MinTemperature::Id, credsIssuerConfig), // make_unique(Id, "max-temperature", Attributes::MaxTemperature::Id, credsIssuerConfig), // make_unique(Id, "step", Attributes::Step::Id, credsIssuerConfig), // make_unique(Id, "selected-temperature-level", Attributes::SelectedTemperatureLevel::Id, credsIssuerConfig), // make_unique(Id, "supported-temperature-levels", Attributes::SupportedTemperatureLevels::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "temperature-setpoint", INT16_MIN, INT16_MAX, Attributes::TemperatureSetpoint::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "min-temperature", INT16_MIN, INT16_MAX, Attributes::MinTemperature::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "max-temperature", INT16_MIN, INT16_MAX, Attributes::MaxTemperature::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "step", INT16_MIN, INT16_MAX, Attributes::Step::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "selected-temperature-level", 0, UINT8_MAX, Attributes::SelectedTemperatureLevel::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "supported-temperature-levels", Attributes::SupportedTemperatureLevels::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "temperature-setpoint", Attributes::TemperatureSetpoint::Id, credsIssuerConfig), // make_unique(Id, "min-temperature", Attributes::MinTemperature::Id, credsIssuerConfig), // make_unique(Id, "max-temperature", Attributes::MaxTemperature::Id, credsIssuerConfig), // make_unique(Id, "step", Attributes::Step::Id, credsIssuerConfig), // make_unique(Id, "selected-temperature-level", Attributes::SelectedTemperatureLevel::Id, credsIssuerConfig), // make_unique(Id, "supported-temperature-levels", Attributes::SupportedTemperatureLevels::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterRefrigeratorAlarm(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::RefrigeratorAlarm; const char * clusterName = "RefrigeratorAlarm"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "mask", Attributes::Mask::Id, credsIssuerConfig), // make_unique(Id, "state", Attributes::State::Id, credsIssuerConfig), // make_unique(Id, "supported", Attributes::Supported::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "mask", 0, UINT32_MAX, Attributes::Mask::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "state", 0, UINT32_MAX, Attributes::State::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "supported", 0, UINT32_MAX, Attributes::Supported::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "mask", Attributes::Mask::Id, credsIssuerConfig), // make_unique(Id, "state", Attributes::State::Id, credsIssuerConfig), // make_unique(Id, "supported", Attributes::Supported::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "notify", Events::Notify::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "notify", Events::Notify::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterDishwasherMode(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::DishwasherMode; const char * clusterName = "DishwasherMode"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "supported-modes", Attributes::SupportedModes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-mode", 0, UINT8_MAX, Attributes::CurrentMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "start-up-mode", 0, UINT8_MAX, Attributes::StartUpMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "on-mode", 0, UINT8_MAX, Attributes::OnMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterAirQuality(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::AirQuality; const char * clusterName = "AirQuality"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "air-quality", Attributes::AirQuality::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>( Id, "air-quality", 0, UINT8_MAX, Attributes::AirQuality::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "air-quality", Attributes::AirQuality::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterSmokeCoAlarm(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::SmokeCoAlarm; const char * clusterName = "SmokeCoAlarm"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "expressed-state", Attributes::ExpressedState::Id, credsIssuerConfig), // make_unique(Id, "smoke-state", Attributes::SmokeState::Id, credsIssuerConfig), // make_unique(Id, "costate", Attributes::COState::Id, credsIssuerConfig), // make_unique(Id, "battery-alert", Attributes::BatteryAlert::Id, credsIssuerConfig), // make_unique(Id, "device-muted", Attributes::DeviceMuted::Id, credsIssuerConfig), // make_unique(Id, "test-in-progress", Attributes::TestInProgress::Id, credsIssuerConfig), // make_unique(Id, "hardware-fault-alert", Attributes::HardwareFaultAlert::Id, credsIssuerConfig), // make_unique(Id, "end-of-service-alert", Attributes::EndOfServiceAlert::Id, credsIssuerConfig), // make_unique(Id, "interconnect-smoke-alarm", Attributes::InterconnectSmokeAlarm::Id, credsIssuerConfig), // make_unique(Id, "interconnect-coalarm", Attributes::InterconnectCOAlarm::Id, credsIssuerConfig), // make_unique(Id, "contamination-state", Attributes::ContaminationState::Id, credsIssuerConfig), // make_unique(Id, "smoke-sensitivity-level", Attributes::SmokeSensitivityLevel::Id, credsIssuerConfig), // make_unique(Id, "expiry-date", Attributes::ExpiryDate::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>( Id, "expressed-state", 0, UINT8_MAX, Attributes::ExpressedState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "smoke-state", 0, UINT8_MAX, Attributes::SmokeState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "costate", 0, UINT8_MAX, Attributes::COState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "battery-alert", 0, UINT8_MAX, Attributes::BatteryAlert::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "device-muted", 0, UINT8_MAX, Attributes::DeviceMuted::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "test-in-progress", 0, 1, Attributes::TestInProgress::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "hardware-fault-alert", 0, 1, Attributes::HardwareFaultAlert::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "end-of-service-alert", 0, UINT8_MAX, Attributes::EndOfServiceAlert::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "interconnect-smoke-alarm", 0, UINT8_MAX, Attributes::InterconnectSmokeAlarm::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "interconnect-coalarm", 0, UINT8_MAX, Attributes::InterconnectCOAlarm::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "contamination-state", 0, UINT8_MAX, Attributes::ContaminationState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "smoke-sensitivity-level", 0, UINT8_MAX, Attributes::SmokeSensitivityLevel::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "expiry-date", 0, UINT32_MAX, Attributes::ExpiryDate::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "expressed-state", Attributes::ExpressedState::Id, credsIssuerConfig), // make_unique(Id, "smoke-state", Attributes::SmokeState::Id, credsIssuerConfig), // make_unique(Id, "costate", Attributes::COState::Id, credsIssuerConfig), // make_unique(Id, "battery-alert", Attributes::BatteryAlert::Id, credsIssuerConfig), // make_unique(Id, "device-muted", Attributes::DeviceMuted::Id, credsIssuerConfig), // make_unique(Id, "test-in-progress", Attributes::TestInProgress::Id, credsIssuerConfig), // make_unique(Id, "hardware-fault-alert", Attributes::HardwareFaultAlert::Id, credsIssuerConfig), // make_unique(Id, "end-of-service-alert", Attributes::EndOfServiceAlert::Id, credsIssuerConfig), // make_unique(Id, "interconnect-smoke-alarm", Attributes::InterconnectSmokeAlarm::Id, credsIssuerConfig), // make_unique(Id, "interconnect-coalarm", Attributes::InterconnectCOAlarm::Id, credsIssuerConfig), // make_unique(Id, "contamination-state", Attributes::ContaminationState::Id, credsIssuerConfig), // make_unique(Id, "smoke-sensitivity-level", Attributes::SmokeSensitivityLevel::Id, credsIssuerConfig), // make_unique(Id, "expiry-date", Attributes::ExpiryDate::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "smoke-alarm", Events::SmokeAlarm::Id, credsIssuerConfig), // make_unique(Id, "coalarm", Events::COAlarm::Id, credsIssuerConfig), // make_unique(Id, "low-battery", Events::LowBattery::Id, credsIssuerConfig), // make_unique(Id, "hardware-fault", Events::HardwareFault::Id, credsIssuerConfig), // make_unique(Id, "end-of-service", Events::EndOfService::Id, credsIssuerConfig), // make_unique(Id, "self-test-complete", Events::SelfTestComplete::Id, credsIssuerConfig), // make_unique(Id, "alarm-muted", Events::AlarmMuted::Id, credsIssuerConfig), // make_unique(Id, "mute-ended", Events::MuteEnded::Id, credsIssuerConfig), // make_unique(Id, "interconnect-smoke-alarm", Events::InterconnectSmokeAlarm::Id, credsIssuerConfig), // make_unique(Id, "interconnect-coalarm", Events::InterconnectCOAlarm::Id, credsIssuerConfig), // make_unique(Id, "all-clear", Events::AllClear::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "smoke-alarm", Events::SmokeAlarm::Id, credsIssuerConfig), // make_unique(Id, "coalarm", Events::COAlarm::Id, credsIssuerConfig), // make_unique(Id, "low-battery", Events::LowBattery::Id, credsIssuerConfig), // make_unique(Id, "hardware-fault", Events::HardwareFault::Id, credsIssuerConfig), // make_unique(Id, "end-of-service", Events::EndOfService::Id, credsIssuerConfig), // make_unique(Id, "self-test-complete", Events::SelfTestComplete::Id, credsIssuerConfig), // make_unique(Id, "alarm-muted", Events::AlarmMuted::Id, credsIssuerConfig), // make_unique(Id, "mute-ended", Events::MuteEnded::Id, credsIssuerConfig), // make_unique(Id, "interconnect-smoke-alarm", Events::InterconnectSmokeAlarm::Id, credsIssuerConfig), // make_unique(Id, "interconnect-coalarm", Events::InterconnectCOAlarm::Id, credsIssuerConfig), // make_unique(Id, "all-clear", Events::AllClear::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterDishwasherAlarm(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::DishwasherAlarm; const char * clusterName = "DishwasherAlarm"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "mask", Attributes::Mask::Id, credsIssuerConfig), // make_unique(Id, "latch", Attributes::Latch::Id, credsIssuerConfig), // make_unique(Id, "state", Attributes::State::Id, credsIssuerConfig), // make_unique(Id, "supported", Attributes::Supported::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "mask", 0, UINT32_MAX, Attributes::Mask::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "latch", 0, UINT32_MAX, Attributes::Latch::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "state", 0, UINT32_MAX, Attributes::State::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "supported", 0, UINT32_MAX, Attributes::Supported::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "mask", Attributes::Mask::Id, credsIssuerConfig), // make_unique(Id, "latch", Attributes::Latch::Id, credsIssuerConfig), // make_unique(Id, "state", Attributes::State::Id, credsIssuerConfig), // make_unique(Id, "supported", Attributes::Supported::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "notify", Events::Notify::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "notify", Events::Notify::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterMicrowaveOvenMode(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::MicrowaveOvenMode; const char * clusterName = "MicrowaveOvenMode"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "supported-modes", Attributes::SupportedModes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-mode", 0, UINT8_MAX, Attributes::CurrentMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterMicrowaveOvenControl(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::MicrowaveOvenControl; const char * clusterName = "MicrowaveOvenControl"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "cook-time", Attributes::CookTime::Id, credsIssuerConfig), // make_unique(Id, "max-cook-time", Attributes::MaxCookTime::Id, credsIssuerConfig), // make_unique(Id, "power-setting", Attributes::PowerSetting::Id, credsIssuerConfig), // make_unique(Id, "min-power", Attributes::MinPower::Id, credsIssuerConfig), // make_unique(Id, "max-power", Attributes::MaxPower::Id, credsIssuerConfig), // make_unique(Id, "power-step", Attributes::PowerStep::Id, credsIssuerConfig), // make_unique(Id, "supported-watts", Attributes::SupportedWatts::Id, credsIssuerConfig), // make_unique(Id, "selected-watt-index", Attributes::SelectedWattIndex::Id, credsIssuerConfig), // make_unique(Id, "watt-rating", Attributes::WattRating::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "cook-time", 0, UINT32_MAX, Attributes::CookTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "max-cook-time", 0, UINT32_MAX, Attributes::MaxCookTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "power-setting", 0, UINT8_MAX, Attributes::PowerSetting::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "min-power", 0, UINT8_MAX, Attributes::MinPower::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "max-power", 0, UINT8_MAX, Attributes::MaxPower::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "power-step", 0, UINT8_MAX, Attributes::PowerStep::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "supported-watts", Attributes::SupportedWatts::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "selected-watt-index", 0, UINT8_MAX, Attributes::SelectedWattIndex::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "watt-rating", 0, UINT16_MAX, Attributes::WattRating::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "cook-time", Attributes::CookTime::Id, credsIssuerConfig), // make_unique(Id, "max-cook-time", Attributes::MaxCookTime::Id, credsIssuerConfig), // make_unique(Id, "power-setting", Attributes::PowerSetting::Id, credsIssuerConfig), // make_unique(Id, "min-power", Attributes::MinPower::Id, credsIssuerConfig), // make_unique(Id, "max-power", Attributes::MaxPower::Id, credsIssuerConfig), // make_unique(Id, "power-step", Attributes::PowerStep::Id, credsIssuerConfig), // make_unique(Id, "supported-watts", Attributes::SupportedWatts::Id, credsIssuerConfig), // make_unique(Id, "selected-watt-index", Attributes::SelectedWattIndex::Id, credsIssuerConfig), // make_unique(Id, "watt-rating", Attributes::WattRating::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterOperationalState(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::OperationalState; const char * clusterName = "OperationalState"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "phase-list", Attributes::PhaseList::Id, credsIssuerConfig), // make_unique(Id, "current-phase", Attributes::CurrentPhase::Id, credsIssuerConfig), // make_unique(Id, "countdown-time", Attributes::CountdownTime::Id, credsIssuerConfig), // make_unique(Id, "operational-state-list", Attributes::OperationalStateList::Id, credsIssuerConfig), // make_unique(Id, "operational-state", Attributes::OperationalState::Id, credsIssuerConfig), // make_unique(Id, "operational-error", Attributes::OperationalError::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>>( Id, "phase-list", Attributes::PhaseList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "current-phase", 0, UINT8_MAX, Attributes::CurrentPhase::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "countdown-time", 0, UINT32_MAX, Attributes::CountdownTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "operational-state-list", Attributes::OperationalStateList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "operational-state", 0, UINT8_MAX, Attributes::OperationalState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "operational-error", Attributes::OperationalError::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "phase-list", Attributes::PhaseList::Id, credsIssuerConfig), // make_unique(Id, "current-phase", Attributes::CurrentPhase::Id, credsIssuerConfig), // make_unique(Id, "countdown-time", Attributes::CountdownTime::Id, credsIssuerConfig), // make_unique(Id, "operational-state-list", Attributes::OperationalStateList::Id, credsIssuerConfig), // make_unique(Id, "operational-state", Attributes::OperationalState::Id, credsIssuerConfig), // make_unique(Id, "operational-error", Attributes::OperationalError::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "operational-error", Events::OperationalError::Id, credsIssuerConfig), // make_unique(Id, "operation-completion", Events::OperationCompletion::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "operational-error", Events::OperationalError::Id, credsIssuerConfig), // make_unique(Id, "operation-completion", Events::OperationCompletion::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterRvcOperationalState(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::RvcOperationalState; const char * clusterName = "RvcOperationalState"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "phase-list", Attributes::PhaseList::Id, credsIssuerConfig), // make_unique(Id, "current-phase", Attributes::CurrentPhase::Id, credsIssuerConfig), // make_unique(Id, "countdown-time", Attributes::CountdownTime::Id, credsIssuerConfig), // make_unique(Id, "operational-state-list", Attributes::OperationalStateList::Id, credsIssuerConfig), // make_unique(Id, "operational-state", Attributes::OperationalState::Id, credsIssuerConfig), // make_unique(Id, "operational-error", Attributes::OperationalError::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>>( Id, "phase-list", Attributes::PhaseList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "current-phase", 0, UINT8_MAX, Attributes::CurrentPhase::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "countdown-time", 0, UINT32_MAX, Attributes::CountdownTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "operational-state-list", Attributes::OperationalStateList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "operational-state", 0, UINT8_MAX, Attributes::OperationalState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "operational-error", Attributes::OperationalError::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "phase-list", Attributes::PhaseList::Id, credsIssuerConfig), // make_unique(Id, "current-phase", Attributes::CurrentPhase::Id, credsIssuerConfig), // make_unique(Id, "countdown-time", Attributes::CountdownTime::Id, credsIssuerConfig), // make_unique(Id, "operational-state-list", Attributes::OperationalStateList::Id, credsIssuerConfig), // make_unique(Id, "operational-state", Attributes::OperationalState::Id, credsIssuerConfig), // make_unique(Id, "operational-error", Attributes::OperationalError::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "operational-error", Events::OperationalError::Id, credsIssuerConfig), // make_unique(Id, "operation-completion", Events::OperationCompletion::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "operational-error", Events::OperationalError::Id, credsIssuerConfig), // make_unique(Id, "operation-completion", Events::OperationCompletion::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterScenesManagement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ScenesManagement; const char * clusterName = "ScenesManagement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "last-configured-by", Attributes::LastConfiguredBy::Id, credsIssuerConfig), // make_unique(Id, "scene-table-size", Attributes::SceneTableSize::Id, credsIssuerConfig), // make_unique(Id, "fabric-scene-info", Attributes::FabricSceneInfo::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "last-configured-by", 0, UINT64_MAX, Attributes::LastConfiguredBy::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "scene-table-size", 0, UINT16_MAX, Attributes::SceneTableSize::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "fabric-scene-info", Attributes::FabricSceneInfo::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "last-configured-by", Attributes::LastConfiguredBy::Id, credsIssuerConfig), // make_unique(Id, "scene-table-size", Attributes::SceneTableSize::Id, credsIssuerConfig), // make_unique(Id, "fabric-scene-info", Attributes::FabricSceneInfo::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterHepaFilterMonitoring(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::HepaFilterMonitoring; const char * clusterName = "HepaFilterMonitoring"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "condition", Attributes::Condition::Id, credsIssuerConfig), // make_unique(Id, "degradation-direction", Attributes::DegradationDirection::Id, credsIssuerConfig), // make_unique(Id, "change-indication", Attributes::ChangeIndication::Id, credsIssuerConfig), // make_unique(Id, "in-place-indicator", Attributes::InPlaceIndicator::Id, credsIssuerConfig), // make_unique(Id, "last-changed-time", Attributes::LastChangedTime::Id, credsIssuerConfig), // make_unique(Id, "replacement-product-list", Attributes::ReplacementProductList::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "condition", 0, UINT8_MAX, Attributes::Condition::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "degradation-direction", 0, UINT8_MAX, Attributes::DegradationDirection::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "change-indication", 0, UINT8_MAX, Attributes::ChangeIndication::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "in-place-indicator", 0, 1, Attributes::InPlaceIndicator::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "last-changed-time", 0, UINT32_MAX, Attributes::LastChangedTime::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "replacement-product-list", Attributes::ReplacementProductList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "condition", Attributes::Condition::Id, credsIssuerConfig), // make_unique(Id, "degradation-direction", Attributes::DegradationDirection::Id, credsIssuerConfig), // make_unique(Id, "change-indication", Attributes::ChangeIndication::Id, credsIssuerConfig), // make_unique(Id, "in-place-indicator", Attributes::InPlaceIndicator::Id, credsIssuerConfig), // make_unique(Id, "last-changed-time", Attributes::LastChangedTime::Id, credsIssuerConfig), // make_unique(Id, "replacement-product-list", Attributes::ReplacementProductList::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterActivatedCarbonFilterMonitoring(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ActivatedCarbonFilterMonitoring; const char * clusterName = "ActivatedCarbonFilterMonitoring"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "condition", Attributes::Condition::Id, credsIssuerConfig), // make_unique(Id, "degradation-direction", Attributes::DegradationDirection::Id, credsIssuerConfig), // make_unique(Id, "change-indication", Attributes::ChangeIndication::Id, credsIssuerConfig), // make_unique(Id, "in-place-indicator", Attributes::InPlaceIndicator::Id, credsIssuerConfig), // make_unique(Id, "last-changed-time", Attributes::LastChangedTime::Id, credsIssuerConfig), // make_unique(Id, "replacement-product-list", Attributes::ReplacementProductList::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "condition", 0, UINT8_MAX, Attributes::Condition::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "degradation-direction", 0, UINT8_MAX, Attributes::DegradationDirection::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "change-indication", 0, UINT8_MAX, Attributes::ChangeIndication::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "in-place-indicator", 0, 1, Attributes::InPlaceIndicator::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "last-changed-time", 0, UINT32_MAX, Attributes::LastChangedTime::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "replacement-product-list", Attributes::ReplacementProductList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "condition", Attributes::Condition::Id, credsIssuerConfig), // make_unique(Id, "degradation-direction", Attributes::DegradationDirection::Id, credsIssuerConfig), // make_unique(Id, "change-indication", Attributes::ChangeIndication::Id, credsIssuerConfig), // make_unique(Id, "in-place-indicator", Attributes::InPlaceIndicator::Id, credsIssuerConfig), // make_unique(Id, "last-changed-time", Attributes::LastChangedTime::Id, credsIssuerConfig), // make_unique(Id, "replacement-product-list", Attributes::ReplacementProductList::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterBooleanStateConfiguration(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::BooleanStateConfiguration; const char * clusterName = "BooleanStateConfiguration"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "current-sensitivity-level", Attributes::CurrentSensitivityLevel::Id, credsIssuerConfig), // make_unique(Id, "supported-sensitivity-levels", Attributes::SupportedSensitivityLevels::Id, credsIssuerConfig), // make_unique(Id, "default-sensitivity-level", Attributes::DefaultSensitivityLevel::Id, credsIssuerConfig), // make_unique(Id, "alarms-active", Attributes::AlarmsActive::Id, credsIssuerConfig), // make_unique(Id, "alarms-suppressed", Attributes::AlarmsSuppressed::Id, credsIssuerConfig), // make_unique(Id, "alarms-enabled", Attributes::AlarmsEnabled::Id, credsIssuerConfig), // make_unique(Id, "alarms-supported", Attributes::AlarmsSupported::Id, credsIssuerConfig), // make_unique(Id, "sensor-fault", Attributes::SensorFault::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "current-sensitivity-level", 0, UINT8_MAX, Attributes::CurrentSensitivityLevel::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "supported-sensitivity-levels", 0, UINT8_MAX, Attributes::SupportedSensitivityLevels::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "default-sensitivity-level", 0, UINT8_MAX, Attributes::DefaultSensitivityLevel::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "alarms-active", 0, UINT8_MAX, Attributes::AlarmsActive::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "alarms-suppressed", 0, UINT8_MAX, Attributes::AlarmsSuppressed::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "alarms-enabled", 0, UINT8_MAX, Attributes::AlarmsEnabled::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "alarms-supported", 0, UINT8_MAX, Attributes::AlarmsSupported::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "sensor-fault", 0, UINT16_MAX, Attributes::SensorFault::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "current-sensitivity-level", Attributes::CurrentSensitivityLevel::Id, credsIssuerConfig), // make_unique(Id, "supported-sensitivity-levels", Attributes::SupportedSensitivityLevels::Id, credsIssuerConfig), // make_unique(Id, "default-sensitivity-level", Attributes::DefaultSensitivityLevel::Id, credsIssuerConfig), // make_unique(Id, "alarms-active", Attributes::AlarmsActive::Id, credsIssuerConfig), // make_unique(Id, "alarms-suppressed", Attributes::AlarmsSuppressed::Id, credsIssuerConfig), // make_unique(Id, "alarms-enabled", Attributes::AlarmsEnabled::Id, credsIssuerConfig), // make_unique(Id, "alarms-supported", Attributes::AlarmsSupported::Id, credsIssuerConfig), // make_unique(Id, "sensor-fault", Attributes::SensorFault::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "alarms-state-changed", Events::AlarmsStateChanged::Id, credsIssuerConfig), // make_unique(Id, "sensor-fault", Events::SensorFault::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "alarms-state-changed", Events::AlarmsStateChanged::Id, credsIssuerConfig), // make_unique(Id, "sensor-fault", Events::SensorFault::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterValveConfigurationAndControl(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ValveConfigurationAndControl; const char * clusterName = "ValveConfigurationAndControl"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "open-duration", Attributes::OpenDuration::Id, credsIssuerConfig), // make_unique(Id, "default-open-duration", Attributes::DefaultOpenDuration::Id, credsIssuerConfig), // make_unique(Id, "auto-close-time", Attributes::AutoCloseTime::Id, credsIssuerConfig), // make_unique(Id, "remaining-duration", Attributes::RemainingDuration::Id, credsIssuerConfig), // make_unique(Id, "current-state", Attributes::CurrentState::Id, credsIssuerConfig), // make_unique(Id, "target-state", Attributes::TargetState::Id, credsIssuerConfig), // make_unique(Id, "current-level", Attributes::CurrentLevel::Id, credsIssuerConfig), // make_unique(Id, "target-level", Attributes::TargetLevel::Id, credsIssuerConfig), // make_unique(Id, "default-open-level", Attributes::DefaultOpenLevel::Id, credsIssuerConfig), // make_unique(Id, "valve-fault", Attributes::ValveFault::Id, credsIssuerConfig), // make_unique(Id, "level-step", Attributes::LevelStep::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "open-duration", 0, UINT32_MAX, Attributes::OpenDuration::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "default-open-duration", 0, UINT32_MAX, Attributes::DefaultOpenDuration::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "auto-close-time", 0, UINT64_MAX, Attributes::AutoCloseTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "remaining-duration", 0, UINT32_MAX, Attributes::RemainingDuration::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique< WriteAttribute>>( Id, "current-state", 0, UINT8_MAX, Attributes::CurrentState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique< WriteAttribute>>( Id, "target-state", 0, UINT8_MAX, Attributes::TargetState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "current-level", 0, UINT8_MAX, Attributes::CurrentLevel::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "target-level", 0, UINT8_MAX, Attributes::TargetLevel::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "default-open-level", 0, UINT8_MAX, Attributes::DefaultOpenLevel::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "valve-fault", 0, UINT16_MAX, Attributes::ValveFault::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "level-step", 0, UINT8_MAX, Attributes::LevelStep::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "open-duration", Attributes::OpenDuration::Id, credsIssuerConfig), // make_unique(Id, "default-open-duration", Attributes::DefaultOpenDuration::Id, credsIssuerConfig), // make_unique(Id, "auto-close-time", Attributes::AutoCloseTime::Id, credsIssuerConfig), // make_unique(Id, "remaining-duration", Attributes::RemainingDuration::Id, credsIssuerConfig), // make_unique(Id, "current-state", Attributes::CurrentState::Id, credsIssuerConfig), // make_unique(Id, "target-state", Attributes::TargetState::Id, credsIssuerConfig), // make_unique(Id, "current-level", Attributes::CurrentLevel::Id, credsIssuerConfig), // make_unique(Id, "target-level", Attributes::TargetLevel::Id, credsIssuerConfig), // make_unique(Id, "default-open-level", Attributes::DefaultOpenLevel::Id, credsIssuerConfig), // make_unique(Id, "valve-fault", Attributes::ValveFault::Id, credsIssuerConfig), // make_unique(Id, "level-step", Attributes::LevelStep::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "valve-state-changed", Events::ValveStateChanged::Id, credsIssuerConfig), // make_unique(Id, "valve-fault", Events::ValveFault::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "valve-state-changed", Events::ValveStateChanged::Id, credsIssuerConfig), // make_unique(Id, "valve-fault", Events::ValveFault::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterElectricalPowerMeasurement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ElectricalPowerMeasurement; const char * clusterName = "ElectricalPowerMeasurement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "power-mode", Attributes::PowerMode::Id, credsIssuerConfig), // make_unique(Id, "number-of-measurement-types", Attributes::NumberOfMeasurementTypes::Id, credsIssuerConfig), // make_unique(Id, "accuracy", Attributes::Accuracy::Id, credsIssuerConfig), // make_unique(Id, "ranges", Attributes::Ranges::Id, credsIssuerConfig), // make_unique(Id, "voltage", Attributes::Voltage::Id, credsIssuerConfig), // make_unique(Id, "active-current", Attributes::ActiveCurrent::Id, credsIssuerConfig), // make_unique(Id, "reactive-current", Attributes::ReactiveCurrent::Id, credsIssuerConfig), // make_unique(Id, "apparent-current", Attributes::ApparentCurrent::Id, credsIssuerConfig), // make_unique(Id, "active-power", Attributes::ActivePower::Id, credsIssuerConfig), // make_unique(Id, "reactive-power", Attributes::ReactivePower::Id, credsIssuerConfig), // make_unique(Id, "apparent-power", Attributes::ApparentPower::Id, credsIssuerConfig), // make_unique(Id, "rmsvoltage", Attributes::RMSVoltage::Id, credsIssuerConfig), // make_unique(Id, "rmscurrent", Attributes::RMSCurrent::Id, credsIssuerConfig), // make_unique(Id, "rmspower", Attributes::RMSPower::Id, credsIssuerConfig), // make_unique(Id, "frequency", Attributes::Frequency::Id, credsIssuerConfig), // make_unique(Id, "harmonic-currents", Attributes::HarmonicCurrents::Id, credsIssuerConfig), // make_unique(Id, "harmonic-phases", Attributes::HarmonicPhases::Id, credsIssuerConfig), // make_unique(Id, "power-factor", Attributes::PowerFactor::Id, credsIssuerConfig), // make_unique(Id, "neutral-current", Attributes::NeutralCurrent::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>( Id, "power-mode", 0, UINT8_MAX, Attributes::PowerMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-measurement-types", 0, UINT8_MAX, Attributes::NumberOfMeasurementTypes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accuracy", Attributes::Accuracy::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "ranges", Attributes::Ranges::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "voltage", INT64_MIN, INT64_MAX, Attributes::Voltage::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "active-current", INT64_MIN, INT64_MAX, Attributes::ActiveCurrent::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "reactive-current", INT64_MIN, INT64_MAX, Attributes::ReactiveCurrent::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "apparent-current", INT64_MIN, INT64_MAX, Attributes::ApparentCurrent::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "active-power", INT64_MIN, INT64_MAX, Attributes::ActivePower::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "reactive-power", INT64_MIN, INT64_MAX, Attributes::ReactivePower::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "apparent-power", INT64_MIN, INT64_MAX, Attributes::ApparentPower::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "rmsvoltage", INT64_MIN, INT64_MAX, Attributes::RMSVoltage::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "rmscurrent", INT64_MIN, INT64_MAX, Attributes::RMSCurrent::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "rmspower", INT64_MIN, INT64_MAX, Attributes::RMSPower::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "frequency", INT64_MIN, INT64_MAX, Attributes::Frequency::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>>( Id, "harmonic-currents", Attributes::HarmonicCurrents::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>>( Id, "harmonic-phases", Attributes::HarmonicPhases::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "power-factor", INT64_MIN, INT64_MAX, Attributes::PowerFactor::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "neutral-current", INT64_MIN, INT64_MAX, Attributes::NeutralCurrent::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "power-mode", Attributes::PowerMode::Id, credsIssuerConfig), // make_unique(Id, "number-of-measurement-types", Attributes::NumberOfMeasurementTypes::Id, credsIssuerConfig), // make_unique(Id, "accuracy", Attributes::Accuracy::Id, credsIssuerConfig), // make_unique(Id, "ranges", Attributes::Ranges::Id, credsIssuerConfig), // make_unique(Id, "voltage", Attributes::Voltage::Id, credsIssuerConfig), // make_unique(Id, "active-current", Attributes::ActiveCurrent::Id, credsIssuerConfig), // make_unique(Id, "reactive-current", Attributes::ReactiveCurrent::Id, credsIssuerConfig), // make_unique(Id, "apparent-current", Attributes::ApparentCurrent::Id, credsIssuerConfig), // make_unique(Id, "active-power", Attributes::ActivePower::Id, credsIssuerConfig), // make_unique(Id, "reactive-power", Attributes::ReactivePower::Id, credsIssuerConfig), // make_unique(Id, "apparent-power", Attributes::ApparentPower::Id, credsIssuerConfig), // make_unique(Id, "rmsvoltage", Attributes::RMSVoltage::Id, credsIssuerConfig), // make_unique(Id, "rmscurrent", Attributes::RMSCurrent::Id, credsIssuerConfig), // make_unique(Id, "rmspower", Attributes::RMSPower::Id, credsIssuerConfig), // make_unique(Id, "frequency", Attributes::Frequency::Id, credsIssuerConfig), // make_unique(Id, "harmonic-currents", Attributes::HarmonicCurrents::Id, credsIssuerConfig), // make_unique(Id, "harmonic-phases", Attributes::HarmonicPhases::Id, credsIssuerConfig), // make_unique(Id, "power-factor", Attributes::PowerFactor::Id, credsIssuerConfig), // make_unique(Id, "neutral-current", Attributes::NeutralCurrent::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measurement-period-ranges", Events::MeasurementPeriodRanges::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measurement-period-ranges", Events::MeasurementPeriodRanges::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterElectricalEnergyMeasurement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ElectricalEnergyMeasurement; const char * clusterName = "ElectricalEnergyMeasurement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "accuracy", Attributes::Accuracy::Id, credsIssuerConfig), // make_unique(Id, "cumulative-energy-imported", Attributes::CumulativeEnergyImported::Id, credsIssuerConfig), // make_unique(Id, "cumulative-energy-exported", Attributes::CumulativeEnergyExported::Id, credsIssuerConfig), // make_unique(Id, "periodic-energy-imported", Attributes::PeriodicEnergyImported::Id, credsIssuerConfig), // make_unique(Id, "periodic-energy-exported", Attributes::PeriodicEnergyExported::Id, credsIssuerConfig), // make_unique(Id, "cumulative-energy-reset", Attributes::CumulativeEnergyReset::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>( Id, "accuracy", Attributes::Accuracy::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "cumulative-energy-imported", Attributes::CumulativeEnergyImported::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "cumulative-energy-exported", Attributes::CumulativeEnergyExported::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "periodic-energy-imported", Attributes::PeriodicEnergyImported::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "periodic-energy-exported", Attributes::PeriodicEnergyExported::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "cumulative-energy-reset", Attributes::CumulativeEnergyReset::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "accuracy", Attributes::Accuracy::Id, credsIssuerConfig), // make_unique(Id, "cumulative-energy-imported", Attributes::CumulativeEnergyImported::Id, credsIssuerConfig), // make_unique(Id, "cumulative-energy-exported", Attributes::CumulativeEnergyExported::Id, credsIssuerConfig), // make_unique(Id, "periodic-energy-imported", Attributes::PeriodicEnergyImported::Id, credsIssuerConfig), // make_unique(Id, "periodic-energy-exported", Attributes::PeriodicEnergyExported::Id, credsIssuerConfig), // make_unique(Id, "cumulative-energy-reset", Attributes::CumulativeEnergyReset::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "cumulative-energy-measured", Events::CumulativeEnergyMeasured::Id, credsIssuerConfig), // make_unique(Id, "periodic-energy-measured", Events::PeriodicEnergyMeasured::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "cumulative-energy-measured", Events::CumulativeEnergyMeasured::Id, credsIssuerConfig), // make_unique(Id, "periodic-energy-measured", Events::PeriodicEnergyMeasured::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterWaterHeaterManagement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::WaterHeaterManagement; const char * clusterName = "WaterHeaterManagement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "heater-types", Attributes::HeaterTypes::Id, credsIssuerConfig), // make_unique(Id, "heat-demand", Attributes::HeatDemand::Id, credsIssuerConfig), // make_unique(Id, "tank-volume", Attributes::TankVolume::Id, credsIssuerConfig), // make_unique(Id, "estimated-heat-required", Attributes::EstimatedHeatRequired::Id, credsIssuerConfig), // make_unique(Id, "tank-percentage", Attributes::TankPercentage::Id, credsIssuerConfig), // make_unique(Id, "boost-state", Attributes::BoostState::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "heater-types", 0, UINT8_MAX, Attributes::HeaterTypes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "heat-demand", 0, UINT8_MAX, Attributes::HeatDemand::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tank-volume", 0, UINT16_MAX, Attributes::TankVolume::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "estimated-heat-required", INT64_MIN, INT64_MAX, Attributes::EstimatedHeatRequired::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tank-percentage", 0, UINT8_MAX, Attributes::TankPercentage::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "boost-state", 0, UINT8_MAX, Attributes::BoostState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "heater-types", Attributes::HeaterTypes::Id, credsIssuerConfig), // make_unique(Id, "heat-demand", Attributes::HeatDemand::Id, credsIssuerConfig), // make_unique(Id, "tank-volume", Attributes::TankVolume::Id, credsIssuerConfig), // make_unique(Id, "estimated-heat-required", Attributes::EstimatedHeatRequired::Id, credsIssuerConfig), // make_unique(Id, "tank-percentage", Attributes::TankPercentage::Id, credsIssuerConfig), // make_unique(Id, "boost-state", Attributes::BoostState::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "boost-started", Events::BoostStarted::Id, credsIssuerConfig), // make_unique(Id, "boost-ended", Events::BoostEnded::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "boost-started", Events::BoostStarted::Id, credsIssuerConfig), // make_unique(Id, "boost-ended", Events::BoostEnded::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterDemandResponseLoadControl(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::DemandResponseLoadControl; const char * clusterName = "DemandResponseLoadControl"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "load-control-programs", Attributes::LoadControlPrograms::Id, credsIssuerConfig), // make_unique(Id, "number-of-load-control-programs", Attributes::NumberOfLoadControlPrograms::Id, credsIssuerConfig), // make_unique(Id, "events", Attributes::Events::Id, credsIssuerConfig), // make_unique(Id, "active-events", Attributes::ActiveEvents::Id, credsIssuerConfig), // make_unique(Id, "number-of-events-per-program", Attributes::NumberOfEventsPerProgram::Id, credsIssuerConfig), // make_unique(Id, "number-of-transitions", Attributes::NumberOfTransitions::Id, credsIssuerConfig), // make_unique(Id, "default-random-start", Attributes::DefaultRandomStart::Id, credsIssuerConfig), // make_unique(Id, "default-random-duration", Attributes::DefaultRandomDuration::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "load-control-programs", Attributes::LoadControlPrograms::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-load-control-programs", 0, UINT8_MAX, Attributes::NumberOfLoadControlPrograms::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "events", Attributes::Events::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "active-events", Attributes::ActiveEvents::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-events-per-program", 0, UINT8_MAX, Attributes::NumberOfEventsPerProgram::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-transitions", 0, UINT8_MAX, Attributes::NumberOfTransitions::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "default-random-start", 0, UINT8_MAX, Attributes::DefaultRandomStart::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "default-random-duration", 0, UINT8_MAX, Attributes::DefaultRandomDuration::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "load-control-programs", Attributes::LoadControlPrograms::Id, credsIssuerConfig), // make_unique(Id, "number-of-load-control-programs", Attributes::NumberOfLoadControlPrograms::Id, credsIssuerConfig), // make_unique(Id, "events", Attributes::Events::Id, credsIssuerConfig), // make_unique(Id, "active-events", Attributes::ActiveEvents::Id, credsIssuerConfig), // make_unique(Id, "number-of-events-per-program", Attributes::NumberOfEventsPerProgram::Id, credsIssuerConfig), // make_unique(Id, "number-of-transitions", Attributes::NumberOfTransitions::Id, credsIssuerConfig), // make_unique(Id, "default-random-start", Attributes::DefaultRandomStart::Id, credsIssuerConfig), // make_unique(Id, "default-random-duration", Attributes::DefaultRandomDuration::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "load-control-event-status-change", Events::LoadControlEventStatusChange::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "load-control-event-status-change", Events::LoadControlEventStatusChange::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterMessages(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::Messages; const char * clusterName = "Messages"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "messages", Attributes::Messages::Id, credsIssuerConfig), // make_unique(Id, "active-message-ids", Attributes::ActiveMessageIDs::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "messages", Attributes::Messages::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "active-message-ids", Attributes::ActiveMessageIDs::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "messages", Attributes::Messages::Id, credsIssuerConfig), // make_unique(Id, "active-message-ids", Attributes::ActiveMessageIDs::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "message-queued", Events::MessageQueued::Id, credsIssuerConfig), // make_unique(Id, "message-presented", Events::MessagePresented::Id, credsIssuerConfig), // make_unique(Id, "message-complete", Events::MessageComplete::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "message-queued", Events::MessageQueued::Id, credsIssuerConfig), // make_unique(Id, "message-presented", Events::MessagePresented::Id, credsIssuerConfig), // make_unique(Id, "message-complete", Events::MessageComplete::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterDeviceEnergyManagement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::DeviceEnergyManagement; const char * clusterName = "DeviceEnergyManagement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "esatype", Attributes::ESAType::Id, credsIssuerConfig), // make_unique(Id, "esacan-generate", Attributes::ESACanGenerate::Id, credsIssuerConfig), // make_unique(Id, "esastate", Attributes::ESAState::Id, credsIssuerConfig), // make_unique(Id, "abs-min-power", Attributes::AbsMinPower::Id, credsIssuerConfig), // make_unique(Id, "abs-max-power", Attributes::AbsMaxPower::Id, credsIssuerConfig), // make_unique(Id, "power-adjustment-capability", Attributes::PowerAdjustmentCapability::Id, credsIssuerConfig), // make_unique(Id, "forecast", Attributes::Forecast::Id, credsIssuerConfig), // make_unique(Id, "opt-out-state", Attributes::OptOutState::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>( Id, "esatype", 0, UINT8_MAX, Attributes::ESAType::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "esacan-generate", 0, 1, Attributes::ESACanGenerate::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "esastate", 0, UINT8_MAX, Attributes::ESAState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "abs-min-power", INT64_MIN, INT64_MAX, Attributes::AbsMinPower::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "abs-max-power", INT64_MIN, INT64_MAX, Attributes::AbsMaxPower::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "power-adjustment-capability", Attributes::PowerAdjustmentCapability::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "forecast", Attributes::Forecast::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "opt-out-state", 0, UINT8_MAX, Attributes::OptOutState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "esatype", Attributes::ESAType::Id, credsIssuerConfig), // make_unique(Id, "esacan-generate", Attributes::ESACanGenerate::Id, credsIssuerConfig), // make_unique(Id, "esastate", Attributes::ESAState::Id, credsIssuerConfig), // make_unique(Id, "abs-min-power", Attributes::AbsMinPower::Id, credsIssuerConfig), // make_unique(Id, "abs-max-power", Attributes::AbsMaxPower::Id, credsIssuerConfig), // make_unique(Id, "power-adjustment-capability", Attributes::PowerAdjustmentCapability::Id, credsIssuerConfig), // make_unique(Id, "forecast", Attributes::Forecast::Id, credsIssuerConfig), // make_unique(Id, "opt-out-state", Attributes::OptOutState::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "power-adjust-start", Events::PowerAdjustStart::Id, credsIssuerConfig), // make_unique(Id, "power-adjust-end", Events::PowerAdjustEnd::Id, credsIssuerConfig), // make_unique(Id, "paused", Events::Paused::Id, credsIssuerConfig), // make_unique(Id, "resumed", Events::Resumed::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "power-adjust-start", Events::PowerAdjustStart::Id, credsIssuerConfig), // make_unique(Id, "power-adjust-end", Events::PowerAdjustEnd::Id, credsIssuerConfig), // make_unique(Id, "paused", Events::Paused::Id, credsIssuerConfig), // make_unique(Id, "resumed", Events::Resumed::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterEnergyEvse(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::EnergyEvse; const char * clusterName = "EnergyEvse"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "state", Attributes::State::Id, credsIssuerConfig), // make_unique(Id, "supply-state", Attributes::SupplyState::Id, credsIssuerConfig), // make_unique(Id, "fault-state", Attributes::FaultState::Id, credsIssuerConfig), // make_unique(Id, "charging-enabled-until", Attributes::ChargingEnabledUntil::Id, credsIssuerConfig), // make_unique(Id, "discharging-enabled-until", Attributes::DischargingEnabledUntil::Id, credsIssuerConfig), // make_unique(Id, "circuit-capacity", Attributes::CircuitCapacity::Id, credsIssuerConfig), // make_unique(Id, "minimum-charge-current", Attributes::MinimumChargeCurrent::Id, credsIssuerConfig), // make_unique(Id, "maximum-charge-current", Attributes::MaximumChargeCurrent::Id, credsIssuerConfig), // make_unique(Id, "maximum-discharge-current", Attributes::MaximumDischargeCurrent::Id, credsIssuerConfig), // make_unique(Id, "user-maximum-charge-current", Attributes::UserMaximumChargeCurrent::Id, credsIssuerConfig), // make_unique(Id, "randomization-delay-window", Attributes::RandomizationDelayWindow::Id, credsIssuerConfig), // make_unique(Id, "next-charge-start-time", Attributes::NextChargeStartTime::Id, credsIssuerConfig), // make_unique(Id, "next-charge-target-time", Attributes::NextChargeTargetTime::Id, credsIssuerConfig), // make_unique(Id, "next-charge-required-energy", Attributes::NextChargeRequiredEnergy::Id, credsIssuerConfig), // make_unique(Id, "next-charge-target-so-c", Attributes::NextChargeTargetSoC::Id, credsIssuerConfig), // make_unique(Id, "approximate-evefficiency", Attributes::ApproximateEVEfficiency::Id, credsIssuerConfig), // make_unique(Id, "state-of-charge", Attributes::StateOfCharge::Id, credsIssuerConfig), // make_unique(Id, "battery-capacity", Attributes::BatteryCapacity::Id, credsIssuerConfig), // make_unique(Id, "vehicle-id", Attributes::VehicleID::Id, credsIssuerConfig), // make_unique(Id, "session-id", Attributes::SessionID::Id, credsIssuerConfig), // make_unique(Id, "session-duration", Attributes::SessionDuration::Id, credsIssuerConfig), // make_unique(Id, "session-energy-charged", Attributes::SessionEnergyCharged::Id, credsIssuerConfig), // make_unique(Id, "session-energy-discharged", Attributes::SessionEnergyDischarged::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "state", 0, UINT8_MAX, Attributes::State::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "supply-state", 0, UINT8_MAX, Attributes::SupplyState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "fault-state", 0, UINT8_MAX, Attributes::FaultState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "charging-enabled-until", 0, UINT32_MAX, Attributes::ChargingEnabledUntil::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "discharging-enabled-until", 0, UINT32_MAX, Attributes::DischargingEnabledUntil::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "circuit-capacity", INT64_MIN, INT64_MAX, Attributes::CircuitCapacity::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "minimum-charge-current", INT64_MIN, INT64_MAX, Attributes::MinimumChargeCurrent::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "maximum-charge-current", INT64_MIN, INT64_MAX, Attributes::MaximumChargeCurrent::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "maximum-discharge-current", INT64_MIN, INT64_MAX, Attributes::MaximumDischargeCurrent::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "user-maximum-charge-current", INT64_MIN, INT64_MAX, Attributes::UserMaximumChargeCurrent::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "randomization-delay-window", 0, UINT32_MAX, Attributes::RandomizationDelayWindow::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "next-charge-start-time", 0, UINT32_MAX, Attributes::NextChargeStartTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "next-charge-target-time", 0, UINT32_MAX, Attributes::NextChargeTargetTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "next-charge-required-energy", INT64_MIN, INT64_MAX, Attributes::NextChargeRequiredEnergy::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "next-charge-target-so-c", 0, UINT8_MAX, Attributes::NextChargeTargetSoC::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "approximate-evefficiency", 0, UINT16_MAX, Attributes::ApproximateEVEfficiency::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "state-of-charge", 0, UINT8_MAX, Attributes::StateOfCharge::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "battery-capacity", INT64_MIN, INT64_MAX, Attributes::BatteryCapacity::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "vehicle-id", Attributes::VehicleID::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "session-id", 0, UINT32_MAX, Attributes::SessionID::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "session-duration", 0, UINT32_MAX, Attributes::SessionDuration::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "session-energy-charged", INT64_MIN, INT64_MAX, Attributes::SessionEnergyCharged::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "session-energy-discharged", INT64_MIN, INT64_MAX, Attributes::SessionEnergyDischarged::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "state", Attributes::State::Id, credsIssuerConfig), // make_unique(Id, "supply-state", Attributes::SupplyState::Id, credsIssuerConfig), // make_unique(Id, "fault-state", Attributes::FaultState::Id, credsIssuerConfig), // make_unique(Id, "charging-enabled-until", Attributes::ChargingEnabledUntil::Id, credsIssuerConfig), // make_unique(Id, "discharging-enabled-until", Attributes::DischargingEnabledUntil::Id, credsIssuerConfig), // make_unique(Id, "circuit-capacity", Attributes::CircuitCapacity::Id, credsIssuerConfig), // make_unique(Id, "minimum-charge-current", Attributes::MinimumChargeCurrent::Id, credsIssuerConfig), // make_unique(Id, "maximum-charge-current", Attributes::MaximumChargeCurrent::Id, credsIssuerConfig), // make_unique(Id, "maximum-discharge-current", Attributes::MaximumDischargeCurrent::Id, credsIssuerConfig), // make_unique(Id, "user-maximum-charge-current", Attributes::UserMaximumChargeCurrent::Id, credsIssuerConfig), // make_unique(Id, "randomization-delay-window", Attributes::RandomizationDelayWindow::Id, credsIssuerConfig), // make_unique(Id, "next-charge-start-time", Attributes::NextChargeStartTime::Id, credsIssuerConfig), // make_unique(Id, "next-charge-target-time", Attributes::NextChargeTargetTime::Id, credsIssuerConfig), // make_unique(Id, "next-charge-required-energy", Attributes::NextChargeRequiredEnergy::Id, credsIssuerConfig), // make_unique(Id, "next-charge-target-so-c", Attributes::NextChargeTargetSoC::Id, credsIssuerConfig), // make_unique(Id, "approximate-evefficiency", Attributes::ApproximateEVEfficiency::Id, credsIssuerConfig), // make_unique(Id, "state-of-charge", Attributes::StateOfCharge::Id, credsIssuerConfig), // make_unique(Id, "battery-capacity", Attributes::BatteryCapacity::Id, credsIssuerConfig), // make_unique(Id, "vehicle-id", Attributes::VehicleID::Id, credsIssuerConfig), // make_unique(Id, "session-id", Attributes::SessionID::Id, credsIssuerConfig), // make_unique(Id, "session-duration", Attributes::SessionDuration::Id, credsIssuerConfig), // make_unique(Id, "session-energy-charged", Attributes::SessionEnergyCharged::Id, credsIssuerConfig), // make_unique(Id, "session-energy-discharged", Attributes::SessionEnergyDischarged::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "evconnected", Events::EVConnected::Id, credsIssuerConfig), // make_unique(Id, "evnot-detected", Events::EVNotDetected::Id, credsIssuerConfig), // make_unique(Id, "energy-transfer-started", Events::EnergyTransferStarted::Id, credsIssuerConfig), // make_unique(Id, "energy-transfer-stopped", Events::EnergyTransferStopped::Id, credsIssuerConfig), // make_unique(Id, "fault", Events::Fault::Id, credsIssuerConfig), // make_unique(Id, "rfid", Events::Rfid::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "evconnected", Events::EVConnected::Id, credsIssuerConfig), // make_unique(Id, "evnot-detected", Events::EVNotDetected::Id, credsIssuerConfig), // make_unique(Id, "energy-transfer-started", Events::EnergyTransferStarted::Id, credsIssuerConfig), // make_unique(Id, "energy-transfer-stopped", Events::EnergyTransferStopped::Id, credsIssuerConfig), // make_unique(Id, "fault", Events::Fault::Id, credsIssuerConfig), // make_unique(Id, "rfid", Events::Rfid::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterEnergyPreference(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::EnergyPreference; const char * clusterName = "EnergyPreference"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "energy-balances", Attributes::EnergyBalances::Id, credsIssuerConfig), // make_unique(Id, "current-energy-balance", Attributes::CurrentEnergyBalance::Id, credsIssuerConfig), // make_unique(Id, "energy-priorities", Attributes::EnergyPriorities::Id, credsIssuerConfig), // make_unique(Id, "low-power-mode-sensitivities", Attributes::LowPowerModeSensitivities::Id, credsIssuerConfig), // make_unique(Id, "current-low-power-mode-sensitivity", Attributes::CurrentLowPowerModeSensitivity::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "energy-balances", Attributes::EnergyBalances::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-energy-balance", 0, UINT8_MAX, Attributes::CurrentEnergyBalance::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "energy-priorities", Attributes::EnergyPriorities::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "low-power-mode-sensitivities", Attributes::LowPowerModeSensitivities::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-low-power-mode-sensitivity", 0, UINT8_MAX, Attributes::CurrentLowPowerModeSensitivity::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "energy-balances", Attributes::EnergyBalances::Id, credsIssuerConfig), // make_unique(Id, "current-energy-balance", Attributes::CurrentEnergyBalance::Id, credsIssuerConfig), // make_unique(Id, "energy-priorities", Attributes::EnergyPriorities::Id, credsIssuerConfig), // make_unique(Id, "low-power-mode-sensitivities", Attributes::LowPowerModeSensitivities::Id, credsIssuerConfig), // make_unique(Id, "current-low-power-mode-sensitivity", Attributes::CurrentLowPowerModeSensitivity::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterPowerTopology(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::PowerTopology; const char * clusterName = "PowerTopology"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "available-endpoints", Attributes::AvailableEndpoints::Id, credsIssuerConfig), // make_unique(Id, "active-endpoints", Attributes::ActiveEndpoints::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "available-endpoints", Attributes::AvailableEndpoints::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "active-endpoints", Attributes::ActiveEndpoints::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "available-endpoints", Attributes::AvailableEndpoints::Id, credsIssuerConfig), // make_unique(Id, "active-endpoints", Attributes::ActiveEndpoints::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterEnergyEvseMode(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::EnergyEvseMode; const char * clusterName = "EnergyEvseMode"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "supported-modes", Attributes::SupportedModes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-mode", 0, UINT8_MAX, Attributes::CurrentMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "start-up-mode", 0, UINT8_MAX, Attributes::StartUpMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "on-mode", 0, UINT8_MAX, Attributes::OnMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterWaterHeaterMode(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::WaterHeaterMode; const char * clusterName = "WaterHeaterMode"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "supported-modes", Attributes::SupportedModes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-mode", 0, UINT8_MAX, Attributes::CurrentMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "start-up-mode", 0, UINT8_MAX, Attributes::StartUpMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "on-mode", 0, UINT8_MAX, Attributes::OnMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterDeviceEnergyManagementMode(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::DeviceEnergyManagementMode; const char * clusterName = "DeviceEnergyManagementMode"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "supported-modes", Attributes::SupportedModes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-mode", 0, UINT8_MAX, Attributes::CurrentMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "start-up-mode", 0, UINT8_MAX, Attributes::StartUpMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "on-mode", 0, UINT8_MAX, Attributes::OnMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterDoorLock(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::DoorLock; const char * clusterName = "DoorLock"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "lock-state", Attributes::LockState::Id, credsIssuerConfig), // make_unique(Id, "lock-type", Attributes::LockType::Id, credsIssuerConfig), // make_unique(Id, "actuator-enabled", Attributes::ActuatorEnabled::Id, credsIssuerConfig), // make_unique(Id, "door-state", Attributes::DoorState::Id, credsIssuerConfig), // make_unique(Id, "door-open-events", Attributes::DoorOpenEvents::Id, credsIssuerConfig), // make_unique(Id, "door-closed-events", Attributes::DoorClosedEvents::Id, credsIssuerConfig), // make_unique(Id, "open-period", Attributes::OpenPeriod::Id, credsIssuerConfig), // make_unique(Id, "number-of-total-users-supported", Attributes::NumberOfTotalUsersSupported::Id, credsIssuerConfig), // make_unique(Id, "number-of-pinusers-supported", Attributes::NumberOfPINUsersSupported::Id, credsIssuerConfig), // make_unique(Id, "number-of-rfidusers-supported", Attributes::NumberOfRFIDUsersSupported::Id, credsIssuerConfig), // make_unique(Id, "number-of-week-day-schedules-supported-per-user", Attributes::NumberOfWeekDaySchedulesSupportedPerUser::Id, credsIssuerConfig), // make_unique(Id, "number-of-year-day-schedules-supported-per-user", Attributes::NumberOfYearDaySchedulesSupportedPerUser::Id, credsIssuerConfig), // make_unique(Id, "number-of-holiday-schedules-supported", Attributes::NumberOfHolidaySchedulesSupported::Id, credsIssuerConfig), // make_unique(Id, "max-pincode-length", Attributes::MaxPINCodeLength::Id, credsIssuerConfig), // make_unique(Id, "min-pincode-length", Attributes::MinPINCodeLength::Id, credsIssuerConfig), // make_unique(Id, "max-rfidcode-length", Attributes::MaxRFIDCodeLength::Id, credsIssuerConfig), // make_unique(Id, "min-rfidcode-length", Attributes::MinRFIDCodeLength::Id, credsIssuerConfig), // make_unique(Id, "credential-rules-support", Attributes::CredentialRulesSupport::Id, credsIssuerConfig), // make_unique(Id, "number-of-credentials-supported-per-user", Attributes::NumberOfCredentialsSupportedPerUser::Id, credsIssuerConfig), // make_unique(Id, "language", Attributes::Language::Id, credsIssuerConfig), // make_unique(Id, "ledsettings", Attributes::LEDSettings::Id, credsIssuerConfig), // make_unique(Id, "auto-relock-time", Attributes::AutoRelockTime::Id, credsIssuerConfig), // make_unique(Id, "sound-volume", Attributes::SoundVolume::Id, credsIssuerConfig), // make_unique(Id, "operating-mode", Attributes::OperatingMode::Id, credsIssuerConfig), // make_unique(Id, "supported-operating-modes", Attributes::SupportedOperatingModes::Id, credsIssuerConfig), // make_unique(Id, "default-configuration-register", Attributes::DefaultConfigurationRegister::Id, credsIssuerConfig), // make_unique(Id, "enable-local-programming", Attributes::EnableLocalProgramming::Id, credsIssuerConfig), // make_unique(Id, "enable-one-touch-locking", Attributes::EnableOneTouchLocking::Id, credsIssuerConfig), // make_unique(Id, "enable-inside-status-led", Attributes::EnableInsideStatusLED::Id, credsIssuerConfig), // make_unique(Id, "enable-privacy-mode-button", Attributes::EnablePrivacyModeButton::Id, credsIssuerConfig), // make_unique(Id, "local-programming-features", Attributes::LocalProgrammingFeatures::Id, credsIssuerConfig), // make_unique(Id, "wrong-code-entry-limit", Attributes::WrongCodeEntryLimit::Id, credsIssuerConfig), // make_unique(Id, "user-code-temporary-disable-time", Attributes::UserCodeTemporaryDisableTime::Id, credsIssuerConfig), // make_unique(Id, "send-pinover-the-air", Attributes::SendPINOverTheAir::Id, credsIssuerConfig), // make_unique(Id, "require-pinfor-remote-operation", Attributes::RequirePINforRemoteOperation::Id, credsIssuerConfig), // make_unique(Id, "expiring-user-timeout", Attributes::ExpiringUserTimeout::Id, credsIssuerConfig), // make_unique(Id, "aliro-reader-verification-key", Attributes::AliroReaderVerificationKey::Id, credsIssuerConfig), // make_unique(Id, "aliro-reader-group-identifier", Attributes::AliroReaderGroupIdentifier::Id, credsIssuerConfig), // make_unique(Id, "aliro-reader-group-sub-identifier", Attributes::AliroReaderGroupSubIdentifier::Id, credsIssuerConfig), // make_unique(Id, "aliro-expedited-transaction-supported-protocol-versions", Attributes::AliroExpeditedTransactionSupportedProtocolVersions::Id, credsIssuerConfig), // make_unique(Id, "aliro-group-resolving-key", Attributes::AliroGroupResolvingKey::Id, credsIssuerConfig), // make_unique(Id, "aliro-supported-bleuwbprotocol-versions", Attributes::AliroSupportedBLEUWBProtocolVersions::Id, credsIssuerConfig), // make_unique(Id, "aliro-bleadvertising-version", Attributes::AliroBLEAdvertisingVersion::Id, credsIssuerConfig), // make_unique(Id, "number-of-aliro-credential-issuer-keys-supported", Attributes::NumberOfAliroCredentialIssuerKeysSupported::Id, credsIssuerConfig), // make_unique(Id, "number-of-aliro-endpoint-keys-supported", Attributes::NumberOfAliroEndpointKeysSupported::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "lock-state", 0, UINT8_MAX, Attributes::LockState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "lock-type", 0, UINT8_MAX, Attributes::LockType::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "actuator-enabled", 0, 1, Attributes::ActuatorEnabled::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "door-state", 0, UINT8_MAX, Attributes::DoorState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "door-open-events", 0, UINT32_MAX, Attributes::DoorOpenEvents::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "door-closed-events", 0, UINT32_MAX, Attributes::DoorClosedEvents::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "open-period", 0, UINT16_MAX, Attributes::OpenPeriod::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "number-of-total-users-supported", 0, UINT16_MAX, Attributes::NumberOfTotalUsersSupported::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-pinusers-supported", 0, UINT16_MAX, Attributes::NumberOfPINUsersSupported::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-rfidusers-supported", 0, UINT16_MAX, Attributes::NumberOfRFIDUsersSupported::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-week-day-schedules-supported-per-user", 0, UINT8_MAX, Attributes::NumberOfWeekDaySchedulesSupportedPerUser::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-year-day-schedules-supported-per-user", 0, UINT8_MAX, Attributes::NumberOfYearDaySchedulesSupportedPerUser::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-holiday-schedules-supported", 0, UINT8_MAX, Attributes::NumberOfHolidaySchedulesSupported::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "max-pincode-length", 0, UINT8_MAX, Attributes::MaxPINCodeLength::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "min-pincode-length", 0, UINT8_MAX, Attributes::MinPINCodeLength::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "max-rfidcode-length", 0, UINT8_MAX, Attributes::MaxRFIDCodeLength::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "min-rfidcode-length", 0, UINT8_MAX, Attributes::MinRFIDCodeLength::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "credential-rules-support", 0, UINT8_MAX, Attributes::CredentialRulesSupport::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-credentials-supported-per-user", 0, UINT8_MAX, Attributes::NumberOfCredentialsSupportedPerUser::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "language", Attributes::Language::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "ledsettings", 0, UINT8_MAX, Attributes::LEDSettings::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "auto-relock-time", 0, UINT32_MAX, Attributes::AutoRelockTime::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "sound-volume", 0, UINT8_MAX, Attributes::SoundVolume::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "operating-mode", 0, UINT8_MAX, Attributes::OperatingMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "supported-operating-modes", 0, UINT16_MAX, Attributes::SupportedOperatingModes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "default-configuration-register", 0, UINT16_MAX, Attributes::DefaultConfigurationRegister::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "enable-local-programming", 0, 1, Attributes::EnableLocalProgramming::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "enable-one-touch-locking", 0, 1, Attributes::EnableOneTouchLocking::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "enable-inside-status-led", 0, 1, Attributes::EnableInsideStatusLED::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "enable-privacy-mode-button", 0, 1, Attributes::EnablePrivacyModeButton::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "local-programming-features", 0, UINT8_MAX, Attributes::LocalProgrammingFeatures::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "wrong-code-entry-limit", 0, UINT8_MAX, Attributes::WrongCodeEntryLimit::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "user-code-temporary-disable-time", 0, UINT8_MAX, Attributes::UserCodeTemporaryDisableTime::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "send-pinover-the-air", 0, 1, Attributes::SendPINOverTheAir::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "require-pinfor-remote-operation", 0, 1, Attributes::RequirePINforRemoteOperation::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "expiring-user-timeout", 0, UINT16_MAX, Attributes::ExpiringUserTimeout::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "aliro-reader-verification-key", Attributes::AliroReaderVerificationKey::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "aliro-reader-group-identifier", Attributes::AliroReaderGroupIdentifier::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "aliro-reader-group-sub-identifier", Attributes::AliroReaderGroupSubIdentifier::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "aliro-expedited-transaction-supported-protocol-versions", Attributes::AliroExpeditedTransactionSupportedProtocolVersions::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "aliro-group-resolving-key", Attributes::AliroGroupResolvingKey::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "aliro-supported-bleuwbprotocol-versions", Attributes::AliroSupportedBLEUWBProtocolVersions::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "aliro-bleadvertising-version", 0, UINT8_MAX, Attributes::AliroBLEAdvertisingVersion::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-aliro-credential-issuer-keys-supported", 0, UINT16_MAX, Attributes::NumberOfAliroCredentialIssuerKeysSupported::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-aliro-endpoint-keys-supported", 0, UINT16_MAX, Attributes::NumberOfAliroEndpointKeysSupported::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "lock-state", Attributes::LockState::Id, credsIssuerConfig), // make_unique(Id, "lock-type", Attributes::LockType::Id, credsIssuerConfig), // make_unique(Id, "actuator-enabled", Attributes::ActuatorEnabled::Id, credsIssuerConfig), // make_unique(Id, "door-state", Attributes::DoorState::Id, credsIssuerConfig), // make_unique(Id, "door-open-events", Attributes::DoorOpenEvents::Id, credsIssuerConfig), // make_unique(Id, "door-closed-events", Attributes::DoorClosedEvents::Id, credsIssuerConfig), // make_unique(Id, "open-period", Attributes::OpenPeriod::Id, credsIssuerConfig), // make_unique(Id, "number-of-total-users-supported", Attributes::NumberOfTotalUsersSupported::Id, credsIssuerConfig), // make_unique(Id, "number-of-pinusers-supported", Attributes::NumberOfPINUsersSupported::Id, credsIssuerConfig), // make_unique(Id, "number-of-rfidusers-supported", Attributes::NumberOfRFIDUsersSupported::Id, credsIssuerConfig), // make_unique(Id, "number-of-week-day-schedules-supported-per-user", Attributes::NumberOfWeekDaySchedulesSupportedPerUser::Id, credsIssuerConfig), // make_unique(Id, "number-of-year-day-schedules-supported-per-user", Attributes::NumberOfYearDaySchedulesSupportedPerUser::Id, credsIssuerConfig), // make_unique(Id, "number-of-holiday-schedules-supported", Attributes::NumberOfHolidaySchedulesSupported::Id, credsIssuerConfig), // make_unique(Id, "max-pincode-length", Attributes::MaxPINCodeLength::Id, credsIssuerConfig), // make_unique(Id, "min-pincode-length", Attributes::MinPINCodeLength::Id, credsIssuerConfig), // make_unique(Id, "max-rfidcode-length", Attributes::MaxRFIDCodeLength::Id, credsIssuerConfig), // make_unique(Id, "min-rfidcode-length", Attributes::MinRFIDCodeLength::Id, credsIssuerConfig), // make_unique(Id, "credential-rules-support", Attributes::CredentialRulesSupport::Id, credsIssuerConfig), // make_unique(Id, "number-of-credentials-supported-per-user", Attributes::NumberOfCredentialsSupportedPerUser::Id, credsIssuerConfig), // make_unique(Id, "language", Attributes::Language::Id, credsIssuerConfig), // make_unique(Id, "ledsettings", Attributes::LEDSettings::Id, credsIssuerConfig), // make_unique(Id, "auto-relock-time", Attributes::AutoRelockTime::Id, credsIssuerConfig), // make_unique(Id, "sound-volume", Attributes::SoundVolume::Id, credsIssuerConfig), // make_unique(Id, "operating-mode", Attributes::OperatingMode::Id, credsIssuerConfig), // make_unique(Id, "supported-operating-modes", Attributes::SupportedOperatingModes::Id, credsIssuerConfig), // make_unique(Id, "default-configuration-register", Attributes::DefaultConfigurationRegister::Id, credsIssuerConfig), // make_unique(Id, "enable-local-programming", Attributes::EnableLocalProgramming::Id, credsIssuerConfig), // make_unique(Id, "enable-one-touch-locking", Attributes::EnableOneTouchLocking::Id, credsIssuerConfig), // make_unique(Id, "enable-inside-status-led", Attributes::EnableInsideStatusLED::Id, credsIssuerConfig), // make_unique(Id, "enable-privacy-mode-button", Attributes::EnablePrivacyModeButton::Id, credsIssuerConfig), // make_unique(Id, "local-programming-features", Attributes::LocalProgrammingFeatures::Id, credsIssuerConfig), // make_unique(Id, "wrong-code-entry-limit", Attributes::WrongCodeEntryLimit::Id, credsIssuerConfig), // make_unique(Id, "user-code-temporary-disable-time", Attributes::UserCodeTemporaryDisableTime::Id, credsIssuerConfig), // make_unique(Id, "send-pinover-the-air", Attributes::SendPINOverTheAir::Id, credsIssuerConfig), // make_unique(Id, "require-pinfor-remote-operation", Attributes::RequirePINforRemoteOperation::Id, credsIssuerConfig), // make_unique(Id, "expiring-user-timeout", Attributes::ExpiringUserTimeout::Id, credsIssuerConfig), // make_unique(Id, "aliro-reader-verification-key", Attributes::AliroReaderVerificationKey::Id, credsIssuerConfig), // make_unique(Id, "aliro-reader-group-identifier", Attributes::AliroReaderGroupIdentifier::Id, credsIssuerConfig), // make_unique(Id, "aliro-reader-group-sub-identifier", Attributes::AliroReaderGroupSubIdentifier::Id, credsIssuerConfig), // make_unique(Id, "aliro-expedited-transaction-supported-protocol-versions", Attributes::AliroExpeditedTransactionSupportedProtocolVersions::Id, credsIssuerConfig), // make_unique(Id, "aliro-group-resolving-key", Attributes::AliroGroupResolvingKey::Id, credsIssuerConfig), // make_unique(Id, "aliro-supported-bleuwbprotocol-versions", Attributes::AliroSupportedBLEUWBProtocolVersions::Id, credsIssuerConfig), // make_unique(Id, "aliro-bleadvertising-version", Attributes::AliroBLEAdvertisingVersion::Id, credsIssuerConfig), // make_unique(Id, "number-of-aliro-credential-issuer-keys-supported", Attributes::NumberOfAliroCredentialIssuerKeysSupported::Id, credsIssuerConfig), // make_unique(Id, "number-of-aliro-endpoint-keys-supported", Attributes::NumberOfAliroEndpointKeysSupported::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "door-lock-alarm", Events::DoorLockAlarm::Id, credsIssuerConfig), // make_unique(Id, "door-state-change", Events::DoorStateChange::Id, credsIssuerConfig), // make_unique(Id, "lock-operation", Events::LockOperation::Id, credsIssuerConfig), // make_unique(Id, "lock-operation-error", Events::LockOperationError::Id, credsIssuerConfig), // make_unique(Id, "lock-user-change", Events::LockUserChange::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "door-lock-alarm", Events::DoorLockAlarm::Id, credsIssuerConfig), // make_unique(Id, "door-state-change", Events::DoorStateChange::Id, credsIssuerConfig), // make_unique(Id, "lock-operation", Events::LockOperation::Id, credsIssuerConfig), // make_unique(Id, "lock-operation-error", Events::LockOperationError::Id, credsIssuerConfig), // make_unique(Id, "lock-user-change", Events::LockUserChange::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterWindowCovering(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::WindowCovering; const char * clusterName = "WindowCovering"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "type", Attributes::Type::Id, credsIssuerConfig), // make_unique(Id, "physical-closed-limit-lift", Attributes::PhysicalClosedLimitLift::Id, credsIssuerConfig), // make_unique(Id, "physical-closed-limit-tilt", Attributes::PhysicalClosedLimitTilt::Id, credsIssuerConfig), // make_unique(Id, "current-position-lift", Attributes::CurrentPositionLift::Id, credsIssuerConfig), // make_unique(Id, "current-position-tilt", Attributes::CurrentPositionTilt::Id, credsIssuerConfig), // make_unique(Id, "number-of-actuations-lift", Attributes::NumberOfActuationsLift::Id, credsIssuerConfig), // make_unique(Id, "number-of-actuations-tilt", Attributes::NumberOfActuationsTilt::Id, credsIssuerConfig), // make_unique(Id, "config-status", Attributes::ConfigStatus::Id, credsIssuerConfig), // make_unique(Id, "current-position-lift-percentage", Attributes::CurrentPositionLiftPercentage::Id, credsIssuerConfig), // make_unique(Id, "current-position-tilt-percentage", Attributes::CurrentPositionTiltPercentage::Id, credsIssuerConfig), // make_unique(Id, "operational-status", Attributes::OperationalStatus::Id, credsIssuerConfig), // make_unique(Id, "target-position-lift-percent100ths", Attributes::TargetPositionLiftPercent100ths::Id, credsIssuerConfig), // make_unique(Id, "target-position-tilt-percent100ths", Attributes::TargetPositionTiltPercent100ths::Id, credsIssuerConfig), // make_unique(Id, "end-product-type", Attributes::EndProductType::Id, credsIssuerConfig), // make_unique(Id, "current-position-lift-percent100ths", Attributes::CurrentPositionLiftPercent100ths::Id, credsIssuerConfig), // make_unique(Id, "current-position-tilt-percent100ths", Attributes::CurrentPositionTiltPercent100ths::Id, credsIssuerConfig), // make_unique(Id, "installed-open-limit-lift", Attributes::InstalledOpenLimitLift::Id, credsIssuerConfig), // make_unique(Id, "installed-closed-limit-lift", Attributes::InstalledClosedLimitLift::Id, credsIssuerConfig), // make_unique(Id, "installed-open-limit-tilt", Attributes::InstalledOpenLimitTilt::Id, credsIssuerConfig), // make_unique(Id, "installed-closed-limit-tilt", Attributes::InstalledClosedLimitTilt::Id, credsIssuerConfig), // make_unique(Id, "mode", Attributes::Mode::Id, credsIssuerConfig), // make_unique(Id, "safety-status", Attributes::SafetyStatus::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "type", 0, UINT8_MAX, Attributes::Type::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "physical-closed-limit-lift", 0, UINT16_MAX, Attributes::PhysicalClosedLimitLift::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "physical-closed-limit-tilt", 0, UINT16_MAX, Attributes::PhysicalClosedLimitTilt::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "current-position-lift", 0, UINT16_MAX, Attributes::CurrentPositionLift::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "current-position-tilt", 0, UINT16_MAX, Attributes::CurrentPositionTilt::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-actuations-lift", 0, UINT16_MAX, Attributes::NumberOfActuationsLift::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-actuations-tilt", 0, UINT16_MAX, Attributes::NumberOfActuationsTilt::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "config-status", 0, UINT8_MAX, Attributes::ConfigStatus::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "current-position-lift-percentage", 0, UINT8_MAX, Attributes::CurrentPositionLiftPercentage::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "current-position-tilt-percentage", 0, UINT8_MAX, Attributes::CurrentPositionTiltPercentage::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "operational-status", 0, UINT8_MAX, Attributes::OperationalStatus::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "target-position-lift-percent100ths", 0, UINT16_MAX, Attributes::TargetPositionLiftPercent100ths::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "target-position-tilt-percent100ths", 0, UINT16_MAX, Attributes::TargetPositionTiltPercent100ths::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "end-product-type", 0, UINT8_MAX, Attributes::EndProductType::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "current-position-lift-percent100ths", 0, UINT16_MAX, Attributes::CurrentPositionLiftPercent100ths::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "current-position-tilt-percent100ths", 0, UINT16_MAX, Attributes::CurrentPositionTiltPercent100ths::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "installed-open-limit-lift", 0, UINT16_MAX, Attributes::InstalledOpenLimitLift::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "installed-closed-limit-lift", 0, UINT16_MAX, Attributes::InstalledClosedLimitLift::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "installed-open-limit-tilt", 0, UINT16_MAX, Attributes::InstalledOpenLimitTilt::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "installed-closed-limit-tilt", 0, UINT16_MAX, Attributes::InstalledClosedLimitTilt::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "mode", 0, UINT8_MAX, Attributes::Mode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "safety-status", 0, UINT16_MAX, Attributes::SafetyStatus::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "type", Attributes::Type::Id, credsIssuerConfig), // make_unique(Id, "physical-closed-limit-lift", Attributes::PhysicalClosedLimitLift::Id, credsIssuerConfig), // make_unique(Id, "physical-closed-limit-tilt", Attributes::PhysicalClosedLimitTilt::Id, credsIssuerConfig), // make_unique(Id, "current-position-lift", Attributes::CurrentPositionLift::Id, credsIssuerConfig), // make_unique(Id, "current-position-tilt", Attributes::CurrentPositionTilt::Id, credsIssuerConfig), // make_unique(Id, "number-of-actuations-lift", Attributes::NumberOfActuationsLift::Id, credsIssuerConfig), // make_unique(Id, "number-of-actuations-tilt", Attributes::NumberOfActuationsTilt::Id, credsIssuerConfig), // make_unique(Id, "config-status", Attributes::ConfigStatus::Id, credsIssuerConfig), // make_unique(Id, "current-position-lift-percentage", Attributes::CurrentPositionLiftPercentage::Id, credsIssuerConfig), // make_unique(Id, "current-position-tilt-percentage", Attributes::CurrentPositionTiltPercentage::Id, credsIssuerConfig), // make_unique(Id, "operational-status", Attributes::OperationalStatus::Id, credsIssuerConfig), // make_unique(Id, "target-position-lift-percent100ths", Attributes::TargetPositionLiftPercent100ths::Id, credsIssuerConfig), // make_unique(Id, "target-position-tilt-percent100ths", Attributes::TargetPositionTiltPercent100ths::Id, credsIssuerConfig), // make_unique(Id, "end-product-type", Attributes::EndProductType::Id, credsIssuerConfig), // make_unique(Id, "current-position-lift-percent100ths", Attributes::CurrentPositionLiftPercent100ths::Id, credsIssuerConfig), // make_unique(Id, "current-position-tilt-percent100ths", Attributes::CurrentPositionTiltPercent100ths::Id, credsIssuerConfig), // make_unique(Id, "installed-open-limit-lift", Attributes::InstalledOpenLimitLift::Id, credsIssuerConfig), // make_unique(Id, "installed-closed-limit-lift", Attributes::InstalledClosedLimitLift::Id, credsIssuerConfig), // make_unique(Id, "installed-open-limit-tilt", Attributes::InstalledOpenLimitTilt::Id, credsIssuerConfig), // make_unique(Id, "installed-closed-limit-tilt", Attributes::InstalledClosedLimitTilt::Id, credsIssuerConfig), // make_unique(Id, "mode", Attributes::Mode::Id, credsIssuerConfig), // make_unique(Id, "safety-status", Attributes::SafetyStatus::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterServiceArea(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ServiceArea; const char * clusterName = "ServiceArea"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-areas", Attributes::SupportedAreas::Id, credsIssuerConfig), // make_unique(Id, "supported-maps", Attributes::SupportedMaps::Id, credsIssuerConfig), // make_unique(Id, "selected-areas", Attributes::SelectedAreas::Id, credsIssuerConfig), // make_unique(Id, "current-area", Attributes::CurrentArea::Id, credsIssuerConfig), // make_unique(Id, "estimated-end-time", Attributes::EstimatedEndTime::Id, credsIssuerConfig), // make_unique(Id, "progress", Attributes::Progress::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "supported-areas", Attributes::SupportedAreas::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "supported-maps", Attributes::SupportedMaps::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "selected-areas", Attributes::SelectedAreas::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "current-area", 0, UINT32_MAX, Attributes::CurrentArea::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "estimated-end-time", 0, UINT32_MAX, Attributes::EstimatedEndTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "progress", Attributes::Progress::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-areas", Attributes::SupportedAreas::Id, credsIssuerConfig), // make_unique(Id, "supported-maps", Attributes::SupportedMaps::Id, credsIssuerConfig), // make_unique(Id, "selected-areas", Attributes::SelectedAreas::Id, credsIssuerConfig), // make_unique(Id, "current-area", Attributes::CurrentArea::Id, credsIssuerConfig), // make_unique(Id, "estimated-end-time", Attributes::EstimatedEndTime::Id, credsIssuerConfig), // make_unique(Id, "progress", Attributes::Progress::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterPumpConfigurationAndControl(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::PumpConfigurationAndControl; const char * clusterName = "PumpConfigurationAndControl"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "max-pressure", Attributes::MaxPressure::Id, credsIssuerConfig), // make_unique(Id, "max-speed", Attributes::MaxSpeed::Id, credsIssuerConfig), // make_unique(Id, "max-flow", Attributes::MaxFlow::Id, credsIssuerConfig), // make_unique(Id, "min-const-pressure", Attributes::MinConstPressure::Id, credsIssuerConfig), // make_unique(Id, "max-const-pressure", Attributes::MaxConstPressure::Id, credsIssuerConfig), // make_unique(Id, "min-comp-pressure", Attributes::MinCompPressure::Id, credsIssuerConfig), // make_unique(Id, "max-comp-pressure", Attributes::MaxCompPressure::Id, credsIssuerConfig), // make_unique(Id, "min-const-speed", Attributes::MinConstSpeed::Id, credsIssuerConfig), // make_unique(Id, "max-const-speed", Attributes::MaxConstSpeed::Id, credsIssuerConfig), // make_unique(Id, "min-const-flow", Attributes::MinConstFlow::Id, credsIssuerConfig), // make_unique(Id, "max-const-flow", Attributes::MaxConstFlow::Id, credsIssuerConfig), // make_unique(Id, "min-const-temp", Attributes::MinConstTemp::Id, credsIssuerConfig), // make_unique(Id, "max-const-temp", Attributes::MaxConstTemp::Id, credsIssuerConfig), // make_unique(Id, "pump-status", Attributes::PumpStatus::Id, credsIssuerConfig), // make_unique(Id, "effective-operation-mode", Attributes::EffectiveOperationMode::Id, credsIssuerConfig), // make_unique(Id, "effective-control-mode", Attributes::EffectiveControlMode::Id, credsIssuerConfig), // make_unique(Id, "capacity", Attributes::Capacity::Id, credsIssuerConfig), // make_unique(Id, "speed", Attributes::Speed::Id, credsIssuerConfig), // make_unique(Id, "lifetime-running-hours", Attributes::LifetimeRunningHours::Id, credsIssuerConfig), // make_unique(Id, "power", Attributes::Power::Id, credsIssuerConfig), // make_unique(Id, "lifetime-energy-consumed", Attributes::LifetimeEnergyConsumed::Id, credsIssuerConfig), // make_unique(Id, "operation-mode", Attributes::OperationMode::Id, credsIssuerConfig), // make_unique(Id, "control-mode", Attributes::ControlMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>(Id, "max-pressure", INT16_MIN, INT16_MAX, Attributes::MaxPressure::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "max-speed", 0, UINT16_MAX, Attributes::MaxSpeed::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "max-flow", 0, UINT16_MAX, Attributes::MaxFlow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "min-const-pressure", INT16_MIN, INT16_MAX, Attributes::MinConstPressure::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "max-const-pressure", INT16_MIN, INT16_MAX, Attributes::MaxConstPressure::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "min-comp-pressure", INT16_MIN, INT16_MAX, Attributes::MinCompPressure::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "max-comp-pressure", INT16_MIN, INT16_MAX, Attributes::MaxCompPressure::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "min-const-speed", 0, UINT16_MAX, Attributes::MinConstSpeed::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "max-const-speed", 0, UINT16_MAX, Attributes::MaxConstSpeed::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "min-const-flow", 0, UINT16_MAX, Attributes::MinConstFlow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "max-const-flow", 0, UINT16_MAX, Attributes::MaxConstFlow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "min-const-temp", INT16_MIN, INT16_MAX, Attributes::MinConstTemp::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "max-const-temp", INT16_MIN, INT16_MAX, Attributes::MaxConstTemp::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "pump-status", 0, UINT16_MAX, Attributes::PumpStatus::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "effective-operation-mode", 0, UINT8_MAX, Attributes::EffectiveOperationMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "effective-control-mode", 0, UINT8_MAX, Attributes::EffectiveControlMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "capacity", INT16_MIN, INT16_MAX, Attributes::Capacity::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "speed", 0, UINT16_MAX, Attributes::Speed::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "lifetime-running-hours", 0, UINT32_MAX, Attributes::LifetimeRunningHours::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "power", 0, UINT32_MAX, Attributes::Power::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "lifetime-energy-consumed", 0, UINT32_MAX, Attributes::LifetimeEnergyConsumed::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "operation-mode", 0, UINT8_MAX, Attributes::OperationMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "control-mode", 0, UINT8_MAX, Attributes::ControlMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "max-pressure", Attributes::MaxPressure::Id, credsIssuerConfig), // make_unique(Id, "max-speed", Attributes::MaxSpeed::Id, credsIssuerConfig), // make_unique(Id, "max-flow", Attributes::MaxFlow::Id, credsIssuerConfig), // make_unique(Id, "min-const-pressure", Attributes::MinConstPressure::Id, credsIssuerConfig), // make_unique(Id, "max-const-pressure", Attributes::MaxConstPressure::Id, credsIssuerConfig), // make_unique(Id, "min-comp-pressure", Attributes::MinCompPressure::Id, credsIssuerConfig), // make_unique(Id, "max-comp-pressure", Attributes::MaxCompPressure::Id, credsIssuerConfig), // make_unique(Id, "min-const-speed", Attributes::MinConstSpeed::Id, credsIssuerConfig), // make_unique(Id, "max-const-speed", Attributes::MaxConstSpeed::Id, credsIssuerConfig), // make_unique(Id, "min-const-flow", Attributes::MinConstFlow::Id, credsIssuerConfig), // make_unique(Id, "max-const-flow", Attributes::MaxConstFlow::Id, credsIssuerConfig), // make_unique(Id, "min-const-temp", Attributes::MinConstTemp::Id, credsIssuerConfig), // make_unique(Id, "max-const-temp", Attributes::MaxConstTemp::Id, credsIssuerConfig), // make_unique(Id, "pump-status", Attributes::PumpStatus::Id, credsIssuerConfig), // make_unique(Id, "effective-operation-mode", Attributes::EffectiveOperationMode::Id, credsIssuerConfig), // make_unique(Id, "effective-control-mode", Attributes::EffectiveControlMode::Id, credsIssuerConfig), // make_unique(Id, "capacity", Attributes::Capacity::Id, credsIssuerConfig), // make_unique(Id, "speed", Attributes::Speed::Id, credsIssuerConfig), // make_unique(Id, "lifetime-running-hours", Attributes::LifetimeRunningHours::Id, credsIssuerConfig), // make_unique(Id, "power", Attributes::Power::Id, credsIssuerConfig), // make_unique(Id, "lifetime-energy-consumed", Attributes::LifetimeEnergyConsumed::Id, credsIssuerConfig), // make_unique(Id, "operation-mode", Attributes::OperationMode::Id, credsIssuerConfig), // make_unique(Id, "control-mode", Attributes::ControlMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supply-voltage-low", Events::SupplyVoltageLow::Id, credsIssuerConfig), // make_unique(Id, "supply-voltage-high", Events::SupplyVoltageHigh::Id, credsIssuerConfig), // make_unique(Id, "power-missing-phase", Events::PowerMissingPhase::Id, credsIssuerConfig), // make_unique(Id, "system-pressure-low", Events::SystemPressureLow::Id, credsIssuerConfig), // make_unique(Id, "system-pressure-high", Events::SystemPressureHigh::Id, credsIssuerConfig), // make_unique(Id, "dry-running", Events::DryRunning::Id, credsIssuerConfig), // make_unique(Id, "motor-temperature-high", Events::MotorTemperatureHigh::Id, credsIssuerConfig), // make_unique(Id, "pump-motor-fatal-failure", Events::PumpMotorFatalFailure::Id, credsIssuerConfig), // make_unique(Id, "electronic-temperature-high", Events::ElectronicTemperatureHigh::Id, credsIssuerConfig), // make_unique(Id, "pump-blocked", Events::PumpBlocked::Id, credsIssuerConfig), // make_unique(Id, "sensor-failure", Events::SensorFailure::Id, credsIssuerConfig), // make_unique(Id, "electronic-non-fatal-failure", Events::ElectronicNonFatalFailure::Id, credsIssuerConfig), // make_unique(Id, "electronic-fatal-failure", Events::ElectronicFatalFailure::Id, credsIssuerConfig), // make_unique(Id, "general-fault", Events::GeneralFault::Id, credsIssuerConfig), // make_unique(Id, "leakage", Events::Leakage::Id, credsIssuerConfig), // make_unique(Id, "air-detection", Events::AirDetection::Id, credsIssuerConfig), // make_unique(Id, "turbine-operation", Events::TurbineOperation::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supply-voltage-low", Events::SupplyVoltageLow::Id, credsIssuerConfig), // make_unique(Id, "supply-voltage-high", Events::SupplyVoltageHigh::Id, credsIssuerConfig), // make_unique(Id, "power-missing-phase", Events::PowerMissingPhase::Id, credsIssuerConfig), // make_unique(Id, "system-pressure-low", Events::SystemPressureLow::Id, credsIssuerConfig), // make_unique(Id, "system-pressure-high", Events::SystemPressureHigh::Id, credsIssuerConfig), // make_unique(Id, "dry-running", Events::DryRunning::Id, credsIssuerConfig), // make_unique(Id, "motor-temperature-high", Events::MotorTemperatureHigh::Id, credsIssuerConfig), // make_unique(Id, "pump-motor-fatal-failure", Events::PumpMotorFatalFailure::Id, credsIssuerConfig), // make_unique(Id, "electronic-temperature-high", Events::ElectronicTemperatureHigh::Id, credsIssuerConfig), // make_unique(Id, "pump-blocked", Events::PumpBlocked::Id, credsIssuerConfig), // make_unique(Id, "sensor-failure", Events::SensorFailure::Id, credsIssuerConfig), // make_unique(Id, "electronic-non-fatal-failure", Events::ElectronicNonFatalFailure::Id, credsIssuerConfig), // make_unique(Id, "electronic-fatal-failure", Events::ElectronicFatalFailure::Id, credsIssuerConfig), // make_unique(Id, "general-fault", Events::GeneralFault::Id, credsIssuerConfig), // make_unique(Id, "leakage", Events::Leakage::Id, credsIssuerConfig), // make_unique(Id, "air-detection", Events::AirDetection::Id, credsIssuerConfig), // make_unique(Id, "turbine-operation", Events::TurbineOperation::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterThermostat(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::Thermostat; const char * clusterName = "Thermostat"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "local-temperature", Attributes::LocalTemperature::Id, credsIssuerConfig), // make_unique(Id, "outdoor-temperature", Attributes::OutdoorTemperature::Id, credsIssuerConfig), // make_unique(Id, "occupancy", Attributes::Occupancy::Id, credsIssuerConfig), // make_unique(Id, "abs-min-heat-setpoint-limit", Attributes::AbsMinHeatSetpointLimit::Id, credsIssuerConfig), // make_unique(Id, "abs-max-heat-setpoint-limit", Attributes::AbsMaxHeatSetpointLimit::Id, credsIssuerConfig), // make_unique(Id, "abs-min-cool-setpoint-limit", Attributes::AbsMinCoolSetpointLimit::Id, credsIssuerConfig), // make_unique(Id, "abs-max-cool-setpoint-limit", Attributes::AbsMaxCoolSetpointLimit::Id, credsIssuerConfig), // make_unique(Id, "picooling-demand", Attributes::PICoolingDemand::Id, credsIssuerConfig), // make_unique(Id, "piheating-demand", Attributes::PIHeatingDemand::Id, credsIssuerConfig), // make_unique(Id, "hvacsystem-type-configuration", Attributes::HVACSystemTypeConfiguration::Id, credsIssuerConfig), // make_unique(Id, "local-temperature-calibration", Attributes::LocalTemperatureCalibration::Id, credsIssuerConfig), // make_unique(Id, "occupied-cooling-setpoint", Attributes::OccupiedCoolingSetpoint::Id, credsIssuerConfig), // make_unique(Id, "occupied-heating-setpoint", Attributes::OccupiedHeatingSetpoint::Id, credsIssuerConfig), // make_unique(Id, "unoccupied-cooling-setpoint", Attributes::UnoccupiedCoolingSetpoint::Id, credsIssuerConfig), // make_unique(Id, "unoccupied-heating-setpoint", Attributes::UnoccupiedHeatingSetpoint::Id, credsIssuerConfig), // make_unique(Id, "min-heat-setpoint-limit", Attributes::MinHeatSetpointLimit::Id, credsIssuerConfig), // make_unique(Id, "max-heat-setpoint-limit", Attributes::MaxHeatSetpointLimit::Id, credsIssuerConfig), // make_unique(Id, "min-cool-setpoint-limit", Attributes::MinCoolSetpointLimit::Id, credsIssuerConfig), // make_unique(Id, "max-cool-setpoint-limit", Attributes::MaxCoolSetpointLimit::Id, credsIssuerConfig), // make_unique(Id, "min-setpoint-dead-band", Attributes::MinSetpointDeadBand::Id, credsIssuerConfig), // make_unique(Id, "remote-sensing", Attributes::RemoteSensing::Id, credsIssuerConfig), // make_unique(Id, "control-sequence-of-operation", Attributes::ControlSequenceOfOperation::Id, credsIssuerConfig), // make_unique(Id, "system-mode", Attributes::SystemMode::Id, credsIssuerConfig), // make_unique(Id, "thermostat-running-mode", Attributes::ThermostatRunningMode::Id, credsIssuerConfig), // make_unique(Id, "start-of-week", Attributes::StartOfWeek::Id, credsIssuerConfig), // make_unique(Id, "number-of-weekly-transitions", Attributes::NumberOfWeeklyTransitions::Id, credsIssuerConfig), // make_unique(Id, "number-of-daily-transitions", Attributes::NumberOfDailyTransitions::Id, credsIssuerConfig), // make_unique(Id, "temperature-setpoint-hold", Attributes::TemperatureSetpointHold::Id, credsIssuerConfig), // make_unique(Id, "temperature-setpoint-hold-duration", Attributes::TemperatureSetpointHoldDuration::Id, credsIssuerConfig), // make_unique(Id, "thermostat-programming-operation-mode", Attributes::ThermostatProgrammingOperationMode::Id, credsIssuerConfig), // make_unique(Id, "thermostat-running-state", Attributes::ThermostatRunningState::Id, credsIssuerConfig), // make_unique(Id, "setpoint-change-source", Attributes::SetpointChangeSource::Id, credsIssuerConfig), // make_unique(Id, "setpoint-change-amount", Attributes::SetpointChangeAmount::Id, credsIssuerConfig), // make_unique(Id, "setpoint-change-source-timestamp", Attributes::SetpointChangeSourceTimestamp::Id, credsIssuerConfig), // make_unique(Id, "occupied-setback", Attributes::OccupiedSetback::Id, credsIssuerConfig), // make_unique(Id, "occupied-setback-min", Attributes::OccupiedSetbackMin::Id, credsIssuerConfig), // make_unique(Id, "occupied-setback-max", Attributes::OccupiedSetbackMax::Id, credsIssuerConfig), // make_unique(Id, "unoccupied-setback", Attributes::UnoccupiedSetback::Id, credsIssuerConfig), // make_unique(Id, "unoccupied-setback-min", Attributes::UnoccupiedSetbackMin::Id, credsIssuerConfig), // make_unique(Id, "unoccupied-setback-max", Attributes::UnoccupiedSetbackMax::Id, credsIssuerConfig), // make_unique(Id, "emergency-heat-delta", Attributes::EmergencyHeatDelta::Id, credsIssuerConfig), // make_unique(Id, "actype", Attributes::ACType::Id, credsIssuerConfig), // make_unique(Id, "accapacity", Attributes::ACCapacity::Id, credsIssuerConfig), // make_unique(Id, "acrefrigerant-type", Attributes::ACRefrigerantType::Id, credsIssuerConfig), // make_unique(Id, "accompressor-type", Attributes::ACCompressorType::Id, credsIssuerConfig), // make_unique(Id, "acerror-code", Attributes::ACErrorCode::Id, credsIssuerConfig), // make_unique(Id, "aclouver-position", Attributes::ACLouverPosition::Id, credsIssuerConfig), // make_unique(Id, "accoil-temperature", Attributes::ACCoilTemperature::Id, credsIssuerConfig), // make_unique(Id, "accapacityformat", Attributes::ACCapacityformat::Id, credsIssuerConfig), // make_unique(Id, "preset-types", Attributes::PresetTypes::Id, credsIssuerConfig), // make_unique(Id, "schedule-types", Attributes::ScheduleTypes::Id, credsIssuerConfig), // make_unique(Id, "number-of-presets", Attributes::NumberOfPresets::Id, credsIssuerConfig), // make_unique(Id, "number-of-schedules", Attributes::NumberOfSchedules::Id, credsIssuerConfig), // make_unique(Id, "number-of-schedule-transitions", Attributes::NumberOfScheduleTransitions::Id, credsIssuerConfig), // make_unique(Id, "number-of-schedule-transition-per-day", Attributes::NumberOfScheduleTransitionPerDay::Id, credsIssuerConfig), // make_unique(Id, "active-preset-handle", Attributes::ActivePresetHandle::Id, credsIssuerConfig), // make_unique(Id, "active-schedule-handle", Attributes::ActiveScheduleHandle::Id, credsIssuerConfig), // make_unique(Id, "presets", Attributes::Presets::Id, credsIssuerConfig), // make_unique(Id, "schedules", Attributes::Schedules::Id, credsIssuerConfig), // make_unique(Id, "setpoint-hold-expiry-timestamp", Attributes::SetpointHoldExpiryTimestamp::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>(Id, "local-temperature", INT16_MIN, INT16_MAX, Attributes::LocalTemperature::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "outdoor-temperature", INT16_MIN, INT16_MAX, Attributes::OutdoorTemperature::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "occupancy", 0, UINT8_MAX, Attributes::Occupancy::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "abs-min-heat-setpoint-limit", INT16_MIN, INT16_MAX, Attributes::AbsMinHeatSetpointLimit::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "abs-max-heat-setpoint-limit", INT16_MIN, INT16_MAX, Attributes::AbsMaxHeatSetpointLimit::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "abs-min-cool-setpoint-limit", INT16_MIN, INT16_MAX, Attributes::AbsMinCoolSetpointLimit::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "abs-max-cool-setpoint-limit", INT16_MIN, INT16_MAX, Attributes::AbsMaxCoolSetpointLimit::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "picooling-demand", 0, UINT8_MAX, Attributes::PICoolingDemand::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "piheating-demand", 0, UINT8_MAX, Attributes::PIHeatingDemand::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "hvacsystem-type-configuration", 0, UINT8_MAX, Attributes::HVACSystemTypeConfiguration::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "local-temperature-calibration", INT8_MIN, INT8_MAX, Attributes::LocalTemperatureCalibration::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "occupied-cooling-setpoint", INT16_MIN, INT16_MAX, Attributes::OccupiedCoolingSetpoint::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "occupied-heating-setpoint", INT16_MIN, INT16_MAX, Attributes::OccupiedHeatingSetpoint::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "unoccupied-cooling-setpoint", INT16_MIN, INT16_MAX, Attributes::UnoccupiedCoolingSetpoint::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "unoccupied-heating-setpoint", INT16_MIN, INT16_MAX, Attributes::UnoccupiedHeatingSetpoint::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "min-heat-setpoint-limit", INT16_MIN, INT16_MAX, Attributes::MinHeatSetpointLimit::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "max-heat-setpoint-limit", INT16_MIN, INT16_MAX, Attributes::MaxHeatSetpointLimit::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "min-cool-setpoint-limit", INT16_MIN, INT16_MAX, Attributes::MinCoolSetpointLimit::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "max-cool-setpoint-limit", INT16_MIN, INT16_MAX, Attributes::MaxCoolSetpointLimit::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "min-setpoint-dead-band", INT8_MIN, INT8_MAX, Attributes::MinSetpointDeadBand::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "remote-sensing", 0, UINT8_MAX, Attributes::RemoteSensing::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "control-sequence-of-operation", 0, UINT8_MAX, Attributes::ControlSequenceOfOperation::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "system-mode", 0, UINT8_MAX, Attributes::SystemMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "thermostat-running-mode", 0, UINT8_MAX, Attributes::ThermostatRunningMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "start-of-week", 0, UINT8_MAX, Attributes::StartOfWeek::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-weekly-transitions", 0, UINT8_MAX, Attributes::NumberOfWeeklyTransitions::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-daily-transitions", 0, UINT8_MAX, Attributes::NumberOfDailyTransitions::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "temperature-setpoint-hold", 0, UINT8_MAX, Attributes::TemperatureSetpointHold::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "temperature-setpoint-hold-duration", 0, UINT16_MAX, Attributes::TemperatureSetpointHoldDuration::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "thermostat-programming-operation-mode", 0, UINT8_MAX, Attributes::ThermostatProgrammingOperationMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "thermostat-running-state", 0, UINT16_MAX, Attributes::ThermostatRunningState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "setpoint-change-source", 0, UINT8_MAX, Attributes::SetpointChangeSource::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "setpoint-change-amount", INT16_MIN, INT16_MAX, Attributes::SetpointChangeAmount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "setpoint-change-source-timestamp", 0, UINT32_MAX, Attributes::SetpointChangeSourceTimestamp::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "occupied-setback", 0, UINT8_MAX, Attributes::OccupiedSetback::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "occupied-setback-min", 0, UINT8_MAX, Attributes::OccupiedSetbackMin::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "occupied-setback-max", 0, UINT8_MAX, Attributes::OccupiedSetbackMax::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "unoccupied-setback", 0, UINT8_MAX, Attributes::UnoccupiedSetback::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "unoccupied-setback-min", 0, UINT8_MAX, Attributes::UnoccupiedSetbackMin::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "unoccupied-setback-max", 0, UINT8_MAX, Attributes::UnoccupiedSetbackMax::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "emergency-heat-delta", 0, UINT8_MAX, Attributes::EmergencyHeatDelta::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "actype", 0, UINT8_MAX, Attributes::ACType::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "accapacity", 0, UINT16_MAX, Attributes::ACCapacity::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "acrefrigerant-type", 0, UINT8_MAX, Attributes::ACRefrigerantType::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "accompressor-type", 0, UINT8_MAX, Attributes::ACCompressorType::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "acerror-code", 0, UINT32_MAX, Attributes::ACErrorCode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "aclouver-position", 0, UINT8_MAX, Attributes::ACLouverPosition::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "accoil-temperature", INT16_MIN, INT16_MAX, Attributes::ACCoilTemperature::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "accapacityformat", 0, UINT8_MAX, Attributes::ACCapacityformat::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "preset-types", Attributes::PresetTypes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "schedule-types", Attributes::ScheduleTypes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-presets", 0, UINT8_MAX, Attributes::NumberOfPresets::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-schedules", 0, UINT8_MAX, Attributes::NumberOfSchedules::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-schedule-transitions", 0, UINT8_MAX, Attributes::NumberOfScheduleTransitions::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "number-of-schedule-transition-per-day", 0, UINT8_MAX, Attributes::NumberOfScheduleTransitionPerDay::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "active-preset-handle", Attributes::ActivePresetHandle::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "active-schedule-handle", Attributes::ActiveScheduleHandle::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "presets", Attributes::Presets::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "schedules", Attributes::Schedules::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "setpoint-hold-expiry-timestamp", 0, UINT32_MAX, Attributes::SetpointHoldExpiryTimestamp::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "local-temperature", Attributes::LocalTemperature::Id, credsIssuerConfig), // make_unique(Id, "outdoor-temperature", Attributes::OutdoorTemperature::Id, credsIssuerConfig), // make_unique(Id, "occupancy", Attributes::Occupancy::Id, credsIssuerConfig), // make_unique(Id, "abs-min-heat-setpoint-limit", Attributes::AbsMinHeatSetpointLimit::Id, credsIssuerConfig), // make_unique(Id, "abs-max-heat-setpoint-limit", Attributes::AbsMaxHeatSetpointLimit::Id, credsIssuerConfig), // make_unique(Id, "abs-min-cool-setpoint-limit", Attributes::AbsMinCoolSetpointLimit::Id, credsIssuerConfig), // make_unique(Id, "abs-max-cool-setpoint-limit", Attributes::AbsMaxCoolSetpointLimit::Id, credsIssuerConfig), // make_unique(Id, "picooling-demand", Attributes::PICoolingDemand::Id, credsIssuerConfig), // make_unique(Id, "piheating-demand", Attributes::PIHeatingDemand::Id, credsIssuerConfig), // make_unique(Id, "hvacsystem-type-configuration", Attributes::HVACSystemTypeConfiguration::Id, credsIssuerConfig), // make_unique(Id, "local-temperature-calibration", Attributes::LocalTemperatureCalibration::Id, credsIssuerConfig), // make_unique(Id, "occupied-cooling-setpoint", Attributes::OccupiedCoolingSetpoint::Id, credsIssuerConfig), // make_unique(Id, "occupied-heating-setpoint", Attributes::OccupiedHeatingSetpoint::Id, credsIssuerConfig), // make_unique(Id, "unoccupied-cooling-setpoint", Attributes::UnoccupiedCoolingSetpoint::Id, credsIssuerConfig), // make_unique(Id, "unoccupied-heating-setpoint", Attributes::UnoccupiedHeatingSetpoint::Id, credsIssuerConfig), // make_unique(Id, "min-heat-setpoint-limit", Attributes::MinHeatSetpointLimit::Id, credsIssuerConfig), // make_unique(Id, "max-heat-setpoint-limit", Attributes::MaxHeatSetpointLimit::Id, credsIssuerConfig), // make_unique(Id, "min-cool-setpoint-limit", Attributes::MinCoolSetpointLimit::Id, credsIssuerConfig), // make_unique(Id, "max-cool-setpoint-limit", Attributes::MaxCoolSetpointLimit::Id, credsIssuerConfig), // make_unique(Id, "min-setpoint-dead-band", Attributes::MinSetpointDeadBand::Id, credsIssuerConfig), // make_unique(Id, "remote-sensing", Attributes::RemoteSensing::Id, credsIssuerConfig), // make_unique(Id, "control-sequence-of-operation", Attributes::ControlSequenceOfOperation::Id, credsIssuerConfig), // make_unique(Id, "system-mode", Attributes::SystemMode::Id, credsIssuerConfig), // make_unique(Id, "thermostat-running-mode", Attributes::ThermostatRunningMode::Id, credsIssuerConfig), // make_unique(Id, "start-of-week", Attributes::StartOfWeek::Id, credsIssuerConfig), // make_unique(Id, "number-of-weekly-transitions", Attributes::NumberOfWeeklyTransitions::Id, credsIssuerConfig), // make_unique(Id, "number-of-daily-transitions", Attributes::NumberOfDailyTransitions::Id, credsIssuerConfig), // make_unique(Id, "temperature-setpoint-hold", Attributes::TemperatureSetpointHold::Id, credsIssuerConfig), // make_unique(Id, "temperature-setpoint-hold-duration", Attributes::TemperatureSetpointHoldDuration::Id, credsIssuerConfig), // make_unique(Id, "thermostat-programming-operation-mode", Attributes::ThermostatProgrammingOperationMode::Id, credsIssuerConfig), // make_unique(Id, "thermostat-running-state", Attributes::ThermostatRunningState::Id, credsIssuerConfig), // make_unique(Id, "setpoint-change-source", Attributes::SetpointChangeSource::Id, credsIssuerConfig), // make_unique(Id, "setpoint-change-amount", Attributes::SetpointChangeAmount::Id, credsIssuerConfig), // make_unique(Id, "setpoint-change-source-timestamp", Attributes::SetpointChangeSourceTimestamp::Id, credsIssuerConfig), // make_unique(Id, "occupied-setback", Attributes::OccupiedSetback::Id, credsIssuerConfig), // make_unique(Id, "occupied-setback-min", Attributes::OccupiedSetbackMin::Id, credsIssuerConfig), // make_unique(Id, "occupied-setback-max", Attributes::OccupiedSetbackMax::Id, credsIssuerConfig), // make_unique(Id, "unoccupied-setback", Attributes::UnoccupiedSetback::Id, credsIssuerConfig), // make_unique(Id, "unoccupied-setback-min", Attributes::UnoccupiedSetbackMin::Id, credsIssuerConfig), // make_unique(Id, "unoccupied-setback-max", Attributes::UnoccupiedSetbackMax::Id, credsIssuerConfig), // make_unique(Id, "emergency-heat-delta", Attributes::EmergencyHeatDelta::Id, credsIssuerConfig), // make_unique(Id, "actype", Attributes::ACType::Id, credsIssuerConfig), // make_unique(Id, "accapacity", Attributes::ACCapacity::Id, credsIssuerConfig), // make_unique(Id, "acrefrigerant-type", Attributes::ACRefrigerantType::Id, credsIssuerConfig), // make_unique(Id, "accompressor-type", Attributes::ACCompressorType::Id, credsIssuerConfig), // make_unique(Id, "acerror-code", Attributes::ACErrorCode::Id, credsIssuerConfig), // make_unique(Id, "aclouver-position", Attributes::ACLouverPosition::Id, credsIssuerConfig), // make_unique(Id, "accoil-temperature", Attributes::ACCoilTemperature::Id, credsIssuerConfig), // make_unique(Id, "accapacityformat", Attributes::ACCapacityformat::Id, credsIssuerConfig), // make_unique(Id, "preset-types", Attributes::PresetTypes::Id, credsIssuerConfig), // make_unique(Id, "schedule-types", Attributes::ScheduleTypes::Id, credsIssuerConfig), // make_unique(Id, "number-of-presets", Attributes::NumberOfPresets::Id, credsIssuerConfig), // make_unique(Id, "number-of-schedules", Attributes::NumberOfSchedules::Id, credsIssuerConfig), // make_unique(Id, "number-of-schedule-transitions", Attributes::NumberOfScheduleTransitions::Id, credsIssuerConfig), // make_unique(Id, "number-of-schedule-transition-per-day", Attributes::NumberOfScheduleTransitionPerDay::Id, credsIssuerConfig), // make_unique(Id, "active-preset-handle", Attributes::ActivePresetHandle::Id, credsIssuerConfig), // make_unique(Id, "active-schedule-handle", Attributes::ActiveScheduleHandle::Id, credsIssuerConfig), // make_unique(Id, "presets", Attributes::Presets::Id, credsIssuerConfig), // make_unique(Id, "schedules", Attributes::Schedules::Id, credsIssuerConfig), // make_unique(Id, "setpoint-hold-expiry-timestamp", Attributes::SetpointHoldExpiryTimestamp::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterFanControl(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::FanControl; const char * clusterName = "FanControl"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "fan-mode", Attributes::FanMode::Id, credsIssuerConfig), // make_unique(Id, "fan-mode-sequence", Attributes::FanModeSequence::Id, credsIssuerConfig), // make_unique(Id, "percent-setting", Attributes::PercentSetting::Id, credsIssuerConfig), // make_unique(Id, "percent-current", Attributes::PercentCurrent::Id, credsIssuerConfig), // make_unique(Id, "speed-max", Attributes::SpeedMax::Id, credsIssuerConfig), // make_unique(Id, "speed-setting", Attributes::SpeedSetting::Id, credsIssuerConfig), // make_unique(Id, "speed-current", Attributes::SpeedCurrent::Id, credsIssuerConfig), // make_unique(Id, "rock-support", Attributes::RockSupport::Id, credsIssuerConfig), // make_unique(Id, "rock-setting", Attributes::RockSetting::Id, credsIssuerConfig), // make_unique(Id, "wind-support", Attributes::WindSupport::Id, credsIssuerConfig), // make_unique(Id, "wind-setting", Attributes::WindSetting::Id, credsIssuerConfig), // make_unique(Id, "airflow-direction", Attributes::AirflowDirection::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>( Id, "fan-mode", 0, UINT8_MAX, Attributes::FanMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "fan-mode-sequence", 0, UINT8_MAX, Attributes::FanModeSequence::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "percent-setting", 0, UINT8_MAX, Attributes::PercentSetting::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "percent-current", 0, UINT8_MAX, Attributes::PercentCurrent::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "speed-max", 0, UINT8_MAX, Attributes::SpeedMax::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "speed-setting", 0, UINT8_MAX, Attributes::SpeedSetting::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "speed-current", 0, UINT8_MAX, Attributes::SpeedCurrent::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "rock-support", 0, UINT8_MAX, Attributes::RockSupport::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "rock-setting", 0, UINT8_MAX, Attributes::RockSetting::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "wind-support", 0, UINT8_MAX, Attributes::WindSupport::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "wind-setting", 0, UINT8_MAX, Attributes::WindSetting::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "airflow-direction", 0, UINT8_MAX, Attributes::AirflowDirection::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "fan-mode", Attributes::FanMode::Id, credsIssuerConfig), // make_unique(Id, "fan-mode-sequence", Attributes::FanModeSequence::Id, credsIssuerConfig), // make_unique(Id, "percent-setting", Attributes::PercentSetting::Id, credsIssuerConfig), // make_unique(Id, "percent-current", Attributes::PercentCurrent::Id, credsIssuerConfig), // make_unique(Id, "speed-max", Attributes::SpeedMax::Id, credsIssuerConfig), // make_unique(Id, "speed-setting", Attributes::SpeedSetting::Id, credsIssuerConfig), // make_unique(Id, "speed-current", Attributes::SpeedCurrent::Id, credsIssuerConfig), // make_unique(Id, "rock-support", Attributes::RockSupport::Id, credsIssuerConfig), // make_unique(Id, "rock-setting", Attributes::RockSetting::Id, credsIssuerConfig), // make_unique(Id, "wind-support", Attributes::WindSupport::Id, credsIssuerConfig), // make_unique(Id, "wind-setting", Attributes::WindSetting::Id, credsIssuerConfig), // make_unique(Id, "airflow-direction", Attributes::AirflowDirection::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterThermostatUserInterfaceConfiguration(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ThermostatUserInterfaceConfiguration; const char * clusterName = "ThermostatUserInterfaceConfiguration"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "temperature-display-mode", Attributes::TemperatureDisplayMode::Id, credsIssuerConfig), // make_unique(Id, "keypad-lockout", Attributes::KeypadLockout::Id, credsIssuerConfig), // make_unique(Id, "schedule-programming-visibility", Attributes::ScheduleProgrammingVisibility::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>( Id, "temperature-display-mode", 0, UINT8_MAX, Attributes::TemperatureDisplayMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "keypad-lockout", 0, UINT8_MAX, Attributes::KeypadLockout::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "schedule-programming-visibility", 0, UINT8_MAX, Attributes::ScheduleProgrammingVisibility::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "temperature-display-mode", Attributes::TemperatureDisplayMode::Id, credsIssuerConfig), // make_unique(Id, "keypad-lockout", Attributes::KeypadLockout::Id, credsIssuerConfig), // make_unique(Id, "schedule-programming-visibility", Attributes::ScheduleProgrammingVisibility::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterColorControl(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ColorControl; const char * clusterName = "ColorControl"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "current-hue", Attributes::CurrentHue::Id, credsIssuerConfig), // make_unique(Id, "current-saturation", Attributes::CurrentSaturation::Id, credsIssuerConfig), // make_unique(Id, "remaining-time", Attributes::RemainingTime::Id, credsIssuerConfig), // make_unique(Id, "current-x", Attributes::CurrentX::Id, credsIssuerConfig), // make_unique(Id, "current-y", Attributes::CurrentY::Id, credsIssuerConfig), // make_unique(Id, "drift-compensation", Attributes::DriftCompensation::Id, credsIssuerConfig), // make_unique(Id, "compensation-text", Attributes::CompensationText::Id, credsIssuerConfig), // make_unique(Id, "color-temperature-mireds", Attributes::ColorTemperatureMireds::Id, credsIssuerConfig), // make_unique(Id, "color-mode", Attributes::ColorMode::Id, credsIssuerConfig), // make_unique(Id, "options", Attributes::Options::Id, credsIssuerConfig), // make_unique(Id, "number-of-primaries", Attributes::NumberOfPrimaries::Id, credsIssuerConfig), // make_unique(Id, "primary1x", Attributes::Primary1X::Id, credsIssuerConfig), // make_unique(Id, "primary1y", Attributes::Primary1Y::Id, credsIssuerConfig), // make_unique(Id, "primary1intensity", Attributes::Primary1Intensity::Id, credsIssuerConfig), // make_unique(Id, "primary2x", Attributes::Primary2X::Id, credsIssuerConfig), // make_unique(Id, "primary2y", Attributes::Primary2Y::Id, credsIssuerConfig), // make_unique(Id, "primary2intensity", Attributes::Primary2Intensity::Id, credsIssuerConfig), // make_unique(Id, "primary3x", Attributes::Primary3X::Id, credsIssuerConfig), // make_unique(Id, "primary3y", Attributes::Primary3Y::Id, credsIssuerConfig), // make_unique(Id, "primary3intensity", Attributes::Primary3Intensity::Id, credsIssuerConfig), // make_unique(Id, "primary4x", Attributes::Primary4X::Id, credsIssuerConfig), // make_unique(Id, "primary4y", Attributes::Primary4Y::Id, credsIssuerConfig), // make_unique(Id, "primary4intensity", Attributes::Primary4Intensity::Id, credsIssuerConfig), // make_unique(Id, "primary5x", Attributes::Primary5X::Id, credsIssuerConfig), // make_unique(Id, "primary5y", Attributes::Primary5Y::Id, credsIssuerConfig), // make_unique(Id, "primary5intensity", Attributes::Primary5Intensity::Id, credsIssuerConfig), // make_unique(Id, "primary6x", Attributes::Primary6X::Id, credsIssuerConfig), // make_unique(Id, "primary6y", Attributes::Primary6Y::Id, credsIssuerConfig), // make_unique(Id, "primary6intensity", Attributes::Primary6Intensity::Id, credsIssuerConfig), // make_unique(Id, "white-point-x", Attributes::WhitePointX::Id, credsIssuerConfig), // make_unique(Id, "white-point-y", Attributes::WhitePointY::Id, credsIssuerConfig), // make_unique(Id, "color-point-rx", Attributes::ColorPointRX::Id, credsIssuerConfig), // make_unique(Id, "color-point-ry", Attributes::ColorPointRY::Id, credsIssuerConfig), // make_unique(Id, "color-point-rintensity", Attributes::ColorPointRIntensity::Id, credsIssuerConfig), // make_unique(Id, "color-point-gx", Attributes::ColorPointGX::Id, credsIssuerConfig), // make_unique(Id, "color-point-gy", Attributes::ColorPointGY::Id, credsIssuerConfig), // make_unique(Id, "color-point-gintensity", Attributes::ColorPointGIntensity::Id, credsIssuerConfig), // make_unique(Id, "color-point-bx", Attributes::ColorPointBX::Id, credsIssuerConfig), // make_unique(Id, "color-point-by", Attributes::ColorPointBY::Id, credsIssuerConfig), // make_unique(Id, "color-point-bintensity", Attributes::ColorPointBIntensity::Id, credsIssuerConfig), // make_unique(Id, "enhanced-current-hue", Attributes::EnhancedCurrentHue::Id, credsIssuerConfig), // make_unique(Id, "enhanced-color-mode", Attributes::EnhancedColorMode::Id, credsIssuerConfig), // make_unique(Id, "color-loop-active", Attributes::ColorLoopActive::Id, credsIssuerConfig), // make_unique(Id, "color-loop-direction", Attributes::ColorLoopDirection::Id, credsIssuerConfig), // make_unique(Id, "color-loop-time", Attributes::ColorLoopTime::Id, credsIssuerConfig), // make_unique(Id, "color-loop-start-enhanced-hue", Attributes::ColorLoopStartEnhancedHue::Id, credsIssuerConfig), // make_unique(Id, "color-loop-stored-enhanced-hue", Attributes::ColorLoopStoredEnhancedHue::Id, credsIssuerConfig), // make_unique(Id, "color-capabilities", Attributes::ColorCapabilities::Id, credsIssuerConfig), // make_unique(Id, "color-temp-physical-min-mireds", Attributes::ColorTempPhysicalMinMireds::Id, credsIssuerConfig), // make_unique(Id, "color-temp-physical-max-mireds", Attributes::ColorTempPhysicalMaxMireds::Id, credsIssuerConfig), // make_unique(Id, "couple-color-temp-to-level-min-mireds", Attributes::CoupleColorTempToLevelMinMireds::Id, credsIssuerConfig), // make_unique(Id, "start-up-color-temperature-mireds", Attributes::StartUpColorTemperatureMireds::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "current-hue", 0, UINT8_MAX, Attributes::CurrentHue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-saturation", 0, UINT8_MAX, Attributes::CurrentSaturation::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "remaining-time", 0, UINT16_MAX, Attributes::RemainingTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-x", 0, UINT16_MAX, Attributes::CurrentX::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-y", 0, UINT16_MAX, Attributes::CurrentY::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "drift-compensation", 0, UINT8_MAX, Attributes::DriftCompensation::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "compensation-text", Attributes::CompensationText::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "color-temperature-mireds", 0, UINT16_MAX, Attributes::ColorTemperatureMireds::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "color-mode", 0, UINT8_MAX, Attributes::ColorMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "options", 0, UINT8_MAX, Attributes::Options::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "number-of-primaries", 0, UINT8_MAX, Attributes::NumberOfPrimaries::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "primary1x", 0, UINT16_MAX, Attributes::Primary1X::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "primary1y", 0, UINT16_MAX, Attributes::Primary1Y::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "primary1intensity", 0, UINT8_MAX, Attributes::Primary1Intensity::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "primary2x", 0, UINT16_MAX, Attributes::Primary2X::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "primary2y", 0, UINT16_MAX, Attributes::Primary2Y::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "primary2intensity", 0, UINT8_MAX, Attributes::Primary2Intensity::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "primary3x", 0, UINT16_MAX, Attributes::Primary3X::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "primary3y", 0, UINT16_MAX, Attributes::Primary3Y::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "primary3intensity", 0, UINT8_MAX, Attributes::Primary3Intensity::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "primary4x", 0, UINT16_MAX, Attributes::Primary4X::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "primary4y", 0, UINT16_MAX, Attributes::Primary4Y::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "primary4intensity", 0, UINT8_MAX, Attributes::Primary4Intensity::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "primary5x", 0, UINT16_MAX, Attributes::Primary5X::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "primary5y", 0, UINT16_MAX, Attributes::Primary5Y::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "primary5intensity", 0, UINT8_MAX, Attributes::Primary5Intensity::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "primary6x", 0, UINT16_MAX, Attributes::Primary6X::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "primary6y", 0, UINT16_MAX, Attributes::Primary6Y::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "primary6intensity", 0, UINT8_MAX, Attributes::Primary6Intensity::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "white-point-x", 0, UINT16_MAX, Attributes::WhitePointX::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "white-point-y", 0, UINT16_MAX, Attributes::WhitePointY::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "color-point-rx", 0, UINT16_MAX, Attributes::ColorPointRX::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "color-point-ry", 0, UINT16_MAX, Attributes::ColorPointRY::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "color-point-rintensity", 0, UINT8_MAX, Attributes::ColorPointRIntensity::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "color-point-gx", 0, UINT16_MAX, Attributes::ColorPointGX::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "color-point-gy", 0, UINT16_MAX, Attributes::ColorPointGY::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "color-point-gintensity", 0, UINT8_MAX, Attributes::ColorPointGIntensity::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "color-point-bx", 0, UINT16_MAX, Attributes::ColorPointBX::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "color-point-by", 0, UINT16_MAX, Attributes::ColorPointBY::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "color-point-bintensity", 0, UINT8_MAX, Attributes::ColorPointBIntensity::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "enhanced-current-hue", 0, UINT16_MAX, Attributes::EnhancedCurrentHue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "enhanced-color-mode", 0, UINT8_MAX, Attributes::EnhancedColorMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "color-loop-active", 0, UINT8_MAX, Attributes::ColorLoopActive::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "color-loop-direction", 0, UINT8_MAX, Attributes::ColorLoopDirection::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "color-loop-time", 0, UINT16_MAX, Attributes::ColorLoopTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "color-loop-start-enhanced-hue", 0, UINT16_MAX, Attributes::ColorLoopStartEnhancedHue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "color-loop-stored-enhanced-hue", 0, UINT16_MAX, Attributes::ColorLoopStoredEnhancedHue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "color-capabilities", 0, UINT16_MAX, Attributes::ColorCapabilities::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "color-temp-physical-min-mireds", 0, UINT16_MAX, Attributes::ColorTempPhysicalMinMireds::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "color-temp-physical-max-mireds", 0, UINT16_MAX, Attributes::ColorTempPhysicalMaxMireds::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "couple-color-temp-to-level-min-mireds", 0, UINT16_MAX, Attributes::CoupleColorTempToLevelMinMireds::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "start-up-color-temperature-mireds", 0, UINT16_MAX, Attributes::StartUpColorTemperatureMireds::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "current-hue", Attributes::CurrentHue::Id, credsIssuerConfig), // make_unique(Id, "current-saturation", Attributes::CurrentSaturation::Id, credsIssuerConfig), // make_unique(Id, "remaining-time", Attributes::RemainingTime::Id, credsIssuerConfig), // make_unique(Id, "current-x", Attributes::CurrentX::Id, credsIssuerConfig), // make_unique(Id, "current-y", Attributes::CurrentY::Id, credsIssuerConfig), // make_unique(Id, "drift-compensation", Attributes::DriftCompensation::Id, credsIssuerConfig), // make_unique(Id, "compensation-text", Attributes::CompensationText::Id, credsIssuerConfig), // make_unique(Id, "color-temperature-mireds", Attributes::ColorTemperatureMireds::Id, credsIssuerConfig), // make_unique(Id, "color-mode", Attributes::ColorMode::Id, credsIssuerConfig), // make_unique(Id, "options", Attributes::Options::Id, credsIssuerConfig), // make_unique(Id, "number-of-primaries", Attributes::NumberOfPrimaries::Id, credsIssuerConfig), // make_unique(Id, "primary1x", Attributes::Primary1X::Id, credsIssuerConfig), // make_unique(Id, "primary1y", Attributes::Primary1Y::Id, credsIssuerConfig), // make_unique(Id, "primary1intensity", Attributes::Primary1Intensity::Id, credsIssuerConfig), // make_unique(Id, "primary2x", Attributes::Primary2X::Id, credsIssuerConfig), // make_unique(Id, "primary2y", Attributes::Primary2Y::Id, credsIssuerConfig), // make_unique(Id, "primary2intensity", Attributes::Primary2Intensity::Id, credsIssuerConfig), // make_unique(Id, "primary3x", Attributes::Primary3X::Id, credsIssuerConfig), // make_unique(Id, "primary3y", Attributes::Primary3Y::Id, credsIssuerConfig), // make_unique(Id, "primary3intensity", Attributes::Primary3Intensity::Id, credsIssuerConfig), // make_unique(Id, "primary4x", Attributes::Primary4X::Id, credsIssuerConfig), // make_unique(Id, "primary4y", Attributes::Primary4Y::Id, credsIssuerConfig), // make_unique(Id, "primary4intensity", Attributes::Primary4Intensity::Id, credsIssuerConfig), // make_unique(Id, "primary5x", Attributes::Primary5X::Id, credsIssuerConfig), // make_unique(Id, "primary5y", Attributes::Primary5Y::Id, credsIssuerConfig), // make_unique(Id, "primary5intensity", Attributes::Primary5Intensity::Id, credsIssuerConfig), // make_unique(Id, "primary6x", Attributes::Primary6X::Id, credsIssuerConfig), // make_unique(Id, "primary6y", Attributes::Primary6Y::Id, credsIssuerConfig), // make_unique(Id, "primary6intensity", Attributes::Primary6Intensity::Id, credsIssuerConfig), // make_unique(Id, "white-point-x", Attributes::WhitePointX::Id, credsIssuerConfig), // make_unique(Id, "white-point-y", Attributes::WhitePointY::Id, credsIssuerConfig), // make_unique(Id, "color-point-rx", Attributes::ColorPointRX::Id, credsIssuerConfig), // make_unique(Id, "color-point-ry", Attributes::ColorPointRY::Id, credsIssuerConfig), // make_unique(Id, "color-point-rintensity", Attributes::ColorPointRIntensity::Id, credsIssuerConfig), // make_unique(Id, "color-point-gx", Attributes::ColorPointGX::Id, credsIssuerConfig), // make_unique(Id, "color-point-gy", Attributes::ColorPointGY::Id, credsIssuerConfig), // make_unique(Id, "color-point-gintensity", Attributes::ColorPointGIntensity::Id, credsIssuerConfig), // make_unique(Id, "color-point-bx", Attributes::ColorPointBX::Id, credsIssuerConfig), // make_unique(Id, "color-point-by", Attributes::ColorPointBY::Id, credsIssuerConfig), // make_unique(Id, "color-point-bintensity", Attributes::ColorPointBIntensity::Id, credsIssuerConfig), // make_unique(Id, "enhanced-current-hue", Attributes::EnhancedCurrentHue::Id, credsIssuerConfig), // make_unique(Id, "enhanced-color-mode", Attributes::EnhancedColorMode::Id, credsIssuerConfig), // make_unique(Id, "color-loop-active", Attributes::ColorLoopActive::Id, credsIssuerConfig), // make_unique(Id, "color-loop-direction", Attributes::ColorLoopDirection::Id, credsIssuerConfig), // make_unique(Id, "color-loop-time", Attributes::ColorLoopTime::Id, credsIssuerConfig), // make_unique(Id, "color-loop-start-enhanced-hue", Attributes::ColorLoopStartEnhancedHue::Id, credsIssuerConfig), // make_unique(Id, "color-loop-stored-enhanced-hue", Attributes::ColorLoopStoredEnhancedHue::Id, credsIssuerConfig), // make_unique(Id, "color-capabilities", Attributes::ColorCapabilities::Id, credsIssuerConfig), // make_unique(Id, "color-temp-physical-min-mireds", Attributes::ColorTempPhysicalMinMireds::Id, credsIssuerConfig), // make_unique(Id, "color-temp-physical-max-mireds", Attributes::ColorTempPhysicalMaxMireds::Id, credsIssuerConfig), // make_unique(Id, "couple-color-temp-to-level-min-mireds", Attributes::CoupleColorTempToLevelMinMireds::Id, credsIssuerConfig), // make_unique(Id, "start-up-color-temperature-mireds", Attributes::StartUpColorTemperatureMireds::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterBallastConfiguration(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::BallastConfiguration; const char * clusterName = "BallastConfiguration"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "physical-min-level", Attributes::PhysicalMinLevel::Id, credsIssuerConfig), // make_unique(Id, "physical-max-level", Attributes::PhysicalMaxLevel::Id, credsIssuerConfig), // make_unique(Id, "ballast-status", Attributes::BallastStatus::Id, credsIssuerConfig), // make_unique(Id, "min-level", Attributes::MinLevel::Id, credsIssuerConfig), // make_unique(Id, "max-level", Attributes::MaxLevel::Id, credsIssuerConfig), // make_unique(Id, "intrinsic-ballast-factor", Attributes::IntrinsicBallastFactor::Id, credsIssuerConfig), // make_unique(Id, "ballast-factor-adjustment", Attributes::BallastFactorAdjustment::Id, credsIssuerConfig), // make_unique(Id, "lamp-quantity", Attributes::LampQuantity::Id, credsIssuerConfig), // make_unique(Id, "lamp-type", Attributes::LampType::Id, credsIssuerConfig), // make_unique(Id, "lamp-manufacturer", Attributes::LampManufacturer::Id, credsIssuerConfig), // make_unique(Id, "lamp-rated-hours", Attributes::LampRatedHours::Id, credsIssuerConfig), // make_unique(Id, "lamp-burn-hours", Attributes::LampBurnHours::Id, credsIssuerConfig), // make_unique(Id, "lamp-alarm-mode", Attributes::LampAlarmMode::Id, credsIssuerConfig), // make_unique(Id, "lamp-burn-hours-trip-point", Attributes::LampBurnHoursTripPoint::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "physical-min-level", 0, UINT8_MAX, Attributes::PhysicalMinLevel::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "physical-max-level", 0, UINT8_MAX, Attributes::PhysicalMaxLevel::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "ballast-status", 0, UINT8_MAX, Attributes::BallastStatus::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "min-level", 0, UINT8_MAX, Attributes::MinLevel::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "max-level", 0, UINT8_MAX, Attributes::MaxLevel::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "intrinsic-ballast-factor", 0, UINT8_MAX, Attributes::IntrinsicBallastFactor::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "ballast-factor-adjustment", 0, UINT8_MAX, Attributes::BallastFactorAdjustment::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "lamp-quantity", 0, UINT8_MAX, Attributes::LampQuantity::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "lamp-type", Attributes::LampType::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "lamp-manufacturer", Attributes::LampManufacturer::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "lamp-rated-hours", 0, UINT32_MAX, Attributes::LampRatedHours::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "lamp-burn-hours", 0, UINT32_MAX, Attributes::LampBurnHours::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "lamp-alarm-mode", 0, UINT8_MAX, Attributes::LampAlarmMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "lamp-burn-hours-trip-point", 0, UINT32_MAX, Attributes::LampBurnHoursTripPoint::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "physical-min-level", Attributes::PhysicalMinLevel::Id, credsIssuerConfig), // make_unique(Id, "physical-max-level", Attributes::PhysicalMaxLevel::Id, credsIssuerConfig), // make_unique(Id, "ballast-status", Attributes::BallastStatus::Id, credsIssuerConfig), // make_unique(Id, "min-level", Attributes::MinLevel::Id, credsIssuerConfig), // make_unique(Id, "max-level", Attributes::MaxLevel::Id, credsIssuerConfig), // make_unique(Id, "intrinsic-ballast-factor", Attributes::IntrinsicBallastFactor::Id, credsIssuerConfig), // make_unique(Id, "ballast-factor-adjustment", Attributes::BallastFactorAdjustment::Id, credsIssuerConfig), // make_unique(Id, "lamp-quantity", Attributes::LampQuantity::Id, credsIssuerConfig), // make_unique(Id, "lamp-type", Attributes::LampType::Id, credsIssuerConfig), // make_unique(Id, "lamp-manufacturer", Attributes::LampManufacturer::Id, credsIssuerConfig), // make_unique(Id, "lamp-rated-hours", Attributes::LampRatedHours::Id, credsIssuerConfig), // make_unique(Id, "lamp-burn-hours", Attributes::LampBurnHours::Id, credsIssuerConfig), // make_unique(Id, "lamp-alarm-mode", Attributes::LampAlarmMode::Id, credsIssuerConfig), // make_unique(Id, "lamp-burn-hours-trip-point", Attributes::LampBurnHoursTripPoint::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterIlluminanceMeasurement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::IlluminanceMeasurement; const char * clusterName = "IlluminanceMeasurement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "tolerance", Attributes::Tolerance::Id, credsIssuerConfig), // make_unique(Id, "light-sensor-type", Attributes::LightSensorType::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>(Id, "measured-value", 0, UINT16_MAX, Attributes::MeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "min-measured-value", 0, UINT16_MAX, Attributes::MinMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "max-measured-value", 0, UINT16_MAX, Attributes::MaxMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tolerance", 0, UINT16_MAX, Attributes::Tolerance::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique< WriteAttribute>>( Id, "light-sensor-type", 0, UINT8_MAX, Attributes::LightSensorType::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "tolerance", Attributes::Tolerance::Id, credsIssuerConfig), // make_unique(Id, "light-sensor-type", Attributes::LightSensorType::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterTemperatureMeasurement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::TemperatureMeasurement; const char * clusterName = "TemperatureMeasurement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "tolerance", Attributes::Tolerance::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>(Id, "measured-value", INT16_MIN, INT16_MAX, Attributes::MeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "min-measured-value", INT16_MIN, INT16_MAX, Attributes::MinMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "max-measured-value", INT16_MIN, INT16_MAX, Attributes::MaxMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tolerance", 0, UINT16_MAX, Attributes::Tolerance::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "tolerance", Attributes::Tolerance::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterPressureMeasurement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::PressureMeasurement; const char * clusterName = "PressureMeasurement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "tolerance", Attributes::Tolerance::Id, credsIssuerConfig), // make_unique(Id, "scaled-value", Attributes::ScaledValue::Id, credsIssuerConfig), // make_unique(Id, "min-scaled-value", Attributes::MinScaledValue::Id, credsIssuerConfig), // make_unique(Id, "max-scaled-value", Attributes::MaxScaledValue::Id, credsIssuerConfig), // make_unique(Id, "scaled-tolerance", Attributes::ScaledTolerance::Id, credsIssuerConfig), // make_unique(Id, "scale", Attributes::Scale::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>(Id, "measured-value", INT16_MIN, INT16_MAX, Attributes::MeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "min-measured-value", INT16_MIN, INT16_MAX, Attributes::MinMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "max-measured-value", INT16_MIN, INT16_MAX, Attributes::MaxMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tolerance", 0, UINT16_MAX, Attributes::Tolerance::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "scaled-value", INT16_MIN, INT16_MAX, Attributes::ScaledValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "min-scaled-value", INT16_MIN, INT16_MAX, Attributes::MinScaledValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "max-scaled-value", INT16_MIN, INT16_MAX, Attributes::MaxScaledValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "scaled-tolerance", 0, UINT16_MAX, Attributes::ScaledTolerance::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "scale", INT8_MIN, INT8_MAX, Attributes::Scale::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "tolerance", Attributes::Tolerance::Id, credsIssuerConfig), // make_unique(Id, "scaled-value", Attributes::ScaledValue::Id, credsIssuerConfig), // make_unique(Id, "min-scaled-value", Attributes::MinScaledValue::Id, credsIssuerConfig), // make_unique(Id, "max-scaled-value", Attributes::MaxScaledValue::Id, credsIssuerConfig), // make_unique(Id, "scaled-tolerance", Attributes::ScaledTolerance::Id, credsIssuerConfig), // make_unique(Id, "scale", Attributes::Scale::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterFlowMeasurement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::FlowMeasurement; const char * clusterName = "FlowMeasurement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "tolerance", Attributes::Tolerance::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>(Id, "measured-value", 0, UINT16_MAX, Attributes::MeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "min-measured-value", 0, UINT16_MAX, Attributes::MinMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "max-measured-value", 0, UINT16_MAX, Attributes::MaxMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tolerance", 0, UINT16_MAX, Attributes::Tolerance::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "tolerance", Attributes::Tolerance::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterRelativeHumidityMeasurement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::RelativeHumidityMeasurement; const char * clusterName = "RelativeHumidityMeasurement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "tolerance", Attributes::Tolerance::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>(Id, "measured-value", 0, UINT16_MAX, Attributes::MeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "min-measured-value", 0, UINT16_MAX, Attributes::MinMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "max-measured-value", 0, UINT16_MAX, Attributes::MaxMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "tolerance", 0, UINT16_MAX, Attributes::Tolerance::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "tolerance", Attributes::Tolerance::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterOccupancySensing(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::OccupancySensing; const char * clusterName = "OccupancySensing"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "occupancy", Attributes::Occupancy::Id, credsIssuerConfig), // make_unique(Id, "occupancy-sensor-type", Attributes::OccupancySensorType::Id, credsIssuerConfig), // make_unique(Id, "occupancy-sensor-type-bitmap", Attributes::OccupancySensorTypeBitmap::Id, credsIssuerConfig), // make_unique(Id, "hold-time", Attributes::HoldTime::Id, credsIssuerConfig), // make_unique(Id, "hold-time-limits", Attributes::HoldTimeLimits::Id, credsIssuerConfig), // make_unique(Id, "piroccupied-to-unoccupied-delay", Attributes::PIROccupiedToUnoccupiedDelay::Id, credsIssuerConfig), // make_unique(Id, "pirunoccupied-to-occupied-delay", Attributes::PIRUnoccupiedToOccupiedDelay::Id, credsIssuerConfig), // make_unique(Id, "pirunoccupied-to-occupied-threshold", Attributes::PIRUnoccupiedToOccupiedThreshold::Id, credsIssuerConfig), // make_unique(Id, "ultrasonic-occupied-to-unoccupied-delay", Attributes::UltrasonicOccupiedToUnoccupiedDelay::Id, credsIssuerConfig), // make_unique(Id, "ultrasonic-unoccupied-to-occupied-delay", Attributes::UltrasonicUnoccupiedToOccupiedDelay::Id, credsIssuerConfig), // make_unique(Id, "ultrasonic-unoccupied-to-occupied-threshold", Attributes::UltrasonicUnoccupiedToOccupiedThreshold::Id, credsIssuerConfig), // make_unique(Id, "physical-contact-occupied-to-unoccupied-delay", Attributes::PhysicalContactOccupiedToUnoccupiedDelay::Id, credsIssuerConfig), // make_unique(Id, "physical-contact-unoccupied-to-occupied-delay", Attributes::PhysicalContactUnoccupiedToOccupiedDelay::Id, credsIssuerConfig), // make_unique(Id, "physical-contact-unoccupied-to-occupied-threshold", Attributes::PhysicalContactUnoccupiedToOccupiedThreshold::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "occupancy", 0, UINT8_MAX, Attributes::Occupancy::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "occupancy-sensor-type", 0, UINT8_MAX, Attributes::OccupancySensorType::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "occupancy-sensor-type-bitmap", 0, UINT8_MAX, Attributes::OccupancySensorTypeBitmap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "hold-time", 0, UINT16_MAX, Attributes::HoldTime::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "hold-time-limits", Attributes::HoldTimeLimits::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "piroccupied-to-unoccupied-delay", 0, UINT16_MAX, Attributes::PIROccupiedToUnoccupiedDelay::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "pirunoccupied-to-occupied-delay", 0, UINT16_MAX, Attributes::PIRUnoccupiedToOccupiedDelay::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "pirunoccupied-to-occupied-threshold", 0, UINT8_MAX, Attributes::PIRUnoccupiedToOccupiedThreshold::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "ultrasonic-occupied-to-unoccupied-delay", 0, UINT16_MAX, Attributes::UltrasonicOccupiedToUnoccupiedDelay::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "ultrasonic-unoccupied-to-occupied-delay", 0, UINT16_MAX, Attributes::UltrasonicUnoccupiedToOccupiedDelay::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "ultrasonic-unoccupied-to-occupied-threshold", 0, UINT8_MAX, Attributes::UltrasonicUnoccupiedToOccupiedThreshold::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "physical-contact-occupied-to-unoccupied-delay", 0, UINT16_MAX, Attributes::PhysicalContactOccupiedToUnoccupiedDelay::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "physical-contact-unoccupied-to-occupied-delay", 0, UINT16_MAX, Attributes::PhysicalContactUnoccupiedToOccupiedDelay::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "physical-contact-unoccupied-to-occupied-threshold", 0, UINT8_MAX, Attributes::PhysicalContactUnoccupiedToOccupiedThreshold::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "occupancy", Attributes::Occupancy::Id, credsIssuerConfig), // make_unique(Id, "occupancy-sensor-type", Attributes::OccupancySensorType::Id, credsIssuerConfig), // make_unique(Id, "occupancy-sensor-type-bitmap", Attributes::OccupancySensorTypeBitmap::Id, credsIssuerConfig), // make_unique(Id, "hold-time", Attributes::HoldTime::Id, credsIssuerConfig), // make_unique(Id, "hold-time-limits", Attributes::HoldTimeLimits::Id, credsIssuerConfig), // make_unique(Id, "piroccupied-to-unoccupied-delay", Attributes::PIROccupiedToUnoccupiedDelay::Id, credsIssuerConfig), // make_unique(Id, "pirunoccupied-to-occupied-delay", Attributes::PIRUnoccupiedToOccupiedDelay::Id, credsIssuerConfig), // make_unique(Id, "pirunoccupied-to-occupied-threshold", Attributes::PIRUnoccupiedToOccupiedThreshold::Id, credsIssuerConfig), // make_unique(Id, "ultrasonic-occupied-to-unoccupied-delay", Attributes::UltrasonicOccupiedToUnoccupiedDelay::Id, credsIssuerConfig), // make_unique(Id, "ultrasonic-unoccupied-to-occupied-delay", Attributes::UltrasonicUnoccupiedToOccupiedDelay::Id, credsIssuerConfig), // make_unique(Id, "ultrasonic-unoccupied-to-occupied-threshold", Attributes::UltrasonicUnoccupiedToOccupiedThreshold::Id, credsIssuerConfig), // make_unique(Id, "physical-contact-occupied-to-unoccupied-delay", Attributes::PhysicalContactOccupiedToUnoccupiedDelay::Id, credsIssuerConfig), // make_unique(Id, "physical-contact-unoccupied-to-occupied-delay", Attributes::PhysicalContactUnoccupiedToOccupiedDelay::Id, credsIssuerConfig), // make_unique(Id, "physical-contact-unoccupied-to-occupied-threshold", Attributes::PhysicalContactUnoccupiedToOccupiedThreshold::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "occupancy-changed", Events::OccupancyChanged::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "occupancy-changed", Events::OccupancyChanged::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterCarbonMonoxideConcentrationMeasurement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::CarbonMonoxideConcentrationMeasurement; const char * clusterName = "CarbonMonoxideConcentrationMeasurement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "min-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MinMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "max-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MaxMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "peak-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::PeakMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "peak-measured-value-window", 0, UINT32_MAX, Attributes::PeakMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "average-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::AverageMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "average-measured-value-window", 0, UINT32_MAX, Attributes::AverageMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "uncertainty", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::Uncertainty::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-unit", 0, UINT8_MAX, Attributes::MeasurementUnit::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-medium", 0, UINT8_MAX, Attributes::MeasurementMedium::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "level-value", 0, UINT8_MAX, Attributes::LevelValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterCarbonDioxideConcentrationMeasurement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::CarbonDioxideConcentrationMeasurement; const char * clusterName = "CarbonDioxideConcentrationMeasurement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "min-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MinMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "max-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MaxMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "peak-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::PeakMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "peak-measured-value-window", 0, UINT32_MAX, Attributes::PeakMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "average-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::AverageMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "average-measured-value-window", 0, UINT32_MAX, Attributes::AverageMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "uncertainty", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::Uncertainty::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-unit", 0, UINT8_MAX, Attributes::MeasurementUnit::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-medium", 0, UINT8_MAX, Attributes::MeasurementMedium::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "level-value", 0, UINT8_MAX, Attributes::LevelValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterNitrogenDioxideConcentrationMeasurement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::NitrogenDioxideConcentrationMeasurement; const char * clusterName = "NitrogenDioxideConcentrationMeasurement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "min-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MinMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "max-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MaxMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "peak-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::PeakMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "peak-measured-value-window", 0, UINT32_MAX, Attributes::PeakMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "average-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::AverageMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "average-measured-value-window", 0, UINT32_MAX, Attributes::AverageMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "uncertainty", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::Uncertainty::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-unit", 0, UINT8_MAX, Attributes::MeasurementUnit::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-medium", 0, UINT8_MAX, Attributes::MeasurementMedium::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "level-value", 0, UINT8_MAX, Attributes::LevelValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterOzoneConcentrationMeasurement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::OzoneConcentrationMeasurement; const char * clusterName = "OzoneConcentrationMeasurement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "min-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MinMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "max-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MaxMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "peak-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::PeakMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "peak-measured-value-window", 0, UINT32_MAX, Attributes::PeakMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "average-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::AverageMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "average-measured-value-window", 0, UINT32_MAX, Attributes::AverageMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "uncertainty", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::Uncertainty::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-unit", 0, UINT8_MAX, Attributes::MeasurementUnit::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-medium", 0, UINT8_MAX, Attributes::MeasurementMedium::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "level-value", 0, UINT8_MAX, Attributes::LevelValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterPm25ConcentrationMeasurement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::Pm25ConcentrationMeasurement; const char * clusterName = "Pm25ConcentrationMeasurement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "min-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MinMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "max-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MaxMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "peak-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::PeakMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "peak-measured-value-window", 0, UINT32_MAX, Attributes::PeakMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "average-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::AverageMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "average-measured-value-window", 0, UINT32_MAX, Attributes::AverageMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "uncertainty", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::Uncertainty::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-unit", 0, UINT8_MAX, Attributes::MeasurementUnit::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-medium", 0, UINT8_MAX, Attributes::MeasurementMedium::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "level-value", 0, UINT8_MAX, Attributes::LevelValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterFormaldehydeConcentrationMeasurement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::FormaldehydeConcentrationMeasurement; const char * clusterName = "FormaldehydeConcentrationMeasurement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "min-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MinMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "max-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MaxMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "peak-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::PeakMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "peak-measured-value-window", 0, UINT32_MAX, Attributes::PeakMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "average-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::AverageMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "average-measured-value-window", 0, UINT32_MAX, Attributes::AverageMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "uncertainty", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::Uncertainty::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-unit", 0, UINT8_MAX, Attributes::MeasurementUnit::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-medium", 0, UINT8_MAX, Attributes::MeasurementMedium::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "level-value", 0, UINT8_MAX, Attributes::LevelValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterPm1ConcentrationMeasurement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::Pm1ConcentrationMeasurement; const char * clusterName = "Pm1ConcentrationMeasurement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "min-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MinMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "max-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MaxMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "peak-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::PeakMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "peak-measured-value-window", 0, UINT32_MAX, Attributes::PeakMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "average-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::AverageMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "average-measured-value-window", 0, UINT32_MAX, Attributes::AverageMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "uncertainty", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::Uncertainty::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-unit", 0, UINT8_MAX, Attributes::MeasurementUnit::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-medium", 0, UINT8_MAX, Attributes::MeasurementMedium::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "level-value", 0, UINT8_MAX, Attributes::LevelValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterPm10ConcentrationMeasurement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::Pm10ConcentrationMeasurement; const char * clusterName = "Pm10ConcentrationMeasurement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "min-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MinMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "max-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MaxMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "peak-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::PeakMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "peak-measured-value-window", 0, UINT32_MAX, Attributes::PeakMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "average-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::AverageMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "average-measured-value-window", 0, UINT32_MAX, Attributes::AverageMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "uncertainty", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::Uncertainty::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-unit", 0, UINT8_MAX, Attributes::MeasurementUnit::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-medium", 0, UINT8_MAX, Attributes::MeasurementMedium::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "level-value", 0, UINT8_MAX, Attributes::LevelValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterTotalVolatileOrganicCompoundsConcentrationMeasurement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::TotalVolatileOrganicCompoundsConcentrationMeasurement; const char * clusterName = "TotalVolatileOrganicCompoundsConcentrationMeasurement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "min-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MinMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "max-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MaxMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "peak-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::PeakMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "peak-measured-value-window", 0, UINT32_MAX, Attributes::PeakMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "average-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::AverageMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "average-measured-value-window", 0, UINT32_MAX, Attributes::AverageMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "uncertainty", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::Uncertainty::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique< WriteAttribute>( Id, "measurement-unit", 0, UINT8_MAX, Attributes::MeasurementUnit::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique< WriteAttribute>( Id, "measurement-medium", 0, UINT8_MAX, Attributes::MeasurementMedium::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "level-value", 0, UINT8_MAX, Attributes::LevelValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterRadonConcentrationMeasurement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::RadonConcentrationMeasurement; const char * clusterName = "RadonConcentrationMeasurement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "min-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MinMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "max-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::MaxMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "peak-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::PeakMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "peak-measured-value-window", 0, UINT32_MAX, Attributes::PeakMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "average-measured-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::AverageMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "average-measured-value-window", 0, UINT32_MAX, Attributes::AverageMeasuredValueWindow::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "uncertainty", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::Uncertainty::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-unit", 0, UINT8_MAX, Attributes::MeasurementUnit::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "measurement-medium", 0, UINT8_MAX, Attributes::MeasurementMedium::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "level-value", 0, UINT8_MAX, Attributes::LevelValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "measured-value", Attributes::MeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "min-measured-value", Attributes::MinMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "max-measured-value", Attributes::MaxMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value", Attributes::PeakMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "peak-measured-value-window", Attributes::PeakMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value", Attributes::AverageMeasuredValue::Id, credsIssuerConfig), // make_unique(Id, "average-measured-value-window", Attributes::AverageMeasuredValueWindow::Id, credsIssuerConfig), // make_unique(Id, "uncertainty", Attributes::Uncertainty::Id, credsIssuerConfig), // make_unique(Id, "measurement-unit", Attributes::MeasurementUnit::Id, credsIssuerConfig), // make_unique(Id, "measurement-medium", Attributes::MeasurementMedium::Id, credsIssuerConfig), // make_unique(Id, "level-value", Attributes::LevelValue::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterWiFiNetworkManagement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::WiFiNetworkManagement; const char * clusterName = "WiFiNetworkManagement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "ssid", Attributes::Ssid::Id, credsIssuerConfig), // make_unique(Id, "passphrase-surrogate", Attributes::PassphraseSurrogate::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "ssid", Attributes::Ssid::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "passphrase-surrogate", 0, UINT64_MAX, Attributes::PassphraseSurrogate::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "ssid", Attributes::Ssid::Id, credsIssuerConfig), // make_unique(Id, "passphrase-surrogate", Attributes::PassphraseSurrogate::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterThreadBorderRouterManagement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ThreadBorderRouterManagement; const char * clusterName = "ThreadBorderRouterManagement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "border-router-name", Attributes::BorderRouterName::Id, credsIssuerConfig), // make_unique(Id, "border-agent-id", Attributes::BorderAgentID::Id, credsIssuerConfig), // make_unique(Id, "thread-version", Attributes::ThreadVersion::Id, credsIssuerConfig), // make_unique(Id, "interface-enabled", Attributes::InterfaceEnabled::Id, credsIssuerConfig), // make_unique(Id, "active-dataset-timestamp", Attributes::ActiveDatasetTimestamp::Id, credsIssuerConfig), // make_unique(Id, "pending-dataset-timestamp", Attributes::PendingDatasetTimestamp::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "border-router-name", Attributes::BorderRouterName::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "border-agent-id", Attributes::BorderAgentID::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "thread-version", 0, UINT16_MAX, Attributes::ThreadVersion::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "interface-enabled", 0, 1, Attributes::InterfaceEnabled::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "active-dataset-timestamp", 0, UINT64_MAX, Attributes::ActiveDatasetTimestamp::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "pending-dataset-timestamp", 0, UINT64_MAX, Attributes::PendingDatasetTimestamp::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "border-router-name", Attributes::BorderRouterName::Id, credsIssuerConfig), // make_unique(Id, "border-agent-id", Attributes::BorderAgentID::Id, credsIssuerConfig), // make_unique(Id, "thread-version", Attributes::ThreadVersion::Id, credsIssuerConfig), // make_unique(Id, "interface-enabled", Attributes::InterfaceEnabled::Id, credsIssuerConfig), // make_unique(Id, "active-dataset-timestamp", Attributes::ActiveDatasetTimestamp::Id, credsIssuerConfig), // make_unique(Id, "pending-dataset-timestamp", Attributes::PendingDatasetTimestamp::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterThreadNetworkDirectory(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ThreadNetworkDirectory; const char * clusterName = "ThreadNetworkDirectory"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "preferred-extended-pan-id", Attributes::PreferredExtendedPanID::Id, credsIssuerConfig), // make_unique(Id, "thread-networks", Attributes::ThreadNetworks::Id, credsIssuerConfig), // make_unique(Id, "thread-network-table-size", Attributes::ThreadNetworkTableSize::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>(Id, "preferred-extended-pan-id", Attributes::PreferredExtendedPanID::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "thread-networks", Attributes::ThreadNetworks::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "thread-network-table-size", 0, UINT8_MAX, Attributes::ThreadNetworkTableSize::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "preferred-extended-pan-id", Attributes::PreferredExtendedPanID::Id, credsIssuerConfig), // make_unique(Id, "thread-networks", Attributes::ThreadNetworks::Id, credsIssuerConfig), // make_unique(Id, "thread-network-table-size", Attributes::ThreadNetworkTableSize::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterWakeOnLan(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::WakeOnLan; const char * clusterName = "WakeOnLan"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "macaddress", Attributes::MACAddress::Id, credsIssuerConfig), // make_unique(Id, "link-local-address", Attributes::LinkLocalAddress::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "macaddress", Attributes::MACAddress::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "link-local-address", Attributes::LinkLocalAddress::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "macaddress", Attributes::MACAddress::Id, credsIssuerConfig), // make_unique(Id, "link-local-address", Attributes::LinkLocalAddress::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterChannel(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::Channel; const char * clusterName = "Channel"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "channel-list", Attributes::ChannelList::Id, credsIssuerConfig), // make_unique(Id, "lineup", Attributes::Lineup::Id, credsIssuerConfig), // make_unique(Id, "current-channel", Attributes::CurrentChannel::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "channel-list", Attributes::ChannelList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "lineup", Attributes::Lineup::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "current-channel", Attributes::CurrentChannel::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "channel-list", Attributes::ChannelList::Id, credsIssuerConfig), // make_unique(Id, "lineup", Attributes::Lineup::Id, credsIssuerConfig), // make_unique(Id, "current-channel", Attributes::CurrentChannel::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterTargetNavigator(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::TargetNavigator; const char * clusterName = "TargetNavigator"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "target-list", Attributes::TargetList::Id, credsIssuerConfig), // make_unique(Id, "current-target", Attributes::CurrentTarget::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "target-list", Attributes::TargetList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-target", 0, UINT8_MAX, Attributes::CurrentTarget::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "target-list", Attributes::TargetList::Id, credsIssuerConfig), // make_unique(Id, "current-target", Attributes::CurrentTarget::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "target-updated", Events::TargetUpdated::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "target-updated", Events::TargetUpdated::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterMediaPlayback(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::MediaPlayback; const char * clusterName = "MediaPlayback"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "current-state", Attributes::CurrentState::Id, credsIssuerConfig), // make_unique(Id, "start-time", Attributes::StartTime::Id, credsIssuerConfig), // make_unique(Id, "duration", Attributes::Duration::Id, credsIssuerConfig), // make_unique(Id, "sampled-position", Attributes::SampledPosition::Id, credsIssuerConfig), // make_unique(Id, "playback-speed", Attributes::PlaybackSpeed::Id, credsIssuerConfig), // make_unique(Id, "seek-range-end", Attributes::SeekRangeEnd::Id, credsIssuerConfig), // make_unique(Id, "seek-range-start", Attributes::SeekRangeStart::Id, credsIssuerConfig), // make_unique(Id, "active-audio-track", Attributes::ActiveAudioTrack::Id, credsIssuerConfig), // make_unique(Id, "available-audio-tracks", Attributes::AvailableAudioTracks::Id, credsIssuerConfig), // make_unique(Id, "active-text-track", Attributes::ActiveTextTrack::Id, credsIssuerConfig), // make_unique(Id, "available-text-tracks", Attributes::AvailableTextTracks::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>( Id, "current-state", 0, UINT8_MAX, Attributes::CurrentState::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "start-time", 0, UINT64_MAX, Attributes::StartTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "duration", 0, UINT64_MAX, Attributes::Duration::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "sampled-position", Attributes::SampledPosition::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "playback-speed", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::PlaybackSpeed::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "seek-range-end", 0, UINT64_MAX, Attributes::SeekRangeEnd::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>(Id, "seek-range-start", 0, UINT64_MAX, Attributes::SeekRangeStart::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "active-audio-track", Attributes::ActiveAudioTrack::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>>( Id, "available-audio-tracks", Attributes::AvailableAudioTracks::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "active-text-track", Attributes::ActiveTextTrack::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>>( Id, "available-text-tracks", Attributes::AvailableTextTracks::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "current-state", Attributes::CurrentState::Id, credsIssuerConfig), // make_unique(Id, "start-time", Attributes::StartTime::Id, credsIssuerConfig), // make_unique(Id, "duration", Attributes::Duration::Id, credsIssuerConfig), // make_unique(Id, "sampled-position", Attributes::SampledPosition::Id, credsIssuerConfig), // make_unique(Id, "playback-speed", Attributes::PlaybackSpeed::Id, credsIssuerConfig), // make_unique(Id, "seek-range-end", Attributes::SeekRangeEnd::Id, credsIssuerConfig), // make_unique(Id, "seek-range-start", Attributes::SeekRangeStart::Id, credsIssuerConfig), // make_unique(Id, "active-audio-track", Attributes::ActiveAudioTrack::Id, credsIssuerConfig), // make_unique(Id, "available-audio-tracks", Attributes::AvailableAudioTracks::Id, credsIssuerConfig), // make_unique(Id, "active-text-track", Attributes::ActiveTextTrack::Id, credsIssuerConfig), // make_unique(Id, "available-text-tracks", Attributes::AvailableTextTracks::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "state-changed", Events::StateChanged::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "state-changed", Events::StateChanged::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterMediaInput(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::MediaInput; const char * clusterName = "MediaInput"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "input-list", Attributes::InputList::Id, credsIssuerConfig), // make_unique(Id, "current-input", Attributes::CurrentInput::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "input-list", Attributes::InputList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-input", 0, UINT8_MAX, Attributes::CurrentInput::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "input-list", Attributes::InputList::Id, credsIssuerConfig), // make_unique(Id, "current-input", Attributes::CurrentInput::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterLowPower(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::LowPower; const char * clusterName = "LowPower"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterKeypadInput(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::KeypadInput; const char * clusterName = "KeypadInput"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterContentLauncher(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ContentLauncher; const char * clusterName = "ContentLauncher"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "accept-header", Attributes::AcceptHeader::Id, credsIssuerConfig), // make_unique(Id, "supported-streaming-protocols", Attributes::SupportedStreamingProtocols::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "accept-header", Attributes::AcceptHeader::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "supported-streaming-protocols", 0, UINT32_MAX, Attributes::SupportedStreamingProtocols::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "accept-header", Attributes::AcceptHeader::Id, credsIssuerConfig), // make_unique(Id, "supported-streaming-protocols", Attributes::SupportedStreamingProtocols::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterAudioOutput(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::AudioOutput; const char * clusterName = "AudioOutput"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "output-list", Attributes::OutputList::Id, credsIssuerConfig), // make_unique(Id, "current-output", Attributes::CurrentOutput::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "output-list", Attributes::OutputList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-output", 0, UINT8_MAX, Attributes::CurrentOutput::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "output-list", Attributes::OutputList::Id, credsIssuerConfig), // make_unique(Id, "current-output", Attributes::CurrentOutput::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterApplicationLauncher(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ApplicationLauncher; const char * clusterName = "ApplicationLauncher"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "catalog-list", Attributes::CatalogList::Id, credsIssuerConfig), // make_unique(Id, "current-app", Attributes::CurrentApp::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "catalog-list", Attributes::CatalogList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "current-app", Attributes::CurrentApp::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "catalog-list", Attributes::CatalogList::Id, credsIssuerConfig), // make_unique(Id, "current-app", Attributes::CurrentApp::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterApplicationBasic(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ApplicationBasic; const char * clusterName = "ApplicationBasic"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "vendor-name", Attributes::VendorName::Id, credsIssuerConfig), // make_unique(Id, "vendor-id", Attributes::VendorID::Id, credsIssuerConfig), // make_unique(Id, "application-name", Attributes::ApplicationName::Id, credsIssuerConfig), // make_unique(Id, "product-id", Attributes::ProductID::Id, credsIssuerConfig), // make_unique(Id, "application", Attributes::Application::Id, credsIssuerConfig), // make_unique(Id, "status", Attributes::Status::Id, credsIssuerConfig), // make_unique(Id, "application-version", Attributes::ApplicationVersion::Id, credsIssuerConfig), // make_unique(Id, "allowed-vendor-list", Attributes::AllowedVendorList::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "vendor-name", Attributes::VendorName::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "vendor-id", 0, UINT16_MAX, Attributes::VendorID::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "application-name", Attributes::ApplicationName::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "product-id", 0, UINT16_MAX, Attributes::ProductID::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "application", Attributes::Application::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "status", 0, UINT8_MAX, Attributes::Status::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "application-version", Attributes::ApplicationVersion::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "allowed-vendor-list", Attributes::AllowedVendorList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "vendor-name", Attributes::VendorName::Id, credsIssuerConfig), // make_unique(Id, "vendor-id", Attributes::VendorID::Id, credsIssuerConfig), // make_unique(Id, "application-name", Attributes::ApplicationName::Id, credsIssuerConfig), // make_unique(Id, "product-id", Attributes::ProductID::Id, credsIssuerConfig), // make_unique(Id, "application", Attributes::Application::Id, credsIssuerConfig), // make_unique(Id, "status", Attributes::Status::Id, credsIssuerConfig), // make_unique(Id, "application-version", Attributes::ApplicationVersion::Id, credsIssuerConfig), // make_unique(Id, "allowed-vendor-list", Attributes::AllowedVendorList::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterAccountLogin(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::AccountLogin; const char * clusterName = "AccountLogin"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "logged-out", Events::LoggedOut::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "logged-out", Events::LoggedOut::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterContentControl(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ContentControl; const char * clusterName = "ContentControl"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "enabled", Attributes::Enabled::Id, credsIssuerConfig), // make_unique(Id, "on-demand-ratings", Attributes::OnDemandRatings::Id, credsIssuerConfig), // make_unique(Id, "on-demand-rating-threshold", Attributes::OnDemandRatingThreshold::Id, credsIssuerConfig), // make_unique(Id, "scheduled-content-ratings", Attributes::ScheduledContentRatings::Id, credsIssuerConfig), // make_unique(Id, "scheduled-content-rating-threshold", Attributes::ScheduledContentRatingThreshold::Id, credsIssuerConfig), // make_unique(Id, "screen-daily-time", Attributes::ScreenDailyTime::Id, credsIssuerConfig), // make_unique(Id, "remaining-screen-time", Attributes::RemainingScreenTime::Id, credsIssuerConfig), // make_unique(Id, "block-unrated", Attributes::BlockUnrated::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "enabled", 0, 1, Attributes::Enabled::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "on-demand-ratings", Attributes::OnDemandRatings::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "on-demand-rating-threshold", Attributes::OnDemandRatingThreshold::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "scheduled-content-ratings", Attributes::ScheduledContentRatings::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "scheduled-content-rating-threshold", Attributes::ScheduledContentRatingThreshold::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "screen-daily-time", 0, UINT32_MAX, Attributes::ScreenDailyTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "remaining-screen-time", 0, UINT32_MAX, Attributes::RemainingScreenTime::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "block-unrated", 0, 1, Attributes::BlockUnrated::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "enabled", Attributes::Enabled::Id, credsIssuerConfig), // make_unique(Id, "on-demand-ratings", Attributes::OnDemandRatings::Id, credsIssuerConfig), // make_unique(Id, "on-demand-rating-threshold", Attributes::OnDemandRatingThreshold::Id, credsIssuerConfig), // make_unique(Id, "scheduled-content-ratings", Attributes::ScheduledContentRatings::Id, credsIssuerConfig), // make_unique(Id, "scheduled-content-rating-threshold", Attributes::ScheduledContentRatingThreshold::Id, credsIssuerConfig), // make_unique(Id, "screen-daily-time", Attributes::ScreenDailyTime::Id, credsIssuerConfig), // make_unique(Id, "remaining-screen-time", Attributes::RemainingScreenTime::Id, credsIssuerConfig), // make_unique(Id, "block-unrated", Attributes::BlockUnrated::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "remaining-screen-time-expired", Events::RemainingScreenTimeExpired::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "remaining-screen-time-expired", Events::RemainingScreenTimeExpired::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterContentAppObserver(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ContentAppObserver; const char * clusterName = "ContentAppObserver"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterZoneManagement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::ZoneManagement; const char * clusterName = "ZoneManagement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-zone-sources", Attributes::SupportedZoneSources::Id, credsIssuerConfig), // make_unique(Id, "zones", Attributes::Zones::Id, credsIssuerConfig), // make_unique(Id, "time-control", Attributes::TimeControl::Id, credsIssuerConfig), // make_unique(Id, "sensitivity", Attributes::Sensitivity::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "supported-zone-sources", Attributes::SupportedZoneSources::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "zones", Attributes::Zones::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "time-control", Attributes::TimeControl::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "sensitivity", 0, UINT8_MAX, Attributes::Sensitivity::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-zone-sources", Attributes::SupportedZoneSources::Id, credsIssuerConfig), // make_unique(Id, "zones", Attributes::Zones::Id, credsIssuerConfig), // make_unique(Id, "time-control", Attributes::TimeControl::Id, credsIssuerConfig), // make_unique(Id, "sensitivity", Attributes::Sensitivity::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "zone-triggered", Events::ZoneTriggered::Id, credsIssuerConfig), // make_unique(Id, "zone-stopped", Events::ZoneStopped::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "zone-triggered", Events::ZoneTriggered::Id, credsIssuerConfig), // make_unique(Id, "zone-stopped", Events::ZoneStopped::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterCameraAvStreamManagement(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::CameraAvStreamManagement; const char * clusterName = "CameraAvStreamManagement"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "max-concurrent-video-encoders", Attributes::MaxConcurrentVideoEncoders::Id, credsIssuerConfig), // make_unique(Id, "max-encoded-pixel-rate", Attributes::MaxEncodedPixelRate::Id, credsIssuerConfig), // make_unique(Id, "video-sensor-params", Attributes::VideoSensorParams::Id, credsIssuerConfig), // make_unique(Id, "night-vision-capable", Attributes::NightVisionCapable::Id, credsIssuerConfig), // make_unique(Id, "min-viewport", Attributes::MinViewport::Id, credsIssuerConfig), // make_unique(Id, "rate-distortion-trade-off-points", Attributes::RateDistortionTradeOffPoints::Id, credsIssuerConfig), // make_unique(Id, "max-pre-roll-buffer-size", Attributes::MaxPreRollBufferSize::Id, credsIssuerConfig), // make_unique(Id, "microphone-capabilities", Attributes::MicrophoneCapabilities::Id, credsIssuerConfig), // make_unique(Id, "speaker-capabilities", Attributes::SpeakerCapabilities::Id, credsIssuerConfig), // make_unique(Id, "two-way-talk-support", Attributes::TwoWayTalkSupport::Id, credsIssuerConfig), // make_unique(Id, "supported-snapshot-params", Attributes::SupportedSnapshotParams::Id, credsIssuerConfig), // make_unique(Id, "max-network-bandwidth", Attributes::MaxNetworkBandwidth::Id, credsIssuerConfig), // make_unique(Id, "current-frame-rate", Attributes::CurrentFrameRate::Id, credsIssuerConfig), // make_unique(Id, "hdrmode-enabled", Attributes::HDRModeEnabled::Id, credsIssuerConfig), // make_unique(Id, "current-video-codecs", Attributes::CurrentVideoCodecs::Id, credsIssuerConfig), // make_unique(Id, "current-snapshot-config", Attributes::CurrentSnapshotConfig::Id, credsIssuerConfig), // make_unique(Id, "fabrics-using-camera", Attributes::FabricsUsingCamera::Id, credsIssuerConfig), // make_unique(Id, "allocated-video-streams", Attributes::AllocatedVideoStreams::Id, credsIssuerConfig), // make_unique(Id, "allocated-audio-streams", Attributes::AllocatedAudioStreams::Id, credsIssuerConfig), // make_unique(Id, "allocated-snapshot-streams", Attributes::AllocatedSnapshotStreams::Id, credsIssuerConfig), // make_unique(Id, "ranked-video-stream-priorities-list", Attributes::RankedVideoStreamPrioritiesList::Id, credsIssuerConfig), // make_unique(Id, "soft-recording-privacy-mode-enabled", Attributes::SoftRecordingPrivacyModeEnabled::Id, credsIssuerConfig), // make_unique(Id, "soft-livestream-privacy-mode-enabled", Attributes::SoftLivestreamPrivacyModeEnabled::Id, credsIssuerConfig), // make_unique(Id, "hard-privacy-mode-on", Attributes::HardPrivacyModeOn::Id, credsIssuerConfig), // make_unique(Id, "night-vision", Attributes::NightVision::Id, credsIssuerConfig), // make_unique(Id, "night-vision-illum", Attributes::NightVisionIllum::Id, credsIssuerConfig), // make_unique(Id, "awbenabled", Attributes::AWBEnabled::Id, credsIssuerConfig), // make_unique(Id, "auto-shutter-speed-enabled", Attributes::AutoShutterSpeedEnabled::Id, credsIssuerConfig), // make_unique(Id, "auto-isoenabled", Attributes::AutoISOEnabled::Id, credsIssuerConfig), // make_unique(Id, "viewport", Attributes::Viewport::Id, credsIssuerConfig), // make_unique(Id, "speaker-muted", Attributes::SpeakerMuted::Id, credsIssuerConfig), // make_unique(Id, "speaker-volume-level", Attributes::SpeakerVolumeLevel::Id, credsIssuerConfig), // make_unique(Id, "speaker-max-level", Attributes::SpeakerMaxLevel::Id, credsIssuerConfig), // make_unique(Id, "speaker-min-level", Attributes::SpeakerMinLevel::Id, credsIssuerConfig), // make_unique(Id, "microphone-muted", Attributes::MicrophoneMuted::Id, credsIssuerConfig), // make_unique(Id, "microphone-volume-level", Attributes::MicrophoneVolumeLevel::Id, credsIssuerConfig), // make_unique(Id, "microphone-max-level", Attributes::MicrophoneMaxLevel::Id, credsIssuerConfig), // make_unique(Id, "microphone-min-level", Attributes::MicrophoneMinLevel::Id, credsIssuerConfig), // make_unique(Id, "microphone-agcenabled", Attributes::MicrophoneAGCEnabled::Id, credsIssuerConfig), // make_unique(Id, "image-rotation", Attributes::ImageRotation::Id, credsIssuerConfig), // make_unique(Id, "image-flip-horizontal", Attributes::ImageFlipHorizontal::Id, credsIssuerConfig), // make_unique(Id, "image-flip-vertical", Attributes::ImageFlipVertical::Id, credsIssuerConfig), // make_unique(Id, "local-video-recording-enabled", Attributes::LocalVideoRecordingEnabled::Id, credsIssuerConfig), // make_unique(Id, "local-snapshot-recording-enabled", Attributes::LocalSnapshotRecordingEnabled::Id, credsIssuerConfig), // make_unique(Id, "status-light-enabled", Attributes::StatusLightEnabled::Id, credsIssuerConfig), // make_unique(Id, "status-light-brightness", Attributes::StatusLightBrightness::Id, credsIssuerConfig), // make_unique(Id, "depth-sensor-status", Attributes::DepthSensorStatus::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "max-concurrent-video-encoders", 0, UINT8_MAX, Attributes::MaxConcurrentVideoEncoders::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "max-encoded-pixel-rate", 0, UINT32_MAX, Attributes::MaxEncodedPixelRate::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "video-sensor-params", Attributes::VideoSensorParams::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "night-vision-capable", 0, 1, Attributes::NightVisionCapable::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "min-viewport", Attributes::MinViewport::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "rate-distortion-trade-off-points", Attributes::RateDistortionTradeOffPoints::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "max-pre-roll-buffer-size", 0, UINT32_MAX, Attributes::MaxPreRollBufferSize::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "microphone-capabilities", Attributes::MicrophoneCapabilities::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "speaker-capabilities", Attributes::SpeakerCapabilities::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "two-way-talk-support", 0, UINT8_MAX, Attributes::TwoWayTalkSupport::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "supported-snapshot-params", Attributes::SupportedSnapshotParams::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "max-network-bandwidth", 0, UINT32_MAX, Attributes::MaxNetworkBandwidth::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-frame-rate", 0, UINT16_MAX, Attributes::CurrentFrameRate::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "hdrmode-enabled", 0, 1, Attributes::HDRModeEnabled::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "current-video-codecs", Attributes::CurrentVideoCodecs::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "current-snapshot-config", Attributes::CurrentSnapshotConfig::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "fabrics-using-camera", Attributes::FabricsUsingCamera::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "allocated-video-streams", Attributes::AllocatedVideoStreams::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "allocated-audio-streams", Attributes::AllocatedAudioStreams::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "allocated-snapshot-streams", Attributes::AllocatedSnapshotStreams::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "ranked-video-stream-priorities-list", Attributes::RankedVideoStreamPrioritiesList::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "soft-recording-privacy-mode-enabled", 0, 1, Attributes::SoftRecordingPrivacyModeEnabled::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "soft-livestream-privacy-mode-enabled", 0, 1, Attributes::SoftLivestreamPrivacyModeEnabled::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "hard-privacy-mode-on", 0, 1, Attributes::HardPrivacyModeOn::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>( Id, "night-vision", 0, UINT8_MAX, Attributes::NightVision::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "night-vision-illum", 0, UINT8_MAX, Attributes::NightVisionIllum::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "awbenabled", 0, 1, Attributes::AWBEnabled::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "auto-shutter-speed-enabled", 0, 1, Attributes::AutoShutterSpeedEnabled::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "auto-isoenabled", 0, 1, Attributes::AutoISOEnabled::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "viewport", Attributes::Viewport::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "speaker-muted", 0, 1, Attributes::SpeakerMuted::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "speaker-volume-level", 0, UINT8_MAX, Attributes::SpeakerVolumeLevel::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "speaker-max-level", 0, UINT8_MAX, Attributes::SpeakerMaxLevel::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "speaker-min-level", 0, UINT8_MAX, Attributes::SpeakerMinLevel::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "microphone-muted", 0, 1, Attributes::MicrophoneMuted::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "microphone-volume-level", 0, UINT8_MAX, Attributes::MicrophoneVolumeLevel::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "microphone-max-level", 0, UINT8_MAX, Attributes::MicrophoneMaxLevel::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "microphone-min-level", 0, UINT8_MAX, Attributes::MicrophoneMinLevel::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "microphone-agcenabled", 0, 1, Attributes::MicrophoneAGCEnabled::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "image-rotation", 0, UINT16_MAX, Attributes::ImageRotation::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "image-flip-horizontal", 0, 1, Attributes::ImageFlipHorizontal::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "image-flip-vertical", 0, 1, Attributes::ImageFlipVertical::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "local-video-recording-enabled", 0, 1, Attributes::LocalVideoRecordingEnabled::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "local-snapshot-recording-enabled", 0, 1, Attributes::LocalSnapshotRecordingEnabled::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "status-light-enabled", 0, 1, Attributes::StatusLightEnabled::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "status-light-brightness", 0, UINT8_MAX, Attributes::StatusLightBrightness::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "depth-sensor-status", 0, UINT8_MAX, Attributes::DepthSensorStatus::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "max-concurrent-video-encoders", Attributes::MaxConcurrentVideoEncoders::Id, credsIssuerConfig), // make_unique(Id, "max-encoded-pixel-rate", Attributes::MaxEncodedPixelRate::Id, credsIssuerConfig), // make_unique(Id, "video-sensor-params", Attributes::VideoSensorParams::Id, credsIssuerConfig), // make_unique(Id, "night-vision-capable", Attributes::NightVisionCapable::Id, credsIssuerConfig), // make_unique(Id, "min-viewport", Attributes::MinViewport::Id, credsIssuerConfig), // make_unique(Id, "rate-distortion-trade-off-points", Attributes::RateDistortionTradeOffPoints::Id, credsIssuerConfig), // make_unique(Id, "max-pre-roll-buffer-size", Attributes::MaxPreRollBufferSize::Id, credsIssuerConfig), // make_unique(Id, "microphone-capabilities", Attributes::MicrophoneCapabilities::Id, credsIssuerConfig), // make_unique(Id, "speaker-capabilities", Attributes::SpeakerCapabilities::Id, credsIssuerConfig), // make_unique(Id, "two-way-talk-support", Attributes::TwoWayTalkSupport::Id, credsIssuerConfig), // make_unique(Id, "supported-snapshot-params", Attributes::SupportedSnapshotParams::Id, credsIssuerConfig), // make_unique(Id, "max-network-bandwidth", Attributes::MaxNetworkBandwidth::Id, credsIssuerConfig), // make_unique(Id, "current-frame-rate", Attributes::CurrentFrameRate::Id, credsIssuerConfig), // make_unique(Id, "hdrmode-enabled", Attributes::HDRModeEnabled::Id, credsIssuerConfig), // make_unique(Id, "current-video-codecs", Attributes::CurrentVideoCodecs::Id, credsIssuerConfig), // make_unique(Id, "current-snapshot-config", Attributes::CurrentSnapshotConfig::Id, credsIssuerConfig), // make_unique(Id, "fabrics-using-camera", Attributes::FabricsUsingCamera::Id, credsIssuerConfig), // make_unique(Id, "allocated-video-streams", Attributes::AllocatedVideoStreams::Id, credsIssuerConfig), // make_unique(Id, "allocated-audio-streams", Attributes::AllocatedAudioStreams::Id, credsIssuerConfig), // make_unique(Id, "allocated-snapshot-streams", Attributes::AllocatedSnapshotStreams::Id, credsIssuerConfig), // make_unique(Id, "ranked-video-stream-priorities-list", Attributes::RankedVideoStreamPrioritiesList::Id, credsIssuerConfig), // make_unique(Id, "soft-recording-privacy-mode-enabled", Attributes::SoftRecordingPrivacyModeEnabled::Id, credsIssuerConfig), // make_unique(Id, "soft-livestream-privacy-mode-enabled", Attributes::SoftLivestreamPrivacyModeEnabled::Id, credsIssuerConfig), // make_unique(Id, "hard-privacy-mode-on", Attributes::HardPrivacyModeOn::Id, credsIssuerConfig), // make_unique(Id, "night-vision", Attributes::NightVision::Id, credsIssuerConfig), // make_unique(Id, "night-vision-illum", Attributes::NightVisionIllum::Id, credsIssuerConfig), // make_unique(Id, "awbenabled", Attributes::AWBEnabled::Id, credsIssuerConfig), // make_unique(Id, "auto-shutter-speed-enabled", Attributes::AutoShutterSpeedEnabled::Id, credsIssuerConfig), // make_unique(Id, "auto-isoenabled", Attributes::AutoISOEnabled::Id, credsIssuerConfig), // make_unique(Id, "viewport", Attributes::Viewport::Id, credsIssuerConfig), // make_unique(Id, "speaker-muted", Attributes::SpeakerMuted::Id, credsIssuerConfig), // make_unique(Id, "speaker-volume-level", Attributes::SpeakerVolumeLevel::Id, credsIssuerConfig), // make_unique(Id, "speaker-max-level", Attributes::SpeakerMaxLevel::Id, credsIssuerConfig), // make_unique(Id, "speaker-min-level", Attributes::SpeakerMinLevel::Id, credsIssuerConfig), // make_unique(Id, "microphone-muted", Attributes::MicrophoneMuted::Id, credsIssuerConfig), // make_unique(Id, "microphone-volume-level", Attributes::MicrophoneVolumeLevel::Id, credsIssuerConfig), // make_unique(Id, "microphone-max-level", Attributes::MicrophoneMaxLevel::Id, credsIssuerConfig), // make_unique(Id, "microphone-min-level", Attributes::MicrophoneMinLevel::Id, credsIssuerConfig), // make_unique(Id, "microphone-agcenabled", Attributes::MicrophoneAGCEnabled::Id, credsIssuerConfig), // make_unique(Id, "image-rotation", Attributes::ImageRotation::Id, credsIssuerConfig), // make_unique(Id, "image-flip-horizontal", Attributes::ImageFlipHorizontal::Id, credsIssuerConfig), // make_unique(Id, "image-flip-vertical", Attributes::ImageFlipVertical::Id, credsIssuerConfig), // make_unique(Id, "local-video-recording-enabled", Attributes::LocalVideoRecordingEnabled::Id, credsIssuerConfig), // make_unique(Id, "local-snapshot-recording-enabled", Attributes::LocalSnapshotRecordingEnabled::Id, credsIssuerConfig), // make_unique(Id, "status-light-enabled", Attributes::StatusLightEnabled::Id, credsIssuerConfig), // make_unique(Id, "status-light-brightness", Attributes::StatusLightBrightness::Id, credsIssuerConfig), // make_unique(Id, "depth-sensor-status", Attributes::DepthSensorStatus::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "video-stream-changed", Events::VideoStreamChanged::Id, credsIssuerConfig), // make_unique(Id, "audio-stream-changed", Events::AudioStreamChanged::Id, credsIssuerConfig), // make_unique(Id, "snapshot-stream-changed", Events::SnapshotStreamChanged::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "video-stream-changed", Events::VideoStreamChanged::Id, credsIssuerConfig), // make_unique(Id, "audio-stream-changed", Events::AudioStreamChanged::Id, credsIssuerConfig), // make_unique(Id, "snapshot-stream-changed", Events::SnapshotStreamChanged::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterWebRTCTransportProvider(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::WebRTCTransportProvider; const char * clusterName = "WebRTCTransportProvider"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "current-sessions", Attributes::CurrentSessions::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "current-sessions", Attributes::CurrentSessions::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "current-sessions", Attributes::CurrentSessions::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterWebRTCTransportRequestor(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::WebRTCTransportRequestor; const char * clusterName = "WebRTCTransportRequestor"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "current-sessions", Attributes::CurrentSessions::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "current-sessions", Attributes::CurrentSessions::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "current-sessions", Attributes::CurrentSessions::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterChime(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::Chime; const char * clusterName = "Chime"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "installed-chime-sounds", Attributes::InstalledChimeSounds::Id, credsIssuerConfig), // make_unique(Id, "active-chime-id", Attributes::ActiveChimeID::Id, credsIssuerConfig), // make_unique(Id, "enabled", Attributes::Enabled::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "installed-chime-sounds", Attributes::InstalledChimeSounds::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "active-chime-id", 0, UINT8_MAX, Attributes::ActiveChimeID::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "enabled", 0, 1, Attributes::Enabled::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "installed-chime-sounds", Attributes::InstalledChimeSounds::Id, credsIssuerConfig), // make_unique(Id, "active-chime-id", Attributes::ActiveChimeID::Id, credsIssuerConfig), // make_unique(Id, "enabled", Attributes::Enabled::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterEcosystemInformation(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::EcosystemInformation; const char * clusterName = "EcosystemInformation"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "device-directory", Attributes::DeviceDirectory::Id, credsIssuerConfig), // make_unique(Id, "location-directory", Attributes::LocationDirectory::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "device-directory", Attributes::DeviceDirectory::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "location-directory", Attributes::LocationDirectory::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "device-directory", Attributes::DeviceDirectory::Id, credsIssuerConfig), // make_unique(Id, "location-directory", Attributes::LocationDirectory::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterCommissionerControl(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::CommissionerControl; const char * clusterName = "CommissionerControl"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-device-categories", Attributes::SupportedDeviceCategories::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "supported-device-categories", 0, UINT32_MAX, Attributes::SupportedDeviceCategories::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-device-categories", Attributes::SupportedDeviceCategories::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "commissioning-request-result", Events::CommissioningRequestResult::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "commissioning-request-result", Events::CommissioningRequestResult::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterUnitTesting(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::UnitTesting; const char * clusterName = "UnitTesting"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "boolean", Attributes::Boolean::Id, credsIssuerConfig), // make_unique(Id, "bitmap8", Attributes::Bitmap8::Id, credsIssuerConfig), // make_unique(Id, "bitmap16", Attributes::Bitmap16::Id, credsIssuerConfig), // make_unique(Id, "bitmap32", Attributes::Bitmap32::Id, credsIssuerConfig), // make_unique(Id, "bitmap64", Attributes::Bitmap64::Id, credsIssuerConfig), // make_unique(Id, "int8u", Attributes::Int8u::Id, credsIssuerConfig), // make_unique(Id, "int16u", Attributes::Int16u::Id, credsIssuerConfig), // make_unique(Id, "int24u", Attributes::Int24u::Id, credsIssuerConfig), // make_unique(Id, "int32u", Attributes::Int32u::Id, credsIssuerConfig), // make_unique(Id, "int40u", Attributes::Int40u::Id, credsIssuerConfig), // make_unique(Id, "int48u", Attributes::Int48u::Id, credsIssuerConfig), // make_unique(Id, "int56u", Attributes::Int56u::Id, credsIssuerConfig), // make_unique(Id, "int64u", Attributes::Int64u::Id, credsIssuerConfig), // make_unique(Id, "int8s", Attributes::Int8s::Id, credsIssuerConfig), // make_unique(Id, "int16s", Attributes::Int16s::Id, credsIssuerConfig), // make_unique(Id, "int24s", Attributes::Int24s::Id, credsIssuerConfig), // make_unique(Id, "int32s", Attributes::Int32s::Id, credsIssuerConfig), // make_unique(Id, "int40s", Attributes::Int40s::Id, credsIssuerConfig), // make_unique(Id, "int48s", Attributes::Int48s::Id, credsIssuerConfig), // make_unique(Id, "int56s", Attributes::Int56s::Id, credsIssuerConfig), // make_unique(Id, "int64s", Attributes::Int64s::Id, credsIssuerConfig), // make_unique(Id, "enum8", Attributes::Enum8::Id, credsIssuerConfig), // make_unique(Id, "enum16", Attributes::Enum16::Id, credsIssuerConfig), // make_unique(Id, "float-single", Attributes::FloatSingle::Id, credsIssuerConfig), // make_unique(Id, "float-double", Attributes::FloatDouble::Id, credsIssuerConfig), // make_unique(Id, "octet-string", Attributes::OctetString::Id, credsIssuerConfig), // make_unique(Id, "list-int8u", Attributes::ListInt8u::Id, credsIssuerConfig), // make_unique(Id, "list-octet-string", Attributes::ListOctetString::Id, credsIssuerConfig), // make_unique(Id, "list-struct-octet-string", Attributes::ListStructOctetString::Id, credsIssuerConfig), // make_unique(Id, "long-octet-string", Attributes::LongOctetString::Id, credsIssuerConfig), // make_unique(Id, "char-string", Attributes::CharString::Id, credsIssuerConfig), // make_unique(Id, "long-char-string", Attributes::LongCharString::Id, credsIssuerConfig), // make_unique(Id, "epoch-us", Attributes::EpochUs::Id, credsIssuerConfig), // make_unique(Id, "epoch-s", Attributes::EpochS::Id, credsIssuerConfig), // make_unique(Id, "vendor-id", Attributes::VendorId::Id, credsIssuerConfig), // make_unique(Id, "list-nullables-and-optionals-struct", Attributes::ListNullablesAndOptionalsStruct::Id, credsIssuerConfig), // make_unique(Id, "enum-attr", Attributes::EnumAttr::Id, credsIssuerConfig), // make_unique(Id, "struct-attr", Attributes::StructAttr::Id, credsIssuerConfig), // make_unique(Id, "range-restricted-int8u", Attributes::RangeRestrictedInt8u::Id, credsIssuerConfig), // make_unique(Id, "range-restricted-int8s", Attributes::RangeRestrictedInt8s::Id, credsIssuerConfig), // make_unique(Id, "range-restricted-int16u", Attributes::RangeRestrictedInt16u::Id, credsIssuerConfig), // make_unique(Id, "range-restricted-int16s", Attributes::RangeRestrictedInt16s::Id, credsIssuerConfig), // make_unique(Id, "list-long-octet-string", Attributes::ListLongOctetString::Id, credsIssuerConfig), // make_unique(Id, "list-fabric-scoped", Attributes::ListFabricScoped::Id, credsIssuerConfig), // make_unique(Id, "timed-write-boolean", Attributes::TimedWriteBoolean::Id, credsIssuerConfig), // make_unique(Id, "general-error-boolean", Attributes::GeneralErrorBoolean::Id, credsIssuerConfig), // make_unique(Id, "cluster-error-boolean", Attributes::ClusterErrorBoolean::Id, credsIssuerConfig), // make_unique(Id, "global-enum", Attributes::GlobalEnum::Id, credsIssuerConfig), // make_unique(Id, "global-struct", Attributes::GlobalStruct::Id, credsIssuerConfig), // make_unique(Id, "unsupported", Attributes::Unsupported::Id, credsIssuerConfig), // make_unique(Id, "read-failure-code", Attributes::ReadFailureCode::Id, credsIssuerConfig), // make_unique(Id, "failure-int32u", Attributes::FailureInt32U::Id, credsIssuerConfig), // make_unique(Id, "nullable-boolean", Attributes::NullableBoolean::Id, credsIssuerConfig), // make_unique(Id, "nullable-bitmap8", Attributes::NullableBitmap8::Id, credsIssuerConfig), // make_unique(Id, "nullable-bitmap16", Attributes::NullableBitmap16::Id, credsIssuerConfig), // make_unique(Id, "nullable-bitmap32", Attributes::NullableBitmap32::Id, credsIssuerConfig), // make_unique(Id, "nullable-bitmap64", Attributes::NullableBitmap64::Id, credsIssuerConfig), // make_unique(Id, "nullable-int8u", Attributes::NullableInt8u::Id, credsIssuerConfig), // make_unique(Id, "nullable-int16u", Attributes::NullableInt16u::Id, credsIssuerConfig), // make_unique(Id, "nullable-int24u", Attributes::NullableInt24u::Id, credsIssuerConfig), // make_unique(Id, "nullable-int32u", Attributes::NullableInt32u::Id, credsIssuerConfig), // make_unique(Id, "nullable-int40u", Attributes::NullableInt40u::Id, credsIssuerConfig), // make_unique(Id, "nullable-int48u", Attributes::NullableInt48u::Id, credsIssuerConfig), // make_unique(Id, "nullable-int56u", Attributes::NullableInt56u::Id, credsIssuerConfig), // make_unique(Id, "nullable-int64u", Attributes::NullableInt64u::Id, credsIssuerConfig), // make_unique(Id, "nullable-int8s", Attributes::NullableInt8s::Id, credsIssuerConfig), // make_unique(Id, "nullable-int16s", Attributes::NullableInt16s::Id, credsIssuerConfig), // make_unique(Id, "nullable-int24s", Attributes::NullableInt24s::Id, credsIssuerConfig), // make_unique(Id, "nullable-int32s", Attributes::NullableInt32s::Id, credsIssuerConfig), // make_unique(Id, "nullable-int40s", Attributes::NullableInt40s::Id, credsIssuerConfig), // make_unique(Id, "nullable-int48s", Attributes::NullableInt48s::Id, credsIssuerConfig), // make_unique(Id, "nullable-int56s", Attributes::NullableInt56s::Id, credsIssuerConfig), // make_unique(Id, "nullable-int64s", Attributes::NullableInt64s::Id, credsIssuerConfig), // make_unique(Id, "nullable-enum8", Attributes::NullableEnum8::Id, credsIssuerConfig), // make_unique(Id, "nullable-enum16", Attributes::NullableEnum16::Id, credsIssuerConfig), // make_unique(Id, "nullable-float-single", Attributes::NullableFloatSingle::Id, credsIssuerConfig), // make_unique(Id, "nullable-float-double", Attributes::NullableFloatDouble::Id, credsIssuerConfig), // make_unique(Id, "nullable-octet-string", Attributes::NullableOctetString::Id, credsIssuerConfig), // make_unique(Id, "nullable-char-string", Attributes::NullableCharString::Id, credsIssuerConfig), // make_unique(Id, "nullable-enum-attr", Attributes::NullableEnumAttr::Id, credsIssuerConfig), // make_unique(Id, "nullable-struct", Attributes::NullableStruct::Id, credsIssuerConfig), // make_unique(Id, "nullable-range-restricted-int8u", Attributes::NullableRangeRestrictedInt8u::Id, credsIssuerConfig), // make_unique(Id, "nullable-range-restricted-int8s", Attributes::NullableRangeRestrictedInt8s::Id, credsIssuerConfig), // make_unique(Id, "nullable-range-restricted-int16u", Attributes::NullableRangeRestrictedInt16u::Id, credsIssuerConfig), // make_unique(Id, "nullable-range-restricted-int16s", Attributes::NullableRangeRestrictedInt16s::Id, credsIssuerConfig), // make_unique(Id, "write-only-int8u", Attributes::WriteOnlyInt8u::Id, credsIssuerConfig), // make_unique(Id, "nullable-global-enum", Attributes::NullableGlobalEnum::Id, credsIssuerConfig), // make_unique(Id, "nullable-global-struct", Attributes::NullableGlobalStruct::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique(Id, "mei-int8u", Attributes::MeiInt8u::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "boolean", 0, 1, Attributes::Boolean::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "bitmap8", 0, UINT8_MAX, Attributes::Bitmap8::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "bitmap16", 0, UINT16_MAX, Attributes::Bitmap16::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "bitmap32", 0, UINT32_MAX, Attributes::Bitmap32::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "bitmap64", 0, UINT64_MAX, Attributes::Bitmap64::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "int8u", 0, UINT8_MAX, Attributes::Int8u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "int16u", 0, UINT16_MAX, Attributes::Int16u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "int24u", 0, UINT32_MAX, Attributes::Int24u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "int32u", 0, UINT32_MAX, Attributes::Int32u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "int40u", 0, UINT64_MAX, Attributes::Int40u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "int48u", 0, UINT64_MAX, Attributes::Int48u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "int56u", 0, UINT64_MAX, Attributes::Int56u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "int64u", 0, UINT64_MAX, Attributes::Int64u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "int8s", INT8_MIN, INT8_MAX, Attributes::Int8s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "int16s", INT16_MIN, INT16_MAX, Attributes::Int16s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "int24s", INT32_MIN, INT32_MAX, Attributes::Int24s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "int32s", INT32_MIN, INT32_MAX, Attributes::Int32s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "int40s", INT64_MIN, INT64_MAX, Attributes::Int40s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "int48s", INT64_MIN, INT64_MAX, Attributes::Int48s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "int56s", INT64_MIN, INT64_MAX, Attributes::Int56s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "int64s", INT64_MIN, INT64_MAX, Attributes::Int64s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "enum8", 0, UINT8_MAX, Attributes::Enum8::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "enum16", 0, UINT16_MAX, Attributes::Enum16::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "float-single", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::FloatSingle::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "float-double", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::FloatDouble::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "octet-string", Attributes::OctetString::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "list-int8u", Attributes::ListInt8u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "list-octet-string", Attributes::ListOctetString::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "list-struct-octet-string", Attributes::ListStructOctetString::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "long-octet-string", Attributes::LongOctetString::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "char-string", Attributes::CharString::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "long-char-string", Attributes::LongCharString::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "epoch-us", 0, UINT64_MAX, Attributes::EpochUs::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "epoch-s", 0, UINT32_MAX, Attributes::EpochS::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "vendor-id", 0, UINT16_MAX, Attributes::VendorId::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "list-nullables-and-optionals-struct", Attributes::ListNullablesAndOptionalsStruct::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "enum-attr", 0, UINT8_MAX, Attributes::EnumAttr::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "struct-attr", Attributes::StructAttr::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "range-restricted-int8u", 0, UINT8_MAX, Attributes::RangeRestrictedInt8u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "range-restricted-int8s", INT8_MIN, INT8_MAX, Attributes::RangeRestrictedInt8s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "range-restricted-int16u", 0, UINT16_MAX, Attributes::RangeRestrictedInt16u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "range-restricted-int16s", INT16_MIN, INT16_MAX, Attributes::RangeRestrictedInt16s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "list-long-octet-string", Attributes::ListLongOctetString::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "list-fabric-scoped", Attributes::ListFabricScoped::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "timed-write-boolean", 0, 1, Attributes::TimedWriteBoolean::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "general-error-boolean", 0, 1, Attributes::GeneralErrorBoolean::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "cluster-error-boolean", 0, 1, Attributes::ClusterErrorBoolean::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "global-enum", 0, UINT8_MAX, Attributes::GlobalEnum::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>( Id, "global-struct", Attributes::GlobalStruct::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "unsupported", 0, 1, Attributes::Unsupported::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "read-failure-code", 0, UINT8_MAX, Attributes::ReadFailureCode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "failure-int32u", 0, UINT32_MAX, Attributes::FailureInt32U::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-boolean", 0, 1, Attributes::NullableBoolean::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique< WriteAttribute>>>( Id, "nullable-bitmap8", 0, UINT8_MAX, Attributes::NullableBitmap8::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique< WriteAttribute>>>( Id, "nullable-bitmap16", 0, UINT16_MAX, Attributes::NullableBitmap16::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique< WriteAttribute>>>( Id, "nullable-bitmap32", 0, UINT32_MAX, Attributes::NullableBitmap32::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique< WriteAttribute>>>( Id, "nullable-bitmap64", 0, UINT64_MAX, Attributes::NullableBitmap64::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-int8u", 0, UINT8_MAX, Attributes::NullableInt8u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-int16u", 0, UINT16_MAX, Attributes::NullableInt16u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-int24u", 0, UINT32_MAX, Attributes::NullableInt24u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-int32u", 0, UINT32_MAX, Attributes::NullableInt32u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-int40u", 0, UINT64_MAX, Attributes::NullableInt40u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-int48u", 0, UINT64_MAX, Attributes::NullableInt48u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-int56u", 0, UINT64_MAX, Attributes::NullableInt56u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-int64u", 0, UINT64_MAX, Attributes::NullableInt64u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "nullable-int8s", INT8_MIN, INT8_MAX, Attributes::NullableInt8s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "nullable-int16s", INT16_MIN, INT16_MAX, Attributes::NullableInt16s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "nullable-int24s", INT32_MIN, INT32_MAX, Attributes::NullableInt24s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "nullable-int32s", INT32_MIN, INT32_MAX, Attributes::NullableInt32s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "nullable-int40s", INT64_MIN, INT64_MAX, Attributes::NullableInt40s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "nullable-int48s", INT64_MIN, INT64_MAX, Attributes::NullableInt48s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "nullable-int56s", INT64_MIN, INT64_MAX, Attributes::NullableInt56s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "nullable-int64s", INT64_MIN, INT64_MAX, Attributes::NullableInt64s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-enum8", 0, UINT8_MAX, Attributes::NullableEnum8::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-enum16", 0, UINT16_MAX, Attributes::NullableEnum16::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-float-single", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::NullableFloatSingle::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-float-double", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), Attributes::NullableFloatDouble::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-octet-string", Attributes::NullableOctetString::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-char-string", Attributes::NullableCharString::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-enum-attr", 0, UINT8_MAX, Attributes::NullableEnumAttr::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "nullable-struct", Attributes::NullableStruct::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "nullable-range-restricted-int8u", 0, UINT8_MAX, Attributes::NullableRangeRestrictedInt8u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "nullable-range-restricted-int8s", INT8_MIN, INT8_MAX, Attributes::NullableRangeRestrictedInt8s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "nullable-range-restricted-int16u", 0, UINT16_MAX, Attributes::NullableRangeRestrictedInt16u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-range-restricted-int16s", INT16_MIN, INT16_MAX, Attributes::NullableRangeRestrictedInt16s::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "write-only-int8u", 0, UINT8_MAX, Attributes::WriteOnlyInt8u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "nullable-global-enum", 0, UINT8_MAX, Attributes::NullableGlobalEnum::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique< WriteAttributeAsComplex>>( Id, "nullable-global-struct", Attributes::NullableGlobalStruct::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "mei-int8u", 0, UINT8_MAX, Attributes::MeiInt8u::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "boolean", Attributes::Boolean::Id, credsIssuerConfig), // make_unique(Id, "bitmap8", Attributes::Bitmap8::Id, credsIssuerConfig), // make_unique(Id, "bitmap16", Attributes::Bitmap16::Id, credsIssuerConfig), // make_unique(Id, "bitmap32", Attributes::Bitmap32::Id, credsIssuerConfig), // make_unique(Id, "bitmap64", Attributes::Bitmap64::Id, credsIssuerConfig), // make_unique(Id, "int8u", Attributes::Int8u::Id, credsIssuerConfig), // make_unique(Id, "int16u", Attributes::Int16u::Id, credsIssuerConfig), // make_unique(Id, "int24u", Attributes::Int24u::Id, credsIssuerConfig), // make_unique(Id, "int32u", Attributes::Int32u::Id, credsIssuerConfig), // make_unique(Id, "int40u", Attributes::Int40u::Id, credsIssuerConfig), // make_unique(Id, "int48u", Attributes::Int48u::Id, credsIssuerConfig), // make_unique(Id, "int56u", Attributes::Int56u::Id, credsIssuerConfig), // make_unique(Id, "int64u", Attributes::Int64u::Id, credsIssuerConfig), // make_unique(Id, "int8s", Attributes::Int8s::Id, credsIssuerConfig), // make_unique(Id, "int16s", Attributes::Int16s::Id, credsIssuerConfig), // make_unique(Id, "int24s", Attributes::Int24s::Id, credsIssuerConfig), // make_unique(Id, "int32s", Attributes::Int32s::Id, credsIssuerConfig), // make_unique(Id, "int40s", Attributes::Int40s::Id, credsIssuerConfig), // make_unique(Id, "int48s", Attributes::Int48s::Id, credsIssuerConfig), // make_unique(Id, "int56s", Attributes::Int56s::Id, credsIssuerConfig), // make_unique(Id, "int64s", Attributes::Int64s::Id, credsIssuerConfig), // make_unique(Id, "enum8", Attributes::Enum8::Id, credsIssuerConfig), // make_unique(Id, "enum16", Attributes::Enum16::Id, credsIssuerConfig), // make_unique(Id, "float-single", Attributes::FloatSingle::Id, credsIssuerConfig), // make_unique(Id, "float-double", Attributes::FloatDouble::Id, credsIssuerConfig), // make_unique(Id, "octet-string", Attributes::OctetString::Id, credsIssuerConfig), // make_unique(Id, "list-int8u", Attributes::ListInt8u::Id, credsIssuerConfig), // make_unique(Id, "list-octet-string", Attributes::ListOctetString::Id, credsIssuerConfig), // make_unique(Id, "list-struct-octet-string", Attributes::ListStructOctetString::Id, credsIssuerConfig), // make_unique(Id, "long-octet-string", Attributes::LongOctetString::Id, credsIssuerConfig), // make_unique(Id, "char-string", Attributes::CharString::Id, credsIssuerConfig), // make_unique(Id, "long-char-string", Attributes::LongCharString::Id, credsIssuerConfig), // make_unique(Id, "epoch-us", Attributes::EpochUs::Id, credsIssuerConfig), // make_unique(Id, "epoch-s", Attributes::EpochS::Id, credsIssuerConfig), // make_unique(Id, "vendor-id", Attributes::VendorId::Id, credsIssuerConfig), // make_unique(Id, "list-nullables-and-optionals-struct", Attributes::ListNullablesAndOptionalsStruct::Id, credsIssuerConfig), // make_unique(Id, "enum-attr", Attributes::EnumAttr::Id, credsIssuerConfig), // make_unique(Id, "struct-attr", Attributes::StructAttr::Id, credsIssuerConfig), // make_unique(Id, "range-restricted-int8u", Attributes::RangeRestrictedInt8u::Id, credsIssuerConfig), // make_unique(Id, "range-restricted-int8s", Attributes::RangeRestrictedInt8s::Id, credsIssuerConfig), // make_unique(Id, "range-restricted-int16u", Attributes::RangeRestrictedInt16u::Id, credsIssuerConfig), // make_unique(Id, "range-restricted-int16s", Attributes::RangeRestrictedInt16s::Id, credsIssuerConfig), // make_unique(Id, "list-long-octet-string", Attributes::ListLongOctetString::Id, credsIssuerConfig), // make_unique(Id, "list-fabric-scoped", Attributes::ListFabricScoped::Id, credsIssuerConfig), // make_unique(Id, "timed-write-boolean", Attributes::TimedWriteBoolean::Id, credsIssuerConfig), // make_unique(Id, "general-error-boolean", Attributes::GeneralErrorBoolean::Id, credsIssuerConfig), // make_unique(Id, "cluster-error-boolean", Attributes::ClusterErrorBoolean::Id, credsIssuerConfig), // make_unique(Id, "global-enum", Attributes::GlobalEnum::Id, credsIssuerConfig), // make_unique(Id, "global-struct", Attributes::GlobalStruct::Id, credsIssuerConfig), // make_unique(Id, "unsupported", Attributes::Unsupported::Id, credsIssuerConfig), // make_unique(Id, "read-failure-code", Attributes::ReadFailureCode::Id, credsIssuerConfig), // make_unique(Id, "failure-int32u", Attributes::FailureInt32U::Id, credsIssuerConfig), // make_unique(Id, "nullable-boolean", Attributes::NullableBoolean::Id, credsIssuerConfig), // make_unique(Id, "nullable-bitmap8", Attributes::NullableBitmap8::Id, credsIssuerConfig), // make_unique(Id, "nullable-bitmap16", Attributes::NullableBitmap16::Id, credsIssuerConfig), // make_unique(Id, "nullable-bitmap32", Attributes::NullableBitmap32::Id, credsIssuerConfig), // make_unique(Id, "nullable-bitmap64", Attributes::NullableBitmap64::Id, credsIssuerConfig), // make_unique(Id, "nullable-int8u", Attributes::NullableInt8u::Id, credsIssuerConfig), // make_unique(Id, "nullable-int16u", Attributes::NullableInt16u::Id, credsIssuerConfig), // make_unique(Id, "nullable-int24u", Attributes::NullableInt24u::Id, credsIssuerConfig), // make_unique(Id, "nullable-int32u", Attributes::NullableInt32u::Id, credsIssuerConfig), // make_unique(Id, "nullable-int40u", Attributes::NullableInt40u::Id, credsIssuerConfig), // make_unique(Id, "nullable-int48u", Attributes::NullableInt48u::Id, credsIssuerConfig), // make_unique(Id, "nullable-int56u", Attributes::NullableInt56u::Id, credsIssuerConfig), // make_unique(Id, "nullable-int64u", Attributes::NullableInt64u::Id, credsIssuerConfig), // make_unique(Id, "nullable-int8s", Attributes::NullableInt8s::Id, credsIssuerConfig), // make_unique(Id, "nullable-int16s", Attributes::NullableInt16s::Id, credsIssuerConfig), // make_unique(Id, "nullable-int24s", Attributes::NullableInt24s::Id, credsIssuerConfig), // make_unique(Id, "nullable-int32s", Attributes::NullableInt32s::Id, credsIssuerConfig), // make_unique(Id, "nullable-int40s", Attributes::NullableInt40s::Id, credsIssuerConfig), // make_unique(Id, "nullable-int48s", Attributes::NullableInt48s::Id, credsIssuerConfig), // make_unique(Id, "nullable-int56s", Attributes::NullableInt56s::Id, credsIssuerConfig), // make_unique(Id, "nullable-int64s", Attributes::NullableInt64s::Id, credsIssuerConfig), // make_unique(Id, "nullable-enum8", Attributes::NullableEnum8::Id, credsIssuerConfig), // make_unique(Id, "nullable-enum16", Attributes::NullableEnum16::Id, credsIssuerConfig), // make_unique(Id, "nullable-float-single", Attributes::NullableFloatSingle::Id, credsIssuerConfig), // make_unique(Id, "nullable-float-double", Attributes::NullableFloatDouble::Id, credsIssuerConfig), // make_unique(Id, "nullable-octet-string", Attributes::NullableOctetString::Id, credsIssuerConfig), // make_unique(Id, "nullable-char-string", Attributes::NullableCharString::Id, credsIssuerConfig), // make_unique(Id, "nullable-enum-attr", Attributes::NullableEnumAttr::Id, credsIssuerConfig), // make_unique(Id, "nullable-struct", Attributes::NullableStruct::Id, credsIssuerConfig), // make_unique(Id, "nullable-range-restricted-int8u", Attributes::NullableRangeRestrictedInt8u::Id, credsIssuerConfig), // make_unique(Id, "nullable-range-restricted-int8s", Attributes::NullableRangeRestrictedInt8s::Id, credsIssuerConfig), // make_unique(Id, "nullable-range-restricted-int16u", Attributes::NullableRangeRestrictedInt16u::Id, credsIssuerConfig), // make_unique(Id, "nullable-range-restricted-int16s", Attributes::NullableRangeRestrictedInt16s::Id, credsIssuerConfig), // make_unique(Id, "write-only-int8u", Attributes::WriteOnlyInt8u::Id, credsIssuerConfig), // make_unique(Id, "nullable-global-enum", Attributes::NullableGlobalEnum::Id, credsIssuerConfig), // make_unique(Id, "nullable-global-struct", Attributes::NullableGlobalStruct::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique(Id, "mei-int8u", Attributes::MeiInt8u::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "test-event", Events::TestEvent::Id, credsIssuerConfig), // make_unique(Id, "test-fabric-scoped-event", Events::TestFabricScopedEvent::Id, credsIssuerConfig), // make_unique(Id, "test-different-vendor-mei-event", Events::TestDifferentVendorMeiEvent::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "test-event", Events::TestEvent::Id, credsIssuerConfig), // make_unique(Id, "test-fabric-scoped-event", Events::TestFabricScopedEvent::Id, credsIssuerConfig), // make_unique(Id, "test-different-vendor-mei-event", Events::TestDifferentVendorMeiEvent::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterFaultInjection(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::FaultInjection; const char * clusterName = "FaultInjection"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterSampleMei(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { using namespace chip::app::Clusters::SampleMei; const char * clusterName = "SampleMei"; commands_list clusterCommands = { // // Commands // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // make_unique(Id, "flip-flop", Attributes::FlipFlop::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // make_unique>(Id, "flip-flop", 0, 1, Attributes::FlipFlop::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "event-list", Attributes::EventList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "attribute-list", Attributes::AttributeList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "feature-map", 0, UINT32_MAX, Attributes::FeatureMap::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "cluster-revision", 0, UINT16_MAX, Attributes::ClusterRevision::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "flip-flop", Attributes::FlipFlop::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // // // Events // make_unique(Id, credsIssuerConfig), // make_unique(Id, "ping-count-event", Events::PingCountEvent::Id, credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "ping-count-event", Events::PingCountEvent::Id, credsIssuerConfig), // }; commands.RegisterCluster(clusterName, clusterCommands); } void registerClusterAny(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { const char * clusterName = "Any"; commands_list clusterCommands = { make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique>(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // }; commands.RegisterCommandSet(clusterName, clusterCommands, "Commands for sending IM messages based on cluster id, not cluster name."); } void registerClusters(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { registerClusterAny(commands, credsIssuerConfig); registerClusterIdentify(commands, credsIssuerConfig); registerClusterGroups(commands, credsIssuerConfig); registerClusterOnOff(commands, credsIssuerConfig); registerClusterLevelControl(commands, credsIssuerConfig); registerClusterPulseWidthModulation(commands, credsIssuerConfig); registerClusterDescriptor(commands, credsIssuerConfig); registerClusterBinding(commands, credsIssuerConfig); registerClusterAccessControl(commands, credsIssuerConfig); registerClusterActions(commands, credsIssuerConfig); registerClusterBasicInformation(commands, credsIssuerConfig); registerClusterOtaSoftwareUpdateProvider(commands, credsIssuerConfig); registerClusterOtaSoftwareUpdateRequestor(commands, credsIssuerConfig); registerClusterLocalizationConfiguration(commands, credsIssuerConfig); registerClusterTimeFormatLocalization(commands, credsIssuerConfig); registerClusterUnitLocalization(commands, credsIssuerConfig); registerClusterPowerSourceConfiguration(commands, credsIssuerConfig); registerClusterPowerSource(commands, credsIssuerConfig); registerClusterGeneralCommissioning(commands, credsIssuerConfig); registerClusterNetworkCommissioning(commands, credsIssuerConfig); registerClusterDiagnosticLogs(commands, credsIssuerConfig); registerClusterGeneralDiagnostics(commands, credsIssuerConfig); registerClusterSoftwareDiagnostics(commands, credsIssuerConfig); registerClusterThreadNetworkDiagnostics(commands, credsIssuerConfig); registerClusterWiFiNetworkDiagnostics(commands, credsIssuerConfig); registerClusterEthernetNetworkDiagnostics(commands, credsIssuerConfig); registerClusterTimeSynchronization(commands, credsIssuerConfig); registerClusterBridgedDeviceBasicInformation(commands, credsIssuerConfig); registerClusterSwitch(commands, credsIssuerConfig); registerClusterAdministratorCommissioning(commands, credsIssuerConfig); registerClusterOperationalCredentials(commands, credsIssuerConfig); registerClusterGroupKeyManagement(commands, credsIssuerConfig); registerClusterFixedLabel(commands, credsIssuerConfig); registerClusterUserLabel(commands, credsIssuerConfig); registerClusterProxyConfiguration(commands, credsIssuerConfig); registerClusterProxyDiscovery(commands, credsIssuerConfig); registerClusterProxyValid(commands, credsIssuerConfig); registerClusterBooleanState(commands, credsIssuerConfig); registerClusterIcdManagement(commands, credsIssuerConfig); registerClusterTimer(commands, credsIssuerConfig); registerClusterOvenCavityOperationalState(commands, credsIssuerConfig); registerClusterOvenMode(commands, credsIssuerConfig); registerClusterLaundryDryerControls(commands, credsIssuerConfig); registerClusterModeSelect(commands, credsIssuerConfig); registerClusterLaundryWasherMode(commands, credsIssuerConfig); registerClusterRefrigeratorAndTemperatureControlledCabinetMode(commands, credsIssuerConfig); registerClusterLaundryWasherControls(commands, credsIssuerConfig); registerClusterRvcRunMode(commands, credsIssuerConfig); registerClusterRvcCleanMode(commands, credsIssuerConfig); registerClusterTemperatureControl(commands, credsIssuerConfig); registerClusterRefrigeratorAlarm(commands, credsIssuerConfig); registerClusterDishwasherMode(commands, credsIssuerConfig); registerClusterAirQuality(commands, credsIssuerConfig); registerClusterSmokeCoAlarm(commands, credsIssuerConfig); registerClusterDishwasherAlarm(commands, credsIssuerConfig); registerClusterMicrowaveOvenMode(commands, credsIssuerConfig); registerClusterMicrowaveOvenControl(commands, credsIssuerConfig); registerClusterOperationalState(commands, credsIssuerConfig); registerClusterRvcOperationalState(commands, credsIssuerConfig); registerClusterScenesManagement(commands, credsIssuerConfig); registerClusterHepaFilterMonitoring(commands, credsIssuerConfig); registerClusterActivatedCarbonFilterMonitoring(commands, credsIssuerConfig); registerClusterBooleanStateConfiguration(commands, credsIssuerConfig); registerClusterValveConfigurationAndControl(commands, credsIssuerConfig); registerClusterElectricalPowerMeasurement(commands, credsIssuerConfig); registerClusterElectricalEnergyMeasurement(commands, credsIssuerConfig); registerClusterWaterHeaterManagement(commands, credsIssuerConfig); registerClusterDemandResponseLoadControl(commands, credsIssuerConfig); registerClusterMessages(commands, credsIssuerConfig); registerClusterDeviceEnergyManagement(commands, credsIssuerConfig); registerClusterEnergyEvse(commands, credsIssuerConfig); registerClusterEnergyPreference(commands, credsIssuerConfig); registerClusterPowerTopology(commands, credsIssuerConfig); registerClusterEnergyEvseMode(commands, credsIssuerConfig); registerClusterWaterHeaterMode(commands, credsIssuerConfig); registerClusterDeviceEnergyManagementMode(commands, credsIssuerConfig); registerClusterDoorLock(commands, credsIssuerConfig); registerClusterWindowCovering(commands, credsIssuerConfig); registerClusterServiceArea(commands, credsIssuerConfig); registerClusterPumpConfigurationAndControl(commands, credsIssuerConfig); registerClusterThermostat(commands, credsIssuerConfig); registerClusterFanControl(commands, credsIssuerConfig); registerClusterThermostatUserInterfaceConfiguration(commands, credsIssuerConfig); registerClusterColorControl(commands, credsIssuerConfig); registerClusterBallastConfiguration(commands, credsIssuerConfig); registerClusterIlluminanceMeasurement(commands, credsIssuerConfig); registerClusterTemperatureMeasurement(commands, credsIssuerConfig); registerClusterPressureMeasurement(commands, credsIssuerConfig); registerClusterFlowMeasurement(commands, credsIssuerConfig); registerClusterRelativeHumidityMeasurement(commands, credsIssuerConfig); registerClusterOccupancySensing(commands, credsIssuerConfig); registerClusterCarbonMonoxideConcentrationMeasurement(commands, credsIssuerConfig); registerClusterCarbonDioxideConcentrationMeasurement(commands, credsIssuerConfig); registerClusterNitrogenDioxideConcentrationMeasurement(commands, credsIssuerConfig); registerClusterOzoneConcentrationMeasurement(commands, credsIssuerConfig); registerClusterPm25ConcentrationMeasurement(commands, credsIssuerConfig); registerClusterFormaldehydeConcentrationMeasurement(commands, credsIssuerConfig); registerClusterPm1ConcentrationMeasurement(commands, credsIssuerConfig); registerClusterPm10ConcentrationMeasurement(commands, credsIssuerConfig); registerClusterTotalVolatileOrganicCompoundsConcentrationMeasurement(commands, credsIssuerConfig); registerClusterRadonConcentrationMeasurement(commands, credsIssuerConfig); registerClusterWiFiNetworkManagement(commands, credsIssuerConfig); registerClusterThreadBorderRouterManagement(commands, credsIssuerConfig); registerClusterThreadNetworkDirectory(commands, credsIssuerConfig); registerClusterWakeOnLan(commands, credsIssuerConfig); registerClusterChannel(commands, credsIssuerConfig); registerClusterTargetNavigator(commands, credsIssuerConfig); registerClusterMediaPlayback(commands, credsIssuerConfig); registerClusterMediaInput(commands, credsIssuerConfig); registerClusterLowPower(commands, credsIssuerConfig); registerClusterKeypadInput(commands, credsIssuerConfig); registerClusterContentLauncher(commands, credsIssuerConfig); registerClusterAudioOutput(commands, credsIssuerConfig); registerClusterApplicationLauncher(commands, credsIssuerConfig); registerClusterApplicationBasic(commands, credsIssuerConfig); registerClusterAccountLogin(commands, credsIssuerConfig); registerClusterContentControl(commands, credsIssuerConfig); registerClusterContentAppObserver(commands, credsIssuerConfig); registerClusterZoneManagement(commands, credsIssuerConfig); registerClusterCameraAvStreamManagement(commands, credsIssuerConfig); registerClusterWebRTCTransportProvider(commands, credsIssuerConfig); registerClusterWebRTCTransportRequestor(commands, credsIssuerConfig); registerClusterChime(commands, credsIssuerConfig); registerClusterEcosystemInformation(commands, credsIssuerConfig); registerClusterCommissionerControl(commands, credsIssuerConfig); registerClusterUnitTesting(commands, credsIssuerConfig); registerClusterFaultInjection(commands, credsIssuerConfig); registerClusterSampleMei(commands, credsIssuerConfig); }