diff --git a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h index 9145962667aedb..47f70167f954d2 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h @@ -108,6 +108,7 @@ | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | @@ -175,6 +176,7 @@ class WriteAccessControlExtension : public WriteAttribute | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | @@ -254,8 +256,8 @@ class AccountLoginLogoutRequest : public ClusterCommand | Cluster AdministratorCommissioning | 0x003C | |------------------------------------------------------------------------------| | Commands: | | -| * OpenBasicCommissioningWindow | 0x01 | | * OpenCommissioningWindow | 0x00 | +| * OpenBasicCommissioningWindow | 0x01 | | * RevokeCommissioning | 0x02 | |------------------------------------------------------------------------------| | Attributes: | | @@ -265,62 +267,63 @@ class AccountLoginLogoutRequest : public ClusterCommand | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* - * Command OpenBasicCommissioningWindow + * Command OpenCommissioningWindow */ -class AdministratorCommissioningOpenBasicCommissioningWindow : public ClusterCommand +class AdministratorCommissioningOpenCommissioningWindow : public ClusterCommand { public: - AdministratorCommissioningOpenBasicCommissioningWindow(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("open-basic-commissioning-window", credsIssuerConfig) + AdministratorCommissioningOpenCommissioningWindow(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("open-commissioning-window", credsIssuerConfig) { AddArgument("CommissioningTimeout", 0, UINT16_MAX, &mRequest.commissioningTimeout); + AddArgument("PAKEVerifier", &mRequest.PAKEVerifier); + AddArgument("Discriminator", 0, UINT16_MAX, &mRequest.discriminator); + AddArgument("Iterations", 0, UINT32_MAX, &mRequest.iterations); + AddArgument("Salt", &mRequest.salt); + AddArgument("PasscodeID", 0, UINT16_MAX, &mRequest.passcodeID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000003C) command (0x00000001) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0000003C) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000003C, 0x00000001, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x0000003C, 0x00000000, mRequest); } private: - chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type mRequest; + chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type mRequest; }; /* - * Command OpenCommissioningWindow + * Command OpenBasicCommissioningWindow */ -class AdministratorCommissioningOpenCommissioningWindow : public ClusterCommand +class AdministratorCommissioningOpenBasicCommissioningWindow : public ClusterCommand { public: - AdministratorCommissioningOpenCommissioningWindow(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("open-commissioning-window", credsIssuerConfig) + AdministratorCommissioningOpenBasicCommissioningWindow(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("open-basic-commissioning-window", credsIssuerConfig) { AddArgument("CommissioningTimeout", 0, UINT16_MAX, &mRequest.commissioningTimeout); - AddArgument("PAKEVerifier", &mRequest.PAKEVerifier); - AddArgument("Discriminator", 0, UINT16_MAX, &mRequest.discriminator); - AddArgument("Iterations", 0, UINT32_MAX, &mRequest.iterations); - AddArgument("Salt", &mRequest.salt); - AddArgument("PasscodeID", 0, UINT16_MAX, &mRequest.passcodeID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000003C) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0000003C) command (0x00000001) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000003C, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x0000003C, 0x00000001, mRequest); } private: - chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type mRequest; + chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type mRequest; }; /* @@ -363,6 +366,7 @@ class AdministratorCommissioningRevokeCommissioning : public ClusterCommand | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | @@ -395,81 +399,83 @@ class WriteApplicationBasicApplicationApp : public WriteAttribute | Cluster ApplicationLauncher | 0x050C | |------------------------------------------------------------------------------| | Commands: | | -| * HideAppRequest | 0x02 | | * LaunchAppRequest | 0x00 | | * StopAppRequest | 0x01 | +| * HideAppRequest | 0x02 | |------------------------------------------------------------------------------| | Attributes: | | | * ApplicationLauncherList | 0x0000 | +| * ApplicationLauncherApp | 0x0001 | | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* - * Command HideAppRequest + * Command LaunchAppRequest */ -class ApplicationLauncherHideAppRequest : public ClusterCommand +class ApplicationLauncherLaunchAppRequest : public ClusterCommand { public: - ApplicationLauncherHideAppRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("hide-app-request", credsIssuerConfig), mComplex_Application(&mRequest.application) + ApplicationLauncherLaunchAppRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("launch-app-request", credsIssuerConfig), mComplex_Application(&mRequest.application) { + AddArgument("Data", &mRequest.data); AddArgument("Application", &mComplex_Application); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050C) command (0x00000002) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0000050C) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000050C, 0x00000002, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x0000050C, 0x00000000, mRequest); } private: - chip::app::Clusters::ApplicationLauncher::Commands::HideAppRequest::Type mRequest; + chip::app::Clusters::ApplicationLauncher::Commands::LaunchAppRequest::Type mRequest; TypedComplexArgument mComplex_Application; }; /* - * Command LaunchAppRequest + * Command StopAppRequest */ -class ApplicationLauncherLaunchAppRequest : public ClusterCommand +class ApplicationLauncherStopAppRequest : public ClusterCommand { public: - ApplicationLauncherLaunchAppRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("launch-app-request", credsIssuerConfig), mComplex_Application(&mRequest.application) + ApplicationLauncherStopAppRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("stop-app-request", credsIssuerConfig), mComplex_Application(&mRequest.application) { - AddArgument("Data", &mRequest.data); AddArgument("Application", &mComplex_Application); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050C) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0000050C) command (0x00000001) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000050C, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x0000050C, 0x00000001, mRequest); } private: - chip::app::Clusters::ApplicationLauncher::Commands::LaunchAppRequest::Type mRequest; + chip::app::Clusters::ApplicationLauncher::Commands::StopAppRequest::Type mRequest; TypedComplexArgument mComplex_Application; }; /* - * Command StopAppRequest + * Command HideAppRequest */ -class ApplicationLauncherStopAppRequest : public ClusterCommand +class ApplicationLauncherHideAppRequest : public ClusterCommand { public: - ApplicationLauncherStopAppRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("stop-app-request", credsIssuerConfig), mComplex_Application(&mRequest.application) + ApplicationLauncherHideAppRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("hide-app-request", credsIssuerConfig), mComplex_Application(&mRequest.application) { AddArgument("Application", &mComplex_Application); ClusterCommand::AddArguments(); @@ -477,23 +483,46 @@ class ApplicationLauncherStopAppRequest : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050C) command (0x00000001) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0000050C) command (0x00000002) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000050C, 0x00000001, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x0000050C, 0x00000002, mRequest); } private: - chip::app::Clusters::ApplicationLauncher::Commands::StopAppRequest::Type mRequest; + chip::app::Clusters::ApplicationLauncher::Commands::HideAppRequest::Type mRequest; TypedComplexArgument mComplex_Application; }; +class WriteApplicationLauncherApplicationLauncherApp : public WriteAttribute +{ +public: + WriteApplicationLauncherApplicationLauncherApp(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ApplicationLauncherApp", credsIssuerConfig), mComplex(&mValue) + { + AddArgument("attr-name", "application-launcher-app"); + AddArgument("attr-value", &mComplex); + WriteAttribute::AddArguments(); + } + + ~WriteApplicationLauncherApplicationLauncherApp() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x0000050C, 0x00000001, mValue); + } + +private: + chip::app::Clusters::ApplicationLauncher::Structs::ApplicationEP::Type mValue; + TypedComplexArgument mComplex; +}; + /*----------------------------------------------------------------------------*\ | Cluster AudioOutput | 0x050B | |------------------------------------------------------------------------------| | Commands: | | -| * RenameOutputRequest | 0x01 | | * SelectOutputRequest | 0x00 | +| * RenameOutputRequest | 0x01 | |------------------------------------------------------------------------------| | Attributes: | | | * AudioOutputList | 0x0000 | @@ -501,58 +530,59 @@ class ApplicationLauncherStopAppRequest : public ClusterCommand | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* - * Command RenameOutputRequest + * Command SelectOutputRequest */ -class AudioOutputRenameOutputRequest : public ClusterCommand +class AudioOutputSelectOutputRequest : public ClusterCommand { public: - AudioOutputRenameOutputRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("rename-output-request", credsIssuerConfig) + AudioOutputSelectOutputRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("select-output-request", credsIssuerConfig) { AddArgument("Index", 0, UINT8_MAX, &mRequest.index); - AddArgument("Name", &mRequest.name); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050B) command (0x00000001) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0000050B) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000050B, 0x00000001, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x0000050B, 0x00000000, mRequest); } private: - chip::app::Clusters::AudioOutput::Commands::RenameOutputRequest::Type mRequest; + chip::app::Clusters::AudioOutput::Commands::SelectOutputRequest::Type mRequest; }; /* - * Command SelectOutputRequest + * Command RenameOutputRequest */ -class AudioOutputSelectOutputRequest : public ClusterCommand +class AudioOutputRenameOutputRequest : public ClusterCommand { public: - AudioOutputSelectOutputRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("select-output-request", credsIssuerConfig) + AudioOutputRenameOutputRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("rename-output-request", credsIssuerConfig) { AddArgument("Index", 0, UINT8_MAX, &mRequest.index); + AddArgument("Name", &mRequest.name); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050B) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0000050B) command (0x00000001) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000050B, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x0000050B, 0x00000001, mRequest); } private: - chip::app::Clusters::AudioOutput::Commands::SelectOutputRequest::Type mRequest; + chip::app::Clusters::AudioOutput::Commands::RenameOutputRequest::Type mRequest; }; /*----------------------------------------------------------------------------*\ @@ -566,10 +596,17 @@ class AudioOutputSelectOutputRequest : public ClusterCommand | * BarrierMovingState | 0x0001 | | * BarrierSafetyStatus | 0x0002 | | * BarrierCapabilities | 0x0003 | +| * BarrierOpenEvents | 0x0004 | +| * BarrierCloseEvents | 0x0005 | +| * BarrierCommandOpenEvents | 0x0006 | +| * BarrierCommandCloseEvents | 0x0007 | +| * BarrierOpenPeriod | 0x0008 | +| * BarrierClosePeriod | 0x0009 | | * BarrierPosition | 0x000A | | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | @@ -622,10 +659,143 @@ class BarrierControlBarrierControlStop : public ClusterCommand chip::app::Clusters::BarrierControl::Commands::BarrierControlStop::Type mRequest; }; +class WriteBarrierControlBarrierOpenEvents : public WriteAttribute +{ +public: + WriteBarrierControlBarrierOpenEvents(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("BarrierOpenEvents", credsIssuerConfig) + { + AddArgument("attr-name", "barrier-open-events"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteBarrierControlBarrierOpenEvents() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000103, 0x00000004, mValue); + } + +private: + uint16_t mValue; +}; + +class WriteBarrierControlBarrierCloseEvents : public WriteAttribute +{ +public: + WriteBarrierControlBarrierCloseEvents(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("BarrierCloseEvents", credsIssuerConfig) + { + AddArgument("attr-name", "barrier-close-events"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteBarrierControlBarrierCloseEvents() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000103, 0x00000005, mValue); + } + +private: + uint16_t mValue; +}; + +class WriteBarrierControlBarrierCommandOpenEvents : public WriteAttribute +{ +public: + WriteBarrierControlBarrierCommandOpenEvents(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("BarrierCommandOpenEvents", credsIssuerConfig) + { + AddArgument("attr-name", "barrier-command-open-events"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteBarrierControlBarrierCommandOpenEvents() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000103, 0x00000006, mValue); + } + +private: + uint16_t mValue; +}; + +class WriteBarrierControlBarrierCommandCloseEvents : public WriteAttribute +{ +public: + WriteBarrierControlBarrierCommandCloseEvents(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("BarrierCommandCloseEvents", credsIssuerConfig) + { + AddArgument("attr-name", "barrier-command-close-events"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteBarrierControlBarrierCommandCloseEvents() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000103, 0x00000007, mValue); + } + +private: + uint16_t mValue; +}; + +class WriteBarrierControlBarrierOpenPeriod : public WriteAttribute +{ +public: + WriteBarrierControlBarrierOpenPeriod(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("BarrierOpenPeriod", credsIssuerConfig) + { + AddArgument("attr-name", "barrier-open-period"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteBarrierControlBarrierOpenPeriod() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000103, 0x00000008, mValue); + } + +private: + uint16_t mValue; +}; + +class WriteBarrierControlBarrierClosePeriod : public WriteAttribute +{ +public: + WriteBarrierControlBarrierClosePeriod(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("BarrierClosePeriod", credsIssuerConfig) + { + AddArgument("attr-name", "barrier-close-period"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteBarrierControlBarrierClosePeriod() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000103, 0x00000009, mValue); + } + +private: + uint16_t mValue; +}; + /*----------------------------------------------------------------------------*\ | Cluster Basic | 0x0028 | |------------------------------------------------------------------------------| | Commands: | | +| * MfgSpecificPing | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | | * DataModelRevision | 0x0000 | @@ -650,6 +820,7 @@ class BarrierControlBarrierControlStop : public ClusterCommand | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | @@ -659,6 +830,28 @@ class BarrierControlBarrierControlStop : public ClusterCommand | * ReachableChanged | 0x0003 | \*----------------------------------------------------------------------------*/ +/* + * Command MfgSpecificPing + */ +class BasicMfgSpecificPing : public ClusterCommand +{ +public: + BasicMfgSpecificPing(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("mfg-specific-ping", credsIssuerConfig) + { + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000028) command (0x00000000) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000028, 0x00000000, mRequest); + } + +private: + chip::app::Clusters::Basic::Commands::MfgSpecificPing::Type mRequest; +}; + class WriteBasicNodeLabel : public WriteAttribute { public: @@ -729,21 +922,93 @@ class WriteBasicLocalConfigDisabled : public WriteAttribute | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | +| * ActiveText | 0x0004 | +| * Description | 0x001C | +| * InactiveText | 0x002E | | * OutOfService | 0x0051 | +| * Polarity | 0x0054 | | * PresentValue | 0x0055 | +| * Reliability | 0x0067 | | * StatusFlags | 0x006F | +| * ApplicationType | 0x0100 | | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ -class WriteBinaryInputBasicOutOfService : public WriteAttribute +class WriteBinaryInputBasicActiveText : public WriteAttribute { public: - WriteBinaryInputBasicOutOfService(CredentialIssuerCommands * credsIssuerConfig) : + WriteBinaryInputBasicActiveText(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("ActiveText", credsIssuerConfig) + { + AddArgument("attr-name", "active-text"); + AddArgument("attr-value", &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteBinaryInputBasicActiveText() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x0000000F, 0x00000004, mValue); + } + +private: + chip::CharSpan mValue; +}; + +class WriteBinaryInputBasicDescription : public WriteAttribute +{ +public: + WriteBinaryInputBasicDescription(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("Description", credsIssuerConfig) + { + AddArgument("attr-name", "description"); + AddArgument("attr-value", &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteBinaryInputBasicDescription() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x0000000F, 0x0000001C, mValue); + } + +private: + chip::CharSpan mValue; +}; + +class WriteBinaryInputBasicInactiveText : public WriteAttribute +{ +public: + WriteBinaryInputBasicInactiveText(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("InactiveText", credsIssuerConfig) + { + AddArgument("attr-name", "inactive-text"); + AddArgument("attr-value", &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteBinaryInputBasicInactiveText() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x0000000F, 0x0000002E, mValue); + } + +private: + chip::CharSpan mValue; +}; + +class WriteBinaryInputBasicOutOfService : public WriteAttribute +{ +public: + WriteBinaryInputBasicOutOfService(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("OutOfService", credsIssuerConfig) { AddArgument("attr-name", "out-of-service"); @@ -784,6 +1049,28 @@ class WriteBinaryInputBasicPresentValue : public WriteAttribute bool mValue; }; +class WriteBinaryInputBasicReliability : public WriteAttribute +{ +public: + WriteBinaryInputBasicReliability(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("Reliability", credsIssuerConfig) + { + AddArgument("attr-name", "reliability"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteBinaryInputBasicReliability() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x0000000F, 0x00000067, mValue); + } + +private: + uint8_t mValue; +}; + /*----------------------------------------------------------------------------*\ | Cluster Binding | 0x001E | |------------------------------------------------------------------------------| @@ -795,6 +1082,7 @@ class WriteBinaryInputBasicPresentValue : public WriteAttribute | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | @@ -862,6 +1150,7 @@ class BindingUnbind : public ClusterCommand | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | @@ -872,18 +1161,18 @@ class BindingUnbind : public ClusterCommand | Cluster BridgedActions | 0x0025 | |------------------------------------------------------------------------------| | Commands: | | -| * DisableAction | 0x0A | -| * DisableActionWithDuration | 0x0B | -| * EnableAction | 0x08 | -| * EnableActionWithDuration | 0x09 | | * InstantAction | 0x00 | | * InstantActionWithTransition | 0x01 | -| * PauseAction | 0x05 | -| * PauseActionWithDuration | 0x06 | -| * ResumeAction | 0x07 | | * StartAction | 0x02 | | * StartActionWithDuration | 0x03 | | * StopAction | 0x04 | +| * PauseAction | 0x05 | +| * PauseActionWithDuration | 0x06 | +| * ResumeAction | 0x07 | +| * EnableAction | 0x08 | +| * EnableActionWithDuration | 0x09 | +| * DisableAction | 0x0A | +| * DisableActionWithDuration | 0x0B | |------------------------------------------------------------------------------| | Attributes: | | | * ActionList | 0x0000 | @@ -892,6 +1181,7 @@ class BindingUnbind : public ClusterCommand | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | @@ -900,12 +1190,12 @@ class BindingUnbind : public ClusterCommand \*----------------------------------------------------------------------------*/ /* - * Command DisableAction + * Command InstantAction */ -class BridgedActionsDisableAction : public ClusterCommand +class BridgedActionsInstantAction : public ClusterCommand { public: - BridgedActionsDisableAction(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("disable-action", credsIssuerConfig) + BridgedActionsInstantAction(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("instant-action", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); @@ -914,48 +1204,48 @@ class BridgedActionsDisableAction : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x0000000A) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x0000000A, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x00000000, mRequest); } private: - chip::app::Clusters::BridgedActions::Commands::DisableAction::Type mRequest; + chip::app::Clusters::BridgedActions::Commands::InstantAction::Type mRequest; }; /* - * Command DisableActionWithDuration + * Command InstantActionWithTransition */ -class BridgedActionsDisableActionWithDuration : public ClusterCommand +class BridgedActionsInstantActionWithTransition : public ClusterCommand { public: - BridgedActionsDisableActionWithDuration(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("disable-action-with-duration", credsIssuerConfig) + BridgedActionsInstantActionWithTransition(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("instant-action-with-transition", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); - AddArgument("Duration", 0, UINT32_MAX, &mRequest.duration); + AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x0000000B) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000001) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x0000000B, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x00000001, mRequest); } private: - chip::app::Clusters::BridgedActions::Commands::DisableActionWithDuration::Type mRequest; + chip::app::Clusters::BridgedActions::Commands::InstantActionWithTransition::Type mRequest; }; /* - * Command EnableAction + * Command StartAction */ -class BridgedActionsEnableAction : public ClusterCommand +class BridgedActionsStartAction : public ClusterCommand { public: - BridgedActionsEnableAction(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("enable-action", credsIssuerConfig) + BridgedActionsStartAction(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("start-action", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); @@ -964,23 +1254,23 @@ class BridgedActionsEnableAction : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000008) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000002) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x00000008, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x00000002, mRequest); } private: - chip::app::Clusters::BridgedActions::Commands::EnableAction::Type mRequest; + chip::app::Clusters::BridgedActions::Commands::StartAction::Type mRequest; }; /* - * Command EnableActionWithDuration + * Command StartActionWithDuration */ -class BridgedActionsEnableActionWithDuration : public ClusterCommand +class BridgedActionsStartActionWithDuration : public ClusterCommand { public: - BridgedActionsEnableActionWithDuration(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("enable-action-with-duration", credsIssuerConfig) + BridgedActionsStartActionWithDuration(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("start-action-with-duration", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); @@ -990,63 +1280,37 @@ class BridgedActionsEnableActionWithDuration : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000009) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x00000009, mRequest); - } - -private: - chip::app::Clusters::BridgedActions::Commands::EnableActionWithDuration::Type mRequest; -}; - -/* - * Command InstantAction - */ -class BridgedActionsInstantAction : public ClusterCommand -{ -public: - BridgedActionsInstantAction(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(ChipDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000003) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x00000003, mRequest); } private: - chip::app::Clusters::BridgedActions::Commands::InstantAction::Type mRequest; + chip::app::Clusters::BridgedActions::Commands::StartActionWithDuration::Type mRequest; }; /* - * Command InstantActionWithTransition + * Command StopAction */ -class BridgedActionsInstantActionWithTransition : public ClusterCommand +class BridgedActionsStopAction : public ClusterCommand { public: - BridgedActionsInstantActionWithTransition(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("instant-action-with-transition", credsIssuerConfig) + BridgedActionsStopAction(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop-action", 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(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000001) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000004) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x00000001, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x00000004, mRequest); } private: - chip::app::Clusters::BridgedActions::Commands::InstantActionWithTransition::Type mRequest; + chip::app::Clusters::BridgedActions::Commands::StopAction::Type mRequest; }; /* @@ -1124,12 +1388,12 @@ class BridgedActionsResumeAction : public ClusterCommand }; /* - * Command StartAction + * Command EnableAction */ -class BridgedActionsStartAction : public ClusterCommand +class BridgedActionsEnableAction : public ClusterCommand { public: - BridgedActionsStartAction(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("start-action", credsIssuerConfig) + BridgedActionsEnableAction(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("enable-action", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); @@ -1138,23 +1402,23 @@ class BridgedActionsStartAction : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000002) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000008) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x00000002, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x00000008, mRequest); } private: - chip::app::Clusters::BridgedActions::Commands::StartAction::Type mRequest; + chip::app::Clusters::BridgedActions::Commands::EnableAction::Type mRequest; }; /* - * Command StartActionWithDuration + * Command EnableActionWithDuration */ -class BridgedActionsStartActionWithDuration : public ClusterCommand +class BridgedActionsEnableActionWithDuration : public ClusterCommand { public: - BridgedActionsStartActionWithDuration(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("start-action-with-duration", credsIssuerConfig) + BridgedActionsEnableActionWithDuration(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("enable-action-with-duration", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); @@ -1164,22 +1428,22 @@ class BridgedActionsStartActionWithDuration : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000003) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000009) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x00000003, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x00000009, mRequest); } private: - chip::app::Clusters::BridgedActions::Commands::StartActionWithDuration::Type mRequest; + chip::app::Clusters::BridgedActions::Commands::EnableActionWithDuration::Type mRequest; }; /* - * Command StopAction + * Command DisableAction */ -class BridgedActionsStopAction : public ClusterCommand +class BridgedActionsDisableAction : public ClusterCommand { public: - BridgedActionsStopAction(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop-action", credsIssuerConfig) + BridgedActionsDisableAction(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("disable-action", credsIssuerConfig) { AddArgument("ActionID", 0, UINT16_MAX, &mRequest.actionID); AddArgument("InvokeID", 0, UINT32_MAX, &mRequest.invokeID); @@ -1188,13 +1452,39 @@ class BridgedActionsStopAction : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000004) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x0000000A) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x00000004, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x0000000A, mRequest); } private: - chip::app::Clusters::BridgedActions::Commands::StopAction::Type mRequest; + chip::app::Clusters::BridgedActions::Commands::DisableAction::Type mRequest; +}; + +/* + * Command DisableActionWithDuration + */ +class BridgedActionsDisableActionWithDuration : public ClusterCommand +{ +public: + BridgedActionsDisableActionWithDuration(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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x0000000B) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000025, 0x0000000B, mRequest); + } + +private: + chip::app::Clusters::BridgedActions::Commands::DisableActionWithDuration::Type mRequest; }; /*----------------------------------------------------------------------------*\ @@ -1217,9 +1507,11 @@ class BridgedActionsStopAction : public ClusterCommand | * ProductLabel | 0x000E | | * SerialNumber | 0x000F | | * Reachable | 0x0011 | +| * UniqueID | 0x0012 | | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | @@ -1254,67 +1546,70 @@ class WriteBridgedDeviceBasicNodeLabel : public WriteAttribute | Cluster Channel | 0x0504 | |------------------------------------------------------------------------------| | Commands: | | -| * ChangeChannelByNumberRequest | 0x02 | | * ChangeChannelRequest | 0x00 | +| * ChangeChannelByNumberRequest | 0x02 | | * SkipChannelRequest | 0x03 | |------------------------------------------------------------------------------| | Attributes: | | | * ChannelList | 0x0000 | +| * ChannelLineup | 0x0001 | +| * CurrentChannel | 0x0002 | | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* - * Command ChangeChannelByNumberRequest + * Command ChangeChannelRequest */ -class ChannelChangeChannelByNumberRequest : public ClusterCommand +class ChannelChangeChannelRequest : public ClusterCommand { public: - ChannelChangeChannelByNumberRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("change-channel-by-number-request", credsIssuerConfig) + ChannelChangeChannelRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("change-channel-request", credsIssuerConfig) { - AddArgument("MajorNumber", 0, UINT16_MAX, &mRequest.majorNumber); - AddArgument("MinorNumber", 0, UINT16_MAX, &mRequest.minorNumber); + AddArgument("Match", &mRequest.match); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000504) command (0x00000002) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000504) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000504, 0x00000002, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000504, 0x00000000, mRequest); } private: - chip::app::Clusters::Channel::Commands::ChangeChannelByNumberRequest::Type mRequest; + chip::app::Clusters::Channel::Commands::ChangeChannelRequest::Type mRequest; }; /* - * Command ChangeChannelRequest + * Command ChangeChannelByNumberRequest */ -class ChannelChangeChannelRequest : public ClusterCommand +class ChannelChangeChannelByNumberRequest : public ClusterCommand { public: - ChannelChangeChannelRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("change-channel-request", credsIssuerConfig) + ChannelChangeChannelByNumberRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("change-channel-by-number-request", credsIssuerConfig) { - AddArgument("Match", &mRequest.match); + AddArgument("MajorNumber", 0, UINT16_MAX, &mRequest.majorNumber); + AddArgument("MinorNumber", 0, UINT16_MAX, &mRequest.minorNumber); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000504) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000504) command (0x00000002) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000504, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000504, 0x00000002, mRequest); } private: - chip::app::Clusters::Channel::Commands::ChangeChannelRequest::Type mRequest; + chip::app::Clusters::Channel::Commands::ChangeChannelByNumberRequest::Type mRequest; }; /* @@ -1341,29 +1636,75 @@ class ChannelSkipChannelRequest : public ClusterCommand chip::app::Clusters::Channel::Commands::SkipChannelRequest::Type mRequest; }; +class WriteChannelChannelLineup : public WriteAttribute +{ +public: + WriteChannelChannelLineup(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ChannelLineup", credsIssuerConfig), mComplex(&mValue) + { + AddArgument("attr-name", "channel-lineup"); + AddArgument("attr-value", &mComplex); + WriteAttribute::AddArguments(); + } + + ~WriteChannelChannelLineup() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000504, 0x00000001, mValue); + } + +private: + chip::app::Clusters::Channel::Structs::LineupInfo::Type mValue; + TypedComplexArgument mComplex; +}; + +class WriteChannelCurrentChannel : public WriteAttribute +{ +public: + WriteChannelCurrentChannel(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("CurrentChannel", credsIssuerConfig), mComplex(&mValue) + { + AddArgument("attr-name", "current-channel"); + AddArgument("attr-value", &mComplex); + WriteAttribute::AddArguments(); + } + + ~WriteChannelCurrentChannel() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000504, 0x00000002, mValue); + } + +private: + chip::app::Clusters::Channel::Structs::ChannelInfo::Type mValue; + TypedComplexArgument mComplex; +}; + /*----------------------------------------------------------------------------*\ | Cluster ColorControl | 0x0300 | |------------------------------------------------------------------------------| | Commands: | | -| * ColorLoopSet | 0x44 | -| * EnhancedMoveHue | 0x41 | -| * EnhancedMoveToHue | 0x40 | -| * EnhancedMoveToHueAndSaturation | 0x43 | -| * EnhancedStepHue | 0x42 | -| * MoveColor | 0x08 | -| * MoveColorTemperature | 0x4B | +| * MoveToHue | 0x00 | | * MoveHue | 0x01 | +| * StepHue | 0x02 | +| * MoveToSaturation | 0x03 | | * MoveSaturation | 0x04 | -| * MoveToColor | 0x07 | -| * MoveToColorTemperature | 0x0A | -| * MoveToHue | 0x00 | +| * StepSaturation | 0x05 | | * MoveToHueAndSaturation | 0x06 | -| * MoveToSaturation | 0x03 | +| * MoveToColor | 0x07 | +| * MoveColor | 0x08 | | * StepColor | 0x09 | -| * StepColorTemperature | 0x4C | -| * StepHue | 0x02 | -| * StepSaturation | 0x05 | +| * MoveToColorTemperature | 0x0A | +| * EnhancedMoveToHue | 0x40 | +| * EnhancedMoveHue | 0x41 | +| * EnhancedStepHue | 0x42 | +| * EnhancedMoveToHueAndSaturation | 0x43 | +| * ColorLoopSet | 0x44 | | * StopMoveStep | 0x47 | +| * MoveColorTemperature | 0x4B | +| * StepColorTemperature | 0x4C | |------------------------------------------------------------------------------| | Attributes: | | | * CurrentHue | 0x0000 | @@ -1421,24 +1762,23 @@ class ChannelSkipChannelRequest : public ClusterCommand | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* - * Command ColorLoopSet + * Command MoveToHue */ -class ColorControlColorLoopSet : public ClusterCommand +class ColorControlMoveToHue : public ClusterCommand { public: - ColorControlColorLoopSet(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("color-loop-set", credsIssuerConfig) + ColorControlMoveToHue(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-to-hue", credsIssuerConfig) { - AddArgument("UpdateFlags", 0, UINT8_MAX, &mRequest.updateFlags); - AddArgument("Action", 0, UINT8_MAX, &mRequest.action); + AddArgument("Hue", 0, UINT8_MAX, &mRequest.hue); AddArgument("Direction", 0, UINT8_MAX, &mRequest.direction); - AddArgument("Time", 0, UINT16_MAX, &mRequest.time); - AddArgument("StartHue", 0, UINT16_MAX, &mRequest.startHue); + AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); @@ -1446,26 +1786,25 @@ class ColorControlColorLoopSet : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000044) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000044, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000000, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type mRequest; + chip::app::Clusters::ColorControl::Commands::MoveToHue::Type mRequest; }; /* - * Command EnhancedMoveHue + * Command MoveHue */ -class ColorControlEnhancedMoveHue : public ClusterCommand +class ColorControlMoveHue : public ClusterCommand { public: - ColorControlEnhancedMoveHue(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("enhanced-move-hue", credsIssuerConfig) + ColorControlMoveHue(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-hue", credsIssuerConfig) { AddArgument("MoveMode", 0, UINT8_MAX, &mRequest.moveMode); - AddArgument("Rate", 0, UINT16_MAX, &mRequest.rate); + AddArgument("Rate", 0, UINT8_MAX, &mRequest.rate); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); @@ -1473,27 +1812,26 @@ class ColorControlEnhancedMoveHue : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000041) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000001) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000041, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000001, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type mRequest; + chip::app::Clusters::ColorControl::Commands::MoveHue::Type mRequest; }; /* - * Command EnhancedMoveToHue + * Command StepHue */ -class ColorControlEnhancedMoveToHue : public ClusterCommand +class ColorControlStepHue : public ClusterCommand { public: - ColorControlEnhancedMoveToHue(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("enhanced-move-to-hue", credsIssuerConfig) + ColorControlStepHue(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("step-hue", credsIssuerConfig) { - AddArgument("EnhancedHue", 0, UINT16_MAX, &mRequest.enhancedHue); - AddArgument("Direction", 0, UINT8_MAX, &mRequest.direction); - AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); + 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(); @@ -1501,25 +1839,24 @@ class ColorControlEnhancedMoveToHue : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000040) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000002) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000040, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000002, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type mRequest; + chip::app::Clusters::ColorControl::Commands::StepHue::Type mRequest; }; /* - * Command EnhancedMoveToHueAndSaturation + * Command MoveToSaturation */ -class ColorControlEnhancedMoveToHueAndSaturation : public ClusterCommand +class ColorControlMoveToSaturation : public ClusterCommand { public: - ColorControlEnhancedMoveToHueAndSaturation(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("enhanced-move-to-hue-and-saturation", credsIssuerConfig) + ColorControlMoveToSaturation(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("move-to-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); @@ -1529,27 +1866,25 @@ class ColorControlEnhancedMoveToHueAndSaturation : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000043) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000003) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000043, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000003, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHueAndSaturation::Type mRequest; + chip::app::Clusters::ColorControl::Commands::MoveToSaturation::Type mRequest; }; /* - * Command EnhancedStepHue + * Command MoveSaturation */ -class ColorControlEnhancedStepHue : public ClusterCommand +class ColorControlMoveSaturation : public ClusterCommand { public: - ColorControlEnhancedStepHue(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("enhanced-step-hue", credsIssuerConfig) + ColorControlMoveSaturation(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-saturation", credsIssuerConfig) { - AddArgument("StepMode", 0, UINT8_MAX, &mRequest.stepMode); - AddArgument("StepSize", 0, UINT16_MAX, &mRequest.stepSize); - AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); + 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(); @@ -1557,25 +1892,26 @@ class ColorControlEnhancedStepHue : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000042) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000004) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000042, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000004, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type mRequest; + chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type mRequest; }; /* - * Command MoveColor + * Command StepSaturation */ -class ColorControlMoveColor : public ClusterCommand +class ColorControlStepSaturation : public ClusterCommand { public: - ColorControlMoveColor(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-color", credsIssuerConfig) + ColorControlStepSaturation(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("step-saturation", credsIssuerConfig) { - AddArgument("RateX", INT16_MIN, INT16_MAX, &mRequest.rateX); - AddArgument("RateY", INT16_MIN, INT16_MAX, &mRequest.rateY); + 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(); @@ -1583,28 +1919,27 @@ class ColorControlMoveColor : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000008) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000005) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000008, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000005, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::MoveColor::Type mRequest; + chip::app::Clusters::ColorControl::Commands::StepSaturation::Type mRequest; }; /* - * Command MoveColorTemperature + * Command MoveToHueAndSaturation */ -class ColorControlMoveColorTemperature : public ClusterCommand +class ColorControlMoveToHueAndSaturation : public ClusterCommand { public: - ColorControlMoveColorTemperature(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("move-color-temperature", credsIssuerConfig) + ColorControlMoveToHueAndSaturation(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("move-to-hue-and-saturation", credsIssuerConfig) { - AddArgument("MoveMode", 0, UINT8_MAX, &mRequest.moveMode); - AddArgument("Rate", 0, UINT16_MAX, &mRequest.rate); - AddArgument("ColorTemperatureMinimum", 0, UINT16_MAX, &mRequest.colorTemperatureMinimum); - AddArgument("ColorTemperatureMaximum", 0, UINT16_MAX, &mRequest.colorTemperatureMaximum); + 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(); @@ -1612,25 +1947,26 @@ class ColorControlMoveColorTemperature : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x0000004B) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000006) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x0000004B, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000006, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type mRequest; + chip::app::Clusters::ColorControl::Commands::MoveToHueAndSaturation::Type mRequest; }; /* - * Command MoveHue + * Command MoveToColor */ -class ColorControlMoveHue : public ClusterCommand +class ColorControlMoveToColor : public ClusterCommand { public: - ColorControlMoveHue(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-hue", credsIssuerConfig) + ColorControlMoveToColor(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-to-color", credsIssuerConfig) { - AddArgument("MoveMode", 0, UINT8_MAX, &mRequest.moveMode); - AddArgument("Rate", 0, UINT8_MAX, &mRequest.rate); + 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(); @@ -1638,25 +1974,25 @@ class ColorControlMoveHue : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000001) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000007) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000001, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000007, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::MoveHue::Type mRequest; + chip::app::Clusters::ColorControl::Commands::MoveToColor::Type mRequest; }; /* - * Command MoveSaturation + * Command MoveColor */ -class ColorControlMoveSaturation : public ClusterCommand +class ColorControlMoveColor : public ClusterCommand { public: - ColorControlMoveSaturation(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-saturation", credsIssuerConfig) + ColorControlMoveColor(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-color", credsIssuerConfig) { - AddArgument("MoveMode", 0, UINT8_MAX, &mRequest.moveMode); - AddArgument("Rate", 0, UINT8_MAX, &mRequest.rate); + 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(); @@ -1664,25 +2000,25 @@ class ColorControlMoveSaturation : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000004) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000008) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000004, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000008, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type mRequest; + chip::app::Clusters::ColorControl::Commands::MoveColor::Type mRequest; }; /* - * Command MoveToColor + * Command StepColor */ -class ColorControlMoveToColor : public ClusterCommand +class ColorControlStepColor : public ClusterCommand { public: - ColorControlMoveToColor(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-to-color", credsIssuerConfig) + ColorControlStepColor(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("step-color", credsIssuerConfig) { - AddArgument("ColorX", 0, UINT16_MAX, &mRequest.colorX); - AddArgument("ColorY", 0, UINT16_MAX, &mRequest.colorY); + 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); @@ -1691,13 +2027,13 @@ class ColorControlMoveToColor : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000007) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000009) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000007, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000009, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::MoveToColor::Type mRequest; + chip::app::Clusters::ColorControl::Commands::StepColor::Type mRequest; }; /* @@ -1728,14 +2064,15 @@ class ColorControlMoveToColorTemperature : public ClusterCommand }; /* - * Command MoveToHue + * Command EnhancedMoveToHue */ -class ColorControlMoveToHue : public ClusterCommand +class ColorControlEnhancedMoveToHue : public ClusterCommand { public: - ColorControlMoveToHue(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-to-hue", credsIssuerConfig) + ColorControlEnhancedMoveToHue(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("enhanced-move-to-hue", credsIssuerConfig) { - AddArgument("Hue", 0, UINT8_MAX, &mRequest.hue); + 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); @@ -1745,27 +2082,26 @@ class ColorControlMoveToHue : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000040) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000040, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::MoveToHue::Type mRequest; + chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type mRequest; }; /* - * Command MoveToHueAndSaturation + * Command EnhancedMoveHue */ -class ColorControlMoveToHueAndSaturation : public ClusterCommand +class ColorControlEnhancedMoveHue : public ClusterCommand { public: - ColorControlMoveToHueAndSaturation(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("move-to-hue-and-saturation", credsIssuerConfig) + ColorControlEnhancedMoveHue(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("enhanced-move-hue", credsIssuerConfig) { - AddArgument("Hue", 0, UINT8_MAX, &mRequest.hue); - AddArgument("Saturation", 0, UINT8_MAX, &mRequest.saturation); - AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); + 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(); @@ -1773,25 +2109,26 @@ class ColorControlMoveToHueAndSaturation : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000006) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000041) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000006, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000041, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::MoveToHueAndSaturation::Type mRequest; + chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type mRequest; }; /* - * Command MoveToSaturation + * Command EnhancedStepHue */ -class ColorControlMoveToSaturation : public ClusterCommand +class ColorControlEnhancedStepHue : public ClusterCommand { public: - ColorControlMoveToSaturation(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("move-to-saturation", credsIssuerConfig) + ColorControlEnhancedStepHue(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("enhanced-step-hue", credsIssuerConfig) { - AddArgument("Saturation", 0, UINT8_MAX, &mRequest.saturation); + 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); @@ -1800,25 +2137,26 @@ class ColorControlMoveToSaturation : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000003) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000042) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000003, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000042, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::MoveToSaturation::Type mRequest; + chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type mRequest; }; /* - * Command StepColor + * Command EnhancedMoveToHueAndSaturation */ -class ColorControlStepColor : public ClusterCommand +class ColorControlEnhancedMoveToHueAndSaturation : public ClusterCommand { public: - ColorControlStepColor(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("step-color", credsIssuerConfig) + ColorControlEnhancedMoveToHueAndSaturation(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("enhanced-move-to-hue-and-saturation", credsIssuerConfig) { - AddArgument("StepX", INT16_MIN, INT16_MAX, &mRequest.stepX); - AddArgument("StepY", INT16_MIN, INT16_MAX, &mRequest.stepY); + 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); @@ -1827,29 +2165,28 @@ class ColorControlStepColor : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000009) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000043) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000009, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000043, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::StepColor::Type mRequest; + chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHueAndSaturation::Type mRequest; }; /* - * Command StepColorTemperature + * Command ColorLoopSet */ -class ColorControlStepColorTemperature : public ClusterCommand +class ColorControlColorLoopSet : public ClusterCommand { public: - ColorControlStepColorTemperature(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("step-color-temperature", credsIssuerConfig) + ColorControlColorLoopSet(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("color-loop-set", credsIssuerConfig) { - AddArgument("StepMode", 0, UINT8_MAX, &mRequest.stepMode); - AddArgument("StepSize", 0, UINT16_MAX, &mRequest.stepSize); - AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); - AddArgument("ColorTemperatureMinimum", 0, UINT16_MAX, &mRequest.colorTemperatureMinimum); - AddArgument("ColorTemperatureMaximum", 0, UINT16_MAX, &mRequest.colorTemperatureMaximum); + 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(); @@ -1857,26 +2194,23 @@ class ColorControlStepColorTemperature : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x0000004C) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000044) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x0000004C, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000044, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type mRequest; + chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type mRequest; }; /* - * Command StepHue + * Command StopMoveStep */ -class ColorControlStepHue : public ClusterCommand +class ColorControlStopMoveStep : public ClusterCommand { public: - ColorControlStepHue(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("step-hue", credsIssuerConfig) + ColorControlStopMoveStep(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop-move-step", 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(); @@ -1884,26 +2218,28 @@ class ColorControlStepHue : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000002) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000047) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000002, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000047, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::StepHue::Type mRequest; + chip::app::Clusters::ColorControl::Commands::StopMoveStep::Type mRequest; }; /* - * Command StepSaturation + * Command MoveColorTemperature */ -class ColorControlStepSaturation : public ClusterCommand +class ColorControlMoveColorTemperature : public ClusterCommand { public: - ColorControlStepSaturation(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("step-saturation", credsIssuerConfig) + ColorControlMoveColorTemperature(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("move-color-temperature", credsIssuerConfig) { - AddArgument("StepMode", 0, UINT8_MAX, &mRequest.stepMode); - AddArgument("StepSize", 0, UINT8_MAX, &mRequest.stepSize); - AddArgument("TransitionTime", 0, UINT8_MAX, &mRequest.transitionTime); + AddArgument("MoveMode", 0, UINT8_MAX, &mRequest.moveMode); + AddArgument("Rate", 0, UINT16_MAX, &mRequest.rate); + AddArgument("ColorTemperatureMinimum", 0, UINT16_MAX, &mRequest.colorTemperatureMinimum); + AddArgument("ColorTemperatureMaximum", 0, UINT16_MAX, &mRequest.colorTemperatureMaximum); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); @@ -1911,23 +2247,29 @@ class ColorControlStepSaturation : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000005) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x0000004B) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000005, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x0000004B, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::StepSaturation::Type mRequest; + chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type mRequest; }; /* - * Command StopMoveStep + * Command StepColorTemperature */ -class ColorControlStopMoveStep : public ClusterCommand +class ColorControlStepColorTemperature : public ClusterCommand { public: - ColorControlStopMoveStep(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop-move-step", credsIssuerConfig) + 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("ColorTemperatureMinimum", 0, UINT16_MAX, &mRequest.colorTemperatureMinimum); + AddArgument("ColorTemperatureMaximum", 0, UINT16_MAX, &mRequest.colorTemperatureMaximum); AddArgument("OptionsMask", 0, UINT8_MAX, &mRequest.optionsMask); AddArgument("OptionsOverride", 0, UINT8_MAX, &mRequest.optionsOverride); ClusterCommand::AddArguments(); @@ -1935,13 +2277,13 @@ class ColorControlStopMoveStep : public ClusterCommand CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000047) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x0000004C) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x00000047, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000300, 0x0000004C, mRequest); } private: - chip::app::Clusters::ColorControl::Commands::StopMoveStep::Type mRequest; + chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type mRequest; }; class WriteColorControlColorControlOptions : public WriteAttribute @@ -2235,6 +2577,7 @@ class WriteColorControlStartUpColorTemperatureMireds : public WriteAttribute | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | @@ -2330,6 +2673,7 @@ class WriteContentLauncherSupportedStreamingProtocols : public WriteAttribute | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | @@ -2345,6 +2689,8 @@ class WriteContentLauncherSupportedStreamingProtocols : public WriteAttribute | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ @@ -2379,47 +2725,88 @@ class DiagnosticLogsRetrieveLogsRequest : public ClusterCommand | Cluster DoorLock | 0x0101 | |------------------------------------------------------------------------------| | Commands: | | -| * ClearCredential | 0x26 | -| * ClearUser | 0x1D | +| * LockDoor | 0x00 | +| * UnlockDoor | 0x01 | +| * UnlockWithTimeout | 0x03 | +| * GetLogRecord | 0x04 | +| * SetPINCode | 0x05 | +| * GetPINCode | 0x06 | +| * ClearPINCode | 0x07 | +| * ClearAllPINCodes | 0x08 | +| * SetUserStatus | 0x09 | +| * GetUserStatus | 0x0A | +| * SetWeekDaySchedule | 0x0B | +| * GetWeekDaySchedule | 0x0C | | * ClearWeekDaySchedule | 0x0D | +| * SetYearDaySchedule | 0x0E | +| * GetYearDaySchedule | 0x0F | | * ClearYearDaySchedule | 0x10 | -| * GetCredentialStatus | 0x24 | +| * SetHolidaySchedule | 0x11 | +| * GetHolidaySchedule | 0x12 | +| * ClearHolidaySchedule | 0x13 | +| * SetUserType | 0x14 | +| * GetUserType | 0x15 | +| * SetRFIDCode | 0x16 | +| * GetRFIDCode | 0x17 | +| * ClearRFIDCode | 0x18 | +| * ClearAllRFIDCodes | 0x19 | +| * SetUser | 0x1A | | * GetUser | 0x1B | -| * GetWeekDaySchedule | 0x0C | -| * GetYearDaySchedule | 0x0F | -| * LockDoor | 0x00 | +| * ClearUser | 0x1D | | * SetCredential | 0x22 | -| * SetUser | 0x1A | -| * SetWeekDaySchedule | 0x0B | -| * SetYearDaySchedule | 0x0E | -| * UnlockDoor | 0x01 | -| * UnlockWithTimeout | 0x03 | +| * GetCredentialStatus | 0x24 | +| * ClearCredential | 0x26 | |------------------------------------------------------------------------------| | Attributes: | | | * LockState | 0x0000 | | * LockType | 0x0001 | | * ActuatorEnabled | 0x0002 | | * DoorState | 0x0003 | +| * DoorOpenEvents | 0x0004 | +| * DoorClosedEvents | 0x0005 | +| * OpenPeriod | 0x0006 | +| * NumberOfLogRecordsSupported | 0x0010 | | * NumberOfTotalUsersSupported | 0x0011 | | * NumberOfPINUsersSupported | 0x0012 | | * NumberOfRFIDUsersSupported | 0x0013 | | * NumberOfWeekDaySchedulesSupportedPerUser | 0x0014 | | * NumberOfYearDaySchedulesSupportedPerUser | 0x0015 | +| * NumberOfHolidaySchedulesSupported | 0x0016 | | * MaxPINCodeLength | 0x0017 | | * MinPINCodeLength | 0x0018 | | * MaxRFIDCodeLength | 0x0019 | | * MinRFIDCodeLength | 0x001A | +| * CredentialRulesSupport | 0x001B | +| * EnableLogging | 0x0020 | | * 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 | +| * AlarmMask | 0x0040 | +| * KeypadOperationEventMask | 0x0041 | +| * RemoteOperationEventMask | 0x0042 | +| * ManualOperationEventMask | 0x0043 | +| * RFIDOperationEventMask | 0x0044 | +| * KeypadProgrammingEventMask | 0x0045 | +| * RemoteProgrammingEventMask | 0x0046 | +| * RFIDProgrammingEventMask | 0x0047 | | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | @@ -2431,312 +2818,318 @@ class DiagnosticLogsRetrieveLogsRequest : public ClusterCommand \*----------------------------------------------------------------------------*/ /* - * Command ClearCredential + * Command LockDoor */ -class DoorLockClearCredential : public ClusterCommand +class DoorLockLockDoor : public ClusterCommand { public: - DoorLockClearCredential(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("clear-credential", credsIssuerConfig), mComplex_Credential(&mRequest.credential) + DoorLockLockDoor(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("lock-door", credsIssuerConfig) { - AddArgument("Credential", &mComplex_Credential); + AddArgument("PinCode", &mRequest.pinCode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000026) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000026, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000000, mRequest); } private: - chip::app::Clusters::DoorLock::Commands::ClearCredential::Type mRequest; - TypedComplexArgument> - mComplex_Credential; + chip::app::Clusters::DoorLock::Commands::LockDoor::Type mRequest; }; /* - * Command ClearUser + * Command UnlockDoor */ -class DoorLockClearUser : public ClusterCommand +class DoorLockUnlockDoor : public ClusterCommand { public: - DoorLockClearUser(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("clear-user", credsIssuerConfig) + DoorLockUnlockDoor(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("unlock-door", credsIssuerConfig) { - AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); + AddArgument("PinCode", &mRequest.pinCode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000001D) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000001) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x0000001D, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000001, mRequest); } private: - chip::app::Clusters::DoorLock::Commands::ClearUser::Type mRequest; + chip::app::Clusters::DoorLock::Commands::UnlockDoor::Type mRequest; }; /* - * Command ClearWeekDaySchedule + * Command UnlockWithTimeout */ -class DoorLockClearWeekDaySchedule : public ClusterCommand +class DoorLockUnlockWithTimeout : public ClusterCommand { public: - DoorLockClearWeekDaySchedule(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("clear-week-day-schedule", credsIssuerConfig) + DoorLockUnlockWithTimeout(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("unlock-with-timeout", credsIssuerConfig) { - AddArgument("WeekDayIndex", 0, UINT8_MAX, &mRequest.weekDayIndex); - AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); + AddArgument("Timeout", 0, UINT16_MAX, &mRequest.timeout); + AddArgument("PinCode", &mRequest.pinCode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000D) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000003) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x0000000D, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000003, mRequest); } private: - chip::app::Clusters::DoorLock::Commands::ClearWeekDaySchedule::Type mRequest; + chip::app::Clusters::DoorLock::Commands::UnlockWithTimeout::Type mRequest; }; /* - * Command ClearYearDaySchedule + * Command GetLogRecord */ -class DoorLockClearYearDaySchedule : public ClusterCommand +class DoorLockGetLogRecord : public ClusterCommand { public: - DoorLockClearYearDaySchedule(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("clear-year-day-schedule", credsIssuerConfig) + DoorLockGetLogRecord(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-log-record", credsIssuerConfig) { - AddArgument("YearDayIndex", 0, UINT8_MAX, &mRequest.yearDayIndex); - AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); + AddArgument("LogIndex", 0, UINT16_MAX, &mRequest.logIndex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000010) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000004) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000010, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000004, mRequest); } private: - chip::app::Clusters::DoorLock::Commands::ClearYearDaySchedule::Type mRequest; + chip::app::Clusters::DoorLock::Commands::GetLogRecord::Type mRequest; }; /* - * Command GetCredentialStatus + * Command SetPINCode */ -class DoorLockGetCredentialStatus : public ClusterCommand +class DoorLockSetPINCode : public ClusterCommand { public: - DoorLockGetCredentialStatus(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("get-credential-status", credsIssuerConfig), mComplex_Credential(&mRequest.credential) + DoorLockSetPINCode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-pincode", credsIssuerConfig) { - AddArgument("Credential", &mComplex_Credential); + AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); + AddArgument("UserStatus", 0, UINT8_MAX, &mRequest.userStatus); + AddArgument("UserType", 0, UINT8_MAX, &mRequest.userType); + AddArgument("Pin", &mRequest.pin); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000024) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000005) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000024, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000005, mRequest); } private: - chip::app::Clusters::DoorLock::Commands::GetCredentialStatus::Type mRequest; - TypedComplexArgument mComplex_Credential; + chip::app::Clusters::DoorLock::Commands::SetPINCode::Type mRequest; }; /* - * Command GetUser + * Command GetPINCode */ -class DoorLockGetUser : public ClusterCommand +class DoorLockGetPINCode : public ClusterCommand { public: - DoorLockGetUser(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-user", credsIssuerConfig) + DoorLockGetPINCode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-pincode", credsIssuerConfig) { - AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); + AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000001B) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000006) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x0000001B, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000006, mRequest); } private: - chip::app::Clusters::DoorLock::Commands::GetUser::Type mRequest; + chip::app::Clusters::DoorLock::Commands::GetPINCode::Type mRequest; }; /* - * Command GetWeekDaySchedule + * Command ClearPINCode */ -class DoorLockGetWeekDaySchedule : public ClusterCommand +class DoorLockClearPINCode : public ClusterCommand { public: - DoorLockGetWeekDaySchedule(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("get-week-day-schedule", credsIssuerConfig) + DoorLockClearPINCode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("clear-pincode", credsIssuerConfig) { - AddArgument("WeekDayIndex", 0, UINT8_MAX, &mRequest.weekDayIndex); - AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); + AddArgument("PinSlotIndex", 0, UINT16_MAX, &mRequest.pinSlotIndex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000C) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000007) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x0000000C, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000007, mRequest); } private: - chip::app::Clusters::DoorLock::Commands::GetWeekDaySchedule::Type mRequest; + chip::app::Clusters::DoorLock::Commands::ClearPINCode::Type mRequest; }; /* - * Command GetYearDaySchedule + * Command ClearAllPINCodes */ -class DoorLockGetYearDaySchedule : public ClusterCommand +class DoorLockClearAllPINCodes : public ClusterCommand { public: - DoorLockGetYearDaySchedule(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("get-year-day-schedule", credsIssuerConfig) + DoorLockClearAllPINCodes(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("clear-all-pincodes", credsIssuerConfig) { - AddArgument("YearDayIndex", 0, UINT8_MAX, &mRequest.yearDayIndex); - AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000F) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000008) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x0000000F, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000008, mRequest); } private: - chip::app::Clusters::DoorLock::Commands::GetYearDaySchedule::Type mRequest; + chip::app::Clusters::DoorLock::Commands::ClearAllPINCodes::Type mRequest; }; /* - * Command LockDoor + * Command SetUserStatus */ -class DoorLockLockDoor : public ClusterCommand +class DoorLockSetUserStatus : public ClusterCommand { public: - DoorLockLockDoor(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("lock-door", credsIssuerConfig) + DoorLockSetUserStatus(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-user-status", credsIssuerConfig) { - AddArgument("PinCode", &mRequest.pinCode); + AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); + AddArgument("UserStatus", 0, UINT8_MAX, &mRequest.userStatus); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000009) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000009, mRequest); } private: - chip::app::Clusters::DoorLock::Commands::LockDoor::Type mRequest; + chip::app::Clusters::DoorLock::Commands::SetUserStatus::Type mRequest; }; /* - * Command SetCredential + * Command GetUserStatus */ -class DoorLockSetCredential : public ClusterCommand +class DoorLockGetUserStatus : public ClusterCommand { public: - DoorLockSetCredential(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("set-credential", credsIssuerConfig), mComplex_Credential(&mRequest.credential) + DoorLockGetUserStatus(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-user-status", credsIssuerConfig) { - AddArgument("OperationType", 0, UINT8_MAX, &mRequest.operationType); - AddArgument("Credential", &mComplex_Credential); - AddArgument("CredentialData", &mRequest.credentialData); + AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000A) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x0000000A, mRequest); + } + +private: + chip::app::Clusters::DoorLock::Commands::GetUserStatus::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("UserStatus", 0, UINT8_MAX, &mRequest.userStatus); - AddArgument("UserType", 0, UINT8_MAX, &mRequest.userType); + 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(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000022) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000B) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000022, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x0000000B, mRequest); } private: - chip::app::Clusters::DoorLock::Commands::SetCredential::Type mRequest; - TypedComplexArgument mComplex_Credential; + chip::app::Clusters::DoorLock::Commands::SetWeekDaySchedule::Type mRequest; }; /* - * Command SetUser + * Command GetWeekDaySchedule */ -class DoorLockSetUser : public ClusterCommand +class DoorLockGetWeekDaySchedule : public ClusterCommand { public: - DoorLockSetUser(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-user", credsIssuerConfig) + DoorLockGetWeekDaySchedule(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("get-week-day-schedule", credsIssuerConfig) { - AddArgument("OperationType", 0, UINT8_MAX, &mRequest.operationType); + AddArgument("WeekDayIndex", 0, UINT8_MAX, &mRequest.weekDayIndex); 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(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000001A) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000C) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x0000001A, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x0000000C, mRequest); } private: - chip::app::Clusters::DoorLock::Commands::SetUser::Type mRequest; + chip::app::Clusters::DoorLock::Commands::GetWeekDaySchedule::Type mRequest; }; /* - * Command SetWeekDaySchedule + * Command ClearWeekDaySchedule */ -class DoorLockSetWeekDaySchedule : public ClusterCommand +class DoorLockClearWeekDaySchedule : public ClusterCommand { public: - DoorLockSetWeekDaySchedule(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("set-week-day-schedule", credsIssuerConfig) + DoorLockClearWeekDaySchedule(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("clear-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(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000B) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000D) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x0000000B, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x0000000D, mRequest); } private: - chip::app::Clusters::DoorLock::Commands::SetWeekDaySchedule::Type mRequest; + chip::app::Clusters::DoorLock::Commands::ClearWeekDaySchedule::Type mRequest; }; /* @@ -2767,3407 +3160,5399 @@ class DoorLockSetYearDaySchedule : public ClusterCommand }; /* - * Command UnlockDoor + * Command GetYearDaySchedule */ -class DoorLockUnlockDoor : public ClusterCommand +class DoorLockGetYearDaySchedule : public ClusterCommand { public: - DoorLockUnlockDoor(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("unlock-door", credsIssuerConfig) + DoorLockGetYearDaySchedule(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("get-year-day-schedule", credsIssuerConfig) { - AddArgument("PinCode", &mRequest.pinCode); + AddArgument("YearDayIndex", 0, UINT8_MAX, &mRequest.yearDayIndex); + AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000001) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000F) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000001, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x0000000F, mRequest); } private: - chip::app::Clusters::DoorLock::Commands::UnlockDoor::Type mRequest; + chip::app::Clusters::DoorLock::Commands::GetYearDaySchedule::Type mRequest; }; /* - * Command UnlockWithTimeout + * Command ClearYearDaySchedule */ -class DoorLockUnlockWithTimeout : public ClusterCommand +class DoorLockClearYearDaySchedule : public ClusterCommand { public: - DoorLockUnlockWithTimeout(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("unlock-with-timeout", credsIssuerConfig) + DoorLockClearYearDaySchedule(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("clear-year-day-schedule", credsIssuerConfig) { - AddArgument("Timeout", 0, UINT16_MAX, &mRequest.timeout); - AddArgument("PinCode", &mRequest.pinCode); + AddArgument("YearDayIndex", 0, UINT8_MAX, &mRequest.yearDayIndex); + AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000003) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000010) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000003, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000010, mRequest); } private: - chip::app::Clusters::DoorLock::Commands::UnlockWithTimeout::Type mRequest; + chip::app::Clusters::DoorLock::Commands::ClearYearDaySchedule::Type mRequest; }; -class WriteDoorLockLanguage : public WriteAttribute +/* + * Command SetHolidaySchedule + */ +class DoorLockSetHolidaySchedule : public ClusterCommand { public: - WriteDoorLockLanguage(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Language", credsIssuerConfig) + DoorLockSetHolidaySchedule(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("set-holiday-schedule", credsIssuerConfig) { - AddArgument("attr-name", "language"); - AddArgument("attr-value", &mValue); - WriteAttribute::AddArguments(); + 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(); } - ~WriteDoorLockLanguage() {} - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000021, mValue); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000011) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000011, mRequest); } private: - chip::CharSpan mValue; + chip::app::Clusters::DoorLock::Commands::SetHolidaySchedule::Type mRequest; }; -class WriteDoorLockAutoRelockTime : public WriteAttribute +/* + * Command GetHolidaySchedule + */ +class DoorLockGetHolidaySchedule : public ClusterCommand { public: - WriteDoorLockAutoRelockTime(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("AutoRelockTime", credsIssuerConfig) + DoorLockGetHolidaySchedule(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("get-holiday-schedule", credsIssuerConfig) { - AddArgument("attr-name", "auto-relock-time"); - AddArgument("attr-value", 0, UINT32_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("HolidayIndex", 0, UINT8_MAX, &mRequest.holidayIndex); + ClusterCommand::AddArguments(); } - ~WriteDoorLockAutoRelockTime() {} - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000023, mValue); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000012) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000012, mRequest); } private: - uint32_t mValue; + chip::app::Clusters::DoorLock::Commands::GetHolidaySchedule::Type mRequest; }; -class WriteDoorLockSoundVolume : public WriteAttribute +/* + * Command ClearHolidaySchedule + */ +class DoorLockClearHolidaySchedule : public ClusterCommand { public: - WriteDoorLockSoundVolume(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("SoundVolume", credsIssuerConfig) + DoorLockClearHolidaySchedule(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("clear-holiday-schedule", credsIssuerConfig) { - AddArgument("attr-name", "sound-volume"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("HolidayIndex", 0, UINT8_MAX, &mRequest.holidayIndex); + ClusterCommand::AddArguments(); } - ~WriteDoorLockSoundVolume() {} - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000024, mValue); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000013) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000013, mRequest); } private: - uint8_t mValue; + chip::app::Clusters::DoorLock::Commands::ClearHolidaySchedule::Type mRequest; }; -class WriteDoorLockOperatingMode : public WriteAttribute +/* + * Command SetUserType + */ +class DoorLockSetUserType : public ClusterCommand { public: - WriteDoorLockOperatingMode(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("OperatingMode", credsIssuerConfig) + DoorLockSetUserType(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-user-type", credsIssuerConfig) { - AddArgument("attr-name", "operating-mode"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); + AddArgument("UserType", 0, UINT8_MAX, &mRequest.userType); + ClusterCommand::AddArguments(); } - ~WriteDoorLockOperatingMode() {} - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000025, mValue); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000014) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000014, mRequest); } private: - chip::app::Clusters::DoorLock::DlOperatingMode mValue; + chip::app::Clusters::DoorLock::Commands::SetUserType::Type mRequest; }; -class WriteDoorLockEnableOneTouchLocking : public WriteAttribute +/* + * Command GetUserType + */ +class DoorLockGetUserType : public ClusterCommand { public: - WriteDoorLockEnableOneTouchLocking(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("EnableOneTouchLocking", credsIssuerConfig) + DoorLockGetUserType(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-user-type", credsIssuerConfig) { - AddArgument("attr-name", "enable-one-touch-locking"); - AddArgument("attr-value", 0, 1, &mValue); - WriteAttribute::AddArguments(); + AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); + ClusterCommand::AddArguments(); } - ~WriteDoorLockEnableOneTouchLocking() {} - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000029, mValue); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000015) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000015, mRequest); } private: - bool mValue; + chip::app::Clusters::DoorLock::Commands::GetUserType::Type mRequest; }; -class WriteDoorLockEnablePrivacyModeButton : public WriteAttribute +/* + * Command SetRFIDCode + */ +class DoorLockSetRFIDCode : public ClusterCommand { public: - WriteDoorLockEnablePrivacyModeButton(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("EnablePrivacyModeButton", credsIssuerConfig) + DoorLockSetRFIDCode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-rfidcode", credsIssuerConfig) { - AddArgument("attr-name", "enable-privacy-mode-button"); - AddArgument("attr-value", 0, 1, &mValue); - WriteAttribute::AddArguments(); + AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); + AddArgument("UserStatus", 0, UINT8_MAX, &mRequest.userStatus); + AddArgument("UserType", 0, UINT8_MAX, &mRequest.userType); + AddArgument("RfidCode", &mRequest.rfidCode); + ClusterCommand::AddArguments(); } - ~WriteDoorLockEnablePrivacyModeButton() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000016) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000016, mRequest); + } + +private: + chip::app::Clusters::DoorLock::Commands::SetRFIDCode::Type mRequest; +}; + +/* + * Command GetRFIDCode + */ +class DoorLockGetRFIDCode : public ClusterCommand +{ +public: + DoorLockGetRFIDCode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-rfidcode", credsIssuerConfig) + { + AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); + ClusterCommand::AddArguments(); + } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x0000002B, mValue); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000017) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000017, mRequest); } private: - bool mValue; + chip::app::Clusters::DoorLock::Commands::GetRFIDCode::Type mRequest; }; -class WriteDoorLockWrongCodeEntryLimit : public WriteAttribute +/* + * Command ClearRFIDCode + */ +class DoorLockClearRFIDCode : public ClusterCommand { public: - WriteDoorLockWrongCodeEntryLimit(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("WrongCodeEntryLimit", credsIssuerConfig) + DoorLockClearRFIDCode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("clear-rfidcode", credsIssuerConfig) { - AddArgument("attr-name", "wrong-code-entry-limit"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("RfidSlotIndex", 0, UINT16_MAX, &mRequest.rfidSlotIndex); + ClusterCommand::AddArguments(); } - ~WriteDoorLockWrongCodeEntryLimit() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000018) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000018, mRequest); + } + +private: + chip::app::Clusters::DoorLock::Commands::ClearRFIDCode::Type mRequest; +}; + +/* + * Command ClearAllRFIDCodes + */ +class DoorLockClearAllRFIDCodes : public ClusterCommand +{ +public: + DoorLockClearAllRFIDCodes(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("clear-all-rfidcodes", credsIssuerConfig) + { + ClusterCommand::AddArguments(); + } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000030, mValue); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000019) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000019, mRequest); } private: - uint8_t mValue; + chip::app::Clusters::DoorLock::Commands::ClearAllRFIDCodes::Type mRequest; }; -/*----------------------------------------------------------------------------*\ -| Cluster ElectricalMeasurement | 0x0B04 | -|------------------------------------------------------------------------------| -| Commands: | | -|------------------------------------------------------------------------------| -| Attributes: | | -| * MeasurementType | 0x0000 | -| * TotalActivePower | 0x0304 | -| * RmsVoltage | 0x0505 | -| * RmsVoltageMin | 0x0506 | -| * RmsVoltageMax | 0x0507 | -| * RmsCurrent | 0x0508 | -| * RmsCurrentMin | 0x0509 | -| * RmsCurrentMax | 0x050A | -| * ActivePower | 0x050B | -| * ActivePowerMin | 0x050C | -| * ActivePowerMax | 0x050D | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ +/* + * 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(); + } -/*----------------------------------------------------------------------------*\ -| 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 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * FeatureMap | 0xFFFC | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000001A) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x0000001A, mRequest); + } + +private: + chip::app::Clusters::DoorLock::Commands::SetUser::Type mRequest; +}; /* - * Command ResetCounts + * Command GetUser */ -class EthernetNetworkDiagnosticsResetCounts : public ClusterCommand +class DoorLockGetUser : public ClusterCommand { public: - EthernetNetworkDiagnosticsResetCounts(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("reset-counts", credsIssuerConfig) + DoorLockGetUser(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-user", credsIssuerConfig) { + AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000037) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000001B) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000037, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x0000001B, mRequest); } private: - chip::app::Clusters::EthernetNetworkDiagnostics::Commands::ResetCounts::Type mRequest; + chip::app::Clusters::DoorLock::Commands::GetUser::Type mRequest; }; -/*----------------------------------------------------------------------------*\ -| Cluster FixedLabel | 0x0040 | -|------------------------------------------------------------------------------| -| Commands: | | -|------------------------------------------------------------------------------| -| Attributes: | | -| * LabelList | 0x0000 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ +/* + * Command ClearUser + */ +class DoorLockClearUser : public ClusterCommand +{ +public: + DoorLockClearUser(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("clear-user", credsIssuerConfig) + { + AddArgument("UserIndex", 0, UINT16_MAX, &mRequest.userIndex); + ClusterCommand::AddArguments(); + } -/*----------------------------------------------------------------------------*\ -| Cluster FlowMeasurement | 0x0404 | -|------------------------------------------------------------------------------| -| Commands: | | -|------------------------------------------------------------------------------| -| Attributes: | | -| * MeasuredValue | 0x0000 | -| * MinMeasuredValue | 0x0001 | -| * MaxMeasuredValue | 0x0002 | -| * Tolerance | 0x0003 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000001D) on endpoint %" PRIu16, endpointId); -/*----------------------------------------------------------------------------*\ -| Cluster GeneralCommissioning | 0x0030 | -|------------------------------------------------------------------------------| -| Commands: | | -| * ArmFailSafe | 0x00 | -| * CommissioningComplete | 0x04 | -| * SetRegulatoryConfig | 0x02 | -|------------------------------------------------------------------------------| -| Attributes: | | -| * Breadcrumb | 0x0000 | -| * BasicCommissioningInfo | 0x0001 | -| * RegulatoryConfig | 0x0002 | -| * LocationCapability | 0x0003 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x0000001D, mRequest); + } + +private: + chip::app::Clusters::DoorLock::Commands::ClearUser::Type mRequest; +}; /* - * Command ArmFailSafe + * Command SetCredential */ -class GeneralCommissioningArmFailSafe : public ClusterCommand +class DoorLockSetCredential : public ClusterCommand { public: - GeneralCommissioningArmFailSafe(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("arm-fail-safe", credsIssuerConfig) + DoorLockSetCredential(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("set-credential", credsIssuerConfig), mComplex_Credential(&mRequest.credential) { - AddArgument("ExpiryLengthSeconds", 0, UINT16_MAX, &mRequest.expiryLengthSeconds); - AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); - AddArgument("TimeoutMs", 0, UINT32_MAX, &mRequest.timeoutMs); + 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(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000030) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000022) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000030, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000022, mRequest); } private: - chip::app::Clusters::GeneralCommissioning::Commands::ArmFailSafe::Type mRequest; + chip::app::Clusters::DoorLock::Commands::SetCredential::Type mRequest; + TypedComplexArgument mComplex_Credential; }; /* - * Command CommissioningComplete + * Command GetCredentialStatus */ -class GeneralCommissioningCommissioningComplete : public ClusterCommand +class DoorLockGetCredentialStatus : public ClusterCommand { public: - GeneralCommissioningCommissioningComplete(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("commissioning-complete", credsIssuerConfig) + DoorLockGetCredentialStatus(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("get-credential-status", credsIssuerConfig), mComplex_Credential(&mRequest.credential) { + AddArgument("Credential", &mComplex_Credential); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000030) command (0x00000004) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000024) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000030, 0x00000004, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000024, mRequest); } private: - chip::app::Clusters::GeneralCommissioning::Commands::CommissioningComplete::Type mRequest; + chip::app::Clusters::DoorLock::Commands::GetCredentialStatus::Type mRequest; + TypedComplexArgument mComplex_Credential; }; /* - * Command SetRegulatoryConfig + * Command ClearCredential */ -class GeneralCommissioningSetRegulatoryConfig : public ClusterCommand +class DoorLockClearCredential : public ClusterCommand { public: - GeneralCommissioningSetRegulatoryConfig(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("set-regulatory-config", credsIssuerConfig) + DoorLockClearCredential(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("clear-credential", credsIssuerConfig), mComplex_Credential(&mRequest.credential) { - AddArgument("Location", 0, UINT8_MAX, &mRequest.location); - AddArgument("CountryCode", &mRequest.countryCode); - AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); - AddArgument("TimeoutMs", 0, UINT32_MAX, &mRequest.timeoutMs); + AddArgument("Credential", &mComplex_Credential); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000030) command (0x00000002) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000026) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000030, 0x00000002, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000101, 0x00000026, mRequest); } private: - chip::app::Clusters::GeneralCommissioning::Commands::SetRegulatoryConfig::Type mRequest; + chip::app::Clusters::DoorLock::Commands::ClearCredential::Type mRequest; + TypedComplexArgument> + mComplex_Credential; }; -class WriteGeneralCommissioningBreadcrumb : public WriteAttribute +class WriteDoorLockDoorOpenEvents : public WriteAttribute { public: - WriteGeneralCommissioningBreadcrumb(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("Breadcrumb", credsIssuerConfig) + WriteDoorLockDoorOpenEvents(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("DoorOpenEvents", credsIssuerConfig) { - AddArgument("attr-name", "breadcrumb"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "door-open-events"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteGeneralCommissioningBreadcrumb() {} + ~WriteDoorLockDoorOpenEvents() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000030, 0x00000000, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000004, mValue); } private: - uint64_t mValue; + uint32_t mValue; }; -/*----------------------------------------------------------------------------*\ -| Cluster GeneralDiagnostics | 0x0033 | -|------------------------------------------------------------------------------| -| Commands: | | -|------------------------------------------------------------------------------| -| Attributes: | | -| * NetworkInterfaces | 0x0000 | -| * RebootCount | 0x0001 | -| * UpTime | 0x0002 | -| * TotalOperationalHours | 0x0003 | -| * BootReasons | 0x0004 | -| * ActiveHardwareFaults | 0x0005 | -| * ActiveRadioFaults | 0x0006 | -| * ActiveNetworkFaults | 0x0007 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -| * HardwareFaultChange | 0x0000 | -| * RadioFaultChange | 0x0001 | -| * NetworkFaultChange | 0x0002 | -| * BootReason | 0x0003 | -\*----------------------------------------------------------------------------*/ - -/*----------------------------------------------------------------------------*\ -| Cluster GroupKeyManagement | 0x003F | -|------------------------------------------------------------------------------| -| Commands: | | -| * KeySetRead | 0x01 | -| * KeySetReadAllIndices | 0x04 | -| * KeySetRemove | 0x03 | -| * KeySetWrite | 0x00 | -|------------------------------------------------------------------------------| -| Attributes: | | -| * GroupKeyMap | 0x0000 | -| * GroupTable | 0x0001 | -| * MaxGroupsPerFabric | 0x0002 | -| * MaxGroupKeysPerFabric | 0x0003 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - -/* - * Command KeySetRead - */ -class GroupKeyManagementKeySetRead : public ClusterCommand +class WriteDoorLockDoorClosedEvents : public WriteAttribute { public: - GroupKeyManagementKeySetRead(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("key-set-read", credsIssuerConfig) + WriteDoorLockDoorClosedEvents(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("DoorClosedEvents", credsIssuerConfig) { - AddArgument("GroupKeySetID", 0, UINT16_MAX, &mRequest.groupKeySetID); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "door-closed-events"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockDoorClosedEvents() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000003F) command (0x00000001) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x0000003F, 0x00000001, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000005, mValue); } private: - chip::app::Clusters::GroupKeyManagement::Commands::KeySetRead::Type mRequest; + uint32_t mValue; }; -/* - * Command KeySetReadAllIndices - */ -class GroupKeyManagementKeySetReadAllIndices : public ClusterCommand +class WriteDoorLockOpenPeriod : public WriteAttribute { public: - GroupKeyManagementKeySetReadAllIndices(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("key-set-read-all-indices", credsIssuerConfig), mComplex_GroupKeySetIDs(&mRequest.groupKeySetIDs) + WriteDoorLockOpenPeriod(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("OpenPeriod", credsIssuerConfig) { - AddArgument("GroupKeySetIDs", &mComplex_GroupKeySetIDs); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "open-period"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockOpenPeriod() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000003F) command (0x00000004) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x0000003F, 0x00000004, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000006, mValue); } private: - chip::app::Clusters::GroupKeyManagement::Commands::KeySetReadAllIndices::Type mRequest; - TypedComplexArgument> mComplex_GroupKeySetIDs; + uint16_t mValue; }; -/* - * Command KeySetRemove - */ -class GroupKeyManagementKeySetRemove : public ClusterCommand +class WriteDoorLockEnableLogging : public WriteAttribute { public: - GroupKeyManagementKeySetRemove(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("key-set-remove", credsIssuerConfig) + WriteDoorLockEnableLogging(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("EnableLogging", credsIssuerConfig) { - AddArgument("GroupKeySetID", 0, UINT16_MAX, &mRequest.groupKeySetID); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "enable-logging"); + AddArgument("attr-value", 0, 1, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockEnableLogging() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000003F) command (0x00000003) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x0000003F, 0x00000003, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000020, mValue); } private: - chip::app::Clusters::GroupKeyManagement::Commands::KeySetRemove::Type mRequest; + bool mValue; }; -/* - * Command KeySetWrite - */ -class GroupKeyManagementKeySetWrite : public ClusterCommand +class WriteDoorLockLanguage : public WriteAttribute { public: - GroupKeyManagementKeySetWrite(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("key-set-write", credsIssuerConfig), mComplex_GroupKeySet(&mRequest.groupKeySet) + WriteDoorLockLanguage(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Language", credsIssuerConfig) { - AddArgument("GroupKeySet", &mComplex_GroupKeySet); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "language"); + AddArgument("attr-value", &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockLanguage() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000003F) command (0x00000000) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x0000003F, 0x00000000, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000021, mValue); } private: - chip::app::Clusters::GroupKeyManagement::Commands::KeySetWrite::Type mRequest; - TypedComplexArgument mComplex_GroupKeySet; + chip::CharSpan mValue; }; -class WriteGroupKeyManagementGroupKeyMap : public WriteAttribute +class WriteDoorLockLEDSettings : public WriteAttribute { public: - WriteGroupKeyManagementGroupKeyMap(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("GroupKeyMap", credsIssuerConfig), mComplex(&mValue) + WriteDoorLockLEDSettings(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("LEDSettings", credsIssuerConfig) { - AddArgument("attr-name", "group-key-map"); - AddArgument("attr-value", &mComplex); + AddArgument("attr-name", "ledsettings"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteGroupKeyManagementGroupKeyMap() {} + ~WriteDoorLockLEDSettings() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000003F, 0x00000000, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000022, mValue); } private: - chip::app::DataModel::List mValue; - TypedComplexArgument< - chip::app::DataModel::List> - mComplex; + uint8_t mValue; }; -/*----------------------------------------------------------------------------*\ -| Cluster Groups | 0x0004 | -|------------------------------------------------------------------------------| -| Commands: | | -| * AddGroup | 0x00 | -| * AddGroupIfIdentifying | 0x05 | -| * GetGroupMembership | 0x02 | -| * RemoveAllGroups | 0x04 | -| * RemoveGroup | 0x03 | -| * ViewGroup | 0x01 | -|------------------------------------------------------------------------------| -| Attributes: | | -| * NameSupport | 0x0000 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - -/* - * Command AddGroup - */ -class GroupsAddGroup : public ClusterCommand +class WriteDoorLockAutoRelockTime : public WriteAttribute { public: - GroupsAddGroup(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("add-group", credsIssuerConfig) + WriteDoorLockAutoRelockTime(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("AutoRelockTime", credsIssuerConfig) { - AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); - AddArgument("GroupName", &mRequest.groupName); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "auto-relock-time"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockAutoRelockTime() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000000) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000004, 0x00000000, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000023, mValue); } private: - chip::app::Clusters::Groups::Commands::AddGroup::Type mRequest; + uint32_t mValue; }; -/* - * Command AddGroupIfIdentifying - */ -class GroupsAddGroupIfIdentifying : public ClusterCommand +class WriteDoorLockSoundVolume : public WriteAttribute { public: - GroupsAddGroupIfIdentifying(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("add-group-if-identifying", credsIssuerConfig) + WriteDoorLockSoundVolume(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("SoundVolume", credsIssuerConfig) { - AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); - AddArgument("GroupName", &mRequest.groupName); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "sound-volume"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockSoundVolume() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000005) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000004, 0x00000005, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000024, mValue); } private: - chip::app::Clusters::Groups::Commands::AddGroupIfIdentifying::Type mRequest; + uint8_t mValue; }; -/* - * Command GetGroupMembership - */ -class GroupsGetGroupMembership : public ClusterCommand +class WriteDoorLockOperatingMode : public WriteAttribute { public: - GroupsGetGroupMembership(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("get-group-membership", credsIssuerConfig), mComplex_GroupList(&mRequest.groupList) + WriteDoorLockOperatingMode(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("OperatingMode", credsIssuerConfig) { - AddArgument("GroupList", &mComplex_GroupList); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "operating-mode"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockOperatingMode() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000002) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000004, 0x00000002, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000025, mValue); } private: - chip::app::Clusters::Groups::Commands::GetGroupMembership::Type mRequest; - TypedComplexArgument> mComplex_GroupList; + chip::app::Clusters::DoorLock::DlOperatingMode mValue; }; -/* - * Command RemoveAllGroups - */ -class GroupsRemoveAllGroups : public ClusterCommand +class WriteDoorLockEnableLocalProgramming : public WriteAttribute { public: - GroupsRemoveAllGroups(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("remove-all-groups", credsIssuerConfig) + WriteDoorLockEnableLocalProgramming(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("EnableLocalProgramming", credsIssuerConfig) { - ClusterCommand::AddArguments(); + AddArgument("attr-name", "enable-local-programming"); + AddArgument("attr-value", 0, 1, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockEnableLocalProgramming() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000004) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000004, 0x00000004, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000028, mValue); } private: - chip::app::Clusters::Groups::Commands::RemoveAllGroups::Type mRequest; + bool mValue; }; -/* - * Command RemoveGroup - */ -class GroupsRemoveGroup : public ClusterCommand +class WriteDoorLockEnableOneTouchLocking : public WriteAttribute { public: - GroupsRemoveGroup(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("remove-group", credsIssuerConfig) + WriteDoorLockEnableOneTouchLocking(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("EnableOneTouchLocking", credsIssuerConfig) { - AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "enable-one-touch-locking"); + AddArgument("attr-value", 0, 1, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockEnableOneTouchLocking() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000003) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000004, 0x00000003, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000029, mValue); } private: - chip::app::Clusters::Groups::Commands::RemoveGroup::Type mRequest; + bool mValue; }; -/* - * Command ViewGroup - */ -class GroupsViewGroup : public ClusterCommand +class WriteDoorLockEnableInsideStatusLED : public WriteAttribute { public: - GroupsViewGroup(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("view-group", credsIssuerConfig) + WriteDoorLockEnableInsideStatusLED(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("EnableInsideStatusLED", credsIssuerConfig) { - AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "enable-inside-status-led"); + AddArgument("attr-value", 0, 1, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockEnableInsideStatusLED() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000001) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000004, 0x00000001, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x0000002A, mValue); } private: - chip::app::Clusters::Groups::Commands::ViewGroup::Type mRequest; + bool mValue; }; -/*----------------------------------------------------------------------------*\ -| Cluster Identify | 0x0003 | -|------------------------------------------------------------------------------| -| Commands: | | -| * Identify | 0x00 | -| * IdentifyQuery | 0x01 | -| * TriggerEffect | 0x40 | -|------------------------------------------------------------------------------| -| Attributes: | | -| * IdentifyTime | 0x0000 | -| * IdentifyType | 0x0001 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - -/* - * Command Identify - */ -class IdentifyIdentify : public ClusterCommand +class WriteDoorLockEnablePrivacyModeButton : public WriteAttribute { public: - IdentifyIdentify(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("identify", credsIssuerConfig) + WriteDoorLockEnablePrivacyModeButton(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("EnablePrivacyModeButton", credsIssuerConfig) { - AddArgument("IdentifyTime", 0, UINT16_MAX, &mRequest.identifyTime); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "enable-privacy-mode-button"); + AddArgument("attr-value", 0, 1, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockEnablePrivacyModeButton() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000003) command (0x00000000) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000003, 0x00000000, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x0000002B, mValue); } private: - chip::app::Clusters::Identify::Commands::Identify::Type mRequest; + bool mValue; }; -/* - * Command IdentifyQuery - */ -class IdentifyIdentifyQuery : public ClusterCommand +class WriteDoorLockLocalProgrammingFeatures : public WriteAttribute { public: - IdentifyIdentifyQuery(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("identify-query", credsIssuerConfig) + WriteDoorLockLocalProgrammingFeatures(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("LocalProgrammingFeatures", credsIssuerConfig) { - ClusterCommand::AddArguments(); + AddArgument("attr-name", "local-programming-features"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockLocalProgrammingFeatures() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000003) command (0x00000001) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000003, 0x00000001, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x0000002C, mValue); } private: - chip::app::Clusters::Identify::Commands::IdentifyQuery::Type mRequest; + uint8_t mValue; }; -/* - * Command TriggerEffect - */ -class IdentifyTriggerEffect : public ClusterCommand +class WriteDoorLockWrongCodeEntryLimit : public WriteAttribute { public: - IdentifyTriggerEffect(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("trigger-effect", credsIssuerConfig) + WriteDoorLockWrongCodeEntryLimit(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("WrongCodeEntryLimit", credsIssuerConfig) { - AddArgument("EffectIdentifier", 0, UINT8_MAX, &mRequest.effectIdentifier); - AddArgument("EffectVariant", 0, UINT8_MAX, &mRequest.effectVariant); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "wrong-code-entry-limit"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockWrongCodeEntryLimit() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000003) command (0x00000040) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000003, 0x00000040, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000030, mValue); } private: - chip::app::Clusters::Identify::Commands::TriggerEffect::Type mRequest; + uint8_t mValue; }; -class WriteIdentifyIdentifyTime : public WriteAttribute +class WriteDoorLockUserCodeTemporaryDisableTime : public WriteAttribute { public: - WriteIdentifyIdentifyTime(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("IdentifyTime", credsIssuerConfig) + WriteDoorLockUserCodeTemporaryDisableTime(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("UserCodeTemporaryDisableTime", credsIssuerConfig) { - AddArgument("attr-name", "identify-time"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "user-code-temporary-disable-time"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteIdentifyIdentifyTime() {} + ~WriteDoorLockUserCodeTemporaryDisableTime() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000003, 0x00000000, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000031, mValue); } private: - uint16_t mValue; + uint8_t mValue; }; -/*----------------------------------------------------------------------------*\ -| Cluster IlluminanceMeasurement | 0x0400 | -|------------------------------------------------------------------------------| -| Commands: | | -|------------------------------------------------------------------------------| -| Attributes: | | -| * MeasuredValue | 0x0000 | -| * MinMeasuredValue | 0x0001 | -| * MaxMeasuredValue | 0x0002 | -| * Tolerance | 0x0003 | -| * LightSensorType | 0x0004 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - -/*----------------------------------------------------------------------------*\ -| Cluster KeypadInput | 0x0509 | -|------------------------------------------------------------------------------| -| Commands: | | -| * SendKeyRequest | 0x00 | -|------------------------------------------------------------------------------| -| Attributes: | | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - -/* - * Command SendKeyRequest - */ -class KeypadInputSendKeyRequest : public ClusterCommand +class WriteDoorLockSendPINOverTheAir : public WriteAttribute { public: - KeypadInputSendKeyRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("send-key-request", credsIssuerConfig) + WriteDoorLockSendPINOverTheAir(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("SendPINOverTheAir", credsIssuerConfig) { - AddArgument("KeyCode", 0, UINT8_MAX, &mRequest.keyCode); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "send-pinover-the-air"); + AddArgument("attr-value", 0, 1, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockSendPINOverTheAir() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000509) command (0x00000000) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000509, 0x00000000, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000032, mValue); } private: - chip::app::Clusters::KeypadInput::Commands::SendKeyRequest::Type mRequest; + bool mValue; }; -/*----------------------------------------------------------------------------*\ -| Cluster LevelControl | 0x0008 | -|------------------------------------------------------------------------------| -| Commands: | | -| * Move | 0x01 | -| * MoveToLevel | 0x00 | -| * MoveToLevelWithOnOff | 0x04 | -| * MoveWithOnOff | 0x05 | -| * Step | 0x02 | -| * StepWithOnOff | 0x06 | -| * Stop | 0x03 | -| * StopWithOnOff | 0x07 | -|------------------------------------------------------------------------------| -| 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 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * FeatureMap | 0xFFFC | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - -/* - * Command Move - */ -class LevelControlMove : public ClusterCommand +class WriteDoorLockRequirePINforRemoteOperation : public WriteAttribute { public: - LevelControlMove(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move", credsIssuerConfig) + WriteDoorLockRequirePINforRemoteOperation(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RequirePINforRemoteOperation", credsIssuerConfig) { - AddArgument("MoveMode", 0, UINT8_MAX, &mRequest.moveMode); - AddArgument("Rate", 0, UINT8_MAX, &mRequest.rate); - AddArgument("OptionMask", 0, UINT8_MAX, &mRequest.optionMask); - AddArgument("OptionOverride", 0, UINT8_MAX, &mRequest.optionOverride); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "require-pinfor-remote-operation"); + AddArgument("attr-value", 0, 1, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockRequirePINforRemoteOperation() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000001) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000008, 0x00000001, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000033, mValue); } private: - chip::app::Clusters::LevelControl::Commands::Move::Type mRequest; + bool mValue; }; -/* - * Command MoveToLevel - */ -class LevelControlMoveToLevel : public ClusterCommand +class WriteDoorLockExpiringUserTimeout : public WriteAttribute { public: - LevelControlMoveToLevel(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-to-level", credsIssuerConfig) + WriteDoorLockExpiringUserTimeout(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ExpiringUserTimeout", credsIssuerConfig) { - AddArgument("Level", 0, UINT8_MAX, &mRequest.level); - AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); - AddArgument("OptionMask", 0, UINT8_MAX, &mRequest.optionMask); - AddArgument("OptionOverride", 0, UINT8_MAX, &mRequest.optionOverride); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "expiring-user-timeout"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockExpiringUserTimeout() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000000) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000008, 0x00000000, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000035, mValue); } private: - chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type mRequest; + uint16_t mValue; }; -/* - * Command MoveToLevelWithOnOff - */ -class LevelControlMoveToLevelWithOnOff : public ClusterCommand +class WriteDoorLockAlarmMask : public WriteAttribute { public: - LevelControlMoveToLevelWithOnOff(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("move-to-level-with-on-off", credsIssuerConfig) + WriteDoorLockAlarmMask(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("AlarmMask", credsIssuerConfig) { - AddArgument("Level", 0, UINT8_MAX, &mRequest.level); - AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "alarm-mask"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockAlarmMask() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000004) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000008, 0x00000004, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000040, mValue); } private: - chip::app::Clusters::LevelControl::Commands::MoveToLevelWithOnOff::Type mRequest; + uint16_t mValue; }; -/* - * Command MoveWithOnOff - */ -class LevelControlMoveWithOnOff : public ClusterCommand +class WriteDoorLockKeypadOperationEventMask : public WriteAttribute { public: - LevelControlMoveWithOnOff(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-with-on-off", credsIssuerConfig) + WriteDoorLockKeypadOperationEventMask(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("KeypadOperationEventMask", credsIssuerConfig) { - AddArgument("MoveMode", 0, UINT8_MAX, &mRequest.moveMode); - AddArgument("Rate", 0, UINT8_MAX, &mRequest.rate); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "keypad-operation-event-mask"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockKeypadOperationEventMask() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000005) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000008, 0x00000005, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000041, mValue); } private: - chip::app::Clusters::LevelControl::Commands::MoveWithOnOff::Type mRequest; + uint16_t mValue; }; -/* - * Command Step - */ -class LevelControlStep : public ClusterCommand +class WriteDoorLockRemoteOperationEventMask : public WriteAttribute { public: - LevelControlStep(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("step", credsIssuerConfig) + WriteDoorLockRemoteOperationEventMask(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RemoteOperationEventMask", credsIssuerConfig) { - AddArgument("StepMode", 0, UINT8_MAX, &mRequest.stepMode); - AddArgument("StepSize", 0, UINT8_MAX, &mRequest.stepSize); - AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); - AddArgument("OptionMask", 0, UINT8_MAX, &mRequest.optionMask); - AddArgument("OptionOverride", 0, UINT8_MAX, &mRequest.optionOverride); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "remote-operation-event-mask"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockRemoteOperationEventMask() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000002) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000008, 0x00000002, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000042, mValue); } private: - chip::app::Clusters::LevelControl::Commands::Step::Type mRequest; + uint16_t mValue; }; -/* - * Command StepWithOnOff - */ -class LevelControlStepWithOnOff : public ClusterCommand +class WriteDoorLockManualOperationEventMask : public WriteAttribute { public: - LevelControlStepWithOnOff(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("step-with-on-off", credsIssuerConfig) + WriteDoorLockManualOperationEventMask(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ManualOperationEventMask", credsIssuerConfig) { - AddArgument("StepMode", 0, UINT8_MAX, &mRequest.stepMode); - AddArgument("StepSize", 0, UINT8_MAX, &mRequest.stepSize); - AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "manual-operation-event-mask"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteDoorLockManualOperationEventMask() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000006) on endpoint %" PRIu16, endpointId); + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000043, mValue); + } - return ClusterCommand::SendCommand(device, endpointId, 0x00000008, 0x00000006, mRequest); +private: + uint16_t mValue; +}; + +class WriteDoorLockRFIDOperationEventMask : public WriteAttribute +{ +public: + WriteDoorLockRFIDOperationEventMask(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RFIDOperationEventMask", credsIssuerConfig) + { + AddArgument("attr-name", "rfidoperation-event-mask"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteDoorLockRFIDOperationEventMask() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000044, mValue); } private: - chip::app::Clusters::LevelControl::Commands::StepWithOnOff::Type mRequest; + uint16_t mValue; +}; + +class WriteDoorLockKeypadProgrammingEventMask : public WriteAttribute +{ +public: + WriteDoorLockKeypadProgrammingEventMask(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("KeypadProgrammingEventMask", credsIssuerConfig) + { + AddArgument("attr-name", "keypad-programming-event-mask"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteDoorLockKeypadProgrammingEventMask() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000045, mValue); + } + +private: + uint16_t mValue; +}; + +class WriteDoorLockRemoteProgrammingEventMask : public WriteAttribute +{ +public: + WriteDoorLockRemoteProgrammingEventMask(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RemoteProgrammingEventMask", credsIssuerConfig) + { + AddArgument("attr-name", "remote-programming-event-mask"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteDoorLockRemoteProgrammingEventMask() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000046, mValue); + } + +private: + uint16_t mValue; +}; + +class WriteDoorLockRFIDProgrammingEventMask : public WriteAttribute +{ +public: + WriteDoorLockRFIDProgrammingEventMask(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RFIDProgrammingEventMask", credsIssuerConfig) + { + AddArgument("attr-name", "rfidprogramming-event-mask"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteDoorLockRFIDProgrammingEventMask() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000101, 0x00000047, mValue); + } + +private: + uint16_t mValue; }; +/*----------------------------------------------------------------------------*\ +| Cluster ElectricalMeasurement | 0x0B04 | +|------------------------------------------------------------------------------| +| Commands: | | +| * GetProfileInfoCommand | 0x00 | +| * GetMeasurementProfileCommand | 0x01 | +|------------------------------------------------------------------------------| +| Attributes: | | +| * MeasurementType | 0x0000 | +| * DcVoltage | 0x0100 | +| * DcVoltageMin | 0x0101 | +| * DcVoltageMax | 0x0102 | +| * DcCurrent | 0x0103 | +| * DcCurrentMin | 0x0104 | +| * DcCurrentMax | 0x0105 | +| * DcPower | 0x0106 | +| * DcPowerMin | 0x0107 | +| * DcPowerMax | 0x0108 | +| * DcVoltageMultiplier | 0x0200 | +| * DcVoltageDivisor | 0x0201 | +| * DcCurrentMultiplier | 0x0202 | +| * DcCurrentDivisor | 0x0203 | +| * DcPowerMultiplier | 0x0204 | +| * DcPowerDivisor | 0x0205 | +| * AcFrequency | 0x0300 | +| * AcFrequencyMin | 0x0301 | +| * AcFrequencyMax | 0x0302 | +| * NeutralCurrent | 0x0303 | +| * TotalActivePower | 0x0304 | +| * TotalReactivePower | 0x0305 | +| * TotalApparentPower | 0x0306 | +| * Measured1stHarmonicCurrent | 0x0307 | +| * Measured3rdHarmonicCurrent | 0x0308 | +| * Measured5thHarmonicCurrent | 0x0309 | +| * Measured7thHarmonicCurrent | 0x030A | +| * Measured9thHarmonicCurrent | 0x030B | +| * Measured11thHarmonicCurrent | 0x030C | +| * MeasuredPhase1stHarmonicCurrent | 0x030D | +| * MeasuredPhase3rdHarmonicCurrent | 0x030E | +| * MeasuredPhase5thHarmonicCurrent | 0x030F | +| * MeasuredPhase7thHarmonicCurrent | 0x0310 | +| * MeasuredPhase9thHarmonicCurrent | 0x0311 | +| * MeasuredPhase11thHarmonicCurrent | 0x0312 | +| * AcFrequencyMultiplier | 0x0400 | +| * AcFrequencyDivisor | 0x0401 | +| * PowerMultiplier | 0x0402 | +| * PowerDivisor | 0x0403 | +| * HarmonicCurrentMultiplier | 0x0404 | +| * PhaseHarmonicCurrentMultiplier | 0x0405 | +| * InstantaneousVoltage | 0x0500 | +| * InstantaneousLineCurrent | 0x0501 | +| * InstantaneousActiveCurrent | 0x0502 | +| * InstantaneousReactiveCurrent | 0x0503 | +| * InstantaneousPower | 0x0504 | +| * RmsVoltage | 0x0505 | +| * RmsVoltageMin | 0x0506 | +| * RmsVoltageMax | 0x0507 | +| * RmsCurrent | 0x0508 | +| * RmsCurrentMin | 0x0509 | +| * RmsCurrentMax | 0x050A | +| * ActivePower | 0x050B | +| * ActivePowerMin | 0x050C | +| * ActivePowerMax | 0x050D | +| * ReactivePower | 0x050E | +| * ApparentPower | 0x050F | +| * PowerFactor | 0x0510 | +| * AverageRmsVoltageMeasurementPeriod | 0x0511 | +| * AverageRmsUnderVoltageCounter | 0x0513 | +| * RmsExtremeOverVoltagePeriod | 0x0514 | +| * RmsExtremeUnderVoltagePeriod | 0x0515 | +| * RmsVoltageSagPeriod | 0x0516 | +| * RmsVoltageSwellPeriod | 0x0517 | +| * AcVoltageMultiplier | 0x0600 | +| * AcVoltageDivisor | 0x0601 | +| * AcCurrentMultiplier | 0x0602 | +| * AcCurrentDivisor | 0x0603 | +| * AcPowerMultiplier | 0x0604 | +| * AcPowerDivisor | 0x0605 | +| * OverloadAlarmsMask | 0x0700 | +| * VoltageOverload | 0x0701 | +| * CurrentOverload | 0x0702 | +| * AcOverloadAlarmsMask | 0x0800 | +| * AcVoltageOverload | 0x0801 | +| * AcCurrentOverload | 0x0802 | +| * AcActivePowerOverload | 0x0803 | +| * AcReactivePowerOverload | 0x0804 | +| * AverageRmsOverVoltage | 0x0805 | +| * AverageRmsUnderVoltage | 0x0806 | +| * RmsExtremeOverVoltage | 0x0807 | +| * RmsExtremeUnderVoltage | 0x0808 | +| * RmsVoltageSag | 0x0809 | +| * RmsVoltageSwell | 0x080A | +| * LineCurrentPhaseB | 0x0901 | +| * ActiveCurrentPhaseB | 0x0902 | +| * ReactiveCurrentPhaseB | 0x0903 | +| * RmsVoltagePhaseB | 0x0905 | +| * RmsVoltageMinPhaseB | 0x0906 | +| * RmsVoltageMaxPhaseB | 0x0907 | +| * RmsCurrentPhaseB | 0x0908 | +| * RmsCurrentMinPhaseB | 0x0909 | +| * RmsCurrentMaxPhaseB | 0x090A | +| * ActivePowerPhaseB | 0x090B | +| * ActivePowerMinPhaseB | 0x090C | +| * ActivePowerMaxPhaseB | 0x090D | +| * ReactivePowerPhaseB | 0x090E | +| * ApparentPowerPhaseB | 0x090F | +| * PowerFactorPhaseB | 0x0910 | +| * AverageRmsVoltageMeasurementPeriodPhaseB | 0x0911 | +| * AverageRmsOverVoltageCounterPhaseB | 0x0912 | +| * AverageRmsUnderVoltageCounterPhaseB | 0x0913 | +| * RmsExtremeOverVoltagePeriodPhaseB | 0x0914 | +| * RmsExtremeUnderVoltagePeriodPhaseB | 0x0915 | +| * RmsVoltageSagPeriodPhaseB | 0x0916 | +| * RmsVoltageSwellPeriodPhaseB | 0x0917 | +| * LineCurrentPhaseC | 0x0A01 | +| * ActiveCurrentPhaseC | 0x0A02 | +| * ReactiveCurrentPhaseC | 0x0A03 | +| * RmsVoltagePhaseC | 0x0A05 | +| * RmsVoltageMinPhaseC | 0x0A06 | +| * RmsVoltageMaxPhaseC | 0x0A07 | +| * RmsCurrentPhaseC | 0x0A08 | +| * RmsCurrentMinPhaseC | 0x0A09 | +| * RmsCurrentMaxPhaseC | 0x0A0A | +| * ActivePowerPhaseC | 0x0A0B | +| * ActivePowerMinPhaseC | 0x0A0C | +| * ActivePowerMaxPhaseC | 0x0A0D | +| * ReactivePowerPhaseC | 0x0A0E | +| * ApparentPowerPhaseC | 0x0A0F | +| * PowerFactorPhaseC | 0x0A10 | +| * AverageRmsVoltageMeasurementPeriodPhaseC | 0x0A11 | +| * AverageRmsOverVoltageCounterPhaseC | 0x0A12 | +| * AverageRmsUnderVoltageCounterPhaseC | 0x0A13 | +| * RmsExtremeOverVoltagePeriodPhaseC | 0x0A14 | +| * RmsExtremeUnderVoltagePeriodPhaseC | 0x0A15 | +| * RmsVoltageSagPeriodPhaseC | 0x0A16 | +| * RmsVoltageSwellPeriodPhaseC | 0x0A17 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + /* - * Command Stop + * Command GetProfileInfoCommand */ -class LevelControlStop : public ClusterCommand +class ElectricalMeasurementGetProfileInfoCommand : public ClusterCommand { public: - LevelControlStop(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop", credsIssuerConfig) + ElectricalMeasurementGetProfileInfoCommand(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("get-profile-info-command", credsIssuerConfig) { - AddArgument("OptionMask", 0, UINT8_MAX, &mRequest.optionMask); - AddArgument("OptionOverride", 0, UINT8_MAX, &mRequest.optionOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000003) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000B04) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000008, 0x00000003, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000B04, 0x00000000, mRequest); } private: - chip::app::Clusters::LevelControl::Commands::Stop::Type mRequest; + chip::app::Clusters::ElectricalMeasurement::Commands::GetProfileInfoCommand::Type mRequest; }; /* - * Command StopWithOnOff + * Command GetMeasurementProfileCommand */ -class LevelControlStopWithOnOff : public ClusterCommand +class ElectricalMeasurementGetMeasurementProfileCommand : public ClusterCommand { public: - LevelControlStopWithOnOff(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop-with-on-off", credsIssuerConfig) + ElectricalMeasurementGetMeasurementProfileCommand(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("get-measurement-profile-command", credsIssuerConfig) { + AddArgument("AttributeId", 0, UINT16_MAX, &mRequest.attributeId); + AddArgument("StartTime", 0, UINT32_MAX, &mRequest.startTime); + AddArgument("NumberOfIntervals", 0, UINT8_MAX, &mRequest.numberOfIntervals); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000007) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000B04) command (0x00000001) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000008, 0x00000007, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000B04, 0x00000001, mRequest); } private: - chip::app::Clusters::LevelControl::Commands::StopWithOnOff::Type mRequest; + chip::app::Clusters::ElectricalMeasurement::Commands::GetMeasurementProfileCommand::Type mRequest; }; -class WriteLevelControlOptions : public WriteAttribute +class WriteElectricalMeasurementAverageRmsVoltageMeasurementPeriod : public WriteAttribute { public: - WriteLevelControlOptions(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Options", credsIssuerConfig) + WriteElectricalMeasurementAverageRmsVoltageMeasurementPeriod(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("AverageRmsVoltageMeasurementPeriod", credsIssuerConfig) { - AddArgument("attr-name", "options"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "average-rms-voltage-measurement-period"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteLevelControlOptions() {} + ~WriteElectricalMeasurementAverageRmsVoltageMeasurementPeriod() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000008, 0x0000000F, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000B04, 0x00000511, mValue); } private: - uint8_t mValue; + uint16_t mValue; }; -class WriteLevelControlOnOffTransitionTime : public WriteAttribute +class WriteElectricalMeasurementAverageRmsUnderVoltageCounter : public WriteAttribute { public: - WriteLevelControlOnOffTransitionTime(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("OnOffTransitionTime", credsIssuerConfig) + WriteElectricalMeasurementAverageRmsUnderVoltageCounter(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("AverageRmsUnderVoltageCounter", credsIssuerConfig) { - AddArgument("attr-name", "on-off-transition-time"); + AddArgument("attr-name", "average-rms-under-voltage-counter"); AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteLevelControlOnOffTransitionTime() {} + ~WriteElectricalMeasurementAverageRmsUnderVoltageCounter() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000008, 0x00000010, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000B04, 0x00000513, mValue); } private: uint16_t mValue; }; -class WriteLevelControlOnLevel : public WriteAttribute +class WriteElectricalMeasurementRmsExtremeOverVoltagePeriod : public WriteAttribute { public: - WriteLevelControlOnLevel(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("OnLevel", credsIssuerConfig) + WriteElectricalMeasurementRmsExtremeOverVoltagePeriod(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RmsExtremeOverVoltagePeriod", credsIssuerConfig) { - AddArgument("attr-name", "on-level"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "rms-extreme-over-voltage-period"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteLevelControlOnLevel() {} + ~WriteElectricalMeasurementRmsExtremeOverVoltagePeriod() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000008, 0x00000011, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000B04, 0x00000514, mValue); } private: - chip::app::DataModel::Nullable mValue; + uint16_t mValue; }; -class WriteLevelControlOnTransitionTime : public WriteAttribute +class WriteElectricalMeasurementRmsExtremeUnderVoltagePeriod : public WriteAttribute { public: - WriteLevelControlOnTransitionTime(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("OnTransitionTime", credsIssuerConfig) + WriteElectricalMeasurementRmsExtremeUnderVoltagePeriod(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RmsExtremeUnderVoltagePeriod", credsIssuerConfig) { - AddArgument("attr-name", "on-transition-time"); + AddArgument("attr-name", "rms-extreme-under-voltage-period"); AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteLevelControlOnTransitionTime() {} + ~WriteElectricalMeasurementRmsExtremeUnderVoltagePeriod() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000008, 0x00000012, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000B04, 0x00000515, mValue); } private: - chip::app::DataModel::Nullable mValue; + uint16_t mValue; }; -class WriteLevelControlOffTransitionTime : public WriteAttribute +class WriteElectricalMeasurementRmsVoltageSagPeriod : public WriteAttribute { public: - WriteLevelControlOffTransitionTime(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("OffTransitionTime", credsIssuerConfig) + WriteElectricalMeasurementRmsVoltageSagPeriod(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RmsVoltageSagPeriod", credsIssuerConfig) { - AddArgument("attr-name", "off-transition-time"); + AddArgument("attr-name", "rms-voltage-sag-period"); AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteLevelControlOffTransitionTime() {} + ~WriteElectricalMeasurementRmsVoltageSagPeriod() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000008, 0x00000013, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000B04, 0x00000516, mValue); } private: - chip::app::DataModel::Nullable mValue; + uint16_t mValue; }; -class WriteLevelControlDefaultMoveRate : public WriteAttribute +class WriteElectricalMeasurementRmsVoltageSwellPeriod : public WriteAttribute { public: - WriteLevelControlDefaultMoveRate(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("DefaultMoveRate", credsIssuerConfig) + WriteElectricalMeasurementRmsVoltageSwellPeriod(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RmsVoltageSwellPeriod", credsIssuerConfig) { - AddArgument("attr-name", "default-move-rate"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "rms-voltage-swell-period"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteLevelControlDefaultMoveRate() {} + ~WriteElectricalMeasurementRmsVoltageSwellPeriod() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000008, 0x00000014, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000B04, 0x00000517, mValue); } private: - chip::app::DataModel::Nullable mValue; + uint16_t mValue; }; -class WriteLevelControlStartUpCurrentLevel : public WriteAttribute +class WriteElectricalMeasurementOverloadAlarmsMask : public WriteAttribute { public: - WriteLevelControlStartUpCurrentLevel(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("StartUpCurrentLevel", credsIssuerConfig) + WriteElectricalMeasurementOverloadAlarmsMask(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("OverloadAlarmsMask", credsIssuerConfig) { - AddArgument("attr-name", "start-up-current-level"); + AddArgument("attr-name", "overload-alarms-mask"); AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteLevelControlStartUpCurrentLevel() {} + ~WriteElectricalMeasurementOverloadAlarmsMask() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000008, 0x00004000, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000B04, 0x00000700, mValue); } private: - chip::app::DataModel::Nullable mValue; + uint8_t mValue; }; -/*----------------------------------------------------------------------------*\ -| Cluster LocalizationConfiguration | 0x002B | -|------------------------------------------------------------------------------| -| Commands: | | -|------------------------------------------------------------------------------| -| Attributes: | | -| * ActiveLocale | 0x0001 | -| * SupportedLocales | 0x0002 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - -class WriteLocalizationConfigurationActiveLocale : public WriteAttribute +class WriteElectricalMeasurementAcOverloadAlarmsMask : public WriteAttribute { public: - WriteLocalizationConfigurationActiveLocale(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("ActiveLocale", credsIssuerConfig) + WriteElectricalMeasurementAcOverloadAlarmsMask(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("AcOverloadAlarmsMask", credsIssuerConfig) { - AddArgument("attr-name", "active-locale"); - AddArgument("attr-value", &mValue); + AddArgument("attr-name", "ac-overload-alarms-mask"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteLocalizationConfigurationActiveLocale() {} + ~WriteElectricalMeasurementAcOverloadAlarmsMask() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000002B, 0x00000001, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000B04, 0x00000800, mValue); } private: - chip::CharSpan mValue; + uint16_t mValue; }; /*----------------------------------------------------------------------------*\ -| Cluster LowPower | 0x0508 | +| Cluster EthernetNetworkDiagnostics | 0x0037 | |------------------------------------------------------------------------------| | Commands: | | -| * Sleep | 0x00 | +| * ResetCounts | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | +| * PHYRate | 0x0000 | +| * FullDuplex | 0x0001 | +| * PacketRxCount | 0x0002 | +| * PacketTxCount | 0x0003 | +| * TxErrCount | 0x0004 | +| * CollisionCount | 0x0005 | +| * OverrunCount | 0x0006 | +| * CarrierDetect | 0x0007 | +| * TimeSinceReset | 0x0008 | | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* - * Command Sleep + * Command ResetCounts */ -class LowPowerSleep : public ClusterCommand +class EthernetNetworkDiagnosticsResetCounts : public ClusterCommand { public: - LowPowerSleep(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("sleep", credsIssuerConfig) + EthernetNetworkDiagnosticsResetCounts(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("reset-counts", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000508) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000037) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000508, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000037, 0x00000000, mRequest); } private: - chip::app::Clusters::LowPower::Commands::Sleep::Type mRequest; + chip::app::Clusters::EthernetNetworkDiagnostics::Commands::ResetCounts::Type mRequest; }; /*----------------------------------------------------------------------------*\ -| Cluster MediaInput | 0x0507 | +| Cluster FixedLabel | 0x0040 | |------------------------------------------------------------------------------| | Commands: | | -| * HideInputStatusRequest | 0x02 | -| * RenameInputRequest | 0x03 | -| * SelectInputRequest | 0x00 | -| * ShowInputStatusRequest | 0x01 | |------------------------------------------------------------------------------| | Attributes: | | -| * MediaInputList | 0x0000 | -| * CurrentMediaInput | 0x0001 | +| * LabelList | 0x0000 | | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ -/* - * Command HideInputStatusRequest - */ -class MediaInputHideInputStatusRequest : public ClusterCommand -{ -public: - MediaInputHideInputStatusRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("hide-input-status-request", credsIssuerConfig) - { - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000507) command (0x00000002) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000507, 0x00000002, mRequest); - } - -private: - chip::app::Clusters::MediaInput::Commands::HideInputStatusRequest::Type mRequest; -}; - -/* - * Command RenameInputRequest - */ -class MediaInputRenameInputRequest : public ClusterCommand -{ +/*----------------------------------------------------------------------------*\ +| Cluster FlowMeasurement | 0x0404 | +|------------------------------------------------------------------------------| +| Commands: | | +|------------------------------------------------------------------------------| +| Attributes: | | +| * MeasuredValue | 0x0000 | +| * MinMeasuredValue | 0x0001 | +| * MaxMeasuredValue | 0x0002 | +| * Tolerance | 0x0003 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + +/*----------------------------------------------------------------------------*\ +| Cluster GeneralCommissioning | 0x0030 | +|------------------------------------------------------------------------------| +| Commands: | | +| * ArmFailSafe | 0x00 | +| * SetRegulatoryConfig | 0x02 | +| * CommissioningComplete | 0x04 | +|------------------------------------------------------------------------------| +| Attributes: | | +| * Breadcrumb | 0x0000 | +| * BasicCommissioningInfo | 0x0001 | +| * RegulatoryConfig | 0x0002 | +| * LocationCapability | 0x0003 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + +/* + * Command ArmFailSafe + */ +class GeneralCommissioningArmFailSafe : public ClusterCommand +{ public: - MediaInputRenameInputRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("rename-input-request", credsIssuerConfig) + GeneralCommissioningArmFailSafe(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("arm-fail-safe", credsIssuerConfig) { - AddArgument("Index", 0, UINT8_MAX, &mRequest.index); - AddArgument("Name", &mRequest.name); + AddArgument("ExpiryLengthSeconds", 0, UINT16_MAX, &mRequest.expiryLengthSeconds); + AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); + AddArgument("TimeoutMs", 0, UINT32_MAX, &mRequest.timeoutMs); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000507) command (0x00000003) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000030) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000507, 0x00000003, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000030, 0x00000000, mRequest); } private: - chip::app::Clusters::MediaInput::Commands::RenameInputRequest::Type mRequest; + chip::app::Clusters::GeneralCommissioning::Commands::ArmFailSafe::Type mRequest; }; /* - * Command SelectInputRequest + * Command SetRegulatoryConfig */ -class MediaInputSelectInputRequest : public ClusterCommand +class GeneralCommissioningSetRegulatoryConfig : public ClusterCommand { public: - MediaInputSelectInputRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("select-input-request", credsIssuerConfig) + GeneralCommissioningSetRegulatoryConfig(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("set-regulatory-config", credsIssuerConfig) { - AddArgument("Index", 0, UINT8_MAX, &mRequest.index); + AddArgument("Location", 0, UINT8_MAX, &mRequest.location); + AddArgument("CountryCode", &mRequest.countryCode); + AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); + AddArgument("TimeoutMs", 0, UINT32_MAX, &mRequest.timeoutMs); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000507) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000030) command (0x00000002) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000507, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000030, 0x00000002, mRequest); } private: - chip::app::Clusters::MediaInput::Commands::SelectInputRequest::Type mRequest; + chip::app::Clusters::GeneralCommissioning::Commands::SetRegulatoryConfig::Type mRequest; }; /* - * Command ShowInputStatusRequest + * Command CommissioningComplete */ -class MediaInputShowInputStatusRequest : public ClusterCommand +class GeneralCommissioningCommissioningComplete : public ClusterCommand { public: - MediaInputShowInputStatusRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("show-input-status-request", credsIssuerConfig) + GeneralCommissioningCommissioningComplete(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("commissioning-complete", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000507) command (0x00000001) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000030) command (0x00000004) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000507, 0x00000001, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000030, 0x00000004, mRequest); } private: - chip::app::Clusters::MediaInput::Commands::ShowInputStatusRequest::Type mRequest; + chip::app::Clusters::GeneralCommissioning::Commands::CommissioningComplete::Type mRequest; +}; + +class WriteGeneralCommissioningBreadcrumb : public WriteAttribute +{ +public: + WriteGeneralCommissioningBreadcrumb(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("Breadcrumb", credsIssuerConfig) + { + AddArgument("attr-name", "breadcrumb"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteGeneralCommissioningBreadcrumb() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000030, 0x00000000, mValue); + } + +private: + uint64_t mValue; }; /*----------------------------------------------------------------------------*\ -| Cluster MediaPlayback | 0x0506 | +| Cluster GeneralDiagnostics | 0x0033 | |------------------------------------------------------------------------------| | Commands: | | -| * FastForwardRequest | 0x07 | -| * NextRequest | 0x05 | -| * PauseRequest | 0x01 | -| * PlayRequest | 0x00 | -| * PreviousRequest | 0x04 | -| * RewindRequest | 0x06 | -| * SeekRequest | 0x0B | -| * SkipBackwardRequest | 0x09 | -| * SkipForwardRequest | 0x08 | -| * StartOverRequest | 0x03 | -| * StopRequest | 0x02 | |------------------------------------------------------------------------------| | Attributes: | | -| * PlaybackState | 0x0000 | -| * StartTime | 0x0001 | -| * Duration | 0x0002 | -| * PlaybackSpeed | 0x0004 | -| * SeekRangeEnd | 0x0005 | -| * SeekRangeStart | 0x0006 | +| * NetworkInterfaces | 0x0000 | +| * RebootCount | 0x0001 | +| * UpTime | 0x0002 | +| * TotalOperationalHours | 0x0003 | +| * BootReasons | 0x0004 | +| * ActiveHardwareFaults | 0x0005 | +| * ActiveRadioFaults | 0x0006 | +| * ActiveNetworkFaults | 0x0007 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +| * HardwareFaultChange | 0x0000 | +| * RadioFaultChange | 0x0001 | +| * NetworkFaultChange | 0x0002 | +| * BootReason | 0x0003 | +\*----------------------------------------------------------------------------*/ + +/*----------------------------------------------------------------------------*\ +| Cluster GroupKeyManagement | 0x003F | +|------------------------------------------------------------------------------| +| Commands: | | +| * KeySetWrite | 0x00 | +| * KeySetRead | 0x01 | +| * KeySetRemove | 0x03 | +| * KeySetReadAllIndices | 0x04 | +|------------------------------------------------------------------------------| +| Attributes: | | +| * GroupKeyMap | 0x0000 | +| * GroupTable | 0x0001 | +| * MaxGroupsPerFabric | 0x0002 | +| * MaxGroupKeysPerFabric | 0x0003 | | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* - * Command FastForwardRequest + * Command KeySetWrite */ -class MediaPlaybackFastForwardRequest : public ClusterCommand +class GroupKeyManagementKeySetWrite : public ClusterCommand { public: - MediaPlaybackFastForwardRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("fast-forward-request", credsIssuerConfig) + GroupKeyManagementKeySetWrite(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("key-set-write", credsIssuerConfig), mComplex_GroupKeySet(&mRequest.groupKeySet) { + AddArgument("GroupKeySet", &mComplex_GroupKeySet); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000007) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0000003F) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000007, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x0000003F, 0x00000000, mRequest); } private: - chip::app::Clusters::MediaPlayback::Commands::FastForwardRequest::Type mRequest; + chip::app::Clusters::GroupKeyManagement::Commands::KeySetWrite::Type mRequest; + TypedComplexArgument mComplex_GroupKeySet; }; /* - * Command NextRequest + * Command KeySetRead */ -class MediaPlaybackNextRequest : public ClusterCommand +class GroupKeyManagementKeySetRead : public ClusterCommand { public: - MediaPlaybackNextRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("next-request", credsIssuerConfig) + GroupKeyManagementKeySetRead(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("key-set-read", credsIssuerConfig) { + AddArgument("GroupKeySetID", 0, UINT16_MAX, &mRequest.groupKeySetID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000005) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0000003F) command (0x00000001) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000005, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x0000003F, 0x00000001, mRequest); } private: - chip::app::Clusters::MediaPlayback::Commands::NextRequest::Type mRequest; + chip::app::Clusters::GroupKeyManagement::Commands::KeySetRead::Type mRequest; }; /* - * Command PauseRequest + * Command KeySetRemove */ -class MediaPlaybackPauseRequest : public ClusterCommand +class GroupKeyManagementKeySetRemove : public ClusterCommand { public: - MediaPlaybackPauseRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("pause-request", credsIssuerConfig) + GroupKeyManagementKeySetRemove(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("key-set-remove", credsIssuerConfig) { + AddArgument("GroupKeySetID", 0, UINT16_MAX, &mRequest.groupKeySetID); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000001) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0000003F) command (0x00000003) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000001, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x0000003F, 0x00000003, mRequest); } private: - chip::app::Clusters::MediaPlayback::Commands::PauseRequest::Type mRequest; + chip::app::Clusters::GroupKeyManagement::Commands::KeySetRemove::Type mRequest; }; /* - * Command PlayRequest + * Command KeySetReadAllIndices */ -class MediaPlaybackPlayRequest : public ClusterCommand +class GroupKeyManagementKeySetReadAllIndices : public ClusterCommand { public: - MediaPlaybackPlayRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("play-request", credsIssuerConfig) + GroupKeyManagementKeySetReadAllIndices(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("key-set-read-all-indices", credsIssuerConfig), mComplex_GroupKeySetIDs(&mRequest.groupKeySetIDs) { + AddArgument("GroupKeySetIDs", &mComplex_GroupKeySetIDs); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0000003F) command (0x00000004) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x0000003F, 0x00000004, mRequest); } private: - chip::app::Clusters::MediaPlayback::Commands::PlayRequest::Type mRequest; + chip::app::Clusters::GroupKeyManagement::Commands::KeySetReadAllIndices::Type mRequest; + TypedComplexArgument> mComplex_GroupKeySetIDs; }; -/* - * Command PreviousRequest - */ -class MediaPlaybackPreviousRequest : public ClusterCommand +class WriteGroupKeyManagementGroupKeyMap : public WriteAttribute { public: - MediaPlaybackPreviousRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("previous-request", credsIssuerConfig) + WriteGroupKeyManagementGroupKeyMap(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("GroupKeyMap", credsIssuerConfig), mComplex(&mValue) { - ClusterCommand::AddArguments(); + AddArgument("attr-name", "group-key-map"); + AddArgument("attr-value", &mComplex); + WriteAttribute::AddArguments(); } + ~WriteGroupKeyManagementGroupKeyMap() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000004) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000004, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x0000003F, 0x00000000, mValue); } private: - chip::app::Clusters::MediaPlayback::Commands::PreviousRequest::Type mRequest; + chip::app::DataModel::List mValue; + TypedComplexArgument< + chip::app::DataModel::List> + mComplex; }; -/* - * Command RewindRequest - */ -class MediaPlaybackRewindRequest : public ClusterCommand +/*----------------------------------------------------------------------------*\ +| Cluster Groups | 0x0004 | +|------------------------------------------------------------------------------| +| Commands: | | +| * AddGroup | 0x00 | +| * ViewGroup | 0x01 | +| * GetGroupMembership | 0x02 | +| * RemoveGroup | 0x03 | +| * RemoveAllGroups | 0x04 | +| * AddGroupIfIdentifying | 0x05 | +|------------------------------------------------------------------------------| +| Attributes: | | +| * NameSupport | 0x0000 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + +/* + * Command AddGroup + */ +class GroupsAddGroup : public ClusterCommand { public: - MediaPlaybackRewindRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("rewind-request", credsIssuerConfig) + GroupsAddGroup(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("add-group", credsIssuerConfig) { + AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); + AddArgument("GroupName", &mRequest.groupName); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000006) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000006, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000004, 0x00000000, mRequest); } private: - chip::app::Clusters::MediaPlayback::Commands::RewindRequest::Type mRequest; + chip::app::Clusters::Groups::Commands::AddGroup::Type mRequest; }; /* - * Command SeekRequest + * Command ViewGroup */ -class MediaPlaybackSeekRequest : public ClusterCommand +class GroupsViewGroup : public ClusterCommand { public: - MediaPlaybackSeekRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("seek-request", credsIssuerConfig) + GroupsViewGroup(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("view-group", credsIssuerConfig) { - AddArgument("Position", 0, UINT64_MAX, &mRequest.position); + AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x0000000B) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000001) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x0000000B, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000004, 0x00000001, mRequest); } private: - chip::app::Clusters::MediaPlayback::Commands::SeekRequest::Type mRequest; + chip::app::Clusters::Groups::Commands::ViewGroup::Type mRequest; }; /* - * Command SkipBackwardRequest + * Command GetGroupMembership */ -class MediaPlaybackSkipBackwardRequest : public ClusterCommand +class GroupsGetGroupMembership : public ClusterCommand { public: - MediaPlaybackSkipBackwardRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("skip-backward-request", credsIssuerConfig) + GroupsGetGroupMembership(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("get-group-membership", credsIssuerConfig), mComplex_GroupList(&mRequest.groupList) { - AddArgument("DeltaPositionMilliseconds", 0, UINT64_MAX, &mRequest.deltaPositionMilliseconds); + AddArgument("GroupList", &mComplex_GroupList); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000009) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000002) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000009, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000004, 0x00000002, mRequest); } private: - chip::app::Clusters::MediaPlayback::Commands::SkipBackwardRequest::Type mRequest; + chip::app::Clusters::Groups::Commands::GetGroupMembership::Type mRequest; + TypedComplexArgument> mComplex_GroupList; }; /* - * Command SkipForwardRequest + * Command RemoveGroup */ -class MediaPlaybackSkipForwardRequest : public ClusterCommand +class GroupsRemoveGroup : public ClusterCommand { public: - MediaPlaybackSkipForwardRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("skip-forward-request", credsIssuerConfig) + GroupsRemoveGroup(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("remove-group", credsIssuerConfig) { - AddArgument("DeltaPositionMilliseconds", 0, UINT64_MAX, &mRequest.deltaPositionMilliseconds); + AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000008) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000003) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000008, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000004, 0x00000003, mRequest); } private: - chip::app::Clusters::MediaPlayback::Commands::SkipForwardRequest::Type mRequest; + chip::app::Clusters::Groups::Commands::RemoveGroup::Type mRequest; }; /* - * Command StartOverRequest + * Command RemoveAllGroups */ -class MediaPlaybackStartOverRequest : public ClusterCommand +class GroupsRemoveAllGroups : public ClusterCommand { public: - MediaPlaybackStartOverRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("start-over-request", credsIssuerConfig) + GroupsRemoveAllGroups(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("remove-all-groups", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000003) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000004) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000003, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000004, 0x00000004, mRequest); } private: - chip::app::Clusters::MediaPlayback::Commands::StartOverRequest::Type mRequest; + chip::app::Clusters::Groups::Commands::RemoveAllGroups::Type mRequest; }; /* - * Command StopRequest + * Command AddGroupIfIdentifying */ -class MediaPlaybackStopRequest : public ClusterCommand +class GroupsAddGroupIfIdentifying : public ClusterCommand { public: - MediaPlaybackStopRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop-request", credsIssuerConfig) + 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(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000002) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000005) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000002, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000004, 0x00000005, mRequest); } private: - chip::app::Clusters::MediaPlayback::Commands::StopRequest::Type mRequest; + chip::app::Clusters::Groups::Commands::AddGroupIfIdentifying::Type mRequest; }; /*----------------------------------------------------------------------------*\ -| Cluster ModeSelect | 0x0050 | +| Cluster Identify | 0x0003 | |------------------------------------------------------------------------------| | Commands: | | -| * ChangeToMode | 0x00 | +| * Identify | 0x00 | +| * IdentifyQuery | 0x01 | +| * TriggerEffect | 0x40 | |------------------------------------------------------------------------------| | Attributes: | | -| * CurrentMode | 0x0000 | -| * SupportedModes | 0x0001 | -| * OnMode | 0x0002 | -| * StartUpMode | 0x0003 | -| * Description | 0x0004 | +| * IdentifyTime | 0x0000 | +| * IdentifyType | 0x0001 | | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* - * Command ChangeToMode + * Command Identify */ -class ModeSelectChangeToMode : public ClusterCommand +class IdentifyIdentify : public ClusterCommand { public: - ModeSelectChangeToMode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("change-to-mode", credsIssuerConfig) + IdentifyIdentify(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("identify", credsIssuerConfig) { - AddArgument("NewMode", 0, UINT8_MAX, &mRequest.newMode); + AddArgument("IdentifyTime", 0, UINT16_MAX, &mRequest.identifyTime); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000050) command (0x00000000) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000050, 0x00000000, mRequest); - } - -private: - chip::app::Clusters::ModeSelect::Commands::ChangeToMode::Type mRequest; -}; - -class WriteModeSelectOnMode : public WriteAttribute -{ -public: - WriteModeSelectOnMode(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("OnMode", credsIssuerConfig) - { - AddArgument("attr-name", "on-mode"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteModeSelectOnMode() {} + ChipLogProgress(chipTool, "Sending cluster (0x00000003) command (0x00000000) on endpoint %" PRIu16, endpointId); - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override - { - return WriteAttribute::SendCommand(device, endpointId, 0x00000050, 0x00000002, mValue); + return ClusterCommand::SendCommand(device, endpointId, 0x00000003, 0x00000000, mRequest); } private: - uint8_t mValue; + chip::app::Clusters::Identify::Commands::Identify::Type mRequest; }; -/*----------------------------------------------------------------------------*\ -| Cluster NetworkCommissioning | 0x0031 | -|------------------------------------------------------------------------------| -| Commands: | | -| * AddOrUpdateThreadNetwork | 0x03 | -| * AddOrUpdateWiFiNetwork | 0x02 | -| * ConnectNetwork | 0x06 | -| * RemoveNetwork | 0x04 | -| * ReorderNetwork | 0x08 | -| * ScanNetworks | 0x00 | -|------------------------------------------------------------------------------| -| Attributes: | | -| * MaxNetworks | 0x0000 | -| * Networks | 0x0001 | -| * ScanMaxTimeSeconds | 0x0002 | -| * ConnectMaxTimeSeconds | 0x0003 | -| * InterfaceEnabled | 0x0004 | -| * LastNetworkingStatus | 0x0005 | -| * LastNetworkID | 0x0006 | -| * LastConnectErrorValue | 0x0007 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * FeatureMap | 0xFFFC | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - /* - * Command AddOrUpdateThreadNetwork + * Command IdentifyQuery */ -class NetworkCommissioningAddOrUpdateThreadNetwork : public ClusterCommand +class IdentifyIdentifyQuery : public ClusterCommand { public: - NetworkCommissioningAddOrUpdateThreadNetwork(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("add-or-update-thread-network", credsIssuerConfig) + IdentifyIdentifyQuery(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("identify-query", credsIssuerConfig) { - AddArgument("OperationalDataset", &mRequest.operationalDataset); - AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000003) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000003) command (0x00000001) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000031, 0x00000003, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000003, 0x00000001, mRequest); } private: - chip::app::Clusters::NetworkCommissioning::Commands::AddOrUpdateThreadNetwork::Type mRequest; + chip::app::Clusters::Identify::Commands::IdentifyQuery::Type mRequest; }; /* - * Command AddOrUpdateWiFiNetwork + * Command TriggerEffect */ -class NetworkCommissioningAddOrUpdateWiFiNetwork : public ClusterCommand +class IdentifyTriggerEffect : public ClusterCommand { public: - NetworkCommissioningAddOrUpdateWiFiNetwork(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("add-or-update-wi-fi-network", credsIssuerConfig) + IdentifyTriggerEffect(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("trigger-effect", credsIssuerConfig) { - AddArgument("Ssid", &mRequest.ssid); - AddArgument("Credentials", &mRequest.credentials); - AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); + AddArgument("EffectIdentifier", 0, UINT8_MAX, &mRequest.effectIdentifier); + AddArgument("EffectVariant", 0, UINT8_MAX, &mRequest.effectVariant); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000002) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000003) command (0x00000040) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000031, 0x00000002, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000003, 0x00000040, mRequest); } private: - chip::app::Clusters::NetworkCommissioning::Commands::AddOrUpdateWiFiNetwork::Type mRequest; + chip::app::Clusters::Identify::Commands::TriggerEffect::Type mRequest; }; -/* - * Command ConnectNetwork - */ -class NetworkCommissioningConnectNetwork : public ClusterCommand +class WriteIdentifyIdentifyTime : public WriteAttribute { public: - NetworkCommissioningConnectNetwork(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("connect-network", credsIssuerConfig) + WriteIdentifyIdentifyTime(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("IdentifyTime", credsIssuerConfig) { - AddArgument("NetworkID", &mRequest.networkID); - AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "identify-time"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteIdentifyIdentifyTime() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000006) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000031, 0x00000006, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000003, 0x00000000, mValue); } private: - chip::app::Clusters::NetworkCommissioning::Commands::ConnectNetwork::Type mRequest; + uint16_t mValue; }; -/* - * 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(); - } +/*----------------------------------------------------------------------------*\ +| Cluster IlluminanceMeasurement | 0x0400 | +|------------------------------------------------------------------------------| +| Commands: | | +|------------------------------------------------------------------------------| +| Attributes: | | +| * MeasuredValue | 0x0000 | +| * MinMeasuredValue | 0x0001 | +| * MaxMeasuredValue | 0x0002 | +| * Tolerance | 0x0003 | +| * LightSensorType | 0x0004 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + +/*----------------------------------------------------------------------------*\ +| Cluster KeypadInput | 0x0509 | +|------------------------------------------------------------------------------| +| Commands: | | +| * SendKeyRequest | 0x00 | +|------------------------------------------------------------------------------| +| Attributes: | | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + +/* + * Command SendKeyRequest + */ +class KeypadInputSendKeyRequest : public ClusterCommand +{ +public: + KeypadInputSendKeyRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("send-key-request", credsIssuerConfig) + { + AddArgument("KeyCode", 0, UINT8_MAX, &mRequest.keyCode); + ClusterCommand::AddArguments(); + } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000004) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000509) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000031, 0x00000004, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000509, 0x00000000, mRequest); } private: - chip::app::Clusters::NetworkCommissioning::Commands::RemoveNetwork::Type mRequest; + chip::app::Clusters::KeypadInput::Commands::SendKeyRequest::Type mRequest; }; +/*----------------------------------------------------------------------------*\ +| Cluster LevelControl | 0x0008 | +|------------------------------------------------------------------------------| +| Commands: | | +| * MoveToLevel | 0x00 | +| * Move | 0x01 | +| * Step | 0x02 | +| * Stop | 0x03 | +| * MoveToLevelWithOnOff | 0x04 | +| * MoveWithOnOff | 0x05 | +| * StepWithOnOff | 0x06 | +| * StopWithOnOff | 0x07 | +|------------------------------------------------------------------------------| +| 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 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + /* - * Command ReorderNetwork + * Command MoveToLevel */ -class NetworkCommissioningReorderNetwork : public ClusterCommand +class LevelControlMoveToLevel : public ClusterCommand { public: - NetworkCommissioningReorderNetwork(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("reorder-network", credsIssuerConfig) + LevelControlMoveToLevel(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-to-level", credsIssuerConfig) { - AddArgument("NetworkID", &mRequest.networkID); - AddArgument("NetworkIndex", 0, UINT8_MAX, &mRequest.networkIndex); - AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); + AddArgument("Level", 0, UINT8_MAX, &mRequest.level); + AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); + AddArgument("OptionMask", 0, UINT8_MAX, &mRequest.optionMask); + AddArgument("OptionOverride", 0, UINT8_MAX, &mRequest.optionOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000008) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000031, 0x00000008, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000008, 0x00000000, mRequest); } private: - chip::app::Clusters::NetworkCommissioning::Commands::ReorderNetwork::Type mRequest; + chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type mRequest; }; /* - * Command ScanNetworks + * Command Move */ -class NetworkCommissioningScanNetworks : public ClusterCommand +class LevelControlMove : public ClusterCommand { public: - NetworkCommissioningScanNetworks(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("scan-networks", credsIssuerConfig) + LevelControlMove(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move", credsIssuerConfig) { - AddArgument("Ssid", &mRequest.ssid); - AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); + AddArgument("MoveMode", 0, UINT8_MAX, &mRequest.moveMode); + AddArgument("Rate", 0, UINT8_MAX, &mRequest.rate); + AddArgument("OptionMask", 0, UINT8_MAX, &mRequest.optionMask); + AddArgument("OptionOverride", 0, UINT8_MAX, &mRequest.optionOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000001) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000031, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000008, 0x00000001, mRequest); } private: - chip::app::Clusters::NetworkCommissioning::Commands::ScanNetworks::Type mRequest; + chip::app::Clusters::LevelControl::Commands::Move::Type mRequest; }; -class WriteNetworkCommissioningInterfaceEnabled : public WriteAttribute +/* + * Command Step + */ +class LevelControlStep : public ClusterCommand { public: - WriteNetworkCommissioningInterfaceEnabled(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("InterfaceEnabled", credsIssuerConfig) + LevelControlStep(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("step", credsIssuerConfig) { - AddArgument("attr-name", "interface-enabled"); - AddArgument("attr-value", 0, 1, &mValue); - WriteAttribute::AddArguments(); + AddArgument("StepMode", 0, UINT8_MAX, &mRequest.stepMode); + AddArgument("StepSize", 0, UINT8_MAX, &mRequest.stepSize); + AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); + AddArgument("OptionMask", 0, UINT8_MAX, &mRequest.optionMask); + AddArgument("OptionOverride", 0, UINT8_MAX, &mRequest.optionOverride); + ClusterCommand::AddArguments(); } - ~WriteNetworkCommissioningInterfaceEnabled() {} - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000031, 0x00000004, mValue); + ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000002) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000008, 0x00000002, mRequest); } private: - bool mValue; + chip::app::Clusters::LevelControl::Commands::Step::Type mRequest; }; -/*----------------------------------------------------------------------------*\ -| Cluster OtaSoftwareUpdateProvider | 0x0029 | -|------------------------------------------------------------------------------| -| Commands: | | -| * ApplyUpdateRequest | 0x02 | -| * NotifyUpdateApplied | 0x04 | -| * QueryImage | 0x00 | -|------------------------------------------------------------------------------| -| Attributes: | | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - /* - * Command ApplyUpdateRequest + * Command Stop */ -class OtaSoftwareUpdateProviderApplyUpdateRequest : public ClusterCommand +class LevelControlStop : public ClusterCommand { public: - OtaSoftwareUpdateProviderApplyUpdateRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("apply-update-request", credsIssuerConfig) + LevelControlStop(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop", credsIssuerConfig) { - AddArgument("UpdateToken", &mRequest.updateToken); - AddArgument("NewVersion", 0, UINT32_MAX, &mRequest.newVersion); + AddArgument("OptionMask", 0, UINT8_MAX, &mRequest.optionMask); + AddArgument("OptionOverride", 0, UINT8_MAX, &mRequest.optionOverride); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000029) command (0x00000002) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000003) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000029, 0x00000002, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000008, 0x00000003, mRequest); } private: - chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateRequest::Type mRequest; + chip::app::Clusters::LevelControl::Commands::Stop::Type mRequest; }; /* - * Command NotifyUpdateApplied + * Command MoveToLevelWithOnOff */ -class OtaSoftwareUpdateProviderNotifyUpdateApplied : public ClusterCommand +class LevelControlMoveToLevelWithOnOff : public ClusterCommand { public: - OtaSoftwareUpdateProviderNotifyUpdateApplied(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("notify-update-applied", credsIssuerConfig) + LevelControlMoveToLevelWithOnOff(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("move-to-level-with-on-off", credsIssuerConfig) { - AddArgument("UpdateToken", &mRequest.updateToken); - AddArgument("SoftwareVersion", 0, UINT32_MAX, &mRequest.softwareVersion); + AddArgument("Level", 0, UINT8_MAX, &mRequest.level); + AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000029) command (0x00000004) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000004) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000029, 0x00000004, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000008, 0x00000004, mRequest); } private: - chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::NotifyUpdateApplied::Type mRequest; + chip::app::Clusters::LevelControl::Commands::MoveToLevelWithOnOff::Type mRequest; }; /* - * Command QueryImage + * Command MoveWithOnOff */ -class OtaSoftwareUpdateProviderQueryImage : public ClusterCommand +class LevelControlMoveWithOnOff : public ClusterCommand { public: - OtaSoftwareUpdateProviderQueryImage(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("query-image", credsIssuerConfig), mComplex_ProtocolsSupported(&mRequest.protocolsSupported) + LevelControlMoveWithOnOff(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("move-with-on-off", credsIssuerConfig) { - 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); + AddArgument("MoveMode", 0, UINT8_MAX, &mRequest.moveMode); + AddArgument("Rate", 0, UINT8_MAX, &mRequest.rate); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000029) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000005) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000029, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000008, 0x00000005, mRequest); } private: - chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::QueryImage::Type mRequest; - TypedComplexArgument> - mComplex_ProtocolsSupported; + chip::app::Clusters::LevelControl::Commands::MoveWithOnOff::Type mRequest; }; -/*----------------------------------------------------------------------------*\ -| Cluster OtaSoftwareUpdateRequestor | 0x002A | -|------------------------------------------------------------------------------| -| Commands: | | -| * AnnounceOtaProvider | 0x00 | -|------------------------------------------------------------------------------| -| Attributes: | | -| * DefaultOtaProviders | 0x0000 | -| * UpdatePossible | 0x0001 | -| * UpdateState | 0x0002 | -| * UpdateStateProgress | 0x0003 | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -| * StateTransition | 0x0000 | -| * VersionApplied | 0x0001 | -| * DownloadError | 0x0002 | -\*----------------------------------------------------------------------------*/ - /* - * Command AnnounceOtaProvider + * Command StepWithOnOff */ -class OtaSoftwareUpdateRequestorAnnounceOtaProvider : public ClusterCommand +class LevelControlStepWithOnOff : public ClusterCommand { public: - OtaSoftwareUpdateRequestorAnnounceOtaProvider(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("announce-ota-provider", credsIssuerConfig) + LevelControlStepWithOnOff(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("step-with-on-off", 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); + AddArgument("StepMode", 0, UINT8_MAX, &mRequest.stepMode); + AddArgument("StepSize", 0, UINT8_MAX, &mRequest.stepSize); + AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000002A) command (0x00000000) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x0000002A, 0x00000000, mRequest); - } - -private: - chip::app::Clusters::OtaSoftwareUpdateRequestor::Commands::AnnounceOtaProvider::Type mRequest; -}; - -class WriteOtaSoftwareUpdateRequestorDefaultOtaProviders : public WriteAttribute -{ -public: - WriteOtaSoftwareUpdateRequestorDefaultOtaProviders(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("DefaultOtaProviders", credsIssuerConfig), mComplex(&mValue) - { - AddArgument("attr-name", "default-ota-providers"); - AddArgument("attr-value", &mComplex); - WriteAttribute::AddArguments(); - } - - ~WriteOtaSoftwareUpdateRequestorDefaultOtaProviders() {} + ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000006) on endpoint %" PRIu16, endpointId); - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override - { - return WriteAttribute::SendCommand(device, endpointId, 0x0000002A, 0x00000000, mValue); + return ClusterCommand::SendCommand(device, endpointId, 0x00000008, 0x00000006, mRequest); } private: - chip::app::DataModel::List mValue; - TypedComplexArgument< - chip::app::DataModel::List> - mComplex; + chip::app::Clusters::LevelControl::Commands::StepWithOnOff::Type mRequest; }; -/*----------------------------------------------------------------------------*\ -| Cluster OccupancySensing | 0x0406 | -|------------------------------------------------------------------------------| -| Commands: | | -|------------------------------------------------------------------------------| -| Attributes: | | -| * Occupancy | 0x0000 | -| * OccupancySensorType | 0x0001 | -| * OccupancySensorTypeBitmap | 0x0002 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - -/*----------------------------------------------------------------------------*\ -| Cluster OnOff | 0x0006 | -|------------------------------------------------------------------------------| -| Commands: | | -| * Off | 0x00 | -| * OffWithEffect | 0x40 | -| * On | 0x01 | -| * OnWithRecallGlobalScene | 0x41 | -| * OnWithTimedOff | 0x42 | -| * Toggle | 0x02 | -|------------------------------------------------------------------------------| -| Attributes: | | -| * OnOff | 0x0000 | -| * GlobalSceneControl | 0x4000 | -| * OnTime | 0x4001 | -| * OffWaitTime | 0x4002 | -| * StartUpOnOff | 0x4003 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * FeatureMap | 0xFFFC | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - /* - * Command Off + * Command StopWithOnOff */ -class OnOffOff : public ClusterCommand +class LevelControlStopWithOnOff : public ClusterCommand { public: - OnOffOff(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("off", credsIssuerConfig) + LevelControlStopWithOnOff(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop-with-on-off", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000007) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000006, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000008, 0x00000007, mRequest); } private: - chip::app::Clusters::OnOff::Commands::Off::Type mRequest; + chip::app::Clusters::LevelControl::Commands::StopWithOnOff::Type mRequest; }; -/* - * Command OffWithEffect - */ -class OnOffOffWithEffect : public ClusterCommand +class WriteLevelControlOptions : public WriteAttribute { public: - OnOffOffWithEffect(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("off-with-effect", credsIssuerConfig) - { - AddArgument("EffectId", 0, UINT8_MAX, &mRequest.effectId); - AddArgument("EffectVariant", 0, UINT8_MAX, &mRequest.effectVariant); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + WriteLevelControlOptions(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Options", credsIssuerConfig) { - ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000040) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000006, 0x00000040, mRequest); + AddArgument("attr-name", "options"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); } -private: - chip::app::Clusters::OnOff::Commands::OffWithEffect::Type mRequest; -}; - -/* - * Command On - */ -class OnOffOn : public ClusterCommand -{ -public: - OnOffOn(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("on", credsIssuerConfig) - { - ClusterCommand::AddArguments(); - } + ~WriteLevelControlOptions() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000001) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000006, 0x00000001, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000008, 0x0000000F, mValue); } private: - chip::app::Clusters::OnOff::Commands::On::Type mRequest; + uint8_t mValue; }; -/* - * Command OnWithRecallGlobalScene - */ -class OnOffOnWithRecallGlobalScene : public ClusterCommand +class WriteLevelControlOnOffTransitionTime : public WriteAttribute { public: - OnOffOnWithRecallGlobalScene(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("on-with-recall-global-scene", credsIssuerConfig) + WriteLevelControlOnOffTransitionTime(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("OnOffTransitionTime", credsIssuerConfig) { - ClusterCommand::AddArguments(); + AddArgument("attr-name", "on-off-transition-time"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteLevelControlOnOffTransitionTime() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000041) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000006, 0x00000041, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000008, 0x00000010, mValue); } private: - chip::app::Clusters::OnOff::Commands::OnWithRecallGlobalScene::Type mRequest; + uint16_t mValue; }; -/* - * Command OnWithTimedOff - */ -class OnOffOnWithTimedOff : public ClusterCommand +class WriteLevelControlOnLevel : public WriteAttribute { public: - OnOffOnWithTimedOff(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("on-with-timed-off", credsIssuerConfig) + WriteLevelControlOnLevel(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("OnLevel", credsIssuerConfig) { - AddArgument("OnOffControl", 0, UINT8_MAX, &mRequest.onOffControl); - AddArgument("OnTime", 0, UINT16_MAX, &mRequest.onTime); - AddArgument("OffWaitTime", 0, UINT16_MAX, &mRequest.offWaitTime); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "on-level"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteLevelControlOnLevel() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000042) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000006, 0x00000042, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000008, 0x00000011, mValue); } private: - chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type mRequest; + chip::app::DataModel::Nullable mValue; }; -/* - * Command Toggle - */ -class OnOffToggle : public ClusterCommand +class WriteLevelControlOnTransitionTime : public WriteAttribute { public: - OnOffToggle(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("toggle", credsIssuerConfig) + WriteLevelControlOnTransitionTime(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("OnTransitionTime", credsIssuerConfig) { - ClusterCommand::AddArguments(); + AddArgument("attr-name", "on-transition-time"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteLevelControlOnTransitionTime() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000002) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000006, 0x00000002, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000008, 0x00000012, mValue); } private: - chip::app::Clusters::OnOff::Commands::Toggle::Type mRequest; + chip::app::DataModel::Nullable mValue; }; -class WriteOnOffOnTime : public WriteAttribute +class WriteLevelControlOffTransitionTime : public WriteAttribute { public: - WriteOnOffOnTime(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("OnTime", credsIssuerConfig) + WriteLevelControlOffTransitionTime(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("OffTransitionTime", credsIssuerConfig) { - AddArgument("attr-name", "on-time"); + AddArgument("attr-name", "off-transition-time"); AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteOnOffOnTime() {} + ~WriteLevelControlOffTransitionTime() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000006, 0x00004001, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000008, 0x00000013, mValue); } private: - uint16_t mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteOnOffOffWaitTime : public WriteAttribute +class WriteLevelControlDefaultMoveRate : public WriteAttribute { public: - WriteOnOffOffWaitTime(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("OffWaitTime", credsIssuerConfig) + WriteLevelControlDefaultMoveRate(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("DefaultMoveRate", credsIssuerConfig) { - AddArgument("attr-name", "off-wait-time"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "default-move-rate"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteOnOffOffWaitTime() {} + ~WriteLevelControlDefaultMoveRate() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000006, 0x00004002, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000008, 0x00000014, mValue); } private: - uint16_t mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteOnOffStartUpOnOff : public WriteAttribute +class WriteLevelControlStartUpCurrentLevel : public WriteAttribute { public: - WriteOnOffStartUpOnOff(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("StartUpOnOff", credsIssuerConfig) + WriteLevelControlStartUpCurrentLevel(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("StartUpCurrentLevel", credsIssuerConfig) { - AddArgument("attr-name", "start-up-on-off"); + AddArgument("attr-name", "start-up-current-level"); AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteOnOffStartUpOnOff() {} + ~WriteLevelControlStartUpCurrentLevel() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000006, 0x00004003, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000008, 0x00004000, mValue); } private: - uint8_t mValue; + chip::app::DataModel::Nullable mValue; }; /*----------------------------------------------------------------------------*\ -| Cluster OnOffSwitchConfiguration | 0x0007 | +| Cluster LocalizationConfiguration | 0x002B | |------------------------------------------------------------------------------| | Commands: | | |------------------------------------------------------------------------------| | Attributes: | | -| * SwitchType | 0x0000 | -| * SwitchActions | 0x0010 | +| * ActiveLocale | 0x0001 | +| * SupportedLocales | 0x0002 | | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ -class WriteOnOffSwitchConfigurationSwitchActions : public WriteAttribute +class WriteLocalizationConfigurationActiveLocale : public WriteAttribute { public: - WriteOnOffSwitchConfigurationSwitchActions(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("SwitchActions", credsIssuerConfig) + WriteLocalizationConfigurationActiveLocale(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ActiveLocale", credsIssuerConfig) { - AddArgument("attr-name", "switch-actions"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "active-locale"); + AddArgument("attr-value", &mValue); WriteAttribute::AddArguments(); } - ~WriteOnOffSwitchConfigurationSwitchActions() {} + ~WriteLocalizationConfigurationActiveLocale() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000007, 0x00000010, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000002B, 0x00000001, mValue); } private: - uint8_t mValue; + chip::CharSpan mValue; }; /*----------------------------------------------------------------------------*\ -| Cluster OperationalCredentials | 0x003E | +| Cluster LowPower | 0x0508 | |------------------------------------------------------------------------------| | Commands: | | -| * AddNOC | 0x06 | -| * AddTrustedRootCertificate | 0x0B | -| * AttestationRequest | 0x00 | -| * CSRRequest | 0x04 | -| * CertificateChainRequest | 0x02 | -| * RemoveFabric | 0x0A | -| * RemoveTrustedRootCertificate | 0x0C | -| * UpdateFabricLabel | 0x09 | -| * UpdateNOC | 0x07 | +| * Sleep | 0x00 | |------------------------------------------------------------------------------| | Attributes: | | -| * NOCs | 0x0000 | -| * FabricsList | 0x0001 | -| * SupportedFabrics | 0x0002 | -| * CommissionedFabrics | 0x0003 | -| * TrustedRootCertificates | 0x0004 | -| * CurrentFabricIndex | 0x0005 | | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | \*----------------------------------------------------------------------------*/ /* - * Command AddNOC + * Command Sleep */ -class OperationalCredentialsAddNOC : public ClusterCommand +class LowPowerSleep : public ClusterCommand { public: - OperationalCredentialsAddNOC(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("add-noc", credsIssuerConfig) + LowPowerSleep(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("sleep", credsIssuerConfig) { - AddArgument("NOCValue", &mRequest.NOCValue); - AddArgument("ICACValue", &mRequest.ICACValue); - AddArgument("IPKValue", &mRequest.IPKValue); - AddArgument("CaseAdminNode", 0, UINT64_MAX, &mRequest.caseAdminNode); - AddArgument("AdminVendorId", 0, UINT16_MAX, &mRequest.adminVendorId); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000006) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000508) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x00000006, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000508, 0x00000000, mRequest); } private: - chip::app::Clusters::OperationalCredentials::Commands::AddNOC::Type mRequest; + chip::app::Clusters::LowPower::Commands::Sleep::Type mRequest; }; +/*----------------------------------------------------------------------------*\ +| Cluster MediaInput | 0x0507 | +|------------------------------------------------------------------------------| +| Commands: | | +| * SelectInputRequest | 0x00 | +| * ShowInputStatusRequest | 0x01 | +| * HideInputStatusRequest | 0x02 | +| * RenameInputRequest | 0x03 | +|------------------------------------------------------------------------------| +| Attributes: | | +| * MediaInputList | 0x0000 | +| * CurrentMediaInput | 0x0001 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + /* - * Command AddTrustedRootCertificate + * Command SelectInputRequest */ -class OperationalCredentialsAddTrustedRootCertificate : public ClusterCommand +class MediaInputSelectInputRequest : public ClusterCommand { public: - OperationalCredentialsAddTrustedRootCertificate(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("add-trusted-root-certificate", credsIssuerConfig) + MediaInputSelectInputRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("select-input-request", credsIssuerConfig) { - AddArgument("RootCertificate", &mRequest.rootCertificate); + AddArgument("Index", 0, UINT8_MAX, &mRequest.index); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x0000000B) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000507) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x0000000B, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000507, 0x00000000, mRequest); } private: - chip::app::Clusters::OperationalCredentials::Commands::AddTrustedRootCertificate::Type mRequest; + chip::app::Clusters::MediaInput::Commands::SelectInputRequest::Type mRequest; }; /* - * Command AttestationRequest + * Command ShowInputStatusRequest */ -class OperationalCredentialsAttestationRequest : public ClusterCommand +class MediaInputShowInputStatusRequest : public ClusterCommand { public: - OperationalCredentialsAttestationRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("attestation-request", credsIssuerConfig) + MediaInputShowInputStatusRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("show-input-status-request", credsIssuerConfig) { - AddArgument("AttestationNonce", &mRequest.attestationNonce); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000507) command (0x00000001) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000507, 0x00000001, mRequest); } private: - chip::app::Clusters::OperationalCredentials::Commands::AttestationRequest::Type mRequest; + chip::app::Clusters::MediaInput::Commands::ShowInputStatusRequest::Type mRequest; }; /* - * Command CSRRequest + * Command HideInputStatusRequest */ -class OperationalCredentialsCSRRequest : public ClusterCommand +class MediaInputHideInputStatusRequest : public ClusterCommand { public: - OperationalCredentialsCSRRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("csrrequest", credsIssuerConfig) + MediaInputHideInputStatusRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("hide-input-status-request", credsIssuerConfig) { - AddArgument("CSRNonce", &mRequest.CSRNonce); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000004) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000507) command (0x00000002) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x00000004, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000507, 0x00000002, mRequest); } private: - chip::app::Clusters::OperationalCredentials::Commands::CSRRequest::Type mRequest; + chip::app::Clusters::MediaInput::Commands::HideInputStatusRequest::Type mRequest; }; /* - * Command CertificateChainRequest + * Command RenameInputRequest */ -class OperationalCredentialsCertificateChainRequest : public ClusterCommand +class MediaInputRenameInputRequest : public ClusterCommand { public: - OperationalCredentialsCertificateChainRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("certificate-chain-request", credsIssuerConfig) + MediaInputRenameInputRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("rename-input-request", credsIssuerConfig) { - AddArgument("CertificateType", 0, UINT8_MAX, &mRequest.certificateType); + AddArgument("Index", 0, UINT8_MAX, &mRequest.index); + AddArgument("Name", &mRequest.name); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000002) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000507) command (0x00000003) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x00000002, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000507, 0x00000003, mRequest); } private: - chip::app::Clusters::OperationalCredentials::Commands::CertificateChainRequest::Type mRequest; + chip::app::Clusters::MediaInput::Commands::RenameInputRequest::Type mRequest; }; +/*----------------------------------------------------------------------------*\ +| Cluster MediaPlayback | 0x0506 | +|------------------------------------------------------------------------------| +| Commands: | | +| * PlayRequest | 0x00 | +| * PauseRequest | 0x01 | +| * StopRequest | 0x02 | +| * StartOverRequest | 0x03 | +| * PreviousRequest | 0x04 | +| * NextRequest | 0x05 | +| * RewindRequest | 0x06 | +| * FastForwardRequest | 0x07 | +| * SkipForwardRequest | 0x08 | +| * SkipBackwardRequest | 0x09 | +| * SeekRequest | 0x0B | +|------------------------------------------------------------------------------| +| Attributes: | | +| * PlaybackState | 0x0000 | +| * StartTime | 0x0001 | +| * Duration | 0x0002 | +| * Position | 0x0003 | +| * PlaybackSpeed | 0x0004 | +| * SeekRangeEnd | 0x0005 | +| * SeekRangeStart | 0x0006 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + /* - * Command RemoveFabric + * Command PlayRequest */ -class OperationalCredentialsRemoveFabric : public ClusterCommand +class MediaPlaybackPlayRequest : public ClusterCommand { public: - OperationalCredentialsRemoveFabric(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("remove-fabric", credsIssuerConfig) + MediaPlaybackPlayRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("play-request", credsIssuerConfig) { - AddArgument("FabricIndex", 0, UINT8_MAX, &mRequest.fabricIndex); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x0000000A) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x0000000A, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000000, mRequest); } private: - chip::app::Clusters::OperationalCredentials::Commands::RemoveFabric::Type mRequest; + chip::app::Clusters::MediaPlayback::Commands::PlayRequest::Type mRequest; }; /* - * Command RemoveTrustedRootCertificate + * Command PauseRequest */ -class OperationalCredentialsRemoveTrustedRootCertificate : public ClusterCommand +class MediaPlaybackPauseRequest : public ClusterCommand { public: - OperationalCredentialsRemoveTrustedRootCertificate(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("remove-trusted-root-certificate", credsIssuerConfig) + MediaPlaybackPauseRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("pause-request", credsIssuerConfig) { - AddArgument("TrustedRootIdentifier", &mRequest.trustedRootIdentifier); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x0000000C) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000001) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x0000000C, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000001, mRequest); } private: - chip::app::Clusters::OperationalCredentials::Commands::RemoveTrustedRootCertificate::Type mRequest; + chip::app::Clusters::MediaPlayback::Commands::PauseRequest::Type mRequest; }; /* - * Command UpdateFabricLabel + * Command StopRequest */ -class OperationalCredentialsUpdateFabricLabel : public ClusterCommand +class MediaPlaybackStopRequest : public ClusterCommand { public: - OperationalCredentialsUpdateFabricLabel(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("update-fabric-label", credsIssuerConfig) + MediaPlaybackStopRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop-request", credsIssuerConfig) { - AddArgument("Label", &mRequest.label); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000009) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000002) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x00000009, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000002, mRequest); } private: - chip::app::Clusters::OperationalCredentials::Commands::UpdateFabricLabel::Type mRequest; + chip::app::Clusters::MediaPlayback::Commands::StopRequest::Type mRequest; }; /* - * Command UpdateNOC + * Command StartOverRequest */ -class OperationalCredentialsUpdateNOC : public ClusterCommand +class MediaPlaybackStartOverRequest : public ClusterCommand { public: - OperationalCredentialsUpdateNOC(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("update-noc", credsIssuerConfig) + MediaPlaybackStartOverRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("start-over-request", credsIssuerConfig) { - AddArgument("NOCValue", &mRequest.NOCValue); - AddArgument("ICACValue", &mRequest.ICACValue); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000007) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000003) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x00000007, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000003, mRequest); } private: - chip::app::Clusters::OperationalCredentials::Commands::UpdateNOC::Type mRequest; + chip::app::Clusters::MediaPlayback::Commands::StartOverRequest::Type mRequest; }; -/*----------------------------------------------------------------------------*\ -| Cluster PowerSource | 0x002F | -|------------------------------------------------------------------------------| -| Commands: | | -|------------------------------------------------------------------------------| -| Attributes: | | -| * Status | 0x0000 | -| * Order | 0x0001 | -| * Description | 0x0002 | -| * BatteryVoltage | 0x000B | -| * BatteryPercentRemaining | 0x000C | -| * BatteryTimeRemaining | 0x000D | -| * BatteryChargeLevel | 0x000E | -| * ActiveBatteryFaults | 0x0012 | -| * BatteryChargeState | 0x001A | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * FeatureMap | 0xFFFC | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - -/*----------------------------------------------------------------------------*\ -| Cluster PowerSourceConfiguration | 0x002E | -|------------------------------------------------------------------------------| -| Commands: | | -|------------------------------------------------------------------------------| -| Attributes: | | -| * Sources | 0x0000 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - -/*----------------------------------------------------------------------------*\ -| Cluster PressureMeasurement | 0x0403 | -|------------------------------------------------------------------------------| -| Commands: | | -|------------------------------------------------------------------------------| -| Attributes: | | -| * MeasuredValue | 0x0000 | -| * MinMeasuredValue | 0x0001 | -| * MaxMeasuredValue | 0x0002 | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - -/*----------------------------------------------------------------------------*\ -| 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 | -| * AlarmMask | 0x0022 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * 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 | -\*----------------------------------------------------------------------------*/ - -class WritePumpConfigurationAndControlLifetimeRunningHours : public WriteAttribute -{ -public: - WritePumpConfigurationAndControlLifetimeRunningHours(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("LifetimeRunningHours", credsIssuerConfig) - { - AddArgument("attr-name", "lifetime-running-hours"); - AddArgument("attr-value", 0, UINT32_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WritePumpConfigurationAndControlLifetimeRunningHours() {} +/* + * Command PreviousRequest + */ +class MediaPlaybackPreviousRequest : public ClusterCommand +{ +public: + MediaPlaybackPreviousRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("previous-request", credsIssuerConfig) + { + ClusterCommand::AddArguments(); + } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000200, 0x00000015, mValue); + ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000004) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000004, mRequest); } private: - chip::app::DataModel::Nullable mValue; + chip::app::Clusters::MediaPlayback::Commands::PreviousRequest::Type mRequest; }; -class WritePumpConfigurationAndControlLifetimeEnergyConsumed : public WriteAttribute +/* + * Command NextRequest + */ +class MediaPlaybackNextRequest : public ClusterCommand { public: - WritePumpConfigurationAndControlLifetimeEnergyConsumed(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("LifetimeEnergyConsumed", credsIssuerConfig) + MediaPlaybackNextRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("next-request", credsIssuerConfig) { - AddArgument("attr-name", "lifetime-energy-consumed"); - AddArgument("attr-value", 0, UINT32_MAX, &mValue); - WriteAttribute::AddArguments(); + ClusterCommand::AddArguments(); } - ~WritePumpConfigurationAndControlLifetimeEnergyConsumed() {} - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000200, 0x00000017, mValue); + ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000005) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000005, mRequest); } private: - chip::app::DataModel::Nullable mValue; + chip::app::Clusters::MediaPlayback::Commands::NextRequest::Type mRequest; }; -class WritePumpConfigurationAndControlOperationMode : public WriteAttribute +/* + * Command RewindRequest + */ +class MediaPlaybackRewindRequest : public ClusterCommand { public: - WritePumpConfigurationAndControlOperationMode(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("OperationMode", credsIssuerConfig) + MediaPlaybackRewindRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("rewind-request", credsIssuerConfig) { - AddArgument("attr-name", "operation-mode"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); - WriteAttribute::AddArguments(); + ClusterCommand::AddArguments(); } - ~WritePumpConfigurationAndControlOperationMode() {} - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000200, 0x00000020, mValue); + ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000006) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000006, mRequest); } private: - uint8_t mValue; + chip::app::Clusters::MediaPlayback::Commands::RewindRequest::Type mRequest; }; -class WritePumpConfigurationAndControlControlMode : public WriteAttribute +/* + * Command FastForwardRequest + */ +class MediaPlaybackFastForwardRequest : public ClusterCommand { public: - WritePumpConfigurationAndControlControlMode(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("ControlMode", credsIssuerConfig) + MediaPlaybackFastForwardRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("fast-forward-request", credsIssuerConfig) { - AddArgument("attr-name", "control-mode"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); - WriteAttribute::AddArguments(); + ClusterCommand::AddArguments(); } - ~WritePumpConfigurationAndControlControlMode() {} - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000200, 0x00000021, mValue); + ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000007) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000007, mRequest); } private: - uint8_t mValue; + chip::app::Clusters::MediaPlayback::Commands::FastForwardRequest::Type mRequest; }; -/*----------------------------------------------------------------------------*\ -| Cluster RelativeHumidityMeasurement | 0x0405 | -|------------------------------------------------------------------------------| -| Commands: | | -|------------------------------------------------------------------------------| -| Attributes: | | -| * MeasuredValue | 0x0000 | -| * MinMeasuredValue | 0x0001 | -| * MaxMeasuredValue | 0x0002 | -| * Tolerance | 0x0003 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - -/*----------------------------------------------------------------------------*\ -| Cluster Scenes | 0x0005 | -|------------------------------------------------------------------------------| -| Commands: | | -| * AddScene | 0x00 | -| * GetSceneMembership | 0x06 | -| * RecallScene | 0x05 | -| * RemoveAllScenes | 0x03 | -| * RemoveScene | 0x02 | -| * StoreScene | 0x04 | -| * ViewScene | 0x01 | -|------------------------------------------------------------------------------| -| Attributes: | | -| * SceneCount | 0x0000 | -| * CurrentScene | 0x0001 | -| * CurrentGroup | 0x0002 | -| * SceneValid | 0x0003 | -| * NameSupport | 0x0004 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - /* - * Command AddScene + * Command SkipForwardRequest */ -class ScenesAddScene : public ClusterCommand +class MediaPlaybackSkipForwardRequest : public ClusterCommand { public: - ScenesAddScene(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("add-scene", credsIssuerConfig), mComplex_ExtensionFieldSets(&mRequest.extensionFieldSets) + MediaPlaybackSkipForwardRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("skip-forward-request", credsIssuerConfig) { - AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); - AddArgument("SceneId", 0, UINT8_MAX, &mRequest.sceneId); - AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); - AddArgument("SceneName", &mRequest.sceneName); - AddArgument("ExtensionFieldSets", &mComplex_ExtensionFieldSets); + AddArgument("DeltaPositionMilliseconds", 0, UINT64_MAX, &mRequest.deltaPositionMilliseconds); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000008) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000005, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000008, mRequest); } private: - chip::app::Clusters::Scenes::Commands::AddScene::Type mRequest; - TypedComplexArgument> - mComplex_ExtensionFieldSets; + chip::app::Clusters::MediaPlayback::Commands::SkipForwardRequest::Type mRequest; }; /* - * Command GetSceneMembership + * Command SkipBackwardRequest */ -class ScenesGetSceneMembership : public ClusterCommand +class MediaPlaybackSkipBackwardRequest : public ClusterCommand { public: - ScenesGetSceneMembership(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("get-scene-membership", credsIssuerConfig) + MediaPlaybackSkipBackwardRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("skip-backward-request", credsIssuerConfig) { - AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); + AddArgument("DeltaPositionMilliseconds", 0, UINT64_MAX, &mRequest.deltaPositionMilliseconds); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000006) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000009) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000005, 0x00000006, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x00000009, mRequest); } private: - chip::app::Clusters::Scenes::Commands::GetSceneMembership::Type mRequest; + chip::app::Clusters::MediaPlayback::Commands::SkipBackwardRequest::Type mRequest; }; /* - * Command RecallScene + * Command SeekRequest */ -class ScenesRecallScene : public ClusterCommand +class MediaPlaybackSeekRequest : public ClusterCommand { public: - ScenesRecallScene(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("recall-scene", credsIssuerConfig) + MediaPlaybackSeekRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("seek-request", credsIssuerConfig) { - AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); - AddArgument("SceneId", 0, UINT8_MAX, &mRequest.sceneId); - AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); + AddArgument("Position", 0, UINT64_MAX, &mRequest.position); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000005) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x0000000B) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000005, 0x00000005, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000506, 0x0000000B, mRequest); } private: - chip::app::Clusters::Scenes::Commands::RecallScene::Type mRequest; + chip::app::Clusters::MediaPlayback::Commands::SeekRequest::Type mRequest; }; +class WriteMediaPlaybackPosition : public WriteAttribute +{ +public: + WriteMediaPlaybackPosition(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("Position", credsIssuerConfig), mComplex(&mValue) + { + AddArgument("attr-name", "position"); + AddArgument("attr-value", &mComplex); + WriteAttribute::AddArguments(); + } + + ~WriteMediaPlaybackPosition() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000506, 0x00000003, mValue); + } + +private: + chip::app::Clusters::MediaPlayback::Structs::PlaybackPosition::Type mValue; + TypedComplexArgument mComplex; +}; + +/*----------------------------------------------------------------------------*\ +| Cluster ModeSelect | 0x0050 | +|------------------------------------------------------------------------------| +| Commands: | | +| * ChangeToMode | 0x00 | +|------------------------------------------------------------------------------| +| Attributes: | | +| * CurrentMode | 0x0000 | +| * SupportedModes | 0x0001 | +| * OnMode | 0x0002 | +| * StartUpMode | 0x0003 | +| * Description | 0x0004 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + /* - * Command RemoveAllScenes + * Command ChangeToMode */ -class ScenesRemoveAllScenes : public ClusterCommand +class ModeSelectChangeToMode : public ClusterCommand { public: - ScenesRemoveAllScenes(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("remove-all-scenes", credsIssuerConfig) + ModeSelectChangeToMode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("change-to-mode", credsIssuerConfig) { - AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); + AddArgument("NewMode", 0, UINT8_MAX, &mRequest.newMode); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000003) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000050) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000005, 0x00000003, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000050, 0x00000000, mRequest); } private: - chip::app::Clusters::Scenes::Commands::RemoveAllScenes::Type mRequest; + chip::app::Clusters::ModeSelect::Commands::ChangeToMode::Type mRequest; +}; + +class WriteModeSelectOnMode : public WriteAttribute +{ +public: + WriteModeSelectOnMode(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("OnMode", credsIssuerConfig) + { + AddArgument("attr-name", "on-mode"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteModeSelectOnMode() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000050, 0x00000002, mValue); + } + +private: + uint8_t mValue; }; +/*----------------------------------------------------------------------------*\ +| Cluster NetworkCommissioning | 0x0031 | +|------------------------------------------------------------------------------| +| Commands: | | +| * ScanNetworks | 0x00 | +| * AddOrUpdateWiFiNetwork | 0x02 | +| * AddOrUpdateThreadNetwork | 0x03 | +| * RemoveNetwork | 0x04 | +| * ConnectNetwork | 0x06 | +| * ReorderNetwork | 0x08 | +|------------------------------------------------------------------------------| +| Attributes: | | +| * MaxNetworks | 0x0000 | +| * Networks | 0x0001 | +| * ScanMaxTimeSeconds | 0x0002 | +| * ConnectMaxTimeSeconds | 0x0003 | +| * InterfaceEnabled | 0x0004 | +| * LastNetworkingStatus | 0x0005 | +| * LastNetworkID | 0x0006 | +| * LastConnectErrorValue | 0x0007 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + /* - * Command RemoveScene + * Command ScanNetworks */ -class ScenesRemoveScene : public ClusterCommand +class NetworkCommissioningScanNetworks : public ClusterCommand { public: - ScenesRemoveScene(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("remove-scene", credsIssuerConfig) + NetworkCommissioningScanNetworks(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("scan-networks", credsIssuerConfig) { - AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); - AddArgument("SceneId", 0, UINT8_MAX, &mRequest.sceneId); + AddArgument("Ssid", &mRequest.ssid); + AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000002) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000000) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000005, 0x00000002, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000031, 0x00000000, mRequest); } private: - chip::app::Clusters::Scenes::Commands::RemoveScene::Type mRequest; + chip::app::Clusters::NetworkCommissioning::Commands::ScanNetworks::Type mRequest; }; /* - * Command StoreScene + * Command AddOrUpdateWiFiNetwork */ -class ScenesStoreScene : public ClusterCommand +class NetworkCommissioningAddOrUpdateWiFiNetwork : public ClusterCommand { public: - ScenesStoreScene(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("store-scene", credsIssuerConfig) + NetworkCommissioningAddOrUpdateWiFiNetwork(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("add-or-update-wi-fi-network", credsIssuerConfig) { - AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); - AddArgument("SceneId", 0, UINT8_MAX, &mRequest.sceneId); + AddArgument("Ssid", &mRequest.ssid); + AddArgument("Credentials", &mRequest.credentials); + AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000004) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000002) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000005, 0x00000004, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000031, 0x00000002, mRequest); } private: - chip::app::Clusters::Scenes::Commands::StoreScene::Type mRequest; + chip::app::Clusters::NetworkCommissioning::Commands::AddOrUpdateWiFiNetwork::Type mRequest; }; /* - * Command ViewScene + * Command AddOrUpdateThreadNetwork */ -class ScenesViewScene : public ClusterCommand +class NetworkCommissioningAddOrUpdateThreadNetwork : public ClusterCommand { public: - ScenesViewScene(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("view-scene", credsIssuerConfig) + NetworkCommissioningAddOrUpdateThreadNetwork(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("add-or-update-thread-network", credsIssuerConfig) { - AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); - AddArgument("SceneId", 0, UINT8_MAX, &mRequest.sceneId); + AddArgument("OperationalDataset", &mRequest.operationalDataset); + AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000001) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000003) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000005, 0x00000001, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000031, 0x00000003, mRequest); } private: - chip::app::Clusters::Scenes::Commands::ViewScene::Type mRequest; + chip::app::Clusters::NetworkCommissioning::Commands::AddOrUpdateThreadNetwork::Type mRequest; }; -/*----------------------------------------------------------------------------*\ -| Cluster SoftwareDiagnostics | 0x0034 | -|------------------------------------------------------------------------------| -| Commands: | | -| * ResetWatermarks | 0x00 | -|------------------------------------------------------------------------------| -| Attributes: | | -| * ThreadMetrics | 0x0000 | -| * CurrentHeapFree | 0x0001 | -| * CurrentHeapUsed | 0x0002 | -| * CurrentHeapHighWatermark | 0x0003 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * FeatureMap | 0xFFFC | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -| * SoftwareFault | 0x0000 | -\*----------------------------------------------------------------------------*/ - /* - * Command ResetWatermarks + * Command RemoveNetwork */ -class SoftwareDiagnosticsResetWatermarks : public ClusterCommand +class NetworkCommissioningRemoveNetwork : public ClusterCommand { public: - SoftwareDiagnosticsResetWatermarks(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("reset-watermarks", credsIssuerConfig) + NetworkCommissioningRemoveNetwork(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("remove-network", credsIssuerConfig) { + AddArgument("NetworkID", &mRequest.networkID); + AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000034) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000004) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000034, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000031, 0x00000004, mRequest); } private: - chip::app::Clusters::SoftwareDiagnostics::Commands::ResetWatermarks::Type mRequest; + chip::app::Clusters::NetworkCommissioning::Commands::RemoveNetwork::Type mRequest; }; -/*----------------------------------------------------------------------------*\ -| Cluster Switch | 0x003B | -|------------------------------------------------------------------------------| -| Commands: | | -|------------------------------------------------------------------------------| -| Attributes: | | -| * NumberOfPositions | 0x0000 | -| * CurrentPosition | 0x0001 | -| * MultiPressMax | 0x0002 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * FeatureMap | 0xFFFC | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -| * SwitchLatched | 0x0000 | -| * InitialPress | 0x0001 | -| * LongPress | 0x0002 | -| * ShortRelease | 0x0003 | -| * LongRelease | 0x0004 | -| * MultiPressOngoing | 0x0005 | -| * MultiPressComplete | 0x0006 | -\*----------------------------------------------------------------------------*/ - -/*----------------------------------------------------------------------------*\ -| Cluster TargetNavigator | 0x0505 | -|------------------------------------------------------------------------------| -| Commands: | | -| * NavigateTargetRequest | 0x00 | -|------------------------------------------------------------------------------| -| Attributes: | | -| * TargetNavigatorList | 0x0000 | -| * CurrentNavigatorTarget | 0x0001 | -| * ServerGeneratedCommandList | 0xFFF8 | -| * ClientGeneratedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - /* - * Command NavigateTargetRequest + * Command ConnectNetwork */ -class TargetNavigatorNavigateTargetRequest : public ClusterCommand +class NetworkCommissioningConnectNetwork : public ClusterCommand { public: - TargetNavigatorNavigateTargetRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("navigate-target-request", credsIssuerConfig) + NetworkCommissioningConnectNetwork(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("connect-network", credsIssuerConfig) { - AddArgument("Target", 0, UINT8_MAX, &mRequest.target); - AddArgument("Data", &mRequest.data); + AddArgument("NetworkID", &mRequest.networkID); + AddArgument("Breadcrumb", 0, UINT64_MAX, &mRequest.breadcrumb); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000505) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000006) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000505, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000031, 0x00000006, mRequest); } private: - chip::app::Clusters::TargetNavigator::Commands::NavigateTargetRequest::Type mRequest; + chip::app::Clusters::NetworkCommissioning::Commands::ConnectNetwork::Type mRequest; }; -/*----------------------------------------------------------------------------*\ -| Cluster TemperatureMeasurement | 0x0402 | -|------------------------------------------------------------------------------| -| Commands: | | -|------------------------------------------------------------------------------| -| Attributes: | | -| * MeasuredValue | 0x0000 | -| * MinMeasuredValue | 0x0001 | -| * MaxMeasuredValue | 0x0002 | -| * Tolerance | 0x0003 | +/* + * 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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000008) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000031, 0x00000008, mRequest); + } + +private: + chip::app::Clusters::NetworkCommissioning::Commands::ReorderNetwork::Type mRequest; +}; + +class WriteNetworkCommissioningInterfaceEnabled : public WriteAttribute +{ +public: + WriteNetworkCommissioningInterfaceEnabled(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("InterfaceEnabled", credsIssuerConfig) + { + AddArgument("attr-name", "interface-enabled"); + AddArgument("attr-value", 0, 1, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteNetworkCommissioningInterfaceEnabled() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000031, 0x00000004, mValue); + } + +private: + bool mValue; +}; + +/*----------------------------------------------------------------------------*\ +| Cluster OtaSoftwareUpdateProvider | 0x0029 | +|------------------------------------------------------------------------------| +| Commands: | | +| * QueryImage | 0x00 | +| * ApplyUpdateRequest | 0x02 | +| * NotifyUpdateApplied | 0x04 | +|------------------------------------------------------------------------------| +| Attributes: | | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | | * 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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000029) command (0x00000000) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000029, 0x00000000, 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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000029) command (0x00000002) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000029, 0x00000002, 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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000029) command (0x00000004) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000029, 0x00000004, mRequest); + } + +private: + chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::NotifyUpdateApplied::Type mRequest; +}; + /*----------------------------------------------------------------------------*\ -| Cluster TestCluster | 0x050F | +| Cluster OtaSoftwareUpdateRequestor | 0x002A | |------------------------------------------------------------------------------| | Commands: | | -| * SimpleStructEchoRequest | 0x11 | -| * Test | 0x00 | -| * TestAddArguments | 0x04 | -| * TestEmitTestEventRequest | 0x14 | -| * TestEnumsRequest | 0x0E | -| * TestListInt8UArgumentRequest | 0x0A | -| * TestListInt8UReverseRequest | 0x0D | -| * TestListNestedStructListArgumentRequest | 0x0C | -| * TestListStructArgumentRequest | 0x09 | -| * TestNestedStructArgumentRequest | 0x08 | -| * TestNestedStructListArgumentRequest | 0x0B | -| * TestNotHandled | 0x01 | -| * TestNullableOptionalRequest | 0x0F | -| * TestSimpleOptionalArgumentRequest | 0x13 | -| * TestSpecific | 0x02 | -| * TestStructArgumentRequest | 0x07 | -| * TestUnknownCommand | 0x03 | -| * TimedInvokeRequest | 0x12 | +| * AnnounceOtaProvider | 0x00 | |------------------------------------------------------------------------------| | 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 | -| * TimedWriteBoolean | 0x0030 | -| * GeneralErrorBoolean | 0x0031 | -| * ClusterErrorBoolean | 0x0032 | -| * Unsupported | 0x00FF | -| * NullableBoolean | 0x8000 | -| * NullableBitmap8 | 0x8001 | -| * NullableBitmap16 | 0x8002 | -| * NullableBitmap32 | 0x8003 | -| * NullableBitmap64 | 0x8004 | -| * NullableInt8u | 0x8005 | -| * NullableInt16u | 0x8006 | -| * NullableInt24u | 0x8007 | -| * NullableInt32u | 0x8008 | -| * NullableInt40u | 0x8009 | -| * NullableInt48u | 0x800A | -| * NullableInt56u | 0x800B | -| * NullableInt64u | 0x800C | -| * NullableInt8s | 0x800D | -| * NullableInt16s | 0x800E | -| * NullableInt24s | 0x800F | -| * NullableInt32s | 0x8010 | -| * NullableInt40s | 0x8011 | -| * NullableInt48s | 0x8012 | -| * NullableInt56s | 0x8013 | -| * NullableInt64s | 0x8014 | -| * NullableEnum8 | 0x8015 | -| * NullableEnum16 | 0x8016 | -| * NullableFloatSingle | 0x8017 | -| * NullableFloatDouble | 0x8018 | -| * NullableOctetString | 0x8019 | -| * NullableCharString | 0x801E | -| * NullableEnumAttr | 0x8024 | -| * NullableStruct | 0x8025 | -| * NullableRangeRestrictedInt8u | 0x8026 | -| * NullableRangeRestrictedInt8s | 0x8027 | -| * NullableRangeRestrictedInt16u | 0x8028 | -| * NullableRangeRestrictedInt16s | 0x8029 | +| * DefaultOtaProviders | 0x0000 | +| * UpdatePossible | 0x0001 | +| * UpdateState | 0x0002 | +| * UpdateStateProgress | 0x0003 | | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | -| * TestEvent | 0x0001 | -| * TestFabricScopedEvent | 0x0002 | -\*----------------------------------------------------------------------------*/ +| * StateTransition | 0x0000 | +| * VersionApplied | 0x0001 | +| * DownloadError | 0x0002 | +\*----------------------------------------------------------------------------*/ + +/* + * Command AnnounceOtaProvider + */ +class OtaSoftwareUpdateRequestorAnnounceOtaProvider : public ClusterCommand +{ +public: + OtaSoftwareUpdateRequestorAnnounceOtaProvider(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("announce-ota-provider", 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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000002A) command (0x00000000) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000002A, 0x00000000, mRequest); + } + +private: + chip::app::Clusters::OtaSoftwareUpdateRequestor::Commands::AnnounceOtaProvider::Type mRequest; +}; + +class WriteOtaSoftwareUpdateRequestorDefaultOtaProviders : public WriteAttribute +{ +public: + WriteOtaSoftwareUpdateRequestorDefaultOtaProviders(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("DefaultOtaProviders", credsIssuerConfig), mComplex(&mValue) + { + AddArgument("attr-name", "default-ota-providers"); + AddArgument("attr-value", &mComplex); + WriteAttribute::AddArguments(); + } + + ~WriteOtaSoftwareUpdateRequestorDefaultOtaProviders() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x0000002A, 0x00000000, mValue); + } + +private: + chip::app::DataModel::List mValue; + TypedComplexArgument< + chip::app::DataModel::List> + mComplex; +}; + +/*----------------------------------------------------------------------------*\ +| Cluster OccupancySensing | 0x0406 | +|------------------------------------------------------------------------------| +| Commands: | | +|------------------------------------------------------------------------------| +| Attributes: | | +| * Occupancy | 0x0000 | +| * OccupancySensorType | 0x0001 | +| * OccupancySensorTypeBitmap | 0x0002 | +| * PirOccupiedToUnoccupiedDelay | 0x0010 | +| * PirUnoccupiedToOccupiedDelay | 0x0011 | +| * PirUnoccupiedToOccupiedThreshold | 0x0012 | +| * UltrasonicOccupiedToUnoccupiedDelay | 0x0020 | +| * UltrasonicUnoccupiedToOccupiedDelay | 0x0021 | +| * UltrasonicUnoccupiedToOccupiedThreshold | 0x0022 | +| * PhysicalContactOccupiedToUnoccupiedDelay | 0x0030 | +| * PhysicalContactUnoccupiedToOccupiedDelay | 0x0031 | +| * PhysicalContactUnoccupiedToOccupiedThreshold | 0x0032 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + +class WriteOccupancySensingPirOccupiedToUnoccupiedDelay : public WriteAttribute +{ +public: + WriteOccupancySensingPirOccupiedToUnoccupiedDelay(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("PirOccupiedToUnoccupiedDelay", credsIssuerConfig) + { + AddArgument("attr-name", "pir-occupied-to-unoccupied-delay"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteOccupancySensingPirOccupiedToUnoccupiedDelay() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000406, 0x00000010, mValue); + } + +private: + uint16_t mValue; +}; + +class WriteOccupancySensingPirUnoccupiedToOccupiedDelay : public WriteAttribute +{ +public: + WriteOccupancySensingPirUnoccupiedToOccupiedDelay(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("PirUnoccupiedToOccupiedDelay", credsIssuerConfig) + { + AddArgument("attr-name", "pir-unoccupied-to-occupied-delay"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteOccupancySensingPirUnoccupiedToOccupiedDelay() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000406, 0x00000011, mValue); + } + +private: + uint16_t mValue; +}; + +class WriteOccupancySensingPirUnoccupiedToOccupiedThreshold : public WriteAttribute +{ +public: + WriteOccupancySensingPirUnoccupiedToOccupiedThreshold(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("PirUnoccupiedToOccupiedThreshold", credsIssuerConfig) + { + AddArgument("attr-name", "pir-unoccupied-to-occupied-threshold"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteOccupancySensingPirUnoccupiedToOccupiedThreshold() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000406, 0x00000012, mValue); + } + +private: + uint8_t mValue; +}; + +class WriteOccupancySensingUltrasonicOccupiedToUnoccupiedDelay : public WriteAttribute +{ +public: + WriteOccupancySensingUltrasonicOccupiedToUnoccupiedDelay(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("UltrasonicOccupiedToUnoccupiedDelay", credsIssuerConfig) + { + AddArgument("attr-name", "ultrasonic-occupied-to-unoccupied-delay"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteOccupancySensingUltrasonicOccupiedToUnoccupiedDelay() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000406, 0x00000020, mValue); + } + +private: + uint16_t mValue; +}; + +class WriteOccupancySensingUltrasonicUnoccupiedToOccupiedDelay : public WriteAttribute +{ +public: + WriteOccupancySensingUltrasonicUnoccupiedToOccupiedDelay(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("UltrasonicUnoccupiedToOccupiedDelay", credsIssuerConfig) + { + AddArgument("attr-name", "ultrasonic-unoccupied-to-occupied-delay"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteOccupancySensingUltrasonicUnoccupiedToOccupiedDelay() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000406, 0x00000021, mValue); + } + +private: + uint16_t mValue; +}; + +class WriteOccupancySensingUltrasonicUnoccupiedToOccupiedThreshold : public WriteAttribute +{ +public: + WriteOccupancySensingUltrasonicUnoccupiedToOccupiedThreshold(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("UltrasonicUnoccupiedToOccupiedThreshold", credsIssuerConfig) + { + AddArgument("attr-name", "ultrasonic-unoccupied-to-occupied-threshold"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteOccupancySensingUltrasonicUnoccupiedToOccupiedThreshold() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000406, 0x00000022, mValue); + } + +private: + uint8_t mValue; +}; + +class WriteOccupancySensingPhysicalContactOccupiedToUnoccupiedDelay : public WriteAttribute +{ +public: + WriteOccupancySensingPhysicalContactOccupiedToUnoccupiedDelay(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("PhysicalContactOccupiedToUnoccupiedDelay", credsIssuerConfig) + { + AddArgument("attr-name", "physical-contact-occupied-to-unoccupied-delay"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteOccupancySensingPhysicalContactOccupiedToUnoccupiedDelay() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000406, 0x00000030, mValue); + } + +private: + uint16_t mValue; +}; + +class WriteOccupancySensingPhysicalContactUnoccupiedToOccupiedDelay : public WriteAttribute +{ +public: + WriteOccupancySensingPhysicalContactUnoccupiedToOccupiedDelay(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("PhysicalContactUnoccupiedToOccupiedDelay", credsIssuerConfig) + { + AddArgument("attr-name", "physical-contact-unoccupied-to-occupied-delay"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteOccupancySensingPhysicalContactUnoccupiedToOccupiedDelay() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000406, 0x00000031, mValue); + } + +private: + uint16_t mValue; +}; + +class WriteOccupancySensingPhysicalContactUnoccupiedToOccupiedThreshold : public WriteAttribute +{ +public: + WriteOccupancySensingPhysicalContactUnoccupiedToOccupiedThreshold(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("PhysicalContactUnoccupiedToOccupiedThreshold", credsIssuerConfig) + { + AddArgument("attr-name", "physical-contact-unoccupied-to-occupied-threshold"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteOccupancySensingPhysicalContactUnoccupiedToOccupiedThreshold() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000406, 0x00000032, mValue); + } + +private: + uint8_t mValue; +}; + +/*----------------------------------------------------------------------------*\ +| 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 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * 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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000000) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000006, 0x00000000, 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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000001) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000006, 0x00000001, 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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000002) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000006, 0x00000002, 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("EffectId", 0, UINT8_MAX, &mRequest.effectId); + AddArgument("EffectVariant", 0, UINT8_MAX, &mRequest.effectVariant); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000040) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000006, 0x00000040, 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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000041) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000006, 0x00000041, 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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000042) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000006, 0x00000042, mRequest); + } + +private: + chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type mRequest; +}; + +class WriteOnOffOnTime : public WriteAttribute +{ +public: + WriteOnOffOnTime(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("OnTime", credsIssuerConfig) + { + AddArgument("attr-name", "on-time"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteOnOffOnTime() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000006, 0x00004001, mValue); + } + +private: + uint16_t mValue; +}; + +class WriteOnOffOffWaitTime : public WriteAttribute +{ +public: + WriteOnOffOffWaitTime(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("OffWaitTime", credsIssuerConfig) + { + AddArgument("attr-name", "off-wait-time"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteOnOffOffWaitTime() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000006, 0x00004002, mValue); + } + +private: + uint16_t mValue; +}; + +class WriteOnOffStartUpOnOff : public WriteAttribute +{ +public: + WriteOnOffStartUpOnOff(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("StartUpOnOff", credsIssuerConfig) + { + AddArgument("attr-name", "start-up-on-off"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteOnOffStartUpOnOff() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000006, 0x00004003, mValue); + } + +private: + uint8_t mValue; +}; + +/*----------------------------------------------------------------------------*\ +| Cluster OnOffSwitchConfiguration | 0x0007 | +|------------------------------------------------------------------------------| +| Commands: | | +|------------------------------------------------------------------------------| +| Attributes: | | +| * SwitchType | 0x0000 | +| * SwitchActions | 0x0010 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + +class WriteOnOffSwitchConfigurationSwitchActions : public WriteAttribute +{ +public: + WriteOnOffSwitchConfigurationSwitchActions(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("SwitchActions", credsIssuerConfig) + { + AddArgument("attr-name", "switch-actions"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteOnOffSwitchConfigurationSwitchActions() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000007, 0x00000010, mValue); + } + +private: + uint8_t mValue; +}; + +/*----------------------------------------------------------------------------*\ +| Cluster OperationalCredentials | 0x003E | +|------------------------------------------------------------------------------| +| Commands: | | +| * AttestationRequest | 0x00 | +| * CertificateChainRequest | 0x02 | +| * CSRRequest | 0x04 | +| * AddNOC | 0x06 | +| * UpdateNOC | 0x07 | +| * UpdateFabricLabel | 0x09 | +| * RemoveFabric | 0x0A | +| * AddTrustedRootCertificate | 0x0B | +| * RemoveTrustedRootCertificate | 0x0C | +|------------------------------------------------------------------------------| +| Attributes: | | +| * NOCs | 0x0000 | +| * FabricsList | 0x0001 | +| * SupportedFabrics | 0x0002 | +| * CommissionedFabrics | 0x0003 | +| * TrustedRootCertificates | 0x0004 | +| * CurrentFabricIndex | 0x0005 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * 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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000000) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x00000000, 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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000002) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x00000002, 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); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000004) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x00000004, 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("CaseAdminNode", 0, UINT64_MAX, &mRequest.caseAdminNode); + AddArgument("AdminVendorId", 0, UINT16_MAX, &mRequest.adminVendorId); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000006) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x00000006, 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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000007) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x00000007, 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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000009) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x00000009, 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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x0000000A) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x0000000A, 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("RootCertificate", &mRequest.rootCertificate); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x0000000B) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x0000000B, mRequest); + } + +private: + chip::app::Clusters::OperationalCredentials::Commands::AddTrustedRootCertificate::Type mRequest; +}; + +/* + * Command RemoveTrustedRootCertificate + */ +class OperationalCredentialsRemoveTrustedRootCertificate : public ClusterCommand +{ +public: + OperationalCredentialsRemoveTrustedRootCertificate(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("remove-trusted-root-certificate", credsIssuerConfig) + { + AddArgument("TrustedRootIdentifier", &mRequest.trustedRootIdentifier); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x0000000C) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000003E, 0x0000000C, mRequest); + } + +private: + chip::app::Clusters::OperationalCredentials::Commands::RemoveTrustedRootCertificate::Type mRequest; +}; + +/*----------------------------------------------------------------------------*\ +| 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 | +| * BatteryVoltage | 0x000B | +| * BatteryPercentRemaining | 0x000C | +| * BatteryTimeRemaining | 0x000D | +| * BatteryChargeLevel | 0x000E | +| * BatteryReplacementNeeded | 0x000F | +| * BatteryReplaceability | 0x0010 | +| * BatteryPresent | 0x0011 | +| * ActiveBatteryFaults | 0x0012 | +| * BatteryReplacementDescription | 0x0013 | +| * BatteryCommonDesignation | 0x0014 | +| * BatteryANSIDesignation | 0x0015 | +| * BatteryIECDesignation | 0x0016 | +| * BatteryApprovedChemistry | 0x0017 | +| * BatteryCapacity | 0x0018 | +| * BatteryQuantity | 0x0019 | +| * BatteryChargeState | 0x001A | +| * BatteryTimeToFullCharge | 0x001B | +| * BatteryFunctionalWhileCharging | 0x001C | +| * BatteryChargingCurrent | 0x001D | +| * ActiveBatteryChargeFaults | 0x001E | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + +/*----------------------------------------------------------------------------*\ +| Cluster PowerSourceConfiguration | 0x002E | +|------------------------------------------------------------------------------| +| Commands: | | +|------------------------------------------------------------------------------| +| Attributes: | | +| * Sources | 0x0000 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * 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 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + +/*----------------------------------------------------------------------------*\ +| 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 | +| * AlarmMask | 0x0022 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * 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 | +\*----------------------------------------------------------------------------*/ + +class WritePumpConfigurationAndControlLifetimeRunningHours : public WriteAttribute +{ +public: + WritePumpConfigurationAndControlLifetimeRunningHours(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("LifetimeRunningHours", credsIssuerConfig) + { + AddArgument("attr-name", "lifetime-running-hours"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WritePumpConfigurationAndControlLifetimeRunningHours() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000200, 0x00000015, mValue); + } + +private: + chip::app::DataModel::Nullable mValue; +}; + +class WritePumpConfigurationAndControlLifetimeEnergyConsumed : public WriteAttribute +{ +public: + WritePumpConfigurationAndControlLifetimeEnergyConsumed(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("LifetimeEnergyConsumed", credsIssuerConfig) + { + AddArgument("attr-name", "lifetime-energy-consumed"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WritePumpConfigurationAndControlLifetimeEnergyConsumed() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000200, 0x00000017, mValue); + } + +private: + chip::app::DataModel::Nullable mValue; +}; + +class WritePumpConfigurationAndControlOperationMode : public WriteAttribute +{ +public: + WritePumpConfigurationAndControlOperationMode(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("OperationMode", credsIssuerConfig) + { + AddArgument("attr-name", "operation-mode"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WritePumpConfigurationAndControlOperationMode() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000200, 0x00000020, mValue); + } + +private: + uint8_t mValue; +}; + +class WritePumpConfigurationAndControlControlMode : public WriteAttribute +{ +public: + WritePumpConfigurationAndControlControlMode(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ControlMode", credsIssuerConfig) + { + AddArgument("attr-name", "control-mode"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WritePumpConfigurationAndControlControlMode() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x00000200, 0x00000021, mValue); + } + +private: + uint8_t mValue; +}; + +/*----------------------------------------------------------------------------*\ +| Cluster RelativeHumidityMeasurement | 0x0405 | +|------------------------------------------------------------------------------| +| Commands: | | +|------------------------------------------------------------------------------| +| Attributes: | | +| * MeasuredValue | 0x0000 | +| * MinMeasuredValue | 0x0001 | +| * MaxMeasuredValue | 0x0002 | +| * Tolerance | 0x0003 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + +/*----------------------------------------------------------------------------*\ +| Cluster Scenes | 0x0005 | +|------------------------------------------------------------------------------| +| Commands: | | +| * AddScene | 0x00 | +| * ViewScene | 0x01 | +| * RemoveScene | 0x02 | +| * RemoveAllScenes | 0x03 | +| * StoreScene | 0x04 | +| * RecallScene | 0x05 | +| * GetSceneMembership | 0x06 | +| * EnhancedAddScene | 0x40 | +| * EnhancedViewScene | 0x41 | +| * CopyScene | 0x42 | +|------------------------------------------------------------------------------| +| Attributes: | | +| * SceneCount | 0x0000 | +| * CurrentScene | 0x0001 | +| * CurrentGroup | 0x0002 | +| * SceneValid | 0x0003 | +| * NameSupport | 0x0004 | +| * LastConfiguredBy | 0x0005 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + +/* + * Command AddScene + */ +class ScenesAddScene : public ClusterCommand +{ +public: + ScenesAddScene(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, UINT16_MAX, &mRequest.transitionTime); + AddArgument("SceneName", &mRequest.sceneName); + AddArgument("ExtensionFieldSets", &mComplex_ExtensionFieldSets); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000000) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000005, 0x00000000, mRequest); + } + +private: + chip::app::Clusters::Scenes::Commands::AddScene::Type mRequest; + TypedComplexArgument> + mComplex_ExtensionFieldSets; +}; + +/* + * Command ViewScene + */ +class ScenesViewScene : public ClusterCommand +{ +public: + ScenesViewScene(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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000001) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000005, 0x00000001, mRequest); + } + +private: + chip::app::Clusters::Scenes::Commands::ViewScene::Type mRequest; +}; + +/* + * Command RemoveScene + */ +class ScenesRemoveScene : public ClusterCommand +{ +public: + ScenesRemoveScene(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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000002) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000005, 0x00000002, mRequest); + } + +private: + chip::app::Clusters::Scenes::Commands::RemoveScene::Type mRequest; +}; + +/* + * Command RemoveAllScenes + */ +class ScenesRemoveAllScenes : public ClusterCommand +{ +public: + ScenesRemoveAllScenes(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("remove-all-scenes", credsIssuerConfig) + { + AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000003) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000005, 0x00000003, mRequest); + } + +private: + chip::app::Clusters::Scenes::Commands::RemoveAllScenes::Type mRequest; +}; + +/* + * Command StoreScene + */ +class ScenesStoreScene : public ClusterCommand +{ +public: + ScenesStoreScene(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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000004) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000005, 0x00000004, mRequest); + } + +private: + chip::app::Clusters::Scenes::Commands::StoreScene::Type mRequest; +}; + +/* + * Command RecallScene + */ +class ScenesRecallScene : public ClusterCommand +{ +public: + ScenesRecallScene(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("recall-scene", credsIssuerConfig) + { + AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); + AddArgument("SceneId", 0, UINT8_MAX, &mRequest.sceneId); + AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000005) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000005, 0x00000005, mRequest); + } + +private: + chip::app::Clusters::Scenes::Commands::RecallScene::Type mRequest; +}; + +/* + * Command GetSceneMembership + */ +class ScenesGetSceneMembership : public ClusterCommand +{ +public: + ScenesGetSceneMembership(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("get-scene-membership", credsIssuerConfig) + { + AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000006) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000005, 0x00000006, mRequest); + } + +private: + chip::app::Clusters::Scenes::Commands::GetSceneMembership::Type mRequest; +}; + +/* + * Command EnhancedAddScene + */ +class ScenesEnhancedAddScene : public ClusterCommand +{ +public: + ScenesEnhancedAddScene(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("enhanced-add-scene", credsIssuerConfig), mComplex_ExtensionFieldSets(&mRequest.extensionFieldSets) + { + AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); + AddArgument("SceneId", 0, UINT8_MAX, &mRequest.sceneId); + AddArgument("TransitionTime", 0, UINT16_MAX, &mRequest.transitionTime); + AddArgument("SceneName", &mRequest.sceneName); + AddArgument("ExtensionFieldSets", &mComplex_ExtensionFieldSets); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000040) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000005, 0x00000040, mRequest); + } + +private: + chip::app::Clusters::Scenes::Commands::EnhancedAddScene::Type mRequest; + TypedComplexArgument> + mComplex_ExtensionFieldSets; +}; + +/* + * Command EnhancedViewScene + */ +class ScenesEnhancedViewScene : public ClusterCommand +{ +public: + ScenesEnhancedViewScene(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("enhanced-view-scene", credsIssuerConfig) + { + AddArgument("GroupId", 0, UINT16_MAX, &mRequest.groupId); + AddArgument("SceneId", 0, UINT8_MAX, &mRequest.sceneId); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000041) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000005, 0x00000041, mRequest); + } + +private: + chip::app::Clusters::Scenes::Commands::EnhancedViewScene::Type mRequest; +}; + +/* + * Command CopyScene + */ +class ScenesCopyScene : public ClusterCommand +{ +public: + ScenesCopyScene(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("copy-scene", credsIssuerConfig) + { + AddArgument("Mode", 0, UINT8_MAX, &mRequest.mode); + AddArgument("GroupIdFrom", 0, UINT16_MAX, &mRequest.groupIdFrom); + AddArgument("SceneIdFrom", 0, UINT8_MAX, &mRequest.sceneIdFrom); + AddArgument("GroupIdTo", 0, UINT16_MAX, &mRequest.groupIdTo); + AddArgument("SceneIdTo", 0, UINT8_MAX, &mRequest.sceneIdTo); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000042) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000005, 0x00000042, mRequest); + } + +private: + chip::app::Clusters::Scenes::Commands::CopyScene::Type mRequest; +}; + +/*----------------------------------------------------------------------------*\ +| Cluster SoftwareDiagnostics | 0x0034 | +|------------------------------------------------------------------------------| +| Commands: | | +| * ResetWatermarks | 0x00 | +|------------------------------------------------------------------------------| +| Attributes: | | +| * ThreadMetrics | 0x0000 | +| * CurrentHeapFree | 0x0001 | +| * CurrentHeapUsed | 0x0002 | +| * CurrentHeapHighWatermark | 0x0003 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * 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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000034) command (0x00000000) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000034, 0x00000000, mRequest); + } + +private: + chip::app::Clusters::SoftwareDiagnostics::Commands::ResetWatermarks::Type mRequest; +}; + +/*----------------------------------------------------------------------------*\ +| Cluster Switch | 0x003B | +|------------------------------------------------------------------------------| +| Commands: | | +|------------------------------------------------------------------------------| +| Attributes: | | +| * NumberOfPositions | 0x0000 | +| * CurrentPosition | 0x0001 | +| * MultiPressMax | 0x0002 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +| * SwitchLatched | 0x0000 | +| * InitialPress | 0x0001 | +| * LongPress | 0x0002 | +| * ShortRelease | 0x0003 | +| * LongRelease | 0x0004 | +| * MultiPressOngoing | 0x0005 | +| * MultiPressComplete | 0x0006 | +\*----------------------------------------------------------------------------*/ + +/*----------------------------------------------------------------------------*\ +| Cluster TargetNavigator | 0x0505 | +|------------------------------------------------------------------------------| +| Commands: | | +| * NavigateTargetRequest | 0x00 | +|------------------------------------------------------------------------------| +| Attributes: | | +| * TargetNavigatorList | 0x0000 | +| * CurrentNavigatorTarget | 0x0001 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + +/* + * Command NavigateTargetRequest + */ +class TargetNavigatorNavigateTargetRequest : public ClusterCommand +{ +public: + TargetNavigatorNavigateTargetRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("navigate-target-request", credsIssuerConfig) + { + AddArgument("Target", 0, UINT8_MAX, &mRequest.target); + AddArgument("Data", &mRequest.data); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000505) command (0x00000000) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000505, 0x00000000, mRequest); + } + +private: + chip::app::Clusters::TargetNavigator::Commands::NavigateTargetRequest::Type mRequest; +}; + +/*----------------------------------------------------------------------------*\ +| Cluster TemperatureMeasurement | 0x0402 | +|------------------------------------------------------------------------------| +| Commands: | | +|------------------------------------------------------------------------------| +| Attributes: | | +| * MeasuredValue | 0x0000 | +| * MinMeasuredValue | 0x0001 | +| * MaxMeasuredValue | 0x0002 | +| * Tolerance | 0x0003 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + +/*----------------------------------------------------------------------------*\ +| Cluster TestCluster | 0x050F | +|------------------------------------------------------------------------------| +| 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 | +|------------------------------------------------------------------------------| +| 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 | +| * Unsupported | 0x00FF | +| * NullableBoolean | 0x8000 | +| * NullableBitmap8 | 0x8001 | +| * NullableBitmap16 | 0x8002 | +| * NullableBitmap32 | 0x8003 | +| * NullableBitmap64 | 0x8004 | +| * NullableInt8u | 0x8005 | +| * NullableInt16u | 0x8006 | +| * NullableInt24u | 0x8007 | +| * NullableInt32u | 0x8008 | +| * NullableInt40u | 0x8009 | +| * NullableInt48u | 0x800A | +| * NullableInt56u | 0x800B | +| * NullableInt64u | 0x800C | +| * NullableInt8s | 0x800D | +| * NullableInt16s | 0x800E | +| * NullableInt24s | 0x800F | +| * NullableInt32s | 0x8010 | +| * NullableInt40s | 0x8011 | +| * NullableInt48s | 0x8012 | +| * NullableInt56s | 0x8013 | +| * NullableInt64s | 0x8014 | +| * NullableEnum8 | 0x8015 | +| * NullableEnum16 | 0x8016 | +| * NullableFloatSingle | 0x8017 | +| * NullableFloatDouble | 0x8018 | +| * NullableOctetString | 0x8019 | +| * NullableCharString | 0x801E | +| * NullableEnumAttr | 0x8024 | +| * NullableStruct | 0x8025 | +| * NullableRangeRestrictedInt8u | 0x8026 | +| * NullableRangeRestrictedInt8s | 0x8027 | +| * NullableRangeRestrictedInt16u | 0x8028 | +| * NullableRangeRestrictedInt16s | 0x8029 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +| * TestEvent | 0x0001 | +| * TestFabricScopedEvent | 0x0002 | +\*----------------------------------------------------------------------------*/ + +/* + * Command Test + */ +class TestClusterTest : public ClusterCommand +{ +public: + TestClusterTest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test", credsIssuerConfig) + { + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000000) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000000, mRequest); + } + +private: + chip::app::Clusters::TestCluster::Commands::Test::Type mRequest; +}; + +/* + * Command TestNotHandled + */ +class TestClusterTestNotHandled : public ClusterCommand +{ +public: + TestClusterTestNotHandled(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-not-handled", credsIssuerConfig) + { + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000001) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000001, mRequest); + } + +private: + chip::app::Clusters::TestCluster::Commands::TestNotHandled::Type mRequest; +}; + +/* + * Command TestSpecific + */ +class TestClusterTestSpecific : public ClusterCommand +{ +public: + TestClusterTestSpecific(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-specific", credsIssuerConfig) + { + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000002) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000002, mRequest); + } + +private: + chip::app::Clusters::TestCluster::Commands::TestSpecific::Type mRequest; +}; + +/* + * Command TestUnknownCommand + */ +class TestClusterTestUnknownCommand : public ClusterCommand +{ +public: + TestClusterTestUnknownCommand(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-unknown-command", credsIssuerConfig) + { + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000003) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000003, mRequest); + } + +private: + chip::app::Clusters::TestCluster::Commands::TestUnknownCommand::Type mRequest; +}; + +/* + * Command TestAddArguments + */ +class TestClusterTestAddArguments : public ClusterCommand +{ +public: + TestClusterTestAddArguments(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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000004) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000004, mRequest); + } + +private: + chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type mRequest; +}; + +/* + * Command TestSimpleArgumentRequest + */ +class TestClusterTestSimpleArgumentRequest : public ClusterCommand +{ +public: + TestClusterTestSimpleArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-simple-argument-request", credsIssuerConfig) + { + AddArgument("Arg1", 0, 1, &mRequest.arg1); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000005) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000005, mRequest); + } + +private: + chip::app::Clusters::TestCluster::Commands::TestSimpleArgumentRequest::Type mRequest; +}; + +/* + * Command TestStructArrayArgumentRequest + */ +class TestClusterTestStructArrayArgumentRequest : public ClusterCommand +{ +public: + TestClusterTestStructArrayArgumentRequest(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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000006) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000006, mRequest); + } + +private: + chip::app::Clusters::TestCluster::Commands::TestStructArrayArgumentRequest::Type mRequest; + TypedComplexArgument> + mComplex_Arg1; + TypedComplexArgument> + mComplex_Arg2; + TypedComplexArgument> mComplex_Arg3; + TypedComplexArgument> mComplex_Arg4; +}; + +/* + * Command TestStructArgumentRequest + */ +class TestClusterTestStructArgumentRequest : public ClusterCommand +{ +public: + TestClusterTestStructArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-struct-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + { + AddArgument("Arg1", &mComplex_Arg1); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000007) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000007, mRequest); + } + +private: + chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type mRequest; + TypedComplexArgument mComplex_Arg1; +}; + +/* + * Command TestNestedStructArgumentRequest + */ +class TestClusterTestNestedStructArgumentRequest : public ClusterCommand +{ +public: + TestClusterTestNestedStructArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-nested-struct-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + { + AddArgument("Arg1", &mComplex_Arg1); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000008) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000008, mRequest); + } + +private: + chip::app::Clusters::TestCluster::Commands::TestNestedStructArgumentRequest::Type mRequest; + TypedComplexArgument mComplex_Arg1; +}; + +/* + * Command TestListStructArgumentRequest + */ +class TestClusterTestListStructArgumentRequest : public ClusterCommand +{ +public: + TestClusterTestListStructArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-list-struct-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + { + AddArgument("Arg1", &mComplex_Arg1); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000009) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000009, mRequest); + } + +private: + chip::app::Clusters::TestCluster::Commands::TestListStructArgumentRequest::Type mRequest; + TypedComplexArgument> + mComplex_Arg1; +}; + +/* + * Command TestListInt8UArgumentRequest + */ +class TestClusterTestListInt8UArgumentRequest : public ClusterCommand +{ +public: + TestClusterTestListInt8UArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-list-int8uargument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + { + AddArgument("Arg1", &mComplex_Arg1); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000A) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x0000000A, mRequest); + } + +private: + chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type mRequest; + TypedComplexArgument> mComplex_Arg1; +}; + +/* + * Command TestNestedStructListArgumentRequest + */ +class TestClusterTestNestedStructListArgumentRequest : public ClusterCommand +{ +public: + TestClusterTestNestedStructListArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-nested-struct-list-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + { + AddArgument("Arg1", &mComplex_Arg1); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000B) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x0000000B, mRequest); + } + +private: + chip::app::Clusters::TestCluster::Commands::TestNestedStructListArgumentRequest::Type mRequest; + TypedComplexArgument mComplex_Arg1; +}; + +/* + * Command TestListNestedStructListArgumentRequest + */ +class TestClusterTestListNestedStructListArgumentRequest : public ClusterCommand +{ +public: + TestClusterTestListNestedStructListArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-list-nested-struct-list-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + { + AddArgument("Arg1", &mComplex_Arg1); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000C) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x0000000C, mRequest); + } + +private: + chip::app::Clusters::TestCluster::Commands::TestListNestedStructListArgumentRequest::Type mRequest; + TypedComplexArgument> + mComplex_Arg1; +}; + +/* + * Command TestListInt8UReverseRequest + */ +class TestClusterTestListInt8UReverseRequest : public ClusterCommand +{ +public: + TestClusterTestListInt8UReverseRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-list-int8ureverse-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + { + AddArgument("Arg1", &mComplex_Arg1); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000D) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x0000000D, mRequest); + } + +private: + chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type mRequest; + TypedComplexArgument> mComplex_Arg1; +}; + +/* + * Command TestEnumsRequest + */ +class TestClusterTestEnumsRequest : public ClusterCommand +{ +public: + TestClusterTestEnumsRequest(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(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000E) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x0000000E, mRequest); + } + +private: + chip::app::Clusters::TestCluster::Commands::TestEnumsRequest::Type mRequest; +}; + +/* + * Command TestNullableOptionalRequest + */ +class TestClusterTestNullableOptionalRequest : public ClusterCommand +{ +public: + TestClusterTestNullableOptionalRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-nullable-optional-request", credsIssuerConfig) + { + AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000F) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x0000000F, mRequest); + } + +private: + chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type mRequest; +}; + +/* + * Command TestComplexNullableOptionalRequest + */ +class TestClusterTestComplexNullableOptionalRequest : public ClusterCommand +{ +public: + TestClusterTestComplexNullableOptionalRequest(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); + AddArgument("NullableOptionalStruct", &mComplex_NullableOptionalStruct); + AddArgument("NullableList", &mComplex_NullableList); + AddArgument("OptionalList", &mComplex_OptionalList); + AddArgument("NullableOptionalList", &mComplex_NullableOptionalList); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000010) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000010, mRequest); + } + +private: + chip::app::Clusters::TestCluster::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 @@ -6195,50 +8580,50 @@ class TestClusterSimpleStructEchoRequest : public ClusterCommand }; /* - * Command Test + * Command TimedInvokeRequest */ -class TestClusterTest : public ClusterCommand +class TestClusterTimedInvokeRequest : public ClusterCommand { public: - TestClusterTest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test", credsIssuerConfig) + TestClusterTimedInvokeRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("timed-invoke-request", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000012) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000012, mRequest); } private: - chip::app::Clusters::TestCluster::Commands::Test::Type mRequest; + chip::app::Clusters::TestCluster::Commands::TimedInvokeRequest::Type mRequest; }; /* - * Command TestAddArguments + * Command TestSimpleOptionalArgumentRequest */ -class TestClusterTestAddArguments : public ClusterCommand +class TestClusterTestSimpleOptionalArgumentRequest : public ClusterCommand { public: - TestClusterTestAddArguments(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-add-arguments", credsIssuerConfig) + TestClusterTestSimpleOptionalArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-simple-optional-argument-request", credsIssuerConfig) { - AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); - AddArgument("Arg2", 0, UINT8_MAX, &mRequest.arg2); + AddArgument("Arg1", 0, 1, &mRequest.arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000004) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000013) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000004, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000013, mRequest); } private: - chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type mRequest; + chip::app::Clusters::TestCluster::Commands::TestSimpleOptionalArgumentRequest::Type mRequest; }; /* @@ -6268,2407 +8653,2444 @@ class TestClusterTestEmitTestEventRequest : public ClusterCommand }; /* - * Command TestEnumsRequest + * Command TestEmitTestFabricScopedEventRequest */ -class TestClusterTestEnumsRequest : public ClusterCommand +class TestClusterTestEmitTestFabricScopedEventRequest : public ClusterCommand { public: - TestClusterTestEnumsRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-enums-request", credsIssuerConfig) + TestClusterTestEmitTestFabricScopedEventRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-emit-test-fabric-scoped-event-request", credsIssuerConfig) { - AddArgument("Arg1", 0, UINT16_MAX, &mRequest.arg1); - AddArgument("Arg2", 0, UINT8_MAX, &mRequest.arg2); + AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000E) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000015) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x0000000E, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000015, mRequest); } private: - chip::app::Clusters::TestCluster::Commands::TestEnumsRequest::Type mRequest; + chip::app::Clusters::TestCluster::Commands::TestEmitTestFabricScopedEventRequest::Type mRequest; }; -/* - * Command TestListInt8UArgumentRequest - */ -class TestClusterTestListInt8UArgumentRequest : public ClusterCommand +class WriteTestClusterBoolean : public WriteAttribute { public: - TestClusterTestListInt8UArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-list-int8uargument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + WriteTestClusterBoolean(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Boolean", credsIssuerConfig) { - AddArgument("Arg1", &mComplex_Arg1); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "boolean"); + AddArgument("attr-value", 0, 1, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterBoolean() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000A) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x0000000A, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000000, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type mRequest; - TypedComplexArgument> mComplex_Arg1; + bool mValue; }; -/* - * Command TestListInt8UReverseRequest - */ -class TestClusterTestListInt8UReverseRequest : public ClusterCommand +class WriteTestClusterBitmap8 : public WriteAttribute { public: - TestClusterTestListInt8UReverseRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-list-int8ureverse-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + WriteTestClusterBitmap8(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Bitmap8", credsIssuerConfig) { - AddArgument("Arg1", &mComplex_Arg1); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "bitmap8"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterBitmap8() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000D) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x0000000D, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000001, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type mRequest; - TypedComplexArgument> mComplex_Arg1; + uint8_t mValue; }; -/* - * Command TestListNestedStructListArgumentRequest - */ -class TestClusterTestListNestedStructListArgumentRequest : public ClusterCommand +class WriteTestClusterBitmap16 : public WriteAttribute { public: - TestClusterTestListNestedStructListArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-list-nested-struct-list-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + WriteTestClusterBitmap16(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Bitmap16", credsIssuerConfig) { - AddArgument("Arg1", &mComplex_Arg1); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "bitmap16"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterBitmap16() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000C) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x0000000C, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000002, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestListNestedStructListArgumentRequest::Type mRequest; - TypedComplexArgument> - mComplex_Arg1; + uint16_t mValue; }; -/* - * Command TestListStructArgumentRequest - */ -class TestClusterTestListStructArgumentRequest : public ClusterCommand +class WriteTestClusterBitmap32 : public WriteAttribute { public: - TestClusterTestListStructArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-list-struct-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + WriteTestClusterBitmap32(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Bitmap32", credsIssuerConfig) { - AddArgument("Arg1", &mComplex_Arg1); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "bitmap32"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterBitmap32() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000009) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000009, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000003, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestListStructArgumentRequest::Type mRequest; - TypedComplexArgument> - mComplex_Arg1; + uint32_t mValue; }; -/* - * Command TestNestedStructArgumentRequest - */ -class TestClusterTestNestedStructArgumentRequest : public ClusterCommand +class WriteTestClusterBitmap64 : public WriteAttribute { public: - TestClusterTestNestedStructArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-nested-struct-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + WriteTestClusterBitmap64(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Bitmap64", credsIssuerConfig) { - AddArgument("Arg1", &mComplex_Arg1); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "bitmap64"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterBitmap64() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000008) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000008, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000004, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestNestedStructArgumentRequest::Type mRequest; - TypedComplexArgument mComplex_Arg1; + uint64_t mValue; }; -/* - * Command TestNestedStructListArgumentRequest - */ -class TestClusterTestNestedStructListArgumentRequest : public ClusterCommand +class WriteTestClusterInt8u : public WriteAttribute { public: - TestClusterTestNestedStructListArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-nested-struct-list-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + WriteTestClusterInt8u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int8u", credsIssuerConfig) { - AddArgument("Arg1", &mComplex_Arg1); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "int8u"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterInt8u() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000B) on endpoint %" PRIu16, endpointId); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000005, mValue); + } - return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x0000000B, mRequest); +private: + uint8_t mValue; +}; + +class WriteTestClusterInt16u : public WriteAttribute +{ +public: + WriteTestClusterInt16u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int16u", credsIssuerConfig) + { + AddArgument("attr-name", "int16u"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteTestClusterInt16u() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000006, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestNestedStructListArgumentRequest::Type mRequest; - TypedComplexArgument mComplex_Arg1; + uint16_t mValue; }; -/* - * Command TestNotHandled - */ -class TestClusterTestNotHandled : public ClusterCommand +class WriteTestClusterInt24u : public WriteAttribute { public: - TestClusterTestNotHandled(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-not-handled", credsIssuerConfig) + WriteTestClusterInt24u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int24u", credsIssuerConfig) { - ClusterCommand::AddArguments(); + AddArgument("attr-name", "int24u"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterInt24u() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000001) on endpoint %" PRIu16, endpointId); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000007, mValue); + } - return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000001, mRequest); +private: + uint32_t mValue; +}; + +class WriteTestClusterInt32u : public WriteAttribute +{ +public: + WriteTestClusterInt32u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int32u", credsIssuerConfig) + { + AddArgument("attr-name", "int32u"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteTestClusterInt32u() {} + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000008, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestNotHandled::Type mRequest; + uint32_t mValue; }; -/* - * Command TestNullableOptionalRequest - */ -class TestClusterTestNullableOptionalRequest : public ClusterCommand +class WriteTestClusterInt40u : public WriteAttribute { public: - TestClusterTestNullableOptionalRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-nullable-optional-request", credsIssuerConfig) + WriteTestClusterInt40u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int40u", credsIssuerConfig) { - AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "int40u"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterInt40u() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000F) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x0000000F, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000009, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type mRequest; + uint64_t mValue; }; -/* - * Command TestSimpleOptionalArgumentRequest - */ -class TestClusterTestSimpleOptionalArgumentRequest : public ClusterCommand +class WriteTestClusterInt48u : public WriteAttribute { public: - TestClusterTestSimpleOptionalArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-simple-optional-argument-request", credsIssuerConfig) + WriteTestClusterInt48u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int48u", credsIssuerConfig) { - AddArgument("Arg1", 0, 1, &mRequest.arg1); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "int48u"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterInt48u() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000013) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000013, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000000A, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestSimpleOptionalArgumentRequest::Type mRequest; + uint64_t mValue; }; -/* - * Command TestSpecific - */ -class TestClusterTestSpecific : public ClusterCommand +class WriteTestClusterInt56u : public WriteAttribute { public: - TestClusterTestSpecific(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-specific", credsIssuerConfig) + WriteTestClusterInt56u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int56u", credsIssuerConfig) { - ClusterCommand::AddArguments(); + AddArgument("attr-name", "int56u"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterInt56u() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000002) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000002, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000000B, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestSpecific::Type mRequest; + uint64_t mValue; }; -/* - * Command TestStructArgumentRequest - */ -class TestClusterTestStructArgumentRequest : public ClusterCommand +class WriteTestClusterInt64u : public WriteAttribute { public: - TestClusterTestStructArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-struct-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + WriteTestClusterInt64u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int64u", credsIssuerConfig) { - AddArgument("Arg1", &mComplex_Arg1); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "int64u"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterInt64u() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000007) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000007, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000000C, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type mRequest; - TypedComplexArgument mComplex_Arg1; + uint64_t mValue; }; -/* - * Command TestUnknownCommand - */ -class TestClusterTestUnknownCommand : public ClusterCommand +class WriteTestClusterInt8s : public WriteAttribute { public: - TestClusterTestUnknownCommand(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-unknown-command", credsIssuerConfig) + WriteTestClusterInt8s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int8s", credsIssuerConfig) { - ClusterCommand::AddArguments(); + AddArgument("attr-name", "int8s"); + AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterInt8s() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000003) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000003, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000000D, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestUnknownCommand::Type mRequest; + int8_t mValue; }; -/* - * Command TimedInvokeRequest - */ -class TestClusterTimedInvokeRequest : public ClusterCommand +class WriteTestClusterInt16s : public WriteAttribute { public: - TestClusterTimedInvokeRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("timed-invoke-request", credsIssuerConfig) + WriteTestClusterInt16s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int16s", credsIssuerConfig) { - ClusterCommand::AddArguments(); + AddArgument("attr-name", "int16s"); + AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterInt16s() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000012) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x0000050F, 0x00000012, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000000E, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TimedInvokeRequest::Type mRequest; + int16_t mValue; }; -class WriteTestClusterBoolean : public WriteAttribute +class WriteTestClusterInt24s : public WriteAttribute { public: - WriteTestClusterBoolean(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Boolean", credsIssuerConfig) + WriteTestClusterInt24s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int24s", credsIssuerConfig) { - AddArgument("attr-name", "boolean"); - AddArgument("attr-value", 0, 1, &mValue); + AddArgument("attr-name", "int24s"); + AddArgument("attr-value", INT32_MIN, INT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterBoolean() {} + ~WriteTestClusterInt24s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000000, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000000F, mValue); } private: - bool mValue; + int32_t mValue; }; -class WriteTestClusterBitmap8 : public WriteAttribute +class WriteTestClusterInt32s : public WriteAttribute { public: - WriteTestClusterBitmap8(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Bitmap8", credsIssuerConfig) + WriteTestClusterInt32s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int32s", credsIssuerConfig) { - AddArgument("attr-name", "bitmap8"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "int32s"); + AddArgument("attr-value", INT32_MIN, INT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterBitmap8() {} + ~WriteTestClusterInt32s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000001, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000010, mValue); } private: - uint8_t mValue; + int32_t mValue; }; -class WriteTestClusterBitmap16 : public WriteAttribute +class WriteTestClusterInt40s : public WriteAttribute { public: - WriteTestClusterBitmap16(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Bitmap16", credsIssuerConfig) + WriteTestClusterInt40s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int40s", credsIssuerConfig) { - AddArgument("attr-name", "bitmap16"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "int40s"); + AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterBitmap16() {} + ~WriteTestClusterInt40s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000002, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000011, mValue); } private: - uint16_t mValue; + int64_t mValue; }; -class WriteTestClusterBitmap32 : public WriteAttribute +class WriteTestClusterInt48s : public WriteAttribute { public: - WriteTestClusterBitmap32(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Bitmap32", credsIssuerConfig) + WriteTestClusterInt48s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int48s", credsIssuerConfig) { - AddArgument("attr-name", "bitmap32"); - AddArgument("attr-value", 0, UINT32_MAX, &mValue); + AddArgument("attr-name", "int48s"); + AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterBitmap32() {} + ~WriteTestClusterInt48s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000003, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000012, mValue); } private: - uint32_t mValue; + int64_t mValue; }; -class WriteTestClusterBitmap64 : public WriteAttribute +class WriteTestClusterInt56s : public WriteAttribute { public: - WriteTestClusterBitmap64(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Bitmap64", credsIssuerConfig) + WriteTestClusterInt56s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int56s", credsIssuerConfig) { - AddArgument("attr-name", "bitmap64"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "int56s"); + AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterBitmap64() {} + ~WriteTestClusterInt56s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000004, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000013, mValue); } private: - uint64_t mValue; + int64_t mValue; }; -class WriteTestClusterInt8u : public WriteAttribute +class WriteTestClusterInt64s : public WriteAttribute { public: - WriteTestClusterInt8u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int8u", credsIssuerConfig) + WriteTestClusterInt64s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int64s", credsIssuerConfig) { - AddArgument("attr-name", "int8u"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "int64s"); + AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt8u() {} + ~WriteTestClusterInt64s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000005, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000014, mValue); } private: - uint8_t mValue; + int64_t mValue; }; -class WriteTestClusterInt16u : public WriteAttribute +class WriteTestClusterEnum8 : public WriteAttribute { public: - WriteTestClusterInt16u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int16u", credsIssuerConfig) + WriteTestClusterEnum8(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Enum8", credsIssuerConfig) { - AddArgument("attr-name", "int16u"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "enum8"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt16u() {} + ~WriteTestClusterEnum8() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000006, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000015, mValue); } private: - uint16_t mValue; + uint8_t mValue; }; -class WriteTestClusterInt24u : public WriteAttribute +class WriteTestClusterEnum16 : public WriteAttribute { public: - WriteTestClusterInt24u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int24u", credsIssuerConfig) + WriteTestClusterEnum16(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Enum16", credsIssuerConfig) { - AddArgument("attr-name", "int24u"); - AddArgument("attr-value", 0, UINT32_MAX, &mValue); + AddArgument("attr-name", "enum16"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt24u() {} + ~WriteTestClusterEnum16() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000007, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000016, mValue); } private: - uint32_t mValue; + uint16_t mValue; }; -class WriteTestClusterInt32u : public WriteAttribute +class WriteTestClusterFloatSingle : public WriteAttribute { public: - WriteTestClusterInt32u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int32u", credsIssuerConfig) + WriteTestClusterFloatSingle(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("FloatSingle", credsIssuerConfig) { - AddArgument("attr-name", "int32u"); - AddArgument("attr-value", 0, UINT32_MAX, &mValue); + AddArgument("attr-name", "float-single"); + AddArgument("attr-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt32u() {} + ~WriteTestClusterFloatSingle() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000008, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000017, mValue); } private: - uint32_t mValue; + float mValue; }; -class WriteTestClusterInt40u : public WriteAttribute +class WriteTestClusterFloatDouble : public WriteAttribute { public: - WriteTestClusterInt40u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int40u", credsIssuerConfig) + WriteTestClusterFloatDouble(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("FloatDouble", credsIssuerConfig) { - AddArgument("attr-name", "int40u"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "float-double"); + AddArgument("attr-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt40u() {} + ~WriteTestClusterFloatDouble() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000009, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000018, mValue); } private: - uint64_t mValue; + double mValue; }; -class WriteTestClusterInt48u : public WriteAttribute +class WriteTestClusterOctetString : public WriteAttribute { public: - WriteTestClusterInt48u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int48u", credsIssuerConfig) + WriteTestClusterOctetString(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("OctetString", credsIssuerConfig) { - AddArgument("attr-name", "int48u"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "octet-string"); + AddArgument("attr-value", &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt48u() {} + ~WriteTestClusterOctetString() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000000A, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000019, mValue); } private: - uint64_t mValue; + chip::ByteSpan mValue; }; -class WriteTestClusterInt56u : public WriteAttribute +class WriteTestClusterListInt8u : public WriteAttribute { public: - WriteTestClusterInt56u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int56u", credsIssuerConfig) + WriteTestClusterListInt8u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ListInt8u", credsIssuerConfig), mComplex(&mValue) { - AddArgument("attr-name", "int56u"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "list-int8u"); + AddArgument("attr-value", &mComplex); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt56u() {} + ~WriteTestClusterListInt8u() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000000B, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000001A, mValue); } private: - uint64_t mValue; + chip::app::DataModel::List mValue; + TypedComplexArgument> mComplex; }; -class WriteTestClusterInt64u : public WriteAttribute +class WriteTestClusterListOctetString : public WriteAttribute { public: - WriteTestClusterInt64u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int64u", credsIssuerConfig) + WriteTestClusterListOctetString(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ListOctetString", credsIssuerConfig), mComplex(&mValue) { - AddArgument("attr-name", "int64u"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "list-octet-string"); + AddArgument("attr-value", &mComplex); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt64u() {} + ~WriteTestClusterListOctetString() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000000C, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000001B, mValue); } private: - uint64_t mValue; + chip::app::DataModel::List mValue; + TypedComplexArgument> mComplex; }; -class WriteTestClusterInt8s : public WriteAttribute +class WriteTestClusterListStructOctetString : public WriteAttribute { public: - WriteTestClusterInt8s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int8s", credsIssuerConfig) + WriteTestClusterListStructOctetString(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ListStructOctetString", credsIssuerConfig), mComplex(&mValue) { - AddArgument("attr-name", "int8s"); - AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); + AddArgument("attr-name", "list-struct-octet-string"); + AddArgument("attr-value", &mComplex); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt8s() {} + ~WriteTestClusterListStructOctetString() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000000D, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000001C, mValue); } private: - int8_t mValue; + chip::app::DataModel::List mValue; + TypedComplexArgument> + mComplex; }; -class WriteTestClusterInt16s : public WriteAttribute +class WriteTestClusterLongOctetString : public WriteAttribute { public: - WriteTestClusterInt16s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int16s", credsIssuerConfig) + WriteTestClusterLongOctetString(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("LongOctetString", credsIssuerConfig) { - AddArgument("attr-name", "int16s"); - AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); + AddArgument("attr-name", "long-octet-string"); + AddArgument("attr-value", &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt16s() {} + ~WriteTestClusterLongOctetString() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000000E, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000001D, mValue); } private: - int16_t mValue; + chip::ByteSpan mValue; }; -class WriteTestClusterInt24s : public WriteAttribute +class WriteTestClusterCharString : public WriteAttribute { public: - WriteTestClusterInt24s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int24s", credsIssuerConfig) + WriteTestClusterCharString(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("CharString", credsIssuerConfig) { - AddArgument("attr-name", "int24s"); - AddArgument("attr-value", INT32_MIN, INT32_MAX, &mValue); + AddArgument("attr-name", "char-string"); + AddArgument("attr-value", &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt24s() {} + ~WriteTestClusterCharString() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000000F, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000001E, mValue); } private: - int32_t mValue; + chip::CharSpan mValue; }; -class WriteTestClusterInt32s : public WriteAttribute +class WriteTestClusterLongCharString : public WriteAttribute { public: - WriteTestClusterInt32s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int32s", credsIssuerConfig) + WriteTestClusterLongCharString(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("LongCharString", credsIssuerConfig) { - AddArgument("attr-name", "int32s"); - AddArgument("attr-value", INT32_MIN, INT32_MAX, &mValue); + AddArgument("attr-name", "long-char-string"); + AddArgument("attr-value", &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt32s() {} + ~WriteTestClusterLongCharString() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000010, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000001F, mValue); } private: - int32_t mValue; + chip::CharSpan mValue; }; -class WriteTestClusterInt40s : public WriteAttribute +class WriteTestClusterEpochUs : public WriteAttribute { public: - WriteTestClusterInt40s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int40s", credsIssuerConfig) + WriteTestClusterEpochUs(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("EpochUs", credsIssuerConfig) { - AddArgument("attr-name", "int40s"); - AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); + AddArgument("attr-name", "epoch-us"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt40s() {} + ~WriteTestClusterEpochUs() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000011, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000020, mValue); } private: - int64_t mValue; + uint64_t mValue; }; -class WriteTestClusterInt48s : public WriteAttribute +class WriteTestClusterEpochS : public WriteAttribute { public: - WriteTestClusterInt48s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int48s", credsIssuerConfig) + WriteTestClusterEpochS(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("EpochS", credsIssuerConfig) { - AddArgument("attr-name", "int48s"); - AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); + AddArgument("attr-name", "epoch-s"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt48s() {} + ~WriteTestClusterEpochS() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000012, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000021, mValue); } private: - int64_t mValue; + uint32_t mValue; }; -class WriteTestClusterInt56s : public WriteAttribute +class WriteTestClusterVendorId : public WriteAttribute { public: - WriteTestClusterInt56s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int56s", credsIssuerConfig) + WriteTestClusterVendorId(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("VendorId", credsIssuerConfig) { - AddArgument("attr-name", "int56s"); - AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); + AddArgument("attr-name", "vendor-id"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt56s() {} + ~WriteTestClusterVendorId() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000013, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000022, mValue); } private: - int64_t mValue; + chip::VendorId mValue; }; -class WriteTestClusterInt64s : public WriteAttribute +class WriteTestClusterListNullablesAndOptionalsStruct : public WriteAttribute { public: - WriteTestClusterInt64s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int64s", credsIssuerConfig) + WriteTestClusterListNullablesAndOptionalsStruct(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ListNullablesAndOptionalsStruct", credsIssuerConfig), mComplex(&mValue) { - AddArgument("attr-name", "int64s"); - AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); + AddArgument("attr-name", "list-nullables-and-optionals-struct"); + AddArgument("attr-value", &mComplex); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt64s() {} + ~WriteTestClusterListNullablesAndOptionalsStruct() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000014, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000023, mValue); } private: - int64_t mValue; + chip::app::DataModel::List mValue; + TypedComplexArgument< + chip::app::DataModel::List> + mComplex; }; -class WriteTestClusterEnum8 : public WriteAttribute +class WriteTestClusterEnumAttr : public WriteAttribute { public: - WriteTestClusterEnum8(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Enum8", credsIssuerConfig) + WriteTestClusterEnumAttr(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("EnumAttr", credsIssuerConfig) { - AddArgument("attr-name", "enum8"); + AddArgument("attr-name", "enum-attr"); AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterEnum8() {} + ~WriteTestClusterEnumAttr() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000015, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000024, mValue); } private: - uint8_t mValue; + chip::app::Clusters::TestCluster::SimpleEnum mValue; }; -class WriteTestClusterEnum16 : public WriteAttribute +class WriteTestClusterStructAttr : public WriteAttribute { public: - WriteTestClusterEnum16(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Enum16", credsIssuerConfig) + WriteTestClusterStructAttr(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("StructAttr", credsIssuerConfig), mComplex(&mValue) { - AddArgument("attr-name", "enum16"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "struct-attr"); + AddArgument("attr-value", &mComplex); WriteAttribute::AddArguments(); } - ~WriteTestClusterEnum16() {} + ~WriteTestClusterStructAttr() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000016, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000025, mValue); } private: - uint16_t mValue; + chip::app::Clusters::TestCluster::Structs::SimpleStruct::Type mValue; + TypedComplexArgument mComplex; }; -class WriteTestClusterFloatSingle : public WriteAttribute +class WriteTestClusterRangeRestrictedInt8u : public WriteAttribute { public: - WriteTestClusterFloatSingle(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("FloatSingle", credsIssuerConfig) + WriteTestClusterRangeRestrictedInt8u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RangeRestrictedInt8u", credsIssuerConfig) { - AddArgument("attr-name", "float-single"); - AddArgument("attr-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), &mValue); + AddArgument("attr-name", "range-restricted-int8u"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterFloatSingle() {} + ~WriteTestClusterRangeRestrictedInt8u() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000017, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000026, mValue); } private: - float mValue; + uint8_t mValue; }; -class WriteTestClusterFloatDouble : public WriteAttribute +class WriteTestClusterRangeRestrictedInt8s : public WriteAttribute { public: - WriteTestClusterFloatDouble(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("FloatDouble", credsIssuerConfig) + WriteTestClusterRangeRestrictedInt8s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RangeRestrictedInt8s", credsIssuerConfig) { - AddArgument("attr-name", "float-double"); - AddArgument("attr-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), &mValue); + AddArgument("attr-name", "range-restricted-int8s"); + AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterFloatDouble() {} + ~WriteTestClusterRangeRestrictedInt8s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000018, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000027, mValue); } private: - double mValue; + int8_t mValue; }; -class WriteTestClusterOctetString : public WriteAttribute +class WriteTestClusterRangeRestrictedInt16u : public WriteAttribute { public: - WriteTestClusterOctetString(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("OctetString", credsIssuerConfig) + WriteTestClusterRangeRestrictedInt16u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RangeRestrictedInt16u", credsIssuerConfig) { - AddArgument("attr-name", "octet-string"); - AddArgument("attr-value", &mValue); + AddArgument("attr-name", "range-restricted-int16u"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterOctetString() {} + ~WriteTestClusterRangeRestrictedInt16u() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000019, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000028, mValue); } private: - chip::ByteSpan mValue; + uint16_t mValue; }; -class WriteTestClusterListInt8u : public WriteAttribute +class WriteTestClusterRangeRestrictedInt16s : public WriteAttribute { public: - WriteTestClusterListInt8u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("ListInt8u", credsIssuerConfig), mComplex(&mValue) + WriteTestClusterRangeRestrictedInt16s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RangeRestrictedInt16s", credsIssuerConfig) { - AddArgument("attr-name", "list-int8u"); - AddArgument("attr-value", &mComplex); + AddArgument("attr-name", "range-restricted-int16s"); + AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterListInt8u() {} + ~WriteTestClusterRangeRestrictedInt16s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000001A, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000029, mValue); } private: - chip::app::DataModel::List mValue; - TypedComplexArgument> mComplex; + int16_t mValue; }; -class WriteTestClusterListOctetString : public WriteAttribute +class WriteTestClusterTimedWriteBoolean : public WriteAttribute { public: - WriteTestClusterListOctetString(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("ListOctetString", credsIssuerConfig), mComplex(&mValue) + WriteTestClusterTimedWriteBoolean(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("TimedWriteBoolean", credsIssuerConfig) { - AddArgument("attr-name", "list-octet-string"); - AddArgument("attr-value", &mComplex); + AddArgument("attr-name", "timed-write-boolean"); + AddArgument("attr-value", 0, 1, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterListOctetString() {} + ~WriteTestClusterTimedWriteBoolean() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000001B, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000030, mValue); } private: - chip::app::DataModel::List mValue; - TypedComplexArgument> mComplex; + bool mValue; }; -class WriteTestClusterListStructOctetString : public WriteAttribute +class WriteTestClusterGeneralErrorBoolean : public WriteAttribute { public: - WriteTestClusterListStructOctetString(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("ListStructOctetString", credsIssuerConfig), mComplex(&mValue) + WriteTestClusterGeneralErrorBoolean(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("GeneralErrorBoolean", credsIssuerConfig) { - AddArgument("attr-name", "list-struct-octet-string"); - AddArgument("attr-value", &mComplex); + AddArgument("attr-name", "general-error-boolean"); + AddArgument("attr-value", 0, 1, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterListStructOctetString() {} + ~WriteTestClusterGeneralErrorBoolean() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000001C, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000031, mValue); } private: - chip::app::DataModel::List mValue; - TypedComplexArgument> - mComplex; + bool mValue; }; -class WriteTestClusterLongOctetString : public WriteAttribute +class WriteTestClusterClusterErrorBoolean : public WriteAttribute { public: - WriteTestClusterLongOctetString(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("LongOctetString", credsIssuerConfig) + WriteTestClusterClusterErrorBoolean(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ClusterErrorBoolean", credsIssuerConfig) { - AddArgument("attr-name", "long-octet-string"); - AddArgument("attr-value", &mValue); + AddArgument("attr-name", "cluster-error-boolean"); + AddArgument("attr-value", 0, 1, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterLongOctetString() {} + ~WriteTestClusterClusterErrorBoolean() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000001D, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000032, mValue); } private: - chip::ByteSpan mValue; + bool mValue; }; -class WriteTestClusterCharString : public WriteAttribute +class WriteTestClusterUnsupported : public WriteAttribute { public: - WriteTestClusterCharString(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("CharString", credsIssuerConfig) + WriteTestClusterUnsupported(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Unsupported", credsIssuerConfig) { - AddArgument("attr-name", "char-string"); - AddArgument("attr-value", &mValue); + AddArgument("attr-name", "unsupported"); + AddArgument("attr-value", 0, 1, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterCharString() {} + ~WriteTestClusterUnsupported() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000001E, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x000000FF, mValue); } private: - chip::CharSpan mValue; + bool mValue; }; -class WriteTestClusterLongCharString : public WriteAttribute +class WriteTestClusterNullableBoolean : public WriteAttribute { public: - WriteTestClusterLongCharString(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("LongCharString", credsIssuerConfig) + WriteTestClusterNullableBoolean(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableBoolean", credsIssuerConfig) { - AddArgument("attr-name", "long-char-string"); - AddArgument("attr-value", &mValue); + AddArgument("attr-name", "nullable-boolean"); + AddArgument("attr-value", 0, 1, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterLongCharString() {} + ~WriteTestClusterNullableBoolean() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000001F, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008000, mValue); } private: - chip::CharSpan mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterEpochUs : public WriteAttribute +class WriteTestClusterNullableBitmap8 : public WriteAttribute { public: - WriteTestClusterEpochUs(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("EpochUs", credsIssuerConfig) + WriteTestClusterNullableBitmap8(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableBitmap8", credsIssuerConfig) { - AddArgument("attr-name", "epoch-us"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "nullable-bitmap8"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterEpochUs() {} + ~WriteTestClusterNullableBitmap8() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000020, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008001, mValue); } private: - uint64_t mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterEpochS : public WriteAttribute +class WriteTestClusterNullableBitmap16 : public WriteAttribute { public: - WriteTestClusterEpochS(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("EpochS", credsIssuerConfig) + WriteTestClusterNullableBitmap16(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableBitmap16", credsIssuerConfig) { - AddArgument("attr-name", "epoch-s"); - AddArgument("attr-value", 0, UINT32_MAX, &mValue); + AddArgument("attr-name", "nullable-bitmap16"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterEpochS() {} + ~WriteTestClusterNullableBitmap16() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000021, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008002, mValue); } private: - uint32_t mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterVendorId : public WriteAttribute +class WriteTestClusterNullableBitmap32 : public WriteAttribute { public: - WriteTestClusterVendorId(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("VendorId", credsIssuerConfig) + WriteTestClusterNullableBitmap32(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableBitmap32", credsIssuerConfig) { - AddArgument("attr-name", "vendor-id"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "nullable-bitmap32"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterVendorId() {} + ~WriteTestClusterNullableBitmap32() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000022, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008003, mValue); } private: - chip::VendorId mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterListNullablesAndOptionalsStruct : public WriteAttribute +class WriteTestClusterNullableBitmap64 : public WriteAttribute { public: - WriteTestClusterListNullablesAndOptionalsStruct(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("ListNullablesAndOptionalsStruct", credsIssuerConfig), mComplex(&mValue) + WriteTestClusterNullableBitmap64(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableBitmap64", credsIssuerConfig) { - AddArgument("attr-name", "list-nullables-and-optionals-struct"); - AddArgument("attr-value", &mComplex); + AddArgument("attr-name", "nullable-bitmap64"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterListNullablesAndOptionalsStruct() {} + ~WriteTestClusterNullableBitmap64() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000023, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008004, mValue); } private: - chip::app::DataModel::List mValue; - TypedComplexArgument< - chip::app::DataModel::List> - mComplex; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterEnumAttr : public WriteAttribute +class WriteTestClusterNullableInt8u : public WriteAttribute { public: - WriteTestClusterEnumAttr(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("EnumAttr", credsIssuerConfig) + WriteTestClusterNullableInt8u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("NullableInt8u", credsIssuerConfig) { - AddArgument("attr-name", "enum-attr"); + AddArgument("attr-name", "nullable-int8u"); AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterEnumAttr() {} + ~WriteTestClusterNullableInt8u() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000024, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008005, mValue); } private: - chip::app::Clusters::TestCluster::SimpleEnum mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterStructAttr : public WriteAttribute +class WriteTestClusterNullableInt16u : public WriteAttribute { public: - WriteTestClusterStructAttr(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("StructAttr", credsIssuerConfig), mComplex(&mValue) + WriteTestClusterNullableInt16u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt16u", credsIssuerConfig) { - AddArgument("attr-name", "struct-attr"); - AddArgument("attr-value", &mComplex); + AddArgument("attr-name", "nullable-int16u"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterStructAttr() {} + ~WriteTestClusterNullableInt16u() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000025, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008006, mValue); } private: - chip::app::Clusters::TestCluster::Structs::SimpleStruct::Type mValue; - TypedComplexArgument mComplex; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterRangeRestrictedInt8u : public WriteAttribute +class WriteTestClusterNullableInt24u : public WriteAttribute { public: - WriteTestClusterRangeRestrictedInt8u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("RangeRestrictedInt8u", credsIssuerConfig) + WriteTestClusterNullableInt24u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt24u", credsIssuerConfig) { - AddArgument("attr-name", "range-restricted-int8u"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "nullable-int24u"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterRangeRestrictedInt8u() {} + ~WriteTestClusterNullableInt24u() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000026, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008007, mValue); } private: - uint8_t mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterRangeRestrictedInt8s : public WriteAttribute +class WriteTestClusterNullableInt32u : public WriteAttribute { public: - WriteTestClusterRangeRestrictedInt8s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("RangeRestrictedInt8s", credsIssuerConfig) + WriteTestClusterNullableInt32u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt32u", credsIssuerConfig) { - AddArgument("attr-name", "range-restricted-int8s"); - AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); + AddArgument("attr-name", "nullable-int32u"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterRangeRestrictedInt8s() {} + ~WriteTestClusterNullableInt32u() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000027, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008008, mValue); } private: - int8_t mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterRangeRestrictedInt16u : public WriteAttribute +class WriteTestClusterNullableInt40u : public WriteAttribute { public: - WriteTestClusterRangeRestrictedInt16u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("RangeRestrictedInt16u", credsIssuerConfig) + WriteTestClusterNullableInt40u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt40u", credsIssuerConfig) { - AddArgument("attr-name", "range-restricted-int16u"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "nullable-int40u"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterRangeRestrictedInt16u() {} + ~WriteTestClusterNullableInt40u() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000028, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008009, mValue); } private: - uint16_t mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterRangeRestrictedInt16s : public WriteAttribute +class WriteTestClusterNullableInt48u : public WriteAttribute { public: - WriteTestClusterRangeRestrictedInt16s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("RangeRestrictedInt16s", credsIssuerConfig) + WriteTestClusterNullableInt48u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt48u", credsIssuerConfig) { - AddArgument("attr-name", "range-restricted-int16s"); - AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); + AddArgument("attr-name", "nullable-int48u"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterRangeRestrictedInt16s() {} + ~WriteTestClusterNullableInt48u() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000029, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000800A, mValue); } private: - int16_t mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterTimedWriteBoolean : public WriteAttribute +class WriteTestClusterNullableInt56u : public WriteAttribute { public: - WriteTestClusterTimedWriteBoolean(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("TimedWriteBoolean", credsIssuerConfig) - { - AddArgument("attr-name", "timed-write-boolean"); - AddArgument("attr-value", 0, 1, &mValue); + WriteTestClusterNullableInt56u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt56u", credsIssuerConfig) + { + AddArgument("attr-name", "nullable-int56u"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterTimedWriteBoolean() {} + ~WriteTestClusterNullableInt56u() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000030, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000800B, mValue); } private: - bool mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterGeneralErrorBoolean : public WriteAttribute +class WriteTestClusterNullableInt64u : public WriteAttribute { public: - WriteTestClusterGeneralErrorBoolean(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("GeneralErrorBoolean", credsIssuerConfig) + WriteTestClusterNullableInt64u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt64u", credsIssuerConfig) { - AddArgument("attr-name", "general-error-boolean"); - AddArgument("attr-value", 0, 1, &mValue); + AddArgument("attr-name", "nullable-int64u"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterGeneralErrorBoolean() {} + ~WriteTestClusterNullableInt64u() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000031, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000800C, mValue); } private: - bool mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterClusterErrorBoolean : public WriteAttribute +class WriteTestClusterNullableInt8s : public WriteAttribute { public: - WriteTestClusterClusterErrorBoolean(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("ClusterErrorBoolean", credsIssuerConfig) + WriteTestClusterNullableInt8s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("NullableInt8s", credsIssuerConfig) { - AddArgument("attr-name", "cluster-error-boolean"); - AddArgument("attr-value", 0, 1, &mValue); + AddArgument("attr-name", "nullable-int8s"); + AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterClusterErrorBoolean() {} + ~WriteTestClusterNullableInt8s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00000032, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000800D, mValue); } private: - bool mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterUnsupported : public WriteAttribute +class WriteTestClusterNullableInt16s : public WriteAttribute { public: - WriteTestClusterUnsupported(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Unsupported", credsIssuerConfig) + WriteTestClusterNullableInt16s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt16s", credsIssuerConfig) { - AddArgument("attr-name", "unsupported"); - AddArgument("attr-value", 0, 1, &mValue); + AddArgument("attr-name", "nullable-int16s"); + AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterUnsupported() {} + ~WriteTestClusterNullableInt16s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x000000FF, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000800E, mValue); } private: - bool mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableBoolean : public WriteAttribute +class WriteTestClusterNullableInt24s : public WriteAttribute { public: - WriteTestClusterNullableBoolean(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableBoolean", credsIssuerConfig) + WriteTestClusterNullableInt24s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt24s", credsIssuerConfig) { - AddArgument("attr-name", "nullable-boolean"); - AddArgument("attr-value", 0, 1, &mValue); + AddArgument("attr-name", "nullable-int24s"); + AddArgument("attr-value", INT32_MIN, INT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableBoolean() {} + ~WriteTestClusterNullableInt24s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008000, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000800F, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableBitmap8 : public WriteAttribute +class WriteTestClusterNullableInt32s : public WriteAttribute { public: - WriteTestClusterNullableBitmap8(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableBitmap8", credsIssuerConfig) + WriteTestClusterNullableInt32s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt32s", credsIssuerConfig) { - AddArgument("attr-name", "nullable-bitmap8"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "nullable-int32s"); + AddArgument("attr-value", INT32_MIN, INT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableBitmap8() {} + ~WriteTestClusterNullableInt32s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008001, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008010, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableBitmap16 : public WriteAttribute +class WriteTestClusterNullableInt40s : public WriteAttribute { public: - WriteTestClusterNullableBitmap16(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableBitmap16", credsIssuerConfig) + WriteTestClusterNullableInt40s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt40s", credsIssuerConfig) { - AddArgument("attr-name", "nullable-bitmap16"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "nullable-int40s"); + AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableBitmap16() {} + ~WriteTestClusterNullableInt40s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008002, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008011, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableBitmap32 : public WriteAttribute +class WriteTestClusterNullableInt48s : public WriteAttribute { public: - WriteTestClusterNullableBitmap32(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableBitmap32", credsIssuerConfig) + WriteTestClusterNullableInt48s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt48s", credsIssuerConfig) { - AddArgument("attr-name", "nullable-bitmap32"); - AddArgument("attr-value", 0, UINT32_MAX, &mValue); + AddArgument("attr-name", "nullable-int48s"); + AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableBitmap32() {} + ~WriteTestClusterNullableInt48s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008003, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008012, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableBitmap64 : public WriteAttribute +class WriteTestClusterNullableInt56s : public WriteAttribute { public: - WriteTestClusterNullableBitmap64(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableBitmap64", credsIssuerConfig) + WriteTestClusterNullableInt56s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt56s", credsIssuerConfig) { - AddArgument("attr-name", "nullable-bitmap64"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "nullable-int56s"); + AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableBitmap64() {} + ~WriteTestClusterNullableInt56s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008004, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008013, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableInt8u : public WriteAttribute +class WriteTestClusterNullableInt64s : public WriteAttribute { public: - WriteTestClusterNullableInt8u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("NullableInt8u", credsIssuerConfig) + WriteTestClusterNullableInt64s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt64s", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int8u"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "nullable-int64s"); + AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt8u() {} + ~WriteTestClusterNullableInt64s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008005, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008014, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableInt16u : public WriteAttribute +class WriteTestClusterNullableEnum8 : public WriteAttribute { public: - WriteTestClusterNullableInt16u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt16u", credsIssuerConfig) + WriteTestClusterNullableEnum8(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("NullableEnum8", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int16u"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "nullable-enum8"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt16u() {} + ~WriteTestClusterNullableEnum8() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008006, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008015, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableInt24u : public WriteAttribute +class WriteTestClusterNullableEnum16 : public WriteAttribute { public: - WriteTestClusterNullableInt24u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt24u", credsIssuerConfig) + WriteTestClusterNullableEnum16(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableEnum16", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int24u"); - AddArgument("attr-value", 0, UINT32_MAX, &mValue); + AddArgument("attr-name", "nullable-enum16"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt24u() {} + ~WriteTestClusterNullableEnum16() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008007, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008016, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableInt32u : public WriteAttribute +class WriteTestClusterNullableFloatSingle : public WriteAttribute { public: - WriteTestClusterNullableInt32u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt32u", credsIssuerConfig) + WriteTestClusterNullableFloatSingle(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableFloatSingle", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int32u"); - AddArgument("attr-value", 0, UINT32_MAX, &mValue); + AddArgument("attr-name", "nullable-float-single"); + AddArgument("attr-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt32u() {} + ~WriteTestClusterNullableFloatSingle() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008008, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008017, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableInt40u : public WriteAttribute +class WriteTestClusterNullableFloatDouble : public WriteAttribute { public: - WriteTestClusterNullableInt40u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt40u", credsIssuerConfig) + WriteTestClusterNullableFloatDouble(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableFloatDouble", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int40u"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "nullable-float-double"); + AddArgument("attr-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt40u() {} + ~WriteTestClusterNullableFloatDouble() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008009, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008018, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableInt48u : public WriteAttribute +class WriteTestClusterNullableOctetString : public WriteAttribute { public: - WriteTestClusterNullableInt48u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt48u", credsIssuerConfig) + WriteTestClusterNullableOctetString(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableOctetString", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int48u"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "nullable-octet-string"); + AddArgument("attr-value", &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt48u() {} + ~WriteTestClusterNullableOctetString() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000800A, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008019, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableInt56u : public WriteAttribute +class WriteTestClusterNullableCharString : public WriteAttribute { public: - WriteTestClusterNullableInt56u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt56u", credsIssuerConfig) + WriteTestClusterNullableCharString(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableCharString", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int56u"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "nullable-char-string"); + AddArgument("attr-value", &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt56u() {} + ~WriteTestClusterNullableCharString() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000800B, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000801E, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableInt64u : public WriteAttribute +class WriteTestClusterNullableEnumAttr : public WriteAttribute { public: - WriteTestClusterNullableInt64u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt64u", credsIssuerConfig) + WriteTestClusterNullableEnumAttr(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableEnumAttr", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int64u"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "nullable-enum-attr"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt64u() {} + ~WriteTestClusterNullableEnumAttr() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000800C, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008024, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableInt8s : public WriteAttribute +class WriteTestClusterNullableStruct : public WriteAttribute { public: - WriteTestClusterNullableInt8s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("NullableInt8s", credsIssuerConfig) + WriteTestClusterNullableStruct(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableStruct", credsIssuerConfig), mComplex(&mValue) { - AddArgument("attr-name", "nullable-int8s"); - AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); + AddArgument("attr-name", "nullable-struct"); + AddArgument("attr-value", &mComplex); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt8s() {} + ~WriteTestClusterNullableStruct() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000800D, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008025, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; + TypedComplexArgument> mComplex; }; -class WriteTestClusterNullableInt16s : public WriteAttribute +class WriteTestClusterNullableRangeRestrictedInt8u : public WriteAttribute { public: - WriteTestClusterNullableInt16s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt16s", credsIssuerConfig) + WriteTestClusterNullableRangeRestrictedInt8u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableRangeRestrictedInt8u", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int16s"); - AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); + AddArgument("attr-name", "nullable-range-restricted-int8u"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt16s() {} + ~WriteTestClusterNullableRangeRestrictedInt8u() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000800E, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008026, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableInt24s : public WriteAttribute +class WriteTestClusterNullableRangeRestrictedInt8s : public WriteAttribute { public: - WriteTestClusterNullableInt24s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt24s", credsIssuerConfig) + WriteTestClusterNullableRangeRestrictedInt8s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableRangeRestrictedInt8s", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int24s"); - AddArgument("attr-value", INT32_MIN, INT32_MAX, &mValue); + AddArgument("attr-name", "nullable-range-restricted-int8s"); + AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt24s() {} + ~WriteTestClusterNullableRangeRestrictedInt8s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000800F, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008027, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableInt32s : public WriteAttribute +class WriteTestClusterNullableRangeRestrictedInt16u : public WriteAttribute { public: - WriteTestClusterNullableInt32s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt32s", credsIssuerConfig) + WriteTestClusterNullableRangeRestrictedInt16u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableRangeRestrictedInt16u", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int32s"); - AddArgument("attr-value", INT32_MIN, INT32_MAX, &mValue); + AddArgument("attr-name", "nullable-range-restricted-int16u"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt32s() {} + ~WriteTestClusterNullableRangeRestrictedInt16u() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008010, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008028, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableInt40s : public WriteAttribute +class WriteTestClusterNullableRangeRestrictedInt16s : public WriteAttribute { public: - WriteTestClusterNullableInt40s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt40s", credsIssuerConfig) + WriteTestClusterNullableRangeRestrictedInt16s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableRangeRestrictedInt16s", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int40s"); - AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); + AddArgument("attr-name", "nullable-range-restricted-int16s"); + AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt40s() {} + ~WriteTestClusterNullableRangeRestrictedInt16s() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008011, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008029, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableInt48s : public WriteAttribute +/*----------------------------------------------------------------------------*\ +| Cluster Thermostat | 0x0201 | +|------------------------------------------------------------------------------| +| Commands: | | +| * SetpointRaiseLower | 0x00 | +| * SetWeeklySchedule | 0x01 | +| * GetWeeklySchedule | 0x02 | +| * ClearWeeklySchedule | 0x03 | +| * GetRelayStatusLog | 0x04 | +|------------------------------------------------------------------------------| +| 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 | +| * AlarmMask | 0x001D | +| * ThermostatRunningMode | 0x001E | +| * StartOfWeek | 0x0020 | +| * NumberOfWeeklyTransitions | 0x0021 | +| * NumberOfDailyTransitions | 0x0022 | +| * TemperatureSetpointHold | 0x0023 | +| * TemperatureSetpointHoldDuration | 0x0024 | +| * ThermostatProgrammingOperationMode | 0x0025 | +| * ThermostatRunningState | 0x0029 | +| * SetpointChangeSource | 0x0030 | +| * SetpointChangeAmount | 0x0031 | +| * SetpointChangeSourceTimestamp | 0x0032 | +| * AcType | 0x0040 | +| * AcCapacity | 0x0041 | +| * AcRefrigerantType | 0x0042 | +| * AcCompressor | 0x0043 | +| * AcErrorCode | 0x0044 | +| * AcLouverPosition | 0x0045 | +| * AcCoilTemperature | 0x0046 | +| * AcCapacityFormat | 0x0047 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + +/* + * Command SetpointRaiseLower + */ +class ThermostatSetpointRaiseLower : public ClusterCommand { public: - WriteTestClusterNullableInt48s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt48s", credsIssuerConfig) + ThermostatSetpointRaiseLower(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("setpoint-raise-lower", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int48s"); - AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("Mode", 0, UINT8_MAX, &mRequest.mode); + AddArgument("Amount", INT8_MIN, INT8_MAX, &mRequest.amount); + ClusterCommand::AddArguments(); } - ~WriteTestClusterNullableInt48s() {} - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008012, mValue); + ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000000) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000201, 0x00000000, mRequest); } private: - chip::app::DataModel::Nullable mValue; + chip::app::Clusters::Thermostat::Commands::SetpointRaiseLower::Type mRequest; }; -class WriteTestClusterNullableInt56s : public WriteAttribute +/* + * Command SetWeeklySchedule + */ +class ThermostatSetWeeklySchedule : public ClusterCommand { public: - WriteTestClusterNullableInt56s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt56s", credsIssuerConfig) + ThermostatSetWeeklySchedule(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("set-weekly-schedule", credsIssuerConfig), mComplex_Payload(&mRequest.payload) { - AddArgument("attr-name", "nullable-int56s"); - AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("NumberOfTransitionsForSequence", 0, UINT8_MAX, &mRequest.numberOfTransitionsForSequence); + AddArgument("DayOfWeekForSequence", 0, UINT8_MAX, &mRequest.dayOfWeekForSequence); + AddArgument("ModeForSequence", 0, UINT8_MAX, &mRequest.modeForSequence); + AddArgument("Payload", &mComplex_Payload); + ClusterCommand::AddArguments(); } - ~WriteTestClusterNullableInt56s() {} - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008013, mValue); + ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000001) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000201, 0x00000001, mRequest); } private: - chip::app::DataModel::Nullable mValue; + chip::app::Clusters::Thermostat::Commands::SetWeeklySchedule::Type mRequest; + TypedComplexArgument> mComplex_Payload; }; -class WriteTestClusterNullableInt64s : public WriteAttribute +/* + * Command GetWeeklySchedule + */ +class ThermostatGetWeeklySchedule : public ClusterCommand { public: - WriteTestClusterNullableInt64s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt64s", credsIssuerConfig) + ThermostatGetWeeklySchedule(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("get-weekly-schedule", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int64s"); - AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("DaysToReturn", 0, UINT8_MAX, &mRequest.daysToReturn); + AddArgument("ModeToReturn", 0, UINT8_MAX, &mRequest.modeToReturn); + ClusterCommand::AddArguments(); } - ~WriteTestClusterNullableInt64s() {} - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008014, mValue); + ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000002) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000201, 0x00000002, mRequest); } private: - chip::app::DataModel::Nullable mValue; + chip::app::Clusters::Thermostat::Commands::GetWeeklySchedule::Type mRequest; }; -class WriteTestClusterNullableEnum8 : public WriteAttribute +/* + * Command ClearWeeklySchedule + */ +class ThermostatClearWeeklySchedule : public ClusterCommand { public: - WriteTestClusterNullableEnum8(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("NullableEnum8", credsIssuerConfig) + ThermostatClearWeeklySchedule(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("clear-weekly-schedule", credsIssuerConfig) { - AddArgument("attr-name", "nullable-enum8"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); - WriteAttribute::AddArguments(); + ClusterCommand::AddArguments(); } - ~WriteTestClusterNullableEnum8() {} - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008015, mValue); + ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000003) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000201, 0x00000003, mRequest); } private: - chip::app::DataModel::Nullable mValue; + chip::app::Clusters::Thermostat::Commands::ClearWeeklySchedule::Type mRequest; }; -class WriteTestClusterNullableEnum16 : public WriteAttribute +/* + * Command GetRelayStatusLog + */ +class ThermostatGetRelayStatusLog : public ClusterCommand { public: - WriteTestClusterNullableEnum16(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableEnum16", credsIssuerConfig) + ThermostatGetRelayStatusLog(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("get-relay-status-log", credsIssuerConfig) { - AddArgument("attr-name", "nullable-enum16"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); + ClusterCommand::AddArguments(); } - ~WriteTestClusterNullableEnum16() {} - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008016, mValue); + ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000004) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000201, 0x00000004, mRequest); } private: - chip::app::DataModel::Nullable mValue; + chip::app::Clusters::Thermostat::Commands::GetRelayStatusLog::Type mRequest; }; -class WriteTestClusterNullableFloatSingle : public WriteAttribute +class WriteThermostatHvacSystemTypeConfiguration : public WriteAttribute { public: - WriteTestClusterNullableFloatSingle(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableFloatSingle", credsIssuerConfig) + WriteThermostatHvacSystemTypeConfiguration(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("HvacSystemTypeConfiguration", credsIssuerConfig) { - AddArgument("attr-name", "nullable-float-single"); - AddArgument("attr-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), &mValue); + AddArgument("attr-name", "hvac-system-type-configuration"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableFloatSingle() {} + ~WriteThermostatHvacSystemTypeConfiguration() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008017, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000009, mValue); } private: - chip::app::DataModel::Nullable mValue; + uint8_t mValue; }; -class WriteTestClusterNullableFloatDouble : public WriteAttribute +class WriteThermostatLocalTemperatureCalibration : public WriteAttribute { public: - WriteTestClusterNullableFloatDouble(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableFloatDouble", credsIssuerConfig) + WriteThermostatLocalTemperatureCalibration(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("LocalTemperatureCalibration", credsIssuerConfig) { - AddArgument("attr-name", "nullable-float-double"); - AddArgument("attr-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), &mValue); + AddArgument("attr-name", "local-temperature-calibration"); + AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableFloatDouble() {} + ~WriteThermostatLocalTemperatureCalibration() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008018, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000010, mValue); } private: - chip::app::DataModel::Nullable mValue; + int8_t mValue; }; -class WriteTestClusterNullableOctetString : public WriteAttribute +class WriteThermostatOccupiedCoolingSetpoint : public WriteAttribute { public: - WriteTestClusterNullableOctetString(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableOctetString", credsIssuerConfig) + WriteThermostatOccupiedCoolingSetpoint(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("OccupiedCoolingSetpoint", credsIssuerConfig) { - AddArgument("attr-name", "nullable-octet-string"); - AddArgument("attr-value", &mValue); + AddArgument("attr-name", "occupied-cooling-setpoint"); + AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableOctetString() {} + ~WriteThermostatOccupiedCoolingSetpoint() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008019, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000011, mValue); } private: - chip::app::DataModel::Nullable mValue; + int16_t mValue; }; -class WriteTestClusterNullableCharString : public WriteAttribute +class WriteThermostatOccupiedHeatingSetpoint : public WriteAttribute { public: - WriteTestClusterNullableCharString(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableCharString", credsIssuerConfig) + WriteThermostatOccupiedHeatingSetpoint(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("OccupiedHeatingSetpoint", credsIssuerConfig) { - AddArgument("attr-name", "nullable-char-string"); - AddArgument("attr-value", &mValue); + AddArgument("attr-name", "occupied-heating-setpoint"); + AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableCharString() {} + ~WriteThermostatOccupiedHeatingSetpoint() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x0000801E, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000012, mValue); } private: - chip::app::DataModel::Nullable mValue; + int16_t mValue; }; -class WriteTestClusterNullableEnumAttr : public WriteAttribute +class WriteThermostatUnoccupiedCoolingSetpoint : public WriteAttribute { public: - WriteTestClusterNullableEnumAttr(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableEnumAttr", credsIssuerConfig) + WriteThermostatUnoccupiedCoolingSetpoint(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("UnoccupiedCoolingSetpoint", credsIssuerConfig) { - AddArgument("attr-name", "nullable-enum-attr"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "unoccupied-cooling-setpoint"); + AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableEnumAttr() {} + ~WriteThermostatUnoccupiedCoolingSetpoint() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008024, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000013, mValue); } private: - chip::app::DataModel::Nullable mValue; + int16_t mValue; }; -class WriteTestClusterNullableStruct : public WriteAttribute +class WriteThermostatUnoccupiedHeatingSetpoint : public WriteAttribute { public: - WriteTestClusterNullableStruct(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableStruct", credsIssuerConfig), mComplex(&mValue) + WriteThermostatUnoccupiedHeatingSetpoint(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("UnoccupiedHeatingSetpoint", credsIssuerConfig) { - AddArgument("attr-name", "nullable-struct"); - AddArgument("attr-value", &mComplex); + AddArgument("attr-name", "unoccupied-heating-setpoint"); + AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableStruct() {} + ~WriteThermostatUnoccupiedHeatingSetpoint() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008025, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000014, mValue); } private: - chip::app::DataModel::Nullable mValue; - TypedComplexArgument> mComplex; + int16_t mValue; }; -class WriteTestClusterNullableRangeRestrictedInt8u : public WriteAttribute +class WriteThermostatMinHeatSetpointLimit : public WriteAttribute { public: - WriteTestClusterNullableRangeRestrictedInt8u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableRangeRestrictedInt8u", credsIssuerConfig) + WriteThermostatMinHeatSetpointLimit(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("MinHeatSetpointLimit", credsIssuerConfig) { - AddArgument("attr-name", "nullable-range-restricted-int8u"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "min-heat-setpoint-limit"); + AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableRangeRestrictedInt8u() {} + ~WriteThermostatMinHeatSetpointLimit() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008026, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000015, mValue); } private: - chip::app::DataModel::Nullable mValue; + int16_t mValue; }; -class WriteTestClusterNullableRangeRestrictedInt8s : public WriteAttribute +class WriteThermostatMaxHeatSetpointLimit : public WriteAttribute { public: - WriteTestClusterNullableRangeRestrictedInt8s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableRangeRestrictedInt8s", credsIssuerConfig) + WriteThermostatMaxHeatSetpointLimit(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("MaxHeatSetpointLimit", credsIssuerConfig) { - AddArgument("attr-name", "nullable-range-restricted-int8s"); - AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); + AddArgument("attr-name", "max-heat-setpoint-limit"); + AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableRangeRestrictedInt8s() {} + ~WriteThermostatMaxHeatSetpointLimit() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008027, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000016, mValue); } private: - chip::app::DataModel::Nullable mValue; + int16_t mValue; }; -class WriteTestClusterNullableRangeRestrictedInt16u : public WriteAttribute +class WriteThermostatMinCoolSetpointLimit : public WriteAttribute { public: - WriteTestClusterNullableRangeRestrictedInt16u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableRangeRestrictedInt16u", credsIssuerConfig) + WriteThermostatMinCoolSetpointLimit(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("MinCoolSetpointLimit", credsIssuerConfig) { - AddArgument("attr-name", "nullable-range-restricted-int16u"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "min-cool-setpoint-limit"); + AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableRangeRestrictedInt16u() {} + ~WriteThermostatMinCoolSetpointLimit() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008028, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000017, mValue); } private: - chip::app::DataModel::Nullable mValue; + int16_t mValue; }; -class WriteTestClusterNullableRangeRestrictedInt16s : public WriteAttribute +class WriteThermostatMaxCoolSetpointLimit : public WriteAttribute { public: - WriteTestClusterNullableRangeRestrictedInt16s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableRangeRestrictedInt16s", credsIssuerConfig) + WriteThermostatMaxCoolSetpointLimit(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("MaxCoolSetpointLimit", credsIssuerConfig) { - AddArgument("attr-name", "nullable-range-restricted-int16s"); + AddArgument("attr-name", "max-cool-setpoint-limit"); AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableRangeRestrictedInt16s() {} + ~WriteThermostatMaxCoolSetpointLimit() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x0000050F, 0x00008029, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000018, mValue); } private: - chip::app::DataModel::Nullable mValue; + int16_t mValue; }; -/*----------------------------------------------------------------------------*\ -| Cluster Thermostat | 0x0201 | -|------------------------------------------------------------------------------| -| Commands: | | -| * ClearWeeklySchedule | 0x03 | -| * GetRelayStatusLog | 0x04 | -| * GetWeeklySchedule | 0x02 | -| * SetWeeklySchedule | 0x01 | -| * SetpointRaiseLower | 0x00 | -|------------------------------------------------------------------------------| -| Attributes: | | -| * LocalTemperature | 0x0000 | -| * AbsMinHeatSetpointLimit | 0x0003 | -| * AbsMaxHeatSetpointLimit | 0x0004 | -| * AbsMinCoolSetpointLimit | 0x0005 | -| * AbsMaxCoolSetpointLimit | 0x0006 | -| * OccupiedCoolingSetpoint | 0x0011 | -| * OccupiedHeatingSetpoint | 0x0012 | -| * MinHeatSetpointLimit | 0x0015 | -| * MaxHeatSetpointLimit | 0x0016 | -| * MinCoolSetpointLimit | 0x0017 | -| * MaxCoolSetpointLimit | 0x0018 | -| * MinSetpointDeadBand | 0x0019 | -| * ControlSequenceOfOperation | 0x001B | -| * SystemMode | 0x001C | -| * StartOfWeek | 0x0020 | -| * NumberOfWeeklyTransitions | 0x0021 | -| * NumberOfDailyTransitions | 0x0022 | -| * AttributeList | 0xFFFB | -| * FeatureMap | 0xFFFC | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - -/* - * Command ClearWeeklySchedule - */ -class ThermostatClearWeeklySchedule : public ClusterCommand +class WriteThermostatMinSetpointDeadBand : public WriteAttribute { public: - ThermostatClearWeeklySchedule(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("clear-weekly-schedule", credsIssuerConfig) + WriteThermostatMinSetpointDeadBand(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("MinSetpointDeadBand", credsIssuerConfig) { - ClusterCommand::AddArguments(); + AddArgument("attr-name", "min-setpoint-dead-band"); + AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteThermostatMinSetpointDeadBand() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000003) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000201, 0x00000003, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000019, mValue); } private: - chip::app::Clusters::Thermostat::Commands::ClearWeeklySchedule::Type mRequest; + int8_t mValue; }; -/* - * Command GetRelayStatusLog - */ -class ThermostatGetRelayStatusLog : public ClusterCommand +class WriteThermostatRemoteSensing : public WriteAttribute { public: - ThermostatGetRelayStatusLog(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("get-relay-status-log", credsIssuerConfig) + WriteThermostatRemoteSensing(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("RemoteSensing", credsIssuerConfig) { - ClusterCommand::AddArguments(); + AddArgument("attr-name", "remote-sensing"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteThermostatRemoteSensing() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000004) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000201, 0x00000004, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x0000001A, mValue); } private: - chip::app::Clusters::Thermostat::Commands::GetRelayStatusLog::Type mRequest; + uint8_t mValue; }; -/* - * Command GetWeeklySchedule - */ -class ThermostatGetWeeklySchedule : public ClusterCommand +class WriteThermostatControlSequenceOfOperation : public WriteAttribute { public: - ThermostatGetWeeklySchedule(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("get-weekly-schedule", credsIssuerConfig) + WriteThermostatControlSequenceOfOperation(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ControlSequenceOfOperation", credsIssuerConfig) { - AddArgument("DaysToReturn", 0, UINT8_MAX, &mRequest.daysToReturn); - AddArgument("ModeToReturn", 0, UINT8_MAX, &mRequest.modeToReturn); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "control-sequence-of-operation"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteThermostatControlSequenceOfOperation() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000002) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000201, 0x00000002, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x0000001B, mValue); } private: - chip::app::Clusters::Thermostat::Commands::GetWeeklySchedule::Type mRequest; + uint8_t mValue; }; -/* - * Command SetWeeklySchedule - */ -class ThermostatSetWeeklySchedule : public ClusterCommand +class WriteThermostatSystemMode : public WriteAttribute { public: - ThermostatSetWeeklySchedule(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("set-weekly-schedule", credsIssuerConfig), mComplex_Payload(&mRequest.payload) + WriteThermostatSystemMode(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("SystemMode", credsIssuerConfig) { - AddArgument("NumberOfTransitionsForSequence", 0, UINT8_MAX, &mRequest.numberOfTransitionsForSequence); - AddArgument("DayOfWeekForSequence", 0, UINT8_MAX, &mRequest.dayOfWeekForSequence); - AddArgument("ModeForSequence", 0, UINT8_MAX, &mRequest.modeForSequence); - AddArgument("Payload", &mComplex_Payload); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "system-mode"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteThermostatSystemMode() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000001) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000201, 0x00000001, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x0000001C, mValue); } private: - chip::app::Clusters::Thermostat::Commands::SetWeeklySchedule::Type mRequest; - TypedComplexArgument> mComplex_Payload; + uint8_t mValue; }; -/* - * Command SetpointRaiseLower - */ -class ThermostatSetpointRaiseLower : public ClusterCommand +class WriteThermostatTemperatureSetpointHold : public WriteAttribute { public: - ThermostatSetpointRaiseLower(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("setpoint-raise-lower", credsIssuerConfig) + WriteThermostatTemperatureSetpointHold(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("TemperatureSetpointHold", credsIssuerConfig) { - AddArgument("Mode", 0, UINT8_MAX, &mRequest.mode); - AddArgument("Amount", INT8_MIN, INT8_MAX, &mRequest.amount); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "temperature-setpoint-hold"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteThermostatTemperatureSetpointHold() {} + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000000) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000201, 0x00000000, mRequest); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000023, mValue); } private: - chip::app::Clusters::Thermostat::Commands::SetpointRaiseLower::Type mRequest; + uint8_t mValue; }; -class WriteThermostatOccupiedCoolingSetpoint : public WriteAttribute +class WriteThermostatTemperatureSetpointHoldDuration : public WriteAttribute { public: - WriteThermostatOccupiedCoolingSetpoint(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("OccupiedCoolingSetpoint", credsIssuerConfig) - { - AddArgument("attr-name", "occupied-cooling-setpoint"); - AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); + WriteThermostatTemperatureSetpointHoldDuration(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("TemperatureSetpointHoldDuration", credsIssuerConfig) + { + AddArgument("attr-name", "temperature-setpoint-hold-duration"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteThermostatOccupiedCoolingSetpoint() {} + ~WriteThermostatTemperatureSetpointHoldDuration() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000011, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000024, mValue); } private: - int16_t mValue; + uint16_t mValue; }; -class WriteThermostatOccupiedHeatingSetpoint : public WriteAttribute +class WriteThermostatThermostatProgrammingOperationMode : public WriteAttribute { public: - WriteThermostatOccupiedHeatingSetpoint(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("OccupiedHeatingSetpoint", credsIssuerConfig) + WriteThermostatThermostatProgrammingOperationMode(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ThermostatProgrammingOperationMode", credsIssuerConfig) { - AddArgument("attr-name", "occupied-heating-setpoint"); - AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); + AddArgument("attr-name", "thermostat-programming-operation-mode"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteThermostatOccupiedHeatingSetpoint() {} + ~WriteThermostatThermostatProgrammingOperationMode() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000012, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000025, mValue); } private: - int16_t mValue; + uint8_t mValue; }; -class WriteThermostatMinHeatSetpointLimit : public WriteAttribute +class WriteThermostatAcType : public WriteAttribute { public: - WriteThermostatMinHeatSetpointLimit(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("MinHeatSetpointLimit", credsIssuerConfig) + WriteThermostatAcType(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("AcType", credsIssuerConfig) { - AddArgument("attr-name", "min-heat-setpoint-limit"); - AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); + AddArgument("attr-name", "ac-type"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteThermostatMinHeatSetpointLimit() {} + ~WriteThermostatAcType() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000015, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000040, mValue); } private: - int16_t mValue; + uint8_t mValue; }; -class WriteThermostatMaxHeatSetpointLimit : public WriteAttribute +class WriteThermostatAcCapacity : public WriteAttribute { public: - WriteThermostatMaxHeatSetpointLimit(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("MaxHeatSetpointLimit", credsIssuerConfig) + WriteThermostatAcCapacity(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("AcCapacity", credsIssuerConfig) { - AddArgument("attr-name", "max-heat-setpoint-limit"); - AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); + AddArgument("attr-name", "ac-capacity"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteThermostatMaxHeatSetpointLimit() {} + ~WriteThermostatAcCapacity() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000016, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000041, mValue); } private: - int16_t mValue; + uint16_t mValue; }; -class WriteThermostatMinCoolSetpointLimit : public WriteAttribute +class WriteThermostatAcRefrigerantType : public WriteAttribute { public: - WriteThermostatMinCoolSetpointLimit(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("MinCoolSetpointLimit", credsIssuerConfig) + WriteThermostatAcRefrigerantType(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("AcRefrigerantType", credsIssuerConfig) { - AddArgument("attr-name", "min-cool-setpoint-limit"); - AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); + AddArgument("attr-name", "ac-refrigerant-type"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteThermostatMinCoolSetpointLimit() {} + ~WriteThermostatAcRefrigerantType() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000017, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000042, mValue); } private: - int16_t mValue; + uint8_t mValue; }; -class WriteThermostatMaxCoolSetpointLimit : public WriteAttribute +class WriteThermostatAcCompressor : public WriteAttribute { public: - WriteThermostatMaxCoolSetpointLimit(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("MaxCoolSetpointLimit", credsIssuerConfig) + WriteThermostatAcCompressor(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("AcCompressor", credsIssuerConfig) { - AddArgument("attr-name", "max-cool-setpoint-limit"); - AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); + AddArgument("attr-name", "ac-compressor"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteThermostatMaxCoolSetpointLimit() {} + ~WriteThermostatAcCompressor() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000018, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000043, mValue); } private: - int16_t mValue; + uint8_t mValue; }; -class WriteThermostatMinSetpointDeadBand : public WriteAttribute +class WriteThermostatAcErrorCode : public WriteAttribute { public: - WriteThermostatMinSetpointDeadBand(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("MinSetpointDeadBand", credsIssuerConfig) + WriteThermostatAcErrorCode(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("AcErrorCode", credsIssuerConfig) { - AddArgument("attr-name", "min-setpoint-dead-band"); - AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); + AddArgument("attr-name", "ac-error-code"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteThermostatMinSetpointDeadBand() {} + ~WriteThermostatAcErrorCode() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000019, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000044, mValue); } private: - int8_t mValue; + uint32_t mValue; }; -class WriteThermostatControlSequenceOfOperation : public WriteAttribute +class WriteThermostatAcLouverPosition : public WriteAttribute { public: - WriteThermostatControlSequenceOfOperation(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("ControlSequenceOfOperation", credsIssuerConfig) + WriteThermostatAcLouverPosition(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("AcLouverPosition", credsIssuerConfig) { - AddArgument("attr-name", "control-sequence-of-operation"); + AddArgument("attr-name", "ac-louver-position"); AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteThermostatControlSequenceOfOperation() {} + ~WriteThermostatAcLouverPosition() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x0000001B, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000045, mValue); } private: uint8_t mValue; }; -class WriteThermostatSystemMode : public WriteAttribute +class WriteThermostatAcCapacityFormat : public WriteAttribute { public: - WriteThermostatSystemMode(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("SystemMode", credsIssuerConfig) + WriteThermostatAcCapacityFormat(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("AcCapacityFormat", credsIssuerConfig) { - AddArgument("attr-name", "system-mode"); + AddArgument("attr-name", "ac-capacity-format"); AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteThermostatSystemMode() {} + ~WriteThermostatAcCapacityFormat() {} CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x0000001C, mValue); + return WriteAttribute::SendCommand(device, endpointId, 0x00000201, 0x00000047, mValue); } private: @@ -8687,6 +11109,7 @@ class WriteThermostatSystemMode : public WriteAttribute | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | @@ -8872,6 +11295,8 @@ class ThreadNetworkDiagnosticsResetCounts : public ClusterCommand | * SupportedCalendarTypes | 0x0002 | | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | @@ -8928,6 +11353,8 @@ class WriteTimeFormatLocalizationActiveCalendarType : public WriteAttribute |------------------------------------------------------------------------------| | Attributes: | | | * TemperatureUnit | 0x0000 | +| * ServerGeneratedCommandList | 0xFFF8 | +| * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | | * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | @@ -8966,6 +11393,8 @@ class WriteUnitLocalizationTemperatureUnit : public WriteAttribute | * LabelList | 0x0000 | | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | @@ -9004,6 +11433,7 @@ class WriteUserLabelLabelList : public WriteAttribute | * ServerGeneratedCommandList | 0xFFF8 | | * ClientGeneratedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | @@ -9068,18 +11498,22 @@ class WiFiNetworkDiagnosticsResetCounts : public ClusterCommand | Cluster WindowCovering | 0x0102 | |------------------------------------------------------------------------------| | Commands: | | +| * UpOrOpen | 0x00 | | * DownOrClose | 0x01 | -| * GoToLiftPercentage | 0x05 | +| * StopMotion | 0x02 | | * GoToLiftValue | 0x04 | -| * GoToTiltPercentage | 0x08 | +| * GoToLiftPercentage | 0x05 | | * GoToTiltValue | 0x07 | -| * StopMotion | 0x02 | -| * UpOrOpen | 0x00 | +| * GoToTiltPercentage | 0x08 | |------------------------------------------------------------------------------| | Attributes: | | | * Type | 0x0000 | +| * PhysicalClosedLimitLift | 0x0001 | +| * PhysicalClosedLimitTilt | 0x0002 | | * CurrentPositionLift | 0x0003 | | * CurrentPositionTilt | 0x0004 | +| * NumberOfActuationsLift | 0x0005 | +| * NumberOfActuationsTilt | 0x0006 | | * ConfigStatus | 0x0007 | | * CurrentPositionLiftPercentage | 0x0008 | | * CurrentPositionTiltPercentage | 0x0009 | @@ -9104,6 +11538,28 @@ class WiFiNetworkDiagnosticsResetCounts : public ClusterCommand | Events: | | \*----------------------------------------------------------------------------*/ +/* + * Command UpOrOpen + */ +class WindowCoveringUpOrOpen : public ClusterCommand +{ +public: + WindowCoveringUpOrOpen(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("up-or-open", credsIssuerConfig) + { + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000000) on endpoint %" PRIu16, endpointId); + + return ClusterCommand::SendCommand(device, endpointId, 0x00000102, 0x00000000, mRequest); + } + +private: + chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type mRequest; +}; + /* * Command DownOrClose */ @@ -9127,28 +11583,25 @@ class WindowCoveringDownOrClose : public ClusterCommand }; /* - * Command GoToLiftPercentage + * Command StopMotion */ -class WindowCoveringGoToLiftPercentage : public ClusterCommand +class WindowCoveringStopMotion : public ClusterCommand { public: - WindowCoveringGoToLiftPercentage(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("go-to-lift-percentage", credsIssuerConfig) + WindowCoveringStopMotion(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop-motion", credsIssuerConfig) { - AddArgument("LiftPercentageValue", 0, UINT8_MAX, &mRequest.liftPercentageValue); - AddArgument("LiftPercent100thsValue", 0, UINT16_MAX, &mRequest.liftPercent100thsValue); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000005) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000002) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000102, 0x00000005, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000102, 0x00000002, mRequest); } private: - chip::app::Clusters::WindowCovering::Commands::GoToLiftPercentage::Type mRequest; + chip::app::Clusters::WindowCovering::Commands::StopMotion::Type mRequest; }; /* @@ -9176,28 +11629,28 @@ class WindowCoveringGoToLiftValue : public ClusterCommand }; /* - * Command GoToTiltPercentage + * Command GoToLiftPercentage */ -class WindowCoveringGoToTiltPercentage : public ClusterCommand +class WindowCoveringGoToLiftPercentage : public ClusterCommand { public: - WindowCoveringGoToTiltPercentage(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("go-to-tilt-percentage", credsIssuerConfig) + WindowCoveringGoToLiftPercentage(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("go-to-lift-percentage", credsIssuerConfig) { - AddArgument("TiltPercentageValue", 0, UINT8_MAX, &mRequest.tiltPercentageValue); - AddArgument("TiltPercent100thsValue", 0, UINT16_MAX, &mRequest.tiltPercent100thsValue); + AddArgument("LiftPercentageValue", 0, UINT8_MAX, &mRequest.liftPercentageValue); + AddArgument("LiftPercent100thsValue", 0, UINT16_MAX, &mRequest.liftPercent100thsValue); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000008) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000005) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000102, 0x00000008, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000102, 0x00000005, mRequest); } private: - chip::app::Clusters::WindowCovering::Commands::GoToTiltPercentage::Type mRequest; + chip::app::Clusters::WindowCovering::Commands::GoToLiftPercentage::Type mRequest; }; /* @@ -9225,47 +11678,28 @@ class WindowCoveringGoToTiltValue : public ClusterCommand }; /* - * Command StopMotion - */ -class WindowCoveringStopMotion : public ClusterCommand -{ -public: - WindowCoveringStopMotion(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("stop-motion", credsIssuerConfig) - { - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000002) on endpoint %" PRIu16, endpointId); - - return ClusterCommand::SendCommand(device, endpointId, 0x00000102, 0x00000002, mRequest); - } - -private: - chip::app::Clusters::WindowCovering::Commands::StopMotion::Type mRequest; -}; - -/* - * Command UpOrOpen + * Command GoToTiltPercentage */ -class WindowCoveringUpOrOpen : public ClusterCommand +class WindowCoveringGoToTiltPercentage : public ClusterCommand { public: - WindowCoveringUpOrOpen(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("up-or-open", credsIssuerConfig) + WindowCoveringGoToTiltPercentage(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("go-to-tilt-percentage", credsIssuerConfig) { + AddArgument("TiltPercentageValue", 0, UINT8_MAX, &mRequest.tiltPercentageValue); + AddArgument("TiltPercent100thsValue", 0, UINT16_MAX, &mRequest.tiltPercent100thsValue); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(ChipDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000000) on endpoint %" PRIu16, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000008) on endpoint %" PRIu16, endpointId); - return ClusterCommand::SendCommand(device, endpointId, 0x00000102, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointId, 0x00000102, 0x00000008, mRequest); } private: - chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type mRequest; + chip::app::Clusters::WindowCovering::Commands::GoToTiltPercentage::Type mRequest; }; class WriteWindowCoveringMode : public WriteAttribute @@ -9314,6 +11748,7 @@ void registerClusterAccessControl(Commands & commands, CredentialIssuerCommands make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // @@ -9326,6 +11761,7 @@ void registerClusterAccessControl(Commands & commands, CredentialIssuerCommands make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -9366,6 +11802,7 @@ void registerClusterAccountLogin(Commands & commands, CredentialIssuerCommands * make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -9374,6 +11811,7 @@ void registerClusterAccountLogin(Commands & commands, CredentialIssuerCommands * make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -9395,8 +11833,8 @@ void registerClusterAdministratorCommissioning(Commands & commands, CredentialIs // Commands // make_unique(Id, credsIssuerConfig), // - make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // // // Attributes @@ -9410,6 +11848,7 @@ void registerClusterAdministratorCommissioning(Commands & commands, CredentialIs make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -9421,6 +11860,7 @@ void registerClusterAdministratorCommissioning(Commands & commands, CredentialIs make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -9459,6 +11899,7 @@ void registerClusterApplicationBasic(Commands & commands, CredentialIssuerComman make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // @@ -9476,6 +11917,7 @@ void registerClusterApplicationBasic(Commands & commands, CredentialIssuerComman make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -9497,29 +11939,35 @@ void registerClusterApplicationLauncher(Commands & commands, CredentialIssuerCom // 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, "application-launcher-list", Attributes::ApplicationLauncherList::Id, credsIssuerConfig), // + make_unique(Id, "application-launcher-app", Attributes::ApplicationLauncherApp::Id, credsIssuerConfig), // make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "application-launcher-list", Attributes::ApplicationLauncherList::Id, credsIssuerConfig), // + make_unique(Id, "application-launcher-app", Attributes::ApplicationLauncherApp::Id, + credsIssuerConfig), // make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -9541,8 +11989,8 @@ void registerClusterAudioOutput(Commands & commands, CredentialIssuerCommands * // Commands // make_unique(Id, credsIssuerConfig), // - make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // // // Attributes // @@ -9554,6 +12002,7 @@ void registerClusterAudioOutput(Commands & commands, CredentialIssuerCommands * make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -9564,6 +12013,7 @@ void registerClusterAudioOutput(Commands & commands, CredentialIssuerCommands * make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -9594,24 +12044,48 @@ void registerClusterBarrierControl(Commands & commands, CredentialIssuerCommands make_unique(Id, "barrier-moving-state", Attributes::BarrierMovingState::Id, credsIssuerConfig), // make_unique(Id, "barrier-safety-status", Attributes::BarrierSafetyStatus::Id, credsIssuerConfig), // make_unique(Id, "barrier-capabilities", Attributes::BarrierCapabilities::Id, credsIssuerConfig), // - make_unique(Id, "barrier-position", Attributes::BarrierPosition::Id, credsIssuerConfig), // + make_unique(Id, "barrier-open-events", Attributes::BarrierOpenEvents::Id, credsIssuerConfig), // + make_unique(Id, "barrier-close-events", Attributes::BarrierCloseEvents::Id, credsIssuerConfig), // + make_unique(Id, "barrier-command-open-events", Attributes::BarrierCommandOpenEvents::Id, + credsIssuerConfig), // + make_unique(Id, "barrier-command-close-events", Attributes::BarrierCommandCloseEvents::Id, + credsIssuerConfig), // + make_unique(Id, "barrier-open-period", Attributes::BarrierOpenPeriod::Id, credsIssuerConfig), // + make_unique(Id, "barrier-close-period", Attributes::BarrierClosePeriod::Id, credsIssuerConfig), // + make_unique(Id, "barrier-position", Attributes::BarrierPosition::Id, credsIssuerConfig), // make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "barrier-moving-state", Attributes::BarrierMovingState::Id, credsIssuerConfig), // make_unique(Id, "barrier-safety-status", Attributes::BarrierSafetyStatus::Id, credsIssuerConfig), // make_unique(Id, "barrier-capabilities", Attributes::BarrierCapabilities::Id, credsIssuerConfig), // - make_unique(Id, "barrier-position", Attributes::BarrierPosition::Id, credsIssuerConfig), // + make_unique(Id, "barrier-open-events", Attributes::BarrierOpenEvents::Id, credsIssuerConfig), // + make_unique(Id, "barrier-close-events", Attributes::BarrierCloseEvents::Id, credsIssuerConfig), // + make_unique(Id, "barrier-command-open-events", Attributes::BarrierCommandOpenEvents::Id, + credsIssuerConfig), // + make_unique(Id, "barrier-command-close-events", Attributes::BarrierCommandCloseEvents::Id, + credsIssuerConfig), // + make_unique(Id, "barrier-open-period", Attributes::BarrierOpenPeriod::Id, credsIssuerConfig), // + make_unique(Id, "barrier-close-period", Attributes::BarrierClosePeriod::Id, credsIssuerConfig), // + make_unique(Id, "barrier-position", Attributes::BarrierPosition::Id, credsIssuerConfig), // make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -9632,7 +12106,8 @@ void registerClusterBasic(Commands & commands, CredentialIssuerCommands * credsI // // Commands // - make_unique(Id, credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + make_unique(credsIssuerConfig), // // // Attributes // @@ -9661,6 +12136,7 @@ void registerClusterBasic(Commands & commands, CredentialIssuerCommands * credsI make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // @@ -9691,6 +12167,7 @@ void registerClusterBasic(Commands & commands, CredentialIssuerCommands * credsI make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -9723,28 +12200,46 @@ void registerClusterBinaryInputBasic(Commands & commands, CredentialIssuerComman // // Attributes // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, "out-of-service", Attributes::OutOfService::Id, credsIssuerConfig), // - make_unique(Id, "present-value", Attributes::PresentValue::Id, credsIssuerConfig), // - make_unique(Id, "status-flags", Attributes::StatusFlags::Id, credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + make_unique(Id, "active-text", Attributes::ActiveText::Id, credsIssuerConfig), // + make_unique(Id, "description", Attributes::Description::Id, credsIssuerConfig), // + make_unique(Id, "inactive-text", Attributes::InactiveText::Id, credsIssuerConfig), // + make_unique(Id, "out-of-service", Attributes::OutOfService::Id, credsIssuerConfig), // + make_unique(Id, "polarity", Attributes::Polarity::Id, credsIssuerConfig), // + make_unique(Id, "present-value", Attributes::PresentValue::Id, credsIssuerConfig), // + make_unique(Id, "reliability", Attributes::Reliability::Id, credsIssuerConfig), // + make_unique(Id, "status-flags", Attributes::StatusFlags::Id, credsIssuerConfig), // + make_unique(Id, "application-type", Attributes::ApplicationType::Id, credsIssuerConfig), // make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::Id, - credsIssuerConfig), // - make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // - make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // - make_unique(Id, credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, "out-of-service", Attributes::OutOfService::Id, credsIssuerConfig), // - make_unique(Id, "present-value", Attributes::PresentValue::Id, credsIssuerConfig), // - make_unique(Id, "status-flags", Attributes::StatusFlags::Id, credsIssuerConfig), // + 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(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + make_unique(Id, "active-text", Attributes::ActiveText::Id, credsIssuerConfig), // + make_unique(Id, "description", Attributes::Description::Id, credsIssuerConfig), // + make_unique(Id, "inactive-text", Attributes::InactiveText::Id, credsIssuerConfig), // + make_unique(Id, "out-of-service", Attributes::OutOfService::Id, credsIssuerConfig), // + make_unique(Id, "polarity", Attributes::Polarity::Id, credsIssuerConfig), // + make_unique(Id, "present-value", Attributes::PresentValue::Id, credsIssuerConfig), // + make_unique(Id, "reliability", Attributes::Reliability::Id, credsIssuerConfig), // + make_unique(Id, "status-flags", Attributes::StatusFlags::Id, credsIssuerConfig), // + make_unique(Id, "application-type", Attributes::ApplicationType::Id, credsIssuerConfig), // make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -9777,6 +12272,7 @@ void registerClusterBinding(Commands & commands, CredentialIssuerCommands * cred make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -9785,6 +12281,7 @@ void registerClusterBinding(Commands & commands, CredentialIssuerCommands * cred make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -9816,6 +12313,7 @@ void registerClusterBooleanState(Commands & commands, CredentialIssuerCommands * make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -9825,6 +12323,7 @@ void registerClusterBooleanState(Commands & commands, CredentialIssuerCommands * make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -9848,18 +12347,18 @@ void registerClusterBridgedActions(Commands & commands, CredentialIssuerCommands // 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 // @@ -9872,6 +12371,7 @@ void registerClusterBridgedActions(Commands & commands, CredentialIssuerCommands make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -9883,6 +12383,7 @@ void registerClusterBridgedActions(Commands & commands, CredentialIssuerCommands make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -9926,11 +12427,13 @@ void registerClusterBridgedDeviceBasic(Commands & commands, CredentialIssuerComm 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, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // @@ -9949,11 +12452,13 @@ void registerClusterBridgedDeviceBasic(Commands & commands, CredentialIssuerComm 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, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -9983,28 +12488,36 @@ void registerClusterChannel(Commands & commands, CredentialIssuerCommands * cred // 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, "channel-list", Attributes::ChannelList::Id, credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + make_unique(Id, "channel-list", Attributes::ChannelList::Id, credsIssuerConfig), // + make_unique(Id, "channel-lineup", Attributes::ChannelLineup::Id, credsIssuerConfig), // + make_unique(Id, "current-channel", Attributes::CurrentChannel::Id, credsIssuerConfig), // make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::Id, - credsIssuerConfig), // - make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // - make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, "channel-list", Attributes::ChannelList::Id, credsIssuerConfig), // + 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(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + make_unique(Id, "channel-list", Attributes::ChannelList::Id, credsIssuerConfig), // + make_unique(Id, "channel-lineup", Attributes::ChannelLineup::Id, credsIssuerConfig), // + make_unique(Id, "current-channel", Attributes::CurrentChannel::Id, credsIssuerConfig), // make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -10026,25 +12539,25 @@ void registerClusterColorControl(Commands & commands, CredentialIssuerCommands * // 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), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // // // Attributes // @@ -10110,6 +12623,7 @@ void registerClusterColorControl(Commands & commands, CredentialIssuerCommands * make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // @@ -10187,6 +12701,7 @@ void registerClusterColorControl(Commands & commands, CredentialIssuerCommands * make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -10222,6 +12737,7 @@ void registerClusterContentLauncher(Commands & commands, CredentialIssuerCommand make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // @@ -10234,6 +12750,7 @@ void registerClusterContentLauncher(Commands & commands, CredentialIssuerCommand make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -10268,6 +12785,7 @@ void registerClusterDescriptor(Commands & commands, CredentialIssuerCommands * c make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -10280,6 +12798,7 @@ void registerClusterDescriptor(Commands & commands, CredentialIssuerCommands * c make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -10309,15 +12828,19 @@ void registerClusterDiagnosticLogs(Commands & commands, CredentialIssuerCommands make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::Id, - credsIssuerConfig), // - make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, credsIssuerConfig), // + 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, credsIssuerConfig), // make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::Id, - credsIssuerConfig), // - make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // + 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 // @@ -10338,29 +12861,50 @@ void registerClusterDoorLock(Commands & commands, CredentialIssuerCommands * cre // 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), // + 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, 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-log-records-supported", Attributes::NumberOfLogRecordsSupported::Id, + credsIssuerConfig), // make_unique(Id, "number-of-total-users-supported", Attributes::NumberOfTotalUsersSupported::Id, credsIssuerConfig), // make_unique(Id, "number-of-pinusers-supported", Attributes::NumberOfPINUsersSupported::Id, @@ -10370,38 +12914,95 @@ void registerClusterDoorLock(Commands & commands, CredentialIssuerCommands * cre 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, "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, "language", Attributes::Language::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), // + 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, "enable-logging", Attributes::EnableLogging::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, "wrong-code-entry-limit", Attributes::WrongCodeEntryLimit::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, "alarm-mask", Attributes::AlarmMask::Id, credsIssuerConfig), // + make_unique(Id, "keypad-operation-event-mask", Attributes::KeypadOperationEventMask::Id, + credsIssuerConfig), // + make_unique(Id, "remote-operation-event-mask", Attributes::RemoteOperationEventMask::Id, + credsIssuerConfig), // + make_unique(Id, "manual-operation-event-mask", Attributes::ManualOperationEventMask::Id, + credsIssuerConfig), // + make_unique(Id, "rfidoperation-event-mask", Attributes::RFIDOperationEventMask::Id, credsIssuerConfig), // + make_unique(Id, "keypad-programming-event-mask", Attributes::KeypadProgrammingEventMask::Id, + credsIssuerConfig), // + make_unique(Id, "remote-programming-event-mask", Attributes::RemoteProgrammingEventMask::Id, + credsIssuerConfig), // + make_unique(Id, "rfidprogramming-event-mask", Attributes::RFIDProgrammingEventMask::Id, + credsIssuerConfig), // make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::Id, - credsIssuerConfig), // - make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // - make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // - 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(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), // + 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(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(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-log-records-supported", Attributes::NumberOfLogRecordsSupported::Id, + credsIssuerConfig), // make_unique(Id, "number-of-total-users-supported", Attributes::NumberOfTotalUsersSupported::Id, credsIssuerConfig), // make_unique(Id, "number-of-pinusers-supported", Attributes::NumberOfPINUsersSupported::Id, @@ -10411,27 +13012,63 @@ void registerClusterDoorLock(Commands & commands, CredentialIssuerCommands * cre 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), // + 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, "language", Attributes::Language::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, "credential-rules-support", Attributes::CredentialRulesSupport::Id, + credsIssuerConfig), // + make_unique(Id, "enable-logging", Attributes::EnableLogging::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, "alarm-mask", Attributes::AlarmMask::Id, credsIssuerConfig), // + make_unique(Id, "keypad-operation-event-mask", Attributes::KeypadOperationEventMask::Id, + credsIssuerConfig), // + make_unique(Id, "remote-operation-event-mask", Attributes::RemoteOperationEventMask::Id, + credsIssuerConfig), // + make_unique(Id, "manual-operation-event-mask", Attributes::ManualOperationEventMask::Id, + credsIssuerConfig), // + make_unique(Id, "rfidoperation-event-mask", Attributes::RFIDOperationEventMask::Id, + credsIssuerConfig), // + make_unique(Id, "keypad-programming-event-mask", Attributes::KeypadProgrammingEventMask::Id, + credsIssuerConfig), // + make_unique(Id, "remote-programming-event-mask", Attributes::RemoteProgrammingEventMask::Id, + credsIssuerConfig), // + make_unique(Id, "rfidprogramming-event-mask", Attributes::RFIDProgrammingEventMask::Id, + credsIssuerConfig), // make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -10462,46 +13099,371 @@ void registerClusterElectricalMeasurement(Commands & commands, CredentialIssuerC // // Commands // - make_unique(Id, credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // // // Attributes // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, "measurement-type", Attributes::MeasurementType::Id, credsIssuerConfig), // - make_unique(Id, "total-active-power", Attributes::TotalActivePower::Id, credsIssuerConfig), // - make_unique(Id, "rms-voltage", Attributes::RmsVoltage::Id, credsIssuerConfig), // - make_unique(Id, "rms-voltage-min", Attributes::RmsVoltageMin::Id, credsIssuerConfig), // - make_unique(Id, "rms-voltage-max", Attributes::RmsVoltageMax::Id, credsIssuerConfig), // - make_unique(Id, "rms-current", Attributes::RmsCurrent::Id, credsIssuerConfig), // - make_unique(Id, "rms-current-min", Attributes::RmsCurrentMin::Id, credsIssuerConfig), // - make_unique(Id, "rms-current-max", Attributes::RmsCurrentMax::Id, credsIssuerConfig), // - make_unique(Id, "active-power", Attributes::ActivePower::Id, credsIssuerConfig), // - make_unique(Id, "active-power-min", Attributes::ActivePowerMin::Id, credsIssuerConfig), // - make_unique(Id, "active-power-max", Attributes::ActivePowerMax::Id, credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + make_unique(Id, "measurement-type", Attributes::MeasurementType::Id, credsIssuerConfig), // + make_unique(Id, "dc-voltage", Attributes::DcVoltage::Id, credsIssuerConfig), // + make_unique(Id, "dc-voltage-min", Attributes::DcVoltageMin::Id, credsIssuerConfig), // + make_unique(Id, "dc-voltage-max", Attributes::DcVoltageMax::Id, credsIssuerConfig), // + make_unique(Id, "dc-current", Attributes::DcCurrent::Id, credsIssuerConfig), // + make_unique(Id, "dc-current-min", Attributes::DcCurrentMin::Id, credsIssuerConfig), // + make_unique(Id, "dc-current-max", Attributes::DcCurrentMax::Id, credsIssuerConfig), // + make_unique(Id, "dc-power", Attributes::DcPower::Id, credsIssuerConfig), // + make_unique(Id, "dc-power-min", Attributes::DcPowerMin::Id, credsIssuerConfig), // + make_unique(Id, "dc-power-max", Attributes::DcPowerMax::Id, credsIssuerConfig), // + make_unique(Id, "dc-voltage-multiplier", Attributes::DcVoltageMultiplier::Id, credsIssuerConfig), // + make_unique(Id, "dc-voltage-divisor", Attributes::DcVoltageDivisor::Id, credsIssuerConfig), // + make_unique(Id, "dc-current-multiplier", Attributes::DcCurrentMultiplier::Id, credsIssuerConfig), // + make_unique(Id, "dc-current-divisor", Attributes::DcCurrentDivisor::Id, credsIssuerConfig), // + make_unique(Id, "dc-power-multiplier", Attributes::DcPowerMultiplier::Id, credsIssuerConfig), // + make_unique(Id, "dc-power-divisor", Attributes::DcPowerDivisor::Id, credsIssuerConfig), // + make_unique(Id, "ac-frequency", Attributes::AcFrequency::Id, credsIssuerConfig), // + make_unique(Id, "ac-frequency-min", Attributes::AcFrequencyMin::Id, credsIssuerConfig), // + make_unique(Id, "ac-frequency-max", Attributes::AcFrequencyMax::Id, credsIssuerConfig), // + make_unique(Id, "neutral-current", Attributes::NeutralCurrent::Id, credsIssuerConfig), // + make_unique(Id, "total-active-power", Attributes::TotalActivePower::Id, credsIssuerConfig), // + make_unique(Id, "total-reactive-power", Attributes::TotalReactivePower::Id, credsIssuerConfig), // + make_unique(Id, "total-apparent-power", Attributes::TotalApparentPower::Id, credsIssuerConfig), // + make_unique(Id, "measured1st-harmonic-current", Attributes::Measured1stHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured3rd-harmonic-current", Attributes::Measured3rdHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured5th-harmonic-current", Attributes::Measured5thHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured7th-harmonic-current", Attributes::Measured7thHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured9th-harmonic-current", Attributes::Measured9thHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured11th-harmonic-current", Attributes::Measured11thHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured-phase1st-harmonic-current", Attributes::MeasuredPhase1stHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured-phase3rd-harmonic-current", Attributes::MeasuredPhase3rdHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured-phase5th-harmonic-current", Attributes::MeasuredPhase5thHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured-phase7th-harmonic-current", Attributes::MeasuredPhase7thHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured-phase9th-harmonic-current", Attributes::MeasuredPhase9thHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured-phase11th-harmonic-current", Attributes::MeasuredPhase11thHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "ac-frequency-multiplier", Attributes::AcFrequencyMultiplier::Id, credsIssuerConfig), // + make_unique(Id, "ac-frequency-divisor", Attributes::AcFrequencyDivisor::Id, credsIssuerConfig), // + make_unique(Id, "power-multiplier", Attributes::PowerMultiplier::Id, credsIssuerConfig), // + make_unique(Id, "power-divisor", Attributes::PowerDivisor::Id, credsIssuerConfig), // + make_unique(Id, "harmonic-current-multiplier", Attributes::HarmonicCurrentMultiplier::Id, + credsIssuerConfig), // + make_unique(Id, "phase-harmonic-current-multiplier", Attributes::PhaseHarmonicCurrentMultiplier::Id, + credsIssuerConfig), // + make_unique(Id, "instantaneous-voltage", Attributes::InstantaneousVoltage::Id, credsIssuerConfig), // + make_unique(Id, "instantaneous-line-current", Attributes::InstantaneousLineCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "instantaneous-active-current", Attributes::InstantaneousActiveCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "instantaneous-reactive-current", Attributes::InstantaneousReactiveCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "instantaneous-power", Attributes::InstantaneousPower::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage", Attributes::RmsVoltage::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-min", Attributes::RmsVoltageMin::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-max", Attributes::RmsVoltageMax::Id, credsIssuerConfig), // + make_unique(Id, "rms-current", Attributes::RmsCurrent::Id, credsIssuerConfig), // + make_unique(Id, "rms-current-min", Attributes::RmsCurrentMin::Id, credsIssuerConfig), // + make_unique(Id, "rms-current-max", Attributes::RmsCurrentMax::Id, credsIssuerConfig), // + make_unique(Id, "active-power", Attributes::ActivePower::Id, credsIssuerConfig), // + make_unique(Id, "active-power-min", Attributes::ActivePowerMin::Id, credsIssuerConfig), // + make_unique(Id, "active-power-max", Attributes::ActivePowerMax::Id, credsIssuerConfig), // + make_unique(Id, "reactive-power", Attributes::ReactivePower::Id, credsIssuerConfig), // + make_unique(Id, "apparent-power", Attributes::ApparentPower::Id, credsIssuerConfig), // + make_unique(Id, "power-factor", Attributes::PowerFactor::Id, credsIssuerConfig), // + make_unique(Id, "average-rms-voltage-measurement-period", Attributes::AverageRmsVoltageMeasurementPeriod::Id, + credsIssuerConfig), // + make_unique(Id, "average-rms-under-voltage-counter", Attributes::AverageRmsUnderVoltageCounter::Id, + credsIssuerConfig), // + make_unique(Id, "rms-extreme-over-voltage-period", Attributes::RmsExtremeOverVoltagePeriod::Id, + credsIssuerConfig), // + make_unique(Id, "rms-extreme-under-voltage-period", Attributes::RmsExtremeUnderVoltagePeriod::Id, + credsIssuerConfig), // + make_unique(Id, "rms-voltage-sag-period", Attributes::RmsVoltageSagPeriod::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-swell-period", Attributes::RmsVoltageSwellPeriod::Id, credsIssuerConfig), // + make_unique(Id, "ac-voltage-multiplier", Attributes::AcVoltageMultiplier::Id, credsIssuerConfig), // + make_unique(Id, "ac-voltage-divisor", Attributes::AcVoltageDivisor::Id, credsIssuerConfig), // + make_unique(Id, "ac-current-multiplier", Attributes::AcCurrentMultiplier::Id, credsIssuerConfig), // + make_unique(Id, "ac-current-divisor", Attributes::AcCurrentDivisor::Id, credsIssuerConfig), // + make_unique(Id, "ac-power-multiplier", Attributes::AcPowerMultiplier::Id, credsIssuerConfig), // + make_unique(Id, "ac-power-divisor", Attributes::AcPowerDivisor::Id, credsIssuerConfig), // + make_unique(Id, "overload-alarms-mask", Attributes::OverloadAlarmsMask::Id, credsIssuerConfig), // + make_unique(Id, "voltage-overload", Attributes::VoltageOverload::Id, credsIssuerConfig), // + make_unique(Id, "current-overload", Attributes::CurrentOverload::Id, credsIssuerConfig), // + make_unique(Id, "ac-overload-alarms-mask", Attributes::AcOverloadAlarmsMask::Id, credsIssuerConfig), // + make_unique(Id, "ac-voltage-overload", Attributes::AcVoltageOverload::Id, credsIssuerConfig), // + make_unique(Id, "ac-current-overload", Attributes::AcCurrentOverload::Id, credsIssuerConfig), // + make_unique(Id, "ac-active-power-overload", Attributes::AcActivePowerOverload::Id, credsIssuerConfig), // + make_unique(Id, "ac-reactive-power-overload", Attributes::AcReactivePowerOverload::Id, credsIssuerConfig), // + make_unique(Id, "average-rms-over-voltage", Attributes::AverageRmsOverVoltage::Id, credsIssuerConfig), // + make_unique(Id, "average-rms-under-voltage", Attributes::AverageRmsUnderVoltage::Id, credsIssuerConfig), // + make_unique(Id, "rms-extreme-over-voltage", Attributes::RmsExtremeOverVoltage::Id, credsIssuerConfig), // + make_unique(Id, "rms-extreme-under-voltage", Attributes::RmsExtremeUnderVoltage::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-sag", Attributes::RmsVoltageSag::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-swell", Attributes::RmsVoltageSwell::Id, credsIssuerConfig), // + make_unique(Id, "line-current-phase-b", Attributes::LineCurrentPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "active-current-phase-b", Attributes::ActiveCurrentPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "reactive-current-phase-b", Attributes::ReactiveCurrentPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-phase-b", Attributes::RmsVoltagePhaseB::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-min-phase-b", Attributes::RmsVoltageMinPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-max-phase-b", Attributes::RmsVoltageMaxPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "rms-current-phase-b", Attributes::RmsCurrentPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "rms-current-min-phase-b", Attributes::RmsCurrentMinPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "rms-current-max-phase-b", Attributes::RmsCurrentMaxPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "active-power-phase-b", Attributes::ActivePowerPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "active-power-min-phase-b", Attributes::ActivePowerMinPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "active-power-max-phase-b", Attributes::ActivePowerMaxPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "reactive-power-phase-b", Attributes::ReactivePowerPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "apparent-power-phase-b", Attributes::ApparentPowerPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "power-factor-phase-b", Attributes::PowerFactorPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "average-rms-voltage-measurement-period-phase-b", + Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "average-rms-over-voltage-counter-phase-b", + Attributes::AverageRmsOverVoltageCounterPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "average-rms-under-voltage-counter-phase-b", + Attributes::AverageRmsUnderVoltageCounterPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "rms-extreme-over-voltage-period-phase-b", Attributes::RmsExtremeOverVoltagePeriodPhaseB::Id, + credsIssuerConfig), // + make_unique(Id, "rms-extreme-under-voltage-period-phase-b", + Attributes::RmsExtremeUnderVoltagePeriodPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-sag-period-phase-b", Attributes::RmsVoltageSagPeriodPhaseB::Id, + credsIssuerConfig), // + make_unique(Id, "rms-voltage-swell-period-phase-b", Attributes::RmsVoltageSwellPeriodPhaseB::Id, + credsIssuerConfig), // + make_unique(Id, "line-current-phase-c", Attributes::LineCurrentPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "active-current-phase-c", Attributes::ActiveCurrentPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "reactive-current-phase-c", Attributes::ReactiveCurrentPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-phase-c", Attributes::RmsVoltagePhaseC::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-min-phase-c", Attributes::RmsVoltageMinPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-max-phase-c", Attributes::RmsVoltageMaxPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "rms-current-phase-c", Attributes::RmsCurrentPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "rms-current-min-phase-c", Attributes::RmsCurrentMinPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "rms-current-max-phase-c", Attributes::RmsCurrentMaxPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "active-power-phase-c", Attributes::ActivePowerPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "active-power-min-phase-c", Attributes::ActivePowerMinPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "active-power-max-phase-c", Attributes::ActivePowerMaxPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "reactive-power-phase-c", Attributes::ReactivePowerPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "apparent-power-phase-c", Attributes::ApparentPowerPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "power-factor-phase-c", Attributes::PowerFactorPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "average-rms-voltage-measurement-period-phase-c", + Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "average-rms-over-voltage-counter-phase-c", + Attributes::AverageRmsOverVoltageCounterPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "average-rms-under-voltage-counter-phase-c", + Attributes::AverageRmsUnderVoltageCounterPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "rms-extreme-over-voltage-period-phase-c", Attributes::RmsExtremeOverVoltagePeriodPhaseC::Id, + credsIssuerConfig), // + make_unique(Id, "rms-extreme-under-voltage-period-phase-c", + Attributes::RmsExtremeUnderVoltagePeriodPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-sag-period-phase-c", Attributes::RmsVoltageSagPeriodPhaseC::Id, + credsIssuerConfig), // + make_unique(Id, "rms-voltage-swell-period-phase-c", Attributes::RmsVoltageSwellPeriodPhaseC::Id, + credsIssuerConfig), // make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::Id, - credsIssuerConfig), // - make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // - make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, "measurement-type", Attributes::MeasurementType::Id, credsIssuerConfig), // - make_unique(Id, "total-active-power", Attributes::TotalActivePower::Id, credsIssuerConfig), // - make_unique(Id, "rms-voltage", Attributes::RmsVoltage::Id, credsIssuerConfig), // - make_unique(Id, "rms-voltage-min", Attributes::RmsVoltageMin::Id, credsIssuerConfig), // - make_unique(Id, "rms-voltage-max", Attributes::RmsVoltageMax::Id, credsIssuerConfig), // - make_unique(Id, "rms-current", Attributes::RmsCurrent::Id, credsIssuerConfig), // - make_unique(Id, "rms-current-min", Attributes::RmsCurrentMin::Id, credsIssuerConfig), // - make_unique(Id, "rms-current-max", Attributes::RmsCurrentMax::Id, credsIssuerConfig), // - make_unique(Id, "active-power", Attributes::ActivePower::Id, credsIssuerConfig), // - make_unique(Id, "active-power-min", Attributes::ActivePowerMin::Id, credsIssuerConfig), // - make_unique(Id, "active-power-max", Attributes::ActivePowerMax::Id, credsIssuerConfig), // + 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(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + make_unique(Id, "measurement-type", Attributes::MeasurementType::Id, credsIssuerConfig), // + make_unique(Id, "dc-voltage", Attributes::DcVoltage::Id, credsIssuerConfig), // + make_unique(Id, "dc-voltage-min", Attributes::DcVoltageMin::Id, credsIssuerConfig), // + make_unique(Id, "dc-voltage-max", Attributes::DcVoltageMax::Id, credsIssuerConfig), // + make_unique(Id, "dc-current", Attributes::DcCurrent::Id, credsIssuerConfig), // + make_unique(Id, "dc-current-min", Attributes::DcCurrentMin::Id, credsIssuerConfig), // + make_unique(Id, "dc-current-max", Attributes::DcCurrentMax::Id, credsIssuerConfig), // + make_unique(Id, "dc-power", Attributes::DcPower::Id, credsIssuerConfig), // + make_unique(Id, "dc-power-min", Attributes::DcPowerMin::Id, credsIssuerConfig), // + make_unique(Id, "dc-power-max", Attributes::DcPowerMax::Id, credsIssuerConfig), // + make_unique(Id, "dc-voltage-multiplier", Attributes::DcVoltageMultiplier::Id, credsIssuerConfig), // + make_unique(Id, "dc-voltage-divisor", Attributes::DcVoltageDivisor::Id, credsIssuerConfig), // + make_unique(Id, "dc-current-multiplier", Attributes::DcCurrentMultiplier::Id, credsIssuerConfig), // + make_unique(Id, "dc-current-divisor", Attributes::DcCurrentDivisor::Id, credsIssuerConfig), // + make_unique(Id, "dc-power-multiplier", Attributes::DcPowerMultiplier::Id, credsIssuerConfig), // + make_unique(Id, "dc-power-divisor", Attributes::DcPowerDivisor::Id, credsIssuerConfig), // + make_unique(Id, "ac-frequency", Attributes::AcFrequency::Id, credsIssuerConfig), // + make_unique(Id, "ac-frequency-min", Attributes::AcFrequencyMin::Id, credsIssuerConfig), // + make_unique(Id, "ac-frequency-max", Attributes::AcFrequencyMax::Id, credsIssuerConfig), // + make_unique(Id, "neutral-current", Attributes::NeutralCurrent::Id, credsIssuerConfig), // + make_unique(Id, "total-active-power", Attributes::TotalActivePower::Id, credsIssuerConfig), // + make_unique(Id, "total-reactive-power", Attributes::TotalReactivePower::Id, credsIssuerConfig), // + make_unique(Id, "total-apparent-power", Attributes::TotalApparentPower::Id, credsIssuerConfig), // + make_unique(Id, "measured1st-harmonic-current", Attributes::Measured1stHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured3rd-harmonic-current", Attributes::Measured3rdHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured5th-harmonic-current", Attributes::Measured5thHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured7th-harmonic-current", Attributes::Measured7thHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured9th-harmonic-current", Attributes::Measured9thHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured11th-harmonic-current", Attributes::Measured11thHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured-phase1st-harmonic-current", Attributes::MeasuredPhase1stHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured-phase3rd-harmonic-current", Attributes::MeasuredPhase3rdHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured-phase5th-harmonic-current", Attributes::MeasuredPhase5thHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured-phase7th-harmonic-current", Attributes::MeasuredPhase7thHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured-phase9th-harmonic-current", Attributes::MeasuredPhase9thHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "measured-phase11th-harmonic-current", Attributes::MeasuredPhase11thHarmonicCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "ac-frequency-multiplier", Attributes::AcFrequencyMultiplier::Id, credsIssuerConfig), // + make_unique(Id, "ac-frequency-divisor", Attributes::AcFrequencyDivisor::Id, credsIssuerConfig), // + make_unique(Id, "power-multiplier", Attributes::PowerMultiplier::Id, credsIssuerConfig), // + make_unique(Id, "power-divisor", Attributes::PowerDivisor::Id, credsIssuerConfig), // + make_unique(Id, "harmonic-current-multiplier", Attributes::HarmonicCurrentMultiplier::Id, + credsIssuerConfig), // + make_unique(Id, "phase-harmonic-current-multiplier", Attributes::PhaseHarmonicCurrentMultiplier::Id, + credsIssuerConfig), // + make_unique(Id, "instantaneous-voltage", Attributes::InstantaneousVoltage::Id, credsIssuerConfig), // + make_unique(Id, "instantaneous-line-current", Attributes::InstantaneousLineCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "instantaneous-active-current", Attributes::InstantaneousActiveCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "instantaneous-reactive-current", Attributes::InstantaneousReactiveCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "instantaneous-power", Attributes::InstantaneousPower::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage", Attributes::RmsVoltage::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-min", Attributes::RmsVoltageMin::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-max", Attributes::RmsVoltageMax::Id, credsIssuerConfig), // + make_unique(Id, "rms-current", Attributes::RmsCurrent::Id, credsIssuerConfig), // + make_unique(Id, "rms-current-min", Attributes::RmsCurrentMin::Id, credsIssuerConfig), // + make_unique(Id, "rms-current-max", Attributes::RmsCurrentMax::Id, credsIssuerConfig), // + make_unique(Id, "active-power", Attributes::ActivePower::Id, credsIssuerConfig), // + make_unique(Id, "active-power-min", Attributes::ActivePowerMin::Id, credsIssuerConfig), // + make_unique(Id, "active-power-max", Attributes::ActivePowerMax::Id, credsIssuerConfig), // + make_unique(Id, "reactive-power", Attributes::ReactivePower::Id, credsIssuerConfig), // + make_unique(Id, "apparent-power", Attributes::ApparentPower::Id, credsIssuerConfig), // + make_unique(Id, "power-factor", Attributes::PowerFactor::Id, credsIssuerConfig), // + make_unique(Id, "average-rms-voltage-measurement-period", + Attributes::AverageRmsVoltageMeasurementPeriod::Id, credsIssuerConfig), // + make_unique(Id, "average-rms-under-voltage-counter", Attributes::AverageRmsUnderVoltageCounter::Id, + credsIssuerConfig), // + make_unique(Id, "rms-extreme-over-voltage-period", Attributes::RmsExtremeOverVoltagePeriod::Id, + credsIssuerConfig), // + make_unique(Id, "rms-extreme-under-voltage-period", Attributes::RmsExtremeUnderVoltagePeriod::Id, + credsIssuerConfig), // + make_unique(Id, "rms-voltage-sag-period", Attributes::RmsVoltageSagPeriod::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-swell-period", Attributes::RmsVoltageSwellPeriod::Id, + credsIssuerConfig), // + make_unique(Id, "ac-voltage-multiplier", Attributes::AcVoltageMultiplier::Id, credsIssuerConfig), // + make_unique(Id, "ac-voltage-divisor", Attributes::AcVoltageDivisor::Id, credsIssuerConfig), // + make_unique(Id, "ac-current-multiplier", Attributes::AcCurrentMultiplier::Id, credsIssuerConfig), // + make_unique(Id, "ac-current-divisor", Attributes::AcCurrentDivisor::Id, credsIssuerConfig), // + make_unique(Id, "ac-power-multiplier", Attributes::AcPowerMultiplier::Id, credsIssuerConfig), // + make_unique(Id, "ac-power-divisor", Attributes::AcPowerDivisor::Id, credsIssuerConfig), // + make_unique(Id, "overload-alarms-mask", Attributes::OverloadAlarmsMask::Id, credsIssuerConfig), // + make_unique(Id, "voltage-overload", Attributes::VoltageOverload::Id, credsIssuerConfig), // + make_unique(Id, "current-overload", Attributes::CurrentOverload::Id, credsIssuerConfig), // + make_unique(Id, "ac-overload-alarms-mask", Attributes::AcOverloadAlarmsMask::Id, credsIssuerConfig), // + make_unique(Id, "ac-voltage-overload", Attributes::AcVoltageOverload::Id, credsIssuerConfig), // + make_unique(Id, "ac-current-overload", Attributes::AcCurrentOverload::Id, credsIssuerConfig), // + make_unique(Id, "ac-active-power-overload", Attributes::AcActivePowerOverload::Id, + credsIssuerConfig), // + make_unique(Id, "ac-reactive-power-overload", Attributes::AcReactivePowerOverload::Id, + credsIssuerConfig), // + make_unique(Id, "average-rms-over-voltage", Attributes::AverageRmsOverVoltage::Id, + credsIssuerConfig), // + make_unique(Id, "average-rms-under-voltage", Attributes::AverageRmsUnderVoltage::Id, + credsIssuerConfig), // + make_unique(Id, "rms-extreme-over-voltage", Attributes::RmsExtremeOverVoltage::Id, + credsIssuerConfig), // + make_unique(Id, "rms-extreme-under-voltage", Attributes::RmsExtremeUnderVoltage::Id, + credsIssuerConfig), // + make_unique(Id, "rms-voltage-sag", Attributes::RmsVoltageSag::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-swell", Attributes::RmsVoltageSwell::Id, credsIssuerConfig), // + make_unique(Id, "line-current-phase-b", Attributes::LineCurrentPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "active-current-phase-b", Attributes::ActiveCurrentPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "reactive-current-phase-b", Attributes::ReactiveCurrentPhaseB::Id, + credsIssuerConfig), // + make_unique(Id, "rms-voltage-phase-b", Attributes::RmsVoltagePhaseB::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-min-phase-b", Attributes::RmsVoltageMinPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-max-phase-b", Attributes::RmsVoltageMaxPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "rms-current-phase-b", Attributes::RmsCurrentPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "rms-current-min-phase-b", Attributes::RmsCurrentMinPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "rms-current-max-phase-b", Attributes::RmsCurrentMaxPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "active-power-phase-b", Attributes::ActivePowerPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "active-power-min-phase-b", Attributes::ActivePowerMinPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "active-power-max-phase-b", Attributes::ActivePowerMaxPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "reactive-power-phase-b", Attributes::ReactivePowerPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "apparent-power-phase-b", Attributes::ApparentPowerPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "power-factor-phase-b", Attributes::PowerFactorPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "average-rms-voltage-measurement-period-phase-b", + Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "average-rms-over-voltage-counter-phase-b", + Attributes::AverageRmsOverVoltageCounterPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "average-rms-under-voltage-counter-phase-b", + Attributes::AverageRmsUnderVoltageCounterPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "rms-extreme-over-voltage-period-phase-b", + Attributes::RmsExtremeOverVoltagePeriodPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "rms-extreme-under-voltage-period-phase-b", + Attributes::RmsExtremeUnderVoltagePeriodPhaseB::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-sag-period-phase-b", Attributes::RmsVoltageSagPeriodPhaseB::Id, + credsIssuerConfig), // + make_unique(Id, "rms-voltage-swell-period-phase-b", Attributes::RmsVoltageSwellPeriodPhaseB::Id, + credsIssuerConfig), // + make_unique(Id, "line-current-phase-c", Attributes::LineCurrentPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "active-current-phase-c", Attributes::ActiveCurrentPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "reactive-current-phase-c", Attributes::ReactiveCurrentPhaseC::Id, + credsIssuerConfig), // + make_unique(Id, "rms-voltage-phase-c", Attributes::RmsVoltagePhaseC::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-min-phase-c", Attributes::RmsVoltageMinPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-max-phase-c", Attributes::RmsVoltageMaxPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "rms-current-phase-c", Attributes::RmsCurrentPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "rms-current-min-phase-c", Attributes::RmsCurrentMinPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "rms-current-max-phase-c", Attributes::RmsCurrentMaxPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "active-power-phase-c", Attributes::ActivePowerPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "active-power-min-phase-c", Attributes::ActivePowerMinPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "active-power-max-phase-c", Attributes::ActivePowerMaxPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "reactive-power-phase-c", Attributes::ReactivePowerPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "apparent-power-phase-c", Attributes::ApparentPowerPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "power-factor-phase-c", Attributes::PowerFactorPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "average-rms-voltage-measurement-period-phase-c", + Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "average-rms-over-voltage-counter-phase-c", + Attributes::AverageRmsOverVoltageCounterPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "average-rms-under-voltage-counter-phase-c", + Attributes::AverageRmsUnderVoltageCounterPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "rms-extreme-over-voltage-period-phase-c", + Attributes::RmsExtremeOverVoltagePeriodPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "rms-extreme-under-voltage-period-phase-c", + Attributes::RmsExtremeUnderVoltagePeriodPhaseC::Id, credsIssuerConfig), // + make_unique(Id, "rms-voltage-sag-period-phase-c", Attributes::RmsVoltageSagPeriodPhaseC::Id, + credsIssuerConfig), // + make_unique(Id, "rms-voltage-swell-period-phase-c", Attributes::RmsVoltageSwellPeriodPhaseC::Id, + credsIssuerConfig), // make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -10592,6 +13554,7 @@ void registerClusterFixedLabel(Commands & commands, CredentialIssuerCommands * c make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -10601,6 +13564,7 @@ void registerClusterFixedLabel(Commands & commands, CredentialIssuerCommands * c make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -10635,6 +13599,7 @@ void registerClusterFlowMeasurement(Commands & commands, CredentialIssuerCommand make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -10647,6 +13612,7 @@ void registerClusterFlowMeasurement(Commands & commands, CredentialIssuerCommand make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -10669,8 +13635,8 @@ void registerClusterGeneralCommissioning(Commands & commands, CredentialIssuerCo // make_unique(Id, credsIssuerConfig), // make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // // // Attributes // @@ -10684,6 +13650,7 @@ void registerClusterGeneralCommissioning(Commands & commands, CredentialIssuerCo make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // @@ -10698,6 +13665,7 @@ void registerClusterGeneralCommissioning(Commands & commands, CredentialIssuerCo make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -10736,6 +13704,7 @@ void registerClusterGeneralDiagnostics(Commands & commands, CredentialIssuerComm make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -10752,6 +13721,7 @@ void registerClusterGeneralDiagnostics(Commands & commands, CredentialIssuerComm make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -10781,10 +13751,10 @@ void registerClusterGroupKeyManagement(Commands & commands, CredentialIssuerComm // Commands // make_unique(Id, credsIssuerConfig), // + make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // // // Attributes // @@ -10798,6 +13768,7 @@ void registerClusterGroupKeyManagement(Commands & commands, CredentialIssuerComm make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // @@ -10812,6 +13783,7 @@ void registerClusterGroupKeyManagement(Commands & commands, CredentialIssuerComm make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -10834,11 +13806,11 @@ void registerClusterGroups(Commands & commands, CredentialIssuerCommands * creds // 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 // @@ -10849,6 +13821,7 @@ void registerClusterGroups(Commands & commands, CredentialIssuerCommands * creds make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -10858,6 +13831,7 @@ void registerClusterGroups(Commands & commands, CredentialIssuerCommands * creds make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -10893,6 +13867,7 @@ void registerClusterIdentify(Commands & commands, CredentialIssuerCommands * cre make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // @@ -10904,6 +13879,7 @@ void registerClusterIdentify(Commands & commands, CredentialIssuerCommands * cre make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -10939,6 +13915,7 @@ void registerClusterIlluminanceMeasurement(Commands & commands, CredentialIssuer make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -10952,6 +13929,7 @@ void registerClusterIlluminanceMeasurement(Commands & commands, CredentialIssuer make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -10983,6 +13961,7 @@ void registerClusterKeypadInput(Commands & commands, CredentialIssuerCommands * make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -10991,6 +13970,7 @@ void registerClusterKeypadInput(Commands & commands, CredentialIssuerCommands * make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -11012,13 +13992,13 @@ void registerClusterLevelControl(Commands & commands, CredentialIssuerCommands * // 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), // // // Attributes @@ -11105,6 +14085,8 @@ void registerClusterLocalizationConfiguration(Commands & commands, CredentialIss credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // @@ -11115,6 +14097,8 @@ void registerClusterLocalizationConfiguration(Commands & commands, CredentialIss credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -11146,6 +14130,7 @@ void registerClusterLowPower(Commands & commands, CredentialIssuerCommands * cre make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -11154,6 +14139,7 @@ void registerClusterLowPower(Commands & commands, CredentialIssuerCommands * cre make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -11175,10 +14161,10 @@ void registerClusterMediaInput(Commands & commands, CredentialIssuerCommands * c // Commands // make_unique(Id, credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // // // Attributes // @@ -11190,6 +14176,7 @@ void registerClusterMediaInput(Commands & commands, CredentialIssuerCommands * c make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -11200,6 +14187,7 @@ void registerClusterMediaInput(Commands & commands, CredentialIssuerCommands * c make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -11221,17 +14209,17 @@ void registerClusterMediaPlayback(Commands & commands, CredentialIssuerCommands // 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), // // // Attributes // @@ -11239,6 +14227,7 @@ void registerClusterMediaPlayback(Commands & commands, CredentialIssuerCommands make_unique(Id, "playback-state", Attributes::PlaybackState::Id, credsIssuerConfig), // make_unique(Id, "start-time", Attributes::StartTime::Id, credsIssuerConfig), // make_unique(Id, "duration", Attributes::Duration::Id, credsIssuerConfig), // + make_unique(Id, "position", Attributes::Position::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), // @@ -11247,12 +14236,15 @@ void registerClusterMediaPlayback(Commands & commands, CredentialIssuerCommands make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "playback-state", Attributes::PlaybackState::Id, credsIssuerConfig), // make_unique(Id, "start-time", Attributes::StartTime::Id, credsIssuerConfig), // make_unique(Id, "duration", Attributes::Duration::Id, credsIssuerConfig), // + make_unique(Id, "position", Attributes::Position::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), // @@ -11261,6 +14253,7 @@ void registerClusterMediaPlayback(Commands & commands, CredentialIssuerCommands make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -11297,6 +14290,7 @@ void registerClusterModeSelect(Commands & commands, CredentialIssuerCommands * c make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // @@ -11311,6 +14305,7 @@ void registerClusterModeSelect(Commands & commands, CredentialIssuerCommands * c make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -11332,12 +14327,12 @@ void registerClusterNetworkCommissioning(Commands & commands, CredentialIssuerCo // 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 // @@ -11354,6 +14349,7 @@ void registerClusterNetworkCommissioning(Commands & commands, CredentialIssuerCo credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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), // @@ -11373,6 +14369,7 @@ void registerClusterNetworkCommissioning(Commands & commands, CredentialIssuerCo credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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), // // @@ -11395,18 +14392,28 @@ void registerClusterOtaSoftwareUpdateProvider(Commands & commands, CredentialIss // 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, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // - make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, + credsIssuerConfig), // + make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // + make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, + credsIssuerConfig), // + make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -11432,12 +14439,17 @@ void registerClusterOtaSoftwareUpdateRequestor(Commands & commands, CredentialIs // // Attributes // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, "default-ota-providers", 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, credsIssuerConfig), // + make_unique(Id, "default-ota-providers", 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, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, + credsIssuerConfig), // + make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // @@ -11446,8 +14458,13 @@ void registerClusterOtaSoftwareUpdateRequestor(Commands & commands, CredentialIs 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, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // - make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // + make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, + credsIssuerConfig), // + make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 // @@ -11482,23 +14499,70 @@ void registerClusterOccupancySensing(Commands & commands, CredentialIssuerComman make_unique(Id, "occupancy-sensor-type", Attributes::OccupancySensorType::Id, credsIssuerConfig), // make_unique(Id, "occupancy-sensor-type-bitmap", Attributes::OccupancySensorTypeBitmap::Id, credsIssuerConfig), // + make_unique(Id, "pir-occupied-to-unoccupied-delay", Attributes::PirOccupiedToUnoccupiedDelay::Id, + credsIssuerConfig), // + make_unique(Id, "pir-unoccupied-to-occupied-delay", Attributes::PirUnoccupiedToOccupiedDelay::Id, + credsIssuerConfig), // + make_unique(Id, "pir-unoccupied-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, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(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(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, "pir-occupied-to-unoccupied-delay", Attributes::PirOccupiedToUnoccupiedDelay::Id, + credsIssuerConfig), // + make_unique(Id, "pir-unoccupied-to-occupied-delay", Attributes::PirUnoccupiedToOccupiedDelay::Id, + credsIssuerConfig), // + make_unique(Id, "pir-unoccupied-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, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -11521,11 +14585,11 @@ void registerClusterOnOff(Commands & commands, CredentialIssuerCommands * credsI // 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 // @@ -11590,6 +14654,7 @@ void registerClusterOnOffSwitchConfiguration(Commands & commands, CredentialIssu make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // @@ -11601,6 +14666,7 @@ void registerClusterOnOffSwitchConfiguration(Commands & commands, CredentialIssu make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -11622,15 +14688,15 @@ void registerClusterOperationalCredentials(Commands & commands, CredentialIssuer // 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 // @@ -11646,6 +14712,7 @@ void registerClusterOperationalCredentials(Commands & commands, CredentialIssuer make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -11661,6 +14728,7 @@ void registerClusterOperationalCredentials(Commands & commands, CredentialIssuer make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -11685,35 +14753,99 @@ void registerClusterPowerSource(Commands & commands, CredentialIssuerCommands * // // 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, 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, "battery-voltage", Attributes::BatteryVoltage::Id, credsIssuerConfig), // make_unique(Id, "battery-percent-remaining", Attributes::BatteryPercentRemaining::Id, credsIssuerConfig), // make_unique(Id, "battery-time-remaining", Attributes::BatteryTimeRemaining::Id, credsIssuerConfig), // make_unique(Id, "battery-charge-level", Attributes::BatteryChargeLevel::Id, credsIssuerConfig), // - make_unique(Id, "active-battery-faults", Attributes::ActiveBatteryFaults::Id, credsIssuerConfig), // - make_unique(Id, "battery-charge-state", Attributes::BatteryChargeState::Id, credsIssuerConfig), // + make_unique(Id, "battery-replacement-needed", Attributes::BatteryReplacementNeeded::Id, + credsIssuerConfig), // + make_unique(Id, "battery-replaceability", Attributes::BatteryReplaceability::Id, credsIssuerConfig), // + make_unique(Id, "battery-present", Attributes::BatteryPresent::Id, credsIssuerConfig), // + make_unique(Id, "active-battery-faults", Attributes::ActiveBatteryFaults::Id, credsIssuerConfig), // + make_unique(Id, "battery-replacement-description", Attributes::BatteryReplacementDescription::Id, + credsIssuerConfig), // + make_unique(Id, "battery-common-designation", Attributes::BatteryCommonDesignation::Id, + credsIssuerConfig), // + make_unique(Id, "battery-ansidesignation", Attributes::BatteryANSIDesignation::Id, credsIssuerConfig), // + make_unique(Id, "battery-iecdesignation", Attributes::BatteryIECDesignation::Id, credsIssuerConfig), // + make_unique(Id, "battery-approved-chemistry", Attributes::BatteryApprovedChemistry::Id, + credsIssuerConfig), // + make_unique(Id, "battery-capacity", Attributes::BatteryCapacity::Id, credsIssuerConfig), // + make_unique(Id, "battery-quantity", Attributes::BatteryQuantity::Id, credsIssuerConfig), // + make_unique(Id, "battery-charge-state", Attributes::BatteryChargeState::Id, credsIssuerConfig), // + make_unique(Id, "battery-time-to-full-charge", Attributes::BatteryTimeToFullCharge::Id, + credsIssuerConfig), // + make_unique(Id, "battery-functional-while-charging", Attributes::BatteryFunctionalWhileCharging::Id, + credsIssuerConfig), // + make_unique(Id, "battery-charging-current", Attributes::BatteryChargingCurrent::Id, credsIssuerConfig), // + make_unique(Id, "active-battery-charge-faults", Attributes::ActiveBatteryChargeFaults::Id, + credsIssuerConfig), // make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, 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, "battery-voltage", Attributes::BatteryVoltage::Id, credsIssuerConfig), // + 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, 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, "battery-voltage", Attributes::BatteryVoltage::Id, credsIssuerConfig), // make_unique(Id, "battery-percent-remaining", Attributes::BatteryPercentRemaining::Id, credsIssuerConfig), // make_unique(Id, "battery-time-remaining", Attributes::BatteryTimeRemaining::Id, credsIssuerConfig), // make_unique(Id, "battery-charge-level", Attributes::BatteryChargeLevel::Id, credsIssuerConfig), // - make_unique(Id, "active-battery-faults", Attributes::ActiveBatteryFaults::Id, credsIssuerConfig), // - make_unique(Id, "battery-charge-state", Attributes::BatteryChargeState::Id, credsIssuerConfig), // + make_unique(Id, "battery-replacement-needed", Attributes::BatteryReplacementNeeded::Id, + credsIssuerConfig), // + make_unique(Id, "battery-replaceability", Attributes::BatteryReplaceability::Id, credsIssuerConfig), // + make_unique(Id, "battery-present", Attributes::BatteryPresent::Id, credsIssuerConfig), // + make_unique(Id, "active-battery-faults", Attributes::ActiveBatteryFaults::Id, credsIssuerConfig), // + make_unique(Id, "battery-replacement-description", Attributes::BatteryReplacementDescription::Id, + credsIssuerConfig), // + make_unique(Id, "battery-common-designation", Attributes::BatteryCommonDesignation::Id, + credsIssuerConfig), // + make_unique(Id, "battery-ansidesignation", Attributes::BatteryANSIDesignation::Id, + credsIssuerConfig), // + make_unique(Id, "battery-iecdesignation", Attributes::BatteryIECDesignation::Id, credsIssuerConfig), // + make_unique(Id, "battery-approved-chemistry", Attributes::BatteryApprovedChemistry::Id, + credsIssuerConfig), // + make_unique(Id, "battery-capacity", Attributes::BatteryCapacity::Id, credsIssuerConfig), // + make_unique(Id, "battery-quantity", Attributes::BatteryQuantity::Id, credsIssuerConfig), // + make_unique(Id, "battery-charge-state", Attributes::BatteryChargeState::Id, credsIssuerConfig), // + make_unique(Id, "battery-time-to-full-charge", Attributes::BatteryTimeToFullCharge::Id, + credsIssuerConfig), // + make_unique(Id, "battery-functional-while-charging", Attributes::BatteryFunctionalWhileCharging::Id, + credsIssuerConfig), // + make_unique(Id, "battery-charging-current", Attributes::BatteryChargingCurrent::Id, + credsIssuerConfig), // + make_unique(Id, "active-battery-charge-faults", Attributes::ActiveBatteryChargeFaults::Id, + credsIssuerConfig), // make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::Id, @@ -11751,6 +14883,7 @@ void registerClusterPowerSourceConfiguration(Commands & commands, CredentialIssu make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -11760,6 +14893,7 @@ void registerClusterPowerSourceConfiguration(Commands & commands, CredentialIssu make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -11784,19 +14918,41 @@ void registerClusterPressureMeasurement(Commands & commands, CredentialIssuerCom // // 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, 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, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, + credsIssuerConfig), // + make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, 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, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // - make_unique(Id, "cluster-revision", Attributes::ClusterRevision::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, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, + credsIssuerConfig), // + make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 // @@ -11959,6 +15115,7 @@ void registerClusterRelativeHumidityMeasurement(Commands & commands, CredentialI make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -11971,6 +15128,7 @@ void registerClusterRelativeHumidityMeasurement(Commands & commands, CredentialI make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -11993,39 +15151,46 @@ void registerClusterScenes(Commands & commands, CredentialIssuerCommands * creds // 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, "scene-count", Attributes::SceneCount::Id, credsIssuerConfig), // - make_unique(Id, "current-scene", Attributes::CurrentScene::Id, credsIssuerConfig), // - make_unique(Id, "current-group", Attributes::CurrentGroup::Id, credsIssuerConfig), // - make_unique(Id, "scene-valid", Attributes::SceneValid::Id, credsIssuerConfig), // - make_unique(Id, "name-support", Attributes::NameSupport::Id, credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + make_unique(Id, "scene-count", Attributes::SceneCount::Id, credsIssuerConfig), // + make_unique(Id, "current-scene", Attributes::CurrentScene::Id, credsIssuerConfig), // + make_unique(Id, "current-group", Attributes::CurrentGroup::Id, credsIssuerConfig), // + make_unique(Id, "scene-valid", Attributes::SceneValid::Id, credsIssuerConfig), // + make_unique(Id, "name-support", Attributes::NameSupport::Id, credsIssuerConfig), // + make_unique(Id, "last-configured-by", Attributes::LastConfiguredBy::Id, credsIssuerConfig), // make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::Id, - credsIssuerConfig), // - make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // - make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, "scene-count", Attributes::SceneCount::Id, credsIssuerConfig), // - make_unique(Id, "current-scene", Attributes::CurrentScene::Id, credsIssuerConfig), // - make_unique(Id, "current-group", Attributes::CurrentGroup::Id, credsIssuerConfig), // - make_unique(Id, "scene-valid", Attributes::SceneValid::Id, credsIssuerConfig), // - make_unique(Id, "name-support", Attributes::NameSupport::Id, credsIssuerConfig), // + 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, credsIssuerConfig), // + make_unique(Id, "scene-count", Attributes::SceneCount::Id, credsIssuerConfig), // + make_unique(Id, "current-scene", Attributes::CurrentScene::Id, credsIssuerConfig), // + make_unique(Id, "current-group", Attributes::CurrentGroup::Id, credsIssuerConfig), // + make_unique(Id, "scene-valid", Attributes::SceneValid::Id, credsIssuerConfig), // + make_unique(Id, "name-support", Attributes::NameSupport::Id, credsIssuerConfig), // + make_unique(Id, "last-configured-by", Attributes::LastConfiguredBy::Id, credsIssuerConfig), // make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -12172,6 +15337,7 @@ void registerClusterTargetNavigator(Commands & commands, CredentialIssuerCommand make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -12183,6 +15349,7 @@ void registerClusterTargetNavigator(Commands & commands, CredentialIssuerCommand make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -12207,12 +15374,17 @@ void registerClusterTemperatureMeasurement(Commands & commands, CredentialIssuer // // 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, 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, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, + credsIssuerConfig), // + make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -12220,8 +15392,13 @@ void registerClusterTemperatureMeasurement(Commands & commands, CredentialIssuer 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, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // - make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // + make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, + credsIssuerConfig), // + make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 // @@ -12242,24 +15419,28 @@ void registerClusterTestCluster(Commands & commands, CredentialIssuerCommands * // 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), // - make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // // // Attributes // @@ -12308,6 +15489,7 @@ void registerClusterTestCluster(Commands & commands, CredentialIssuerCommands * 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), // @@ -12354,6 +15536,7 @@ void registerClusterTestCluster(Commands & commands, CredentialIssuerCommands * make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // @@ -12481,6 +15664,7 @@ void registerClusterTestCluster(Commands & commands, CredentialIssuerCommands * 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), // @@ -12527,6 +15711,7 @@ void registerClusterTestCluster(Commands & commands, CredentialIssuerCommands * make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -12552,16 +15737,18 @@ void registerClusterThermostat(Commands & commands, CredentialIssuerCommands * c // 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, "local-temperature", Attributes::LocalTemperature::Id, 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, @@ -12569,37 +15756,89 @@ void registerClusterThermostat(Commands & commands, CredentialIssuerCommands * c 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, "pi-cooling-demand", Attributes::PiCoolingDemand::Id, credsIssuerConfig), // + make_unique(Id, "pi-heating-demand", Attributes::PiHeatingDemand::Id, credsIssuerConfig), // + make_unique(Id, "hvac-system-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, "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, "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, "start-of-week", Attributes::StartOfWeek::Id, credsIssuerConfig), // + credsIssuerConfig), // + make_unique(Id, "system-mode", Attributes::SystemMode::Id, credsIssuerConfig), // + make_unique(Id, "alarm-mask", Attributes::AlarmMask::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, "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(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(Id, credsIssuerConfig), // - make_unique(Id, "local-temperature", Attributes::LocalTemperature::Id, credsIssuerConfig), // + 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, "ac-type", Attributes::AcType::Id, credsIssuerConfig), // + make_unique(Id, "ac-capacity", Attributes::AcCapacity::Id, credsIssuerConfig), // + make_unique(Id, "ac-refrigerant-type", Attributes::AcRefrigerantType::Id, credsIssuerConfig), // + make_unique(Id, "ac-compressor", Attributes::AcCompressor::Id, credsIssuerConfig), // + make_unique(Id, "ac-error-code", Attributes::AcErrorCode::Id, credsIssuerConfig), // + make_unique(Id, "ac-louver-position", Attributes::AcLouverPosition::Id, credsIssuerConfig), // + make_unique(Id, "ac-coil-temperature", Attributes::AcCoilTemperature::Id, credsIssuerConfig), // + make_unique(Id, "ac-capacity-format", Attributes::AcCapacityFormat::Id, credsIssuerConfig), // + make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, + credsIssuerConfig), // + make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(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(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, @@ -12607,23 +15846,60 @@ void registerClusterThermostat(Commands & commands, CredentialIssuerCommands * c 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, "pi-cooling-demand", Attributes::PiCoolingDemand::Id, credsIssuerConfig), // + make_unique(Id, "pi-heating-demand", Attributes::PiHeatingDemand::Id, credsIssuerConfig), // + make_unique(Id, "hvac-system-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, "start-of-week", Attributes::StartOfWeek::Id, credsIssuerConfig), // + credsIssuerConfig), // + make_unique(Id, "system-mode", Attributes::SystemMode::Id, credsIssuerConfig), // + make_unique(Id, "alarm-mask", Attributes::AlarmMask::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, "ac-type", Attributes::AcType::Id, credsIssuerConfig), // + make_unique(Id, "ac-capacity", Attributes::AcCapacity::Id, credsIssuerConfig), // + make_unique(Id, "ac-refrigerant-type", Attributes::AcRefrigerantType::Id, credsIssuerConfig), // + make_unique(Id, "ac-compressor", Attributes::AcCompressor::Id, credsIssuerConfig), // + make_unique(Id, "ac-error-code", Attributes::AcErrorCode::Id, credsIssuerConfig), // + make_unique(Id, "ac-louver-position", Attributes::AcLouverPosition::Id, credsIssuerConfig), // + make_unique(Id, "ac-coil-temperature", Attributes::AcCoilTemperature::Id, credsIssuerConfig), // + make_unique(Id, "ac-capacity-format", Attributes::AcCapacityFormat::Id, credsIssuerConfig), // + make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, + credsIssuerConfig), // + make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // @@ -12661,6 +15937,7 @@ void registerClusterThermostatUserInterfaceConfiguration(Commands & commands, Cr make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // @@ -12677,6 +15954,7 @@ void registerClusterThermostatUserInterfaceConfiguration(Commands & commands, Cr make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -12897,6 +16175,8 @@ void registerClusterTimeFormatLocalization(Commands & commands, CredentialIssuer credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // @@ -12910,6 +16190,8 @@ void registerClusterTimeFormatLocalization(Commands & commands, CredentialIssuer credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -12934,8 +16216,12 @@ void registerClusterUnitLocalization(Commands & commands, CredentialIssuerComman // // Attributes // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, "temperature-unit", Attributes::TemperatureUnit::Id, credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + make_unique(Id, "temperature-unit", Attributes::TemperatureUnit::Id, credsIssuerConfig), // + make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, + credsIssuerConfig), // + make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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), // @@ -12943,6 +16229,10 @@ void registerClusterUnitLocalization(Commands & commands, CredentialIssuerComman make_unique(credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "temperature-unit", Attributes::TemperatureUnit::Id, credsIssuerConfig), // + make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, + credsIssuerConfig), // + make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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), // @@ -12975,6 +16265,8 @@ void registerClusterUserLabel(Commands & commands, CredentialIssuerCommands * cr credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // @@ -12984,6 +16276,8 @@ void registerClusterUserLabel(Commands & commands, CredentialIssuerCommands * cr credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -13015,6 +16309,7 @@ void registerClusterWakeOnLan(Commands & commands, CredentialIssuerCommands * cr make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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, credsIssuerConfig), // @@ -13024,6 +16319,7 @@ void registerClusterWakeOnLan(Commands & commands, CredentialIssuerCommands * cr make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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 @@ -13120,21 +16416,25 @@ void registerClusterWindowCovering(Commands & commands, CredentialIssuerCommands // 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), // // // Attributes // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, "type", Attributes::Type::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, "config-status", Attributes::ConfigStatus::Id, 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, @@ -13160,17 +16460,25 @@ void registerClusterWindowCovering(Commands & commands, CredentialIssuerCommands make_unique(Id, "server-generated-command-list", Attributes::ServerGeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "client-generated-command-list", Attributes::ClientGeneratedCommandList::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(credsIssuerConfig), // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, "type", Attributes::Type::Id, credsIssuerConfig), // + 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(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, "config-status", Attributes::ConfigStatus::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, diff --git a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp index ae623759585441..fb58ff43af2125 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp +++ b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp @@ -3473,29 +3473,36 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const DoorLock::Commands::GetCredentialStatusResponse::DecodableType & value) + const DoorLock::Commands::GetLogRecordResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("credentialExists", indent + 1, value.credentialExists)); - ReturnErrorOnFailure(DataModelLogger::LogValue("userIndex", indent + 1, value.userIndex)); - ReturnErrorOnFailure(DataModelLogger::LogValue("nextCredentialIndex", indent + 1, value.nextCredentialIndex)); + ReturnErrorOnFailure(DataModelLogger::LogValue("logEntryId", indent + 1, value.logEntryId)); + ReturnErrorOnFailure(DataModelLogger::LogValue("timestamp", indent + 1, value.timestamp)); + ReturnErrorOnFailure(DataModelLogger::LogValue("eventType", indent + 1, value.eventType)); + ReturnErrorOnFailure(DataModelLogger::LogValue("source", indent + 1, value.source)); + ReturnErrorOnFailure(DataModelLogger::LogValue("eventIdOrAlarmCode", indent + 1, value.eventIdOrAlarmCode)); + ReturnErrorOnFailure(DataModelLogger::LogValue("userId", indent + 1, value.userId)); + ReturnErrorOnFailure(DataModelLogger::LogValue("pin", indent + 1, value.pin)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const DoorLock::Commands::GetUserResponse::DecodableType & value) + const DoorLock::Commands::GetPINCodeResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("userIndex", indent + 1, value.userIndex)); - ReturnErrorOnFailure(DataModelLogger::LogValue("userName", indent + 1, value.userName)); - ReturnErrorOnFailure(DataModelLogger::LogValue("userUniqueId", indent + 1, value.userUniqueId)); + ReturnErrorOnFailure(DataModelLogger::LogValue("userId", indent + 1, value.userId)); ReturnErrorOnFailure(DataModelLogger::LogValue("userStatus", indent + 1, value.userStatus)); ReturnErrorOnFailure(DataModelLogger::LogValue("userType", indent + 1, value.userType)); - ReturnErrorOnFailure(DataModelLogger::LogValue("credentialRule", indent + 1, value.credentialRule)); - ReturnErrorOnFailure(DataModelLogger::LogValue("credentials", indent + 1, value.credentials)); - ReturnErrorOnFailure(DataModelLogger::LogValue("creatorFabricIndex", indent + 1, value.creatorFabricIndex)); - ReturnErrorOnFailure(DataModelLogger::LogValue("lastModifiedFabricIndex", indent + 1, value.lastModifiedFabricIndex)); - ReturnErrorOnFailure(DataModelLogger::LogValue("nextUserIndex", indent + 1, value.nextUserIndex)); + ReturnErrorOnFailure(DataModelLogger::LogValue("pin", indent + 1, value.pin)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const DoorLock::Commands::GetUserStatusResponse::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("userId", indent + 1, value.userId)); + ReturnErrorOnFailure(DataModelLogger::LogValue("userStatus", indent + 1, value.userStatus)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } @@ -3526,6 +3533,83 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const DoorLock::Commands::GetHolidayScheduleResponse::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("holidayIndex", indent + 1, value.holidayIndex)); + ReturnErrorOnFailure(DataModelLogger::LogValue("status", indent + 1, value.status)); + ReturnErrorOnFailure(DataModelLogger::LogValue("localStartTime", indent + 1, value.localStartTime)); + ReturnErrorOnFailure(DataModelLogger::LogValue("localEndTime", indent + 1, value.localEndTime)); + ReturnErrorOnFailure(DataModelLogger::LogValue("operatingMode", indent + 1, value.operatingMode)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const DoorLock::Commands::GetUserTypeResponse::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("userId", indent + 1, value.userId)); + ReturnErrorOnFailure(DataModelLogger::LogValue("userType", indent + 1, value.userType)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const DoorLock::Commands::GetRFIDCodeResponse::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("userId", indent + 1, value.userId)); + ReturnErrorOnFailure(DataModelLogger::LogValue("userStatus", indent + 1, value.userStatus)); + ReturnErrorOnFailure(DataModelLogger::LogValue("userType", indent + 1, value.userType)); + ReturnErrorOnFailure(DataModelLogger::LogValue("rfidCode", indent + 1, value.rfidCode)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const DoorLock::Commands::GetUserResponse::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("userIndex", indent + 1, value.userIndex)); + ReturnErrorOnFailure(DataModelLogger::LogValue("userName", indent + 1, value.userName)); + ReturnErrorOnFailure(DataModelLogger::LogValue("userUniqueId", indent + 1, value.userUniqueId)); + ReturnErrorOnFailure(DataModelLogger::LogValue("userStatus", indent + 1, value.userStatus)); + ReturnErrorOnFailure(DataModelLogger::LogValue("userType", indent + 1, value.userType)); + ReturnErrorOnFailure(DataModelLogger::LogValue("credentialRule", indent + 1, value.credentialRule)); + ReturnErrorOnFailure(DataModelLogger::LogValue("credentials", indent + 1, value.credentials)); + ReturnErrorOnFailure(DataModelLogger::LogValue("creatorFabricIndex", indent + 1, value.creatorFabricIndex)); + ReturnErrorOnFailure(DataModelLogger::LogValue("lastModifiedFabricIndex", indent + 1, value.lastModifiedFabricIndex)); + ReturnErrorOnFailure(DataModelLogger::LogValue("nextUserIndex", indent + 1, value.nextUserIndex)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const DoorLock::Commands::OperatingEventNotification::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("operationEventSource", indent + 1, value.operationEventSource)); + ReturnErrorOnFailure(DataModelLogger::LogValue("operationEventCode", indent + 1, value.operationEventCode)); + ReturnErrorOnFailure(DataModelLogger::LogValue("userId", indent + 1, value.userId)); + ReturnErrorOnFailure(DataModelLogger::LogValue("pin", indent + 1, value.pin)); + ReturnErrorOnFailure(DataModelLogger::LogValue("localTime", indent + 1, value.localTime)); + ReturnErrorOnFailure(DataModelLogger::LogValue("data", indent + 1, value.data)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const DoorLock::Commands::ProgrammingEventNotification::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("programEventSource", indent + 1, value.programEventSource)); + ReturnErrorOnFailure(DataModelLogger::LogValue("programEventCode", indent + 1, value.programEventCode)); + ReturnErrorOnFailure(DataModelLogger::LogValue("userId", indent + 1, value.userId)); + ReturnErrorOnFailure(DataModelLogger::LogValue("pin", indent + 1, value.pin)); + ReturnErrorOnFailure(DataModelLogger::LogValue("userType", indent + 1, value.userType)); + ReturnErrorOnFailure(DataModelLogger::LogValue("userStatus", indent + 1, value.userStatus)); + ReturnErrorOnFailure(DataModelLogger::LogValue("localTime", indent + 1, value.localTime)); + ReturnErrorOnFailure(DataModelLogger::LogValue("data", indent + 1, value.data)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, const DoorLock::Commands::SetCredentialResponse::DecodableType & value) { @@ -3537,16 +3621,42 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const GeneralCommissioning::Commands::ArmFailSafeResponse::DecodableType & value) + const DoorLock::Commands::GetCredentialStatusResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("errorCode", indent + 1, value.errorCode)); - ReturnErrorOnFailure(DataModelLogger::LogValue("debugText", indent + 1, value.debugText)); + ReturnErrorOnFailure(DataModelLogger::LogValue("credentialExists", indent + 1, value.credentialExists)); + ReturnErrorOnFailure(DataModelLogger::LogValue("userIndex", indent + 1, value.userIndex)); + ReturnErrorOnFailure(DataModelLogger::LogValue("nextCredentialIndex", indent + 1, value.nextCredentialIndex)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const GeneralCommissioning::Commands::CommissioningCompleteResponse::DecodableType & value) + const ElectricalMeasurement::Commands::GetProfileInfoResponseCommand::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("profileCount", indent + 1, value.profileCount)); + ReturnErrorOnFailure(DataModelLogger::LogValue("profileIntervalPeriod", indent + 1, value.profileIntervalPeriod)); + ReturnErrorOnFailure(DataModelLogger::LogValue("maxNumberOfIntervals", indent + 1, value.maxNumberOfIntervals)); + ReturnErrorOnFailure(DataModelLogger::LogValue("listOfAttributes", indent + 1, value.listOfAttributes)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} +CHIP_ERROR +DataModelLogger::LogValue(const char * label, size_t indent, + const ElectricalMeasurement::Commands::GetMeasurementProfileResponseCommand::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("startTime", indent + 1, value.startTime)); + ReturnErrorOnFailure(DataModelLogger::LogValue("status", indent + 1, value.status)); + ReturnErrorOnFailure(DataModelLogger::LogValue("profileIntervalPeriod", indent + 1, value.profileIntervalPeriod)); + ReturnErrorOnFailure(DataModelLogger::LogValue("numberOfIntervalsDelivered", indent + 1, value.numberOfIntervalsDelivered)); + ReturnErrorOnFailure(DataModelLogger::LogValue("attributeId", indent + 1, value.attributeId)); + ReturnErrorOnFailure(DataModelLogger::LogValue("intervals", indent + 1, value.intervals)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const GeneralCommissioning::Commands::ArmFailSafeResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); ReturnErrorOnFailure(DataModelLogger::LogValue("errorCode", indent + 1, value.errorCode)); @@ -3564,10 +3674,11 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const GroupKeyManagement::Commands::KeySetReadAllIndicesResponse::DecodableType & value) + const GeneralCommissioning::Commands::CommissioningCompleteResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("groupKeySetIDs", indent + 1, value.groupKeySetIDs)); + ReturnErrorOnFailure(DataModelLogger::LogValue("errorCode", indent + 1, value.errorCode)); + ReturnErrorOnFailure(DataModelLogger::LogValue("debugText", indent + 1, value.debugText)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } @@ -3579,6 +3690,14 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const GroupKeyManagement::Commands::KeySetReadAllIndicesResponse::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("groupKeySetIDs", indent + 1, value.groupKeySetIDs)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, const Groups::Commands::AddGroupResponse::DecodableType & value) { @@ -3589,30 +3708,30 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const Groups::Commands::GetGroupMembershipResponse::DecodableType & value) + const Groups::Commands::ViewGroupResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("capacity", indent + 1, value.capacity)); - ReturnErrorOnFailure(DataModelLogger::LogValue("groupList", indent + 1, value.groupList)); + ReturnErrorOnFailure(DataModelLogger::LogValue("status", indent + 1, value.status)); + ReturnErrorOnFailure(DataModelLogger::LogValue("groupId", indent + 1, value.groupId)); + ReturnErrorOnFailure(DataModelLogger::LogValue("groupName", indent + 1, value.groupName)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const Groups::Commands::RemoveGroupResponse::DecodableType & value) + const Groups::Commands::GetGroupMembershipResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("status", indent + 1, value.status)); - ReturnErrorOnFailure(DataModelLogger::LogValue("groupId", indent + 1, value.groupId)); + ReturnErrorOnFailure(DataModelLogger::LogValue("capacity", indent + 1, value.capacity)); + ReturnErrorOnFailure(DataModelLogger::LogValue("groupList", indent + 1, value.groupList)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const Groups::Commands::ViewGroupResponse::DecodableType & value) + const Groups::Commands::RemoveGroupResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); ReturnErrorOnFailure(DataModelLogger::LogValue("status", indent + 1, value.status)); ReturnErrorOnFailure(DataModelLogger::LogValue("groupId", indent + 1, value.groupId)); - ReturnErrorOnFailure(DataModelLogger::LogValue("groupName", indent + 1, value.groupName)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } @@ -3641,12 +3760,13 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const NetworkCommissioning::Commands::ConnectNetworkResponse::DecodableType & value) + const NetworkCommissioning::Commands::ScanNetworksResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); ReturnErrorOnFailure(DataModelLogger::LogValue("networkingStatus", indent + 1, value.networkingStatus)); ReturnErrorOnFailure(DataModelLogger::LogValue("debugText", indent + 1, value.debugText)); - ReturnErrorOnFailure(DataModelLogger::LogValue("errorValue", indent + 1, value.errorValue)); + ReturnErrorOnFailure(DataModelLogger::LogValue("wiFiScanResults", indent + 1, value.wiFiScanResults)); + ReturnErrorOnFailure(DataModelLogger::LogValue("threadScanResults", indent + 1, value.threadScanResults)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } @@ -3660,22 +3780,12 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const NetworkCommissioning::Commands::ScanNetworksResponse::DecodableType & value) + const NetworkCommissioning::Commands::ConnectNetworkResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); ReturnErrorOnFailure(DataModelLogger::LogValue("networkingStatus", indent + 1, value.networkingStatus)); ReturnErrorOnFailure(DataModelLogger::LogValue("debugText", indent + 1, value.debugText)); - ReturnErrorOnFailure(DataModelLogger::LogValue("wiFiScanResults", indent + 1, value.wiFiScanResults)); - ReturnErrorOnFailure(DataModelLogger::LogValue("threadScanResults", indent + 1, value.threadScanResults)); - DataModelLogger::LogString(indent, "}"); - return CHIP_NO_ERROR; -} -CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const OtaSoftwareUpdateProvider::Commands::ApplyUpdateResponse::DecodableType & value) -{ - DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("action", indent + 1, value.action)); - ReturnErrorOnFailure(DataModelLogger::LogValue("delayedActionTime", indent + 1, value.delayedActionTime)); + ReturnErrorOnFailure(DataModelLogger::LogValue("errorValue", indent + 1, value.errorValue)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } @@ -3694,6 +3804,15 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const OtaSoftwareUpdateProvider::Commands::ApplyUpdateResponse::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("action", indent + 1, value.action)); + ReturnErrorOnFailure(DataModelLogger::LogValue("delayedActionTime", indent + 1, value.delayedActionTime)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, const OperationalCredentials::Commands::AttestationResponse::DecodableType & value) { @@ -3704,19 +3823,19 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const OperationalCredentials::Commands::CSRResponse::DecodableType & value) + const OperationalCredentials::Commands::CertificateChainResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("NOCSRElements", indent + 1, value.NOCSRElements)); - ReturnErrorOnFailure(DataModelLogger::LogValue("attestationSignature", indent + 1, value.attestationSignature)); + ReturnErrorOnFailure(DataModelLogger::LogValue("certificate", indent + 1, value.certificate)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const OperationalCredentials::Commands::CertificateChainResponse::DecodableType & value) + const OperationalCredentials::Commands::CSRResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("certificate", indent + 1, value.certificate)); + ReturnErrorOnFailure(DataModelLogger::LogValue("NOCSRElements", indent + 1, value.NOCSRElements)); + ReturnErrorOnFailure(DataModelLogger::LogValue("attestationSignature", indent + 1, value.attestationSignature)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } @@ -3741,14 +3860,25 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const Scenes::Commands::GetSceneMembershipResponse::DecodableType & value) + const Scenes::Commands::ViewSceneResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); ReturnErrorOnFailure(DataModelLogger::LogValue("status", indent + 1, value.status)); - ReturnErrorOnFailure(DataModelLogger::LogValue("capacity", indent + 1, value.capacity)); ReturnErrorOnFailure(DataModelLogger::LogValue("groupId", indent + 1, value.groupId)); - ReturnErrorOnFailure(DataModelLogger::LogValue("sceneCount", indent + 1, value.sceneCount)); - ReturnErrorOnFailure(DataModelLogger::LogValue("sceneList", indent + 1, value.sceneList)); + ReturnErrorOnFailure(DataModelLogger::LogValue("sceneId", indent + 1, value.sceneId)); + ReturnErrorOnFailure(DataModelLogger::LogValue("transitionTime", indent + 1, value.transitionTime)); + ReturnErrorOnFailure(DataModelLogger::LogValue("sceneName", indent + 1, value.sceneName)); + ReturnErrorOnFailure(DataModelLogger::LogValue("extensionFieldSets", indent + 1, value.extensionFieldSets)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const Scenes::Commands::RemoveSceneResponse::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("status", indent + 1, value.status)); + ReturnErrorOnFailure(DataModelLogger::LogValue("groupId", indent + 1, value.groupId)); + ReturnErrorOnFailure(DataModelLogger::LogValue("sceneId", indent + 1, value.sceneId)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } @@ -3762,7 +3892,7 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const Scenes::Commands::RemoveSceneResponse::DecodableType & value) + const Scenes::Commands::StoreSceneResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); ReturnErrorOnFailure(DataModelLogger::LogValue("status", indent + 1, value.status)); @@ -3772,7 +3902,19 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const Scenes::Commands::StoreSceneResponse::DecodableType & value) + const Scenes::Commands::GetSceneMembershipResponse::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("status", indent + 1, value.status)); + ReturnErrorOnFailure(DataModelLogger::LogValue("capacity", indent + 1, value.capacity)); + ReturnErrorOnFailure(DataModelLogger::LogValue("groupId", indent + 1, value.groupId)); + ReturnErrorOnFailure(DataModelLogger::LogValue("sceneCount", indent + 1, value.sceneCount)); + ReturnErrorOnFailure(DataModelLogger::LogValue("sceneList", indent + 1, value.sceneList)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const Scenes::Commands::EnhancedAddSceneResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); ReturnErrorOnFailure(DataModelLogger::LogValue("status", indent + 1, value.status)); @@ -3782,7 +3924,7 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const Scenes::Commands::ViewSceneResponse::DecodableType & value) + const Scenes::Commands::EnhancedViewSceneResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); ReturnErrorOnFailure(DataModelLogger::LogValue("status", indent + 1, value.status)); @@ -3795,27 +3937,29 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const TargetNavigator::Commands::NavigateTargetResponse::DecodableType & value) + const Scenes::Commands::CopySceneResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); ReturnErrorOnFailure(DataModelLogger::LogValue("status", indent + 1, value.status)); - ReturnErrorOnFailure(DataModelLogger::LogValue("data", indent + 1, value.data)); + ReturnErrorOnFailure(DataModelLogger::LogValue("groupIdFrom", indent + 1, value.groupIdFrom)); + ReturnErrorOnFailure(DataModelLogger::LogValue("sceneIdFrom", indent + 1, value.sceneIdFrom)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const TestCluster::Commands::BooleanResponse::DecodableType & value) + const TargetNavigator::Commands::NavigateTargetResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("value", indent + 1, value.value)); + ReturnErrorOnFailure(DataModelLogger::LogValue("status", indent + 1, value.status)); + ReturnErrorOnFailure(DataModelLogger::LogValue("data", indent + 1, value.data)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const TestCluster::Commands::SimpleStructResponse::DecodableType & value) + const TestCluster::Commands::TestSpecificResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("arg1", indent + 1, value.arg1)); + ReturnErrorOnFailure(DataModelLogger::LogValue("returnValue", indent + 1, value.returnValue)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } @@ -3828,19 +3972,23 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const TestCluster::Commands::TestEmitTestEventResponse::DecodableType & value) + const TestCluster::Commands::TestSimpleArgumentResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("value", indent + 1, value.value)); + ReturnErrorOnFailure(DataModelLogger::LogValue("returnValue", indent + 1, value.returnValue)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const TestCluster::Commands::TestEnumsResponse::DecodableType & value) + const TestCluster::Commands::TestStructArrayArgumentResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); ReturnErrorOnFailure(DataModelLogger::LogValue("arg1", indent + 1, value.arg1)); ReturnErrorOnFailure(DataModelLogger::LogValue("arg2", indent + 1, value.arg2)); + ReturnErrorOnFailure(DataModelLogger::LogValue("arg3", indent + 1, value.arg3)); + ReturnErrorOnFailure(DataModelLogger::LogValue("arg4", indent + 1, value.arg4)); + ReturnErrorOnFailure(DataModelLogger::LogValue("arg5", indent + 1, value.arg5)); + ReturnErrorOnFailure(DataModelLogger::LogValue("arg6", indent + 1, value.arg6)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } @@ -3852,6 +4000,15 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const TestCluster::Commands::TestEnumsResponse::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("arg1", indent + 1, value.arg1)); + ReturnErrorOnFailure(DataModelLogger::LogValue("arg2", indent + 1, value.arg2)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, const TestCluster::Commands::TestNullableOptionalResponse::DecodableType & value) { @@ -3864,42 +4021,107 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const TestCluster::Commands::TestSpecificResponse::DecodableType & value) + const TestCluster::Commands::TestComplexNullableOptionalResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("returnValue", indent + 1, value.returnValue)); + ReturnErrorOnFailure(DataModelLogger::LogValue("nullableIntWasNull", indent + 1, value.nullableIntWasNull)); + ReturnErrorOnFailure(DataModelLogger::LogValue("nullableIntValue", indent + 1, value.nullableIntValue)); + ReturnErrorOnFailure(DataModelLogger::LogValue("optionalIntWasPresent", indent + 1, value.optionalIntWasPresent)); + ReturnErrorOnFailure(DataModelLogger::LogValue("optionalIntValue", indent + 1, value.optionalIntValue)); + ReturnErrorOnFailure( + DataModelLogger::LogValue("nullableOptionalIntWasPresent", indent + 1, value.nullableOptionalIntWasPresent)); + ReturnErrorOnFailure(DataModelLogger::LogValue("nullableOptionalIntWasNull", indent + 1, value.nullableOptionalIntWasNull)); + ReturnErrorOnFailure(DataModelLogger::LogValue("nullableOptionalIntValue", indent + 1, value.nullableOptionalIntValue)); + ReturnErrorOnFailure(DataModelLogger::LogValue("nullableStringWasNull", indent + 1, value.nullableStringWasNull)); + ReturnErrorOnFailure(DataModelLogger::LogValue("nullableStringValue", indent + 1, value.nullableStringValue)); + ReturnErrorOnFailure(DataModelLogger::LogValue("optionalStringWasPresent", indent + 1, value.optionalStringWasPresent)); + ReturnErrorOnFailure(DataModelLogger::LogValue("optionalStringValue", indent + 1, value.optionalStringValue)); + ReturnErrorOnFailure( + DataModelLogger::LogValue("nullableOptionalStringWasPresent", indent + 1, value.nullableOptionalStringWasPresent)); + ReturnErrorOnFailure( + DataModelLogger::LogValue("nullableOptionalStringWasNull", indent + 1, value.nullableOptionalStringWasNull)); + ReturnErrorOnFailure(DataModelLogger::LogValue("nullableOptionalStringValue", indent + 1, value.nullableOptionalStringValue)); + ReturnErrorOnFailure(DataModelLogger::LogValue("nullableStructWasNull", indent + 1, value.nullableStructWasNull)); + ReturnErrorOnFailure(DataModelLogger::LogValue("nullableStructValue", indent + 1, value.nullableStructValue)); + ReturnErrorOnFailure(DataModelLogger::LogValue("optionalStructWasPresent", indent + 1, value.optionalStructWasPresent)); + ReturnErrorOnFailure(DataModelLogger::LogValue("optionalStructValue", indent + 1, value.optionalStructValue)); + ReturnErrorOnFailure( + DataModelLogger::LogValue("nullableOptionalStructWasPresent", indent + 1, value.nullableOptionalStructWasPresent)); + ReturnErrorOnFailure( + DataModelLogger::LogValue("nullableOptionalStructWasNull", indent + 1, value.nullableOptionalStructWasNull)); + ReturnErrorOnFailure(DataModelLogger::LogValue("nullableOptionalStructValue", indent + 1, value.nullableOptionalStructValue)); + ReturnErrorOnFailure(DataModelLogger::LogValue("nullableListWasNull", indent + 1, value.nullableListWasNull)); + ReturnErrorOnFailure(DataModelLogger::LogValue("nullableListValue", indent + 1, value.nullableListValue)); + ReturnErrorOnFailure(DataModelLogger::LogValue("optionalListWasPresent", indent + 1, value.optionalListWasPresent)); + ReturnErrorOnFailure(DataModelLogger::LogValue("optionalListValue", indent + 1, value.optionalListValue)); + ReturnErrorOnFailure( + DataModelLogger::LogValue("nullableOptionalListWasPresent", indent + 1, value.nullableOptionalListWasPresent)); + ReturnErrorOnFailure(DataModelLogger::LogValue("nullableOptionalListWasNull", indent + 1, value.nullableOptionalListWasNull)); + ReturnErrorOnFailure(DataModelLogger::LogValue("nullableOptionalListValue", indent + 1, value.nullableOptionalListValue)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const Thermostat::Commands::GetRelayStatusLogResponse::DecodableType & value) + const TestCluster::Commands::BooleanResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("timeOfDay", indent + 1, value.timeOfDay)); - ReturnErrorOnFailure(DataModelLogger::LogValue("relayStatus", indent + 1, value.relayStatus)); - ReturnErrorOnFailure(DataModelLogger::LogValue("localTemperature", indent + 1, value.localTemperature)); - ReturnErrorOnFailure(DataModelLogger::LogValue("humidityInPercentage", indent + 1, value.humidityInPercentage)); - ReturnErrorOnFailure(DataModelLogger::LogValue("setpoint", indent + 1, value.setpoint)); - ReturnErrorOnFailure(DataModelLogger::LogValue("unreadEntries", indent + 1, value.unreadEntries)); + ReturnErrorOnFailure(DataModelLogger::LogValue("value", indent + 1, value.value)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const Thermostat::Commands::GetWeeklyScheduleResponse::DecodableType & value) + const TestCluster::Commands::SimpleStructResponse::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure( - DataModelLogger::LogValue("numberOfTransitionsForSequence", indent + 1, value.numberOfTransitionsForSequence)); - ReturnErrorOnFailure(DataModelLogger::LogValue("dayOfWeekForSequence", indent + 1, value.dayOfWeekForSequence)); - ReturnErrorOnFailure(DataModelLogger::LogValue("modeForSequence", indent + 1, value.modeForSequence)); - ReturnErrorOnFailure(DataModelLogger::LogValue("payload", indent + 1, value.payload)); + ReturnErrorOnFailure(DataModelLogger::LogValue("arg1", indent + 1, value.arg1)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } - -CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributePath & path, chip::TLV::TLVReader * data) +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const TestCluster::Commands::TestEmitTestEventResponse::DecodableType & value) { - ChipLogProgress(chipTool, "Endpoint: %" PRIu16 " Cluster: " ChipLogFormatMEI " Attribute " ChipLogFormatMEI, path.mEndpointId, + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("value", indent + 1, value.value)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const TestCluster::Commands::TestEmitTestFabricScopedEventResponse::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("value", indent + 1, value.value)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const Thermostat::Commands::GetWeeklyScheduleResponse::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure( + DataModelLogger::LogValue("numberOfTransitionsForSequence", indent + 1, value.numberOfTransitionsForSequence)); + ReturnErrorOnFailure(DataModelLogger::LogValue("dayOfWeekForSequence", indent + 1, value.dayOfWeekForSequence)); + ReturnErrorOnFailure(DataModelLogger::LogValue("modeForSequence", indent + 1, value.modeForSequence)); + ReturnErrorOnFailure(DataModelLogger::LogValue("payload", indent + 1, value.payload)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const Thermostat::Commands::GetRelayStatusLogResponse::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("timeOfDay", indent + 1, value.timeOfDay)); + ReturnErrorOnFailure(DataModelLogger::LogValue("relayStatus", indent + 1, value.relayStatus)); + ReturnErrorOnFailure(DataModelLogger::LogValue("localTemperature", indent + 1, value.localTemperature)); + ReturnErrorOnFailure(DataModelLogger::LogValue("humidityInPercentage", indent + 1, value.humidityInPercentage)); + ReturnErrorOnFailure(DataModelLogger::LogValue("setpoint", indent + 1, value.setpoint)); + ReturnErrorOnFailure(DataModelLogger::LogValue("unreadEntries", indent + 1, value.unreadEntries)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributePath & path, chip::TLV::TLVReader * data) +{ + ChipLogProgress(chipTool, "Endpoint: %" PRIu16 " Cluster: " ChipLogFormatMEI " Attribute " ChipLogFormatMEI, path.mEndpointId, ChipLogValueMEI(path.mClusterId), ChipLogValueMEI(path.mAttributeId)); switch (path.mClusterId) @@ -3933,6 +4155,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case AccessControl::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case AccessControl::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -3959,6 +4186,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case AccountLogin::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case AccountLogin::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4000,6 +4232,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case AdministratorCommissioning::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case AdministratorCommissioning::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4066,6 +4303,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case ApplicationBasic::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case ApplicationBasic::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4082,6 +4324,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("application launcher list", 1, value); } + case ApplicationLauncher::Attributes::ApplicationLauncherApp::Id: { + chip::app::Clusters::ApplicationLauncher::Structs::ApplicationEP::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("application launcher app", 1, value); + } case ApplicationLauncher::Attributes::ServerGeneratedCommandList::Id: { chip::app::DataModel::DecodableList value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4097,6 +4344,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case ApplicationLauncher::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case ApplicationLauncher::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4133,6 +4385,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case AudioOutput::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case AudioOutput::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4159,6 +4416,36 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("barrier capabilities", 1, value); } + case BarrierControl::Attributes::BarrierOpenEvents::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("barrier open events", 1, value); + } + case BarrierControl::Attributes::BarrierCloseEvents::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("barrier close events", 1, value); + } + case BarrierControl::Attributes::BarrierCommandOpenEvents::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("barrier command open events", 1, value); + } + case BarrierControl::Attributes::BarrierCommandCloseEvents::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("barrier command close events", 1, value); + } + case BarrierControl::Attributes::BarrierOpenPeriod::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("barrier open period", 1, value); + } + case BarrierControl::Attributes::BarrierClosePeriod::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("barrier close period", 1, value); + } case BarrierControl::Attributes::BarrierPosition::Id: { uint8_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4179,6 +4466,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case BarrierControl::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case BarrierControl::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4300,6 +4592,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case Basic::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case Basic::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4311,21 +4608,51 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP case BinaryInputBasic::Id: { switch (path.mAttributeId) { + case BinaryInputBasic::Attributes::ActiveText::Id: { + chip::CharSpan value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("active text", 1, value); + } + case BinaryInputBasic::Attributes::Description::Id: { + chip::CharSpan value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("description", 1, value); + } + case BinaryInputBasic::Attributes::InactiveText::Id: { + chip::CharSpan value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("inactive text", 1, value); + } case BinaryInputBasic::Attributes::OutOfService::Id: { bool value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("out of service", 1, value); } + case BinaryInputBasic::Attributes::Polarity::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("polarity", 1, value); + } case BinaryInputBasic::Attributes::PresentValue::Id: { bool value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("present value", 1, value); } + case BinaryInputBasic::Attributes::Reliability::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("reliability", 1, value); + } case BinaryInputBasic::Attributes::StatusFlags::Id: { uint8_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("status flags", 1, value); } + case BinaryInputBasic::Attributes::ApplicationType::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("application type", 1, value); + } case BinaryInputBasic::Attributes::ServerGeneratedCommandList::Id: { chip::app::DataModel::DecodableList value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4341,6 +4668,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case BinaryInputBasic::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case BinaryInputBasic::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4367,6 +4699,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case Binding::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case Binding::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4398,6 +4735,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case BooleanState::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case BooleanState::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4440,6 +4782,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case BridgedActions::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case BridgedActions::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4521,6 +4868,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("Reachable", 1, value); } + case BridgedDeviceBasic::Attributes::UniqueID::Id: { + chip::CharSpan value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("UniqueID", 1, value); + } case BridgedDeviceBasic::Attributes::ServerGeneratedCommandList::Id: { chip::app::DataModel::DecodableList value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4536,6 +4888,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case BridgedDeviceBasic::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case BridgedDeviceBasic::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4552,6 +4909,16 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("channel list", 1, value); } + case Channel::Attributes::ChannelLineup::Id: { + chip::app::Clusters::Channel::Structs::LineupInfo::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("channel lineup", 1, value); + } + case Channel::Attributes::CurrentChannel::Id: { + chip::app::Clusters::Channel::Structs::ChannelInfo::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("current channel", 1, value); + } case Channel::Attributes::ServerGeneratedCommandList::Id: { chip::app::DataModel::DecodableList value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4567,6 +4934,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case Channel::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case Channel::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4853,6 +5225,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case ColorControl::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case ColorControl::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4889,6 +5266,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case ContentLauncher::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case ContentLauncher::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4935,6 +5317,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case Descriptor::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case Descriptor::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -4949,209 +5336,929 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP case DiagnosticLogs::Attributes::ServerGeneratedCommandList::Id: { chip::app::DataModel::DecodableList value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("ServerGeneratedCommandList", 1, value); + return DataModelLogger::LogValue("ServerGeneratedCommandList", 1, value); + } + case DiagnosticLogs::Attributes::ClientGeneratedCommandList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ClientGeneratedCommandList", 1, value); + } + case DiagnosticLogs::Attributes::AttributeList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("AttributeList", 1, value); + } + case DiagnosticLogs::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } + case DiagnosticLogs::Attributes::ClusterRevision::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ClusterRevision", 1, value); + } + } + break; + } + case DoorLock::Id: { + switch (path.mAttributeId) + { + case DoorLock::Attributes::LockState::Id: { + chip::app::DataModel::Nullable value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("LockState", 1, value); + } + case DoorLock::Attributes::LockType::Id: { + chip::app::Clusters::DoorLock::DlLockType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("LockType", 1, value); + } + case DoorLock::Attributes::ActuatorEnabled::Id: { + bool value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ActuatorEnabled", 1, value); + } + case DoorLock::Attributes::DoorState::Id: { + chip::app::DataModel::Nullable value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("DoorState", 1, value); + } + case DoorLock::Attributes::DoorOpenEvents::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("DoorOpenEvents", 1, value); + } + case DoorLock::Attributes::DoorClosedEvents::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("DoorClosedEvents", 1, value); + } + case DoorLock::Attributes::OpenPeriod::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("OpenPeriod", 1, value); + } + case DoorLock::Attributes::NumberOfLogRecordsSupported::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("NumberOfLogRecordsSupported", 1, value); + } + case DoorLock::Attributes::NumberOfTotalUsersSupported::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("NumberOfTotalUsersSupported", 1, value); + } + case DoorLock::Attributes::NumberOfPINUsersSupported::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("NumberOfPINUsersSupported", 1, value); + } + case DoorLock::Attributes::NumberOfRFIDUsersSupported::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("NumberOfRFIDUsersSupported", 1, value); + } + case DoorLock::Attributes::NumberOfWeekDaySchedulesSupportedPerUser::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("NumberOfWeekDaySchedulesSupportedPerUser", 1, value); + } + case DoorLock::Attributes::NumberOfYearDaySchedulesSupportedPerUser::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("NumberOfYearDaySchedulesSupportedPerUser", 1, value); + } + case DoorLock::Attributes::NumberOfHolidaySchedulesSupported::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("NumberOfHolidaySchedulesSupported", 1, value); + } + case DoorLock::Attributes::MaxPINCodeLength::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("MaxPINCodeLength", 1, value); + } + case DoorLock::Attributes::MinPINCodeLength::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("MinPINCodeLength", 1, value); + } + case DoorLock::Attributes::MaxRFIDCodeLength::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("MaxRFIDCodeLength", 1, value); + } + case DoorLock::Attributes::MinRFIDCodeLength::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("MinRFIDCodeLength", 1, value); + } + case DoorLock::Attributes::CredentialRulesSupport::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("CredentialRulesSupport", 1, value); + } + case DoorLock::Attributes::EnableLogging::Id: { + bool value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("EnableLogging", 1, value); + } + case DoorLock::Attributes::Language::Id: { + chip::CharSpan value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("Language", 1, value); + } + case DoorLock::Attributes::LEDSettings::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("LEDSettings", 1, value); + } + case DoorLock::Attributes::AutoRelockTime::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("AutoRelockTime", 1, value); + } + case DoorLock::Attributes::SoundVolume::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("SoundVolume", 1, value); + } + case DoorLock::Attributes::OperatingMode::Id: { + chip::app::Clusters::DoorLock::DlOperatingMode value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("OperatingMode", 1, value); + } + case DoorLock::Attributes::SupportedOperatingModes::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("SupportedOperatingModes", 1, value); + } + case DoorLock::Attributes::DefaultConfigurationRegister::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("DefaultConfigurationRegister", 1, value); + } + case DoorLock::Attributes::EnableLocalProgramming::Id: { + bool value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("EnableLocalProgramming", 1, value); + } + case DoorLock::Attributes::EnableOneTouchLocking::Id: { + bool value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("EnableOneTouchLocking", 1, value); + } + case DoorLock::Attributes::EnableInsideStatusLED::Id: { + bool value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("EnableInsideStatusLED", 1, value); + } + case DoorLock::Attributes::EnablePrivacyModeButton::Id: { + bool value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("EnablePrivacyModeButton", 1, value); + } + case DoorLock::Attributes::LocalProgrammingFeatures::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("LocalProgrammingFeatures", 1, value); + } + case DoorLock::Attributes::WrongCodeEntryLimit::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("WrongCodeEntryLimit", 1, value); + } + case DoorLock::Attributes::UserCodeTemporaryDisableTime::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("UserCodeTemporaryDisableTime", 1, value); + } + case DoorLock::Attributes::SendPINOverTheAir::Id: { + bool value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("SendPINOverTheAir", 1, value); + } + case DoorLock::Attributes::RequirePINforRemoteOperation::Id: { + bool value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("RequirePINforRemoteOperation", 1, value); + } + case DoorLock::Attributes::ExpiringUserTimeout::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ExpiringUserTimeout", 1, value); + } + case DoorLock::Attributes::AlarmMask::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("AlarmMask", 1, value); + } + case DoorLock::Attributes::KeypadOperationEventMask::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("KeypadOperationEventMask", 1, value); + } + case DoorLock::Attributes::RemoteOperationEventMask::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("RemoteOperationEventMask", 1, value); + } + case DoorLock::Attributes::ManualOperationEventMask::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ManualOperationEventMask", 1, value); + } + case DoorLock::Attributes::RFIDOperationEventMask::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("RFIDOperationEventMask", 1, value); + } + case DoorLock::Attributes::KeypadProgrammingEventMask::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("KeypadProgrammingEventMask", 1, value); + } + case DoorLock::Attributes::RemoteProgrammingEventMask::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("RemoteProgrammingEventMask", 1, value); + } + case DoorLock::Attributes::RFIDProgrammingEventMask::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("RFIDProgrammingEventMask", 1, value); + } + case DoorLock::Attributes::ServerGeneratedCommandList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ServerGeneratedCommandList", 1, value); + } + case DoorLock::Attributes::ClientGeneratedCommandList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ClientGeneratedCommandList", 1, value); + } + case DoorLock::Attributes::AttributeList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("AttributeList", 1, value); + } + case DoorLock::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } + case DoorLock::Attributes::ClusterRevision::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ClusterRevision", 1, value); + } + } + break; + } + case ElectricalMeasurement::Id: { + switch (path.mAttributeId) + { + case ElectricalMeasurement::Attributes::MeasurementType::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("measurement type", 1, value); + } + case ElectricalMeasurement::Attributes::DcVoltage::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("dc voltage", 1, value); + } + case ElectricalMeasurement::Attributes::DcVoltageMin::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("dc voltage min", 1, value); + } + case ElectricalMeasurement::Attributes::DcVoltageMax::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("dc voltage max", 1, value); + } + case ElectricalMeasurement::Attributes::DcCurrent::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("dc current", 1, value); + } + case ElectricalMeasurement::Attributes::DcCurrentMin::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("dc current min", 1, value); + } + case ElectricalMeasurement::Attributes::DcCurrentMax::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("dc current max", 1, value); + } + case ElectricalMeasurement::Attributes::DcPower::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("dc power", 1, value); + } + case ElectricalMeasurement::Attributes::DcPowerMin::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("dc power min", 1, value); + } + case ElectricalMeasurement::Attributes::DcPowerMax::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("dc power max", 1, value); + } + case ElectricalMeasurement::Attributes::DcVoltageMultiplier::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("dc voltage multiplier", 1, value); + } + case ElectricalMeasurement::Attributes::DcVoltageDivisor::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("dc voltage divisor", 1, value); + } + case ElectricalMeasurement::Attributes::DcCurrentMultiplier::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("dc current multiplier", 1, value); + } + case ElectricalMeasurement::Attributes::DcCurrentDivisor::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("dc current divisor", 1, value); + } + case ElectricalMeasurement::Attributes::DcPowerMultiplier::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("dc power multiplier", 1, value); + } + case ElectricalMeasurement::Attributes::DcPowerDivisor::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("dc power divisor", 1, value); + } + case ElectricalMeasurement::Attributes::AcFrequency::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac frequency", 1, value); + } + case ElectricalMeasurement::Attributes::AcFrequencyMin::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac frequency min", 1, value); + } + case ElectricalMeasurement::Attributes::AcFrequencyMax::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac frequency max", 1, value); + } + case ElectricalMeasurement::Attributes::NeutralCurrent::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("neutral current", 1, value); + } + case ElectricalMeasurement::Attributes::TotalActivePower::Id: { + int32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("total active power", 1, value); + } + case ElectricalMeasurement::Attributes::TotalReactivePower::Id: { + int32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("total reactive power", 1, value); + } + case ElectricalMeasurement::Attributes::TotalApparentPower::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("total apparent power", 1, value); + } + case ElectricalMeasurement::Attributes::Measured1stHarmonicCurrent::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("measured 1st harmonic current", 1, value); + } + case ElectricalMeasurement::Attributes::Measured3rdHarmonicCurrent::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("measured 3rd harmonic current", 1, value); + } + case ElectricalMeasurement::Attributes::Measured5thHarmonicCurrent::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("measured 5th harmonic current", 1, value); + } + case ElectricalMeasurement::Attributes::Measured7thHarmonicCurrent::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("measured 7th harmonic current", 1, value); + } + case ElectricalMeasurement::Attributes::Measured9thHarmonicCurrent::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("measured 9th harmonic current", 1, value); + } + case ElectricalMeasurement::Attributes::Measured11thHarmonicCurrent::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("measured 11th harmonic current", 1, value); + } + case ElectricalMeasurement::Attributes::MeasuredPhase1stHarmonicCurrent::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("measured phase 1st harmonic current", 1, value); + } + case ElectricalMeasurement::Attributes::MeasuredPhase3rdHarmonicCurrent::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("measured phase 3rd harmonic current", 1, value); + } + case ElectricalMeasurement::Attributes::MeasuredPhase5thHarmonicCurrent::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("measured phase 5th harmonic current", 1, value); + } + case ElectricalMeasurement::Attributes::MeasuredPhase7thHarmonicCurrent::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("measured phase 7th harmonic current", 1, value); + } + case ElectricalMeasurement::Attributes::MeasuredPhase9thHarmonicCurrent::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("measured phase 9th harmonic current", 1, value); + } + case ElectricalMeasurement::Attributes::MeasuredPhase11thHarmonicCurrent::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("measured phase 11th harmonic current", 1, value); + } + case ElectricalMeasurement::Attributes::AcFrequencyMultiplier::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac frequency multiplier", 1, value); + } + case ElectricalMeasurement::Attributes::AcFrequencyDivisor::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac frequency divisor", 1, value); + } + case ElectricalMeasurement::Attributes::PowerMultiplier::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("power multiplier", 1, value); + } + case ElectricalMeasurement::Attributes::PowerDivisor::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("power divisor", 1, value); + } + case ElectricalMeasurement::Attributes::HarmonicCurrentMultiplier::Id: { + int8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("harmonic current multiplier", 1, value); + } + case ElectricalMeasurement::Attributes::PhaseHarmonicCurrentMultiplier::Id: { + int8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("phase harmonic current multiplier", 1, value); + } + case ElectricalMeasurement::Attributes::InstantaneousVoltage::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("instantaneous voltage", 1, value); + } + case ElectricalMeasurement::Attributes::InstantaneousLineCurrent::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("instantaneous line current", 1, value); + } + case ElectricalMeasurement::Attributes::InstantaneousActiveCurrent::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("instantaneous active current", 1, value); + } + case ElectricalMeasurement::Attributes::InstantaneousReactiveCurrent::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("instantaneous reactive current", 1, value); + } + case ElectricalMeasurement::Attributes::InstantaneousPower::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("instantaneous power", 1, value); + } + case ElectricalMeasurement::Attributes::RmsVoltage::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("rms voltage", 1, value); + } + case ElectricalMeasurement::Attributes::RmsVoltageMin::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("rms voltage min", 1, value); + } + case ElectricalMeasurement::Attributes::RmsVoltageMax::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("rms voltage max", 1, value); + } + case ElectricalMeasurement::Attributes::RmsCurrent::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("rms current", 1, value); + } + case ElectricalMeasurement::Attributes::RmsCurrentMin::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("rms current min", 1, value); + } + case ElectricalMeasurement::Attributes::RmsCurrentMax::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("rms current max", 1, value); + } + case ElectricalMeasurement::Attributes::ActivePower::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("active power", 1, value); + } + case ElectricalMeasurement::Attributes::ActivePowerMin::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("active power min", 1, value); + } + case ElectricalMeasurement::Attributes::ActivePowerMax::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("active power max", 1, value); + } + case ElectricalMeasurement::Attributes::ReactivePower::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("reactive power", 1, value); + } + case ElectricalMeasurement::Attributes::ApparentPower::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("apparent power", 1, value); + } + case ElectricalMeasurement::Attributes::PowerFactor::Id: { + int8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("power factor", 1, value); + } + case ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriod::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("average rms voltage measurement period", 1, value); + } + case ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounter::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("average rms under voltage counter", 1, value); + } + case ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriod::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("rms extreme over voltage period", 1, value); + } + case ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriod::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("rms extreme under voltage period", 1, value); + } + case ElectricalMeasurement::Attributes::RmsVoltageSagPeriod::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("rms voltage sag period", 1, value); + } + case ElectricalMeasurement::Attributes::RmsVoltageSwellPeriod::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("rms voltage swell period", 1, value); + } + case ElectricalMeasurement::Attributes::AcVoltageMultiplier::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac voltage multiplier", 1, value); + } + case ElectricalMeasurement::Attributes::AcVoltageDivisor::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac voltage divisor", 1, value); + } + case ElectricalMeasurement::Attributes::AcCurrentMultiplier::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac current multiplier", 1, value); + } + case ElectricalMeasurement::Attributes::AcCurrentDivisor::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac current divisor", 1, value); + } + case ElectricalMeasurement::Attributes::AcPowerMultiplier::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac power multiplier", 1, value); + } + case ElectricalMeasurement::Attributes::AcPowerDivisor::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac power divisor", 1, value); + } + case ElectricalMeasurement::Attributes::OverloadAlarmsMask::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("overload alarms mask", 1, value); + } + case ElectricalMeasurement::Attributes::VoltageOverload::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("voltage overload", 1, value); + } + case ElectricalMeasurement::Attributes::CurrentOverload::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("current overload", 1, value); + } + case ElectricalMeasurement::Attributes::AcOverloadAlarmsMask::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac overload alarms mask", 1, value); + } + case ElectricalMeasurement::Attributes::AcVoltageOverload::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac voltage overload", 1, value); + } + case ElectricalMeasurement::Attributes::AcCurrentOverload::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac current overload", 1, value); + } + case ElectricalMeasurement::Attributes::AcActivePowerOverload::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac active power overload", 1, value); + } + case ElectricalMeasurement::Attributes::AcReactivePowerOverload::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac reactive power overload", 1, value); + } + case ElectricalMeasurement::Attributes::AverageRmsOverVoltage::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("average rms over voltage", 1, value); + } + case ElectricalMeasurement::Attributes::AverageRmsUnderVoltage::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("average rms under voltage", 1, value); + } + case ElectricalMeasurement::Attributes::RmsExtremeOverVoltage::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("rms extreme over voltage", 1, value); + } + case ElectricalMeasurement::Attributes::RmsExtremeUnderVoltage::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("rms extreme under voltage", 1, value); } - case DiagnosticLogs::Attributes::ClientGeneratedCommandList::Id: { - chip::app::DataModel::DecodableList value; + case ElectricalMeasurement::Attributes::RmsVoltageSag::Id: { + int16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("ClientGeneratedCommandList", 1, value); + return DataModelLogger::LogValue("rms voltage sag", 1, value); } - case DiagnosticLogs::Attributes::AttributeList::Id: { - chip::app::DataModel::DecodableList value; + case ElectricalMeasurement::Attributes::RmsVoltageSwell::Id: { + int16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("AttributeList", 1, value); + return DataModelLogger::LogValue("rms voltage swell", 1, value); } + case ElectricalMeasurement::Attributes::LineCurrentPhaseB::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("line current phase b", 1, value); } - break; - } - case DoorLock::Id: { - switch (path.mAttributeId) - { - case DoorLock::Attributes::LockState::Id: { - chip::app::DataModel::Nullable value; + case ElectricalMeasurement::Attributes::ActiveCurrentPhaseB::Id: { + int16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("LockState", 1, value); + return DataModelLogger::LogValue("active current phase b", 1, value); } - case DoorLock::Attributes::LockType::Id: { - chip::app::Clusters::DoorLock::DlLockType value; + case ElectricalMeasurement::Attributes::ReactiveCurrentPhaseB::Id: { + int16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("LockType", 1, value); + return DataModelLogger::LogValue("reactive current phase b", 1, value); } - case DoorLock::Attributes::ActuatorEnabled::Id: { - bool value; + case ElectricalMeasurement::Attributes::RmsVoltagePhaseB::Id: { + uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("ActuatorEnabled", 1, value); + return DataModelLogger::LogValue("rms voltage phase b", 1, value); } - case DoorLock::Attributes::DoorState::Id: { - chip::app::DataModel::Nullable value; + case ElectricalMeasurement::Attributes::RmsVoltageMinPhaseB::Id: { + uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("DoorState", 1, value); + return DataModelLogger::LogValue("rms voltage min phase b", 1, value); } - case DoorLock::Attributes::NumberOfTotalUsersSupported::Id: { + case ElectricalMeasurement::Attributes::RmsVoltageMaxPhaseB::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("NumberOfTotalUsersSupported", 1, value); + return DataModelLogger::LogValue("rms voltage max phase b", 1, value); } - case DoorLock::Attributes::NumberOfPINUsersSupported::Id: { + case ElectricalMeasurement::Attributes::RmsCurrentPhaseB::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("NumberOfPINUsersSupported", 1, value); + return DataModelLogger::LogValue("rms current phase b", 1, value); } - case DoorLock::Attributes::NumberOfRFIDUsersSupported::Id: { + case ElectricalMeasurement::Attributes::RmsCurrentMinPhaseB::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("NumberOfRFIDUsersSupported", 1, value); + return DataModelLogger::LogValue("rms current min phase b", 1, value); } - case DoorLock::Attributes::NumberOfWeekDaySchedulesSupportedPerUser::Id: { - uint8_t value; + case ElectricalMeasurement::Attributes::RmsCurrentMaxPhaseB::Id: { + uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("NumberOfWeekDaySchedulesSupportedPerUser", 1, value); + return DataModelLogger::LogValue("rms current max phase b", 1, value); } - case DoorLock::Attributes::NumberOfYearDaySchedulesSupportedPerUser::Id: { - uint8_t value; + case ElectricalMeasurement::Attributes::ActivePowerPhaseB::Id: { + int16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("NumberOfYearDaySchedulesSupportedPerUser", 1, value); + return DataModelLogger::LogValue("active power phase b", 1, value); } - case DoorLock::Attributes::MaxPINCodeLength::Id: { - uint8_t value; + case ElectricalMeasurement::Attributes::ActivePowerMinPhaseB::Id: { + int16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("MaxPINCodeLength", 1, value); + return DataModelLogger::LogValue("active power min phase b", 1, value); } - case DoorLock::Attributes::MinPINCodeLength::Id: { - uint8_t value; + case ElectricalMeasurement::Attributes::ActivePowerMaxPhaseB::Id: { + int16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("MinPINCodeLength", 1, value); + return DataModelLogger::LogValue("active power max phase b", 1, value); } - case DoorLock::Attributes::MaxRFIDCodeLength::Id: { - uint8_t value; + case ElectricalMeasurement::Attributes::ReactivePowerPhaseB::Id: { + int16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("MaxRFIDCodeLength", 1, value); + return DataModelLogger::LogValue("reactive power phase b", 1, value); } - case DoorLock::Attributes::MinRFIDCodeLength::Id: { - uint8_t value; + case ElectricalMeasurement::Attributes::ApparentPowerPhaseB::Id: { + uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("MinRFIDCodeLength", 1, value); + return DataModelLogger::LogValue("apparent power phase b", 1, value); } - case DoorLock::Attributes::Language::Id: { - chip::CharSpan value; + case ElectricalMeasurement::Attributes::PowerFactorPhaseB::Id: { + int8_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("Language", 1, value); + return DataModelLogger::LogValue("power factor phase b", 1, value); } - case DoorLock::Attributes::AutoRelockTime::Id: { - uint32_t value; + case ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::Id: { + uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("AutoRelockTime", 1, value); + return DataModelLogger::LogValue("average rms voltage measurement period phase b", 1, value); } - case DoorLock::Attributes::SoundVolume::Id: { - uint8_t value; + case ElectricalMeasurement::Attributes::AverageRmsOverVoltageCounterPhaseB::Id: { + uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("SoundVolume", 1, value); + return DataModelLogger::LogValue("average rms over voltage counter phase b", 1, value); } - case DoorLock::Attributes::OperatingMode::Id: { - chip::app::Clusters::DoorLock::DlOperatingMode value; + case ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounterPhaseB::Id: { + uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("OperatingMode", 1, value); + return DataModelLogger::LogValue("average rms under voltage counter phase b", 1, value); } - case DoorLock::Attributes::SupportedOperatingModes::Id: { + case ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriodPhaseB::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("SupportedOperatingModes", 1, value); + return DataModelLogger::LogValue("rms extreme over voltage period phase b", 1, value); } - case DoorLock::Attributes::EnableOneTouchLocking::Id: { - bool value; + case ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriodPhaseB::Id: { + uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("EnableOneTouchLocking", 1, value); + return DataModelLogger::LogValue("rms extreme under voltage period phase b", 1, value); } - case DoorLock::Attributes::EnablePrivacyModeButton::Id: { - bool value; + case ElectricalMeasurement::Attributes::RmsVoltageSagPeriodPhaseB::Id: { + uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("EnablePrivacyModeButton", 1, value); + return DataModelLogger::LogValue("rms voltage sag period phase b", 1, value); } - case DoorLock::Attributes::WrongCodeEntryLimit::Id: { - uint8_t value; + case ElectricalMeasurement::Attributes::RmsVoltageSwellPeriodPhaseB::Id: { + uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("WrongCodeEntryLimit", 1, value); + return DataModelLogger::LogValue("rms voltage swell period phase b", 1, value); } - case DoorLock::Attributes::ServerGeneratedCommandList::Id: { - chip::app::DataModel::DecodableList value; + case ElectricalMeasurement::Attributes::LineCurrentPhaseC::Id: { + uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("ServerGeneratedCommandList", 1, value); + return DataModelLogger::LogValue("line current phase c", 1, value); } - case DoorLock::Attributes::ClientGeneratedCommandList::Id: { - chip::app::DataModel::DecodableList value; + case ElectricalMeasurement::Attributes::ActiveCurrentPhaseC::Id: { + int16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("ClientGeneratedCommandList", 1, value); + return DataModelLogger::LogValue("active current phase c", 1, value); } - case DoorLock::Attributes::AttributeList::Id: { - chip::app::DataModel::DecodableList value; + case ElectricalMeasurement::Attributes::ReactiveCurrentPhaseC::Id: { + int16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("AttributeList", 1, value); + return DataModelLogger::LogValue("reactive current phase c", 1, value); } - case DoorLock::Attributes::ClusterRevision::Id: { + case ElectricalMeasurement::Attributes::RmsVoltagePhaseC::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("ClusterRevision", 1, value); + return DataModelLogger::LogValue("rms voltage phase c", 1, value); } + case ElectricalMeasurement::Attributes::RmsVoltageMinPhaseC::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("rms voltage min phase c", 1, value); } - break; - } - case ElectricalMeasurement::Id: { - switch (path.mAttributeId) - { - case ElectricalMeasurement::Attributes::MeasurementType::Id: { - uint32_t value; + case ElectricalMeasurement::Attributes::RmsVoltageMaxPhaseC::Id: { + uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("measurement type", 1, value); + return DataModelLogger::LogValue("rms voltage max phase c", 1, value); } - case ElectricalMeasurement::Attributes::TotalActivePower::Id: { - int32_t value; + case ElectricalMeasurement::Attributes::RmsCurrentPhaseC::Id: { + uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("total active power", 1, value); + return DataModelLogger::LogValue("rms current phase c", 1, value); } - case ElectricalMeasurement::Attributes::RmsVoltage::Id: { + case ElectricalMeasurement::Attributes::RmsCurrentMinPhaseC::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("rms voltage", 1, value); + return DataModelLogger::LogValue("rms current min phase c", 1, value); } - case ElectricalMeasurement::Attributes::RmsVoltageMin::Id: { + case ElectricalMeasurement::Attributes::RmsCurrentMaxPhaseC::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("rms voltage min", 1, value); + return DataModelLogger::LogValue("rms current max phase c", 1, value); } - case ElectricalMeasurement::Attributes::RmsVoltageMax::Id: { + case ElectricalMeasurement::Attributes::ActivePowerPhaseC::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("active power phase c", 1, value); + } + case ElectricalMeasurement::Attributes::ActivePowerMinPhaseC::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("active power min phase c", 1, value); + } + case ElectricalMeasurement::Attributes::ActivePowerMaxPhaseC::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("active power max phase c", 1, value); + } + case ElectricalMeasurement::Attributes::ReactivePowerPhaseC::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("reactive power phase c", 1, value); + } + case ElectricalMeasurement::Attributes::ApparentPowerPhaseC::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("rms voltage max", 1, value); + return DataModelLogger::LogValue("apparent power phase c", 1, value); } - case ElectricalMeasurement::Attributes::RmsCurrent::Id: { + case ElectricalMeasurement::Attributes::PowerFactorPhaseC::Id: { + int8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("power factor phase c", 1, value); + } + case ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("rms current", 1, value); + return DataModelLogger::LogValue("average rms voltage measurement period phase c", 1, value); } - case ElectricalMeasurement::Attributes::RmsCurrentMin::Id: { + case ElectricalMeasurement::Attributes::AverageRmsOverVoltageCounterPhaseC::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("rms current min", 1, value); + return DataModelLogger::LogValue("average rms over voltage counter phase c", 1, value); } - case ElectricalMeasurement::Attributes::RmsCurrentMax::Id: { + case ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounterPhaseC::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("rms current max", 1, value); + return DataModelLogger::LogValue("average rms under voltage counter phase c", 1, value); } - case ElectricalMeasurement::Attributes::ActivePower::Id: { - int16_t value; + case ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriodPhaseC::Id: { + uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("active power", 1, value); + return DataModelLogger::LogValue("rms extreme over voltage period phase c", 1, value); } - case ElectricalMeasurement::Attributes::ActivePowerMin::Id: { - int16_t value; + case ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriodPhaseC::Id: { + uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("active power min", 1, value); + return DataModelLogger::LogValue("rms extreme under voltage period phase c", 1, value); } - case ElectricalMeasurement::Attributes::ActivePowerMax::Id: { - int16_t value; + case ElectricalMeasurement::Attributes::RmsVoltageSagPeriodPhaseC::Id: { + uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("active power max", 1, value); + return DataModelLogger::LogValue("rms voltage sag period phase c", 1, value); + } + case ElectricalMeasurement::Attributes::RmsVoltageSwellPeriodPhaseC::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("rms voltage swell period phase c", 1, value); } case ElectricalMeasurement::Attributes::ServerGeneratedCommandList::Id: { chip::app::DataModel::DecodableList value; @@ -5168,6 +6275,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case ElectricalMeasurement::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case ElectricalMeasurement::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5275,6 +6387,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case FixedLabel::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case FixedLabel::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5321,6 +6438,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case FlowMeasurement::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case FlowMeasurement::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5367,6 +6489,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case GeneralCommissioning::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case GeneralCommissioning::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5435,6 +6562,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case GeneralDiagnostics::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case GeneralDiagnostics::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5483,6 +6615,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case GroupKeyManagement::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case GroupKeyManagement::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5514,6 +6651,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case Groups::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case Groups::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5550,6 +6692,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case Identify::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case Identify::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5601,6 +6748,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case IlluminanceMeasurement::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case IlluminanceMeasurement::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5627,6 +6779,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case KeypadInput::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case KeypadInput::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5759,6 +6916,16 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ClientGeneratedCommandList", 1, value); } + case LocalizationConfiguration::Attributes::AttributeList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("AttributeList", 1, value); + } + case LocalizationConfiguration::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case LocalizationConfiguration::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5785,6 +6952,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case LowPower::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case LowPower::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5821,6 +6993,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case MediaInput::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case MediaInput::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5847,6 +7024,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("duration", 1, value); } + case MediaPlayback::Attributes::Position::Id: { + chip::app::Clusters::MediaPlayback::Structs::PlaybackPosition::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("position", 1, value); + } case MediaPlayback::Attributes::PlaybackSpeed::Id: { float value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5877,6 +7059,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case MediaPlayback::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case MediaPlayback::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5928,6 +7115,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case ModeSelect::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case ModeSelect::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5990,6 +7182,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ClientGeneratedCommandList", 1, value); } + case NetworkCommissioning::Attributes::AttributeList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("AttributeList", 1, value); + } case NetworkCommissioning::Attributes::FeatureMap::Id: { uint32_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -6006,11 +7203,26 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP case OtaSoftwareUpdateProvider::Id: { switch (path.mAttributeId) { + case OtaSoftwareUpdateProvider::Attributes::ServerGeneratedCommandList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ServerGeneratedCommandList", 1, value); + } + case OtaSoftwareUpdateProvider::Attributes::ClientGeneratedCommandList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ClientGeneratedCommandList", 1, value); + } case OtaSoftwareUpdateProvider::Attributes::AttributeList::Id: { chip::app::DataModel::DecodableList value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case OtaSoftwareUpdateProvider::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case OtaSoftwareUpdateProvider::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -6044,11 +7256,26 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("UpdateStateProgress", 1, value); } + case OtaSoftwareUpdateRequestor::Attributes::ServerGeneratedCommandList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ServerGeneratedCommandList", 1, value); + } + case OtaSoftwareUpdateRequestor::Attributes::ClientGeneratedCommandList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ClientGeneratedCommandList", 1, value); + } case OtaSoftwareUpdateRequestor::Attributes::AttributeList::Id: { chip::app::DataModel::DecodableList value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case OtaSoftwareUpdateRequestor::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case OtaSoftwareUpdateRequestor::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -6075,6 +7302,51 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("occupancy sensor type bitmap", 1, value); } + case OccupancySensing::Attributes::PirOccupiedToUnoccupiedDelay::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("PIR occupied to unoccupied delay", 1, value); + } + case OccupancySensing::Attributes::PirUnoccupiedToOccupiedDelay::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("PIR unoccupied to occupied delay", 1, value); + } + case OccupancySensing::Attributes::PirUnoccupiedToOccupiedThreshold::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("PIR unoccupied to occupied threshold", 1, value); + } + case OccupancySensing::Attributes::UltrasonicOccupiedToUnoccupiedDelay::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ultrasonic occupied to unoccupied delay", 1, value); + } + case OccupancySensing::Attributes::UltrasonicUnoccupiedToOccupiedDelay::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ultrasonic unoccupied to occupied delay", 1, value); + } + case OccupancySensing::Attributes::UltrasonicUnoccupiedToOccupiedThreshold::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ultrasonic unoccupied to occupied threshold", 1, value); + } + case OccupancySensing::Attributes::PhysicalContactOccupiedToUnoccupiedDelay::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("physical contact occupied to unoccupied delay", 1, value); + } + case OccupancySensing::Attributes::PhysicalContactUnoccupiedToOccupiedDelay::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("physical contact unoccupied to occupied delay", 1, value); + } + case OccupancySensing::Attributes::PhysicalContactUnoccupiedToOccupiedThreshold::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("physical contact unoccupied to occupied threshold", 1, value); + } case OccupancySensing::Attributes::ServerGeneratedCommandList::Id: { chip::app::DataModel::DecodableList value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -6090,6 +7362,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case OccupancySensing::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case OccupancySensing::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -6182,6 +7459,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case OnOffSwitchConfiguration::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case OnOffSwitchConfiguration::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -6241,6 +7523,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case OperationalCredentials::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case OperationalCredentials::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -6267,6 +7554,46 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("Description", 1, value); } + case PowerSource::Attributes::WiredAssessedInputVoltage::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("WiredAssessedInputVoltage", 1, value); + } + case PowerSource::Attributes::WiredAssessedInputFrequency::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("WiredAssessedInputFrequency", 1, value); + } + case PowerSource::Attributes::WiredCurrentType::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("WiredCurrentType", 1, value); + } + case PowerSource::Attributes::WiredAssessedCurrent::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("WiredAssessedCurrent", 1, value); + } + case PowerSource::Attributes::WiredNominalVoltage::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("WiredNominalVoltage", 1, value); + } + case PowerSource::Attributes::WiredMaximumCurrent::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("WiredMaximumCurrent", 1, value); + } + case PowerSource::Attributes::WiredPresent::Id: { + bool value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("WiredPresent", 1, value); + } + case PowerSource::Attributes::ActiveWiredFaults::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ActiveWiredFaults", 1, value); + } case PowerSource::Attributes::BatteryVoltage::Id: { uint32_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -6287,16 +7614,86 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("BatteryChargeLevel", 1, value); } + case PowerSource::Attributes::BatteryReplacementNeeded::Id: { + bool value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("BatteryReplacementNeeded", 1, value); + } + case PowerSource::Attributes::BatteryReplaceability::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("BatteryReplaceability", 1, value); + } + case PowerSource::Attributes::BatteryPresent::Id: { + bool value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("BatteryPresent", 1, value); + } case PowerSource::Attributes::ActiveBatteryFaults::Id: { chip::app::DataModel::DecodableList value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ActiveBatteryFaults", 1, value); } + case PowerSource::Attributes::BatteryReplacementDescription::Id: { + chip::CharSpan value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("BatteryReplacementDescription", 1, value); + } + case PowerSource::Attributes::BatteryCommonDesignation::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("BatteryCommonDesignation", 1, value); + } + case PowerSource::Attributes::BatteryANSIDesignation::Id: { + chip::CharSpan value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("BatteryANSIDesignation", 1, value); + } + case PowerSource::Attributes::BatteryIECDesignation::Id: { + chip::CharSpan value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("BatteryIECDesignation", 1, value); + } + case PowerSource::Attributes::BatteryApprovedChemistry::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("BatteryApprovedChemistry", 1, value); + } + case PowerSource::Attributes::BatteryCapacity::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("BatteryCapacity", 1, value); + } + case PowerSource::Attributes::BatteryQuantity::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("BatteryQuantity", 1, value); + } case PowerSource::Attributes::BatteryChargeState::Id: { uint8_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("BatteryChargeState", 1, value); } + case PowerSource::Attributes::BatteryTimeToFullCharge::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("BatteryTimeToFullCharge", 1, value); + } + case PowerSource::Attributes::BatteryFunctionalWhileCharging::Id: { + bool value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("BatteryFunctionalWhileCharging", 1, value); + } + case PowerSource::Attributes::BatteryChargingCurrent::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("BatteryChargingCurrent", 1, value); + } + case PowerSource::Attributes::ActiveBatteryChargeFaults::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ActiveBatteryChargeFaults", 1, value); + } case PowerSource::Attributes::ServerGeneratedCommandList::Id: { chip::app::DataModel::DecodableList value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -6348,6 +7745,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case PowerSourceConfiguration::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case PowerSourceConfiguration::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -6374,11 +7776,56 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("MaxMeasuredValue", 1, value); } + case PressureMeasurement::Attributes::Tolerance::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("Tolerance", 1, value); + } + case PressureMeasurement::Attributes::ScaledValue::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ScaledValue", 1, value); + } + case PressureMeasurement::Attributes::MinScaledValue::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("MinScaledValue", 1, value); + } + case PressureMeasurement::Attributes::MaxScaledValue::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("MaxScaledValue", 1, value); + } + case PressureMeasurement::Attributes::ScaledTolerance::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ScaledTolerance", 1, value); + } + case PressureMeasurement::Attributes::Scale::Id: { + int8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("Scale", 1, value); + } + case PressureMeasurement::Attributes::ServerGeneratedCommandList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ServerGeneratedCommandList", 1, value); + } + case PressureMeasurement::Attributes::ClientGeneratedCommandList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ClientGeneratedCommandList", 1, value); + } case PressureMeasurement::Attributes::AttributeList::Id: { chip::app::DataModel::DecodableList value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case PressureMeasurement::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case PressureMeasurement::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -6576,6 +8023,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case RelativeHumidityMeasurement::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case RelativeHumidityMeasurement::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -6612,6 +8064,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("name support", 1, value); } + case Scenes::Attributes::LastConfiguredBy::Id: { + chip::NodeId value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("last configured by", 1, value); + } case Scenes::Attributes::ServerGeneratedCommandList::Id: { chip::app::DataModel::DecodableList value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -6627,6 +8084,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case Scenes::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case Scenes::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -6761,6 +8223,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case TargetNavigator::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case TargetNavigator::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -6792,11 +8259,26 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("Tolerance", 1, value); } + case TemperatureMeasurement::Attributes::ServerGeneratedCommandList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ServerGeneratedCommandList", 1, value); + } + case TemperatureMeasurement::Attributes::ClientGeneratedCommandList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ClientGeneratedCommandList", 1, value); + } case TemperatureMeasurement::Attributes::AttributeList::Id: { chip::app::DataModel::DecodableList value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case TemperatureMeasurement::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case TemperatureMeasurement::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -7026,6 +8508,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("list_long_octet_string", 1, value); } + case TestCluster::Attributes::ListFabricScoped::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("list_fabric_scoped", 1, value); + } case TestCluster::Attributes::TimedWriteBoolean::Id: { bool value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -7226,6 +8713,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case TestCluster::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case TestCluster::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -7242,6 +8734,16 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("local temperature", 1, value); } + case Thermostat::Attributes::OutdoorTemperature::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("outdoor temperature", 1, value); + } + case Thermostat::Attributes::Occupancy::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("occupancy", 1, value); + } case Thermostat::Attributes::AbsMinHeatSetpointLimit::Id: { int16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -7262,6 +8764,26 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("abs max cool setpoint limit", 1, value); } + case Thermostat::Attributes::PiCoolingDemand::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("pi cooling demand", 1, value); + } + case Thermostat::Attributes::PiHeatingDemand::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("pi heating demand", 1, value); + } + case Thermostat::Attributes::HvacSystemTypeConfiguration::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("HVAC system type configuration", 1, value); + } + case Thermostat::Attributes::LocalTemperatureCalibration::Id: { + int8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("local temperature calibration", 1, value); + } case Thermostat::Attributes::OccupiedCoolingSetpoint::Id: { int16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -7272,6 +8794,16 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("occupied heating setpoint", 1, value); } + case Thermostat::Attributes::UnoccupiedCoolingSetpoint::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("unoccupied cooling setpoint", 1, value); + } + case Thermostat::Attributes::UnoccupiedHeatingSetpoint::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("unoccupied heating setpoint", 1, value); + } case Thermostat::Attributes::MinHeatSetpointLimit::Id: { int16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -7290,37 +8822,137 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP case Thermostat::Attributes::MaxCoolSetpointLimit::Id: { int16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("max cool setpoint limit", 1, value); + return DataModelLogger::LogValue("max cool setpoint limit", 1, value); + } + case Thermostat::Attributes::MinSetpointDeadBand::Id: { + int8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("min setpoint dead band", 1, value); + } + case Thermostat::Attributes::RemoteSensing::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("remote sensing", 1, value); + } + case Thermostat::Attributes::ControlSequenceOfOperation::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("control sequence of operation", 1, value); + } + case Thermostat::Attributes::SystemMode::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("system mode", 1, value); + } + case Thermostat::Attributes::AlarmMask::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("alarm mask", 1, value); + } + case Thermostat::Attributes::ThermostatRunningMode::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("thermostat running mode", 1, value); + } + case Thermostat::Attributes::StartOfWeek::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("start of week", 1, value); + } + case Thermostat::Attributes::NumberOfWeeklyTransitions::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("number of weekly transitions", 1, value); + } + case Thermostat::Attributes::NumberOfDailyTransitions::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("number of daily transitions", 1, value); + } + case Thermostat::Attributes::TemperatureSetpointHold::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("temperature setpoint hold", 1, value); + } + case Thermostat::Attributes::TemperatureSetpointHoldDuration::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("temperature setpoint hold duration", 1, value); + } + case Thermostat::Attributes::ThermostatProgrammingOperationMode::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("thermostat programming operation mode", 1, value); + } + case Thermostat::Attributes::ThermostatRunningState::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("thermostat running state", 1, value); + } + case Thermostat::Attributes::SetpointChangeSource::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("setpoint change source", 1, value); + } + case Thermostat::Attributes::SetpointChangeAmount::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("setpoint change amount", 1, value); } - case Thermostat::Attributes::MinSetpointDeadBand::Id: { - int8_t value; + case Thermostat::Attributes::SetpointChangeSourceTimestamp::Id: { + uint32_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("min setpoint dead band", 1, value); + return DataModelLogger::LogValue("setpoint change source timestamp", 1, value); } - case Thermostat::Attributes::ControlSequenceOfOperation::Id: { + case Thermostat::Attributes::AcType::Id: { uint8_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("control sequence of operation", 1, value); + return DataModelLogger::LogValue("ac type", 1, value); } - case Thermostat::Attributes::SystemMode::Id: { + case Thermostat::Attributes::AcCapacity::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac capacity", 1, value); + } + case Thermostat::Attributes::AcRefrigerantType::Id: { uint8_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("system mode", 1, value); + return DataModelLogger::LogValue("ac refrigerant type", 1, value); } - case Thermostat::Attributes::StartOfWeek::Id: { + case Thermostat::Attributes::AcCompressor::Id: { uint8_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("start of week", 1, value); + return DataModelLogger::LogValue("ac compressor", 1, value); } - case Thermostat::Attributes::NumberOfWeeklyTransitions::Id: { + case Thermostat::Attributes::AcErrorCode::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac error code", 1, value); + } + case Thermostat::Attributes::AcLouverPosition::Id: { uint8_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("number of weekly transitions", 1, value); + return DataModelLogger::LogValue("ac louver position", 1, value); } - case Thermostat::Attributes::NumberOfDailyTransitions::Id: { + case Thermostat::Attributes::AcCoilTemperature::Id: { + int16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ac coil temperature", 1, value); + } + case Thermostat::Attributes::AcCapacityFormat::Id: { uint8_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("number of daily transitions", 1, value); + return DataModelLogger::LogValue("ac capacity format", 1, value); + } + case Thermostat::Attributes::ServerGeneratedCommandList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ServerGeneratedCommandList", 1, value); + } + case Thermostat::Attributes::ClientGeneratedCommandList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ClientGeneratedCommandList", 1, value); } case Thermostat::Attributes::AttributeList::Id: { chip::app::DataModel::DecodableList value; @@ -7373,6 +9005,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case ThermostatUserInterfaceConfiguration::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case ThermostatUserInterfaceConfiguration::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -7762,6 +9399,16 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ClientGeneratedCommandList", 1, value); } + case TimeFormatLocalization::Attributes::AttributeList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("AttributeList", 1, value); + } + case TimeFormatLocalization::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case TimeFormatLocalization::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -7778,6 +9425,16 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("TemperatureUnit", 1, value); } + case UnitLocalization::Attributes::ServerGeneratedCommandList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ServerGeneratedCommandList", 1, value); + } + case UnitLocalization::Attributes::ClientGeneratedCommandList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ClientGeneratedCommandList", 1, value); + } case UnitLocalization::Attributes::AttributeList::Id: { chip::app::DataModel::DecodableList value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -7814,6 +9471,16 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ClientGeneratedCommandList", 1, value); } + case UserLabel::Attributes::AttributeList::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("AttributeList", 1, value); + } + case UserLabel::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case UserLabel::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -7845,6 +9512,11 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttributeList", 1, value); } + case WakeOnLan::Attributes::FeatureMap::Id: { + uint32_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("FeatureMap", 1, value); + } case WakeOnLan::Attributes::ClusterRevision::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -7957,6 +9629,16 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("Type", 1, value); } + case WindowCovering::Attributes::PhysicalClosedLimitLift::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("PhysicalClosedLimitLift", 1, value); + } + case WindowCovering::Attributes::PhysicalClosedLimitTilt::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("PhysicalClosedLimitTilt", 1, value); + } case WindowCovering::Attributes::CurrentPositionLift::Id: { chip::app::DataModel::Nullable value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -7967,6 +9649,16 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("CurrentPositionTilt", 1, value); } + case WindowCovering::Attributes::NumberOfActuationsLift::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("NumberOfActuationsLift", 1, value); + } + case WindowCovering::Attributes::NumberOfActuationsTilt::Id: { + uint16_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("NumberOfActuationsTilt", 1, value); + } case WindowCovering::Attributes::ConfigStatus::Id: { uint8_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -8142,15 +9834,20 @@ CHIP_ERROR DataModelLogger::LogCommand(const chip::app::ConcreteCommandPath & pa case DoorLock::Id: { switch (path.mCommandId) { - case DoorLock::Commands::GetCredentialStatusResponse::Id: { - DoorLock::Commands::GetCredentialStatusResponse::DecodableType value; + case DoorLock::Commands::GetLogRecordResponse::Id: { + DoorLock::Commands::GetLogRecordResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("GetCredentialStatusResponse", 1, value); + return DataModelLogger::LogValue("GetLogRecordResponse", 1, value); } - case DoorLock::Commands::GetUserResponse::Id: { - DoorLock::Commands::GetUserResponse::DecodableType value; + case DoorLock::Commands::GetPINCodeResponse::Id: { + DoorLock::Commands::GetPINCodeResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("GetUserResponse", 1, value); + return DataModelLogger::LogValue("GetPINCodeResponse", 1, value); + } + case DoorLock::Commands::GetUserStatusResponse::Id: { + DoorLock::Commands::GetUserStatusResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("GetUserStatusResponse", 1, value); } case DoorLock::Commands::GetWeekDayScheduleResponse::Id: { DoorLock::Commands::GetWeekDayScheduleResponse::DecodableType value; @@ -8162,11 +9859,62 @@ CHIP_ERROR DataModelLogger::LogCommand(const chip::app::ConcreteCommandPath & pa ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("GetYearDayScheduleResponse", 1, value); } + case DoorLock::Commands::GetHolidayScheduleResponse::Id: { + DoorLock::Commands::GetHolidayScheduleResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("GetHolidayScheduleResponse", 1, value); + } + case DoorLock::Commands::GetUserTypeResponse::Id: { + DoorLock::Commands::GetUserTypeResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("GetUserTypeResponse", 1, value); + } + case DoorLock::Commands::GetRFIDCodeResponse::Id: { + DoorLock::Commands::GetRFIDCodeResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("GetRFIDCodeResponse", 1, value); + } + case DoorLock::Commands::GetUserResponse::Id: { + DoorLock::Commands::GetUserResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("GetUserResponse", 1, value); + } + case DoorLock::Commands::OperatingEventNotification::Id: { + DoorLock::Commands::OperatingEventNotification::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("OperatingEventNotification", 1, value); + } + case DoorLock::Commands::ProgrammingEventNotification::Id: { + DoorLock::Commands::ProgrammingEventNotification::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ProgrammingEventNotification", 1, value); + } case DoorLock::Commands::SetCredentialResponse::Id: { DoorLock::Commands::SetCredentialResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("SetCredentialResponse", 1, value); } + case DoorLock::Commands::GetCredentialStatusResponse::Id: { + DoorLock::Commands::GetCredentialStatusResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("GetCredentialStatusResponse", 1, value); + } + } + break; + } + case ElectricalMeasurement::Id: { + switch (path.mCommandId) + { + case ElectricalMeasurement::Commands::GetProfileInfoResponseCommand::Id: { + ElectricalMeasurement::Commands::GetProfileInfoResponseCommand::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("GetProfileInfoResponseCommand", 1, value); + } + case ElectricalMeasurement::Commands::GetMeasurementProfileResponseCommand::Id: { + ElectricalMeasurement::Commands::GetMeasurementProfileResponseCommand::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("GetMeasurementProfileResponseCommand", 1, value); + } } break; } @@ -8178,32 +9926,32 @@ CHIP_ERROR DataModelLogger::LogCommand(const chip::app::ConcreteCommandPath & pa ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ArmFailSafeResponse", 1, value); } - case GeneralCommissioning::Commands::CommissioningCompleteResponse::Id: { - GeneralCommissioning::Commands::CommissioningCompleteResponse::DecodableType value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("CommissioningCompleteResponse", 1, value); - } case GeneralCommissioning::Commands::SetRegulatoryConfigResponse::Id: { GeneralCommissioning::Commands::SetRegulatoryConfigResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("SetRegulatoryConfigResponse", 1, value); } + case GeneralCommissioning::Commands::CommissioningCompleteResponse::Id: { + GeneralCommissioning::Commands::CommissioningCompleteResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("CommissioningCompleteResponse", 1, value); + } } break; } case GroupKeyManagement::Id: { switch (path.mCommandId) { - case GroupKeyManagement::Commands::KeySetReadAllIndicesResponse::Id: { - GroupKeyManagement::Commands::KeySetReadAllIndicesResponse::DecodableType value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("KeySetReadAllIndicesResponse", 1, value); - } case GroupKeyManagement::Commands::KeySetReadResponse::Id: { GroupKeyManagement::Commands::KeySetReadResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("KeySetReadResponse", 1, value); } + case GroupKeyManagement::Commands::KeySetReadAllIndicesResponse::Id: { + GroupKeyManagement::Commands::KeySetReadAllIndicesResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("KeySetReadAllIndicesResponse", 1, value); + } } break; } @@ -8215,6 +9963,11 @@ CHIP_ERROR DataModelLogger::LogCommand(const chip::app::ConcreteCommandPath & pa ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AddGroupResponse", 1, value); } + case Groups::Commands::ViewGroupResponse::Id: { + Groups::Commands::ViewGroupResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ViewGroupResponse", 1, value); + } case Groups::Commands::GetGroupMembershipResponse::Id: { Groups::Commands::GetGroupMembershipResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -8225,11 +9978,6 @@ CHIP_ERROR DataModelLogger::LogCommand(const chip::app::ConcreteCommandPath & pa ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("RemoveGroupResponse", 1, value); } - case Groups::Commands::ViewGroupResponse::Id: { - Groups::Commands::ViewGroupResponse::DecodableType value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("ViewGroupResponse", 1, value); - } } break; } @@ -8269,20 +10017,20 @@ CHIP_ERROR DataModelLogger::LogCommand(const chip::app::ConcreteCommandPath & pa case NetworkCommissioning::Id: { switch (path.mCommandId) { - case NetworkCommissioning::Commands::ConnectNetworkResponse::Id: { - NetworkCommissioning::Commands::ConnectNetworkResponse::DecodableType value; + case NetworkCommissioning::Commands::ScanNetworksResponse::Id: { + NetworkCommissioning::Commands::ScanNetworksResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("ConnectNetworkResponse", 1, value); + return DataModelLogger::LogValue("ScanNetworksResponse", 1, value); } case NetworkCommissioning::Commands::NetworkConfigResponse::Id: { NetworkCommissioning::Commands::NetworkConfigResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("NetworkConfigResponse", 1, value); } - case NetworkCommissioning::Commands::ScanNetworksResponse::Id: { - NetworkCommissioning::Commands::ScanNetworksResponse::DecodableType value; + case NetworkCommissioning::Commands::ConnectNetworkResponse::Id: { + NetworkCommissioning::Commands::ConnectNetworkResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("ScanNetworksResponse", 1, value); + return DataModelLogger::LogValue("ConnectNetworkResponse", 1, value); } } break; @@ -8290,16 +10038,16 @@ CHIP_ERROR DataModelLogger::LogCommand(const chip::app::ConcreteCommandPath & pa case OtaSoftwareUpdateProvider::Id: { switch (path.mCommandId) { - case OtaSoftwareUpdateProvider::Commands::ApplyUpdateResponse::Id: { - OtaSoftwareUpdateProvider::Commands::ApplyUpdateResponse::DecodableType value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("ApplyUpdateResponse", 1, value); - } case OtaSoftwareUpdateProvider::Commands::QueryImageResponse::Id: { OtaSoftwareUpdateProvider::Commands::QueryImageResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("QueryImageResponse", 1, value); } + case OtaSoftwareUpdateProvider::Commands::ApplyUpdateResponse::Id: { + OtaSoftwareUpdateProvider::Commands::ApplyUpdateResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ApplyUpdateResponse", 1, value); + } } break; } @@ -8311,16 +10059,16 @@ CHIP_ERROR DataModelLogger::LogCommand(const chip::app::ConcreteCommandPath & pa ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AttestationResponse", 1, value); } - case OperationalCredentials::Commands::CSRResponse::Id: { - OperationalCredentials::Commands::CSRResponse::DecodableType value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("CSRResponse", 1, value); - } case OperationalCredentials::Commands::CertificateChainResponse::Id: { OperationalCredentials::Commands::CertificateChainResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("CertificateChainResponse", 1, value); } + case OperationalCredentials::Commands::CSRResponse::Id: { + OperationalCredentials::Commands::CSRResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("CSRResponse", 1, value); + } case OperationalCredentials::Commands::NOCResponse::Id: { OperationalCredentials::Commands::NOCResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -8337,30 +10085,45 @@ CHIP_ERROR DataModelLogger::LogCommand(const chip::app::ConcreteCommandPath & pa ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("AddSceneResponse", 1, value); } - case Scenes::Commands::GetSceneMembershipResponse::Id: { - Scenes::Commands::GetSceneMembershipResponse::DecodableType value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("GetSceneMembershipResponse", 1, value); - } - case Scenes::Commands::RemoveAllScenesResponse::Id: { - Scenes::Commands::RemoveAllScenesResponse::DecodableType value; + case Scenes::Commands::ViewSceneResponse::Id: { + Scenes::Commands::ViewSceneResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("RemoveAllScenesResponse", 1, value); + return DataModelLogger::LogValue("ViewSceneResponse", 1, value); } case Scenes::Commands::RemoveSceneResponse::Id: { Scenes::Commands::RemoveSceneResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("RemoveSceneResponse", 1, value); } + case Scenes::Commands::RemoveAllScenesResponse::Id: { + Scenes::Commands::RemoveAllScenesResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("RemoveAllScenesResponse", 1, value); + } case Scenes::Commands::StoreSceneResponse::Id: { Scenes::Commands::StoreSceneResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("StoreSceneResponse", 1, value); } - case Scenes::Commands::ViewSceneResponse::Id: { - Scenes::Commands::ViewSceneResponse::DecodableType value; + case Scenes::Commands::GetSceneMembershipResponse::Id: { + Scenes::Commands::GetSceneMembershipResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("ViewSceneResponse", 1, value); + return DataModelLogger::LogValue("GetSceneMembershipResponse", 1, value); + } + case Scenes::Commands::EnhancedAddSceneResponse::Id: { + Scenes::Commands::EnhancedAddSceneResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("EnhancedAddSceneResponse", 1, value); + } + case Scenes::Commands::EnhancedViewSceneResponse::Id: { + Scenes::Commands::EnhancedViewSceneResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("EnhancedViewSceneResponse", 1, value); + } + case Scenes::Commands::CopySceneResponse::Id: { + Scenes::Commands::CopySceneResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("CopySceneResponse", 1, value); } } break; @@ -8379,45 +10142,65 @@ CHIP_ERROR DataModelLogger::LogCommand(const chip::app::ConcreteCommandPath & pa case TestCluster::Id: { switch (path.mCommandId) { - case TestCluster::Commands::BooleanResponse::Id: { - TestCluster::Commands::BooleanResponse::DecodableType value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("BooleanResponse", 1, value); - } - case TestCluster::Commands::SimpleStructResponse::Id: { - TestCluster::Commands::SimpleStructResponse::DecodableType value; + case TestCluster::Commands::TestSpecificResponse::Id: { + TestCluster::Commands::TestSpecificResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("SimpleStructResponse", 1, value); + return DataModelLogger::LogValue("TestSpecificResponse", 1, value); } case TestCluster::Commands::TestAddArgumentsResponse::Id: { TestCluster::Commands::TestAddArgumentsResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("TestAddArgumentsResponse", 1, value); } - case TestCluster::Commands::TestEmitTestEventResponse::Id: { - TestCluster::Commands::TestEmitTestEventResponse::DecodableType value; + case TestCluster::Commands::TestSimpleArgumentResponse::Id: { + TestCluster::Commands::TestSimpleArgumentResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("TestEmitTestEventResponse", 1, value); + return DataModelLogger::LogValue("TestSimpleArgumentResponse", 1, value); } - case TestCluster::Commands::TestEnumsResponse::Id: { - TestCluster::Commands::TestEnumsResponse::DecodableType value; + case TestCluster::Commands::TestStructArrayArgumentResponse::Id: { + TestCluster::Commands::TestStructArrayArgumentResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("TestEnumsResponse", 1, value); + return DataModelLogger::LogValue("TestStructArrayArgumentResponse", 1, value); } case TestCluster::Commands::TestListInt8UReverseResponse::Id: { TestCluster::Commands::TestListInt8UReverseResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("TestListInt8UReverseResponse", 1, value); } + case TestCluster::Commands::TestEnumsResponse::Id: { + TestCluster::Commands::TestEnumsResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("TestEnumsResponse", 1, value); + } case TestCluster::Commands::TestNullableOptionalResponse::Id: { TestCluster::Commands::TestNullableOptionalResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("TestNullableOptionalResponse", 1, value); } - case TestCluster::Commands::TestSpecificResponse::Id: { - TestCluster::Commands::TestSpecificResponse::DecodableType value; + case TestCluster::Commands::TestComplexNullableOptionalResponse::Id: { + TestCluster::Commands::TestComplexNullableOptionalResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("TestSpecificResponse", 1, value); + return DataModelLogger::LogValue("TestComplexNullableOptionalResponse", 1, value); + } + case TestCluster::Commands::BooleanResponse::Id: { + TestCluster::Commands::BooleanResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("BooleanResponse", 1, value); + } + case TestCluster::Commands::SimpleStructResponse::Id: { + TestCluster::Commands::SimpleStructResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("SimpleStructResponse", 1, value); + } + case TestCluster::Commands::TestEmitTestEventResponse::Id: { + TestCluster::Commands::TestEmitTestEventResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("TestEmitTestEventResponse", 1, value); + } + case TestCluster::Commands::TestEmitTestFabricScopedEventResponse::Id: { + TestCluster::Commands::TestEmitTestFabricScopedEventResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("TestEmitTestFabricScopedEventResponse", 1, value); } } break; @@ -8425,16 +10208,16 @@ CHIP_ERROR DataModelLogger::LogCommand(const chip::app::ConcreteCommandPath & pa case Thermostat::Id: { switch (path.mCommandId) { - case Thermostat::Commands::GetRelayStatusLogResponse::Id: { - Thermostat::Commands::GetRelayStatusLogResponse::DecodableType value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("GetRelayStatusLogResponse", 1, value); - } case Thermostat::Commands::GetWeeklyScheduleResponse::Id: { Thermostat::Commands::GetWeeklyScheduleResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("GetWeeklyScheduleResponse", 1, value); } + case Thermostat::Commands::GetRelayStatusLogResponse::Id: { + Thermostat::Commands::GetRelayStatusLogResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("GetRelayStatusLogResponse", 1, value); + } } break; } diff --git a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.h b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.h index e044d993be6bc4..d323973601752f 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.h @@ -270,95 +270,134 @@ static CHIP_ERROR LogValue(const char * label, size_t indent, static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::DiagnosticLogs::Commands::RetrieveLogsResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::DoorLock::Commands::GetCredentialStatusResponse::DecodableType & value); + const chip::app::Clusters::DoorLock::Commands::GetLogRecordResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::DoorLock::Commands::GetUserResponse::DecodableType & value); + const chip::app::Clusters::DoorLock::Commands::GetPINCodeResponse::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::DoorLock::Commands::GetUserStatusResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::DoorLock::Commands::GetWeekDayScheduleResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::DoorLock::Commands::GetYearDayScheduleResponse::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::DoorLock::Commands::GetHolidayScheduleResponse::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::DoorLock::Commands::GetUserTypeResponse::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::DoorLock::Commands::GetRFIDCodeResponse::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::DoorLock::Commands::GetUserResponse::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::DoorLock::Commands::OperatingEventNotification::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::DoorLock::Commands::ProgrammingEventNotification::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::DoorLock::Commands::SetCredentialResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::GeneralCommissioning::Commands::ArmFailSafeResponse::DecodableType & value); + const chip::app::Clusters::DoorLock::Commands::GetCredentialStatusResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::GeneralCommissioning::Commands::CommissioningCompleteResponse::DecodableType & value); + const chip::app::Clusters::ElectricalMeasurement::Commands::GetProfileInfoResponseCommand::DecodableType & value); +static CHIP_ERROR +LogValue(const char * label, size_t indent, + const chip::app::Clusters::ElectricalMeasurement::Commands::GetMeasurementProfileResponseCommand::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::GeneralCommissioning::Commands::ArmFailSafeResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::GeneralCommissioning::Commands::SetRegulatoryConfigResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::GroupKeyManagement::Commands::KeySetReadAllIndicesResponse::DecodableType & value); + const chip::app::Clusters::GeneralCommissioning::Commands::CommissioningCompleteResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::GroupKeyManagement::Commands::KeySetReadResponse::DecodableType & value); +static CHIP_ERROR +LogValue(const char * label, size_t indent, + const chip::app::Clusters::GroupKeyManagement::Commands::KeySetReadAllIndicesResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::Groups::Commands::AddGroupResponse::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::Groups::Commands::ViewGroupResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::Groups::Commands::GetGroupMembershipResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::Groups::Commands::RemoveGroupResponse::DecodableType & value); -static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::Groups::Commands::ViewGroupResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::Identify::Commands::IdentifyQueryResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType & value); -static CHIP_ERROR -LogValue(const char * label, size_t indent, - const chip::app::Clusters::NetworkCommissioning::Commands::ConnectNetworkResponse::DecodableType & value); -static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::NetworkCommissioning::Commands::NetworkConfigResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::NetworkCommissioning::Commands::ScanNetworksResponse::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::NetworkCommissioning::Commands::NetworkConfigResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateResponse::DecodableType & value); + const chip::app::Clusters::NetworkCommissioning::Commands::ConnectNetworkResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::QueryImageResponse::DecodableType & value); +static CHIP_ERROR +LogValue(const char * label, size_t indent, + const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::OperationalCredentials::Commands::AttestationResponse::DecodableType & value); -static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::OperationalCredentials::Commands::CSRResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::OperationalCredentials::Commands::CertificateChainResponse::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::OperationalCredentials::Commands::CSRResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::OperationalCredentials::Commands::NOCResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::Scenes::Commands::AddSceneResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::Scenes::Commands::GetSceneMembershipResponse::DecodableType & value); -static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::Scenes::Commands::RemoveAllScenesResponse::DecodableType & value); + const chip::app::Clusters::Scenes::Commands::ViewSceneResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::Scenes::Commands::RemoveSceneResponse::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::Scenes::Commands::RemoveAllScenesResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::Scenes::Commands::StoreSceneResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::Scenes::Commands::ViewSceneResponse::DecodableType & value); + const chip::app::Clusters::Scenes::Commands::GetSceneMembershipResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::TargetNavigator::Commands::NavigateTargetResponse::DecodableType & value); + const chip::app::Clusters::Scenes::Commands::EnhancedAddSceneResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::TestCluster::Commands::BooleanResponse::DecodableType & value); + const chip::app::Clusters::Scenes::Commands::EnhancedViewSceneResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::TestCluster::Commands::SimpleStructResponse::DecodableType & value); + const chip::app::Clusters::Scenes::Commands::CopySceneResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::TestCluster::Commands::TestAddArgumentsResponse::DecodableType & value); + const chip::app::Clusters::TargetNavigator::Commands::NavigateTargetResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::TestCluster::Commands::TestEmitTestEventResponse::DecodableType & value); + const chip::app::Clusters::TestCluster::Commands::TestSpecificResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::TestCluster::Commands::TestEnumsResponse::DecodableType & value); + const chip::app::Clusters::TestCluster::Commands::TestAddArgumentsResponse::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::TestCluster::Commands::TestSimpleArgumentResponse::DecodableType & value); +static CHIP_ERROR +LogValue(const char * label, size_t indent, + const chip::app::Clusters::TestCluster::Commands::TestStructArrayArgumentResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseResponse::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::TestCluster::Commands::TestEnumsResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::TestCluster::Commands::TestNullableOptionalResponse::DecodableType & value); +static CHIP_ERROR +LogValue(const char * label, size_t indent, + const chip::app::Clusters::TestCluster::Commands::TestComplexNullableOptionalResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::TestCluster::Commands::TestSpecificResponse::DecodableType & value); + const chip::app::Clusters::TestCluster::Commands::BooleanResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::Thermostat::Commands::GetRelayStatusLogResponse::DecodableType & value); + const chip::app::Clusters::TestCluster::Commands::SimpleStructResponse::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::TestCluster::Commands::TestEmitTestEventResponse::DecodableType & value); +static CHIP_ERROR +LogValue(const char * label, size_t indent, + const chip::app::Clusters::TestCluster::Commands::TestEmitTestFabricScopedEventResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::Thermostat::Commands::GetWeeklyScheduleResponse::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::Thermostat::Commands::GetRelayStatusLogResponse::DecodableType & value);