From ac7e2f730558c066155b7ecdec4e4785662240f8 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 9 Jun 2022 10:34:14 -0400 Subject: [PATCH] Make test cluster code an "manufacturer extension cluster" (#19288) * Move 0x050F to 0xFFF1050F for test cluster * Update test cluster code in zap files * Ran zap regen * For purposes of naming, switch data sizes to uint32_t to support full codes. I am unsure why mfgCode was used to have a cluster code, but it seems to behave like that * Remove MFG code from println code: it does not seem used * Restyle * Single extra error log for failure since the log of "assertion failed: "onSuccessWasCalled && !onFailureWasCalled"" is not as useful * Switch cluster ID from 0xFFF1050F to 0xFFF1F50F to match spec range restrictions * Switch cluster ID from 0xFFF1F50F to 0xFFF1FC05 to match spec range restrictions .. even more restricted it seems * Switch cluster ID from 0xFFF1F50F to 0xFFF1FC05 to match spec range restrictions .. even more restricted it seems * Remove unused argument * Update unit test getting of cluster info to use the new cluster id for the test cluster * Update protobuf for pigwed with the updated cluster id for the test cluster * Update tvapp constant for test cluster. Why does TV app use a test cluster? * Use ChipClusterId data type * Isolate the protobuf definition in an enum for the test cluster id - the id is too large to be acccepted by protoc * Define the constant after all, with a big explanation about why it is likely bad --- .../all-clusters-app.matter | 34 +- .../all-clusters-common/all-clusters-app.zap | 10 +- .../all-clusters-minimal-app.matter | 2 +- .../all-clusters-minimal-app.zap | 10 +- .../pigweed/protos/attributes_service.proto | 8 +- .../thermostat-common/thermostat.zap | 10 +- .../java/src/com/tcl/chip/tvapp/Clusters.java | 2 +- examples/tv-app/tv-common/tv-app.zap | 10 +- .../tv-casting-common/tv-casting-app.matter | 2 +- .../tv-casting-common/tv-casting-app.zap | 10 +- src/app/util/util.cpp | 4 +- src/app/util/util.h | 3 +- .../templates/app/print-cluster.zapt | 2 +- .../zcl/data-model/chip/test-cluster.xml | 28 +- .../data_model/controller-clusters.matter | 4 +- .../data_model/controller-clusters.zap | 4 +- .../chip/devicecontroller/ChipClusters.java | 2 +- .../chip/devicecontroller/ChipIdLookup.java | 4 +- .../python/chip/clusters/CHIPClusters.py | 4 +- .../python/chip/clusters/Objects.py | 6496 ++++++------- .../python/test/test_scripts/base.py | 2 +- .../tests/TestServerCommandDispatch.cpp | 5 +- .../CHIP/zap-generated/CHIPCallbackBridge.mm | 104 +- .../CHIPCallbackBridge_internal.h | 120 +- .../CHIP/zap-generated/CHIPClustersObjc.h | 82 +- .../zap-generated/CHIPCommandPayloadsObjc.h | 540 +- .../zap-generated/CHIPCommandPayloadsObjc.mm | 796 +- .../zap-generated/MatterClusterConstants.h | 236 +- .../zap-generated/endpoint_config.h | 54 +- .../zap-generated/endpoint_config.h | 2 +- .../app-common/zap-generated/attribute-id.h | 174 +- .../zap-generated/attributes/Accessors.cpp | 6474 ++++++------- .../zap-generated/attributes/Accessors.h | 1884 ++-- .../app-common/zap-generated/callback.h | 462 +- .../zap-generated/callbacks/PluginCallbacks.h | 4 +- .../app-common/zap-generated/cluster-enums.h | 112 +- .../app-common/zap-generated/cluster-id.h | 6 +- .../zap-generated/cluster-objects.cpp | 4598 ++++----- .../zap-generated/cluster-objects.h | 8200 ++++++++--------- .../app-common/zap-generated/command-id.h | 58 +- .../app-common/zap-generated/ids/Attributes.h | 1246 +-- .../app-common/zap-generated/ids/Clusters.h | 6 +- .../app-common/zap-generated/ids/Commands.h | 216 +- .../app-common/zap-generated/print-cluster.h | 253 +- .../zap-generated/cluster/Commands.h | 4508 ++++----- .../zap-generated/endpoint_config.h | 8 +- .../zap-generated/cluster/Commands.h | 554 +- .../zap-generated/endpoint_config.h | 2 +- 48 files changed, 18679 insertions(+), 18676 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 3a9b0d9f0c6c47..a743aeb9417845 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -3041,7 +3041,7 @@ server cluster TemperatureMeasurement = 1026 { readonly attribute int16u clusterRevision = 65533; } -server cluster TestCluster = 1295 { +server cluster TestCluster = 4294048773 { enum SimpleEnum : ENUM8 { kUnspecified = 0; kValueA = 1; @@ -4680,6 +4680,22 @@ endpoint 1 { ram attribute clusterRevision default = 1; } + server cluster ElectricalMeasurement { + ram attribute measurementType; + ram attribute totalActivePower; + ram attribute rmsVoltage default = 0xffff; + ram attribute rmsVoltageMin default = 0x8000; + ram attribute rmsVoltageMax default = 0x8000; + ram attribute rmsCurrent default = 0xffff; + ram attribute rmsCurrentMin default = 0xffff; + ram attribute rmsCurrentMax default = 0xffff; + ram attribute activePower default = 0xffff; + ram attribute activePowerMin default = 0xffff; + ram attribute activePowerMax default = 0xffff; + ram attribute featureMap; + ram attribute clusterRevision default = 3; + } + server cluster TestCluster { ram attribute boolean; ram attribute bitmap8; @@ -4764,22 +4780,6 @@ endpoint 1 { ram attribute featureMap; ram attribute clusterRevision default = 1; } - - server cluster ElectricalMeasurement { - ram attribute measurementType; - ram attribute totalActivePower; - ram attribute rmsVoltage default = 0xffff; - ram attribute rmsVoltageMin default = 0x8000; - ram attribute rmsVoltageMax default = 0x8000; - ram attribute rmsCurrent default = 0xffff; - ram attribute rmsCurrentMin default = 0xffff; - ram attribute rmsCurrentMax default = 0xffff; - ram attribute activePower default = 0xffff; - ram attribute activePowerMin default = 0xffff; - ram attribute activePowerMax default = 0xffff; - ram attribute featureMap; - ram attribute clusterRevision default = 3; - } } endpoint 2 { device type onofflight = 256; diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap index afb5c494838a1b..99d0476bad246e 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap @@ -8268,7 +8268,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "client", @@ -8320,7 +8320,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "server", @@ -19155,7 +19155,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "client", @@ -19327,7 +19327,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "server", @@ -25144,4 +25144,4 @@ } ], "log": [] -} \ No newline at end of file +} diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter index 15da94f43bb5e7..231cf142bdbc66 100644 --- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter +++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter @@ -2511,7 +2511,7 @@ server cluster TemperatureMeasurement = 1026 { readonly attribute int16u clusterRevision = 65533; } -server cluster TestCluster = 1295 { +server cluster TestCluster = 4294048773 { enum SimpleEnum : ENUM8 { kUnspecified = 0; kValueA = 1; diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap index 1ad40bf8b33091..3681c0960de78d 100644 --- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap +++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap @@ -8268,7 +8268,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "client", @@ -8320,7 +8320,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "server", @@ -19110,7 +19110,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "client", @@ -19282,7 +19282,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "server", @@ -25098,4 +25098,4 @@ "deviceIdentifier": 61442 } ] -} \ No newline at end of file +} diff --git a/examples/common/pigweed/protos/attributes_service.proto b/examples/common/pigweed/protos/attributes_service.proto index fd20ddbf6a5489..b5bef8f9eaf47b 100644 --- a/examples/common/pigweed/protos/attributes_service.proto +++ b/examples/common/pigweed/protos/attributes_service.proto @@ -170,7 +170,6 @@ enum ClusterType { ZCL_APPLICATION_LAUNCHER_CLUSTER_ID = 0x050C; ZCL_APPLICATION_BASIC_CLUSTER_ID = 0x050D; ZCL_ACCOUNT_LOGIN_CLUSTER_ID = 0x050E; - ZCL_TEST_CLUSTER_ID = 0x050F; ZCL_MESSAGING_CLUSTER_ID = 0x0703; ZCL_APPLIANCE_IDENTIFICATION_CLUSTER_ID = 0x0B00; ZCL_METER_IDENTIFICATION_CLUSTER_ID = 0x0B01; @@ -180,6 +179,13 @@ enum ClusterType { ZCL_BINDING_CLUSTER_ID = 0xF000; ZCL_GROUP_KEY_MANAGEMENT_CLUSTER_ID = 0xF004; ZCL_SAMPLE_MFG_SPECIFIC_CLUSTER_ID = 0xFC00; + + // NOTE: This is a large number that becomes negative as a 32-bit integer. + // + // Protobuf documentation states: + // Enumerator constants must be in the range of a 32-bit integer. Since enum values + // use varint encoding on the wire, negative values are inefficient and thus not recommended. + ZCL_TEST_CLUSTER_ID = -918523; // 0xFFF1FC05; } diff --git a/examples/thermostat/thermostat-common/thermostat.zap b/examples/thermostat/thermostat-common/thermostat.zap index cf16c8554b4db2..5ea5c518e31326 100644 --- a/examples/thermostat/thermostat-common/thermostat.zap +++ b/examples/thermostat/thermostat-common/thermostat.zap @@ -7009,7 +7009,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "client", @@ -7061,7 +7061,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "server", @@ -14090,7 +14090,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "client", @@ -14134,7 +14134,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "server", @@ -14511,4 +14511,4 @@ "deviceIdentifier": 769 } ] -} \ No newline at end of file +} diff --git a/examples/tv-app/android/java/src/com/tcl/chip/tvapp/Clusters.java b/examples/tv-app/android/java/src/com/tcl/chip/tvapp/Clusters.java index 37fd495fcff7e6..e32cff9fb29f90 100644 --- a/examples/tv-app/android/java/src/com/tcl/chip/tvapp/Clusters.java +++ b/examples/tv-app/android/java/src/com/tcl/chip/tvapp/Clusters.java @@ -128,7 +128,7 @@ public class Clusters { public static final int ClusterId_ApplicationLauncher = 0x0000050C; public static final int ClusterId_ApplicationBasic = 0x0000050D; public static final int ClusterId_AccountLogin = 0x0000050E; - public static final int ClusterId_TestCluster = 0x0000050F; + public static final int ClusterId_TestCluster = 0xFFF1FC05; public static final int ClusterId_Messaging = 0x00000703; public static final int ClusterId_ApplianceIdentification = 0x00000B00; public static final int ClusterId_MeterIdentification = 0x00000B01; diff --git a/examples/tv-app/tv-common/tv-app.zap b/examples/tv-app/tv-common/tv-app.zap index a6fd08b1ff2300..b1165bbd5c5524 100644 --- a/examples/tv-app/tv-common/tv-app.zap +++ b/examples/tv-app/tv-common/tv-app.zap @@ -7123,7 +7123,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "client", @@ -7175,7 +7175,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "server", @@ -9432,7 +9432,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "client", @@ -9484,7 +9484,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "server", @@ -12529,4 +12529,4 @@ } ], "log": [] -} \ No newline at end of file +} diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter index 48d649e332b860..e4ae1282e4d262 100644 --- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter +++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter @@ -1854,7 +1854,7 @@ client cluster TargetNavigator = 1285 { command NavigateTarget(NavigateTargetRequest): NavigateTargetResponse = 0; } -server cluster TestCluster = 1295 { +server cluster TestCluster = 4294048773 { enum SimpleEnum : ENUM8 { kUnspecified = 0; kValueA = 1; diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.zap b/examples/tv-casting-app/tv-casting-common/tv-casting-app.zap index 143ca49f296b55..165f9758427177 100644 --- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.zap +++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.zap @@ -6896,7 +6896,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "client", @@ -6948,7 +6948,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "server", @@ -14227,7 +14227,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "client", @@ -14271,7 +14271,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "server", @@ -17747,4 +17747,4 @@ "deviceIdentifier": 263 } ] -} \ No newline at end of file +} diff --git a/src/app/util/util.cpp b/src/app/util/util.cpp index 54239e8e55d9d0..dd27f7d6a895fc 100644 --- a/src/app/util/util.cpp +++ b/src/app/util/util.cpp @@ -74,8 +74,8 @@ uint32_t afNumPktsSent; #endif const EmberAfClusterName zclClusterNames[] = { - CLUSTER_IDS_TO_NAMES // defined in print-cluster.h - { ZCL_NULL_CLUSTER_ID, EMBER_AF_NULL_MANUFACTURER_CODE, nullptr }, // terminator + CLUSTER_IDS_TO_NAMES // defined in print-cluster.h + { ZCL_NULL_CLUSTER_ID, nullptr }, // terminator }; // A pointer to the current command being processed diff --git a/src/app/util/util.h b/src/app/util/util.h index 2362d217304387..4d8910a15d4bb8 100644 --- a/src/app/util/util.h +++ b/src/app/util/util.h @@ -74,8 +74,7 @@ // Cluster name structure typedef struct { - uint16_t id; - uint16_t mfgCode; + chip::ClusterId id; const char * name; } EmberAfClusterName; diff --git a/src/app/zap-templates/templates/app/print-cluster.zapt b/src/app/zap-templates/templates/app/print-cluster.zapt index 6b9a41db9b3f08..c5d56577a31228 100644 --- a/src/app/zap-templates/templates/app/print-cluster.zapt +++ b/src/app/zap-templates/templates/app/print-cluster.zapt @@ -9,7 +9,7 @@ {{#zcl_clusters}} #if defined(ZCL_USING_{{asDelimitedMacro this.define}}_SERVER) || defined(ZCL_USING_{{asDelimitedMacro this.define}}_CLIENT) - #define CHIP_PRINTCLUSTER_{{asDelimitedMacro this.define}} {ZCL_{{asDelimitedMacro this.define}}_ID, {{this.code}}, "{{this.label}}" }, + #define CHIP_PRINTCLUSTER_{{asDelimitedMacro this.define}} {ZCL_{{asDelimitedMacro this.define}}_ID, "{{this.label}}" }, #else #define CHIP_PRINTCLUSTER_{{asDelimitedMacro this.define}} #endif diff --git a/src/app/zap-templates/zcl/data-model/chip/test-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/test-cluster.xml index a411b354069c61..e55c0da2d8fe52 100644 --- a/src/app/zap-templates/zcl/data-model/chip/test-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/test-cluster.xml @@ -17,13 +17,13 @@ limitations under the License. - + - + @@ -35,7 +35,7 @@ limitations under the License. - + @@ -43,14 +43,14 @@ limitations under the License. - + - + @@ -62,14 +62,14 @@ limitations under the License. - + - + @@ -80,13 +80,13 @@ limitations under the License. - + - + - + @@ -114,7 +114,7 @@ limitations under the License. - + @@ -122,7 +122,7 @@ limitations under the License. - + @@ -130,7 +130,7 @@ limitations under the License. - + @@ -140,7 +140,7 @@ limitations under the License. CHIP Test Cluster - 0x050F + 0xFFF1FC05 TEST_CLUSTER The Test Cluster is meant to validate the generated code diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index e3e068b3568be7..b46e619931bd9d 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -3475,7 +3475,7 @@ client cluster TemperatureMeasurement = 1026 { readonly attribute int16u clusterRevision = 65533; } -client cluster TestCluster = 1295 { +client cluster TestCluster = 4294048773 { enum SimpleEnum : ENUM8 { kUnspecified = 0; kValueA = 1; @@ -4404,8 +4404,8 @@ endpoint 1 { binding cluster ApplicationLauncher; binding cluster ApplicationBasic; binding cluster AccountLogin; - binding cluster TestCluster; binding cluster ElectricalMeasurement; + binding cluster TestCluster; } diff --git a/src/controller/data_model/controller-clusters.zap b/src/controller/data_model/controller-clusters.zap index ad4a9db8a9d0ae..460f5885da03ca 100644 --- a/src/controller/data_model/controller-clusters.zap +++ b/src/controller/data_model/controller-clusters.zap @@ -17368,7 +17368,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "client", @@ -17556,7 +17556,7 @@ }, { "name": "Test Cluster", - "code": 1295, + "code": 4294048773, "mfgCode": null, "define": "TEST_CLUSTER", "side": "server", diff --git a/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java b/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java index 57f644905ddee2..a4c0f48b018e3c 100644 --- a/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java +++ b/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java @@ -17450,7 +17450,7 @@ private native void subscribeClusterRevisionAttribute( } public static class TestClusterCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 1295L; + public static final long CLUSTER_ID = 4294048773L; public TestClusterCluster(long devicePtr, int endpointId) { super(devicePtr, endpointId); diff --git a/src/controller/java/zap-generated/chip/devicecontroller/ChipIdLookup.java b/src/controller/java/zap-generated/chip/devicecontroller/ChipIdLookup.java index 3ac7776a21e333..284573aecb22b9 100644 --- a/src/controller/java/zap-generated/chip/devicecontroller/ChipIdLookup.java +++ b/src/controller/java/zap-generated/chip/devicecontroller/ChipIdLookup.java @@ -187,7 +187,7 @@ public static String clusterIdToName(long clusterId) { if (clusterId == 1026L) { return "TemperatureMeasurement"; } - if (clusterId == 1295L) { + if (clusterId == 4294048773L) { return "TestCluster"; } if (clusterId == 513L) { @@ -2247,7 +2247,7 @@ public static String attributeIdToName(long clusterId, long attributeId) { } return ""; } - if (clusterId == 1295L) { + if (clusterId == 4294048773L) { if (attributeId == 0L) { return "Boolean"; } diff --git a/src/controller/python/chip/clusters/CHIPClusters.py b/src/controller/python/chip/clusters/CHIPClusters.py index c1d0771d46771a..58383a62c4bbb0 100644 --- a/src/controller/python/chip/clusters/CHIPClusters.py +++ b/src/controller/python/chip/clusters/CHIPClusters.py @@ -5442,7 +5442,7 @@ class ChipClusters: } _TEST_CLUSTER_CLUSTER_INFO = { "clusterName": "TestCluster", - "clusterId": 0x0000050F, + "clusterId": 0xFFF1FC05, "commands": { 0x00000011: { "commandId": 0x00000011, @@ -7420,7 +7420,7 @@ class ChipClusters: 0x0000003B: _SWITCH_CLUSTER_INFO, 0x00000505: _TARGET_NAVIGATOR_CLUSTER_INFO, 0x00000402: _TEMPERATURE_MEASUREMENT_CLUSTER_INFO, - 0x0000050F: _TEST_CLUSTER_CLUSTER_INFO, + 0xFFF1FC05: _TEST_CLUSTER_CLUSTER_INFO, 0x00000201: _THERMOSTAT_CLUSTER_INFO, 0x00000204: _THERMOSTAT_USER_INTERFACE_CONFIGURATION_CLUSTER_INFO, 0x00000035: _THREAD_NETWORK_DIAGNOSTICS_CLUSTER_INFO, diff --git a/src/controller/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py index 1bf75324a9049b..3a7d3a1c23bf7d 100644 --- a/src/controller/python/chip/clusters/Objects.py +++ b/src/controller/python/chip/clusters/Objects.py @@ -33909,94 +33909,13 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: @dataclass -class TestCluster(Cluster): - id: typing.ClassVar[int] = 0x050F +class Messaging(Cluster): + id: typing.ClassVar[int] = 0x0703 @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields = [ - ClusterObjectFieldDescriptor(Label="boolean", Tag=0x00000000, Type=bool), - ClusterObjectFieldDescriptor(Label="bitmap8", Tag=0x00000001, Type=uint), - ClusterObjectFieldDescriptor(Label="bitmap16", Tag=0x00000002, Type=uint), - ClusterObjectFieldDescriptor(Label="bitmap32", Tag=0x00000003, Type=uint), - ClusterObjectFieldDescriptor(Label="bitmap64", Tag=0x00000004, Type=uint), - ClusterObjectFieldDescriptor(Label="int8u", Tag=0x00000005, Type=uint), - ClusterObjectFieldDescriptor(Label="int16u", Tag=0x00000006, Type=uint), - ClusterObjectFieldDescriptor(Label="int24u", Tag=0x00000007, Type=uint), - ClusterObjectFieldDescriptor(Label="int32u", Tag=0x00000008, Type=uint), - ClusterObjectFieldDescriptor(Label="int40u", Tag=0x00000009, Type=uint), - ClusterObjectFieldDescriptor(Label="int48u", Tag=0x0000000A, Type=uint), - ClusterObjectFieldDescriptor(Label="int56u", Tag=0x0000000B, Type=uint), - ClusterObjectFieldDescriptor(Label="int64u", Tag=0x0000000C, Type=uint), - ClusterObjectFieldDescriptor(Label="int8s", Tag=0x0000000D, Type=int), - ClusterObjectFieldDescriptor(Label="int16s", Tag=0x0000000E, Type=int), - ClusterObjectFieldDescriptor(Label="int24s", Tag=0x0000000F, Type=int), - ClusterObjectFieldDescriptor(Label="int32s", Tag=0x00000010, Type=int), - ClusterObjectFieldDescriptor(Label="int40s", Tag=0x00000011, Type=int), - ClusterObjectFieldDescriptor(Label="int48s", Tag=0x00000012, Type=int), - ClusterObjectFieldDescriptor(Label="int56s", Tag=0x00000013, Type=int), - ClusterObjectFieldDescriptor(Label="int64s", Tag=0x00000014, Type=int), - ClusterObjectFieldDescriptor(Label="enum8", Tag=0x00000015, Type=uint), - ClusterObjectFieldDescriptor(Label="enum16", Tag=0x00000016, Type=uint), - ClusterObjectFieldDescriptor(Label="floatSingle", Tag=0x00000017, Type=float32), - ClusterObjectFieldDescriptor(Label="floatDouble", Tag=0x00000018, Type=float), - ClusterObjectFieldDescriptor(Label="octetString", Tag=0x00000019, Type=bytes), - ClusterObjectFieldDescriptor(Label="listInt8u", Tag=0x0000001A, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="listOctetString", Tag=0x0000001B, Type=typing.List[bytes]), - ClusterObjectFieldDescriptor(Label="listStructOctetString", Tag=0x0000001C, Type=typing.List[TestCluster.Structs.TestListStructOctet]), - ClusterObjectFieldDescriptor(Label="longOctetString", Tag=0x0000001D, Type=bytes), - ClusterObjectFieldDescriptor(Label="charString", Tag=0x0000001E, Type=str), - ClusterObjectFieldDescriptor(Label="longCharString", Tag=0x0000001F, Type=str), - ClusterObjectFieldDescriptor(Label="epochUs", Tag=0x00000020, Type=uint), - ClusterObjectFieldDescriptor(Label="epochS", Tag=0x00000021, Type=uint), - ClusterObjectFieldDescriptor(Label="vendorId", Tag=0x00000022, Type=uint), - ClusterObjectFieldDescriptor(Label="listNullablesAndOptionalsStruct", Tag=0x00000023, Type=typing.List[TestCluster.Structs.NullablesAndOptionalsStruct]), - ClusterObjectFieldDescriptor(Label="enumAttr", Tag=0x00000024, Type=TestCluster.Enums.SimpleEnum), - ClusterObjectFieldDescriptor(Label="structAttr", Tag=0x00000025, Type=TestCluster.Structs.SimpleStruct), - ClusterObjectFieldDescriptor(Label="rangeRestrictedInt8u", Tag=0x00000026, Type=uint), - ClusterObjectFieldDescriptor(Label="rangeRestrictedInt8s", Tag=0x00000027, Type=int), - ClusterObjectFieldDescriptor(Label="rangeRestrictedInt16u", Tag=0x00000028, Type=uint), - ClusterObjectFieldDescriptor(Label="rangeRestrictedInt16s", Tag=0x00000029, Type=int), - ClusterObjectFieldDescriptor(Label="listLongOctetString", Tag=0x0000002A, Type=typing.List[bytes]), - ClusterObjectFieldDescriptor(Label="listFabricScoped", Tag=0x0000002B, Type=typing.List[TestCluster.Structs.TestFabricScoped]), - ClusterObjectFieldDescriptor(Label="timedWriteBoolean", Tag=0x00000030, Type=bool), - ClusterObjectFieldDescriptor(Label="generalErrorBoolean", Tag=0x00000031, Type=bool), - ClusterObjectFieldDescriptor(Label="clusterErrorBoolean", Tag=0x00000032, Type=bool), - ClusterObjectFieldDescriptor(Label="unsupported", Tag=0x000000FF, Type=typing.Optional[bool]), - ClusterObjectFieldDescriptor(Label="nullableBoolean", Tag=0x00004000, Type=typing.Union[Nullable, bool]), - ClusterObjectFieldDescriptor(Label="nullableBitmap8", Tag=0x00004001, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableBitmap16", Tag=0x00004002, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableBitmap32", Tag=0x00004003, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableBitmap64", Tag=0x00004004, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableInt8u", Tag=0x00004005, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableInt16u", Tag=0x00004006, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableInt24u", Tag=0x00004007, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableInt32u", Tag=0x00004008, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableInt40u", Tag=0x00004009, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableInt48u", Tag=0x0000400A, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableInt56u", Tag=0x0000400B, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableInt64u", Tag=0x0000400C, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableInt8s", Tag=0x0000400D, Type=typing.Union[Nullable, int]), - ClusterObjectFieldDescriptor(Label="nullableInt16s", Tag=0x0000400E, Type=typing.Union[Nullable, int]), - ClusterObjectFieldDescriptor(Label="nullableInt24s", Tag=0x0000400F, Type=typing.Union[Nullable, int]), - ClusterObjectFieldDescriptor(Label="nullableInt32s", Tag=0x00004010, Type=typing.Union[Nullable, int]), - ClusterObjectFieldDescriptor(Label="nullableInt40s", Tag=0x00004011, Type=typing.Union[Nullable, int]), - ClusterObjectFieldDescriptor(Label="nullableInt48s", Tag=0x00004012, Type=typing.Union[Nullable, int]), - ClusterObjectFieldDescriptor(Label="nullableInt56s", Tag=0x00004013, Type=typing.Union[Nullable, int]), - ClusterObjectFieldDescriptor(Label="nullableInt64s", Tag=0x00004014, Type=typing.Union[Nullable, int]), - ClusterObjectFieldDescriptor(Label="nullableEnum8", Tag=0x00004015, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableEnum16", Tag=0x00004016, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableFloatSingle", Tag=0x00004017, Type=typing.Union[Nullable, float32]), - ClusterObjectFieldDescriptor(Label="nullableFloatDouble", Tag=0x00004018, Type=typing.Union[Nullable, float]), - ClusterObjectFieldDescriptor(Label="nullableOctetString", Tag=0x00004019, Type=typing.Union[Nullable, bytes]), - ClusterObjectFieldDescriptor(Label="nullableCharString", Tag=0x0000401E, Type=typing.Union[Nullable, str]), - ClusterObjectFieldDescriptor(Label="nullableEnumAttr", Tag=0x00004024, Type=typing.Union[Nullable, TestCluster.Enums.SimpleEnum]), - ClusterObjectFieldDescriptor(Label="nullableStruct", Tag=0x00004025, Type=typing.Union[Nullable, TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor(Label="nullableRangeRestrictedInt8u", Tag=0x00004026, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableRangeRestrictedInt8s", Tag=0x00004027, Type=typing.Union[Nullable, int]), - ClusterObjectFieldDescriptor(Label="nullableRangeRestrictedInt16u", Tag=0x00004028, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableRangeRestrictedInt16s", Tag=0x00004029, Type=typing.Union[Nullable, int]), ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), @@ -34004,87 +33923,6 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), ]) - boolean: 'bool' = None - bitmap8: 'uint' = None - bitmap16: 'uint' = None - bitmap32: 'uint' = None - bitmap64: 'uint' = None - int8u: 'uint' = None - int16u: 'uint' = None - int24u: 'uint' = None - int32u: 'uint' = None - int40u: 'uint' = None - int48u: 'uint' = None - int56u: 'uint' = None - int64u: 'uint' = None - int8s: 'int' = None - int16s: 'int' = None - int24s: 'int' = None - int32s: 'int' = None - int40s: 'int' = None - int48s: 'int' = None - int56s: 'int' = None - int64s: 'int' = None - enum8: 'uint' = None - enum16: 'uint' = None - floatSingle: 'float32' = None - floatDouble: 'float' = None - octetString: 'bytes' = None - listInt8u: 'typing.List[uint]' = None - listOctetString: 'typing.List[bytes]' = None - listStructOctetString: 'typing.List[TestCluster.Structs.TestListStructOctet]' = None - longOctetString: 'bytes' = None - charString: 'str' = None - longCharString: 'str' = None - epochUs: 'uint' = None - epochS: 'uint' = None - vendorId: 'uint' = None - listNullablesAndOptionalsStruct: 'typing.List[TestCluster.Structs.NullablesAndOptionalsStruct]' = None - enumAttr: 'TestCluster.Enums.SimpleEnum' = None - structAttr: 'TestCluster.Structs.SimpleStruct' = None - rangeRestrictedInt8u: 'uint' = None - rangeRestrictedInt8s: 'int' = None - rangeRestrictedInt16u: 'uint' = None - rangeRestrictedInt16s: 'int' = None - listLongOctetString: 'typing.List[bytes]' = None - listFabricScoped: 'typing.List[TestCluster.Structs.TestFabricScoped]' = None - timedWriteBoolean: 'bool' = None - generalErrorBoolean: 'bool' = None - clusterErrorBoolean: 'bool' = None - unsupported: 'typing.Optional[bool]' = None - nullableBoolean: 'typing.Union[Nullable, bool]' = None - nullableBitmap8: 'typing.Union[Nullable, uint]' = None - nullableBitmap16: 'typing.Union[Nullable, uint]' = None - nullableBitmap32: 'typing.Union[Nullable, uint]' = None - nullableBitmap64: 'typing.Union[Nullable, uint]' = None - nullableInt8u: 'typing.Union[Nullable, uint]' = None - nullableInt16u: 'typing.Union[Nullable, uint]' = None - nullableInt24u: 'typing.Union[Nullable, uint]' = None - nullableInt32u: 'typing.Union[Nullable, uint]' = None - nullableInt40u: 'typing.Union[Nullable, uint]' = None - nullableInt48u: 'typing.Union[Nullable, uint]' = None - nullableInt56u: 'typing.Union[Nullable, uint]' = None - nullableInt64u: 'typing.Union[Nullable, uint]' = None - nullableInt8s: 'typing.Union[Nullable, int]' = None - nullableInt16s: 'typing.Union[Nullable, int]' = None - nullableInt24s: 'typing.Union[Nullable, int]' = None - nullableInt32s: 'typing.Union[Nullable, int]' = None - nullableInt40s: 'typing.Union[Nullable, int]' = None - nullableInt48s: 'typing.Union[Nullable, int]' = None - nullableInt56s: 'typing.Union[Nullable, int]' = None - nullableInt64s: 'typing.Union[Nullable, int]' = None - nullableEnum8: 'typing.Union[Nullable, uint]' = None - nullableEnum16: 'typing.Union[Nullable, uint]' = None - nullableFloatSingle: 'typing.Union[Nullable, float32]' = None - nullableFloatDouble: 'typing.Union[Nullable, float]' = None - nullableOctetString: 'typing.Union[Nullable, bytes]' = None - nullableCharString: 'typing.Union[Nullable, str]' = None - nullableEnumAttr: 'typing.Union[Nullable, TestCluster.Enums.SimpleEnum]' = None - nullableStruct: 'typing.Union[Nullable, TestCluster.Structs.SimpleStruct]' = None - nullableRangeRestrictedInt8u: 'typing.Union[Nullable, uint]' = None - nullableRangeRestrictedInt8s: 'typing.Union[Nullable, int]' = None - nullableRangeRestrictedInt16u: 'typing.Union[Nullable, uint]' = None - nullableRangeRestrictedInt16s: 'typing.Union[Nullable, int]' = None generatedCommandList: 'typing.List[uint]' = None acceptedCommandList: 'typing.List[uint]' = None attributeList: 'typing.List[uint]' = None @@ -34092,165 +33930,140 @@ def descriptor(cls) -> ClusterObjectDescriptor: clusterRevision: 'uint' = None class Enums: - class SimpleEnum(IntEnum): - kUnspecified = 0x00 - kValueA = 0x01 - kValueB = 0x02 - kValueC = 0x03 + class EventId(IntEnum): + kMeterCoverRemoved = 0x00 + kMeterCoverClosed = 0x01 + kStrongMagneticField = 0x02 + kNoStrongMagneticField = 0x03 + kBatteryFailure = 0x04 + kLowBattery = 0x05 + kProgramMemoryError = 0x06 + kRamError = 0x07 + kNvMemoryError = 0x08 + kMeasurementSystemError = 0x09 + kWatchdogError = 0x0A + kSupplyDisconnectFailure = 0x0B + kSupplyConnectFailure = 0x0C + kMeasurmentSoftwareChanged = 0x0D + kDstEnabled = 0x0E + kDstDisabled = 0x0F + kClockAdjBackward = 0x10 + kClockAdjForward = 0x11 + kClockInvalid = 0x12 + kCommsErrorHan = 0x13 + kCommsOkHan = 0x14 + kFraudAttempt = 0x15 + kPowerLoss = 0x16 + kIncorrectProtocol = 0x17 + kUnusualHanTraffic = 0x18 + kUnexpectedClockChange = 0x19 + kCommsUsingUnauthenticatedComponent = 0x1A + kErrorRegClear = 0x1B + kAlarmRegClear = 0x1C + kUnexpectedHwReset = 0x1D + kUnexpectedProgramExecution = 0x1E + kEventLogCleared = 0x1F + kManualDisconnect = 0x20 + kManualConnect = 0x21 + kRemoteDisconnection = 0x22 + kLocalDisconnection = 0x23 + kLimitThresholdExceeded = 0x24 + kLimitThresholdOk = 0x25 + kLimitThresholdChanged = 0x26 + kMaximumDemandExceeded = 0x27 + kProfileCleared = 0x28 + kFirmwareReadyForActivation = 0x29 + kFirmwareActivated = 0x2A + kPatchFailure = 0x2B + kTouTariffActivation = 0x2C + k8x8Tariffactivated = 0x2D + kSingleTariffRateActivated = 0x2E + kAsynchronousBillingOccurred = 0x2F + kSynchronousBillingOccurred = 0x30 + kIncorrectPolarity = 0x80 + kCurrentNoVoltage = 0x81 + kUnderVoltage = 0x82 + kOverVoltage = 0x83 + kNormalVoltage = 0x84 + kPfBelowThreshold = 0x85 + kPfAboveThreshold = 0x86 + kTerminalCoverRemoved = 0x87 + kTerminalCoverClosed = 0x88 + kReverseFlow = 0xA0 + kTiltTamper = 0xA1 + kBatteryCoverRemoved = 0xA2 + kBatteryCoverClosed = 0xA3 + kExcessFlow = 0xA4 + kCreditOk = 0xC0 + kLowCredit = 0xC1 + kEmergencyCreditInUse = 0xC0 + kEmergencyCreditExhausted = 0xC1 + kZeroCreditEcNotSelected = 0xC2 + kSupplyOn = 0xC3 + kSupplyOffAarmed = 0xC4 + kSupplyOff = 0xC5 + kDiscountApplied = 0xC6 + kManufacturerSpecificA = 0xE0 + kManufacturerSpecificB = 0xE1 + kManufacturerSpecificC = 0xE2 + kManufacturerSpecificD = 0xE3 + kManufacturerSpecificE = 0xE4 + kManufacturerSpecificF = 0xE5 + kManufacturerSpecificG = 0xE6 + kManufacturerSpecificH = 0xE7 + kManufacturerSpecificI = 0xE8 + class MessagingControlConfirmation(IntEnum): + kNotRequired = 0x00 + kRequired = 0x80 - class Structs: - @dataclass - class SimpleStruct(ClusterObject): - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="a", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="b", Tag=1, Type=bool), - ClusterObjectFieldDescriptor(Label="c", Tag=2, Type=TestCluster.Enums.SimpleEnum), - ClusterObjectFieldDescriptor(Label="d", Tag=3, Type=bytes), - ClusterObjectFieldDescriptor(Label="e", Tag=4, Type=str), - ClusterObjectFieldDescriptor(Label="f", Tag=5, Type=uint), - ClusterObjectFieldDescriptor(Label="g", Tag=6, Type=float32), - ClusterObjectFieldDescriptor(Label="h", Tag=7, Type=float), - ]) - - a: 'uint' = 0 - b: 'bool' = False - c: 'TestCluster.Enums.SimpleEnum' = 0 - d: 'bytes' = b"" - e: 'str' = "" - f: 'uint' = 0 - g: 'float32' = 0.0 - h: 'float' = 0.0 - - @dataclass - class TestFabricScoped(ClusterObject): - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="fabricSensitiveInt8u", Tag=1, Type=uint), - ClusterObjectFieldDescriptor(Label="optionalFabricSensitiveInt8u", Tag=2, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="nullableFabricSensitiveInt8u", Tag=3, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableOptionalFabricSensitiveInt8u", Tag=4, Type=typing.Union[None, Nullable, uint]), - ClusterObjectFieldDescriptor(Label="fabricSensitiveCharString", Tag=5, Type=str), - ClusterObjectFieldDescriptor(Label="fabricSensitiveStruct", Tag=6, Type=TestCluster.Structs.SimpleStruct), - ClusterObjectFieldDescriptor(Label="fabricSensitiveInt8uList", Tag=7, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=254, Type=uint), - ]) - - fabricSensitiveInt8u: 'uint' = 0 - optionalFabricSensitiveInt8u: 'typing.Optional[uint]' = None - nullableFabricSensitiveInt8u: 'typing.Union[Nullable, uint]' = NullValue - nullableOptionalFabricSensitiveInt8u: 'typing.Union[None, Nullable, uint]' = None - fabricSensitiveCharString: 'str' = "" - fabricSensitiveStruct: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) - fabricSensitiveInt8uList: 'typing.List[uint]' = field(default_factory=lambda: []) - fabricIndex: 'uint' = 0 - - @dataclass - class NullablesAndOptionalsStruct(ClusterObject): - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="nullableInt", Tag=0, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="optionalInt", Tag=1, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="nullableOptionalInt", Tag=2, Type=typing.Union[None, Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableString", Tag=3, Type=typing.Union[Nullable, str]), - ClusterObjectFieldDescriptor(Label="optionalString", Tag=4, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor(Label="nullableOptionalString", Tag=5, Type=typing.Union[None, Nullable, str]), - ClusterObjectFieldDescriptor(Label="nullableStruct", Tag=6, Type=typing.Union[Nullable, TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor(Label="optionalStruct", Tag=7, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor(Label="nullableOptionalStruct", Tag=8, Type=typing.Union[None, Nullable, TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor(Label="nullableList", Tag=9, Type=typing.Union[Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), - ClusterObjectFieldDescriptor(Label="optionalList", Tag=10, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), - ClusterObjectFieldDescriptor(Label="nullableOptionalList", Tag=11, Type=typing.Union[None, Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), - ]) - - nullableInt: 'typing.Union[Nullable, uint]' = NullValue - optionalInt: 'typing.Optional[uint]' = None - nullableOptionalInt: 'typing.Union[None, Nullable, uint]' = None - nullableString: 'typing.Union[Nullable, str]' = NullValue - optionalString: 'typing.Optional[str]' = None - nullableOptionalString: 'typing.Union[None, Nullable, str]' = None - nullableStruct: 'typing.Union[Nullable, TestCluster.Structs.SimpleStruct]' = NullValue - optionalStruct: 'typing.Optional[TestCluster.Structs.SimpleStruct]' = None - nullableOptionalStruct: 'typing.Union[None, Nullable, TestCluster.Structs.SimpleStruct]' = None - nullableList: 'typing.Union[Nullable, typing.List[TestCluster.Enums.SimpleEnum]]' = NullValue - optionalList: 'typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]' = None - nullableOptionalList: 'typing.Union[None, Nullable, typing.List[TestCluster.Enums.SimpleEnum]]' = None + class MessagingControlEnhancedConfirmation(IntEnum): + kNotRequired = 0x00 + kRequired = 0x20 - @dataclass - class NestedStruct(ClusterObject): - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="a", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="b", Tag=1, Type=bool), - ClusterObjectFieldDescriptor(Label="c", Tag=2, Type=TestCluster.Structs.SimpleStruct), - ]) + class MessagingControlImportance(IntEnum): + kLow = 0x00 + kMedium = 0x04 + kHigh = 0x08 + kCritical = 0x0C - a: 'uint' = 0 - b: 'bool' = False - c: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) + class MessagingControlTransmission(IntEnum): + kNormal = 0x00 + kNormalAndAnonymous = 0x01 + kAnonymous = 0x02 + kReserved = 0x03 - @dataclass - class NestedStructList(ClusterObject): - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="a", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="b", Tag=1, Type=bool), - ClusterObjectFieldDescriptor(Label="c", Tag=2, Type=TestCluster.Structs.SimpleStruct), - ClusterObjectFieldDescriptor(Label="d", Tag=3, Type=typing.List[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor(Label="e", Tag=4, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="f", Tag=5, Type=typing.List[bytes]), - ClusterObjectFieldDescriptor(Label="g", Tag=6, Type=typing.List[uint]), - ]) - a: 'uint' = 0 - b: 'bool' = False - c: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) - d: 'typing.List[TestCluster.Structs.SimpleStruct]' = field(default_factory=lambda: []) - e: 'typing.List[uint]' = field(default_factory=lambda: []) - f: 'typing.List[bytes]' = field(default_factory=lambda: []) - g: 'typing.List[uint]' = field(default_factory=lambda: []) + class Commands: @dataclass - class DoubleNestedStructList(ClusterObject): - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="a", Tag=0, Type=typing.List[TestCluster.Structs.NestedStructList]), - ]) - - a: 'typing.List[TestCluster.Structs.NestedStructList]' = field(default_factory=lambda: []) + class DisplayMessage(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0703 + command_id: typing.ClassVar[int] = 0x0000 + is_client: typing.ClassVar[bool] = False - @dataclass - class TestListStructOctet(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields = [ - ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="operationalCert", Tag=1, Type=bytes), + ClusterObjectFieldDescriptor(Label="messageId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="messageControl", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="startTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="durationInMinutes", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="message", Tag=4, Type=str), + ClusterObjectFieldDescriptor(Label="optionalExtendedMessageControl", Tag=5, Type=uint), ]) - fabricIndex: 'uint' = 0 - operationalCert: 'bytes' = b"" - - + messageId: 'uint' = 0 + messageControl: 'uint' = 0 + startTime: 'uint' = 0 + durationInMinutes: 'uint' = 0 + message: 'str' = "" + optionalExtendedMessageControl: 'uint' = 0 - class Commands: @dataclass - class Test(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F + class GetLastMessage(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0703 command_id: typing.ClassVar[int] = 0x0000 is_client: typing.ClassVar[bool] = True @@ -34262,23 +34075,25 @@ def descriptor(cls) -> ClusterObjectDescriptor: @dataclass - class TestSpecificResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0000 + class CancelMessage(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0703 + command_id: typing.ClassVar[int] = 0x0001 is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields = [ - ClusterObjectFieldDescriptor(Label="returnValue", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="messageId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="messageControl", Tag=1, Type=uint), ]) - returnValue: 'uint' = 0 + messageId: 'uint' = 0 + messageControl: 'uint' = 0 @dataclass - class TestNotHandled(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F + class MessageConfirmation(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0703 command_id: typing.ClassVar[int] = 0x0001 is_client: typing.ClassVar[bool] = True @@ -34286,27 +34101,45 @@ class TestNotHandled(ClusterCommand): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields = [ + ClusterObjectFieldDescriptor(Label="messageId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="confirmationTime", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="messageConfirmationControl", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="messageResponse", Tag=3, Type=bytes), ]) + messageId: 'uint' = 0 + confirmationTime: 'uint' = 0 + messageConfirmationControl: 'uint' = 0 + messageResponse: 'bytes' = b"" @dataclass - class TestAddArgumentsResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0001 + class DisplayProtectedMessage(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0703 + command_id: typing.ClassVar[int] = 0x0002 is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields = [ - ClusterObjectFieldDescriptor(Label="returnValue", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="messageId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="messageControl", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="startTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="durationInMinutes", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="message", Tag=4, Type=str), + ClusterObjectFieldDescriptor(Label="optionalExtendedMessageControl", Tag=5, Type=uint), ]) - returnValue: 'uint' = 0 + messageId: 'uint' = 0 + messageControl: 'uint' = 0 + startTime: 'uint' = 0 + durationInMinutes: 'uint' = 0 + message: 'str' = "" + optionalExtendedMessageControl: 'uint' = 0 @dataclass - class TestSpecific(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F + class GetMessageCancellation(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0703 command_id: typing.ClassVar[int] = 0x0002 is_client: typing.ClassVar[bool] = True @@ -34314,563 +34147,487 @@ class TestSpecific(ClusterCommand): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields = [ + ClusterObjectFieldDescriptor(Label="earliestImplementationTime", Tag=0, Type=uint), ]) + earliestImplementationTime: 'uint' = 0 @dataclass - class TestSimpleArgumentResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0002 + class CancelAllMessages(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0703 + command_id: typing.ClassVar[int] = 0x0003 is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields = [ - ClusterObjectFieldDescriptor(Label="returnValue", Tag=0, Type=bool), + ClusterObjectFieldDescriptor(Label="implementationDateTime", Tag=0, Type=uint), ]) - returnValue: 'bool' = False + implementationDateTime: 'uint' = 0 + + class Attributes: @dataclass - class TestUnknownCommand(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0003 - is_client: typing.ClassVar[bool] = True + class GeneratedCommandList(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0703 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ]) + def attribute_id(cls) -> int: + return 0x0000FFF8 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class TestStructArrayArgumentResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0003 - is_client: typing.ClassVar[bool] = False + class AcceptedCommandList(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0703 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[TestCluster.Structs.NestedStructList]), - ClusterObjectFieldDescriptor(Label="arg2", Tag=1, Type=typing.List[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor(Label="arg3", Tag=2, Type=typing.List[TestCluster.Enums.SimpleEnum]), - ClusterObjectFieldDescriptor(Label="arg4", Tag=3, Type=typing.List[bool]), - ClusterObjectFieldDescriptor(Label="arg5", Tag=4, Type=TestCluster.Enums.SimpleEnum), - ClusterObjectFieldDescriptor(Label="arg6", Tag=5, Type=bool), - ]) + def attribute_id(cls) -> int: + return 0x0000FFF9 - arg1: 'typing.List[TestCluster.Structs.NestedStructList]' = field(default_factory=lambda: []) - arg2: 'typing.List[TestCluster.Structs.SimpleStruct]' = field(default_factory=lambda: []) - arg3: 'typing.List[TestCluster.Enums.SimpleEnum]' = field(default_factory=lambda: []) - arg4: 'typing.List[bool]' = field(default_factory=lambda: []) - arg5: 'TestCluster.Enums.SimpleEnum' = 0 - arg6: 'bool' = False + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class TestAddArguments(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0004 - is_client: typing.ClassVar[bool] = True + class AttributeList(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0703 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="arg2", Tag=1, Type=uint), - ]) + def attribute_id(cls) -> int: + return 0x0000FFFB - arg1: 'uint' = 0 - arg2: 'uint' = 0 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class TestListInt8UReverseResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0004 - is_client: typing.ClassVar[bool] = False + class FeatureMap(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0703 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[uint]), - ]) + def attribute_id(cls) -> int: + return 0x0000FFFC - arg1: 'typing.List[uint]' = field(default_factory=lambda: []) + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=uint) + + value: 'uint' = 0 @dataclass - class TestSimpleArgumentRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0005 - is_client: typing.ClassVar[bool] = True + class ClusterRevision(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0703 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=bool), - ]) + def attribute_id(cls) -> int: + return 0x0000FFFD + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=uint) + + value: 'uint' = 0 + + + +@dataclass +class ApplianceIdentification(Cluster): + id: typing.ClassVar[int] = 0x0B00 + + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="basicIdentification", Tag=0x00000000, Type=uint), + ClusterObjectFieldDescriptor(Label="companyName", Tag=0x00000010, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="companyId", Tag=0x00000011, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="brandName", Tag=0x00000012, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="brandId", Tag=0x00000013, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="model", Tag=0x00000014, Type=typing.Optional[bytes]), + ClusterObjectFieldDescriptor(Label="partNumber", Tag=0x00000015, Type=typing.Optional[bytes]), + ClusterObjectFieldDescriptor(Label="productRevision", Tag=0x00000016, Type=typing.Optional[bytes]), + ClusterObjectFieldDescriptor(Label="softwareRevision", Tag=0x00000017, Type=typing.Optional[bytes]), + ClusterObjectFieldDescriptor(Label="productTypeName", Tag=0x00000018, Type=typing.Optional[bytes]), + ClusterObjectFieldDescriptor(Label="productTypeId", Tag=0x00000019, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="cecedSpecificationVersion", Tag=0x0000001A, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="featureMap", Tag=0x0000FFFC, Type=uint), + ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), + ]) + + basicIdentification: 'uint' = None + companyName: 'typing.Optional[str]' = None + companyId: 'typing.Optional[uint]' = None + brandName: 'typing.Optional[str]' = None + brandId: 'typing.Optional[uint]' = None + model: 'typing.Optional[bytes]' = None + partNumber: 'typing.Optional[bytes]' = None + productRevision: 'typing.Optional[bytes]' = None + softwareRevision: 'typing.Optional[bytes]' = None + productTypeName: 'typing.Optional[bytes]' = None + productTypeId: 'typing.Optional[uint]' = None + cecedSpecificationVersion: 'typing.Optional[uint]' = None + generatedCommandList: 'typing.List[uint]' = None + acceptedCommandList: 'typing.List[uint]' = None + attributeList: 'typing.List[uint]' = None + featureMap: 'uint' = None + clusterRevision: 'uint' = None + + - arg1: 'bool' = False + class Attributes: @dataclass - class TestEnumsResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0005 - is_client: typing.ClassVar[bool] = False + class BasicIdentification(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B00 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="arg2", Tag=1, Type=TestCluster.Enums.SimpleEnum), - ]) + def attribute_id(cls) -> int: + return 0x00000000 - arg1: 'uint' = 0 - arg2: 'TestCluster.Enums.SimpleEnum' = 0 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=uint) + + value: 'uint' = 0 @dataclass - class TestStructArrayArgumentRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0006 - is_client: typing.ClassVar[bool] = True + class CompanyName(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B00 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[TestCluster.Structs.NestedStructList]), - ClusterObjectFieldDescriptor(Label="arg2", Tag=1, Type=typing.List[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor(Label="arg3", Tag=2, Type=typing.List[TestCluster.Enums.SimpleEnum]), - ClusterObjectFieldDescriptor(Label="arg4", Tag=3, Type=typing.List[bool]), - ClusterObjectFieldDescriptor(Label="arg5", Tag=4, Type=TestCluster.Enums.SimpleEnum), - ClusterObjectFieldDescriptor(Label="arg6", Tag=5, Type=bool), - ]) + def attribute_id(cls) -> int: + return 0x00000010 - arg1: 'typing.List[TestCluster.Structs.NestedStructList]' = field(default_factory=lambda: []) - arg2: 'typing.List[TestCluster.Structs.SimpleStruct]' = field(default_factory=lambda: []) - arg3: 'typing.List[TestCluster.Enums.SimpleEnum]' = field(default_factory=lambda: []) - arg4: 'typing.List[bool]' = field(default_factory=lambda: []) - arg5: 'TestCluster.Enums.SimpleEnum' = 0 - arg6: 'bool' = False + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[str]) + + value: 'typing.Optional[str]' = None @dataclass - class TestNullableOptionalResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0006 - is_client: typing.ClassVar[bool] = False + class CompanyId(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B00 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="wasPresent", Tag=0, Type=bool), - ClusterObjectFieldDescriptor(Label="wasNull", Tag=1, Type=typing.Optional[bool]), - ClusterObjectFieldDescriptor(Label="value", Tag=2, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="originalValue", Tag=3, Type=typing.Union[None, Nullable, uint]), - ]) + def attribute_id(cls) -> int: + return 0x00000011 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - wasPresent: 'bool' = False - wasNull: 'typing.Optional[bool]' = None value: 'typing.Optional[uint]' = None - originalValue: 'typing.Union[None, Nullable, uint]' = None @dataclass - class TestStructArgumentRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0007 - is_client: typing.ClassVar[bool] = True + class BrandName(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B00 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=TestCluster.Structs.SimpleStruct), - ]) + def attribute_id(cls) -> int: + return 0x00000012 - arg1: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[str]) + + value: 'typing.Optional[str]' = None @dataclass - class TestComplexNullableOptionalResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0007 - is_client: typing.ClassVar[bool] = False + class BrandId(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B00 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="nullableIntWasNull", Tag=0, Type=bool), - ClusterObjectFieldDescriptor(Label="nullableIntValue", Tag=1, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="optionalIntWasPresent", Tag=2, Type=bool), - ClusterObjectFieldDescriptor(Label="optionalIntValue", Tag=3, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="nullableOptionalIntWasPresent", Tag=4, Type=bool), - ClusterObjectFieldDescriptor(Label="nullableOptionalIntWasNull", Tag=5, Type=typing.Optional[bool]), - ClusterObjectFieldDescriptor(Label="nullableOptionalIntValue", Tag=6, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="nullableStringWasNull", Tag=7, Type=bool), - ClusterObjectFieldDescriptor(Label="nullableStringValue", Tag=8, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor(Label="optionalStringWasPresent", Tag=9, Type=bool), - ClusterObjectFieldDescriptor(Label="optionalStringValue", Tag=10, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor(Label="nullableOptionalStringWasPresent", Tag=11, Type=bool), - ClusterObjectFieldDescriptor(Label="nullableOptionalStringWasNull", Tag=12, Type=typing.Optional[bool]), - ClusterObjectFieldDescriptor(Label="nullableOptionalStringValue", Tag=13, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor(Label="nullableStructWasNull", Tag=14, Type=bool), - ClusterObjectFieldDescriptor(Label="nullableStructValue", Tag=15, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor(Label="optionalStructWasPresent", Tag=16, Type=bool), - ClusterObjectFieldDescriptor(Label="optionalStructValue", Tag=17, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor(Label="nullableOptionalStructWasPresent", Tag=18, Type=bool), - ClusterObjectFieldDescriptor(Label="nullableOptionalStructWasNull", Tag=19, Type=typing.Optional[bool]), - ClusterObjectFieldDescriptor(Label="nullableOptionalStructValue", Tag=20, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor(Label="nullableListWasNull", Tag=21, Type=bool), - ClusterObjectFieldDescriptor(Label="nullableListValue", Tag=22, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), - ClusterObjectFieldDescriptor(Label="optionalListWasPresent", Tag=23, Type=bool), - ClusterObjectFieldDescriptor(Label="optionalListValue", Tag=24, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), - ClusterObjectFieldDescriptor(Label="nullableOptionalListWasPresent", Tag=25, Type=bool), - ClusterObjectFieldDescriptor(Label="nullableOptionalListWasNull", Tag=26, Type=typing.Optional[bool]), - ClusterObjectFieldDescriptor(Label="nullableOptionalListValue", Tag=27, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), - ]) - - nullableIntWasNull: 'bool' = False - nullableIntValue: 'typing.Optional[uint]' = None - optionalIntWasPresent: 'bool' = False - optionalIntValue: 'typing.Optional[uint]' = None - nullableOptionalIntWasPresent: 'bool' = False - nullableOptionalIntWasNull: 'typing.Optional[bool]' = None - nullableOptionalIntValue: 'typing.Optional[uint]' = None - nullableStringWasNull: 'bool' = False - nullableStringValue: 'typing.Optional[str]' = None - optionalStringWasPresent: 'bool' = False - optionalStringValue: 'typing.Optional[str]' = None - nullableOptionalStringWasPresent: 'bool' = False - nullableOptionalStringWasNull: 'typing.Optional[bool]' = None - nullableOptionalStringValue: 'typing.Optional[str]' = None - nullableStructWasNull: 'bool' = False - nullableStructValue: 'typing.Optional[TestCluster.Structs.SimpleStruct]' = None - optionalStructWasPresent: 'bool' = False - optionalStructValue: 'typing.Optional[TestCluster.Structs.SimpleStruct]' = None - nullableOptionalStructWasPresent: 'bool' = False - nullableOptionalStructWasNull: 'typing.Optional[bool]' = None - nullableOptionalStructValue: 'typing.Optional[TestCluster.Structs.SimpleStruct]' = None - nullableListWasNull: 'bool' = False - nullableListValue: 'typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]' = None - optionalListWasPresent: 'bool' = False - optionalListValue: 'typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]' = None - nullableOptionalListWasPresent: 'bool' = False - nullableOptionalListWasNull: 'typing.Optional[bool]' = None - nullableOptionalListValue: 'typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]' = None - - @dataclass - class TestNestedStructArgumentRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0008 - is_client: typing.ClassVar[bool] = True + def attribute_id(cls) -> int: + return 0x00000013 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=TestCluster.Structs.NestedStruct), - ]) + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - arg1: 'TestCluster.Structs.NestedStruct' = field(default_factory=lambda: TestCluster.Structs.NestedStruct()) + value: 'typing.Optional[uint]' = None @dataclass - class BooleanResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0008 - is_client: typing.ClassVar[bool] = False + class Model(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B00 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="value", Tag=0, Type=bool), - ]) + def attribute_id(cls) -> int: + return 0x00000014 - value: 'bool' = False + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) + + value: 'typing.Optional[bytes]' = None @dataclass - class TestListStructArgumentRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0009 - is_client: typing.ClassVar[bool] = True + class PartNumber(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B00 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[TestCluster.Structs.SimpleStruct]), - ]) + def attribute_id(cls) -> int: + return 0x00000015 - arg1: 'typing.List[TestCluster.Structs.SimpleStruct]' = field(default_factory=lambda: []) + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) + + value: 'typing.Optional[bytes]' = None @dataclass - class SimpleStructResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0009 - is_client: typing.ClassVar[bool] = False + class ProductRevision(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B00 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=TestCluster.Structs.SimpleStruct), - ]) + def attribute_id(cls) -> int: + return 0x00000016 - arg1: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) + + value: 'typing.Optional[bytes]' = None @dataclass - class TestListInt8UArgumentRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x000A - is_client: typing.ClassVar[bool] = True + class SoftwareRevision(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B00 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[uint]), - ]) + def attribute_id(cls) -> int: + return 0x00000017 - arg1: 'typing.List[uint]' = field(default_factory=lambda: []) + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) + + value: 'typing.Optional[bytes]' = None @dataclass - class TestEmitTestEventResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x000A - is_client: typing.ClassVar[bool] = False + class ProductTypeName(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B00 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="value", Tag=0, Type=uint), - ]) + def attribute_id(cls) -> int: + return 0x00000018 - value: 'uint' = 0 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) + + value: 'typing.Optional[bytes]' = None @dataclass - class TestNestedStructListArgumentRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x000B - is_client: typing.ClassVar[bool] = True + class ProductTypeId(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B00 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=TestCluster.Structs.NestedStructList), - ]) + def attribute_id(cls) -> int: + return 0x00000019 - arg1: 'TestCluster.Structs.NestedStructList' = field(default_factory=lambda: TestCluster.Structs.NestedStructList()) + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + + value: 'typing.Optional[uint]' = None @dataclass - class TestEmitTestFabricScopedEventResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x000B - is_client: typing.ClassVar[bool] = False + class CecedSpecificationVersion(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B00 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="value", Tag=0, Type=uint), - ]) + def attribute_id(cls) -> int: + return 0x0000001A - value: 'uint' = 0 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + + value: 'typing.Optional[uint]' = None @dataclass - class TestListNestedStructListArgumentRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x000C - is_client: typing.ClassVar[bool] = True + class GeneratedCommandList(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B00 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[TestCluster.Structs.NestedStructList]), - ]) + def attribute_id(cls) -> int: + return 0x0000FFF8 - arg1: 'typing.List[TestCluster.Structs.NestedStructList]' = field(default_factory=lambda: []) + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class TestListInt8UReverseRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x000D - is_client: typing.ClassVar[bool] = True + class AcceptedCommandList(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B00 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[uint]), - ]) + def attribute_id(cls) -> int: + return 0x0000FFF9 - arg1: 'typing.List[uint]' = field(default_factory=lambda: []) + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class TestEnumsRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x000E - is_client: typing.ClassVar[bool] = True + class AttributeList(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B00 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="arg2", Tag=1, Type=TestCluster.Enums.SimpleEnum), - ]) + def attribute_id(cls) -> int: + return 0x0000FFFB - arg1: 'uint' = 0 - arg2: 'TestCluster.Enums.SimpleEnum' = 0 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class TestNullableOptionalRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x000F - is_client: typing.ClassVar[bool] = True - + class FeatureMap(ClusterAttributeDescriptor): @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.Union[None, Nullable, uint]), - ]) - - arg1: 'typing.Union[None, Nullable, uint]' = None - - @dataclass - class TestComplexNullableOptionalRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0010 - is_client: typing.ClassVar[bool] = True + def cluster_id(cls) -> int: + return 0x0B00 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="nullableInt", Tag=0, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor(Label="optionalInt", Tag=1, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="nullableOptionalInt", Tag=2, Type=typing.Union[None, Nullable, uint]), - ClusterObjectFieldDescriptor(Label="nullableString", Tag=3, Type=typing.Union[Nullable, str]), - ClusterObjectFieldDescriptor(Label="optionalString", Tag=4, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor(Label="nullableOptionalString", Tag=5, Type=typing.Union[None, Nullable, str]), - ClusterObjectFieldDescriptor(Label="nullableStruct", Tag=6, Type=typing.Union[Nullable, TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor(Label="optionalStruct", Tag=7, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor(Label="nullableOptionalStruct", Tag=8, Type=typing.Union[None, Nullable, TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor(Label="nullableList", Tag=9, Type=typing.Union[Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), - ClusterObjectFieldDescriptor(Label="optionalList", Tag=10, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), - ClusterObjectFieldDescriptor(Label="nullableOptionalList", Tag=11, Type=typing.Union[None, Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), - ]) - - nullableInt: 'typing.Union[Nullable, uint]' = NullValue - optionalInt: 'typing.Optional[uint]' = None - nullableOptionalInt: 'typing.Union[None, Nullable, uint]' = None - nullableString: 'typing.Union[Nullable, str]' = NullValue - optionalString: 'typing.Optional[str]' = None - nullableOptionalString: 'typing.Union[None, Nullable, str]' = None - nullableStruct: 'typing.Union[Nullable, TestCluster.Structs.SimpleStruct]' = NullValue - optionalStruct: 'typing.Optional[TestCluster.Structs.SimpleStruct]' = None - nullableOptionalStruct: 'typing.Union[None, Nullable, TestCluster.Structs.SimpleStruct]' = None - nullableList: 'typing.Union[Nullable, typing.List[TestCluster.Enums.SimpleEnum]]' = NullValue - optionalList: 'typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]' = None - nullableOptionalList: 'typing.Union[None, Nullable, typing.List[TestCluster.Enums.SimpleEnum]]' = None - - @dataclass - class SimpleStructEchoRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0011 - is_client: typing.ClassVar[bool] = True + def attribute_id(cls) -> int: + return 0x0000FFFC @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=TestCluster.Structs.SimpleStruct), - ]) + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=uint) - arg1: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) + value: 'uint' = 0 @dataclass - class TimedInvokeRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0012 - is_client: typing.ClassVar[bool] = True - + class ClusterRevision(ClusterAttributeDescriptor): @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ]) + def cluster_id(cls) -> int: + return 0x0B00 @ChipUtility.classproperty - def must_use_timed_invoke(cls) -> bool: - return True - - - @dataclass - class TestSimpleOptionalArgumentRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0013 - is_client: typing.ClassVar[bool] = True + def attribute_id(cls) -> int: + return 0x0000FFFD @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.Optional[bool]), - ]) + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=uint) - arg1: 'typing.Optional[bool]' = None + value: 'uint' = 0 - @dataclass - class TestEmitTestEventRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0014 - is_client: typing.ClassVar[bool] = True - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="arg2", Tag=1, Type=TestCluster.Enums.SimpleEnum), - ClusterObjectFieldDescriptor(Label="arg3", Tag=2, Type=bool), - ]) - arg1: 'uint' = 0 - arg2: 'TestCluster.Enums.SimpleEnum' = 0 - arg3: 'bool' = False +@dataclass +class MeterIdentification(Cluster): + id: typing.ClassVar[int] = 0x0B01 - @dataclass - class TestEmitTestFabricScopedEventRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x050F - command_id: typing.ClassVar[int] = 0x0015 - is_client: typing.ClassVar[bool] = True + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="companyName", Tag=0x00000000, Type=str), + ClusterObjectFieldDescriptor(Label="meterTypeId", Tag=0x00000001, Type=uint), + ClusterObjectFieldDescriptor(Label="dataQualityId", Tag=0x00000004, Type=uint), + ClusterObjectFieldDescriptor(Label="customerName", Tag=0x00000005, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="model", Tag=0x00000006, Type=typing.Optional[bytes]), + ClusterObjectFieldDescriptor(Label="partNumber", Tag=0x00000007, Type=typing.Optional[bytes]), + ClusterObjectFieldDescriptor(Label="productRevision", Tag=0x00000008, Type=typing.Optional[bytes]), + ClusterObjectFieldDescriptor(Label="softwareRevision", Tag=0x0000000A, Type=typing.Optional[bytes]), + ClusterObjectFieldDescriptor(Label="utilityName", Tag=0x0000000B, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="pod", Tag=0x0000000C, Type=str), + ClusterObjectFieldDescriptor(Label="availablePower", Tag=0x0000000D, Type=int), + ClusterObjectFieldDescriptor(Label="powerThreshold", Tag=0x0000000E, Type=int), + ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="featureMap", Tag=0x0000FFFC, Type=uint), + ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), + ]) + + companyName: 'str' = None + meterTypeId: 'uint' = None + dataQualityId: 'uint' = None + customerName: 'typing.Optional[str]' = None + model: 'typing.Optional[bytes]' = None + partNumber: 'typing.Optional[bytes]' = None + productRevision: 'typing.Optional[bytes]' = None + softwareRevision: 'typing.Optional[bytes]' = None + utilityName: 'typing.Optional[str]' = None + pod: 'str' = None + availablePower: 'int' = None + powerThreshold: 'int' = None + generatedCommandList: 'typing.List[uint]' = None + acceptedCommandList: 'typing.List[uint]' = None + attributeList: 'typing.List[uint]' = None + featureMap: 'uint' = None + clusterRevision: 'uint' = None - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=uint), - ]) - arg1: 'uint' = 0 class Attributes: @dataclass - class Boolean(ClusterAttributeDescriptor): + class CompanyName(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B01 @ChipUtility.classproperty def attribute_id(cls) -> int: @@ -34878,15 +34635,15 @@ def attribute_id(cls) -> int: @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=bool) + return ClusterObjectFieldDescriptor(Type=str) - value: 'bool' = False + value: 'str' = "" @dataclass - class Bitmap8(ClusterAttributeDescriptor): + class MeterTypeId(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B01 @ChipUtility.classproperty def attribute_id(cls) -> int: @@ -34899,14 +34656,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 @dataclass - class Bitmap16(ClusterAttributeDescriptor): + class DataQualityId(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B01 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000002 + return 0x00000004 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: @@ -34915,382 +34672,354 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 @dataclass - class Bitmap32(ClusterAttributeDescriptor): + class CustomerName(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B01 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000003 + return 0x00000005 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[str]) - value: 'uint' = 0 + value: 'typing.Optional[str]' = None @dataclass - class Bitmap64(ClusterAttributeDescriptor): + class Model(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B01 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000004 + return 0x00000006 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) - value: 'uint' = 0 + value: 'typing.Optional[bytes]' = None @dataclass - class Int8u(ClusterAttributeDescriptor): + class PartNumber(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B01 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000005 + return 0x00000007 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) - value: 'uint' = 0 + value: 'typing.Optional[bytes]' = None @dataclass - class Int16u(ClusterAttributeDescriptor): + class ProductRevision(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B01 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000006 + return 0x00000008 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) - value: 'uint' = 0 + value: 'typing.Optional[bytes]' = None @dataclass - class Int24u(ClusterAttributeDescriptor): + class SoftwareRevision(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B01 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000007 + return 0x0000000A @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) - value: 'uint' = 0 + value: 'typing.Optional[bytes]' = None @dataclass - class Int32u(ClusterAttributeDescriptor): + class UtilityName(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B01 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000008 + return 0x0000000B @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[str]) - value: 'uint' = 0 + value: 'typing.Optional[str]' = None @dataclass - class Int40u(ClusterAttributeDescriptor): + class Pod(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B01 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000009 + return 0x0000000C @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=str) - value: 'uint' = 0 + value: 'str' = "" @dataclass - class Int48u(ClusterAttributeDescriptor): + class AvailablePower(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B01 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000000A + return 0x0000000D @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=int) - value: 'uint' = 0 + value: 'int' = 0 @dataclass - class Int56u(ClusterAttributeDescriptor): + class PowerThreshold(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B01 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000000B + return 0x0000000E @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) - - value: 'uint' = 0 - - @dataclass - class Int64u(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000000C - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) - - value: 'uint' = 0 - - @dataclass - class Int8s(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000000D - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=int) + return ClusterObjectFieldDescriptor(Type=int) value: 'int' = 0 @dataclass - class Int16s(ClusterAttributeDescriptor): + class GeneratedCommandList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B01 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000000E + return 0x0000FFF8 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=int) + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - value: 'int' = 0 + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class Int24s(ClusterAttributeDescriptor): + class AcceptedCommandList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B01 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000000F + return 0x0000FFF9 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=int) + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - value: 'int' = 0 + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class Int32s(ClusterAttributeDescriptor): + class AttributeList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B01 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000010 + return 0x0000FFFB @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=int) + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - value: 'int' = 0 + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class Int40s(ClusterAttributeDescriptor): + class FeatureMap(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B01 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000011 + return 0x0000FFFC @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=int) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'int' = 0 + value: 'uint' = 0 @dataclass - class Int48s(ClusterAttributeDescriptor): + class ClusterRevision(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B01 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000012 + return 0x0000FFFD @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=int) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'int' = 0 + value: 'uint' = 0 - @dataclass - class Int56s(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000013 - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=int) +@dataclass +class ApplianceEventsAndAlert(Cluster): + id: typing.ClassVar[int] = 0x0B02 - value: 'int' = 0 + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="featureMap", Tag=0x0000FFFC, Type=uint), + ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), + ]) - @dataclass - class Int64s(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F + generatedCommandList: 'typing.List[uint]' = None + acceptedCommandList: 'typing.List[uint]' = None + attributeList: 'typing.List[uint]' = None + featureMap: 'uint' = None + clusterRevision: 'uint' = None - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000014 + class Enums: + class EventIdentification(IntEnum): + kEndOfCycle = 0x01 + kTemperatureReached = 0x04 + kEndOfCooking = 0x05 + kSwitchingOff = 0x06 + kWrongData = 0x07 - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=int) - value: 'int' = 0 + class Commands: @dataclass - class Enum8(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000015 + class GetAlerts(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0B02 + command_id: typing.ClassVar[int] = 0x0000 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ]) - value: 'uint' = 0 @dataclass - class Enum16(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000016 + class GetAlertsResponse(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0B02 + command_id: typing.ClassVar[int] = 0x0000 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="alertsCount", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="alertStructures", Tag=1, Type=typing.List[uint]), + ]) - value: 'uint' = 0 + alertsCount: 'uint' = 0 + alertStructures: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class FloatSingle(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000017 + class AlertsNotification(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0B02 + command_id: typing.ClassVar[int] = 0x0001 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=float32) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="alertsCount", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="alertStructures", Tag=1, Type=typing.List[uint]), + ]) - value: 'float32' = 0.0 + alertsCount: 'uint' = 0 + alertStructures: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class FloatDouble(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F + class EventsNotification(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0B02 + command_id: typing.ClassVar[int] = 0x0002 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000018 + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="eventHeader", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="eventId", Tag=1, Type=ApplianceEventsAndAlert.Enums.EventIdentification), + ]) - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=float) + eventHeader: 'uint' = 0 + eventId: 'ApplianceEventsAndAlert.Enums.EventIdentification' = 0 - value: 'float' = 0.0 + class Attributes: @dataclass - class OctetString(ClusterAttributeDescriptor): + class GeneratedCommandList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B02 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000019 + return 0x0000FFF8 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=bytes) + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - value: 'bytes' = b"" + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class ListInt8u(ClusterAttributeDescriptor): + class AcceptedCommandList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B02 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000001A + return 0x0000FFF9 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: @@ -35299,190 +35028,198 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class ListOctetString(ClusterAttributeDescriptor): + class AttributeList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B02 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000001B + return 0x0000FFFB @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[bytes]) + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - value: 'typing.List[bytes]' = field(default_factory=lambda: []) + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class ListStructOctetString(ClusterAttributeDescriptor): + class FeatureMap(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B02 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000001C + return 0x0000FFFC @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[TestCluster.Structs.TestListStructOctet]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.List[TestCluster.Structs.TestListStructOctet]' = field(default_factory=lambda: []) + value: 'uint' = 0 @dataclass - class LongOctetString(ClusterAttributeDescriptor): + class ClusterRevision(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B02 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000001D + return 0x0000FFFD @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=bytes) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'bytes' = b"" + value: 'uint' = 0 - @dataclass - class CharString(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000001E - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=str) - - value: 'str' = "" +@dataclass +class ApplianceStatistics(Cluster): + id: typing.ClassVar[int] = 0x0B03 - @dataclass - class LongCharString(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="logMaxSize", Tag=0x00000000, Type=uint), + ClusterObjectFieldDescriptor(Label="logQueueMaxSize", Tag=0x00000001, Type=uint), + ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="featureMap", Tag=0x0000FFFC, Type=uint), + ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), + ]) - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000001F + logMaxSize: 'uint' = None + logQueueMaxSize: 'uint' = None + generatedCommandList: 'typing.List[uint]' = None + acceptedCommandList: 'typing.List[uint]' = None + attributeList: 'typing.List[uint]' = None + featureMap: 'uint' = None + clusterRevision: 'uint' = None - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=str) - value: 'str' = "" + class Commands: @dataclass - class EpochUs(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000020 + class LogNotification(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0B03 + command_id: typing.ClassVar[int] = 0x0000 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="timeStamp", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="logId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="logLength", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="logPayload", Tag=3, Type=typing.List[uint]), + ]) - value: 'uint' = 0 + timeStamp: 'uint' = 0 + logId: 'uint' = 0 + logLength: 'uint' = 0 + logPayload: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class EpochS(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000021 + class LogRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0B03 + command_id: typing.ClassVar[int] = 0x0000 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="logId", Tag=0, Type=uint), + ]) - value: 'uint' = 0 + logId: 'uint' = 0 @dataclass - class VendorId(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000022 + class LogResponse(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0B03 + command_id: typing.ClassVar[int] = 0x0001 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="timeStamp", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="logId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="logLength", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="logPayload", Tag=3, Type=typing.List[uint]), + ]) - value: 'uint' = 0 + timeStamp: 'uint' = 0 + logId: 'uint' = 0 + logLength: 'uint' = 0 + logPayload: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class ListNullablesAndOptionalsStruct(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000023 + class LogQueueRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0B03 + command_id: typing.ClassVar[int] = 0x0001 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[TestCluster.Structs.NullablesAndOptionalsStruct]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ]) - value: 'typing.List[TestCluster.Structs.NullablesAndOptionalsStruct]' = field(default_factory=lambda: []) @dataclass - class EnumAttr(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000024 + class LogQueueResponse(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0B03 + command_id: typing.ClassVar[int] = 0x0002 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=TestCluster.Enums.SimpleEnum) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="logQueueSize", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="logIds", Tag=1, Type=typing.List[uint]), + ]) - value: 'TestCluster.Enums.SimpleEnum' = 0 + logQueueSize: 'uint' = 0 + logIds: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class StructAttr(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F + class StatisticsAvailable(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0B03 + command_id: typing.ClassVar[int] = 0x0003 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000025 + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="logQueueSize", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="logIds", Tag=1, Type=typing.List[uint]), + ]) - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=TestCluster.Structs.SimpleStruct) + logQueueSize: 'uint' = 0 + logIds: 'typing.List[uint]' = field(default_factory=lambda: []) - value: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) + class Attributes: @dataclass - class RangeRestrictedInt8u(ClusterAttributeDescriptor): + class LogMaxSize(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B03 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000026 + return 0x00000000 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: @@ -35491,30 +35228,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 @dataclass - class RangeRestrictedInt8s(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000027 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=int) - - value: 'int' = 0 - - @dataclass - class RangeRestrictedInt16u(ClusterAttributeDescriptor): + class LogQueueMaxSize(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B03 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000028 + return 0x00000001 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: @@ -35523,1213 +35244,1352 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 @dataclass - class RangeRestrictedInt16s(ClusterAttributeDescriptor): + class GeneratedCommandList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B03 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000029 + return 0x0000FFF8 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=int) + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - value: 'int' = 0 + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class ListLongOctetString(ClusterAttributeDescriptor): + class AcceptedCommandList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B03 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000002A + return 0x0000FFF9 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[bytes]) + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - value: 'typing.List[bytes]' = field(default_factory=lambda: []) + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class ListFabricScoped(ClusterAttributeDescriptor): + class AttributeList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B03 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000002B + return 0x0000FFFB @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[TestCluster.Structs.TestFabricScoped]) + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - value: 'typing.List[TestCluster.Structs.TestFabricScoped]' = field(default_factory=lambda: []) + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class TimedWriteBoolean(ClusterAttributeDescriptor): + class FeatureMap(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B03 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000030 - - @ChipUtility.classproperty - def must_use_timed_write(cls) -> bool: - return True + return 0x0000FFFC @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=bool) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'bool' = False + value: 'uint' = 0 @dataclass - class GeneralErrorBoolean(ClusterAttributeDescriptor): + class ClusterRevision(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B03 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000031 + return 0x0000FFFD @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=bool) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'bool' = False + value: 'uint' = 0 - @dataclass - class ClusterErrorBoolean(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000032 - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=bool) +@dataclass +class ElectricalMeasurement(Cluster): + id: typing.ClassVar[int] = 0x0B04 + + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="measurementType", Tag=0x00000000, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="dcVoltage", Tag=0x00000100, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="dcVoltageMin", Tag=0x00000101, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="dcVoltageMax", Tag=0x00000102, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="dcCurrent", Tag=0x00000103, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="dcCurrentMin", Tag=0x00000104, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="dcCurrentMax", Tag=0x00000105, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="dcPower", Tag=0x00000106, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="dcPowerMin", Tag=0x00000107, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="dcPowerMax", Tag=0x00000108, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="dcVoltageMultiplier", Tag=0x00000200, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="dcVoltageDivisor", Tag=0x00000201, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="dcCurrentMultiplier", Tag=0x00000202, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="dcCurrentDivisor", Tag=0x00000203, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="dcPowerMultiplier", Tag=0x00000204, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="dcPowerDivisor", Tag=0x00000205, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="acFrequency", Tag=0x00000300, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="acFrequencyMin", Tag=0x00000301, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="acFrequencyMax", Tag=0x00000302, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="neutralCurrent", Tag=0x00000303, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="totalActivePower", Tag=0x00000304, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="totalReactivePower", Tag=0x00000305, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="totalApparentPower", Tag=0x00000306, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="measured1stHarmonicCurrent", Tag=0x00000307, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="measured3rdHarmonicCurrent", Tag=0x00000308, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="measured5thHarmonicCurrent", Tag=0x00000309, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="measured7thHarmonicCurrent", Tag=0x0000030A, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="measured9thHarmonicCurrent", Tag=0x0000030B, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="measured11thHarmonicCurrent", Tag=0x0000030C, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="measuredPhase1stHarmonicCurrent", Tag=0x0000030D, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="measuredPhase3rdHarmonicCurrent", Tag=0x0000030E, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="measuredPhase5thHarmonicCurrent", Tag=0x0000030F, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="measuredPhase7thHarmonicCurrent", Tag=0x00000310, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="measuredPhase9thHarmonicCurrent", Tag=0x00000311, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="measuredPhase11thHarmonicCurrent", Tag=0x00000312, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="acFrequencyMultiplier", Tag=0x00000400, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="acFrequencyDivisor", Tag=0x00000401, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="powerMultiplier", Tag=0x00000402, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="powerDivisor", Tag=0x00000403, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="harmonicCurrentMultiplier", Tag=0x00000404, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="phaseHarmonicCurrentMultiplier", Tag=0x00000405, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="instantaneousVoltage", Tag=0x00000500, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="instantaneousLineCurrent", Tag=0x00000501, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="instantaneousActiveCurrent", Tag=0x00000502, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="instantaneousReactiveCurrent", Tag=0x00000503, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="instantaneousPower", Tag=0x00000504, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="rmsVoltage", Tag=0x00000505, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsVoltageMin", Tag=0x00000506, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsVoltageMax", Tag=0x00000507, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsCurrent", Tag=0x00000508, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsCurrentMin", Tag=0x00000509, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsCurrentMax", Tag=0x0000050A, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="activePower", Tag=0x0000050B, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="activePowerMin", Tag=0x0000050C, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="activePowerMax", Tag=0x0000050D, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="reactivePower", Tag=0x0000050E, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="apparentPower", Tag=0x0000050F, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="powerFactor", Tag=0x00000510, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="averageRmsVoltageMeasurementPeriod", Tag=0x00000511, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="averageRmsUnderVoltageCounter", Tag=0x00000513, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsExtremeOverVoltagePeriod", Tag=0x00000514, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsExtremeUnderVoltagePeriod", Tag=0x00000515, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsVoltageSagPeriod", Tag=0x00000516, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsVoltageSwellPeriod", Tag=0x00000517, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="acVoltageMultiplier", Tag=0x00000600, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="acVoltageDivisor", Tag=0x00000601, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="acCurrentMultiplier", Tag=0x00000602, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="acCurrentDivisor", Tag=0x00000603, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="acPowerMultiplier", Tag=0x00000604, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="acPowerDivisor", Tag=0x00000605, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="overloadAlarmsMask", Tag=0x00000700, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="voltageOverload", Tag=0x00000701, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="currentOverload", Tag=0x00000702, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="acOverloadAlarmsMask", Tag=0x00000800, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="acVoltageOverload", Tag=0x00000801, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="acCurrentOverload", Tag=0x00000802, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="acActivePowerOverload", Tag=0x00000803, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="acReactivePowerOverload", Tag=0x00000804, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="averageRmsOverVoltage", Tag=0x00000805, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="averageRmsUnderVoltage", Tag=0x00000806, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="rmsExtremeOverVoltage", Tag=0x00000807, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="rmsExtremeUnderVoltage", Tag=0x00000808, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="rmsVoltageSag", Tag=0x00000809, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="rmsVoltageSwell", Tag=0x0000080A, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="lineCurrentPhaseB", Tag=0x00000901, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="activeCurrentPhaseB", Tag=0x00000902, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="reactiveCurrentPhaseB", Tag=0x00000903, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="rmsVoltagePhaseB", Tag=0x00000905, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsVoltageMinPhaseB", Tag=0x00000906, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsVoltageMaxPhaseB", Tag=0x00000907, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsCurrentPhaseB", Tag=0x00000908, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsCurrentMinPhaseB", Tag=0x00000909, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsCurrentMaxPhaseB", Tag=0x0000090A, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="activePowerPhaseB", Tag=0x0000090B, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="activePowerMinPhaseB", Tag=0x0000090C, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="activePowerMaxPhaseB", Tag=0x0000090D, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="reactivePowerPhaseB", Tag=0x0000090E, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="apparentPowerPhaseB", Tag=0x0000090F, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="powerFactorPhaseB", Tag=0x00000910, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="averageRmsVoltageMeasurementPeriodPhaseB", Tag=0x00000911, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="averageRmsOverVoltageCounterPhaseB", Tag=0x00000912, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="averageRmsUnderVoltageCounterPhaseB", Tag=0x00000913, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsExtremeOverVoltagePeriodPhaseB", Tag=0x00000914, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsExtremeUnderVoltagePeriodPhaseB", Tag=0x00000915, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsVoltageSagPeriodPhaseB", Tag=0x00000916, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsVoltageSwellPeriodPhaseB", Tag=0x00000917, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="lineCurrentPhaseC", Tag=0x00000A01, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="activeCurrentPhaseC", Tag=0x00000A02, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="reactiveCurrentPhaseC", Tag=0x00000A03, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="rmsVoltagePhaseC", Tag=0x00000A05, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsVoltageMinPhaseC", Tag=0x00000A06, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsVoltageMaxPhaseC", Tag=0x00000A07, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsCurrentPhaseC", Tag=0x00000A08, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsCurrentMinPhaseC", Tag=0x00000A09, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsCurrentMaxPhaseC", Tag=0x00000A0A, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="activePowerPhaseC", Tag=0x00000A0B, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="activePowerMinPhaseC", Tag=0x00000A0C, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="activePowerMaxPhaseC", Tag=0x00000A0D, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="reactivePowerPhaseC", Tag=0x00000A0E, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="apparentPowerPhaseC", Tag=0x00000A0F, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="powerFactorPhaseC", Tag=0x00000A10, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="averageRmsVoltageMeasurementPeriodPhaseC", Tag=0x00000A11, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="averageRmsOverVoltageCounterPhaseC", Tag=0x00000A12, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="averageRmsUnderVoltageCounterPhaseC", Tag=0x00000A13, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsExtremeOverVoltagePeriodPhaseC", Tag=0x00000A14, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsExtremeUnderVoltagePeriodPhaseC", Tag=0x00000A15, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsVoltageSagPeriodPhaseC", Tag=0x00000A16, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="rmsVoltageSwellPeriodPhaseC", Tag=0x00000A17, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="featureMap", Tag=0x0000FFFC, Type=uint), + ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), + ]) + + measurementType: 'typing.Optional[uint]' = None + dcVoltage: 'typing.Optional[int]' = None + dcVoltageMin: 'typing.Optional[int]' = None + dcVoltageMax: 'typing.Optional[int]' = None + dcCurrent: 'typing.Optional[int]' = None + dcCurrentMin: 'typing.Optional[int]' = None + dcCurrentMax: 'typing.Optional[int]' = None + dcPower: 'typing.Optional[int]' = None + dcPowerMin: 'typing.Optional[int]' = None + dcPowerMax: 'typing.Optional[int]' = None + dcVoltageMultiplier: 'typing.Optional[uint]' = None + dcVoltageDivisor: 'typing.Optional[uint]' = None + dcCurrentMultiplier: 'typing.Optional[uint]' = None + dcCurrentDivisor: 'typing.Optional[uint]' = None + dcPowerMultiplier: 'typing.Optional[uint]' = None + dcPowerDivisor: 'typing.Optional[uint]' = None + acFrequency: 'typing.Optional[uint]' = None + acFrequencyMin: 'typing.Optional[uint]' = None + acFrequencyMax: 'typing.Optional[uint]' = None + neutralCurrent: 'typing.Optional[uint]' = None + totalActivePower: 'typing.Optional[int]' = None + totalReactivePower: 'typing.Optional[int]' = None + totalApparentPower: 'typing.Optional[uint]' = None + measured1stHarmonicCurrent: 'typing.Optional[int]' = None + measured3rdHarmonicCurrent: 'typing.Optional[int]' = None + measured5thHarmonicCurrent: 'typing.Optional[int]' = None + measured7thHarmonicCurrent: 'typing.Optional[int]' = None + measured9thHarmonicCurrent: 'typing.Optional[int]' = None + measured11thHarmonicCurrent: 'typing.Optional[int]' = None + measuredPhase1stHarmonicCurrent: 'typing.Optional[int]' = None + measuredPhase3rdHarmonicCurrent: 'typing.Optional[int]' = None + measuredPhase5thHarmonicCurrent: 'typing.Optional[int]' = None + measuredPhase7thHarmonicCurrent: 'typing.Optional[int]' = None + measuredPhase9thHarmonicCurrent: 'typing.Optional[int]' = None + measuredPhase11thHarmonicCurrent: 'typing.Optional[int]' = None + acFrequencyMultiplier: 'typing.Optional[uint]' = None + acFrequencyDivisor: 'typing.Optional[uint]' = None + powerMultiplier: 'typing.Optional[uint]' = None + powerDivisor: 'typing.Optional[uint]' = None + harmonicCurrentMultiplier: 'typing.Optional[int]' = None + phaseHarmonicCurrentMultiplier: 'typing.Optional[int]' = None + instantaneousVoltage: 'typing.Optional[int]' = None + instantaneousLineCurrent: 'typing.Optional[uint]' = None + instantaneousActiveCurrent: 'typing.Optional[int]' = None + instantaneousReactiveCurrent: 'typing.Optional[int]' = None + instantaneousPower: 'typing.Optional[int]' = None + rmsVoltage: 'typing.Optional[uint]' = None + rmsVoltageMin: 'typing.Optional[uint]' = None + rmsVoltageMax: 'typing.Optional[uint]' = None + rmsCurrent: 'typing.Optional[uint]' = None + rmsCurrentMin: 'typing.Optional[uint]' = None + rmsCurrentMax: 'typing.Optional[uint]' = None + activePower: 'typing.Optional[int]' = None + activePowerMin: 'typing.Optional[int]' = None + activePowerMax: 'typing.Optional[int]' = None + reactivePower: 'typing.Optional[int]' = None + apparentPower: 'typing.Optional[uint]' = None + powerFactor: 'typing.Optional[int]' = None + averageRmsVoltageMeasurementPeriod: 'typing.Optional[uint]' = None + averageRmsUnderVoltageCounter: 'typing.Optional[uint]' = None + rmsExtremeOverVoltagePeriod: 'typing.Optional[uint]' = None + rmsExtremeUnderVoltagePeriod: 'typing.Optional[uint]' = None + rmsVoltageSagPeriod: 'typing.Optional[uint]' = None + rmsVoltageSwellPeriod: 'typing.Optional[uint]' = None + acVoltageMultiplier: 'typing.Optional[uint]' = None + acVoltageDivisor: 'typing.Optional[uint]' = None + acCurrentMultiplier: 'typing.Optional[uint]' = None + acCurrentDivisor: 'typing.Optional[uint]' = None + acPowerMultiplier: 'typing.Optional[uint]' = None + acPowerDivisor: 'typing.Optional[uint]' = None + overloadAlarmsMask: 'typing.Optional[uint]' = None + voltageOverload: 'typing.Optional[int]' = None + currentOverload: 'typing.Optional[int]' = None + acOverloadAlarmsMask: 'typing.Optional[uint]' = None + acVoltageOverload: 'typing.Optional[int]' = None + acCurrentOverload: 'typing.Optional[int]' = None + acActivePowerOverload: 'typing.Optional[int]' = None + acReactivePowerOverload: 'typing.Optional[int]' = None + averageRmsOverVoltage: 'typing.Optional[int]' = None + averageRmsUnderVoltage: 'typing.Optional[int]' = None + rmsExtremeOverVoltage: 'typing.Optional[int]' = None + rmsExtremeUnderVoltage: 'typing.Optional[int]' = None + rmsVoltageSag: 'typing.Optional[int]' = None + rmsVoltageSwell: 'typing.Optional[int]' = None + lineCurrentPhaseB: 'typing.Optional[uint]' = None + activeCurrentPhaseB: 'typing.Optional[int]' = None + reactiveCurrentPhaseB: 'typing.Optional[int]' = None + rmsVoltagePhaseB: 'typing.Optional[uint]' = None + rmsVoltageMinPhaseB: 'typing.Optional[uint]' = None + rmsVoltageMaxPhaseB: 'typing.Optional[uint]' = None + rmsCurrentPhaseB: 'typing.Optional[uint]' = None + rmsCurrentMinPhaseB: 'typing.Optional[uint]' = None + rmsCurrentMaxPhaseB: 'typing.Optional[uint]' = None + activePowerPhaseB: 'typing.Optional[int]' = None + activePowerMinPhaseB: 'typing.Optional[int]' = None + activePowerMaxPhaseB: 'typing.Optional[int]' = None + reactivePowerPhaseB: 'typing.Optional[int]' = None + apparentPowerPhaseB: 'typing.Optional[uint]' = None + powerFactorPhaseB: 'typing.Optional[int]' = None + averageRmsVoltageMeasurementPeriodPhaseB: 'typing.Optional[uint]' = None + averageRmsOverVoltageCounterPhaseB: 'typing.Optional[uint]' = None + averageRmsUnderVoltageCounterPhaseB: 'typing.Optional[uint]' = None + rmsExtremeOverVoltagePeriodPhaseB: 'typing.Optional[uint]' = None + rmsExtremeUnderVoltagePeriodPhaseB: 'typing.Optional[uint]' = None + rmsVoltageSagPeriodPhaseB: 'typing.Optional[uint]' = None + rmsVoltageSwellPeriodPhaseB: 'typing.Optional[uint]' = None + lineCurrentPhaseC: 'typing.Optional[uint]' = None + activeCurrentPhaseC: 'typing.Optional[int]' = None + reactiveCurrentPhaseC: 'typing.Optional[int]' = None + rmsVoltagePhaseC: 'typing.Optional[uint]' = None + rmsVoltageMinPhaseC: 'typing.Optional[uint]' = None + rmsVoltageMaxPhaseC: 'typing.Optional[uint]' = None + rmsCurrentPhaseC: 'typing.Optional[uint]' = None + rmsCurrentMinPhaseC: 'typing.Optional[uint]' = None + rmsCurrentMaxPhaseC: 'typing.Optional[uint]' = None + activePowerPhaseC: 'typing.Optional[int]' = None + activePowerMinPhaseC: 'typing.Optional[int]' = None + activePowerMaxPhaseC: 'typing.Optional[int]' = None + reactivePowerPhaseC: 'typing.Optional[int]' = None + apparentPowerPhaseC: 'typing.Optional[uint]' = None + powerFactorPhaseC: 'typing.Optional[int]' = None + averageRmsVoltageMeasurementPeriodPhaseC: 'typing.Optional[uint]' = None + averageRmsOverVoltageCounterPhaseC: 'typing.Optional[uint]' = None + averageRmsUnderVoltageCounterPhaseC: 'typing.Optional[uint]' = None + rmsExtremeOverVoltagePeriodPhaseC: 'typing.Optional[uint]' = None + rmsExtremeUnderVoltagePeriodPhaseC: 'typing.Optional[uint]' = None + rmsVoltageSagPeriodPhaseC: 'typing.Optional[uint]' = None + rmsVoltageSwellPeriodPhaseC: 'typing.Optional[uint]' = None + generatedCommandList: 'typing.List[uint]' = None + acceptedCommandList: 'typing.List[uint]' = None + attributeList: 'typing.List[uint]' = None + featureMap: 'uint' = None + clusterRevision: 'uint' = None + - value: 'bool' = False + class Commands: @dataclass - class Unsupported(ClusterAttributeDescriptor): + class GetProfileInfoResponseCommand(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0B04 + command_id: typing.ClassVar[int] = 0x0000 + is_client: typing.ClassVar[bool] = False + @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x050F + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="profileCount", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="profileIntervalPeriod", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="maxNumberOfIntervals", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="listOfAttributes", Tag=3, Type=typing.List[uint]), + ]) + + profileCount: 'uint' = 0 + profileIntervalPeriod: 'uint' = 0 + maxNumberOfIntervals: 'uint' = 0 + listOfAttributes: 'typing.List[uint]' = field(default_factory=lambda: []) + + @dataclass + class GetProfileInfoCommand(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0B04 + command_id: typing.ClassVar[int] = 0x0000 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x000000FF + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ]) + + + @dataclass + class GetMeasurementProfileResponseCommand(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0B04 + command_id: typing.ClassVar[int] = 0x0001 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[bool]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="startTime", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="status", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="profileIntervalPeriod", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="numberOfIntervalsDelivered", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="attributeId", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="intervals", Tag=5, Type=typing.List[uint]), + ]) - value: 'typing.Optional[bool]' = None + startTime: 'uint' = 0 + status: 'uint' = 0 + profileIntervalPeriod: 'uint' = 0 + numberOfIntervalsDelivered: 'uint' = 0 + attributeId: 'uint' = 0 + intervals: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class NullableBoolean(ClusterAttributeDescriptor): + class GetMeasurementProfileCommand(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0B04 + command_id: typing.ClassVar[int] = 0x0001 + is_client: typing.ClassVar[bool] = True + + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="attributeId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="startTime", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="numberOfIntervals", Tag=2, Type=uint), + ]) + + attributeId: 'uint' = 0 + startTime: 'uint' = 0 + numberOfIntervals: 'uint' = 0 + + + class Attributes: + @dataclass + class MeasurementType(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004000 + return 0x00000000 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, bool]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Union[Nullable, bool]' = NullValue + value: 'typing.Optional[uint]' = None @dataclass - class NullableBitmap8(ClusterAttributeDescriptor): + class DcVoltage(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004001 + return 0x00000100 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, uint]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableBitmap16(ClusterAttributeDescriptor): + class DcVoltageMin(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004002 + return 0x00000101 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, uint]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableBitmap32(ClusterAttributeDescriptor): + class DcVoltageMax(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004003 + return 0x00000102 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, uint]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableBitmap64(ClusterAttributeDescriptor): + class DcCurrent(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004004 + return 0x00000103 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, uint]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableInt8u(ClusterAttributeDescriptor): + class DcCurrentMin(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004005 + return 0x00000104 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, uint]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableInt16u(ClusterAttributeDescriptor): + class DcCurrentMax(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004006 + return 0x00000105 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, uint]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableInt24u(ClusterAttributeDescriptor): + class DcPower(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004007 + return 0x00000106 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, uint]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableInt32u(ClusterAttributeDescriptor): + class DcPowerMin(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004008 + return 0x00000107 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, uint]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableInt40u(ClusterAttributeDescriptor): + class DcPowerMax(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004009 + return 0x00000108 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, uint]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableInt48u(ClusterAttributeDescriptor): + class DcVoltageMultiplier(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000400A + return 0x00000200 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Union[Nullable, uint]' = NullValue + value: 'typing.Optional[uint]' = None @dataclass - class NullableInt56u(ClusterAttributeDescriptor): + class DcVoltageDivisor(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000400B + return 0x00000201 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Union[Nullable, uint]' = NullValue + value: 'typing.Optional[uint]' = None @dataclass - class NullableInt64u(ClusterAttributeDescriptor): + class DcCurrentMultiplier(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000400C + return 0x00000202 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Union[Nullable, uint]' = NullValue + value: 'typing.Optional[uint]' = None @dataclass - class NullableInt8s(ClusterAttributeDescriptor): + class DcCurrentDivisor(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000400D + return 0x00000203 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Union[Nullable, int]' = NullValue + value: 'typing.Optional[uint]' = None @dataclass - class NullableInt16s(ClusterAttributeDescriptor): + class DcPowerMultiplier(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000400E + return 0x00000204 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Union[Nullable, int]' = NullValue + value: 'typing.Optional[uint]' = None @dataclass - class NullableInt24s(ClusterAttributeDescriptor): + class DcPowerDivisor(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000400F + return 0x00000205 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Union[Nullable, int]' = NullValue + value: 'typing.Optional[uint]' = None @dataclass - class NullableInt32s(ClusterAttributeDescriptor): + class AcFrequency(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004010 + return 0x00000300 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Union[Nullable, int]' = NullValue + value: 'typing.Optional[uint]' = None @dataclass - class NullableInt40s(ClusterAttributeDescriptor): + class AcFrequencyMin(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004011 + return 0x00000301 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Union[Nullable, int]' = NullValue + value: 'typing.Optional[uint]' = None @dataclass - class NullableInt48s(ClusterAttributeDescriptor): + class AcFrequencyMax(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004012 + return 0x00000302 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Union[Nullable, int]' = NullValue + value: 'typing.Optional[uint]' = None @dataclass - class NullableInt56s(ClusterAttributeDescriptor): + class NeutralCurrent(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004013 + return 0x00000303 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Union[Nullable, int]' = NullValue + value: 'typing.Optional[uint]' = None @dataclass - class NullableInt64s(ClusterAttributeDescriptor): + class TotalActivePower(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004014 + return 0x00000304 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, int]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableEnum8(ClusterAttributeDescriptor): + class TotalReactivePower(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004015 + return 0x00000305 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, uint]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableEnum16(ClusterAttributeDescriptor): + class TotalApparentPower(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004016 + return 0x00000306 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Union[Nullable, uint]' = NullValue + value: 'typing.Optional[uint]' = None @dataclass - class NullableFloatSingle(ClusterAttributeDescriptor): + class Measured1stHarmonicCurrent(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004017 + return 0x00000307 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, float32]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, float32]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableFloatDouble(ClusterAttributeDescriptor): + class Measured3rdHarmonicCurrent(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004018 + return 0x00000308 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, float]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, float]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableOctetString(ClusterAttributeDescriptor): + class Measured5thHarmonicCurrent(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004019 + return 0x00000309 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, bytes]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, bytes]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableCharString(ClusterAttributeDescriptor): + class Measured7thHarmonicCurrent(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000401E + return 0x0000030A @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, str]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, str]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableEnumAttr(ClusterAttributeDescriptor): + class Measured9thHarmonicCurrent(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004024 + return 0x0000030B @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, TestCluster.Enums.SimpleEnum]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, TestCluster.Enums.SimpleEnum]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableStruct(ClusterAttributeDescriptor): + class Measured11thHarmonicCurrent(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004025 + return 0x0000030C @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, TestCluster.Structs.SimpleStruct]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, TestCluster.Structs.SimpleStruct]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableRangeRestrictedInt8u(ClusterAttributeDescriptor): + class MeasuredPhase1stHarmonicCurrent(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004026 + return 0x0000030D @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, uint]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableRangeRestrictedInt8s(ClusterAttributeDescriptor): + class MeasuredPhase3rdHarmonicCurrent(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004027 + return 0x0000030E @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, int]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableRangeRestrictedInt16u(ClusterAttributeDescriptor): + class MeasuredPhase5thHarmonicCurrent(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004028 + return 0x0000030F @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, uint]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class NullableRangeRestrictedInt16s(ClusterAttributeDescriptor): + class MeasuredPhase7thHarmonicCurrent(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00004029 + return 0x00000310 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Union[Nullable, int]' = NullValue + value: 'typing.Optional[int]' = None @dataclass - class GeneratedCommandList(ClusterAttributeDescriptor): + class MeasuredPhase9thHarmonicCurrent(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFF8 + return 0x00000311 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[int]' = None @dataclass - class AcceptedCommandList(ClusterAttributeDescriptor): + class MeasuredPhase11thHarmonicCurrent(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFF9 + return 0x00000312 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[int]' = None @dataclass - class AttributeList(ClusterAttributeDescriptor): + class AcFrequencyMultiplier(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFB + return 0x00000400 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[uint]' = None @dataclass - class FeatureMap(ClusterAttributeDescriptor): + class AcFrequencyDivisor(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFC + return 0x00000401 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'uint' = 0 + value: 'typing.Optional[uint]' = None @dataclass - class ClusterRevision(ClusterAttributeDescriptor): + class PowerMultiplier(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFD + return 0x00000402 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) - - value: 'uint' = 0 + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + value: 'typing.Optional[uint]' = None - class Events: @dataclass - class TestEvent(ClusterEvent): + class PowerDivisor(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty - def event_id(cls) -> int: - return 0x00000001 + def attribute_id(cls) -> int: + return 0x00000403 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=1, Type=uint), - ClusterObjectFieldDescriptor(Label="arg2", Tag=2, Type=TestCluster.Enums.SimpleEnum), - ClusterObjectFieldDescriptor(Label="arg3", Tag=3, Type=bool), - ClusterObjectFieldDescriptor(Label="arg4", Tag=4, Type=TestCluster.Structs.SimpleStruct), - ClusterObjectFieldDescriptor(Label="arg5", Tag=5, Type=typing.List[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor(Label="arg6", Tag=6, Type=typing.List[TestCluster.Enums.SimpleEnum]), - ]) + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - arg1: 'uint' = 0 - arg2: 'TestCluster.Enums.SimpleEnum' = 0 - arg3: 'bool' = False - arg4: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) - arg5: 'typing.List[TestCluster.Structs.SimpleStruct]' = field(default_factory=lambda: []) - arg6: 'typing.List[TestCluster.Enums.SimpleEnum]' = field(default_factory=lambda: []) + value: 'typing.Optional[uint]' = None @dataclass - class TestFabricScopedEvent(ClusterEvent): + class HarmonicCurrentMultiplier(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x050F + return 0x0B04 @ChipUtility.classproperty - def event_id(cls) -> int: - return 0x00000002 + def attribute_id(cls) -> int: + return 0x00000404 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="arg1", Tag=254, Type=uint), - ]) - - arg1: 'uint' = 0 - - -@dataclass -class Messaging(Cluster): - id: typing.ClassVar[int] = 0x0703 - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="featureMap", Tag=0x0000FFFC, Type=uint), - ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), - ]) - - generatedCommandList: 'typing.List[uint]' = None - acceptedCommandList: 'typing.List[uint]' = None - attributeList: 'typing.List[uint]' = None - featureMap: 'uint' = None - clusterRevision: 'uint' = None - - class Enums: - class EventId(IntEnum): - kMeterCoverRemoved = 0x00 - kMeterCoverClosed = 0x01 - kStrongMagneticField = 0x02 - kNoStrongMagneticField = 0x03 - kBatteryFailure = 0x04 - kLowBattery = 0x05 - kProgramMemoryError = 0x06 - kRamError = 0x07 - kNvMemoryError = 0x08 - kMeasurementSystemError = 0x09 - kWatchdogError = 0x0A - kSupplyDisconnectFailure = 0x0B - kSupplyConnectFailure = 0x0C - kMeasurmentSoftwareChanged = 0x0D - kDstEnabled = 0x0E - kDstDisabled = 0x0F - kClockAdjBackward = 0x10 - kClockAdjForward = 0x11 - kClockInvalid = 0x12 - kCommsErrorHan = 0x13 - kCommsOkHan = 0x14 - kFraudAttempt = 0x15 - kPowerLoss = 0x16 - kIncorrectProtocol = 0x17 - kUnusualHanTraffic = 0x18 - kUnexpectedClockChange = 0x19 - kCommsUsingUnauthenticatedComponent = 0x1A - kErrorRegClear = 0x1B - kAlarmRegClear = 0x1C - kUnexpectedHwReset = 0x1D - kUnexpectedProgramExecution = 0x1E - kEventLogCleared = 0x1F - kManualDisconnect = 0x20 - kManualConnect = 0x21 - kRemoteDisconnection = 0x22 - kLocalDisconnection = 0x23 - kLimitThresholdExceeded = 0x24 - kLimitThresholdOk = 0x25 - kLimitThresholdChanged = 0x26 - kMaximumDemandExceeded = 0x27 - kProfileCleared = 0x28 - kFirmwareReadyForActivation = 0x29 - kFirmwareActivated = 0x2A - kPatchFailure = 0x2B - kTouTariffActivation = 0x2C - k8x8Tariffactivated = 0x2D - kSingleTariffRateActivated = 0x2E - kAsynchronousBillingOccurred = 0x2F - kSynchronousBillingOccurred = 0x30 - kIncorrectPolarity = 0x80 - kCurrentNoVoltage = 0x81 - kUnderVoltage = 0x82 - kOverVoltage = 0x83 - kNormalVoltage = 0x84 - kPfBelowThreshold = 0x85 - kPfAboveThreshold = 0x86 - kTerminalCoverRemoved = 0x87 - kTerminalCoverClosed = 0x88 - kReverseFlow = 0xA0 - kTiltTamper = 0xA1 - kBatteryCoverRemoved = 0xA2 - kBatteryCoverClosed = 0xA3 - kExcessFlow = 0xA4 - kCreditOk = 0xC0 - kLowCredit = 0xC1 - kEmergencyCreditInUse = 0xC0 - kEmergencyCreditExhausted = 0xC1 - kZeroCreditEcNotSelected = 0xC2 - kSupplyOn = 0xC3 - kSupplyOffAarmed = 0xC4 - kSupplyOff = 0xC5 - kDiscountApplied = 0xC6 - kManufacturerSpecificA = 0xE0 - kManufacturerSpecificB = 0xE1 - kManufacturerSpecificC = 0xE2 - kManufacturerSpecificD = 0xE3 - kManufacturerSpecificE = 0xE4 - kManufacturerSpecificF = 0xE5 - kManufacturerSpecificG = 0xE6 - kManufacturerSpecificH = 0xE7 - kManufacturerSpecificI = 0xE8 - - class MessagingControlConfirmation(IntEnum): - kNotRequired = 0x00 - kRequired = 0x80 - - class MessagingControlEnhancedConfirmation(IntEnum): - kNotRequired = 0x00 - kRequired = 0x20 - - class MessagingControlImportance(IntEnum): - kLow = 0x00 - kMedium = 0x04 - kHigh = 0x08 - kCritical = 0x0C - - class MessagingControlTransmission(IntEnum): - kNormal = 0x00 - kNormalAndAnonymous = 0x01 - kAnonymous = 0x02 - kReserved = 0x03 + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + value: 'typing.Optional[int]' = None + @dataclass + class PhaseHarmonicCurrentMultiplier(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 - class Commands: - @dataclass - class DisplayMessage(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0703 - command_id: typing.ClassVar[int] = 0x0000 - is_client: typing.ClassVar[bool] = False + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000405 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="messageId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="messageControl", Tag=1, Type=uint), - ClusterObjectFieldDescriptor(Label="startTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor(Label="durationInMinutes", Tag=3, Type=uint), - ClusterObjectFieldDescriptor(Label="message", Tag=4, Type=str), - ClusterObjectFieldDescriptor(Label="optionalExtendedMessageControl", Tag=5, Type=uint), - ]) + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - messageId: 'uint' = 0 - messageControl: 'uint' = 0 - startTime: 'uint' = 0 - durationInMinutes: 'uint' = 0 - message: 'str' = "" - optionalExtendedMessageControl: 'uint' = 0 + value: 'typing.Optional[int]' = None @dataclass - class GetLastMessage(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0703 - command_id: typing.ClassVar[int] = 0x0000 - is_client: typing.ClassVar[bool] = True + class InstantaneousVoltage(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ]) + def attribute_id(cls) -> int: + return 0x00000500 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + value: 'typing.Optional[int]' = None @dataclass - class CancelMessage(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0703 - command_id: typing.ClassVar[int] = 0x0001 - is_client: typing.ClassVar[bool] = False + class InstantaneousLineCurrent(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="messageId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="messageControl", Tag=1, Type=uint), - ]) + def attribute_id(cls) -> int: + return 0x00000501 - messageId: 'uint' = 0 - messageControl: 'uint' = 0 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + + value: 'typing.Optional[uint]' = None @dataclass - class MessageConfirmation(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0703 - command_id: typing.ClassVar[int] = 0x0001 - is_client: typing.ClassVar[bool] = True + class InstantaneousActiveCurrent(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="messageId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="confirmationTime", Tag=1, Type=uint), - ClusterObjectFieldDescriptor(Label="messageConfirmationControl", Tag=2, Type=uint), - ClusterObjectFieldDescriptor(Label="messageResponse", Tag=3, Type=bytes), - ]) + def attribute_id(cls) -> int: + return 0x00000502 - messageId: 'uint' = 0 - confirmationTime: 'uint' = 0 - messageConfirmationControl: 'uint' = 0 - messageResponse: 'bytes' = b"" + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + + value: 'typing.Optional[int]' = None @dataclass - class DisplayProtectedMessage(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0703 - command_id: typing.ClassVar[int] = 0x0002 - is_client: typing.ClassVar[bool] = False + class InstantaneousReactiveCurrent(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="messageId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="messageControl", Tag=1, Type=uint), - ClusterObjectFieldDescriptor(Label="startTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor(Label="durationInMinutes", Tag=3, Type=uint), - ClusterObjectFieldDescriptor(Label="message", Tag=4, Type=str), - ClusterObjectFieldDescriptor(Label="optionalExtendedMessageControl", Tag=5, Type=uint), - ]) + def attribute_id(cls) -> int: + return 0x00000503 - messageId: 'uint' = 0 - messageControl: 'uint' = 0 - startTime: 'uint' = 0 - durationInMinutes: 'uint' = 0 - message: 'str' = "" - optionalExtendedMessageControl: 'uint' = 0 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + + value: 'typing.Optional[int]' = None @dataclass - class GetMessageCancellation(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0703 - command_id: typing.ClassVar[int] = 0x0002 - is_client: typing.ClassVar[bool] = True + class InstantaneousPower(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="earliestImplementationTime", Tag=0, Type=uint), - ]) + def attribute_id(cls) -> int: + return 0x00000504 - earliestImplementationTime: 'uint' = 0 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + + value: 'typing.Optional[int]' = None @dataclass - class CancelAllMessages(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0703 - command_id: typing.ClassVar[int] = 0x0003 - is_client: typing.ClassVar[bool] = False + class RmsVoltage(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="implementationDateTime", Tag=0, Type=uint), - ]) + def attribute_id(cls) -> int: + return 0x00000505 - implementationDateTime: 'uint' = 0 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + value: 'typing.Optional[uint]' = None - class Attributes: @dataclass - class GeneratedCommandList(ClusterAttributeDescriptor): + class RmsVoltageMin(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0703 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFF8 + return 0x00000506 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[uint]' = None @dataclass - class AcceptedCommandList(ClusterAttributeDescriptor): + class RmsVoltageMax(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0703 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFF9 + return 0x00000507 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[uint]' = None @dataclass - class AttributeList(ClusterAttributeDescriptor): + class RmsCurrent(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0703 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFB + return 0x00000508 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[uint]' = None @dataclass - class FeatureMap(ClusterAttributeDescriptor): + class RmsCurrentMin(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0703 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFC + return 0x00000509 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'uint' = 0 + value: 'typing.Optional[uint]' = None @dataclass - class ClusterRevision(ClusterAttributeDescriptor): + class RmsCurrentMax(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0703 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFD + return 0x0000050A @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) - - value: 'uint' = 0 + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + value: 'typing.Optional[uint]' = None + @dataclass + class ActivePower(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 -@dataclass -class ApplianceIdentification(Cluster): - id: typing.ClassVar[int] = 0x0B00 + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x0000050B - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="basicIdentification", Tag=0x00000000, Type=uint), - ClusterObjectFieldDescriptor(Label="companyName", Tag=0x00000010, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor(Label="companyId", Tag=0x00000011, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="brandName", Tag=0x00000012, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor(Label="brandId", Tag=0x00000013, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="model", Tag=0x00000014, Type=typing.Optional[bytes]), - ClusterObjectFieldDescriptor(Label="partNumber", Tag=0x00000015, Type=typing.Optional[bytes]), - ClusterObjectFieldDescriptor(Label="productRevision", Tag=0x00000016, Type=typing.Optional[bytes]), - ClusterObjectFieldDescriptor(Label="softwareRevision", Tag=0x00000017, Type=typing.Optional[bytes]), - ClusterObjectFieldDescriptor(Label="productTypeName", Tag=0x00000018, Type=typing.Optional[bytes]), - ClusterObjectFieldDescriptor(Label="productTypeId", Tag=0x00000019, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="cecedSpecificationVersion", Tag=0x0000001A, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="featureMap", Tag=0x0000FFFC, Type=uint), - ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), - ]) + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - basicIdentification: 'uint' = None - companyName: 'typing.Optional[str]' = None - companyId: 'typing.Optional[uint]' = None - brandName: 'typing.Optional[str]' = None - brandId: 'typing.Optional[uint]' = None - model: 'typing.Optional[bytes]' = None - partNumber: 'typing.Optional[bytes]' = None - productRevision: 'typing.Optional[bytes]' = None - softwareRevision: 'typing.Optional[bytes]' = None - productTypeName: 'typing.Optional[bytes]' = None - productTypeId: 'typing.Optional[uint]' = None - cecedSpecificationVersion: 'typing.Optional[uint]' = None - generatedCommandList: 'typing.List[uint]' = None - acceptedCommandList: 'typing.List[uint]' = None - attributeList: 'typing.List[uint]' = None - featureMap: 'uint' = None - clusterRevision: 'uint' = None + value: 'typing.Optional[int]' = None + + @dataclass + class ActivePowerMin(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x0000050C + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + value: 'typing.Optional[int]' = None - class Attributes: @dataclass - class BasicIdentification(ClusterAttributeDescriptor): + class ActivePowerMax(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B00 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000000 + return 0x0000050D @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'uint' = 0 + value: 'typing.Optional[int]' = None @dataclass - class CompanyName(ClusterAttributeDescriptor): + class ReactivePower(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B00 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000010 + return 0x0000050E @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[str]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Optional[str]' = None + value: 'typing.Optional[int]' = None @dataclass - class CompanyId(ClusterAttributeDescriptor): + class ApparentPower(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B00 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000011 + return 0x0000050F @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: @@ -36738,30 +36598,30 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'typing.Optional[uint]' = None @dataclass - class BrandName(ClusterAttributeDescriptor): + class PowerFactor(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B00 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000012 + return 0x00000510 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[str]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Optional[str]' = None + value: 'typing.Optional[int]' = None @dataclass - class BrandId(ClusterAttributeDescriptor): + class AverageRmsVoltageMeasurementPeriod(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B00 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000013 + return 0x00000511 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: @@ -36770,94 +36630,94 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'typing.Optional[uint]' = None @dataclass - class Model(ClusterAttributeDescriptor): + class AverageRmsUnderVoltageCounter(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B00 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000014 + return 0x00000513 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Optional[bytes]' = None + value: 'typing.Optional[uint]' = None @dataclass - class PartNumber(ClusterAttributeDescriptor): + class RmsExtremeOverVoltagePeriod(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B00 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000015 + return 0x00000514 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Optional[bytes]' = None + value: 'typing.Optional[uint]' = None @dataclass - class ProductRevision(ClusterAttributeDescriptor): + class RmsExtremeUnderVoltagePeriod(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B00 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000016 + return 0x00000515 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Optional[bytes]' = None + value: 'typing.Optional[uint]' = None @dataclass - class SoftwareRevision(ClusterAttributeDescriptor): + class RmsVoltageSagPeriod(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B00 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000017 + return 0x00000516 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Optional[bytes]' = None + value: 'typing.Optional[uint]' = None @dataclass - class ProductTypeName(ClusterAttributeDescriptor): + class RmsVoltageSwellPeriod(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B00 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000018 + return 0x00000517 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Optional[bytes]' = None + value: 'typing.Optional[uint]' = None @dataclass - class ProductTypeId(ClusterAttributeDescriptor): + class AcVoltageMultiplier(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B00 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000019 + return 0x00000600 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: @@ -36866,14 +36726,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'typing.Optional[uint]' = None @dataclass - class CecedSpecificationVersion(ClusterAttributeDescriptor): + class AcVoltageDivisor(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B00 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000001A + return 0x00000601 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: @@ -36882,1207 +36742,958 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'typing.Optional[uint]' = None @dataclass - class GeneratedCommandList(ClusterAttributeDescriptor): + class AcCurrentMultiplier(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B00 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFF8 + return 0x00000602 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[uint]' = None @dataclass - class AcceptedCommandList(ClusterAttributeDescriptor): + class AcCurrentDivisor(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B00 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFF9 + return 0x00000603 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[uint]' = None @dataclass - class AttributeList(ClusterAttributeDescriptor): + class AcPowerMultiplier(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B00 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFB + return 0x00000604 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[uint]' = None @dataclass - class FeatureMap(ClusterAttributeDescriptor): + class AcPowerDivisor(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B00 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFC + return 0x00000605 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'uint' = 0 + value: 'typing.Optional[uint]' = None @dataclass - class ClusterRevision(ClusterAttributeDescriptor): + class OverloadAlarmsMask(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B00 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFD + return 0x00000700 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'uint' = 0 + value: 'typing.Optional[uint]' = None + @dataclass + class VoltageOverload(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000701 -@dataclass -class MeterIdentification(Cluster): - id: typing.ClassVar[int] = 0x0B01 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="companyName", Tag=0x00000000, Type=str), - ClusterObjectFieldDescriptor(Label="meterTypeId", Tag=0x00000001, Type=uint), - ClusterObjectFieldDescriptor(Label="dataQualityId", Tag=0x00000004, Type=uint), - ClusterObjectFieldDescriptor(Label="customerName", Tag=0x00000005, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor(Label="model", Tag=0x00000006, Type=typing.Optional[bytes]), - ClusterObjectFieldDescriptor(Label="partNumber", Tag=0x00000007, Type=typing.Optional[bytes]), - ClusterObjectFieldDescriptor(Label="productRevision", Tag=0x00000008, Type=typing.Optional[bytes]), - ClusterObjectFieldDescriptor(Label="softwareRevision", Tag=0x0000000A, Type=typing.Optional[bytes]), - ClusterObjectFieldDescriptor(Label="utilityName", Tag=0x0000000B, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor(Label="pod", Tag=0x0000000C, Type=str), - ClusterObjectFieldDescriptor(Label="availablePower", Tag=0x0000000D, Type=int), - ClusterObjectFieldDescriptor(Label="powerThreshold", Tag=0x0000000E, Type=int), - ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="featureMap", Tag=0x0000FFFC, Type=uint), - ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), - ]) + value: 'typing.Optional[int]' = None - companyName: 'str' = None - meterTypeId: 'uint' = None - dataQualityId: 'uint' = None - customerName: 'typing.Optional[str]' = None - model: 'typing.Optional[bytes]' = None - partNumber: 'typing.Optional[bytes]' = None - productRevision: 'typing.Optional[bytes]' = None - softwareRevision: 'typing.Optional[bytes]' = None - utilityName: 'typing.Optional[str]' = None - pod: 'str' = None - availablePower: 'int' = None - powerThreshold: 'int' = None - generatedCommandList: 'typing.List[uint]' = None - acceptedCommandList: 'typing.List[uint]' = None - attributeList: 'typing.List[uint]' = None - featureMap: 'uint' = None - clusterRevision: 'uint' = None + @dataclass + class CurrentOverload(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000702 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + value: 'typing.Optional[int]' = None - class Attributes: @dataclass - class CompanyName(ClusterAttributeDescriptor): + class AcOverloadAlarmsMask(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B01 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000000 + return 0x00000800 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=str) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'str' = "" + value: 'typing.Optional[uint]' = None @dataclass - class MeterTypeId(ClusterAttributeDescriptor): + class AcVoltageOverload(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B01 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000001 + return 0x00000801 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'uint' = 0 + value: 'typing.Optional[int]' = None @dataclass - class DataQualityId(ClusterAttributeDescriptor): + class AcCurrentOverload(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B01 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000004 + return 0x00000802 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'uint' = 0 + value: 'typing.Optional[int]' = None @dataclass - class CustomerName(ClusterAttributeDescriptor): + class AcActivePowerOverload(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B01 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000005 + return 0x00000803 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[str]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Optional[str]' = None + value: 'typing.Optional[int]' = None @dataclass - class Model(ClusterAttributeDescriptor): + class AcReactivePowerOverload(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B01 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000006 + return 0x00000804 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Optional[bytes]' = None + value: 'typing.Optional[int]' = None @dataclass - class PartNumber(ClusterAttributeDescriptor): + class AverageRmsOverVoltage(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B01 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000007 + return 0x00000805 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Optional[bytes]' = None + value: 'typing.Optional[int]' = None @dataclass - class ProductRevision(ClusterAttributeDescriptor): + class AverageRmsUnderVoltage(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B01 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000008 + return 0x00000806 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Optional[bytes]' = None + value: 'typing.Optional[int]' = None @dataclass - class SoftwareRevision(ClusterAttributeDescriptor): + class RmsExtremeOverVoltage(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B01 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000000A + return 0x00000807 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[bytes]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Optional[bytes]' = None + value: 'typing.Optional[int]' = None @dataclass - class UtilityName(ClusterAttributeDescriptor): + class RmsExtremeUnderVoltage(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B01 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000000B + return 0x00000808 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[str]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Optional[str]' = None + value: 'typing.Optional[int]' = None @dataclass - class Pod(ClusterAttributeDescriptor): + class RmsVoltageSag(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B01 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000000C + return 0x00000809 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=str) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'str' = "" + value: 'typing.Optional[int]' = None @dataclass - class AvailablePower(ClusterAttributeDescriptor): + class RmsVoltageSwell(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B01 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000000D + return 0x0000080A @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=int) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'int' = 0 + value: 'typing.Optional[int]' = None @dataclass - class PowerThreshold(ClusterAttributeDescriptor): + class LineCurrentPhaseB(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B01 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000000E + return 0x00000901 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=int) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'int' = 0 + value: 'typing.Optional[uint]' = None @dataclass - class GeneratedCommandList(ClusterAttributeDescriptor): + class ActiveCurrentPhaseB(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B01 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFF8 + return 0x00000902 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[int]' = None @dataclass - class AcceptedCommandList(ClusterAttributeDescriptor): + class ReactiveCurrentPhaseB(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B01 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFF9 + return 0x00000903 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[int]' = None @dataclass - class AttributeList(ClusterAttributeDescriptor): + class RmsVoltagePhaseB(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B01 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFB + return 0x00000905 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[uint]' = None @dataclass - class FeatureMap(ClusterAttributeDescriptor): + class RmsVoltageMinPhaseB(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B01 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFC + return 0x00000906 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'uint' = 0 + value: 'typing.Optional[uint]' = None @dataclass - class ClusterRevision(ClusterAttributeDescriptor): + class RmsVoltageMaxPhaseB(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B01 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFD + return 0x00000907 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'uint' = 0 + value: 'typing.Optional[uint]' = None + @dataclass + class RmsCurrentPhaseB(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000908 -@dataclass -class ApplianceEventsAndAlert(Cluster): - id: typing.ClassVar[int] = 0x0B02 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="featureMap", Tag=0x0000FFFC, Type=uint), - ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), - ]) + value: 'typing.Optional[uint]' = None - generatedCommandList: 'typing.List[uint]' = None - acceptedCommandList: 'typing.List[uint]' = None - attributeList: 'typing.List[uint]' = None - featureMap: 'uint' = None - clusterRevision: 'uint' = None + @dataclass + class RmsCurrentMinPhaseB(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 - class Enums: - class EventIdentification(IntEnum): - kEndOfCycle = 0x01 - kTemperatureReached = 0x04 - kEndOfCooking = 0x05 - kSwitchingOff = 0x06 - kWrongData = 0x07 + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000909 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + value: 'typing.Optional[uint]' = None - class Commands: @dataclass - class GetAlerts(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0B02 - command_id: typing.ClassVar[int] = 0x0000 - is_client: typing.ClassVar[bool] = True + class RmsCurrentMaxPhaseB(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ]) + def attribute_id(cls) -> int: + return 0x0000090A + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + value: 'typing.Optional[uint]' = None @dataclass - class GetAlertsResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0B02 - command_id: typing.ClassVar[int] = 0x0000 - is_client: typing.ClassVar[bool] = False + class ActivePowerPhaseB(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="alertsCount", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="alertStructures", Tag=1, Type=typing.List[uint]), - ]) + def attribute_id(cls) -> int: + return 0x0000090B + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - alertsCount: 'uint' = 0 - alertStructures: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[int]' = None @dataclass - class AlertsNotification(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0B02 - command_id: typing.ClassVar[int] = 0x0001 - is_client: typing.ClassVar[bool] = False + class ActivePowerMinPhaseB(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="alertsCount", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="alertStructures", Tag=1, Type=typing.List[uint]), - ]) + def attribute_id(cls) -> int: + return 0x0000090C - alertsCount: 'uint' = 0 - alertStructures: 'typing.List[uint]' = field(default_factory=lambda: []) + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + + value: 'typing.Optional[int]' = None @dataclass - class EventsNotification(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0B02 - command_id: typing.ClassVar[int] = 0x0002 - is_client: typing.ClassVar[bool] = False + class ActivePowerMaxPhaseB(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="eventHeader", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="eventId", Tag=1, Type=ApplianceEventsAndAlert.Enums.EventIdentification), - ]) + def attribute_id(cls) -> int: + return 0x0000090D - eventHeader: 'uint' = 0 - eventId: 'ApplianceEventsAndAlert.Enums.EventIdentification' = 0 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + value: 'typing.Optional[int]' = None - class Attributes: @dataclass - class GeneratedCommandList(ClusterAttributeDescriptor): + class ReactivePowerPhaseB(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B02 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFF8 + return 0x0000090E @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[int]' = None @dataclass - class AcceptedCommandList(ClusterAttributeDescriptor): + class ApparentPowerPhaseB(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B02 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFF9 + return 0x0000090F @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[uint]' = None @dataclass - class AttributeList(ClusterAttributeDescriptor): + class PowerFactorPhaseB(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B02 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFB + return 0x00000910 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[int]' = None @dataclass - class FeatureMap(ClusterAttributeDescriptor): + class AverageRmsVoltageMeasurementPeriodPhaseB(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B02 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFC + return 0x00000911 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'uint' = 0 + value: 'typing.Optional[uint]' = None @dataclass - class ClusterRevision(ClusterAttributeDescriptor): + class AverageRmsOverVoltageCounterPhaseB(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B02 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFD + return 0x00000912 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'uint' = 0 + value: 'typing.Optional[uint]' = None + @dataclass + class AverageRmsUnderVoltageCounterPhaseB(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000913 -@dataclass -class ApplianceStatistics(Cluster): - id: typing.ClassVar[int] = 0x0B03 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="logMaxSize", Tag=0x00000000, Type=uint), - ClusterObjectFieldDescriptor(Label="logQueueMaxSize", Tag=0x00000001, Type=uint), - ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="featureMap", Tag=0x0000FFFC, Type=uint), - ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), - ]) + value: 'typing.Optional[uint]' = None - logMaxSize: 'uint' = None - logQueueMaxSize: 'uint' = None - generatedCommandList: 'typing.List[uint]' = None - acceptedCommandList: 'typing.List[uint]' = None - attributeList: 'typing.List[uint]' = None - featureMap: 'uint' = None - clusterRevision: 'uint' = None + @dataclass + class RmsExtremeOverVoltagePeriodPhaseB(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000914 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + value: 'typing.Optional[uint]' = None - class Commands: @dataclass - class LogNotification(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0B03 - command_id: typing.ClassVar[int] = 0x0000 - is_client: typing.ClassVar[bool] = False + class RmsExtremeUnderVoltagePeriodPhaseB(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="timeStamp", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="logId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor(Label="logLength", Tag=2, Type=uint), - ClusterObjectFieldDescriptor(Label="logPayload", Tag=3, Type=typing.List[uint]), - ]) + def attribute_id(cls) -> int: + return 0x00000915 - timeStamp: 'uint' = 0 - logId: 'uint' = 0 - logLength: 'uint' = 0 - logPayload: 'typing.List[uint]' = field(default_factory=lambda: []) + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + + value: 'typing.Optional[uint]' = None @dataclass - class LogRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0B03 - command_id: typing.ClassVar[int] = 0x0000 - is_client: typing.ClassVar[bool] = True + class RmsVoltageSagPeriodPhaseB(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="logId", Tag=0, Type=uint), - ]) + def attribute_id(cls) -> int: + return 0x00000916 - logId: 'uint' = 0 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + + value: 'typing.Optional[uint]' = None @dataclass - class LogResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0B03 - command_id: typing.ClassVar[int] = 0x0001 - is_client: typing.ClassVar[bool] = False + class RmsVoltageSwellPeriodPhaseB(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="timeStamp", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="logId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor(Label="logLength", Tag=2, Type=uint), - ClusterObjectFieldDescriptor(Label="logPayload", Tag=3, Type=typing.List[uint]), - ]) + def attribute_id(cls) -> int: + return 0x00000917 - timeStamp: 'uint' = 0 - logId: 'uint' = 0 - logLength: 'uint' = 0 - logPayload: 'typing.List[uint]' = field(default_factory=lambda: []) + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + + value: 'typing.Optional[uint]' = None @dataclass - class LogQueueRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0B03 - command_id: typing.ClassVar[int] = 0x0001 - is_client: typing.ClassVar[bool] = True + class LineCurrentPhaseC(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ]) + def attribute_id(cls) -> int: + return 0x00000A01 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + value: 'typing.Optional[uint]' = None @dataclass - class LogQueueResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0B03 - command_id: typing.ClassVar[int] = 0x0002 - is_client: typing.ClassVar[bool] = False + class ActiveCurrentPhaseC(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000A02 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="logQueueSize", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="logIds", Tag=1, Type=typing.List[uint]), - ]) + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - logQueueSize: 'uint' = 0 - logIds: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[int]' = None @dataclass - class StatisticsAvailable(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0B03 - command_id: typing.ClassVar[int] = 0x0003 - is_client: typing.ClassVar[bool] = False + class ReactiveCurrentPhaseC(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="logQueueSize", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="logIds", Tag=1, Type=typing.List[uint]), - ]) + def attribute_id(cls) -> int: + return 0x00000A03 - logQueueSize: 'uint' = 0 - logIds: 'typing.List[uint]' = field(default_factory=lambda: []) + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + value: 'typing.Optional[int]' = None - class Attributes: @dataclass - class LogMaxSize(ClusterAttributeDescriptor): + class RmsVoltagePhaseC(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B03 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000000 + return 0x00000A05 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'uint' = 0 + value: 'typing.Optional[uint]' = None @dataclass - class LogQueueMaxSize(ClusterAttributeDescriptor): + class RmsVoltageMinPhaseC(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B03 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000001 + return 0x00000A06 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'uint' = 0 + value: 'typing.Optional[uint]' = None @dataclass - class GeneratedCommandList(ClusterAttributeDescriptor): + class RmsVoltageMaxPhaseC(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B03 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFF8 + return 0x00000A07 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[uint]' = None @dataclass - class AcceptedCommandList(ClusterAttributeDescriptor): + class RmsCurrentPhaseC(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B03 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFF9 + return 0x00000A08 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[uint]' = None @dataclass - class AttributeList(ClusterAttributeDescriptor): + class RmsCurrentMinPhaseC(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B03 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFB + return 0x00000A09 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[uint]' = None @dataclass - class FeatureMap(ClusterAttributeDescriptor): + class RmsCurrentMaxPhaseC(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B03 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFC + return 0x00000A0A @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'uint' = 0 + value: 'typing.Optional[uint]' = None @dataclass - class ClusterRevision(ClusterAttributeDescriptor): + class ActivePowerPhaseC(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B03 + return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000FFFD + return 0x00000A0B @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) - - value: 'uint' = 0 + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + value: 'typing.Optional[int]' = None + @dataclass + class ActivePowerMinPhaseC(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 -@dataclass -class ElectricalMeasurement(Cluster): - id: typing.ClassVar[int] = 0x0B04 + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000A0C - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="measurementType", Tag=0x00000000, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="dcVoltage", Tag=0x00000100, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="dcVoltageMin", Tag=0x00000101, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="dcVoltageMax", Tag=0x00000102, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="dcCurrent", Tag=0x00000103, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="dcCurrentMin", Tag=0x00000104, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="dcCurrentMax", Tag=0x00000105, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="dcPower", Tag=0x00000106, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="dcPowerMin", Tag=0x00000107, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="dcPowerMax", Tag=0x00000108, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="dcVoltageMultiplier", Tag=0x00000200, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="dcVoltageDivisor", Tag=0x00000201, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="dcCurrentMultiplier", Tag=0x00000202, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="dcCurrentDivisor", Tag=0x00000203, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="dcPowerMultiplier", Tag=0x00000204, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="dcPowerDivisor", Tag=0x00000205, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="acFrequency", Tag=0x00000300, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="acFrequencyMin", Tag=0x00000301, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="acFrequencyMax", Tag=0x00000302, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="neutralCurrent", Tag=0x00000303, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="totalActivePower", Tag=0x00000304, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="totalReactivePower", Tag=0x00000305, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="totalApparentPower", Tag=0x00000306, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="measured1stHarmonicCurrent", Tag=0x00000307, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="measured3rdHarmonicCurrent", Tag=0x00000308, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="measured5thHarmonicCurrent", Tag=0x00000309, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="measured7thHarmonicCurrent", Tag=0x0000030A, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="measured9thHarmonicCurrent", Tag=0x0000030B, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="measured11thHarmonicCurrent", Tag=0x0000030C, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="measuredPhase1stHarmonicCurrent", Tag=0x0000030D, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="measuredPhase3rdHarmonicCurrent", Tag=0x0000030E, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="measuredPhase5thHarmonicCurrent", Tag=0x0000030F, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="measuredPhase7thHarmonicCurrent", Tag=0x00000310, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="measuredPhase9thHarmonicCurrent", Tag=0x00000311, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="measuredPhase11thHarmonicCurrent", Tag=0x00000312, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="acFrequencyMultiplier", Tag=0x00000400, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="acFrequencyDivisor", Tag=0x00000401, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="powerMultiplier", Tag=0x00000402, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="powerDivisor", Tag=0x00000403, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="harmonicCurrentMultiplier", Tag=0x00000404, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="phaseHarmonicCurrentMultiplier", Tag=0x00000405, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="instantaneousVoltage", Tag=0x00000500, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="instantaneousLineCurrent", Tag=0x00000501, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="instantaneousActiveCurrent", Tag=0x00000502, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="instantaneousReactiveCurrent", Tag=0x00000503, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="instantaneousPower", Tag=0x00000504, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="rmsVoltage", Tag=0x00000505, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsVoltageMin", Tag=0x00000506, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsVoltageMax", Tag=0x00000507, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsCurrent", Tag=0x00000508, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsCurrentMin", Tag=0x00000509, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsCurrentMax", Tag=0x0000050A, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="activePower", Tag=0x0000050B, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="activePowerMin", Tag=0x0000050C, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="activePowerMax", Tag=0x0000050D, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="reactivePower", Tag=0x0000050E, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="apparentPower", Tag=0x0000050F, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="powerFactor", Tag=0x00000510, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="averageRmsVoltageMeasurementPeriod", Tag=0x00000511, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="averageRmsUnderVoltageCounter", Tag=0x00000513, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsExtremeOverVoltagePeriod", Tag=0x00000514, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsExtremeUnderVoltagePeriod", Tag=0x00000515, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsVoltageSagPeriod", Tag=0x00000516, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsVoltageSwellPeriod", Tag=0x00000517, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="acVoltageMultiplier", Tag=0x00000600, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="acVoltageDivisor", Tag=0x00000601, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="acCurrentMultiplier", Tag=0x00000602, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="acCurrentDivisor", Tag=0x00000603, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="acPowerMultiplier", Tag=0x00000604, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="acPowerDivisor", Tag=0x00000605, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="overloadAlarmsMask", Tag=0x00000700, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="voltageOverload", Tag=0x00000701, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="currentOverload", Tag=0x00000702, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="acOverloadAlarmsMask", Tag=0x00000800, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="acVoltageOverload", Tag=0x00000801, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="acCurrentOverload", Tag=0x00000802, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="acActivePowerOverload", Tag=0x00000803, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="acReactivePowerOverload", Tag=0x00000804, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="averageRmsOverVoltage", Tag=0x00000805, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="averageRmsUnderVoltage", Tag=0x00000806, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="rmsExtremeOverVoltage", Tag=0x00000807, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="rmsExtremeUnderVoltage", Tag=0x00000808, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="rmsVoltageSag", Tag=0x00000809, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="rmsVoltageSwell", Tag=0x0000080A, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="lineCurrentPhaseB", Tag=0x00000901, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="activeCurrentPhaseB", Tag=0x00000902, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="reactiveCurrentPhaseB", Tag=0x00000903, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="rmsVoltagePhaseB", Tag=0x00000905, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsVoltageMinPhaseB", Tag=0x00000906, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsVoltageMaxPhaseB", Tag=0x00000907, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsCurrentPhaseB", Tag=0x00000908, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsCurrentMinPhaseB", Tag=0x00000909, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsCurrentMaxPhaseB", Tag=0x0000090A, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="activePowerPhaseB", Tag=0x0000090B, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="activePowerMinPhaseB", Tag=0x0000090C, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="activePowerMaxPhaseB", Tag=0x0000090D, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="reactivePowerPhaseB", Tag=0x0000090E, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="apparentPowerPhaseB", Tag=0x0000090F, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="powerFactorPhaseB", Tag=0x00000910, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="averageRmsVoltageMeasurementPeriodPhaseB", Tag=0x00000911, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="averageRmsOverVoltageCounterPhaseB", Tag=0x00000912, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="averageRmsUnderVoltageCounterPhaseB", Tag=0x00000913, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsExtremeOverVoltagePeriodPhaseB", Tag=0x00000914, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsExtremeUnderVoltagePeriodPhaseB", Tag=0x00000915, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsVoltageSagPeriodPhaseB", Tag=0x00000916, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsVoltageSwellPeriodPhaseB", Tag=0x00000917, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="lineCurrentPhaseC", Tag=0x00000A01, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="activeCurrentPhaseC", Tag=0x00000A02, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="reactiveCurrentPhaseC", Tag=0x00000A03, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="rmsVoltagePhaseC", Tag=0x00000A05, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsVoltageMinPhaseC", Tag=0x00000A06, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsVoltageMaxPhaseC", Tag=0x00000A07, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsCurrentPhaseC", Tag=0x00000A08, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsCurrentMinPhaseC", Tag=0x00000A09, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsCurrentMaxPhaseC", Tag=0x00000A0A, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="activePowerPhaseC", Tag=0x00000A0B, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="activePowerMinPhaseC", Tag=0x00000A0C, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="activePowerMaxPhaseC", Tag=0x00000A0D, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="reactivePowerPhaseC", Tag=0x00000A0E, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="apparentPowerPhaseC", Tag=0x00000A0F, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="powerFactorPhaseC", Tag=0x00000A10, Type=typing.Optional[int]), - ClusterObjectFieldDescriptor(Label="averageRmsVoltageMeasurementPeriodPhaseC", Tag=0x00000A11, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="averageRmsOverVoltageCounterPhaseC", Tag=0x00000A12, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="averageRmsUnderVoltageCounterPhaseC", Tag=0x00000A13, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsExtremeOverVoltagePeriodPhaseC", Tag=0x00000A14, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsExtremeUnderVoltagePeriodPhaseC", Tag=0x00000A15, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsVoltageSagPeriodPhaseC", Tag=0x00000A16, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="rmsVoltageSwellPeriodPhaseC", Tag=0x00000A17, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="featureMap", Tag=0x0000FFFC, Type=uint), - ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), - ]) + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - measurementType: 'typing.Optional[uint]' = None - dcVoltage: 'typing.Optional[int]' = None - dcVoltageMin: 'typing.Optional[int]' = None - dcVoltageMax: 'typing.Optional[int]' = None - dcCurrent: 'typing.Optional[int]' = None - dcCurrentMin: 'typing.Optional[int]' = None - dcCurrentMax: 'typing.Optional[int]' = None - dcPower: 'typing.Optional[int]' = None - dcPowerMin: 'typing.Optional[int]' = None - dcPowerMax: 'typing.Optional[int]' = None - dcVoltageMultiplier: 'typing.Optional[uint]' = None - dcVoltageDivisor: 'typing.Optional[uint]' = None - dcCurrentMultiplier: 'typing.Optional[uint]' = None - dcCurrentDivisor: 'typing.Optional[uint]' = None - dcPowerMultiplier: 'typing.Optional[uint]' = None - dcPowerDivisor: 'typing.Optional[uint]' = None - acFrequency: 'typing.Optional[uint]' = None - acFrequencyMin: 'typing.Optional[uint]' = None - acFrequencyMax: 'typing.Optional[uint]' = None - neutralCurrent: 'typing.Optional[uint]' = None - totalActivePower: 'typing.Optional[int]' = None - totalReactivePower: 'typing.Optional[int]' = None - totalApparentPower: 'typing.Optional[uint]' = None - measured1stHarmonicCurrent: 'typing.Optional[int]' = None - measured3rdHarmonicCurrent: 'typing.Optional[int]' = None - measured5thHarmonicCurrent: 'typing.Optional[int]' = None - measured7thHarmonicCurrent: 'typing.Optional[int]' = None - measured9thHarmonicCurrent: 'typing.Optional[int]' = None - measured11thHarmonicCurrent: 'typing.Optional[int]' = None - measuredPhase1stHarmonicCurrent: 'typing.Optional[int]' = None - measuredPhase3rdHarmonicCurrent: 'typing.Optional[int]' = None - measuredPhase5thHarmonicCurrent: 'typing.Optional[int]' = None - measuredPhase7thHarmonicCurrent: 'typing.Optional[int]' = None - measuredPhase9thHarmonicCurrent: 'typing.Optional[int]' = None - measuredPhase11thHarmonicCurrent: 'typing.Optional[int]' = None - acFrequencyMultiplier: 'typing.Optional[uint]' = None - acFrequencyDivisor: 'typing.Optional[uint]' = None - powerMultiplier: 'typing.Optional[uint]' = None - powerDivisor: 'typing.Optional[uint]' = None - harmonicCurrentMultiplier: 'typing.Optional[int]' = None - phaseHarmonicCurrentMultiplier: 'typing.Optional[int]' = None - instantaneousVoltage: 'typing.Optional[int]' = None - instantaneousLineCurrent: 'typing.Optional[uint]' = None - instantaneousActiveCurrent: 'typing.Optional[int]' = None - instantaneousReactiveCurrent: 'typing.Optional[int]' = None - instantaneousPower: 'typing.Optional[int]' = None - rmsVoltage: 'typing.Optional[uint]' = None - rmsVoltageMin: 'typing.Optional[uint]' = None - rmsVoltageMax: 'typing.Optional[uint]' = None - rmsCurrent: 'typing.Optional[uint]' = None - rmsCurrentMin: 'typing.Optional[uint]' = None - rmsCurrentMax: 'typing.Optional[uint]' = None - activePower: 'typing.Optional[int]' = None - activePowerMin: 'typing.Optional[int]' = None - activePowerMax: 'typing.Optional[int]' = None - reactivePower: 'typing.Optional[int]' = None - apparentPower: 'typing.Optional[uint]' = None - powerFactor: 'typing.Optional[int]' = None - averageRmsVoltageMeasurementPeriod: 'typing.Optional[uint]' = None - averageRmsUnderVoltageCounter: 'typing.Optional[uint]' = None - rmsExtremeOverVoltagePeriod: 'typing.Optional[uint]' = None - rmsExtremeUnderVoltagePeriod: 'typing.Optional[uint]' = None - rmsVoltageSagPeriod: 'typing.Optional[uint]' = None - rmsVoltageSwellPeriod: 'typing.Optional[uint]' = None - acVoltageMultiplier: 'typing.Optional[uint]' = None - acVoltageDivisor: 'typing.Optional[uint]' = None - acCurrentMultiplier: 'typing.Optional[uint]' = None - acCurrentDivisor: 'typing.Optional[uint]' = None - acPowerMultiplier: 'typing.Optional[uint]' = None - acPowerDivisor: 'typing.Optional[uint]' = None - overloadAlarmsMask: 'typing.Optional[uint]' = None - voltageOverload: 'typing.Optional[int]' = None - currentOverload: 'typing.Optional[int]' = None - acOverloadAlarmsMask: 'typing.Optional[uint]' = None - acVoltageOverload: 'typing.Optional[int]' = None - acCurrentOverload: 'typing.Optional[int]' = None - acActivePowerOverload: 'typing.Optional[int]' = None - acReactivePowerOverload: 'typing.Optional[int]' = None - averageRmsOverVoltage: 'typing.Optional[int]' = None - averageRmsUnderVoltage: 'typing.Optional[int]' = None - rmsExtremeOverVoltage: 'typing.Optional[int]' = None - rmsExtremeUnderVoltage: 'typing.Optional[int]' = None - rmsVoltageSag: 'typing.Optional[int]' = None - rmsVoltageSwell: 'typing.Optional[int]' = None - lineCurrentPhaseB: 'typing.Optional[uint]' = None - activeCurrentPhaseB: 'typing.Optional[int]' = None - reactiveCurrentPhaseB: 'typing.Optional[int]' = None - rmsVoltagePhaseB: 'typing.Optional[uint]' = None - rmsVoltageMinPhaseB: 'typing.Optional[uint]' = None - rmsVoltageMaxPhaseB: 'typing.Optional[uint]' = None - rmsCurrentPhaseB: 'typing.Optional[uint]' = None - rmsCurrentMinPhaseB: 'typing.Optional[uint]' = None - rmsCurrentMaxPhaseB: 'typing.Optional[uint]' = None - activePowerPhaseB: 'typing.Optional[int]' = None - activePowerMinPhaseB: 'typing.Optional[int]' = None - activePowerMaxPhaseB: 'typing.Optional[int]' = None - reactivePowerPhaseB: 'typing.Optional[int]' = None - apparentPowerPhaseB: 'typing.Optional[uint]' = None - powerFactorPhaseB: 'typing.Optional[int]' = None - averageRmsVoltageMeasurementPeriodPhaseB: 'typing.Optional[uint]' = None - averageRmsOverVoltageCounterPhaseB: 'typing.Optional[uint]' = None - averageRmsUnderVoltageCounterPhaseB: 'typing.Optional[uint]' = None - rmsExtremeOverVoltagePeriodPhaseB: 'typing.Optional[uint]' = None - rmsExtremeUnderVoltagePeriodPhaseB: 'typing.Optional[uint]' = None - rmsVoltageSagPeriodPhaseB: 'typing.Optional[uint]' = None - rmsVoltageSwellPeriodPhaseB: 'typing.Optional[uint]' = None - lineCurrentPhaseC: 'typing.Optional[uint]' = None - activeCurrentPhaseC: 'typing.Optional[int]' = None - reactiveCurrentPhaseC: 'typing.Optional[int]' = None - rmsVoltagePhaseC: 'typing.Optional[uint]' = None - rmsVoltageMinPhaseC: 'typing.Optional[uint]' = None - rmsVoltageMaxPhaseC: 'typing.Optional[uint]' = None - rmsCurrentPhaseC: 'typing.Optional[uint]' = None - rmsCurrentMinPhaseC: 'typing.Optional[uint]' = None - rmsCurrentMaxPhaseC: 'typing.Optional[uint]' = None - activePowerPhaseC: 'typing.Optional[int]' = None - activePowerMinPhaseC: 'typing.Optional[int]' = None - activePowerMaxPhaseC: 'typing.Optional[int]' = None - reactivePowerPhaseC: 'typing.Optional[int]' = None - apparentPowerPhaseC: 'typing.Optional[uint]' = None - powerFactorPhaseC: 'typing.Optional[int]' = None - averageRmsVoltageMeasurementPeriodPhaseC: 'typing.Optional[uint]' = None - averageRmsOverVoltageCounterPhaseC: 'typing.Optional[uint]' = None - averageRmsUnderVoltageCounterPhaseC: 'typing.Optional[uint]' = None - rmsExtremeOverVoltagePeriodPhaseC: 'typing.Optional[uint]' = None - rmsExtremeUnderVoltagePeriodPhaseC: 'typing.Optional[uint]' = None - rmsVoltageSagPeriodPhaseC: 'typing.Optional[uint]' = None - rmsVoltageSwellPeriodPhaseC: 'typing.Optional[uint]' = None - generatedCommandList: 'typing.List[uint]' = None - acceptedCommandList: 'typing.List[uint]' = None - attributeList: 'typing.List[uint]' = None - featureMap: 'uint' = None - clusterRevision: 'uint' = None + value: 'typing.Optional[int]' = None + @dataclass + class ActivePowerMaxPhaseC(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000A0D + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + + value: 'typing.Optional[int]' = None - class Commands: @dataclass - class GetProfileInfoResponseCommand(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0B04 - command_id: typing.ClassVar[int] = 0x0000 - is_client: typing.ClassVar[bool] = False + class ReactivePowerPhaseC(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="profileCount", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="profileIntervalPeriod", Tag=1, Type=uint), - ClusterObjectFieldDescriptor(Label="maxNumberOfIntervals", Tag=2, Type=uint), - ClusterObjectFieldDescriptor(Label="listOfAttributes", Tag=3, Type=typing.List[uint]), - ]) + def attribute_id(cls) -> int: + return 0x00000A0E - profileCount: 'uint' = 0 - profileIntervalPeriod: 'uint' = 0 - maxNumberOfIntervals: 'uint' = 0 - listOfAttributes: 'typing.List[uint]' = field(default_factory=lambda: []) + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + + value: 'typing.Optional[int]' = None @dataclass - class GetProfileInfoCommand(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0B04 - command_id: typing.ClassVar[int] = 0x0000 - is_client: typing.ClassVar[bool] = True + class ApparentPowerPhaseC(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ]) + def attribute_id(cls) -> int: + return 0x00000A0F + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + value: 'typing.Optional[uint]' = None @dataclass - class GetMeasurementProfileResponseCommand(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0B04 - command_id: typing.ClassVar[int] = 0x0001 - is_client: typing.ClassVar[bool] = False + class PowerFactorPhaseC(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000A10 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + + value: 'typing.Optional[int]' = None + + @dataclass + class AverageRmsVoltageMeasurementPeriodPhaseC(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000A11 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + + value: 'typing.Optional[uint]' = None + + @dataclass + class AverageRmsOverVoltageCounterPhaseC(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000A12 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + + value: 'typing.Optional[uint]' = None + + @dataclass + class AverageRmsUnderVoltageCounterPhaseC(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000A13 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="startTime", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="status", Tag=1, Type=uint), - ClusterObjectFieldDescriptor(Label="profileIntervalPeriod", Tag=2, Type=uint), - ClusterObjectFieldDescriptor(Label="numberOfIntervalsDelivered", Tag=3, Type=uint), - ClusterObjectFieldDescriptor(Label="attributeId", Tag=4, Type=uint), - ClusterObjectFieldDescriptor(Label="intervals", Tag=5, Type=typing.List[uint]), - ]) + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - startTime: 'uint' = 0 - status: 'uint' = 0 - profileIntervalPeriod: 'uint' = 0 - numberOfIntervalsDelivered: 'uint' = 0 - attributeId: 'uint' = 0 - intervals: 'typing.List[uint]' = field(default_factory=lambda: []) + value: 'typing.Optional[uint]' = None @dataclass - class GetMeasurementProfileCommand(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0B04 - command_id: typing.ClassVar[int] = 0x0001 - is_client: typing.ClassVar[bool] = True + class RmsExtremeOverVoltagePeriodPhaseC(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x0B04 @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="attributeId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="startTime", Tag=1, Type=uint), - ClusterObjectFieldDescriptor(Label="numberOfIntervals", Tag=2, Type=uint), - ]) + def attribute_id(cls) -> int: + return 0x00000A14 - attributeId: 'uint' = 0 - startTime: 'uint' = 0 - numberOfIntervals: 'uint' = 0 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + value: 'typing.Optional[uint]' = None - class Attributes: @dataclass - class MeasurementType(ClusterAttributeDescriptor): + class RmsExtremeUnderVoltagePeriodPhaseC(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000000 + return 0x00000A15 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: @@ -38091,2042 +37702,2382 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'typing.Optional[uint]' = None @dataclass - class DcVoltage(ClusterAttributeDescriptor): + class RmsVoltageSagPeriodPhaseC(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000100 + return 0x00000A16 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Optional[int]' = None + value: 'typing.Optional[uint]' = None @dataclass - class DcVoltageMin(ClusterAttributeDescriptor): + class RmsVoltageSwellPeriodPhaseC(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000101 + return 0x00000A17 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Optional[int]' = None + value: 'typing.Optional[uint]' = None @dataclass - class DcVoltageMax(ClusterAttributeDescriptor): + class GeneratedCommandList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000102 + return 0x0000FFF8 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - value: 'typing.Optional[int]' = None + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class DcCurrent(ClusterAttributeDescriptor): + class AcceptedCommandList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000103 + return 0x0000FFF9 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - value: 'typing.Optional[int]' = None + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class DcCurrentMin(ClusterAttributeDescriptor): + class AttributeList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000104 + return 0x0000FFFB @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - value: 'typing.Optional[int]' = None + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class DcCurrentMax(ClusterAttributeDescriptor): + class FeatureMap(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000105 + return 0x0000FFFC @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[int]' = None + value: 'uint' = 0 @dataclass - class DcPower(ClusterAttributeDescriptor): + class ClusterRevision(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: return 0x0B04 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000106 + return 0x0000FFFD + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=uint) + + value: 'uint' = 0 + + + +@dataclass +class TestCluster(Cluster): + id: typing.ClassVar[int] = 0xFFF1FC05 + + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="boolean", Tag=0x00000000, Type=bool), + ClusterObjectFieldDescriptor(Label="bitmap8", Tag=0x00000001, Type=uint), + ClusterObjectFieldDescriptor(Label="bitmap16", Tag=0x00000002, Type=uint), + ClusterObjectFieldDescriptor(Label="bitmap32", Tag=0x00000003, Type=uint), + ClusterObjectFieldDescriptor(Label="bitmap64", Tag=0x00000004, Type=uint), + ClusterObjectFieldDescriptor(Label="int8u", Tag=0x00000005, Type=uint), + ClusterObjectFieldDescriptor(Label="int16u", Tag=0x00000006, Type=uint), + ClusterObjectFieldDescriptor(Label="int24u", Tag=0x00000007, Type=uint), + ClusterObjectFieldDescriptor(Label="int32u", Tag=0x00000008, Type=uint), + ClusterObjectFieldDescriptor(Label="int40u", Tag=0x00000009, Type=uint), + ClusterObjectFieldDescriptor(Label="int48u", Tag=0x0000000A, Type=uint), + ClusterObjectFieldDescriptor(Label="int56u", Tag=0x0000000B, Type=uint), + ClusterObjectFieldDescriptor(Label="int64u", Tag=0x0000000C, Type=uint), + ClusterObjectFieldDescriptor(Label="int8s", Tag=0x0000000D, Type=int), + ClusterObjectFieldDescriptor(Label="int16s", Tag=0x0000000E, Type=int), + ClusterObjectFieldDescriptor(Label="int24s", Tag=0x0000000F, Type=int), + ClusterObjectFieldDescriptor(Label="int32s", Tag=0x00000010, Type=int), + ClusterObjectFieldDescriptor(Label="int40s", Tag=0x00000011, Type=int), + ClusterObjectFieldDescriptor(Label="int48s", Tag=0x00000012, Type=int), + ClusterObjectFieldDescriptor(Label="int56s", Tag=0x00000013, Type=int), + ClusterObjectFieldDescriptor(Label="int64s", Tag=0x00000014, Type=int), + ClusterObjectFieldDescriptor(Label="enum8", Tag=0x00000015, Type=uint), + ClusterObjectFieldDescriptor(Label="enum16", Tag=0x00000016, Type=uint), + ClusterObjectFieldDescriptor(Label="floatSingle", Tag=0x00000017, Type=float32), + ClusterObjectFieldDescriptor(Label="floatDouble", Tag=0x00000018, Type=float), + ClusterObjectFieldDescriptor(Label="octetString", Tag=0x00000019, Type=bytes), + ClusterObjectFieldDescriptor(Label="listInt8u", Tag=0x0000001A, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="listOctetString", Tag=0x0000001B, Type=typing.List[bytes]), + ClusterObjectFieldDescriptor(Label="listStructOctetString", Tag=0x0000001C, Type=typing.List[TestCluster.Structs.TestListStructOctet]), + ClusterObjectFieldDescriptor(Label="longOctetString", Tag=0x0000001D, Type=bytes), + ClusterObjectFieldDescriptor(Label="charString", Tag=0x0000001E, Type=str), + ClusterObjectFieldDescriptor(Label="longCharString", Tag=0x0000001F, Type=str), + ClusterObjectFieldDescriptor(Label="epochUs", Tag=0x00000020, Type=uint), + ClusterObjectFieldDescriptor(Label="epochS", Tag=0x00000021, Type=uint), + ClusterObjectFieldDescriptor(Label="vendorId", Tag=0x00000022, Type=uint), + ClusterObjectFieldDescriptor(Label="listNullablesAndOptionalsStruct", Tag=0x00000023, Type=typing.List[TestCluster.Structs.NullablesAndOptionalsStruct]), + ClusterObjectFieldDescriptor(Label="enumAttr", Tag=0x00000024, Type=TestCluster.Enums.SimpleEnum), + ClusterObjectFieldDescriptor(Label="structAttr", Tag=0x00000025, Type=TestCluster.Structs.SimpleStruct), + ClusterObjectFieldDescriptor(Label="rangeRestrictedInt8u", Tag=0x00000026, Type=uint), + ClusterObjectFieldDescriptor(Label="rangeRestrictedInt8s", Tag=0x00000027, Type=int), + ClusterObjectFieldDescriptor(Label="rangeRestrictedInt16u", Tag=0x00000028, Type=uint), + ClusterObjectFieldDescriptor(Label="rangeRestrictedInt16s", Tag=0x00000029, Type=int), + ClusterObjectFieldDescriptor(Label="listLongOctetString", Tag=0x0000002A, Type=typing.List[bytes]), + ClusterObjectFieldDescriptor(Label="listFabricScoped", Tag=0x0000002B, Type=typing.List[TestCluster.Structs.TestFabricScoped]), + ClusterObjectFieldDescriptor(Label="timedWriteBoolean", Tag=0x00000030, Type=bool), + ClusterObjectFieldDescriptor(Label="generalErrorBoolean", Tag=0x00000031, Type=bool), + ClusterObjectFieldDescriptor(Label="clusterErrorBoolean", Tag=0x00000032, Type=bool), + ClusterObjectFieldDescriptor(Label="unsupported", Tag=0x000000FF, Type=typing.Optional[bool]), + ClusterObjectFieldDescriptor(Label="nullableBoolean", Tag=0x00004000, Type=typing.Union[Nullable, bool]), + ClusterObjectFieldDescriptor(Label="nullableBitmap8", Tag=0x00004001, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableBitmap16", Tag=0x00004002, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableBitmap32", Tag=0x00004003, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableBitmap64", Tag=0x00004004, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableInt8u", Tag=0x00004005, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableInt16u", Tag=0x00004006, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableInt24u", Tag=0x00004007, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableInt32u", Tag=0x00004008, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableInt40u", Tag=0x00004009, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableInt48u", Tag=0x0000400A, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableInt56u", Tag=0x0000400B, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableInt64u", Tag=0x0000400C, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableInt8s", Tag=0x0000400D, Type=typing.Union[Nullable, int]), + ClusterObjectFieldDescriptor(Label="nullableInt16s", Tag=0x0000400E, Type=typing.Union[Nullable, int]), + ClusterObjectFieldDescriptor(Label="nullableInt24s", Tag=0x0000400F, Type=typing.Union[Nullable, int]), + ClusterObjectFieldDescriptor(Label="nullableInt32s", Tag=0x00004010, Type=typing.Union[Nullable, int]), + ClusterObjectFieldDescriptor(Label="nullableInt40s", Tag=0x00004011, Type=typing.Union[Nullable, int]), + ClusterObjectFieldDescriptor(Label="nullableInt48s", Tag=0x00004012, Type=typing.Union[Nullable, int]), + ClusterObjectFieldDescriptor(Label="nullableInt56s", Tag=0x00004013, Type=typing.Union[Nullable, int]), + ClusterObjectFieldDescriptor(Label="nullableInt64s", Tag=0x00004014, Type=typing.Union[Nullable, int]), + ClusterObjectFieldDescriptor(Label="nullableEnum8", Tag=0x00004015, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableEnum16", Tag=0x00004016, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableFloatSingle", Tag=0x00004017, Type=typing.Union[Nullable, float32]), + ClusterObjectFieldDescriptor(Label="nullableFloatDouble", Tag=0x00004018, Type=typing.Union[Nullable, float]), + ClusterObjectFieldDescriptor(Label="nullableOctetString", Tag=0x00004019, Type=typing.Union[Nullable, bytes]), + ClusterObjectFieldDescriptor(Label="nullableCharString", Tag=0x0000401E, Type=typing.Union[Nullable, str]), + ClusterObjectFieldDescriptor(Label="nullableEnumAttr", Tag=0x00004024, Type=typing.Union[Nullable, TestCluster.Enums.SimpleEnum]), + ClusterObjectFieldDescriptor(Label="nullableStruct", Tag=0x00004025, Type=typing.Union[Nullable, TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="nullableRangeRestrictedInt8u", Tag=0x00004026, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableRangeRestrictedInt8s", Tag=0x00004027, Type=typing.Union[Nullable, int]), + ClusterObjectFieldDescriptor(Label="nullableRangeRestrictedInt16u", Tag=0x00004028, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableRangeRestrictedInt16s", Tag=0x00004029, Type=typing.Union[Nullable, int]), + ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="featureMap", Tag=0x0000FFFC, Type=uint), + ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), + ]) + + boolean: 'bool' = None + bitmap8: 'uint' = None + bitmap16: 'uint' = None + bitmap32: 'uint' = None + bitmap64: 'uint' = None + int8u: 'uint' = None + int16u: 'uint' = None + int24u: 'uint' = None + int32u: 'uint' = None + int40u: 'uint' = None + int48u: 'uint' = None + int56u: 'uint' = None + int64u: 'uint' = None + int8s: 'int' = None + int16s: 'int' = None + int24s: 'int' = None + int32s: 'int' = None + int40s: 'int' = None + int48s: 'int' = None + int56s: 'int' = None + int64s: 'int' = None + enum8: 'uint' = None + enum16: 'uint' = None + floatSingle: 'float32' = None + floatDouble: 'float' = None + octetString: 'bytes' = None + listInt8u: 'typing.List[uint]' = None + listOctetString: 'typing.List[bytes]' = None + listStructOctetString: 'typing.List[TestCluster.Structs.TestListStructOctet]' = None + longOctetString: 'bytes' = None + charString: 'str' = None + longCharString: 'str' = None + epochUs: 'uint' = None + epochS: 'uint' = None + vendorId: 'uint' = None + listNullablesAndOptionalsStruct: 'typing.List[TestCluster.Structs.NullablesAndOptionalsStruct]' = None + enumAttr: 'TestCluster.Enums.SimpleEnum' = None + structAttr: 'TestCluster.Structs.SimpleStruct' = None + rangeRestrictedInt8u: 'uint' = None + rangeRestrictedInt8s: 'int' = None + rangeRestrictedInt16u: 'uint' = None + rangeRestrictedInt16s: 'int' = None + listLongOctetString: 'typing.List[bytes]' = None + listFabricScoped: 'typing.List[TestCluster.Structs.TestFabricScoped]' = None + timedWriteBoolean: 'bool' = None + generalErrorBoolean: 'bool' = None + clusterErrorBoolean: 'bool' = None + unsupported: 'typing.Optional[bool]' = None + nullableBoolean: 'typing.Union[Nullable, bool]' = None + nullableBitmap8: 'typing.Union[Nullable, uint]' = None + nullableBitmap16: 'typing.Union[Nullable, uint]' = None + nullableBitmap32: 'typing.Union[Nullable, uint]' = None + nullableBitmap64: 'typing.Union[Nullable, uint]' = None + nullableInt8u: 'typing.Union[Nullable, uint]' = None + nullableInt16u: 'typing.Union[Nullable, uint]' = None + nullableInt24u: 'typing.Union[Nullable, uint]' = None + nullableInt32u: 'typing.Union[Nullable, uint]' = None + nullableInt40u: 'typing.Union[Nullable, uint]' = None + nullableInt48u: 'typing.Union[Nullable, uint]' = None + nullableInt56u: 'typing.Union[Nullable, uint]' = None + nullableInt64u: 'typing.Union[Nullable, uint]' = None + nullableInt8s: 'typing.Union[Nullable, int]' = None + nullableInt16s: 'typing.Union[Nullable, int]' = None + nullableInt24s: 'typing.Union[Nullable, int]' = None + nullableInt32s: 'typing.Union[Nullable, int]' = None + nullableInt40s: 'typing.Union[Nullable, int]' = None + nullableInt48s: 'typing.Union[Nullable, int]' = None + nullableInt56s: 'typing.Union[Nullable, int]' = None + nullableInt64s: 'typing.Union[Nullable, int]' = None + nullableEnum8: 'typing.Union[Nullable, uint]' = None + nullableEnum16: 'typing.Union[Nullable, uint]' = None + nullableFloatSingle: 'typing.Union[Nullable, float32]' = None + nullableFloatDouble: 'typing.Union[Nullable, float]' = None + nullableOctetString: 'typing.Union[Nullable, bytes]' = None + nullableCharString: 'typing.Union[Nullable, str]' = None + nullableEnumAttr: 'typing.Union[Nullable, TestCluster.Enums.SimpleEnum]' = None + nullableStruct: 'typing.Union[Nullable, TestCluster.Structs.SimpleStruct]' = None + nullableRangeRestrictedInt8u: 'typing.Union[Nullable, uint]' = None + nullableRangeRestrictedInt8s: 'typing.Union[Nullable, int]' = None + nullableRangeRestrictedInt16u: 'typing.Union[Nullable, uint]' = None + nullableRangeRestrictedInt16s: 'typing.Union[Nullable, int]' = None + generatedCommandList: 'typing.List[uint]' = None + acceptedCommandList: 'typing.List[uint]' = None + attributeList: 'typing.List[uint]' = None + featureMap: 'uint' = None + clusterRevision: 'uint' = None - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + class Enums: + class SimpleEnum(IntEnum): + kUnspecified = 0x00 + kValueA = 0x01 + kValueB = 0x02 + kValueC = 0x03 - value: 'typing.Optional[int]' = None + class Structs: @dataclass - class DcPowerMin(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000107 - + class SimpleStruct(ClusterObject): @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="a", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="b", Tag=1, Type=bool), + ClusterObjectFieldDescriptor(Label="c", Tag=2, Type=TestCluster.Enums.SimpleEnum), + ClusterObjectFieldDescriptor(Label="d", Tag=3, Type=bytes), + ClusterObjectFieldDescriptor(Label="e", Tag=4, Type=str), + ClusterObjectFieldDescriptor(Label="f", Tag=5, Type=uint), + ClusterObjectFieldDescriptor(Label="g", Tag=6, Type=float32), + ClusterObjectFieldDescriptor(Label="h", Tag=7, Type=float), + ]) - value: 'typing.Optional[int]' = None + a: 'uint' = 0 + b: 'bool' = False + c: 'TestCluster.Enums.SimpleEnum' = 0 + d: 'bytes' = b"" + e: 'str' = "" + f: 'uint' = 0 + g: 'float32' = 0.0 + h: 'float' = 0.0 @dataclass - class DcPowerMax(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000108 - + class TestFabricScoped(ClusterObject): @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="fabricSensitiveInt8u", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="optionalFabricSensitiveInt8u", Tag=2, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="nullableFabricSensitiveInt8u", Tag=3, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableOptionalFabricSensitiveInt8u", Tag=4, Type=typing.Union[None, Nullable, uint]), + ClusterObjectFieldDescriptor(Label="fabricSensitiveCharString", Tag=5, Type=str), + ClusterObjectFieldDescriptor(Label="fabricSensitiveStruct", Tag=6, Type=TestCluster.Structs.SimpleStruct), + ClusterObjectFieldDescriptor(Label="fabricSensitiveInt8uList", Tag=7, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=254, Type=uint), + ]) - value: 'typing.Optional[int]' = None + fabricSensitiveInt8u: 'uint' = 0 + optionalFabricSensitiveInt8u: 'typing.Optional[uint]' = None + nullableFabricSensitiveInt8u: 'typing.Union[Nullable, uint]' = NullValue + nullableOptionalFabricSensitiveInt8u: 'typing.Union[None, Nullable, uint]' = None + fabricSensitiveCharString: 'str' = "" + fabricSensitiveStruct: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) + fabricSensitiveInt8uList: 'typing.List[uint]' = field(default_factory=lambda: []) + fabricIndex: 'uint' = 0 @dataclass - class DcVoltageMultiplier(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000200 - + class NullablesAndOptionalsStruct(ClusterObject): @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="nullableInt", Tag=0, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="optionalInt", Tag=1, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="nullableOptionalInt", Tag=2, Type=typing.Union[None, Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableString", Tag=3, Type=typing.Union[Nullable, str]), + ClusterObjectFieldDescriptor(Label="optionalString", Tag=4, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="nullableOptionalString", Tag=5, Type=typing.Union[None, Nullable, str]), + ClusterObjectFieldDescriptor(Label="nullableStruct", Tag=6, Type=typing.Union[Nullable, TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="optionalStruct", Tag=7, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="nullableOptionalStruct", Tag=8, Type=typing.Union[None, Nullable, TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="nullableList", Tag=9, Type=typing.Union[Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), + ClusterObjectFieldDescriptor(Label="optionalList", Tag=10, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), + ClusterObjectFieldDescriptor(Label="nullableOptionalList", Tag=11, Type=typing.Union[None, Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), + ]) - value: 'typing.Optional[uint]' = None + nullableInt: 'typing.Union[Nullable, uint]' = NullValue + optionalInt: 'typing.Optional[uint]' = None + nullableOptionalInt: 'typing.Union[None, Nullable, uint]' = None + nullableString: 'typing.Union[Nullable, str]' = NullValue + optionalString: 'typing.Optional[str]' = None + nullableOptionalString: 'typing.Union[None, Nullable, str]' = None + nullableStruct: 'typing.Union[Nullable, TestCluster.Structs.SimpleStruct]' = NullValue + optionalStruct: 'typing.Optional[TestCluster.Structs.SimpleStruct]' = None + nullableOptionalStruct: 'typing.Union[None, Nullable, TestCluster.Structs.SimpleStruct]' = None + nullableList: 'typing.Union[Nullable, typing.List[TestCluster.Enums.SimpleEnum]]' = NullValue + optionalList: 'typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]' = None + nullableOptionalList: 'typing.Union[None, Nullable, typing.List[TestCluster.Enums.SimpleEnum]]' = None @dataclass - class DcVoltageDivisor(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000201 - + class NestedStruct(ClusterObject): @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="a", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="b", Tag=1, Type=bool), + ClusterObjectFieldDescriptor(Label="c", Tag=2, Type=TestCluster.Structs.SimpleStruct), + ]) - value: 'typing.Optional[uint]' = None + a: 'uint' = 0 + b: 'bool' = False + c: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) @dataclass - class DcCurrentMultiplier(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000202 - + class NestedStructList(ClusterObject): @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="a", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="b", Tag=1, Type=bool), + ClusterObjectFieldDescriptor(Label="c", Tag=2, Type=TestCluster.Structs.SimpleStruct), + ClusterObjectFieldDescriptor(Label="d", Tag=3, Type=typing.List[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="e", Tag=4, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="f", Tag=5, Type=typing.List[bytes]), + ClusterObjectFieldDescriptor(Label="g", Tag=6, Type=typing.List[uint]), + ]) - value: 'typing.Optional[uint]' = None + a: 'uint' = 0 + b: 'bool' = False + c: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) + d: 'typing.List[TestCluster.Structs.SimpleStruct]' = field(default_factory=lambda: []) + e: 'typing.List[uint]' = field(default_factory=lambda: []) + f: 'typing.List[bytes]' = field(default_factory=lambda: []) + g: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class DcCurrentDivisor(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000203 - + class DoubleNestedStructList(ClusterObject): @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="a", Tag=0, Type=typing.List[TestCluster.Structs.NestedStructList]), + ]) - value: 'typing.Optional[uint]' = None + a: 'typing.List[TestCluster.Structs.NestedStructList]' = field(default_factory=lambda: []) @dataclass - class DcPowerMultiplier(ClusterAttributeDescriptor): + class TestListStructOctet(ClusterObject): @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="operationalCert", Tag=1, Type=bytes), + ]) - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000204 + fabricIndex: 'uint' = 0 + operationalCert: 'bytes' = b"" - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - value: 'typing.Optional[uint]' = None + class Commands: @dataclass - class DcPowerDivisor(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000205 + class Test(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0000 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ]) - value: 'typing.Optional[uint]' = None @dataclass - class AcFrequency(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000300 + class TestSpecificResponse(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0000 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="returnValue", Tag=0, Type=uint), + ]) - value: 'typing.Optional[uint]' = None + returnValue: 'uint' = 0 @dataclass - class AcFrequencyMin(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000301 + class TestNotHandled(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0001 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ]) - value: 'typing.Optional[uint]' = None @dataclass - class AcFrequencyMax(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000302 + class TestAddArgumentsResponse(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0001 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="returnValue", Tag=0, Type=uint), + ]) - value: 'typing.Optional[uint]' = None + returnValue: 'uint' = 0 @dataclass - class NeutralCurrent(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000303 + class TestSpecific(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0002 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ]) - value: 'typing.Optional[uint]' = None @dataclass - class TotalActivePower(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000304 + class TestSimpleArgumentResponse(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0002 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="returnValue", Tag=0, Type=bool), + ]) - value: 'typing.Optional[int]' = None + returnValue: 'bool' = False @dataclass - class TotalReactivePower(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000305 + class TestUnknownCommand(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0003 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ]) - value: 'typing.Optional[int]' = None @dataclass - class TotalApparentPower(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000306 + class TestStructArrayArgumentResponse(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0003 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[TestCluster.Structs.NestedStructList]), + ClusterObjectFieldDescriptor(Label="arg2", Tag=1, Type=typing.List[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="arg3", Tag=2, Type=typing.List[TestCluster.Enums.SimpleEnum]), + ClusterObjectFieldDescriptor(Label="arg4", Tag=3, Type=typing.List[bool]), + ClusterObjectFieldDescriptor(Label="arg5", Tag=4, Type=TestCluster.Enums.SimpleEnum), + ClusterObjectFieldDescriptor(Label="arg6", Tag=5, Type=bool), + ]) - value: 'typing.Optional[uint]' = None + arg1: 'typing.List[TestCluster.Structs.NestedStructList]' = field(default_factory=lambda: []) + arg2: 'typing.List[TestCluster.Structs.SimpleStruct]' = field(default_factory=lambda: []) + arg3: 'typing.List[TestCluster.Enums.SimpleEnum]' = field(default_factory=lambda: []) + arg4: 'typing.List[bool]' = field(default_factory=lambda: []) + arg5: 'TestCluster.Enums.SimpleEnum' = 0 + arg6: 'bool' = False @dataclass - class Measured1stHarmonicCurrent(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000307 + class TestAddArguments(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0004 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="arg2", Tag=1, Type=uint), + ]) - value: 'typing.Optional[int]' = None + arg1: 'uint' = 0 + arg2: 'uint' = 0 @dataclass - class Measured3rdHarmonicCurrent(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000308 + class TestListInt8UReverseResponse(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0004 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[uint]), + ]) - value: 'typing.Optional[int]' = None + arg1: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class Measured5thHarmonicCurrent(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000309 + class TestSimpleArgumentRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0005 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=bool), + ]) - value: 'typing.Optional[int]' = None + arg1: 'bool' = False @dataclass - class Measured7thHarmonicCurrent(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000030A + class TestEnumsResponse(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0005 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="arg2", Tag=1, Type=TestCluster.Enums.SimpleEnum), + ]) - value: 'typing.Optional[int]' = None + arg1: 'uint' = 0 + arg2: 'TestCluster.Enums.SimpleEnum' = 0 @dataclass - class Measured9thHarmonicCurrent(ClusterAttributeDescriptor): + class TestStructArrayArgumentRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0006 + is_client: typing.ClassVar[bool] = True + @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[TestCluster.Structs.NestedStructList]), + ClusterObjectFieldDescriptor(Label="arg2", Tag=1, Type=typing.List[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="arg3", Tag=2, Type=typing.List[TestCluster.Enums.SimpleEnum]), + ClusterObjectFieldDescriptor(Label="arg4", Tag=3, Type=typing.List[bool]), + ClusterObjectFieldDescriptor(Label="arg5", Tag=4, Type=TestCluster.Enums.SimpleEnum), + ClusterObjectFieldDescriptor(Label="arg6", Tag=5, Type=bool), + ]) + + arg1: 'typing.List[TestCluster.Structs.NestedStructList]' = field(default_factory=lambda: []) + arg2: 'typing.List[TestCluster.Structs.SimpleStruct]' = field(default_factory=lambda: []) + arg3: 'typing.List[TestCluster.Enums.SimpleEnum]' = field(default_factory=lambda: []) + arg4: 'typing.List[bool]' = field(default_factory=lambda: []) + arg5: 'TestCluster.Enums.SimpleEnum' = 0 + arg6: 'bool' = False - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000030B + @dataclass + class TestNullableOptionalResponse(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0006 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="wasPresent", Tag=0, Type=bool), + ClusterObjectFieldDescriptor(Label="wasNull", Tag=1, Type=typing.Optional[bool]), + ClusterObjectFieldDescriptor(Label="value", Tag=2, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="originalValue", Tag=3, Type=typing.Union[None, Nullable, uint]), + ]) - value: 'typing.Optional[int]' = None + wasPresent: 'bool' = False + wasNull: 'typing.Optional[bool]' = None + value: 'typing.Optional[uint]' = None + originalValue: 'typing.Union[None, Nullable, uint]' = None @dataclass - class Measured11thHarmonicCurrent(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000030C + class TestStructArgumentRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0007 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=TestCluster.Structs.SimpleStruct), + ]) - value: 'typing.Optional[int]' = None + arg1: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) @dataclass - class MeasuredPhase1stHarmonicCurrent(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000030D + class TestComplexNullableOptionalResponse(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0007 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="nullableIntWasNull", Tag=0, Type=bool), + ClusterObjectFieldDescriptor(Label="nullableIntValue", Tag=1, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="optionalIntWasPresent", Tag=2, Type=bool), + ClusterObjectFieldDescriptor(Label="optionalIntValue", Tag=3, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="nullableOptionalIntWasPresent", Tag=4, Type=bool), + ClusterObjectFieldDescriptor(Label="nullableOptionalIntWasNull", Tag=5, Type=typing.Optional[bool]), + ClusterObjectFieldDescriptor(Label="nullableOptionalIntValue", Tag=6, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="nullableStringWasNull", Tag=7, Type=bool), + ClusterObjectFieldDescriptor(Label="nullableStringValue", Tag=8, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="optionalStringWasPresent", Tag=9, Type=bool), + ClusterObjectFieldDescriptor(Label="optionalStringValue", Tag=10, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="nullableOptionalStringWasPresent", Tag=11, Type=bool), + ClusterObjectFieldDescriptor(Label="nullableOptionalStringWasNull", Tag=12, Type=typing.Optional[bool]), + ClusterObjectFieldDescriptor(Label="nullableOptionalStringValue", Tag=13, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="nullableStructWasNull", Tag=14, Type=bool), + ClusterObjectFieldDescriptor(Label="nullableStructValue", Tag=15, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="optionalStructWasPresent", Tag=16, Type=bool), + ClusterObjectFieldDescriptor(Label="optionalStructValue", Tag=17, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="nullableOptionalStructWasPresent", Tag=18, Type=bool), + ClusterObjectFieldDescriptor(Label="nullableOptionalStructWasNull", Tag=19, Type=typing.Optional[bool]), + ClusterObjectFieldDescriptor(Label="nullableOptionalStructValue", Tag=20, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="nullableListWasNull", Tag=21, Type=bool), + ClusterObjectFieldDescriptor(Label="nullableListValue", Tag=22, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), + ClusterObjectFieldDescriptor(Label="optionalListWasPresent", Tag=23, Type=bool), + ClusterObjectFieldDescriptor(Label="optionalListValue", Tag=24, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), + ClusterObjectFieldDescriptor(Label="nullableOptionalListWasPresent", Tag=25, Type=bool), + ClusterObjectFieldDescriptor(Label="nullableOptionalListWasNull", Tag=26, Type=typing.Optional[bool]), + ClusterObjectFieldDescriptor(Label="nullableOptionalListValue", Tag=27, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), + ]) - value: 'typing.Optional[int]' = None + nullableIntWasNull: 'bool' = False + nullableIntValue: 'typing.Optional[uint]' = None + optionalIntWasPresent: 'bool' = False + optionalIntValue: 'typing.Optional[uint]' = None + nullableOptionalIntWasPresent: 'bool' = False + nullableOptionalIntWasNull: 'typing.Optional[bool]' = None + nullableOptionalIntValue: 'typing.Optional[uint]' = None + nullableStringWasNull: 'bool' = False + nullableStringValue: 'typing.Optional[str]' = None + optionalStringWasPresent: 'bool' = False + optionalStringValue: 'typing.Optional[str]' = None + nullableOptionalStringWasPresent: 'bool' = False + nullableOptionalStringWasNull: 'typing.Optional[bool]' = None + nullableOptionalStringValue: 'typing.Optional[str]' = None + nullableStructWasNull: 'bool' = False + nullableStructValue: 'typing.Optional[TestCluster.Structs.SimpleStruct]' = None + optionalStructWasPresent: 'bool' = False + optionalStructValue: 'typing.Optional[TestCluster.Structs.SimpleStruct]' = None + nullableOptionalStructWasPresent: 'bool' = False + nullableOptionalStructWasNull: 'typing.Optional[bool]' = None + nullableOptionalStructValue: 'typing.Optional[TestCluster.Structs.SimpleStruct]' = None + nullableListWasNull: 'bool' = False + nullableListValue: 'typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]' = None + optionalListWasPresent: 'bool' = False + optionalListValue: 'typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]' = None + nullableOptionalListWasPresent: 'bool' = False + nullableOptionalListWasNull: 'typing.Optional[bool]' = None + nullableOptionalListValue: 'typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]' = None @dataclass - class MeasuredPhase3rdHarmonicCurrent(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000030E + class TestNestedStructArgumentRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0008 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=TestCluster.Structs.NestedStruct), + ]) - value: 'typing.Optional[int]' = None + arg1: 'TestCluster.Structs.NestedStruct' = field(default_factory=lambda: TestCluster.Structs.NestedStruct()) @dataclass - class MeasuredPhase5thHarmonicCurrent(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000030F + class BooleanResponse(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0008 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="value", Tag=0, Type=bool), + ]) - value: 'typing.Optional[int]' = None + value: 'bool' = False @dataclass - class MeasuredPhase7thHarmonicCurrent(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000310 + class TestListStructArgumentRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0009 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[TestCluster.Structs.SimpleStruct]), + ]) - value: 'typing.Optional[int]' = None + arg1: 'typing.List[TestCluster.Structs.SimpleStruct]' = field(default_factory=lambda: []) @dataclass - class MeasuredPhase9thHarmonicCurrent(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000311 + class SimpleStructResponse(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0009 + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=TestCluster.Structs.SimpleStruct), + ]) - value: 'typing.Optional[int]' = None + arg1: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) @dataclass - class MeasuredPhase11thHarmonicCurrent(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000312 + class TestListInt8UArgumentRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x000A + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[uint]), + ]) - value: 'typing.Optional[int]' = None + arg1: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class AcFrequencyMultiplier(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000400 + class TestEmitTestEventResponse(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x000A + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="value", Tag=0, Type=uint), + ]) - value: 'typing.Optional[uint]' = None + value: 'uint' = 0 @dataclass - class AcFrequencyDivisor(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000401 + class TestNestedStructListArgumentRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x000B + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=TestCluster.Structs.NestedStructList), + ]) - value: 'typing.Optional[uint]' = None + arg1: 'TestCluster.Structs.NestedStructList' = field(default_factory=lambda: TestCluster.Structs.NestedStructList()) @dataclass - class PowerMultiplier(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000402 + class TestEmitTestFabricScopedEventResponse(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x000B + is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="value", Tag=0, Type=uint), + ]) - value: 'typing.Optional[uint]' = None + value: 'uint' = 0 @dataclass - class PowerDivisor(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000403 + class TestListNestedStructListArgumentRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x000C + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[TestCluster.Structs.NestedStructList]), + ]) - value: 'typing.Optional[uint]' = None + arg1: 'typing.List[TestCluster.Structs.NestedStructList]' = field(default_factory=lambda: []) @dataclass - class HarmonicCurrentMultiplier(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000404 + class TestListInt8UReverseRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x000D + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[uint]), + ]) - value: 'typing.Optional[int]' = None + arg1: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class PhaseHarmonicCurrentMultiplier(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000405 + class TestEnumsRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x000E + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="arg2", Tag=1, Type=TestCluster.Enums.SimpleEnum), + ]) - value: 'typing.Optional[int]' = None + arg1: 'uint' = 0 + arg2: 'TestCluster.Enums.SimpleEnum' = 0 @dataclass - class InstantaneousVoltage(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000500 + class TestNullableOptionalRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x000F + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.Union[None, Nullable, uint]), + ]) - value: 'typing.Optional[int]' = None + arg1: 'typing.Union[None, Nullable, uint]' = None @dataclass - class InstantaneousLineCurrent(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000501 + class TestComplexNullableOptionalRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0010 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="nullableInt", Tag=0, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="optionalInt", Tag=1, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="nullableOptionalInt", Tag=2, Type=typing.Union[None, Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableString", Tag=3, Type=typing.Union[Nullable, str]), + ClusterObjectFieldDescriptor(Label="optionalString", Tag=4, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="nullableOptionalString", Tag=5, Type=typing.Union[None, Nullable, str]), + ClusterObjectFieldDescriptor(Label="nullableStruct", Tag=6, Type=typing.Union[Nullable, TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="optionalStruct", Tag=7, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="nullableOptionalStruct", Tag=8, Type=typing.Union[None, Nullable, TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="nullableList", Tag=9, Type=typing.Union[Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), + ClusterObjectFieldDescriptor(Label="optionalList", Tag=10, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), + ClusterObjectFieldDescriptor(Label="nullableOptionalList", Tag=11, Type=typing.Union[None, Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), + ]) - value: 'typing.Optional[uint]' = None + nullableInt: 'typing.Union[Nullable, uint]' = NullValue + optionalInt: 'typing.Optional[uint]' = None + nullableOptionalInt: 'typing.Union[None, Nullable, uint]' = None + nullableString: 'typing.Union[Nullable, str]' = NullValue + optionalString: 'typing.Optional[str]' = None + nullableOptionalString: 'typing.Union[None, Nullable, str]' = None + nullableStruct: 'typing.Union[Nullable, TestCluster.Structs.SimpleStruct]' = NullValue + optionalStruct: 'typing.Optional[TestCluster.Structs.SimpleStruct]' = None + nullableOptionalStruct: 'typing.Union[None, Nullable, TestCluster.Structs.SimpleStruct]' = None + nullableList: 'typing.Union[Nullable, typing.List[TestCluster.Enums.SimpleEnum]]' = NullValue + optionalList: 'typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]' = None + nullableOptionalList: 'typing.Union[None, Nullable, typing.List[TestCluster.Enums.SimpleEnum]]' = None @dataclass - class InstantaneousActiveCurrent(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000502 + class SimpleStructEchoRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0011 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=TestCluster.Structs.SimpleStruct), + ]) - value: 'typing.Optional[int]' = None + arg1: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) @dataclass - class InstantaneousReactiveCurrent(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 + class TimedInvokeRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0012 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000503 + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ]) @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def must_use_timed_invoke(cls) -> bool: + return True - value: 'typing.Optional[int]' = None @dataclass - class InstantaneousPower(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 + class TestSimpleOptionalArgumentRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0013 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000504 + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.Optional[bool]), + ]) + + arg1: 'typing.Optional[bool]' = None + + @dataclass + class TestEmitTestEventRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0014 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="arg2", Tag=1, Type=TestCluster.Enums.SimpleEnum), + ClusterObjectFieldDescriptor(Label="arg3", Tag=2, Type=bool), + ]) - value: 'typing.Optional[int]' = None + arg1: 'uint' = 0 + arg2: 'TestCluster.Enums.SimpleEnum' = 0 + arg3: 'bool' = False @dataclass - class RmsVoltage(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0B04 + class TestEmitTestFabricScopedEventRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0xFFF1FC05 + command_id: typing.ClassVar[int] = 0x0015 + is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000505 + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=uint), + ]) - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + arg1: 'uint' = 0 - value: 'typing.Optional[uint]' = None + class Attributes: @dataclass - class RmsVoltageMin(ClusterAttributeDescriptor): + class Boolean(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000506 + return 0x00000000 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=bool) - value: 'typing.Optional[uint]' = None + value: 'bool' = False @dataclass - class RmsVoltageMax(ClusterAttributeDescriptor): + class Bitmap8(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000507 + return 0x00000001 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[uint]' = None + value: 'uint' = 0 @dataclass - class RmsCurrent(ClusterAttributeDescriptor): + class Bitmap16(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000508 + return 0x00000002 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[uint]' = None + value: 'uint' = 0 @dataclass - class RmsCurrentMin(ClusterAttributeDescriptor): + class Bitmap32(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000509 + return 0x00000003 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[uint]' = None + value: 'uint' = 0 @dataclass - class RmsCurrentMax(ClusterAttributeDescriptor): + class Bitmap64(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000050A + return 0x00000004 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[uint]' = None + value: 'uint' = 0 @dataclass - class ActivePower(ClusterAttributeDescriptor): + class Int8u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000050B + return 0x00000005 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[int]' = None + value: 'uint' = 0 @dataclass - class ActivePowerMin(ClusterAttributeDescriptor): + class Int16u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000050C + return 0x00000006 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[int]' = None + value: 'uint' = 0 @dataclass - class ActivePowerMax(ClusterAttributeDescriptor): + class Int24u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000050D + return 0x00000007 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[int]' = None + value: 'uint' = 0 @dataclass - class ReactivePower(ClusterAttributeDescriptor): + class Int32u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000050E + return 0x00000008 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[int]' = None + value: 'uint' = 0 @dataclass - class ApparentPower(ClusterAttributeDescriptor): + class Int40u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000050F + return 0x00000009 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[uint]' = None + value: 'uint' = 0 @dataclass - class PowerFactor(ClusterAttributeDescriptor): + class Int48u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000510 + return 0x0000000A @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[int]' = None + value: 'uint' = 0 @dataclass - class AverageRmsVoltageMeasurementPeriod(ClusterAttributeDescriptor): + class Int56u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000511 + return 0x0000000B @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[uint]' = None + value: 'uint' = 0 @dataclass - class AverageRmsUnderVoltageCounter(ClusterAttributeDescriptor): + class Int64u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000513 + return 0x0000000C @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[uint]' = None + value: 'uint' = 0 @dataclass - class RmsExtremeOverVoltagePeriod(ClusterAttributeDescriptor): + class Int8s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000514 + return 0x0000000D @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=int) - value: 'typing.Optional[uint]' = None + value: 'int' = 0 @dataclass - class RmsExtremeUnderVoltagePeriod(ClusterAttributeDescriptor): + class Int16s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000515 + return 0x0000000E @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=int) - value: 'typing.Optional[uint]' = None + value: 'int' = 0 @dataclass - class RmsVoltageSagPeriod(ClusterAttributeDescriptor): + class Int24s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000516 + return 0x0000000F @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=int) - value: 'typing.Optional[uint]' = None + value: 'int' = 0 @dataclass - class RmsVoltageSwellPeriod(ClusterAttributeDescriptor): + class Int32s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000517 + return 0x00000010 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=int) - value: 'typing.Optional[uint]' = None + value: 'int' = 0 @dataclass - class AcVoltageMultiplier(ClusterAttributeDescriptor): + class Int40s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000600 + return 0x00000011 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=int) - value: 'typing.Optional[uint]' = None + value: 'int' = 0 @dataclass - class AcVoltageDivisor(ClusterAttributeDescriptor): + class Int48s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000601 + return 0x00000012 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=int) - value: 'typing.Optional[uint]' = None + value: 'int' = 0 @dataclass - class AcCurrentMultiplier(ClusterAttributeDescriptor): + class Int56s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000602 + return 0x00000013 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=int) - value: 'typing.Optional[uint]' = None + value: 'int' = 0 @dataclass - class AcCurrentDivisor(ClusterAttributeDescriptor): + class Int64s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000603 + return 0x00000014 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=int) - value: 'typing.Optional[uint]' = None + value: 'int' = 0 @dataclass - class AcPowerMultiplier(ClusterAttributeDescriptor): + class Enum8(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000604 + return 0x00000015 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[uint]' = None + value: 'uint' = 0 @dataclass - class AcPowerDivisor(ClusterAttributeDescriptor): + class Enum16(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000605 + return 0x00000016 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[uint]' = None + value: 'uint' = 0 @dataclass - class OverloadAlarmsMask(ClusterAttributeDescriptor): + class FloatSingle(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000700 + return 0x00000017 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=float32) - value: 'typing.Optional[uint]' = None + value: 'float32' = 0.0 @dataclass - class VoltageOverload(ClusterAttributeDescriptor): + class FloatDouble(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000701 + return 0x00000018 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=float) - value: 'typing.Optional[int]' = None + value: 'float' = 0.0 @dataclass - class CurrentOverload(ClusterAttributeDescriptor): + class OctetString(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000702 + return 0x00000019 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=bytes) - value: 'typing.Optional[int]' = None + value: 'bytes' = b"" @dataclass - class AcOverloadAlarmsMask(ClusterAttributeDescriptor): + class ListInt8u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000800 + return 0x0000001A @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - value: 'typing.Optional[uint]' = None + value: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass - class AcVoltageOverload(ClusterAttributeDescriptor): + class ListOctetString(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000801 + return 0x0000001B @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.List[bytes]) - value: 'typing.Optional[int]' = None + value: 'typing.List[bytes]' = field(default_factory=lambda: []) @dataclass - class AcCurrentOverload(ClusterAttributeDescriptor): + class ListStructOctetString(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000802 + return 0x0000001C @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.List[TestCluster.Structs.TestListStructOctet]) - value: 'typing.Optional[int]' = None + value: 'typing.List[TestCluster.Structs.TestListStructOctet]' = field(default_factory=lambda: []) @dataclass - class AcActivePowerOverload(ClusterAttributeDescriptor): + class LongOctetString(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000803 + return 0x0000001D @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=bytes) - value: 'typing.Optional[int]' = None + value: 'bytes' = b"" @dataclass - class AcReactivePowerOverload(ClusterAttributeDescriptor): + class CharString(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000804 + return 0x0000001E @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=str) - value: 'typing.Optional[int]' = None + value: 'str' = "" @dataclass - class AverageRmsOverVoltage(ClusterAttributeDescriptor): + class LongCharString(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000805 + return 0x0000001F @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=str) - value: 'typing.Optional[int]' = None + value: 'str' = "" @dataclass - class AverageRmsUnderVoltage(ClusterAttributeDescriptor): + class EpochUs(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000806 + return 0x00000020 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[int]' = None + value: 'uint' = 0 @dataclass - class RmsExtremeOverVoltage(ClusterAttributeDescriptor): + class EpochS(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000807 + return 0x00000021 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[int]' = None + value: 'uint' = 0 @dataclass - class RmsExtremeUnderVoltage(ClusterAttributeDescriptor): + class VendorId(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000808 + return 0x00000022 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[int]' = None + value: 'uint' = 0 @dataclass - class RmsVoltageSag(ClusterAttributeDescriptor): + class ListNullablesAndOptionalsStruct(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000809 + return 0x00000023 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.List[TestCluster.Structs.NullablesAndOptionalsStruct]) - value: 'typing.Optional[int]' = None + value: 'typing.List[TestCluster.Structs.NullablesAndOptionalsStruct]' = field(default_factory=lambda: []) @dataclass - class RmsVoltageSwell(ClusterAttributeDescriptor): + class EnumAttr(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000080A + return 0x00000024 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=TestCluster.Enums.SimpleEnum) - value: 'typing.Optional[int]' = None + value: 'TestCluster.Enums.SimpleEnum' = 0 @dataclass - class LineCurrentPhaseB(ClusterAttributeDescriptor): + class StructAttr(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000901 + return 0x00000025 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=TestCluster.Structs.SimpleStruct) - value: 'typing.Optional[uint]' = None + value: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) @dataclass - class ActiveCurrentPhaseB(ClusterAttributeDescriptor): + class RangeRestrictedInt8u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000902 + return 0x00000026 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[int]' = None + value: 'uint' = 0 @dataclass - class ReactiveCurrentPhaseB(ClusterAttributeDescriptor): + class RangeRestrictedInt8s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000903 + return 0x00000027 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=int) - value: 'typing.Optional[int]' = None + value: 'int' = 0 @dataclass - class RmsVoltagePhaseB(ClusterAttributeDescriptor): + class RangeRestrictedInt16u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000905 + return 0x00000028 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=uint) - value: 'typing.Optional[uint]' = None + value: 'uint' = 0 @dataclass - class RmsVoltageMinPhaseB(ClusterAttributeDescriptor): + class RangeRestrictedInt16s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000906 + return 0x00000029 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=int) - value: 'typing.Optional[uint]' = None + value: 'int' = 0 @dataclass - class RmsVoltageMaxPhaseB(ClusterAttributeDescriptor): + class ListLongOctetString(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000907 + return 0x0000002A @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.List[bytes]) - value: 'typing.Optional[uint]' = None + value: 'typing.List[bytes]' = field(default_factory=lambda: []) @dataclass - class RmsCurrentPhaseB(ClusterAttributeDescriptor): + class ListFabricScoped(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000908 + return 0x0000002B @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.List[TestCluster.Structs.TestFabricScoped]) - value: 'typing.Optional[uint]' = None + value: 'typing.List[TestCluster.Structs.TestFabricScoped]' = field(default_factory=lambda: []) @dataclass - class RmsCurrentMinPhaseB(ClusterAttributeDescriptor): + class TimedWriteBoolean(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000909 + return 0x00000030 + + @ChipUtility.classproperty + def must_use_timed_write(cls) -> bool: + return True @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=bool) - value: 'typing.Optional[uint]' = None + value: 'bool' = False @dataclass - class RmsCurrentMaxPhaseB(ClusterAttributeDescriptor): + class GeneralErrorBoolean(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000090A + return 0x00000031 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=bool) - value: 'typing.Optional[uint]' = None + value: 'bool' = False @dataclass - class ActivePowerPhaseB(ClusterAttributeDescriptor): + class ClusterErrorBoolean(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000090B + return 0x00000032 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=bool) - value: 'typing.Optional[int]' = None + value: 'bool' = False @dataclass - class ActivePowerMinPhaseB(ClusterAttributeDescriptor): + class Unsupported(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000090C + return 0x000000FF @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[bool]) - value: 'typing.Optional[int]' = None + value: 'typing.Optional[bool]' = None @dataclass - class ActivePowerMaxPhaseB(ClusterAttributeDescriptor): + class NullableBoolean(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000090D + return 0x00004000 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, bool]) - value: 'typing.Optional[int]' = None + value: 'typing.Union[Nullable, bool]' = NullValue @dataclass - class ReactivePowerPhaseB(ClusterAttributeDescriptor): + class NullableBitmap8(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000090E + return 0x00004001 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) - value: 'typing.Optional[int]' = None + value: 'typing.Union[Nullable, uint]' = NullValue @dataclass - class ApparentPowerPhaseB(ClusterAttributeDescriptor): + class NullableBitmap16(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000090F + return 0x00004002 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, uint]' = NullValue @dataclass - class PowerFactorPhaseB(ClusterAttributeDescriptor): + class NullableBitmap32(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000910 + return 0x00004003 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) - value: 'typing.Optional[int]' = None + value: 'typing.Union[Nullable, uint]' = NullValue @dataclass - class AverageRmsVoltageMeasurementPeriodPhaseB(ClusterAttributeDescriptor): + class NullableBitmap64(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000911 + return 0x00004004 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, uint]' = NullValue @dataclass - class AverageRmsOverVoltageCounterPhaseB(ClusterAttributeDescriptor): + class NullableInt8u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000912 + return 0x00004005 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, uint]' = NullValue @dataclass - class AverageRmsUnderVoltageCounterPhaseB(ClusterAttributeDescriptor): + class NullableInt16u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000913 + return 0x00004006 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, uint]' = NullValue @dataclass - class RmsExtremeOverVoltagePeriodPhaseB(ClusterAttributeDescriptor): + class NullableInt24u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000914 + return 0x00004007 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, uint]' = NullValue @dataclass - class RmsExtremeUnderVoltagePeriodPhaseB(ClusterAttributeDescriptor): + class NullableInt32u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000915 + return 0x00004008 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, uint]' = NullValue @dataclass - class RmsVoltageSagPeriodPhaseB(ClusterAttributeDescriptor): + class NullableInt40u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000916 + return 0x00004009 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, uint]' = NullValue @dataclass - class RmsVoltageSwellPeriodPhaseB(ClusterAttributeDescriptor): + class NullableInt48u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000917 + return 0x0000400A @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, uint]' = NullValue @dataclass - class LineCurrentPhaseC(ClusterAttributeDescriptor): + class NullableInt56u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A01 + return 0x0000400B @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, uint]' = NullValue @dataclass - class ActiveCurrentPhaseC(ClusterAttributeDescriptor): + class NullableInt64u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A02 + return 0x0000400C @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) - value: 'typing.Optional[int]' = None + value: 'typing.Union[Nullable, uint]' = NullValue @dataclass - class ReactiveCurrentPhaseC(ClusterAttributeDescriptor): + class NullableInt8s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A03 + return 0x0000400D @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) - value: 'typing.Optional[int]' = None + value: 'typing.Union[Nullable, int]' = NullValue @dataclass - class RmsVoltagePhaseC(ClusterAttributeDescriptor): + class NullableInt16s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A05 + return 0x0000400E @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, int]' = NullValue @dataclass - class RmsVoltageMinPhaseC(ClusterAttributeDescriptor): + class NullableInt24s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A06 + return 0x0000400F @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, int]' = NullValue @dataclass - class RmsVoltageMaxPhaseC(ClusterAttributeDescriptor): + class NullableInt32s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A07 + return 0x00004010 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, int]' = NullValue @dataclass - class RmsCurrentPhaseC(ClusterAttributeDescriptor): + class NullableInt40s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A08 + return 0x00004011 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, int]' = NullValue @dataclass - class RmsCurrentMinPhaseC(ClusterAttributeDescriptor): + class NullableInt48s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A09 + return 0x00004012 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, int]' = NullValue @dataclass - class RmsCurrentMaxPhaseC(ClusterAttributeDescriptor): + class NullableInt56s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A0A + return 0x00004013 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, int]' = NullValue @dataclass - class ActivePowerPhaseC(ClusterAttributeDescriptor): + class NullableInt64s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A0B + return 0x00004014 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) - value: 'typing.Optional[int]' = None + value: 'typing.Union[Nullable, int]' = NullValue @dataclass - class ActivePowerMinPhaseC(ClusterAttributeDescriptor): + class NullableEnum8(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A0C + return 0x00004015 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) - value: 'typing.Optional[int]' = None + value: 'typing.Union[Nullable, uint]' = NullValue @dataclass - class ActivePowerMaxPhaseC(ClusterAttributeDescriptor): + class NullableEnum16(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A0D + return 0x00004016 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) - value: 'typing.Optional[int]' = None + value: 'typing.Union[Nullable, uint]' = NullValue @dataclass - class ReactivePowerPhaseC(ClusterAttributeDescriptor): + class NullableFloatSingle(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A0E + return 0x00004017 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, float32]) - value: 'typing.Optional[int]' = None + value: 'typing.Union[Nullable, float32]' = NullValue @dataclass - class ApparentPowerPhaseC(ClusterAttributeDescriptor): + class NullableFloatDouble(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A0F + return 0x00004018 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, float]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, float]' = NullValue @dataclass - class PowerFactorPhaseC(ClusterAttributeDescriptor): + class NullableOctetString(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A10 + return 0x00004019 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, bytes]) - value: 'typing.Optional[int]' = None + value: 'typing.Union[Nullable, bytes]' = NullValue @dataclass - class AverageRmsVoltageMeasurementPeriodPhaseC(ClusterAttributeDescriptor): + class NullableCharString(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A11 + return 0x0000401E @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, str]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, str]' = NullValue @dataclass - class AverageRmsOverVoltageCounterPhaseC(ClusterAttributeDescriptor): + class NullableEnumAttr(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A12 + return 0x00004024 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, TestCluster.Enums.SimpleEnum]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, TestCluster.Enums.SimpleEnum]' = NullValue @dataclass - class AverageRmsUnderVoltageCounterPhaseC(ClusterAttributeDescriptor): + class NullableStruct(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A13 + return 0x00004025 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, TestCluster.Structs.SimpleStruct]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, TestCluster.Structs.SimpleStruct]' = NullValue @dataclass - class RmsExtremeOverVoltagePeriodPhaseC(ClusterAttributeDescriptor): + class NullableRangeRestrictedInt8u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A14 + return 0x00004026 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, uint]' = NullValue @dataclass - class RmsExtremeUnderVoltagePeriodPhaseC(ClusterAttributeDescriptor): + class NullableRangeRestrictedInt8s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A15 + return 0x00004027 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, int]' = NullValue @dataclass - class RmsVoltageSagPeriodPhaseC(ClusterAttributeDescriptor): + class NullableRangeRestrictedInt16u(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A16 + return 0x00004028 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, uint]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, uint]' = NullValue @dataclass - class RmsVoltageSwellPeriodPhaseC(ClusterAttributeDescriptor): + class NullableRangeRestrictedInt16s(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x00000A17 + return 0x00004029 @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Union[Nullable, int]) - value: 'typing.Optional[uint]' = None + value: 'typing.Union[Nullable, int]' = NullValue @dataclass class GeneratedCommandList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: @@ -40142,7 +40093,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: class AcceptedCommandList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: @@ -40158,7 +40109,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: class AttributeList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: @@ -40174,7 +40125,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: class FeatureMap(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: @@ -40190,7 +40141,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: class ClusterRevision(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0B04 + return 0xFFF1FC05 @ChipUtility.classproperty def attribute_id(cls) -> int: @@ -40203,4 +40154,53 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + class Events: + @dataclass + class TestEvent(ClusterEvent): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0xFFF1FC05 + + @ChipUtility.classproperty + def event_id(cls) -> int: + return 0x00000001 + + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="arg2", Tag=2, Type=TestCluster.Enums.SimpleEnum), + ClusterObjectFieldDescriptor(Label="arg3", Tag=3, Type=bool), + ClusterObjectFieldDescriptor(Label="arg4", Tag=4, Type=TestCluster.Structs.SimpleStruct), + ClusterObjectFieldDescriptor(Label="arg5", Tag=5, Type=typing.List[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="arg6", Tag=6, Type=typing.List[TestCluster.Enums.SimpleEnum]), + ]) + + arg1: 'uint' = 0 + arg2: 'TestCluster.Enums.SimpleEnum' = 0 + arg3: 'bool' = False + arg4: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) + arg5: 'typing.List[TestCluster.Structs.SimpleStruct]' = field(default_factory=lambda: []) + arg6: 'typing.List[TestCluster.Enums.SimpleEnum]' = field(default_factory=lambda: []) + + @dataclass + class TestFabricScopedEvent(ClusterEvent): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0xFFF1FC05 + + @ChipUtility.classproperty + def event_id(cls) -> int: + return 0x00000002 + + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=254, Type=uint), + ]) + + arg1: 'uint' = 0 + diff --git a/src/controller/python/test/test_scripts/base.py b/src/controller/python/test/test_scripts/base.py index 4711ff7f31d3e8..69dad256d83cdd 100644 --- a/src/controller/python/test/test_scripts/base.py +++ b/src/controller/python/test/test_scripts/base.py @@ -831,7 +831,7 @@ def TestNonControllerAPIs(self): ''' try: cluster = self.devCtrl.GetClusterHandler() - clusterInfo = cluster.GetClusterInfoById(0x50F) # TestCluster + clusterInfo = cluster.GetClusterInfoById(0xFFF1FC05) # TestCluster if clusterInfo["clusterName"] != "TestCluster": raise Exception( f"Wrong cluster info clusterName: {clusterInfo['clusterName']} expected TestCluster") diff --git a/src/controller/tests/TestServerCommandDispatch.cpp b/src/controller/tests/TestServerCommandDispatch.cpp index a6812b1d2ad7df..138ed583329a5b 100644 --- a/src/controller/tests/TestServerCommandDispatch.cpp +++ b/src/controller/tests/TestServerCommandDispatch.cpp @@ -321,7 +321,10 @@ void TestCommandInteraction::TestDataResponseHelper(nlTestSuite * apSuite, void } onSuccessWasCalled = true; }; - auto readFailureCb = [&onFailureWasCalled](const ConcreteDataAttributePath *, CHIP_ERROR aError) { onFailureWasCalled = true; }; + auto readFailureCb = [&onFailureWasCalled](const ConcreteDataAttributePath *, CHIP_ERROR aError) { + onFailureWasCalled = true; + ChipLogError(NotSpecified, "TEST FAILURE: %" CHIP_ERROR_FORMAT, aError.Format()); + }; chip::Controller::ReadAttribute( &ctx.GetExchangeManager(), sessionHandle, kTestEndpointId, readSuccessCb, readFailureCb); diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm b/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm index ce96a8d917d413..582d1444996861 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm +++ b/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm @@ -19671,58 +19671,6 @@ } } -void CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge::OnSuccessFn( - void * context, chip::app::Clusters::TestCluster::SimpleEnum value) -{ - NSNumber * _Nonnull objCValue; - objCValue = [NSNumber numberWithUnsignedChar:chip::to_underlying(value)]; - DispatchSuccess(context, objCValue); -}; - -void CHIPTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) -{ - auto * self = static_cast(context); - if (!self->mQueue) { - return; - } - - if (self->mEstablishedHandler != nil) { - dispatch_async(self->mQueue, self->mEstablishedHandler); - // On failure, mEstablishedHandler will be cleaned up by our destructor, - // but we can clean it up earlier on successful subscription - // establishment. - self->mEstablishedHandler = nil; - } -} - -void CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge::OnSuccessFn( - void * context, const chip::app::DataModel::Nullable & value) -{ - NSNumber * _Nullable objCValue; - if (value.IsNull()) { - objCValue = nil; - } else { - objCValue = [NSNumber numberWithUnsignedChar:chip::to_underlying(value.Value())]; - } - DispatchSuccess(context, objCValue); -}; - -void CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) -{ - auto * self = static_cast(context); - if (!self->mQueue) { - return; - } - - if (self->mEstablishedHandler != nil) { - dispatch_async(self->mQueue, self->mEstablishedHandler); - // On failure, mEstablishedHandler will be cleaned up by our destructor, - // but we can clean it up earlier on successful subscription - // establishment. - self->mEstablishedHandler = nil; - } -} - void CHIPMessagingClusterEventIdAttributeCallbackBridge::OnSuccessFn(void * context, chip::app::Clusters::Messaging::EventId value) { NSNumber * _Nonnull objCValue; @@ -20046,3 +19994,55 @@ self->mEstablishedHandler = nil; } } + +void CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge::OnSuccessFn( + void * context, chip::app::Clusters::TestCluster::SimpleEnum value) +{ + NSNumber * _Nonnull objCValue; + objCValue = [NSNumber numberWithUnsignedChar:chip::to_underlying(value)]; + DispatchSuccess(context, objCValue); +}; + +void CHIPTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +{ + auto * self = static_cast(context); + if (!self->mQueue) { + return; + } + + if (self->mEstablishedHandler != nil) { + dispatch_async(self->mQueue, self->mEstablishedHandler); + // On failure, mEstablishedHandler will be cleaned up by our destructor, + // but we can clean it up earlier on successful subscription + // establishment. + self->mEstablishedHandler = nil; + } +} + +void CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge::OnSuccessFn( + void * context, const chip::app::DataModel::Nullable & value) +{ + NSNumber * _Nullable objCValue; + if (value.IsNull()) { + objCValue = nil; + } else { + objCValue = [NSNumber numberWithUnsignedChar:chip::to_underlying(value.Value())]; + } + DispatchSuccess(context, objCValue); +}; + +void CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) +{ + auto * self = static_cast(context); + if (!self->mQueue) { + return; + } + + if (self->mEstablishedHandler != nil) { + dispatch_async(self->mQueue, self->mEstablishedHandler); + // On failure, mEstablishedHandler will be cleaned up by our destructor, + // but we can clean it up earlier on successful subscription + // establishment. + self->mEstablishedHandler = nil; + } +} diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge_internal.h b/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge_internal.h index 698e0baf71ac5e..d076f691ee2703 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge_internal.h +++ b/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge_internal.h @@ -561,9 +561,6 @@ typedef void (*ApplicationBasicClusterApplicationStatusEnumAttributeCallback)( void *, chip::app::Clusters::ApplicationBasic::ApplicationStatusEnum); typedef void (*NullableApplicationBasicClusterApplicationStatusEnumAttributeCallback)( void *, const chip::app::DataModel::Nullable &); -typedef void (*TestClusterClusterSimpleEnumAttributeCallback)(void *, chip::app::Clusters::TestCluster::SimpleEnum); -typedef void (*NullableTestClusterClusterSimpleEnumAttributeCallback)( - void *, const chip::app::DataModel::Nullable &); typedef void (*MessagingClusterEventIdAttributeCallback)(void *, chip::app::Clusters::Messaging::EventId); typedef void (*NullableMessagingClusterEventIdAttributeCallback)( void *, const chip::app::DataModel::Nullable &); @@ -587,6 +584,9 @@ typedef void (*ApplianceEventsAndAlertClusterEventIdentificationAttributeCallbac void *, chip::app::Clusters::ApplianceEventsAndAlert::EventIdentification); typedef void (*NullableApplianceEventsAndAlertClusterEventIdentificationAttributeCallback)( void *, const chip::app::DataModel::Nullable &); +typedef void (*TestClusterClusterSimpleEnumAttributeCallback)(void *, chip::app::Clusters::TestCluster::SimpleEnum); +typedef void (*NullableTestClusterClusterSimpleEnumAttributeCallback)( + void *, const chip::app::DataModel::Nullable &); typedef void (*AccessControlAclListAttributeCallback)( void * context, @@ -17295,63 +17295,6 @@ class CHIPNullableApplicationBasicClusterApplicationStatusEnumAttributeCallbackS SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge - : public CHIPCallbackBridge -{ -public: - CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; - - static void OnSuccessFn(void * context, chip::app::Clusters::TestCluster::SimpleEnum value); -}; - -class CHIPTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge - : public CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge -{ -public: - CHIPTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge(queue, handler, action, true), - mEstablishedHandler(establishedHandler) - {} - - static void OnSubscriptionEstablished(void * context); - -private: - SubscriptionEstablishedHandler mEstablishedHandler; -}; - -class CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge - : public CHIPCallbackBridge -{ -public: - CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; - - static void OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & value); -}; - -class CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge - : public CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge -{ -public: - CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge(queue, handler, action, true), - mEstablishedHandler(establishedHandler) - {} - - static void OnSubscriptionEstablished(void * context); - -private: - SubscriptionEstablishedHandler mEstablishedHandler; -}; - class CHIPMessagingClusterEventIdAttributeCallbackBridge : public CHIPCallbackBridge { public: @@ -17712,3 +17655,60 @@ class CHIPNullableApplianceEventsAndAlertClusterEventIdentificationAttributeCall private: SubscriptionEstablishedHandler mEstablishedHandler; }; + +class CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge + : public CHIPCallbackBridge +{ +public: + CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, + bool keepAlive = false) : + CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + + static void OnSuccessFn(void * context, chip::app::Clusters::TestCluster::SimpleEnum value); +}; + +class CHIPTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge + : public CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge +{ +public: + CHIPTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + CHIPActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + CHIPTestClusterClusterSimpleEnumAttributeCallbackBridge(queue, handler, action, true), + mEstablishedHandler(establishedHandler) + {} + + static void OnSubscriptionEstablished(void * context); + +private: + SubscriptionEstablishedHandler mEstablishedHandler; +}; + +class CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge + : public CHIPCallbackBridge +{ +public: + CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, + CHIPActionBlock action, bool keepAlive = false) : + CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; + + static void OnSuccessFn(void * context, + const chip::app::DataModel::Nullable & value); +}; + +class CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge + : public CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge +{ +public: + CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, + CHIPActionBlock action, + SubscriptionEstablishedHandler establishedHandler) : + CHIPNullableTestClusterClusterSimpleEnumAttributeCallbackBridge(queue, handler, action, true), + mEstablishedHandler(establishedHandler) + {} + + static void OnSubscriptionEstablished(void * context); + +private: + SubscriptionEstablishedHandler mEstablishedHandler; +}; diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.h b/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.h index 2827cafaef8d10..8757fe44247b43 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.h +++ b/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.h @@ -22702,47 +22702,6 @@ typedef NS_ENUM(uint8_t, CHIPApplicationBasicApplicationStatus) { CHIPApplicationBasicApplicationStatusActiveVisibleNotFocus = 0x03, }; -typedef NS_ENUM(uint8_t, CHIPTestClusterSimple) { - CHIPTestClusterSimpleUnspecified = 0x00, - CHIPTestClusterSimpleValueA = 0x01, - CHIPTestClusterSimpleValueB = 0x02, - CHIPTestClusterSimpleValueC = 0x03, -}; - -typedef NS_OPTIONS(uint16_t, CHIPTestClusterBitmap16MaskMap) { - CHIPTestClusterBitmap16MaskMapMaskVal1 = 0x1, - CHIPTestClusterBitmap16MaskMapMaskVal2 = 0x2, - CHIPTestClusterBitmap16MaskMapMaskVal3 = 0x4, - CHIPTestClusterBitmap16MaskMapMaskVal4 = 0x4000, -}; - -typedef NS_OPTIONS(uint32_t, CHIPTestClusterBitmap32MaskMap) { - CHIPTestClusterBitmap32MaskMapMaskVal1 = 0x1, - CHIPTestClusterBitmap32MaskMapMaskVal2 = 0x2, - CHIPTestClusterBitmap32MaskMapMaskVal3 = 0x4, - CHIPTestClusterBitmap32MaskMapMaskVal4 = 0x40000000, -}; - -typedef NS_OPTIONS(uint64_t, CHIPTestClusterBitmap64MaskMap) { - CHIPTestClusterBitmap64MaskMapMaskVal1 = 0x1, - CHIPTestClusterBitmap64MaskMapMaskVal2 = 0x2, - CHIPTestClusterBitmap64MaskMapMaskVal3 = 0x4, - CHIPTestClusterBitmap64MaskMapMaskVal4 = 0x4000000000000000, -}; - -typedef NS_OPTIONS(uint8_t, CHIPTestClusterBitmap8MaskMap) { - CHIPTestClusterBitmap8MaskMapMaskVal1 = 0x1, - CHIPTestClusterBitmap8MaskMapMaskVal2 = 0x2, - CHIPTestClusterBitmap8MaskMapMaskVal3 = 0x4, - CHIPTestClusterBitmap8MaskMapMaskVal4 = 0x40, -}; - -typedef NS_OPTIONS(uint8_t, CHIPTestClusterSimpleBitmap) { - CHIPTestClusterSimpleBitmapValueA = 0x1, - CHIPTestClusterSimpleBitmapValueB = 0x2, - CHIPTestClusterSimpleBitmapValueC = 0x4, -}; - typedef NS_ENUM(uint8_t, CHIPMessagingEventId) { CHIPMessagingEventIdMeterCoverRemoved = 0x00, CHIPMessagingEventIdMeterCoverClosed = 0x01, @@ -22886,6 +22845,47 @@ typedef NS_OPTIONS(uint32_t, CHIPApplianceEventsAndAlertAlertStructure) { CHIPApplianceEventsAndAlertAlertStructurePresenceRecovery = 0x3000, }; +typedef NS_ENUM(uint8_t, CHIPTestClusterSimple) { + CHIPTestClusterSimpleUnspecified = 0x00, + CHIPTestClusterSimpleValueA = 0x01, + CHIPTestClusterSimpleValueB = 0x02, + CHIPTestClusterSimpleValueC = 0x03, +}; + +typedef NS_OPTIONS(uint16_t, CHIPTestClusterBitmap16MaskMap) { + CHIPTestClusterBitmap16MaskMapMaskVal1 = 0x1, + CHIPTestClusterBitmap16MaskMapMaskVal2 = 0x2, + CHIPTestClusterBitmap16MaskMapMaskVal3 = 0x4, + CHIPTestClusterBitmap16MaskMapMaskVal4 = 0x4000, +}; + +typedef NS_OPTIONS(uint32_t, CHIPTestClusterBitmap32MaskMap) { + CHIPTestClusterBitmap32MaskMapMaskVal1 = 0x1, + CHIPTestClusterBitmap32MaskMapMaskVal2 = 0x2, + CHIPTestClusterBitmap32MaskMapMaskVal3 = 0x4, + CHIPTestClusterBitmap32MaskMapMaskVal4 = 0x40000000, +}; + +typedef NS_OPTIONS(uint64_t, CHIPTestClusterBitmap64MaskMap) { + CHIPTestClusterBitmap64MaskMapMaskVal1 = 0x1, + CHIPTestClusterBitmap64MaskMapMaskVal2 = 0x2, + CHIPTestClusterBitmap64MaskMapMaskVal3 = 0x4, + CHIPTestClusterBitmap64MaskMapMaskVal4 = 0x4000000000000000, +}; + +typedef NS_OPTIONS(uint8_t, CHIPTestClusterBitmap8MaskMap) { + CHIPTestClusterBitmap8MaskMapMaskVal1 = 0x1, + CHIPTestClusterBitmap8MaskMapMaskVal2 = 0x2, + CHIPTestClusterBitmap8MaskMapMaskVal3 = 0x4, + CHIPTestClusterBitmap8MaskMapMaskVal4 = 0x40, +}; + +typedef NS_OPTIONS(uint8_t, CHIPTestClusterSimpleBitmap) { + CHIPTestClusterSimpleBitmapValueA = 0x1, + CHIPTestClusterSimpleBitmapValueB = 0x2, + CHIPTestClusterSimpleBitmapValueC = 0x4, +}; + NS_ASSUME_NONNULL_END #endif /* CHIP_CLUSTERS_H */ diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.h b/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.h index eaf1d61b7e1228..268776ff773762 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.h +++ b/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.h @@ -6417,7 +6417,19 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestParams : NSObject +@interface CHIPMessagingClusterDisplayMessageParams : NSObject + +@property (strong, nonatomic) NSNumber * _Nonnull messageId; + +@property (strong, nonatomic) NSNumber * _Nonnull messageControl; + +@property (strong, nonatomic) NSNumber * _Nonnull startTime; + +@property (strong, nonatomic) NSNumber * _Nonnull durationInMinutes; + +@property (strong, nonatomic) NSString * _Nonnull message; + +@property (strong, nonatomic) NSNumber * _Nonnull optionalExtendedMessageControl; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6436,9 +6448,7 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestSpecificResponseParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull returnValue; +@interface CHIPMessagingClusterGetLastMessageParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6457,7 +6467,11 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestNotHandledParams : NSObject +@interface CHIPMessagingClusterCancelMessageParams : NSObject + +@property (strong, nonatomic) NSNumber * _Nonnull messageId; + +@property (strong, nonatomic) NSNumber * _Nonnull messageControl; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6476,9 +6490,15 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestAddArgumentsResponseParams : NSObject +@interface CHIPMessagingClusterMessageConfirmationParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull returnValue; +@property (strong, nonatomic) NSNumber * _Nonnull messageId; + +@property (strong, nonatomic) NSNumber * _Nonnull confirmationTime; + +@property (strong, nonatomic) NSNumber * _Nonnull messageConfirmationControl; + +@property (strong, nonatomic) NSData * _Nonnull messageResponse; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6497,7 +6517,19 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestSpecificParams : NSObject +@interface CHIPMessagingClusterDisplayProtectedMessageParams : NSObject + +@property (strong, nonatomic) NSNumber * _Nonnull messageId; + +@property (strong, nonatomic) NSNumber * _Nonnull messageControl; + +@property (strong, nonatomic) NSNumber * _Nonnull startTime; + +@property (strong, nonatomic) NSNumber * _Nonnull durationInMinutes; + +@property (strong, nonatomic) NSString * _Nonnull message; + +@property (strong, nonatomic) NSNumber * _Nonnull optionalExtendedMessageControl; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6516,9 +6548,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestSimpleArgumentResponseParams : NSObject +@interface CHIPMessagingClusterGetMessageCancellationParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull returnValue; +@property (strong, nonatomic) NSNumber * _Nonnull earliestImplementationTime; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6537,7 +6569,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestUnknownCommandParams : NSObject +@interface CHIPMessagingClusterCancelAllMessagesParams : NSObject + +@property (strong, nonatomic) NSNumber * _Nonnull implementationDateTime; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6556,19 +6590,7 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestStructArrayArgumentResponseParams : NSObject - -@property (strong, nonatomic) NSArray * _Nonnull arg1; - -@property (strong, nonatomic) NSArray * _Nonnull arg2; - -@property (strong, nonatomic) NSArray * _Nonnull arg3; - -@property (strong, nonatomic) NSArray * _Nonnull arg4; - -@property (strong, nonatomic) NSNumber * _Nonnull arg5; - -@property (strong, nonatomic) NSNumber * _Nonnull arg6; +@interface CHIPApplianceEventsAndAlertClusterGetAlertsParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6587,11 +6609,11 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestAddArgumentsParams : NSObject +@interface CHIPApplianceEventsAndAlertClusterGetAlertsResponseParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull arg1; +@property (strong, nonatomic) NSNumber * _Nonnull alertsCount; -@property (strong, nonatomic) NSNumber * _Nonnull arg2; +@property (strong, nonatomic) NSArray * _Nonnull alertStructures; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6610,9 +6632,11 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestListInt8UReverseResponseParams : NSObject +@interface CHIPApplianceEventsAndAlertClusterAlertsNotificationParams : NSObject -@property (strong, nonatomic) NSArray * _Nonnull arg1; +@property (strong, nonatomic) NSNumber * _Nonnull alertsCount; + +@property (strong, nonatomic) NSArray * _Nonnull alertStructures; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6631,9 +6655,11 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestSimpleArgumentRequestParams : NSObject +@interface CHIPApplianceEventsAndAlertClusterEventsNotificationParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull arg1; +@property (strong, nonatomic) NSNumber * _Nonnull eventHeader; + +@property (strong, nonatomic) NSNumber * _Nonnull eventId; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6652,11 +6678,15 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestEnumsResponseParams : NSObject +@interface CHIPApplianceStatisticsClusterLogNotificationParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull arg1; +@property (strong, nonatomic) NSNumber * _Nonnull timeStamp; -@property (strong, nonatomic) NSNumber * _Nonnull arg2; +@property (strong, nonatomic) NSNumber * _Nonnull logId; + +@property (strong, nonatomic) NSNumber * _Nonnull logLength; + +@property (strong, nonatomic) NSArray * _Nonnull logPayload; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6675,19 +6705,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestStructArrayArgumentRequestParams : NSObject - -@property (strong, nonatomic) NSArray * _Nonnull arg1; - -@property (strong, nonatomic) NSArray * _Nonnull arg2; - -@property (strong, nonatomic) NSArray * _Nonnull arg3; - -@property (strong, nonatomic) NSArray * _Nonnull arg4; - -@property (strong, nonatomic) NSNumber * _Nonnull arg5; +@interface CHIPApplianceStatisticsClusterLogRequestParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull arg6; +@property (strong, nonatomic) NSNumber * _Nonnull logId; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6706,15 +6726,15 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestNullableOptionalResponseParams : NSObject +@interface CHIPApplianceStatisticsClusterLogResponseParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull wasPresent; +@property (strong, nonatomic) NSNumber * _Nonnull timeStamp; -@property (strong, nonatomic) NSNumber * _Nullable wasNull; +@property (strong, nonatomic) NSNumber * _Nonnull logId; -@property (strong, nonatomic) NSNumber * _Nullable value; +@property (strong, nonatomic) NSNumber * _Nonnull logLength; -@property (strong, nonatomic) NSNumber * _Nullable originalValue; +@property (strong, nonatomic) NSArray * _Nonnull logPayload; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6733,9 +6753,7 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestStructArgumentRequestParams : NSObject - -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nonnull arg1; +@interface CHIPApplianceStatisticsClusterLogQueueRequestParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6754,63 +6772,11 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestComplexNullableOptionalResponseParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull nullableIntWasNull; - -@property (strong, nonatomic) NSNumber * _Nullable nullableIntValue; - -@property (strong, nonatomic) NSNumber * _Nonnull optionalIntWasPresent; - -@property (strong, nonatomic) NSNumber * _Nullable optionalIntValue; - -@property (strong, nonatomic) NSNumber * _Nonnull nullableOptionalIntWasPresent; - -@property (strong, nonatomic) NSNumber * _Nullable nullableOptionalIntWasNull; - -@property (strong, nonatomic) NSNumber * _Nullable nullableOptionalIntValue; - -@property (strong, nonatomic) NSNumber * _Nonnull nullableStringWasNull; - -@property (strong, nonatomic) NSString * _Nullable nullableStringValue; - -@property (strong, nonatomic) NSNumber * _Nonnull optionalStringWasPresent; - -@property (strong, nonatomic) NSString * _Nullable optionalStringValue; - -@property (strong, nonatomic) NSNumber * _Nonnull nullableOptionalStringWasPresent; - -@property (strong, nonatomic) NSNumber * _Nullable nullableOptionalStringWasNull; - -@property (strong, nonatomic) NSString * _Nullable nullableOptionalStringValue; - -@property (strong, nonatomic) NSNumber * _Nonnull nullableStructWasNull; - -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable nullableStructValue; - -@property (strong, nonatomic) NSNumber * _Nonnull optionalStructWasPresent; - -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable optionalStructValue; - -@property (strong, nonatomic) NSNumber * _Nonnull nullableOptionalStructWasPresent; - -@property (strong, nonatomic) NSNumber * _Nullable nullableOptionalStructWasNull; - -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable nullableOptionalStructValue; - -@property (strong, nonatomic) NSNumber * _Nonnull nullableListWasNull; - -@property (strong, nonatomic) NSArray * _Nullable nullableListValue; - -@property (strong, nonatomic) NSNumber * _Nonnull optionalListWasPresent; - -@property (strong, nonatomic) NSArray * _Nullable optionalListValue; - -@property (strong, nonatomic) NSNumber * _Nonnull nullableOptionalListWasPresent; +@interface CHIPApplianceStatisticsClusterLogQueueResponseParams : NSObject -@property (strong, nonatomic) NSNumber * _Nullable nullableOptionalListWasNull; +@property (strong, nonatomic) NSNumber * _Nonnull logQueueSize; -@property (strong, nonatomic) NSArray * _Nullable nullableOptionalListValue; +@property (strong, nonatomic) NSArray * _Nonnull logIds; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6829,9 +6795,11 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestNestedStructArgumentRequestParams : NSObject +@interface CHIPApplianceStatisticsClusterStatisticsAvailableParams : NSObject -@property (strong, nonatomic) CHIPTestClusterClusterNestedStruct * _Nonnull arg1; +@property (strong, nonatomic) NSNumber * _Nonnull logQueueSize; + +@property (strong, nonatomic) NSArray * _Nonnull logIds; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6850,9 +6818,15 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterBooleanResponseParams : NSObject +@interface CHIPElectricalMeasurementClusterGetProfileInfoResponseCommandParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull value; +@property (strong, nonatomic) NSNumber * _Nonnull profileCount; + +@property (strong, nonatomic) NSNumber * _Nonnull profileIntervalPeriod; + +@property (strong, nonatomic) NSNumber * _Nonnull maxNumberOfIntervals; + +@property (strong, nonatomic) NSArray * _Nonnull listOfAttributes; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6871,9 +6845,7 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestListStructArgumentRequestParams : NSObject - -@property (strong, nonatomic) NSArray * _Nonnull arg1; +@interface CHIPElectricalMeasurementClusterGetProfileInfoCommandParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6892,9 +6864,19 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterSimpleStructResponseParams : NSObject +@interface CHIPElectricalMeasurementClusterGetMeasurementProfileResponseCommandParams : NSObject -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nonnull arg1; +@property (strong, nonatomic) NSNumber * _Nonnull startTime; + +@property (strong, nonatomic) NSNumber * _Nonnull status; + +@property (strong, nonatomic) NSNumber * _Nonnull profileIntervalPeriod; + +@property (strong, nonatomic) NSNumber * _Nonnull numberOfIntervalsDelivered; + +@property (strong, nonatomic) NSNumber * _Nonnull attributeId; + +@property (strong, nonatomic) NSArray * _Nonnull intervals; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6913,9 +6895,13 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestListInt8UArgumentRequestParams : NSObject +@interface CHIPElectricalMeasurementClusterGetMeasurementProfileCommandParams : NSObject -@property (strong, nonatomic) NSArray * _Nonnull arg1; +@property (strong, nonatomic) NSNumber * _Nonnull attributeId; + +@property (strong, nonatomic) NSNumber * _Nonnull startTime; + +@property (strong, nonatomic) NSNumber * _Nonnull numberOfIntervals; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6934,9 +6920,7 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestEmitTestEventResponseParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull value; +@interface CHIPTestClusterClusterTestParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6955,9 +6939,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestNestedStructListArgumentRequestParams : NSObject +@interface CHIPTestClusterClusterTestSpecificResponseParams : NSObject -@property (strong, nonatomic) CHIPTestClusterClusterNestedStructList * _Nonnull arg1; +@property (strong, nonatomic) NSNumber * _Nonnull returnValue; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6976,9 +6960,7 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestEmitTestFabricScopedEventResponseParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull value; +@interface CHIPTestClusterClusterTestNotHandledParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -6997,9 +6979,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestListNestedStructListArgumentRequestParams : NSObject +@interface CHIPTestClusterClusterTestAddArgumentsResponseParams : NSObject -@property (strong, nonatomic) NSArray * _Nonnull arg1; +@property (strong, nonatomic) NSNumber * _Nonnull returnValue; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7018,9 +7000,7 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestListInt8UReverseRequestParams : NSObject - -@property (strong, nonatomic) NSArray * _Nonnull arg1; +@interface CHIPTestClusterClusterTestSpecificParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7039,11 +7019,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestEnumsRequestParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull arg1; +@interface CHIPTestClusterClusterTestSimpleArgumentResponseParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull arg2; +@property (strong, nonatomic) NSNumber * _Nonnull returnValue; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7062,9 +7040,7 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestNullableOptionalRequestParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nullable arg1; +@interface CHIPTestClusterClusterTestUnknownCommandParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7083,31 +7059,19 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestComplexNullableOptionalRequestParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nullable nullableInt; - -@property (strong, nonatomic) NSNumber * _Nullable optionalInt; - -@property (strong, nonatomic) NSNumber * _Nullable nullableOptionalInt; - -@property (strong, nonatomic) NSString * _Nullable nullableString; - -@property (strong, nonatomic) NSString * _Nullable optionalString; - -@property (strong, nonatomic) NSString * _Nullable nullableOptionalString; +@interface CHIPTestClusterClusterTestStructArrayArgumentResponseParams : NSObject -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable nullableStruct; +@property (strong, nonatomic) NSArray * _Nonnull arg1; -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable optionalStruct; +@property (strong, nonatomic) NSArray * _Nonnull arg2; -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable nullableOptionalStruct; +@property (strong, nonatomic) NSArray * _Nonnull arg3; -@property (strong, nonatomic) NSArray * _Nullable nullableList; +@property (strong, nonatomic) NSArray * _Nonnull arg4; -@property (strong, nonatomic) NSArray * _Nullable optionalList; +@property (strong, nonatomic) NSNumber * _Nonnull arg5; -@property (strong, nonatomic) NSArray * _Nullable nullableOptionalList; +@property (strong, nonatomic) NSNumber * _Nonnull arg6; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7126,9 +7090,11 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterSimpleStructEchoRequestParams : NSObject +@interface CHIPTestClusterClusterTestAddArgumentsParams : NSObject -@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nonnull arg1; +@property (strong, nonatomic) NSNumber * _Nonnull arg1; + +@property (strong, nonatomic) NSNumber * _Nonnull arg2; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7147,7 +7113,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTimedInvokeRequestParams : NSObject +@interface CHIPTestClusterClusterTestListInt8UReverseResponseParams : NSObject + +@property (strong, nonatomic) NSArray * _Nonnull arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7166,9 +7134,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestSimpleOptionalArgumentRequestParams : NSObject +@interface CHIPTestClusterClusterTestSimpleArgumentRequestParams : NSObject -@property (strong, nonatomic) NSNumber * _Nullable arg1; +@property (strong, nonatomic) NSNumber * _Nonnull arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7187,13 +7155,11 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestEmitTestEventRequestParams : NSObject +@interface CHIPTestClusterClusterTestEnumsResponseParams : NSObject @property (strong, nonatomic) NSNumber * _Nonnull arg1; @property (strong, nonatomic) NSNumber * _Nonnull arg2; - -@property (strong, nonatomic) NSNumber * _Nonnull arg3; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7212,9 +7178,19 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPTestClusterClusterTestEmitTestFabricScopedEventRequestParams : NSObject +@interface CHIPTestClusterClusterTestStructArrayArgumentRequestParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull arg1; +@property (strong, nonatomic) NSArray * _Nonnull arg1; + +@property (strong, nonatomic) NSArray * _Nonnull arg2; + +@property (strong, nonatomic) NSArray * _Nonnull arg3; + +@property (strong, nonatomic) NSArray * _Nonnull arg4; + +@property (strong, nonatomic) NSNumber * _Nonnull arg5; + +@property (strong, nonatomic) NSNumber * _Nonnull arg6; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7233,19 +7209,15 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPMessagingClusterDisplayMessageParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull messageId; - -@property (strong, nonatomic) NSNumber * _Nonnull messageControl; +@interface CHIPTestClusterClusterTestNullableOptionalResponseParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull startTime; +@property (strong, nonatomic) NSNumber * _Nonnull wasPresent; -@property (strong, nonatomic) NSNumber * _Nonnull durationInMinutes; +@property (strong, nonatomic) NSNumber * _Nullable wasNull; -@property (strong, nonatomic) NSString * _Nonnull message; +@property (strong, nonatomic) NSNumber * _Nullable value; -@property (strong, nonatomic) NSNumber * _Nonnull optionalExtendedMessageControl; +@property (strong, nonatomic) NSNumber * _Nullable originalValue; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7264,7 +7236,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPMessagingClusterGetLastMessageParams : NSObject +@interface CHIPTestClusterClusterTestStructArgumentRequestParams : NSObject + +@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nonnull arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7283,11 +7257,63 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPMessagingClusterCancelMessageParams : NSObject +@interface CHIPTestClusterClusterTestComplexNullableOptionalResponseParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull messageId; +@property (strong, nonatomic) NSNumber * _Nonnull nullableIntWasNull; -@property (strong, nonatomic) NSNumber * _Nonnull messageControl; +@property (strong, nonatomic) NSNumber * _Nullable nullableIntValue; + +@property (strong, nonatomic) NSNumber * _Nonnull optionalIntWasPresent; + +@property (strong, nonatomic) NSNumber * _Nullable optionalIntValue; + +@property (strong, nonatomic) NSNumber * _Nonnull nullableOptionalIntWasPresent; + +@property (strong, nonatomic) NSNumber * _Nullable nullableOptionalIntWasNull; + +@property (strong, nonatomic) NSNumber * _Nullable nullableOptionalIntValue; + +@property (strong, nonatomic) NSNumber * _Nonnull nullableStringWasNull; + +@property (strong, nonatomic) NSString * _Nullable nullableStringValue; + +@property (strong, nonatomic) NSNumber * _Nonnull optionalStringWasPresent; + +@property (strong, nonatomic) NSString * _Nullable optionalStringValue; + +@property (strong, nonatomic) NSNumber * _Nonnull nullableOptionalStringWasPresent; + +@property (strong, nonatomic) NSNumber * _Nullable nullableOptionalStringWasNull; + +@property (strong, nonatomic) NSString * _Nullable nullableOptionalStringValue; + +@property (strong, nonatomic) NSNumber * _Nonnull nullableStructWasNull; + +@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable nullableStructValue; + +@property (strong, nonatomic) NSNumber * _Nonnull optionalStructWasPresent; + +@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable optionalStructValue; + +@property (strong, nonatomic) NSNumber * _Nonnull nullableOptionalStructWasPresent; + +@property (strong, nonatomic) NSNumber * _Nullable nullableOptionalStructWasNull; + +@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable nullableOptionalStructValue; + +@property (strong, nonatomic) NSNumber * _Nonnull nullableListWasNull; + +@property (strong, nonatomic) NSArray * _Nullable nullableListValue; + +@property (strong, nonatomic) NSNumber * _Nonnull optionalListWasPresent; + +@property (strong, nonatomic) NSArray * _Nullable optionalListValue; + +@property (strong, nonatomic) NSNumber * _Nonnull nullableOptionalListWasPresent; + +@property (strong, nonatomic) NSNumber * _Nullable nullableOptionalListWasNull; + +@property (strong, nonatomic) NSArray * _Nullable nullableOptionalListValue; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7306,15 +7332,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPMessagingClusterMessageConfirmationParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull messageId; - -@property (strong, nonatomic) NSNumber * _Nonnull confirmationTime; - -@property (strong, nonatomic) NSNumber * _Nonnull messageConfirmationControl; +@interface CHIPTestClusterClusterTestNestedStructArgumentRequestParams : NSObject -@property (strong, nonatomic) NSData * _Nonnull messageResponse; +@property (strong, nonatomic) CHIPTestClusterClusterNestedStruct * _Nonnull arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7333,19 +7353,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPMessagingClusterDisplayProtectedMessageParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull messageId; - -@property (strong, nonatomic) NSNumber * _Nonnull messageControl; - -@property (strong, nonatomic) NSNumber * _Nonnull startTime; - -@property (strong, nonatomic) NSNumber * _Nonnull durationInMinutes; - -@property (strong, nonatomic) NSString * _Nonnull message; +@interface CHIPTestClusterClusterBooleanResponseParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull optionalExtendedMessageControl; +@property (strong, nonatomic) NSNumber * _Nonnull value; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7364,9 +7374,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPMessagingClusterGetMessageCancellationParams : NSObject +@interface CHIPTestClusterClusterTestListStructArgumentRequestParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull earliestImplementationTime; +@property (strong, nonatomic) NSArray * _Nonnull arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7385,9 +7395,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPMessagingClusterCancelAllMessagesParams : NSObject +@interface CHIPTestClusterClusterSimpleStructResponseParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull implementationDateTime; +@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nonnull arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7406,7 +7416,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPApplianceEventsAndAlertClusterGetAlertsParams : NSObject +@interface CHIPTestClusterClusterTestListInt8UArgumentRequestParams : NSObject + +@property (strong, nonatomic) NSArray * _Nonnull arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7425,11 +7437,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPApplianceEventsAndAlertClusterGetAlertsResponseParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull alertsCount; +@interface CHIPTestClusterClusterTestEmitTestEventResponseParams : NSObject -@property (strong, nonatomic) NSArray * _Nonnull alertStructures; +@property (strong, nonatomic) NSNumber * _Nonnull value; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7448,11 +7458,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPApplianceEventsAndAlertClusterAlertsNotificationParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull alertsCount; +@interface CHIPTestClusterClusterTestNestedStructListArgumentRequestParams : NSObject -@property (strong, nonatomic) NSArray * _Nonnull alertStructures; +@property (strong, nonatomic) CHIPTestClusterClusterNestedStructList * _Nonnull arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7471,11 +7479,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPApplianceEventsAndAlertClusterEventsNotificationParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull eventHeader; +@interface CHIPTestClusterClusterTestEmitTestFabricScopedEventResponseParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull eventId; +@property (strong, nonatomic) NSNumber * _Nonnull value; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7494,15 +7500,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPApplianceStatisticsClusterLogNotificationParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull timeStamp; - -@property (strong, nonatomic) NSNumber * _Nonnull logId; - -@property (strong, nonatomic) NSNumber * _Nonnull logLength; +@interface CHIPTestClusterClusterTestListNestedStructListArgumentRequestParams : NSObject -@property (strong, nonatomic) NSArray * _Nonnull logPayload; +@property (strong, nonatomic) NSArray * _Nonnull arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7521,9 +7521,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPApplianceStatisticsClusterLogRequestParams : NSObject +@interface CHIPTestClusterClusterTestListInt8UReverseRequestParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull logId; +@property (strong, nonatomic) NSArray * _Nonnull arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7542,15 +7542,11 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPApplianceStatisticsClusterLogResponseParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull timeStamp; - -@property (strong, nonatomic) NSNumber * _Nonnull logId; +@interface CHIPTestClusterClusterTestEnumsRequestParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull logLength; +@property (strong, nonatomic) NSNumber * _Nonnull arg1; -@property (strong, nonatomic) NSArray * _Nonnull logPayload; +@property (strong, nonatomic) NSNumber * _Nonnull arg2; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7569,7 +7565,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPApplianceStatisticsClusterLogQueueRequestParams : NSObject +@interface CHIPTestClusterClusterTestNullableOptionalRequestParams : NSObject + +@property (strong, nonatomic) NSNumber * _Nullable arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7588,11 +7586,31 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPApplianceStatisticsClusterLogQueueResponseParams : NSObject +@interface CHIPTestClusterClusterTestComplexNullableOptionalRequestParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull logQueueSize; +@property (strong, nonatomic) NSNumber * _Nullable nullableInt; -@property (strong, nonatomic) NSArray * _Nonnull logIds; +@property (strong, nonatomic) NSNumber * _Nullable optionalInt; + +@property (strong, nonatomic) NSNumber * _Nullable nullableOptionalInt; + +@property (strong, nonatomic) NSString * _Nullable nullableString; + +@property (strong, nonatomic) NSString * _Nullable optionalString; + +@property (strong, nonatomic) NSString * _Nullable nullableOptionalString; + +@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable nullableStruct; + +@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable optionalStruct; + +@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nullable nullableOptionalStruct; + +@property (strong, nonatomic) NSArray * _Nullable nullableList; + +@property (strong, nonatomic) NSArray * _Nullable optionalList; + +@property (strong, nonatomic) NSArray * _Nullable nullableOptionalList; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7611,11 +7629,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPApplianceStatisticsClusterStatisticsAvailableParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull logQueueSize; +@interface CHIPTestClusterClusterSimpleStructEchoRequestParams : NSObject -@property (strong, nonatomic) NSArray * _Nonnull logIds; +@property (strong, nonatomic) CHIPTestClusterClusterSimpleStruct * _Nonnull arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7634,15 +7650,7 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPElectricalMeasurementClusterGetProfileInfoResponseCommandParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull profileCount; - -@property (strong, nonatomic) NSNumber * _Nonnull profileIntervalPeriod; - -@property (strong, nonatomic) NSNumber * _Nonnull maxNumberOfIntervals; - -@property (strong, nonatomic) NSArray * _Nonnull listOfAttributes; +@interface CHIPTestClusterClusterTimedInvokeRequestParams : NSObject /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7661,7 +7669,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPElectricalMeasurementClusterGetProfileInfoCommandParams : NSObject +@interface CHIPTestClusterClusterTestSimpleOptionalArgumentRequestParams : NSObject + +@property (strong, nonatomic) NSNumber * _Nullable arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7680,19 +7690,13 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPElectricalMeasurementClusterGetMeasurementProfileResponseCommandParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull startTime; - -@property (strong, nonatomic) NSNumber * _Nonnull status; - -@property (strong, nonatomic) NSNumber * _Nonnull profileIntervalPeriod; +@interface CHIPTestClusterClusterTestEmitTestEventRequestParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull numberOfIntervalsDelivered; +@property (strong, nonatomic) NSNumber * _Nonnull arg1; -@property (strong, nonatomic) NSNumber * _Nonnull attributeId; +@property (strong, nonatomic) NSNumber * _Nonnull arg2; -@property (strong, nonatomic) NSArray * _Nonnull intervals; +@property (strong, nonatomic) NSNumber * _Nonnull arg3; /** * Controls whether the command is a timed command (using Timed Invoke). * @@ -7711,13 +7715,9 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init; @end -@interface CHIPElectricalMeasurementClusterGetMeasurementProfileCommandParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull attributeId; - -@property (strong, nonatomic) NSNumber * _Nonnull startTime; +@interface CHIPTestClusterClusterTestEmitTestFabricScopedEventRequestParams : NSObject -@property (strong, nonatomic) NSNumber * _Nonnull numberOfIntervals; +@property (strong, nonatomic) NSNumber * _Nonnull arg1; /** * Controls whether the command is a timed command (using Timed Invoke). * diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.mm b/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.mm index 5741b5c150d0e8..7f249b45f34dea 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.mm +++ b/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.mm @@ -5894,7 +5894,39 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestParams +@implementation CHIPMessagingClusterDisplayMessageParams +- (instancetype)init +{ + if (self = [super init]) { + + _messageId = @(0); + + _messageControl = @(0); + + _startTime = @(0); + + _durationInMinutes = @(0); + + _message = @""; + + _optionalExtendedMessageControl = @(0); + _timedInvokeTimeoutMs = nil; + } + return self; +} + +- (NSString *)description +{ + NSString * descriptionString = + [NSString stringWithFormat:@"<%@: messageId:%@; messageControl:%@; startTime:%@; durationInMinutes:%@; message:%@; " + @"optionalExtendedMessageControl:%@; >", + NSStringFromClass([self class]), _messageId, _messageControl, _startTime, _durationInMinutes, _message, + _optionalExtendedMessageControl]; + return descriptionString; +} + +@end +@implementation CHIPMessagingClusterGetLastMessageParams - (instancetype)init { if (self = [super init]) { @@ -5910,12 +5942,14 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestSpecificResponseParams +@implementation CHIPMessagingClusterCancelMessageParams - (instancetype)init { if (self = [super init]) { - _returnValue = @(0); + _messageId = @(0); + + _messageControl = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -5923,16 +5957,24 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: returnValue:%@; >", NSStringFromClass([self class]), _returnValue]; + NSString * descriptionString = [NSString + stringWithFormat:@"<%@: messageId:%@; messageControl:%@; >", NSStringFromClass([self class]), _messageId, _messageControl]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestNotHandledParams +@implementation CHIPMessagingClusterMessageConfirmationParams - (instancetype)init { if (self = [super init]) { + + _messageId = @(0); + + _confirmationTime = @(0); + + _messageConfirmationControl = @(0); + + _messageResponse = [NSData data]; _timedInvokeTimeoutMs = nil; } return self; @@ -5940,17 +5982,30 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; + NSString * descriptionString = + [NSString stringWithFormat:@"<%@: messageId:%@; confirmationTime:%@; messageConfirmationControl:%@; messageResponse:%@; >", + NSStringFromClass([self class]), _messageId, _confirmationTime, _messageConfirmationControl, + [_messageResponse base64EncodedStringWithOptions:0]]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestAddArgumentsResponseParams +@implementation CHIPMessagingClusterDisplayProtectedMessageParams - (instancetype)init { if (self = [super init]) { - _returnValue = @(0); + _messageId = @(0); + + _messageControl = @(0); + + _startTime = @(0); + + _durationInMinutes = @(0); + + _message = @""; + + _optionalExtendedMessageControl = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -5959,15 +6014,20 @@ - (instancetype)init - (NSString *)description { NSString * descriptionString = - [NSString stringWithFormat:@"<%@: returnValue:%@; >", NSStringFromClass([self class]), _returnValue]; + [NSString stringWithFormat:@"<%@: messageId:%@; messageControl:%@; startTime:%@; durationInMinutes:%@; message:%@; " + @"optionalExtendedMessageControl:%@; >", + NSStringFromClass([self class]), _messageId, _messageControl, _startTime, _durationInMinutes, _message, + _optionalExtendedMessageControl]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestSpecificParams +@implementation CHIPMessagingClusterGetMessageCancellationParams - (instancetype)init { if (self = [super init]) { + + _earliestImplementationTime = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -5975,17 +6035,18 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; + NSString * descriptionString = [NSString + stringWithFormat:@"<%@: earliestImplementationTime:%@; >", NSStringFromClass([self class]), _earliestImplementationTime]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestSimpleArgumentResponseParams +@implementation CHIPMessagingClusterCancelAllMessagesParams - (instancetype)init { if (self = [super init]) { - _returnValue = @(0); + _implementationDateTime = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -5994,12 +6055,12 @@ - (instancetype)init - (NSString *)description { NSString * descriptionString = - [NSString stringWithFormat:@"<%@: returnValue:%@; >", NSStringFromClass([self class]), _returnValue]; + [NSString stringWithFormat:@"<%@: implementationDateTime:%@; >", NSStringFromClass([self class]), _implementationDateTime]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestUnknownCommandParams +@implementation CHIPApplianceEventsAndAlertClusterGetAlertsParams - (instancetype)init { if (self = [super init]) { @@ -6015,22 +6076,14 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTestStructArrayArgumentResponseParams +@implementation CHIPApplianceEventsAndAlertClusterGetAlertsResponseParams - (instancetype)init { if (self = [super init]) { - _arg1 = [NSArray array]; - - _arg2 = [NSArray array]; - - _arg3 = [NSArray array]; - - _arg4 = [NSArray array]; - - _arg5 = @(0); + _alertsCount = @(0); - _arg6 = @(0); + _alertStructures = [NSArray array]; _timedInvokeTimeoutMs = nil; } return self; @@ -6038,20 +6091,20 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; arg2:%@; arg3:%@; arg4:%@; arg5:%@; arg6:%@; >", - NSStringFromClass([self class]), _arg1, _arg2, _arg3, _arg4, _arg5, _arg6]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: alertsCount:%@; alertStructures:%@; >", + NSStringFromClass([self class]), _alertsCount, _alertStructures]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestAddArgumentsParams +@implementation CHIPApplianceEventsAndAlertClusterAlertsNotificationParams - (instancetype)init { if (self = [super init]) { - _arg1 = @(0); + _alertsCount = @(0); - _arg2 = @(0); + _alertStructures = [NSArray array]; _timedInvokeTimeoutMs = nil; } return self; @@ -6059,18 +6112,20 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: arg1:%@; arg2:%@; >", NSStringFromClass([self class]), _arg1, _arg2]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: alertsCount:%@; alertStructures:%@; >", + NSStringFromClass([self class]), _alertsCount, _alertStructures]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestListInt8UReverseResponseParams +@implementation CHIPApplianceEventsAndAlertClusterEventsNotificationParams - (instancetype)init { if (self = [super init]) { - _arg1 = [NSArray array]; + _eventHeader = @(0); + + _eventId = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -6078,17 +6133,24 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; + NSString * descriptionString = + [NSString stringWithFormat:@"<%@: eventHeader:%@; eventId:%@; >", NSStringFromClass([self class]), _eventHeader, _eventId]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestSimpleArgumentRequestParams +@implementation CHIPApplianceStatisticsClusterLogNotificationParams - (instancetype)init { if (self = [super init]) { - _arg1 = @(0); + _timeStamp = @(0); + + _logId = @(0); + + _logLength = @(0); + + _logPayload = [NSArray array]; _timedInvokeTimeoutMs = nil; } return self; @@ -6096,19 +6158,18 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: timeStamp:%@; logId:%@; logLength:%@; logPayload:%@; >", + NSStringFromClass([self class]), _timeStamp, _logId, _logLength, _logPayload]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestEnumsResponseParams +@implementation CHIPApplianceStatisticsClusterLogRequestParams - (instancetype)init { if (self = [super init]) { - _arg1 = @(0); - - _arg2 = @(0); + _logId = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -6116,28 +6177,23 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: arg1:%@; arg2:%@; >", NSStringFromClass([self class]), _arg1, _arg2]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: logId:%@; >", NSStringFromClass([self class]), _logId]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestStructArrayArgumentRequestParams +@implementation CHIPApplianceStatisticsClusterLogResponseParams - (instancetype)init { if (self = [super init]) { - _arg1 = [NSArray array]; - - _arg2 = [NSArray array]; - - _arg3 = [NSArray array]; + _timeStamp = @(0); - _arg4 = [NSArray array]; + _logId = @(0); - _arg5 = @(0); + _logLength = @(0); - _arg6 = @(0); + _logPayload = [NSArray array]; _timedInvokeTimeoutMs = nil; } return self; @@ -6145,24 +6201,16 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; arg2:%@; arg3:%@; arg4:%@; arg5:%@; arg6:%@; >", - NSStringFromClass([self class]), _arg1, _arg2, _arg3, _arg4, _arg5, _arg6]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: timeStamp:%@; logId:%@; logLength:%@; logPayload:%@; >", + NSStringFromClass([self class]), _timeStamp, _logId, _logLength, _logPayload]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestNullableOptionalResponseParams +@implementation CHIPApplianceStatisticsClusterLogQueueRequestParams - (instancetype)init { if (self = [super init]) { - - _wasPresent = @(0); - - _wasNull = nil; - - _value = nil; - - _originalValue = nil; _timedInvokeTimeoutMs = nil; } return self; @@ -6170,18 +6218,19 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: wasPresent:%@; wasNull:%@; value:%@; originalValue:%@; >", - NSStringFromClass([self class]), _wasPresent, _wasNull, _value, _originalValue]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestStructArgumentRequestParams +@implementation CHIPApplianceStatisticsClusterLogQueueResponseParams - (instancetype)init { if (self = [super init]) { - _arg1 = [CHIPTestClusterClusterSimpleStruct new]; + _logQueueSize = @(0); + + _logIds = [NSArray array]; _timedInvokeTimeoutMs = nil; } return self; @@ -6189,104 +6238,63 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; + NSString * descriptionString = + [NSString stringWithFormat:@"<%@: logQueueSize:%@; logIds:%@; >", NSStringFromClass([self class]), _logQueueSize, _logIds]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestComplexNullableOptionalResponseParams +@implementation CHIPApplianceStatisticsClusterStatisticsAvailableParams - (instancetype)init { if (self = [super init]) { - _nullableIntWasNull = @(0); - - _nullableIntValue = nil; - - _optionalIntWasPresent = @(0); - - _optionalIntValue = nil; - - _nullableOptionalIntWasPresent = @(0); - - _nullableOptionalIntWasNull = nil; - - _nullableOptionalIntValue = nil; - - _nullableStringWasNull = @(0); - - _nullableStringValue = nil; - - _optionalStringWasPresent = @(0); - - _optionalStringValue = nil; - - _nullableOptionalStringWasPresent = @(0); - - _nullableOptionalStringWasNull = nil; - - _nullableOptionalStringValue = nil; - - _nullableStructWasNull = @(0); - - _nullableStructValue = nil; - - _optionalStructWasPresent = @(0); - - _optionalStructValue = nil; - - _nullableOptionalStructWasPresent = @(0); - - _nullableOptionalStructWasNull = nil; - - _nullableOptionalStructValue = nil; + _logQueueSize = @(0); - _nullableListWasNull = @(0); + _logIds = [NSArray array]; + _timedInvokeTimeoutMs = nil; + } + return self; +} - _nullableListValue = nil; +- (NSString *)description +{ + NSString * descriptionString = + [NSString stringWithFormat:@"<%@: logQueueSize:%@; logIds:%@; >", NSStringFromClass([self class]), _logQueueSize, _logIds]; + return descriptionString; +} - _optionalListWasPresent = @(0); +@end +@implementation CHIPElectricalMeasurementClusterGetProfileInfoResponseCommandParams +- (instancetype)init +{ + if (self = [super init]) { - _optionalListValue = nil; + _profileCount = @(0); - _nullableOptionalListWasPresent = @(0); + _profileIntervalPeriod = @(0); - _nullableOptionalListWasNull = nil; + _maxNumberOfIntervals = @(0); - _nullableOptionalListValue = nil; + _listOfAttributes = [NSArray array]; _timedInvokeTimeoutMs = nil; } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = [NSString - stringWithFormat:@"<%@: nullableIntWasNull:%@; nullableIntValue:%@; optionalIntWasPresent:%@; optionalIntValue:%@; " - @"nullableOptionalIntWasPresent:%@; nullableOptionalIntWasNull:%@; nullableOptionalIntValue:%@; " - @"nullableStringWasNull:%@; nullableStringValue:%@; optionalStringWasPresent:%@; optionalStringValue:%@; " - @"nullableOptionalStringWasPresent:%@; nullableOptionalStringWasNull:%@; nullableOptionalStringValue:%@; " - @"nullableStructWasNull:%@; nullableStructValue:%@; optionalStructWasPresent:%@; optionalStructValue:%@; " - @"nullableOptionalStructWasPresent:%@; nullableOptionalStructWasNull:%@; nullableOptionalStructValue:%@; " - @"nullableListWasNull:%@; nullableListValue:%@; optionalListWasPresent:%@; optionalListValue:%@; " - @"nullableOptionalListWasPresent:%@; nullableOptionalListWasNull:%@; nullableOptionalListValue:%@; >", - NSStringFromClass([self class]), _nullableIntWasNull, _nullableIntValue, _optionalIntWasPresent, _optionalIntValue, - _nullableOptionalIntWasPresent, _nullableOptionalIntWasNull, _nullableOptionalIntValue, _nullableStringWasNull, - _nullableStringValue, _optionalStringWasPresent, _optionalStringValue, _nullableOptionalStringWasPresent, - _nullableOptionalStringWasNull, _nullableOptionalStringValue, _nullableStructWasNull, _nullableStructValue, - _optionalStructWasPresent, _optionalStructValue, _nullableOptionalStructWasPresent, _nullableOptionalStructWasNull, - _nullableOptionalStructValue, _nullableListWasNull, _nullableListValue, _optionalListWasPresent, _optionalListValue, - _nullableOptionalListWasPresent, _nullableOptionalListWasNull, _nullableOptionalListValue]; + return self; +} + +- (NSString *)description +{ + NSString * descriptionString = [NSString + stringWithFormat:@"<%@: profileCount:%@; profileIntervalPeriod:%@; maxNumberOfIntervals:%@; listOfAttributes:%@; >", + NSStringFromClass([self class]), _profileCount, _profileIntervalPeriod, _maxNumberOfIntervals, _listOfAttributes]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestNestedStructArgumentRequestParams +@implementation CHIPElectricalMeasurementClusterGetProfileInfoCommandParams - (instancetype)init { if (self = [super init]) { - - _arg1 = [CHIPTestClusterClusterNestedStruct new]; _timedInvokeTimeoutMs = nil; } return self; @@ -6294,17 +6302,27 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; return descriptionString; } @end -@implementation CHIPTestClusterClusterBooleanResponseParams +@implementation CHIPElectricalMeasurementClusterGetMeasurementProfileResponseCommandParams - (instancetype)init { if (self = [super init]) { - _value = @(0); + _startTime = @(0); + + _status = @(0); + + _profileIntervalPeriod = @(0); + + _numberOfIntervalsDelivered = @(0); + + _attributeId = @(0); + + _intervals = [NSArray array]; _timedInvokeTimeoutMs = nil; } return self; @@ -6312,17 +6330,24 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: value:%@; >", NSStringFromClass([self class]), _value]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: startTime:%@; status:%@; profileIntervalPeriod:%@; " + @"numberOfIntervalsDelivered:%@; attributeId:%@; intervals:%@; >", + NSStringFromClass([self class]), _startTime, _status, _profileIntervalPeriod, + _numberOfIntervalsDelivered, _attributeId, _intervals]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestListStructArgumentRequestParams +@implementation CHIPElectricalMeasurementClusterGetMeasurementProfileCommandParams - (instancetype)init { if (self = [super init]) { - _arg1 = [NSArray array]; + _attributeId = @(0); + + _startTime = @(0); + + _numberOfIntervals = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -6330,17 +6355,16 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: attributeId:%@; startTime:%@; numberOfIntervals:%@; >", + NSStringFromClass([self class]), _attributeId, _startTime, _numberOfIntervals]; return descriptionString; } @end -@implementation CHIPTestClusterClusterSimpleStructResponseParams +@implementation CHIPTestClusterClusterTestParams - (instancetype)init { if (self = [super init]) { - - _arg1 = [CHIPTestClusterClusterSimpleStruct new]; _timedInvokeTimeoutMs = nil; } return self; @@ -6348,17 +6372,17 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestListInt8UArgumentRequestParams +@implementation CHIPTestClusterClusterTestSpecificResponseParams - (instancetype)init { if (self = [super init]) { - _arg1 = [NSArray array]; + _returnValue = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -6366,17 +6390,16 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; + NSString * descriptionString = + [NSString stringWithFormat:@"<%@: returnValue:%@; >", NSStringFromClass([self class]), _returnValue]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestEmitTestEventResponseParams +@implementation CHIPTestClusterClusterTestNotHandledParams - (instancetype)init { if (self = [super init]) { - - _value = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -6384,17 +6407,17 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: value:%@; >", NSStringFromClass([self class]), _value]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestNestedStructListArgumentRequestParams +@implementation CHIPTestClusterClusterTestAddArgumentsResponseParams - (instancetype)init { if (self = [super init]) { - _arg1 = [CHIPTestClusterClusterNestedStructList new]; + _returnValue = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -6402,17 +6425,16 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; + NSString * descriptionString = + [NSString stringWithFormat:@"<%@: returnValue:%@; >", NSStringFromClass([self class]), _returnValue]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestEmitTestFabricScopedEventResponseParams +@implementation CHIPTestClusterClusterTestSpecificParams - (instancetype)init { if (self = [super init]) { - - _value = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -6420,17 +6442,17 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: value:%@; >", NSStringFromClass([self class]), _value]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestListNestedStructListArgumentRequestParams +@implementation CHIPTestClusterClusterTestSimpleArgumentResponseParams - (instancetype)init { if (self = [super init]) { - _arg1 = [NSArray array]; + _returnValue = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -6438,17 +6460,16 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; + NSString * descriptionString = + [NSString stringWithFormat:@"<%@: returnValue:%@; >", NSStringFromClass([self class]), _returnValue]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestListInt8UReverseRequestParams +@implementation CHIPTestClusterClusterTestUnknownCommandParams - (instancetype)init { if (self = [super init]) { - - _arg1 = [NSArray array]; _timedInvokeTimeoutMs = nil; } return self; @@ -6456,19 +6477,27 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestEnumsRequestParams +@implementation CHIPTestClusterClusterTestStructArrayArgumentResponseParams - (instancetype)init { if (self = [super init]) { - _arg1 = @(0); + _arg1 = [NSArray array]; - _arg2 = @(0); + _arg2 = [NSArray array]; + + _arg3 = [NSArray array]; + + _arg4 = [NSArray array]; + + _arg5 = @(0); + + _arg6 = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -6476,18 +6505,20 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: arg1:%@; arg2:%@; >", NSStringFromClass([self class]), _arg1, _arg2]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; arg2:%@; arg3:%@; arg4:%@; arg5:%@; arg6:%@; >", + NSStringFromClass([self class]), _arg1, _arg2, _arg3, _arg4, _arg5, _arg6]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestNullableOptionalRequestParams +@implementation CHIPTestClusterClusterTestAddArgumentsParams - (instancetype)init { if (self = [super init]) { - _arg1 = nil; + _arg1 = @(0); + + _arg2 = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -6495,39 +6526,18 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; + NSString * descriptionString = + [NSString stringWithFormat:@"<%@: arg1:%@; arg2:%@; >", NSStringFromClass([self class]), _arg1, _arg2]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestComplexNullableOptionalRequestParams +@implementation CHIPTestClusterClusterTestListInt8UReverseResponseParams - (instancetype)init { if (self = [super init]) { - _nullableInt = nil; - - _optionalInt = nil; - - _nullableOptionalInt = nil; - - _nullableString = nil; - - _optionalString = nil; - - _nullableOptionalString = nil; - - _nullableStruct = nil; - - _optionalStruct = nil; - - _nullableOptionalStruct = nil; - - _nullableList = nil; - - _optionalList = nil; - - _nullableOptionalList = nil; + _arg1 = [NSArray array]; _timedInvokeTimeoutMs = nil; } return self; @@ -6535,23 +6545,17 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: nullableInt:%@; optionalInt:%@; nullableOptionalInt:%@; nullableString:%@; " - @"optionalString:%@; nullableOptionalString:%@; nullableStruct:%@; optionalStruct:%@; " - @"nullableOptionalStruct:%@; nullableList:%@; optionalList:%@; nullableOptionalList:%@; >", - NSStringFromClass([self class]), _nullableInt, _optionalInt, _nullableOptionalInt, _nullableString, - _optionalString, _nullableOptionalString, _nullableStruct, _optionalStruct, _nullableOptionalStruct, - _nullableList, _optionalList, _nullableOptionalList]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; return descriptionString; } @end -@implementation CHIPTestClusterClusterSimpleStructEchoRequestParams +@implementation CHIPTestClusterClusterTestSimpleArgumentRequestParams - (instancetype)init { if (self = [super init]) { - _arg1 = [CHIPTestClusterClusterSimpleStruct new]; + _arg1 = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -6564,10 +6568,14 @@ - (NSString *)description } @end -@implementation CHIPTestClusterClusterTimedInvokeRequestParams +@implementation CHIPTestClusterClusterTestEnumsResponseParams - (instancetype)init { if (self = [super init]) { + + _arg1 = @(0); + + _arg2 = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -6575,17 +6583,28 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; + NSString * descriptionString = + [NSString stringWithFormat:@"<%@: arg1:%@; arg2:%@; >", NSStringFromClass([self class]), _arg1, _arg2]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestSimpleOptionalArgumentRequestParams +@implementation CHIPTestClusterClusterTestStructArrayArgumentRequestParams - (instancetype)init { if (self = [super init]) { - _arg1 = nil; + _arg1 = [NSArray array]; + + _arg2 = [NSArray array]; + + _arg3 = [NSArray array]; + + _arg4 = [NSArray array]; + + _arg5 = @(0); + + _arg6 = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -6593,21 +6612,24 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; arg2:%@; arg3:%@; arg4:%@; arg5:%@; arg6:%@; >", + NSStringFromClass([self class]), _arg1, _arg2, _arg3, _arg4, _arg5, _arg6]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestEmitTestEventRequestParams +@implementation CHIPTestClusterClusterTestNullableOptionalResponseParams - (instancetype)init { if (self = [super init]) { - _arg1 = @(0); + _wasPresent = @(0); - _arg2 = @(0); + _wasNull = nil; - _arg3 = @(0); + _value = nil; + + _originalValue = nil; _timedInvokeTimeoutMs = nil; } return self; @@ -6615,18 +6637,18 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: arg1:%@; arg2:%@; arg3:%@; >", NSStringFromClass([self class]), _arg1, _arg2, _arg3]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: wasPresent:%@; wasNull:%@; value:%@; originalValue:%@; >", + NSStringFromClass([self class]), _wasPresent, _wasNull, _value, _originalValue]; return descriptionString; } @end -@implementation CHIPTestClusterClusterTestEmitTestFabricScopedEventRequestParams +@implementation CHIPTestClusterClusterTestStructArgumentRequestParams - (instancetype)init { if (self = [super init]) { - _arg1 = @(0); + _arg1 = [CHIPTestClusterClusterSimpleStruct new]; _timedInvokeTimeoutMs = nil; } return self; @@ -6639,22 +6661,66 @@ - (NSString *)description } @end -@implementation CHIPMessagingClusterDisplayMessageParams +@implementation CHIPTestClusterClusterTestComplexNullableOptionalResponseParams - (instancetype)init { if (self = [super init]) { - _messageId = @(0); + _nullableIntWasNull = @(0); - _messageControl = @(0); + _nullableIntValue = nil; - _startTime = @(0); + _optionalIntWasPresent = @(0); - _durationInMinutes = @(0); + _optionalIntValue = nil; - _message = @""; + _nullableOptionalIntWasPresent = @(0); - _optionalExtendedMessageControl = @(0); + _nullableOptionalIntWasNull = nil; + + _nullableOptionalIntValue = nil; + + _nullableStringWasNull = @(0); + + _nullableStringValue = nil; + + _optionalStringWasPresent = @(0); + + _optionalStringValue = nil; + + _nullableOptionalStringWasPresent = @(0); + + _nullableOptionalStringWasNull = nil; + + _nullableOptionalStringValue = nil; + + _nullableStructWasNull = @(0); + + _nullableStructValue = nil; + + _optionalStructWasPresent = @(0); + + _optionalStructValue = nil; + + _nullableOptionalStructWasPresent = @(0); + + _nullableOptionalStructWasNull = nil; + + _nullableOptionalStructValue = nil; + + _nullableListWasNull = @(0); + + _nullableListValue = nil; + + _optionalListWasPresent = @(0); + + _optionalListValue = nil; + + _nullableOptionalListWasPresent = @(0); + + _nullableOptionalListWasNull = nil; + + _nullableOptionalListValue = nil; _timedInvokeTimeoutMs = nil; } return self; @@ -6662,19 +6728,32 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: messageId:%@; messageControl:%@; startTime:%@; durationInMinutes:%@; message:%@; " - @"optionalExtendedMessageControl:%@; >", - NSStringFromClass([self class]), _messageId, _messageControl, _startTime, _durationInMinutes, _message, - _optionalExtendedMessageControl]; + NSString * descriptionString = [NSString + stringWithFormat:@"<%@: nullableIntWasNull:%@; nullableIntValue:%@; optionalIntWasPresent:%@; optionalIntValue:%@; " + @"nullableOptionalIntWasPresent:%@; nullableOptionalIntWasNull:%@; nullableOptionalIntValue:%@; " + @"nullableStringWasNull:%@; nullableStringValue:%@; optionalStringWasPresent:%@; optionalStringValue:%@; " + @"nullableOptionalStringWasPresent:%@; nullableOptionalStringWasNull:%@; nullableOptionalStringValue:%@; " + @"nullableStructWasNull:%@; nullableStructValue:%@; optionalStructWasPresent:%@; optionalStructValue:%@; " + @"nullableOptionalStructWasPresent:%@; nullableOptionalStructWasNull:%@; nullableOptionalStructValue:%@; " + @"nullableListWasNull:%@; nullableListValue:%@; optionalListWasPresent:%@; optionalListValue:%@; " + @"nullableOptionalListWasPresent:%@; nullableOptionalListWasNull:%@; nullableOptionalListValue:%@; >", + NSStringFromClass([self class]), _nullableIntWasNull, _nullableIntValue, _optionalIntWasPresent, _optionalIntValue, + _nullableOptionalIntWasPresent, _nullableOptionalIntWasNull, _nullableOptionalIntValue, _nullableStringWasNull, + _nullableStringValue, _optionalStringWasPresent, _optionalStringValue, _nullableOptionalStringWasPresent, + _nullableOptionalStringWasNull, _nullableOptionalStringValue, _nullableStructWasNull, _nullableStructValue, + _optionalStructWasPresent, _optionalStructValue, _nullableOptionalStructWasPresent, _nullableOptionalStructWasNull, + _nullableOptionalStructValue, _nullableListWasNull, _nullableListValue, _optionalListWasPresent, _optionalListValue, + _nullableOptionalListWasPresent, _nullableOptionalListWasNull, _nullableOptionalListValue]; return descriptionString; } @end -@implementation CHIPMessagingClusterGetLastMessageParams +@implementation CHIPTestClusterClusterTestNestedStructArgumentRequestParams - (instancetype)init { if (self = [super init]) { + + _arg1 = [CHIPTestClusterClusterNestedStruct new]; _timedInvokeTimeoutMs = nil; } return self; @@ -6682,19 +6761,17 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; return descriptionString; } @end -@implementation CHIPMessagingClusterCancelMessageParams +@implementation CHIPTestClusterClusterBooleanResponseParams - (instancetype)init { if (self = [super init]) { - _messageId = @(0); - - _messageControl = @(0); + _value = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -6702,24 +6779,17 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString - stringWithFormat:@"<%@: messageId:%@; messageControl:%@; >", NSStringFromClass([self class]), _messageId, _messageControl]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: value:%@; >", NSStringFromClass([self class]), _value]; return descriptionString; } @end -@implementation CHIPMessagingClusterMessageConfirmationParams +@implementation CHIPTestClusterClusterTestListStructArgumentRequestParams - (instancetype)init { if (self = [super init]) { - _messageId = @(0); - - _confirmationTime = @(0); - - _messageConfirmationControl = @(0); - - _messageResponse = [NSData data]; + _arg1 = [NSArray array]; _timedInvokeTimeoutMs = nil; } return self; @@ -6727,30 +6797,17 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: messageId:%@; confirmationTime:%@; messageConfirmationControl:%@; messageResponse:%@; >", - NSStringFromClass([self class]), _messageId, _confirmationTime, _messageConfirmationControl, - [_messageResponse base64EncodedStringWithOptions:0]]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; return descriptionString; } @end -@implementation CHIPMessagingClusterDisplayProtectedMessageParams +@implementation CHIPTestClusterClusterSimpleStructResponseParams - (instancetype)init { if (self = [super init]) { - _messageId = @(0); - - _messageControl = @(0); - - _startTime = @(0); - - _durationInMinutes = @(0); - - _message = @""; - - _optionalExtendedMessageControl = @(0); + _arg1 = [CHIPTestClusterClusterSimpleStruct new]; _timedInvokeTimeoutMs = nil; } return self; @@ -6758,21 +6815,17 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: messageId:%@; messageControl:%@; startTime:%@; durationInMinutes:%@; message:%@; " - @"optionalExtendedMessageControl:%@; >", - NSStringFromClass([self class]), _messageId, _messageControl, _startTime, _durationInMinutes, _message, - _optionalExtendedMessageControl]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; return descriptionString; } @end -@implementation CHIPMessagingClusterGetMessageCancellationParams +@implementation CHIPTestClusterClusterTestListInt8UArgumentRequestParams - (instancetype)init { if (self = [super init]) { - _earliestImplementationTime = @(0); + _arg1 = [NSArray array]; _timedInvokeTimeoutMs = nil; } return self; @@ -6780,18 +6833,17 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString - stringWithFormat:@"<%@: earliestImplementationTime:%@; >", NSStringFromClass([self class]), _earliestImplementationTime]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; return descriptionString; } @end -@implementation CHIPMessagingClusterCancelAllMessagesParams +@implementation CHIPTestClusterClusterTestEmitTestEventResponseParams - (instancetype)init { if (self = [super init]) { - _implementationDateTime = @(0); + _value = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -6799,16 +6851,17 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: implementationDateTime:%@; >", NSStringFromClass([self class]), _implementationDateTime]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: value:%@; >", NSStringFromClass([self class]), _value]; return descriptionString; } @end -@implementation CHIPApplianceEventsAndAlertClusterGetAlertsParams +@implementation CHIPTestClusterClusterTestNestedStructListArgumentRequestParams - (instancetype)init { if (self = [super init]) { + + _arg1 = [CHIPTestClusterClusterNestedStructList new]; _timedInvokeTimeoutMs = nil; } return self; @@ -6816,19 +6869,17 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; return descriptionString; } @end -@implementation CHIPApplianceEventsAndAlertClusterGetAlertsResponseParams +@implementation CHIPTestClusterClusterTestEmitTestFabricScopedEventResponseParams - (instancetype)init { if (self = [super init]) { - _alertsCount = @(0); - - _alertStructures = [NSArray array]; + _value = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -6836,20 +6887,17 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: alertsCount:%@; alertStructures:%@; >", - NSStringFromClass([self class]), _alertsCount, _alertStructures]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: value:%@; >", NSStringFromClass([self class]), _value]; return descriptionString; } @end -@implementation CHIPApplianceEventsAndAlertClusterAlertsNotificationParams +@implementation CHIPTestClusterClusterTestListNestedStructListArgumentRequestParams - (instancetype)init { if (self = [super init]) { - _alertsCount = @(0); - - _alertStructures = [NSArray array]; + _arg1 = [NSArray array]; _timedInvokeTimeoutMs = nil; } return self; @@ -6857,20 +6905,17 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: alertsCount:%@; alertStructures:%@; >", - NSStringFromClass([self class]), _alertsCount, _alertStructures]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; return descriptionString; } @end -@implementation CHIPApplianceEventsAndAlertClusterEventsNotificationParams +@implementation CHIPTestClusterClusterTestListInt8UReverseRequestParams - (instancetype)init { if (self = [super init]) { - _eventHeader = @(0); - - _eventId = @(0); + _arg1 = [NSArray array]; _timedInvokeTimeoutMs = nil; } return self; @@ -6878,24 +6923,19 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: eventHeader:%@; eventId:%@; >", NSStringFromClass([self class]), _eventHeader, _eventId]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; return descriptionString; } @end -@implementation CHIPApplianceStatisticsClusterLogNotificationParams +@implementation CHIPTestClusterClusterTestEnumsRequestParams - (instancetype)init { if (self = [super init]) { - _timeStamp = @(0); - - _logId = @(0); - - _logLength = @(0); + _arg1 = @(0); - _logPayload = [NSArray array]; + _arg2 = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -6903,18 +6943,18 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: timeStamp:%@; logId:%@; logLength:%@; logPayload:%@; >", - NSStringFromClass([self class]), _timeStamp, _logId, _logLength, _logPayload]; + NSString * descriptionString = + [NSString stringWithFormat:@"<%@: arg1:%@; arg2:%@; >", NSStringFromClass([self class]), _arg1, _arg2]; return descriptionString; } @end -@implementation CHIPApplianceStatisticsClusterLogRequestParams +@implementation CHIPTestClusterClusterTestNullableOptionalRequestParams - (instancetype)init { if (self = [super init]) { - _logId = @(0); + _arg1 = nil; _timedInvokeTimeoutMs = nil; } return self; @@ -6922,60 +6962,39 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: logId:%@; >", NSStringFromClass([self class]), _logId]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; return descriptionString; } @end -@implementation CHIPApplianceStatisticsClusterLogResponseParams +@implementation CHIPTestClusterClusterTestComplexNullableOptionalRequestParams - (instancetype)init { if (self = [super init]) { - _timeStamp = @(0); + _nullableInt = nil; - _logId = @(0); + _optionalInt = nil; - _logLength = @(0); + _nullableOptionalInt = nil; - _logPayload = [NSArray array]; - _timedInvokeTimeoutMs = nil; - } - return self; -} + _nullableString = nil; -- (NSString *)description -{ - NSString * descriptionString = [NSString stringWithFormat:@"<%@: timeStamp:%@; logId:%@; logLength:%@; logPayload:%@; >", - NSStringFromClass([self class]), _timeStamp, _logId, _logLength, _logPayload]; - return descriptionString; -} + _optionalString = nil; -@end -@implementation CHIPApplianceStatisticsClusterLogQueueRequestParams -- (instancetype)init -{ - if (self = [super init]) { - _timedInvokeTimeoutMs = nil; - } - return self; -} + _nullableOptionalString = nil; -- (NSString *)description -{ - NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; - return descriptionString; -} + _nullableStruct = nil; -@end -@implementation CHIPApplianceStatisticsClusterLogQueueResponseParams -- (instancetype)init -{ - if (self = [super init]) { + _optionalStruct = nil; - _logQueueSize = @(0); + _nullableOptionalStruct = nil; - _logIds = [NSArray array]; + _nullableList = nil; + + _optionalList = nil; + + _nullableOptionalList = nil; _timedInvokeTimeoutMs = nil; } return self; @@ -6984,19 +7003,22 @@ - (instancetype)init - (NSString *)description { NSString * descriptionString = - [NSString stringWithFormat:@"<%@: logQueueSize:%@; logIds:%@; >", NSStringFromClass([self class]), _logQueueSize, _logIds]; + [NSString stringWithFormat:@"<%@: nullableInt:%@; optionalInt:%@; nullableOptionalInt:%@; nullableString:%@; " + @"optionalString:%@; nullableOptionalString:%@; nullableStruct:%@; optionalStruct:%@; " + @"nullableOptionalStruct:%@; nullableList:%@; optionalList:%@; nullableOptionalList:%@; >", + NSStringFromClass([self class]), _nullableInt, _optionalInt, _nullableOptionalInt, _nullableString, + _optionalString, _nullableOptionalString, _nullableStruct, _optionalStruct, _nullableOptionalStruct, + _nullableList, _optionalList, _nullableOptionalList]; return descriptionString; } @end -@implementation CHIPApplianceStatisticsClusterStatisticsAvailableParams +@implementation CHIPTestClusterClusterSimpleStructEchoRequestParams - (instancetype)init { if (self = [super init]) { - _logQueueSize = @(0); - - _logIds = [NSArray array]; + _arg1 = [CHIPTestClusterClusterSimpleStruct new]; _timedInvokeTimeoutMs = nil; } return self; @@ -7004,24 +7026,15 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: logQueueSize:%@; logIds:%@; >", NSStringFromClass([self class]), _logQueueSize, _logIds]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; return descriptionString; } @end -@implementation CHIPElectricalMeasurementClusterGetProfileInfoResponseCommandParams +@implementation CHIPTestClusterClusterTimedInvokeRequestParams - (instancetype)init { if (self = [super init]) { - - _profileCount = @(0); - - _profileIntervalPeriod = @(0); - - _maxNumberOfIntervals = @(0); - - _listOfAttributes = [NSArray array]; _timedInvokeTimeoutMs = nil; } return self; @@ -7029,17 +7042,17 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString - stringWithFormat:@"<%@: profileCount:%@; profileIntervalPeriod:%@; maxNumberOfIntervals:%@; listOfAttributes:%@; >", - NSStringFromClass([self class]), _profileCount, _profileIntervalPeriod, _maxNumberOfIntervals, _listOfAttributes]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; return descriptionString; } @end -@implementation CHIPElectricalMeasurementClusterGetProfileInfoCommandParams +@implementation CHIPTestClusterClusterTestSimpleOptionalArgumentRequestParams - (instancetype)init { if (self = [super init]) { + + _arg1 = nil; _timedInvokeTimeoutMs = nil; } return self; @@ -7047,27 +7060,21 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; return descriptionString; } @end -@implementation CHIPElectricalMeasurementClusterGetMeasurementProfileResponseCommandParams +@implementation CHIPTestClusterClusterTestEmitTestEventRequestParams - (instancetype)init { if (self = [super init]) { - _startTime = @(0); - - _status = @(0); - - _profileIntervalPeriod = @(0); - - _numberOfIntervalsDelivered = @(0); + _arg1 = @(0); - _attributeId = @(0); + _arg2 = @(0); - _intervals = [NSArray array]; + _arg3 = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -7075,24 +7082,18 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: startTime:%@; status:%@; profileIntervalPeriod:%@; " - @"numberOfIntervalsDelivered:%@; attributeId:%@; intervals:%@; >", - NSStringFromClass([self class]), _startTime, _status, _profileIntervalPeriod, - _numberOfIntervalsDelivered, _attributeId, _intervals]; + NSString * descriptionString = + [NSString stringWithFormat:@"<%@: arg1:%@; arg2:%@; arg3:%@; >", NSStringFromClass([self class]), _arg1, _arg2, _arg3]; return descriptionString; } @end -@implementation CHIPElectricalMeasurementClusterGetMeasurementProfileCommandParams +@implementation CHIPTestClusterClusterTestEmitTestFabricScopedEventRequestParams - (instancetype)init { if (self = [super init]) { - _attributeId = @(0); - - _startTime = @(0); - - _numberOfIntervals = @(0); + _arg1 = @(0); _timedInvokeTimeoutMs = nil; } return self; @@ -7100,8 +7101,7 @@ - (instancetype)init - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: attributeId:%@; startTime:%@; numberOfIntervals:%@; >", - NSStringFromClass([self class]), _attributeId, _startTime, _numberOfIntervals]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: arg1:%@; >", NSStringFromClass([self class]), _arg1]; return descriptionString; } diff --git a/src/darwin/Framework/CHIP/zap-generated/MatterClusterConstants.h b/src/darwin/Framework/CHIP/zap-generated/MatterClusterConstants.h index 87cf8a5f6fa778..7a4b0c9c1d201f 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MatterClusterConstants.h +++ b/src/darwin/Framework/CHIP/zap-generated/MatterClusterConstants.h @@ -136,13 +136,13 @@ typedef NS_ENUM(uint32_t, MatterClusterIDType) { kMatterClusterApplicationLauncherID = 0x0000050C, kMatterClusterApplicationBasicID = 0x0000050D, kMatterClusterAccountLoginID = 0x0000050E, - kMatterClusterTestClusterID = 0x0000050F, kMatterClusterMessagingID = 0x00000703, kMatterClusterApplianceIdentificationID = 0x00000B00, kMatterClusterMeterIdentificationID = 0x00000B01, kMatterClusterApplianceEventsAndAlertID = 0x00000B02, kMatterClusterApplianceStatisticsID = 0x00000B03, kMatterClusterElectricalMeasurementID = 0x00000B04, + kMatterClusterTestClusterID = 0xFFF1FC05, }; #pragma mark - Attributes IDs @@ -1783,94 +1783,6 @@ typedef NS_ENUM(uint32_t, MatterClusterAttributeIDType) { kMatterClusterAccountLoginAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, kMatterClusterAccountLoginAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - // Cluster TestCluster attributes - kMatterClusterTestClusterAttributeBooleanID = 0x00000000, - kMatterClusterTestClusterAttributeBitmap8ID = 0x00000001, - kMatterClusterTestClusterAttributeBitmap16ID = 0x00000002, - kMatterClusterTestClusterAttributeBitmap32ID = 0x00000003, - kMatterClusterTestClusterAttributeBitmap64ID = 0x00000004, - kMatterClusterTestClusterAttributeInt8uID = 0x00000005, - kMatterClusterTestClusterAttributeInt16uID = 0x00000006, - kMatterClusterTestClusterAttributeInt24uID = 0x00000007, - kMatterClusterTestClusterAttributeInt32uID = 0x00000008, - kMatterClusterTestClusterAttributeInt40uID = 0x00000009, - kMatterClusterTestClusterAttributeInt48uID = 0x0000000A, - kMatterClusterTestClusterAttributeInt56uID = 0x0000000B, - kMatterClusterTestClusterAttributeInt64uID = 0x0000000C, - kMatterClusterTestClusterAttributeInt8sID = 0x0000000D, - kMatterClusterTestClusterAttributeInt16sID = 0x0000000E, - kMatterClusterTestClusterAttributeInt24sID = 0x0000000F, - kMatterClusterTestClusterAttributeInt32sID = 0x00000010, - kMatterClusterTestClusterAttributeInt40sID = 0x00000011, - kMatterClusterTestClusterAttributeInt48sID = 0x00000012, - kMatterClusterTestClusterAttributeInt56sID = 0x00000013, - kMatterClusterTestClusterAttributeInt64sID = 0x00000014, - kMatterClusterTestClusterAttributeEnum8ID = 0x00000015, - kMatterClusterTestClusterAttributeEnum16ID = 0x00000016, - kMatterClusterTestClusterAttributeFloatSingleID = 0x00000017, - kMatterClusterTestClusterAttributeFloatDoubleID = 0x00000018, - kMatterClusterTestClusterAttributeOctetStringID = 0x00000019, - kMatterClusterTestClusterAttributeListInt8uID = 0x0000001A, - kMatterClusterTestClusterAttributeListOctetStringID = 0x0000001B, - kMatterClusterTestClusterAttributeListStructOctetStringID = 0x0000001C, - kMatterClusterTestClusterAttributeLongOctetStringID = 0x0000001D, - kMatterClusterTestClusterAttributeCharStringID = 0x0000001E, - kMatterClusterTestClusterAttributeLongCharStringID = 0x0000001F, - kMatterClusterTestClusterAttributeEpochUsID = 0x00000020, - kMatterClusterTestClusterAttributeEpochSID = 0x00000021, - kMatterClusterTestClusterAttributeVendorIdID = 0x00000022, - kMatterClusterTestClusterAttributeListNullablesAndOptionalsStructID = 0x00000023, - kMatterClusterTestClusterAttributeEnumAttrID = 0x00000024, - kMatterClusterTestClusterAttributeStructAttrID = 0x00000025, - kMatterClusterTestClusterAttributeRangeRestrictedInt8uID = 0x00000026, - kMatterClusterTestClusterAttributeRangeRestrictedInt8sID = 0x00000027, - kMatterClusterTestClusterAttributeRangeRestrictedInt16uID = 0x00000028, - kMatterClusterTestClusterAttributeRangeRestrictedInt16sID = 0x00000029, - kMatterClusterTestClusterAttributeListLongOctetStringID = 0x0000002A, - kMatterClusterTestClusterAttributeListFabricScopedID = 0x0000002B, - kMatterClusterTestClusterAttributeTimedWriteBooleanID = 0x00000030, - kMatterClusterTestClusterAttributeGeneralErrorBooleanID = 0x00000031, - kMatterClusterTestClusterAttributeClusterErrorBooleanID = 0x00000032, - kMatterClusterTestClusterAttributeUnsupportedID = 0x000000FF, - kMatterClusterTestClusterAttributeNullableBooleanID = 0x00004000, - kMatterClusterTestClusterAttributeNullableBitmap8ID = 0x00004001, - kMatterClusterTestClusterAttributeNullableBitmap16ID = 0x00004002, - kMatterClusterTestClusterAttributeNullableBitmap32ID = 0x00004003, - kMatterClusterTestClusterAttributeNullableBitmap64ID = 0x00004004, - kMatterClusterTestClusterAttributeNullableInt8uID = 0x00004005, - kMatterClusterTestClusterAttributeNullableInt16uID = 0x00004006, - kMatterClusterTestClusterAttributeNullableInt24uID = 0x00004007, - kMatterClusterTestClusterAttributeNullableInt32uID = 0x00004008, - kMatterClusterTestClusterAttributeNullableInt40uID = 0x00004009, - kMatterClusterTestClusterAttributeNullableInt48uID = 0x0000400A, - kMatterClusterTestClusterAttributeNullableInt56uID = 0x0000400B, - kMatterClusterTestClusterAttributeNullableInt64uID = 0x0000400C, - kMatterClusterTestClusterAttributeNullableInt8sID = 0x0000400D, - kMatterClusterTestClusterAttributeNullableInt16sID = 0x0000400E, - kMatterClusterTestClusterAttributeNullableInt24sID = 0x0000400F, - kMatterClusterTestClusterAttributeNullableInt32sID = 0x00004010, - kMatterClusterTestClusterAttributeNullableInt40sID = 0x00004011, - kMatterClusterTestClusterAttributeNullableInt48sID = 0x00004012, - kMatterClusterTestClusterAttributeNullableInt56sID = 0x00004013, - kMatterClusterTestClusterAttributeNullableInt64sID = 0x00004014, - kMatterClusterTestClusterAttributeNullableEnum8ID = 0x00004015, - kMatterClusterTestClusterAttributeNullableEnum16ID = 0x00004016, - kMatterClusterTestClusterAttributeNullableFloatSingleID = 0x00004017, - kMatterClusterTestClusterAttributeNullableFloatDoubleID = 0x00004018, - kMatterClusterTestClusterAttributeNullableOctetStringID = 0x00004019, - kMatterClusterTestClusterAttributeNullableCharStringID = 0x0000401E, - kMatterClusterTestClusterAttributeNullableEnumAttrID = 0x00004024, - kMatterClusterTestClusterAttributeNullableStructID = 0x00004025, - kMatterClusterTestClusterAttributeNullableRangeRestrictedInt8uID = 0x00004026, - kMatterClusterTestClusterAttributeNullableRangeRestrictedInt8sID = 0x00004027, - kMatterClusterTestClusterAttributeNullableRangeRestrictedInt16uID = 0x00004028, - kMatterClusterTestClusterAttributeNullableRangeRestrictedInt16sID = 0x00004029, - kMatterClusterTestClusterAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, - kMatterClusterTestClusterAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, - kMatterClusterTestClusterAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, - kMatterClusterTestClusterAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, - kMatterClusterTestClusterAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, - // Cluster Messaging attributes kMatterClusterMessagingAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, kMatterClusterMessagingAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, @@ -2067,6 +1979,94 @@ typedef NS_ENUM(uint32_t, MatterClusterAttributeIDType) { kMatterClusterElectricalMeasurementAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, kMatterClusterElectricalMeasurementAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, + // Cluster TestCluster attributes + kMatterClusterTestClusterAttributeBooleanID = 0x00000000, + kMatterClusterTestClusterAttributeBitmap8ID = 0x00000001, + kMatterClusterTestClusterAttributeBitmap16ID = 0x00000002, + kMatterClusterTestClusterAttributeBitmap32ID = 0x00000003, + kMatterClusterTestClusterAttributeBitmap64ID = 0x00000004, + kMatterClusterTestClusterAttributeInt8uID = 0x00000005, + kMatterClusterTestClusterAttributeInt16uID = 0x00000006, + kMatterClusterTestClusterAttributeInt24uID = 0x00000007, + kMatterClusterTestClusterAttributeInt32uID = 0x00000008, + kMatterClusterTestClusterAttributeInt40uID = 0x00000009, + kMatterClusterTestClusterAttributeInt48uID = 0x0000000A, + kMatterClusterTestClusterAttributeInt56uID = 0x0000000B, + kMatterClusterTestClusterAttributeInt64uID = 0x0000000C, + kMatterClusterTestClusterAttributeInt8sID = 0x0000000D, + kMatterClusterTestClusterAttributeInt16sID = 0x0000000E, + kMatterClusterTestClusterAttributeInt24sID = 0x0000000F, + kMatterClusterTestClusterAttributeInt32sID = 0x00000010, + kMatterClusterTestClusterAttributeInt40sID = 0x00000011, + kMatterClusterTestClusterAttributeInt48sID = 0x00000012, + kMatterClusterTestClusterAttributeInt56sID = 0x00000013, + kMatterClusterTestClusterAttributeInt64sID = 0x00000014, + kMatterClusterTestClusterAttributeEnum8ID = 0x00000015, + kMatterClusterTestClusterAttributeEnum16ID = 0x00000016, + kMatterClusterTestClusterAttributeFloatSingleID = 0x00000017, + kMatterClusterTestClusterAttributeFloatDoubleID = 0x00000018, + kMatterClusterTestClusterAttributeOctetStringID = 0x00000019, + kMatterClusterTestClusterAttributeListInt8uID = 0x0000001A, + kMatterClusterTestClusterAttributeListOctetStringID = 0x0000001B, + kMatterClusterTestClusterAttributeListStructOctetStringID = 0x0000001C, + kMatterClusterTestClusterAttributeLongOctetStringID = 0x0000001D, + kMatterClusterTestClusterAttributeCharStringID = 0x0000001E, + kMatterClusterTestClusterAttributeLongCharStringID = 0x0000001F, + kMatterClusterTestClusterAttributeEpochUsID = 0x00000020, + kMatterClusterTestClusterAttributeEpochSID = 0x00000021, + kMatterClusterTestClusterAttributeVendorIdID = 0x00000022, + kMatterClusterTestClusterAttributeListNullablesAndOptionalsStructID = 0x00000023, + kMatterClusterTestClusterAttributeEnumAttrID = 0x00000024, + kMatterClusterTestClusterAttributeStructAttrID = 0x00000025, + kMatterClusterTestClusterAttributeRangeRestrictedInt8uID = 0x00000026, + kMatterClusterTestClusterAttributeRangeRestrictedInt8sID = 0x00000027, + kMatterClusterTestClusterAttributeRangeRestrictedInt16uID = 0x00000028, + kMatterClusterTestClusterAttributeRangeRestrictedInt16sID = 0x00000029, + kMatterClusterTestClusterAttributeListLongOctetStringID = 0x0000002A, + kMatterClusterTestClusterAttributeListFabricScopedID = 0x0000002B, + kMatterClusterTestClusterAttributeTimedWriteBooleanID = 0x00000030, + kMatterClusterTestClusterAttributeGeneralErrorBooleanID = 0x00000031, + kMatterClusterTestClusterAttributeClusterErrorBooleanID = 0x00000032, + kMatterClusterTestClusterAttributeUnsupportedID = 0x000000FF, + kMatterClusterTestClusterAttributeNullableBooleanID = 0x00004000, + kMatterClusterTestClusterAttributeNullableBitmap8ID = 0x00004001, + kMatterClusterTestClusterAttributeNullableBitmap16ID = 0x00004002, + kMatterClusterTestClusterAttributeNullableBitmap32ID = 0x00004003, + kMatterClusterTestClusterAttributeNullableBitmap64ID = 0x00004004, + kMatterClusterTestClusterAttributeNullableInt8uID = 0x00004005, + kMatterClusterTestClusterAttributeNullableInt16uID = 0x00004006, + kMatterClusterTestClusterAttributeNullableInt24uID = 0x00004007, + kMatterClusterTestClusterAttributeNullableInt32uID = 0x00004008, + kMatterClusterTestClusterAttributeNullableInt40uID = 0x00004009, + kMatterClusterTestClusterAttributeNullableInt48uID = 0x0000400A, + kMatterClusterTestClusterAttributeNullableInt56uID = 0x0000400B, + kMatterClusterTestClusterAttributeNullableInt64uID = 0x0000400C, + kMatterClusterTestClusterAttributeNullableInt8sID = 0x0000400D, + kMatterClusterTestClusterAttributeNullableInt16sID = 0x0000400E, + kMatterClusterTestClusterAttributeNullableInt24sID = 0x0000400F, + kMatterClusterTestClusterAttributeNullableInt32sID = 0x00004010, + kMatterClusterTestClusterAttributeNullableInt40sID = 0x00004011, + kMatterClusterTestClusterAttributeNullableInt48sID = 0x00004012, + kMatterClusterTestClusterAttributeNullableInt56sID = 0x00004013, + kMatterClusterTestClusterAttributeNullableInt64sID = 0x00004014, + kMatterClusterTestClusterAttributeNullableEnum8ID = 0x00004015, + kMatterClusterTestClusterAttributeNullableEnum16ID = 0x00004016, + kMatterClusterTestClusterAttributeNullableFloatSingleID = 0x00004017, + kMatterClusterTestClusterAttributeNullableFloatDoubleID = 0x00004018, + kMatterClusterTestClusterAttributeNullableOctetStringID = 0x00004019, + kMatterClusterTestClusterAttributeNullableCharStringID = 0x0000401E, + kMatterClusterTestClusterAttributeNullableEnumAttrID = 0x00004024, + kMatterClusterTestClusterAttributeNullableStructID = 0x00004025, + kMatterClusterTestClusterAttributeNullableRangeRestrictedInt8uID = 0x00004026, + kMatterClusterTestClusterAttributeNullableRangeRestrictedInt8sID = 0x00004027, + kMatterClusterTestClusterAttributeNullableRangeRestrictedInt16uID = 0x00004028, + kMatterClusterTestClusterAttributeNullableRangeRestrictedInt16sID = 0x00004029, + kMatterClusterTestClusterAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, + kMatterClusterTestClusterAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, + kMatterClusterTestClusterAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, + kMatterClusterTestClusterAttributeFeatureMapID = kMatterClusterGlobalAttributeFeatureMapID, + kMatterClusterTestClusterAttributeClusterRevisionID = kMatterClusterGlobalAttributeClusterRevisionID, + }; #pragma mark - Commands IDs @@ -2430,6 +2430,35 @@ typedef NS_ENUM(uint32_t, MatterClusterCommandIDType) { kMatterClusterAccountLoginCommandLoginID = 0x00000002, kMatterClusterAccountLoginCommandLogoutID = 0x00000003, + // Cluster Messaging commands + kMatterClusterMessagingCommandDisplayMessageID = 0x00000000, + kMatterClusterMessagingCommandGetLastMessageID = 0x00000000, + kMatterClusterMessagingCommandCancelMessageID = 0x00000001, + kMatterClusterMessagingCommandMessageConfirmationID = 0x00000001, + kMatterClusterMessagingCommandDisplayProtectedMessageID = 0x00000002, + kMatterClusterMessagingCommandGetMessageCancellationID = 0x00000002, + kMatterClusterMessagingCommandCancelAllMessagesID = 0x00000003, + + // Cluster ApplianceEventsAndAlert commands + kMatterClusterApplianceEventsAndAlertCommandGetAlertsID = 0x00000000, + kMatterClusterApplianceEventsAndAlertCommandGetAlertsResponseID = 0x00000000, + kMatterClusterApplianceEventsAndAlertCommandAlertsNotificationID = 0x00000001, + kMatterClusterApplianceEventsAndAlertCommandEventsNotificationID = 0x00000002, + + // Cluster ApplianceStatistics commands + kMatterClusterApplianceStatisticsCommandLogNotificationID = 0x00000000, + kMatterClusterApplianceStatisticsCommandLogRequestID = 0x00000000, + kMatterClusterApplianceStatisticsCommandLogResponseID = 0x00000001, + kMatterClusterApplianceStatisticsCommandLogQueueRequestID = 0x00000001, + kMatterClusterApplianceStatisticsCommandLogQueueResponseID = 0x00000002, + kMatterClusterApplianceStatisticsCommandStatisticsAvailableID = 0x00000003, + + // Cluster ElectricalMeasurement commands + kMatterClusterElectricalMeasurementCommandGetProfileInfoResponseCommandID = 0x00000000, + kMatterClusterElectricalMeasurementCommandGetProfileInfoCommandID = 0x00000000, + kMatterClusterElectricalMeasurementCommandGetMeasurementProfileResponseCommandID = 0x00000001, + kMatterClusterElectricalMeasurementCommandGetMeasurementProfileCommandID = 0x00000001, + // Cluster TestCluster commands kMatterClusterTestClusterCommandTestID = 0x00000000, kMatterClusterTestClusterCommandTestSpecificResponseID = 0x00000000, @@ -2466,35 +2495,6 @@ typedef NS_ENUM(uint32_t, MatterClusterCommandIDType) { kMatterClusterTestClusterCommandTestEmitTestEventRequestID = 0x00000014, kMatterClusterTestClusterCommandTestEmitTestFabricScopedEventRequestID = 0x00000015, - // Cluster Messaging commands - kMatterClusterMessagingCommandDisplayMessageID = 0x00000000, - kMatterClusterMessagingCommandGetLastMessageID = 0x00000000, - kMatterClusterMessagingCommandCancelMessageID = 0x00000001, - kMatterClusterMessagingCommandMessageConfirmationID = 0x00000001, - kMatterClusterMessagingCommandDisplayProtectedMessageID = 0x00000002, - kMatterClusterMessagingCommandGetMessageCancellationID = 0x00000002, - kMatterClusterMessagingCommandCancelAllMessagesID = 0x00000003, - - // Cluster ApplianceEventsAndAlert commands - kMatterClusterApplianceEventsAndAlertCommandGetAlertsID = 0x00000000, - kMatterClusterApplianceEventsAndAlertCommandGetAlertsResponseID = 0x00000000, - kMatterClusterApplianceEventsAndAlertCommandAlertsNotificationID = 0x00000001, - kMatterClusterApplianceEventsAndAlertCommandEventsNotificationID = 0x00000002, - - // Cluster ApplianceStatistics commands - kMatterClusterApplianceStatisticsCommandLogNotificationID = 0x00000000, - kMatterClusterApplianceStatisticsCommandLogRequestID = 0x00000000, - kMatterClusterApplianceStatisticsCommandLogResponseID = 0x00000001, - kMatterClusterApplianceStatisticsCommandLogQueueRequestID = 0x00000001, - kMatterClusterApplianceStatisticsCommandLogQueueResponseID = 0x00000002, - kMatterClusterApplianceStatisticsCommandStatisticsAvailableID = 0x00000003, - - // Cluster ElectricalMeasurement commands - kMatterClusterElectricalMeasurementCommandGetProfileInfoResponseCommandID = 0x00000000, - kMatterClusterElectricalMeasurementCommandGetProfileInfoCommandID = 0x00000000, - kMatterClusterElectricalMeasurementCommandGetMeasurementProfileResponseCommandID = 0x00000001, - kMatterClusterElectricalMeasurementCommandGetMeasurementProfileCommandID = 0x00000001, - }; #pragma mark - Events IDs diff --git a/zzz_generated/all-clusters-app/zap-generated/endpoint_config.h b/zzz_generated/all-clusters-app/zap-generated/endpoint_config.h index 075bc141e1382b..d35d9efc71d368 100644 --- a/zzz_generated/all-clusters-app/zap-generated/endpoint_config.h +++ b/zzz_generated/all-clusters-app/zap-generated/endpoint_config.h @@ -1287,6 +1287,21 @@ { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ \ + /* Endpoint: 1, Cluster: Electrical Measurement (server) */ \ + { 0x00000000, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0x000000) }, /* measurement type */ \ + { 0x00000304, ZAP_TYPE(INT32S), 4, 0, ZAP_SIMPLE_DEFAULT(0x000000) }, /* total active power */ \ + { 0x00000505, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0xffff) }, /* rms voltage */ \ + { 0x00000506, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x8000) }, /* rms voltage min */ \ + { 0x00000507, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x8000) }, /* rms voltage max */ \ + { 0x00000508, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0xffff) }, /* rms current */ \ + { 0x00000509, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0xffff) }, /* rms current min */ \ + { 0x0000050A, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0xffff) }, /* rms current max */ \ + { 0x0000050B, ZAP_TYPE(INT16S), 2, 0, ZAP_SIMPLE_DEFAULT(0xffff) }, /* active power */ \ + { 0x0000050C, ZAP_TYPE(INT16S), 2, 0, ZAP_SIMPLE_DEFAULT(0xffff) }, /* active power min */ \ + { 0x0000050D, ZAP_TYPE(INT16S), 2, 0, ZAP_SIMPLE_DEFAULT(0xffff) }, /* active power max */ \ + { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ + { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(3) }, /* ClusterRevision */ \ + \ /* Endpoint: 1, Cluster: Test Cluster (server) */ \ { 0x00000000, ZAP_TYPE(BOOLEAN), 1, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(false) }, /* boolean */ \ { 0x00000001, ZAP_TYPE(BITMAP8), 1, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0) }, /* bitmap8 */ \ @@ -1425,21 +1440,6 @@ { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ \ - /* Endpoint: 1, Cluster: Electrical Measurement (server) */ \ - { 0x00000000, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0x000000) }, /* measurement type */ \ - { 0x00000304, ZAP_TYPE(INT32S), 4, 0, ZAP_SIMPLE_DEFAULT(0x000000) }, /* total active power */ \ - { 0x00000505, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0xffff) }, /* rms voltage */ \ - { 0x00000506, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x8000) }, /* rms voltage min */ \ - { 0x00000507, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x8000) }, /* rms voltage max */ \ - { 0x00000508, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0xffff) }, /* rms current */ \ - { 0x00000509, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0xffff) }, /* rms current min */ \ - { 0x0000050A, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0xffff) }, /* rms current max */ \ - { 0x0000050B, ZAP_TYPE(INT16S), 2, 0, ZAP_SIMPLE_DEFAULT(0xffff) }, /* active power */ \ - { 0x0000050C, ZAP_TYPE(INT16S), 2, 0, ZAP_SIMPLE_DEFAULT(0xffff) }, /* active power min */ \ - { 0x0000050D, ZAP_TYPE(INT16S), 2, 0, ZAP_SIMPLE_DEFAULT(0xffff) }, /* active power max */ \ - { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ - { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(3) }, /* ClusterRevision */ \ - \ /* Endpoint: 2, Cluster: Groups (server) */ \ { 0x00000000, ZAP_TYPE(BITMAP8), 1, 0, ZAP_EMPTY_DEFAULT() }, /* name support */ \ { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ @@ -2683,21 +2683,10 @@ .acceptedCommandList = nullptr ,\ .generatedCommandList = nullptr ,\ },\ - { \ - /* Endpoint: 1, Cluster: Test Cluster (server) */ \ - .clusterId = 0x0000050F, \ - .attributes = ZAP_ATTRIBUTE_INDEX(591), \ - .attributeCount = 82, \ - .clusterSize = 2289, \ - .mask = ZAP_CLUSTER_MASK(SERVER), \ - .functions = NULL, \ - .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 193 ) ,\ - .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 212 ) ,\ - },\ { \ /* Endpoint: 1, Cluster: Electrical Measurement (server) */ \ .clusterId = 0x00000B04, \ - .attributes = ZAP_ATTRIBUTE_INDEX(673), \ + .attributes = ZAP_ATTRIBUTE_INDEX(591), \ .attributeCount = 13, \ .clusterSize = 32, \ .mask = ZAP_CLUSTER_MASK(SERVER), \ @@ -2705,6 +2694,17 @@ .acceptedCommandList = nullptr ,\ .generatedCommandList = nullptr ,\ },\ + { \ + /* Endpoint: 1, Cluster: Test Cluster (server) */ \ + .clusterId = 0xFFF1FC05, \ + .attributes = ZAP_ATTRIBUTE_INDEX(604), \ + .attributeCount = 82, \ + .clusterSize = 2289, \ + .mask = ZAP_CLUSTER_MASK(SERVER), \ + .functions = NULL, \ + .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 193 ) ,\ + .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 212 ) ,\ + },\ { \ /* Endpoint: 2, Cluster: Groups (server) */ \ .clusterId = 0x00000004, \ diff --git a/zzz_generated/all-clusters-minimal-app/zap-generated/endpoint_config.h b/zzz_generated/all-clusters-minimal-app/zap-generated/endpoint_config.h index 3a35866f397669..6eec22a07af65e 100644 --- a/zzz_generated/all-clusters-minimal-app/zap-generated/endpoint_config.h +++ b/zzz_generated/all-clusters-minimal-app/zap-generated/endpoint_config.h @@ -2121,7 +2121,7 @@ },\ { \ /* Endpoint: 1, Cluster: Test Cluster (server) */ \ - .clusterId = 0x0000050F, \ + .clusterId = 0xFFF1FC05, \ .attributes = ZAP_ATTRIBUTE_INDEX(323), \ .attributeCount = 82, \ .clusterSize = 2289, \ diff --git a/zzz_generated/app-common/app-common/zap-generated/attribute-id.h b/zzz_generated/app-common/app-common/zap-generated/attribute-id.h index 674ea17b437e66..64c18298e9d200 100644 --- a/zzz_generated/app-common/app-common/zap-generated/attribute-id.h +++ b/zzz_generated/app-common/app-common/zap-generated/attribute-id.h @@ -1476,93 +1476,6 @@ // Server attributes -// Attribute ids for cluster: Test Cluster - -// Client attributes - -// Server attributes -#define ZCL_BOOLEAN_ATTRIBUTE_ID (0x0000) -#define ZCL_BITMAP8_ATTRIBUTE_ID (0x0001) -#define ZCL_BITMAP16_ATTRIBUTE_ID (0x0002) -#define ZCL_BITMAP32_ATTRIBUTE_ID (0x0003) -#define ZCL_BITMAP64_ATTRIBUTE_ID (0x0004) -#define ZCL_INT8_U_ATTRIBUTE_ID (0x0005) -#define ZCL_INT16_U_ATTRIBUTE_ID (0x0006) -#define ZCL_INT24_U_ATTRIBUTE_ID (0x0007) -#define ZCL_INT32_U_ATTRIBUTE_ID (0x0008) -#define ZCL_INT40_U_ATTRIBUTE_ID (0x0009) -#define ZCL_INT48_U_ATTRIBUTE_ID (0x000A) -#define ZCL_INT56_U_ATTRIBUTE_ID (0x000B) -#define ZCL_INT64_U_ATTRIBUTE_ID (0x000C) -#define ZCL_INT8_S_ATTRIBUTE_ID (0x000D) -#define ZCL_INT16_S_ATTRIBUTE_ID (0x000E) -#define ZCL_INT24_S_ATTRIBUTE_ID (0x000F) -#define ZCL_INT32_S_ATTRIBUTE_ID (0x0010) -#define ZCL_INT40_S_ATTRIBUTE_ID (0x0011) -#define ZCL_INT48_S_ATTRIBUTE_ID (0x0012) -#define ZCL_INT56_S_ATTRIBUTE_ID (0x0013) -#define ZCL_INT64_S_ATTRIBUTE_ID (0x0014) -#define ZCL_ENUM8_ATTRIBUTE_ID (0x0015) -#define ZCL_ENUM16_ATTRIBUTE_ID (0x0016) -#define ZCL_FLOAT_SINGLE_ATTRIBUTE_ID (0x0017) -#define ZCL_FLOAT_DOUBLE_ATTRIBUTE_ID (0x0018) -#define ZCL_OCTET_STRING_ATTRIBUTE_ID (0x0019) -#define ZCL_LIST_ATTRIBUTE_ID (0x001A) -#define ZCL_LIST_OCTET_STRING_ATTRIBUTE_ID (0x001B) -#define ZCL_LIST_STRUCT_OCTET_STRING_ATTRIBUTE_ID (0x001C) -#define ZCL_LONG_OCTET_STRING_ATTRIBUTE_ID (0x001D) -#define ZCL_CHAR_STRING_ATTRIBUTE_ID (0x001E) -#define ZCL_LONG_CHAR_STRING_ATTRIBUTE_ID (0x001F) -#define ZCL_EPOCH_US_ATTRIBUTE_ID (0x0020) -#define ZCL_EPOCH_S_ATTRIBUTE_ID (0x0021) -#define ZCL_TEST_VENDOR_ID_ATTRIBUTE_ID (0x0022) -#define ZCL_LIST_OF_STRUCTS_WITH_OPTIONALS_ATTRIBUTE_ID (0x0023) -#define ZCL_SIMPLE_ENUM_ATTRIBUTE_ID (0x0024) -#define ZCL_STRUCT_ATTRIBUTE_ID (0x0025) -#define ZCL_RANGE_RESTRICTED_INT8_U_ATTRIBUTE_ID (0x0026) -#define ZCL_RANGE_RESTRICTED_INT8S_ATTRIBUTE_ID (0x0027) -#define ZCL_RANGE_RESTRICTED_INT16_U_ATTRIBUTE_ID (0x0028) -#define ZCL_RANGE_RESTRICTED_INT16S_ATTRIBUTE_ID (0x0029) -#define ZCL_LIST_LONG_OCTET_STRING_ATTRIBUTE_ID (0x002A) -#define ZCL_LIST_FABRIC_SCOPED_ATTRIBUTE_ID (0x002B) -#define ZCL_TIMED_WRITE_BOOLEAN_ATTRIBUTE_ID (0x0030) -#define ZCL_GENERAL_ERROR_BOOLEAN_ATTRIBUTE_ID (0x0031) -#define ZCL_CLUSTER_ERROR_BOOLEAN_ATTRIBUTE_ID (0x0032) -#define ZCL_UNSUPPORTED_ATTRIBUTE_ID (0x00FF) -#define ZCL_NULLABLE_BOOLEAN_ATTRIBUTE_ID (0x4000) -#define ZCL_NULLABLE_BITMAP8_ATTRIBUTE_ID (0x4001) -#define ZCL_NULLABLE_BITMAP16_ATTRIBUTE_ID (0x4002) -#define ZCL_NULLABLE_BITMAP32_ATTRIBUTE_ID (0x4003) -#define ZCL_NULLABLE_BITMAP64_ATTRIBUTE_ID (0x4004) -#define ZCL_NULLABLE_INT8_U_ATTRIBUTE_ID (0x4005) -#define ZCL_NULLABLE_INT16_U_ATTRIBUTE_ID (0x4006) -#define ZCL_NULLABLE_INT24_U_ATTRIBUTE_ID (0x4007) -#define ZCL_NULLABLE_INT32_U_ATTRIBUTE_ID (0x4008) -#define ZCL_NULLABLE_INT40_U_ATTRIBUTE_ID (0x4009) -#define ZCL_NULLABLE_INT48_U_ATTRIBUTE_ID (0x400A) -#define ZCL_NULLABLE_INT56_U_ATTRIBUTE_ID (0x400B) -#define ZCL_NULLABLE_INT64_U_ATTRIBUTE_ID (0x400C) -#define ZCL_NULLABLE_INT8_S_ATTRIBUTE_ID (0x400D) -#define ZCL_NULLABLE_INT16_S_ATTRIBUTE_ID (0x400E) -#define ZCL_NULLABLE_INT24_S_ATTRIBUTE_ID (0x400F) -#define ZCL_NULLABLE_INT32_S_ATTRIBUTE_ID (0x4010) -#define ZCL_NULLABLE_INT40_S_ATTRIBUTE_ID (0x4011) -#define ZCL_NULLABLE_INT48_S_ATTRIBUTE_ID (0x4012) -#define ZCL_NULLABLE_INT56_S_ATTRIBUTE_ID (0x4013) -#define ZCL_NULLABLE_INT64_S_ATTRIBUTE_ID (0x4014) -#define ZCL_NULLABLE_ENUM8_ATTRIBUTE_ID (0x4015) -#define ZCL_NULLABLE_ENUM16_ATTRIBUTE_ID (0x4016) -#define ZCL_NULLABLE_FLOAT_SINGLE_ATTRIBUTE_ID (0x4017) -#define ZCL_NULLABLE_FLOAT_DOUBLE_ATTRIBUTE_ID (0x4018) -#define ZCL_NULLABLE_OCTET_STRING_ATTRIBUTE_ID (0x4019) -#define ZCL_NULLABLE_CHAR_STRING_ATTRIBUTE_ID (0x401E) -#define ZCL_NULLABLE_SIMPLE_ENUM_ATTRIBUTE_ID (0x4024) -#define ZCL_NULLABLE_STRUCT_ATTRIBUTE_ID (0x4025) -#define ZCL_NULLABLE_RANGE_RESTRICTED_INT8_U_ATTRIBUTE_ID (0x4026) -#define ZCL_NULLABLE_RANGE_RESTRICTED_INT8S_ATTRIBUTE_ID (0x4027) -#define ZCL_NULLABLE_RANGE_RESTRICTED_INT16_U_ATTRIBUTE_ID (0x4028) -#define ZCL_NULLABLE_RANGE_RESTRICTED_INT16_S_ATTRIBUTE_ID (0x4029) - // Attribute ids for cluster: Messaging // Client attributes @@ -1752,3 +1665,90 @@ #define ZCL_RMS_EXTREME_UNDER_VOLTAGE_PERIOD_PHASE_C_ATTRIBUTE_ID (0x0A15) #define ZCL_RMS_VOLTAGE_SAG_PERIOD_PHASE_C_ATTRIBUTE_ID (0x0A16) #define ZCL_RMS_VOLTAGE_SWELL_PERIOD_PHASE_C_ATTRIBUTE_ID (0x0A17) + +// Attribute ids for cluster: Test Cluster + +// Client attributes + +// Server attributes +#define ZCL_BOOLEAN_ATTRIBUTE_ID (0x0000) +#define ZCL_BITMAP8_ATTRIBUTE_ID (0x0001) +#define ZCL_BITMAP16_ATTRIBUTE_ID (0x0002) +#define ZCL_BITMAP32_ATTRIBUTE_ID (0x0003) +#define ZCL_BITMAP64_ATTRIBUTE_ID (0x0004) +#define ZCL_INT8_U_ATTRIBUTE_ID (0x0005) +#define ZCL_INT16_U_ATTRIBUTE_ID (0x0006) +#define ZCL_INT24_U_ATTRIBUTE_ID (0x0007) +#define ZCL_INT32_U_ATTRIBUTE_ID (0x0008) +#define ZCL_INT40_U_ATTRIBUTE_ID (0x0009) +#define ZCL_INT48_U_ATTRIBUTE_ID (0x000A) +#define ZCL_INT56_U_ATTRIBUTE_ID (0x000B) +#define ZCL_INT64_U_ATTRIBUTE_ID (0x000C) +#define ZCL_INT8_S_ATTRIBUTE_ID (0x000D) +#define ZCL_INT16_S_ATTRIBUTE_ID (0x000E) +#define ZCL_INT24_S_ATTRIBUTE_ID (0x000F) +#define ZCL_INT32_S_ATTRIBUTE_ID (0x0010) +#define ZCL_INT40_S_ATTRIBUTE_ID (0x0011) +#define ZCL_INT48_S_ATTRIBUTE_ID (0x0012) +#define ZCL_INT56_S_ATTRIBUTE_ID (0x0013) +#define ZCL_INT64_S_ATTRIBUTE_ID (0x0014) +#define ZCL_ENUM8_ATTRIBUTE_ID (0x0015) +#define ZCL_ENUM16_ATTRIBUTE_ID (0x0016) +#define ZCL_FLOAT_SINGLE_ATTRIBUTE_ID (0x0017) +#define ZCL_FLOAT_DOUBLE_ATTRIBUTE_ID (0x0018) +#define ZCL_OCTET_STRING_ATTRIBUTE_ID (0x0019) +#define ZCL_LIST_ATTRIBUTE_ID (0x001A) +#define ZCL_LIST_OCTET_STRING_ATTRIBUTE_ID (0x001B) +#define ZCL_LIST_STRUCT_OCTET_STRING_ATTRIBUTE_ID (0x001C) +#define ZCL_LONG_OCTET_STRING_ATTRIBUTE_ID (0x001D) +#define ZCL_CHAR_STRING_ATTRIBUTE_ID (0x001E) +#define ZCL_LONG_CHAR_STRING_ATTRIBUTE_ID (0x001F) +#define ZCL_EPOCH_US_ATTRIBUTE_ID (0x0020) +#define ZCL_EPOCH_S_ATTRIBUTE_ID (0x0021) +#define ZCL_TEST_VENDOR_ID_ATTRIBUTE_ID (0x0022) +#define ZCL_LIST_OF_STRUCTS_WITH_OPTIONALS_ATTRIBUTE_ID (0x0023) +#define ZCL_SIMPLE_ENUM_ATTRIBUTE_ID (0x0024) +#define ZCL_STRUCT_ATTRIBUTE_ID (0x0025) +#define ZCL_RANGE_RESTRICTED_INT8_U_ATTRIBUTE_ID (0x0026) +#define ZCL_RANGE_RESTRICTED_INT8S_ATTRIBUTE_ID (0x0027) +#define ZCL_RANGE_RESTRICTED_INT16_U_ATTRIBUTE_ID (0x0028) +#define ZCL_RANGE_RESTRICTED_INT16S_ATTRIBUTE_ID (0x0029) +#define ZCL_LIST_LONG_OCTET_STRING_ATTRIBUTE_ID (0x002A) +#define ZCL_LIST_FABRIC_SCOPED_ATTRIBUTE_ID (0x002B) +#define ZCL_TIMED_WRITE_BOOLEAN_ATTRIBUTE_ID (0x0030) +#define ZCL_GENERAL_ERROR_BOOLEAN_ATTRIBUTE_ID (0x0031) +#define ZCL_CLUSTER_ERROR_BOOLEAN_ATTRIBUTE_ID (0x0032) +#define ZCL_UNSUPPORTED_ATTRIBUTE_ID (0x00FF) +#define ZCL_NULLABLE_BOOLEAN_ATTRIBUTE_ID (0x4000) +#define ZCL_NULLABLE_BITMAP8_ATTRIBUTE_ID (0x4001) +#define ZCL_NULLABLE_BITMAP16_ATTRIBUTE_ID (0x4002) +#define ZCL_NULLABLE_BITMAP32_ATTRIBUTE_ID (0x4003) +#define ZCL_NULLABLE_BITMAP64_ATTRIBUTE_ID (0x4004) +#define ZCL_NULLABLE_INT8_U_ATTRIBUTE_ID (0x4005) +#define ZCL_NULLABLE_INT16_U_ATTRIBUTE_ID (0x4006) +#define ZCL_NULLABLE_INT24_U_ATTRIBUTE_ID (0x4007) +#define ZCL_NULLABLE_INT32_U_ATTRIBUTE_ID (0x4008) +#define ZCL_NULLABLE_INT40_U_ATTRIBUTE_ID (0x4009) +#define ZCL_NULLABLE_INT48_U_ATTRIBUTE_ID (0x400A) +#define ZCL_NULLABLE_INT56_U_ATTRIBUTE_ID (0x400B) +#define ZCL_NULLABLE_INT64_U_ATTRIBUTE_ID (0x400C) +#define ZCL_NULLABLE_INT8_S_ATTRIBUTE_ID (0x400D) +#define ZCL_NULLABLE_INT16_S_ATTRIBUTE_ID (0x400E) +#define ZCL_NULLABLE_INT24_S_ATTRIBUTE_ID (0x400F) +#define ZCL_NULLABLE_INT32_S_ATTRIBUTE_ID (0x4010) +#define ZCL_NULLABLE_INT40_S_ATTRIBUTE_ID (0x4011) +#define ZCL_NULLABLE_INT48_S_ATTRIBUTE_ID (0x4012) +#define ZCL_NULLABLE_INT56_S_ATTRIBUTE_ID (0x4013) +#define ZCL_NULLABLE_INT64_S_ATTRIBUTE_ID (0x4014) +#define ZCL_NULLABLE_ENUM8_ATTRIBUTE_ID (0x4015) +#define ZCL_NULLABLE_ENUM16_ATTRIBUTE_ID (0x4016) +#define ZCL_NULLABLE_FLOAT_SINGLE_ATTRIBUTE_ID (0x4017) +#define ZCL_NULLABLE_FLOAT_DOUBLE_ATTRIBUTE_ID (0x4018) +#define ZCL_NULLABLE_OCTET_STRING_ATTRIBUTE_ID (0x4019) +#define ZCL_NULLABLE_CHAR_STRING_ATTRIBUTE_ID (0x401E) +#define ZCL_NULLABLE_SIMPLE_ENUM_ATTRIBUTE_ID (0x4024) +#define ZCL_NULLABLE_STRUCT_ATTRIBUTE_ID (0x4025) +#define ZCL_NULLABLE_RANGE_RESTRICTED_INT8_U_ATTRIBUTE_ID (0x4026) +#define ZCL_NULLABLE_RANGE_RESTRICTED_INT8S_ATTRIBUTE_ID (0x4027) +#define ZCL_NULLABLE_RANGE_RESTRICTED_INT16_U_ATTRIBUTE_ID (0x4028) +#define ZCL_NULLABLE_RANGE_RESTRICTED_INT16_S_ATTRIBUTE_ID (0x4029) diff --git a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp index 8997ba86d35fe2..76e7307303f82c 100644 --- a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp +++ b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp @@ -33306,17 +33306,17 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) } // namespace Attributes } // namespace AccountLogin -namespace TestCluster { +namespace Messaging { namespace Attributes { -namespace Boolean { +namespace FeatureMap { -EmberAfStatus Get(chip::EndpointId endpoint, bool * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::Messaging::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -33325,9 +33325,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, bool value) +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -33335,19 +33335,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BOOLEAN_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::Messaging::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); } -} // namespace Boolean +} // namespace FeatureMap -namespace Bitmap8 { +namespace ClusterRevision { -EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::Messaging::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -33356,9 +33356,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -33366,19 +33366,25 @@ EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask * value) +namespace ApplianceIdentification { +namespace Attributes { + +namespace BasicIdentification { + +EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -33387,9 +33393,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask value) +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -33397,50 +33403,51 @@ EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) { - using Traits = NumericAttributeTraits>; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + uint8_t zclString[16 + 1]; + EmberAfStatus status = + emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, sizeof(zclString)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - *value = Traits::StorageToWorking(temp); + + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[1], 16); + value.reduce_size(length); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); + static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[16 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, + ZCL_CHAR_STRING_ATTRIBUTE_TYPE); } -} // namespace Bitmap32 +} // namespace CompanyName -namespace Bitmap64 { +namespace CompanyId { -EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -33449,9 +33456,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -33459,50 +33466,51 @@ EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + uint8_t zclString[16 + 1]; + EmberAfStatus status = + emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, sizeof(zclString)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - *value = Traits::StorageToWorking(temp); + + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[1], 16); + value.reduce_size(length); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); + static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[16 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, + ZCL_CHAR_STRING_ATTRIBUTE_TYPE); } -} // namespace Int8u +} // namespace BrandName -namespace Int16u { +namespace BrandId { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -33521,174 +33529,179 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace Int16u +} // namespace BrandId -namespace Int24u { +namespace Model { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) { - using Traits = NumericAttributeTraits>; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + uint8_t zclString[16 + 1]; + EmberAfStatus status = + emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, sizeof(zclString)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - *value = Traits::StorageToWorking(temp); + + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[1], 16); + value.reduce_size(length); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT24U_ATTRIBUTE_TYPE); + static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[16 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, + ZCL_OCTET_STRING_ATTRIBUTE_TYPE); } -} // namespace Int24u +} // namespace Model -namespace Int32u { +namespace PartNumber { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) { - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + uint8_t zclString[16 + 1]; + EmberAfStatus status = + emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, sizeof(zclString)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - *value = Traits::StorageToWorking(temp); + + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[1], 16); + value.reduce_size(length); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT32U_ATTRIBUTE_TYPE); + static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[16 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, + ZCL_OCTET_STRING_ATTRIBUTE_TYPE); } -} // namespace Int32u +} // namespace PartNumber -namespace Int40u { +namespace ProductRevision { -EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) { - using Traits = NumericAttributeTraits>; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + uint8_t zclString[6 + 1]; + EmberAfStatus status = + emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, sizeof(zclString)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - *value = Traits::StorageToWorking(temp); + + VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[1], 6); + value.reduce_size(length); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT40U_ATTRIBUTE_TYPE); + static_assert(6 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[6 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, + ZCL_OCTET_STRING_ATTRIBUTE_TYPE); } -} // namespace Int40u +} // namespace ProductRevision -namespace Int48u { +namespace SoftwareRevision { -EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) { - using Traits = NumericAttributeTraits>; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + uint8_t zclString[6 + 1]; + EmberAfStatus status = + emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, sizeof(zclString)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - *value = Traits::StorageToWorking(temp); + + VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[1], 6); + value.reduce_size(length); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT48U_ATTRIBUTE_TYPE); + static_assert(6 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[6 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, + ZCL_OCTET_STRING_ATTRIBUTE_TYPE); } -} // namespace Int48u +} // namespace SoftwareRevision -namespace Int56u { +namespace ProductTypeName { -EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) { - using Traits = NumericAttributeTraits>; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + uint8_t zclString[2 + 1]; + EmberAfStatus status = + emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, sizeof(zclString)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - *value = Traits::StorageToWorking(temp); + + VerifyOrReturnError(value.size() == 2, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[1], 2); + value.reduce_size(length); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT56U_ATTRIBUTE_TYPE); + static_assert(2 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 2, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[2 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, + ZCL_OCTET_STRING_ATTRIBUTE_TYPE); } -} // namespace Int56u +} // namespace ProductTypeName -namespace Int64u { +namespace ProductTypeId { -EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -33697,9 +33710,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -33707,19 +33720,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT64U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace Int64u +} // namespace ProductTypeId -namespace Int8s { +namespace CecedSpecificationVersion { -EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -33728,9 +33741,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -33738,19 +33751,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); } -} // namespace Int8s +} // namespace CecedSpecificationVersion -namespace Int16s { +namespace FeatureMap { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -33759,9 +33772,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -33769,19 +33782,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); } -} // namespace Int16s +} // namespace FeatureMap -namespace Int24s { +namespace ClusterRevision { -EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -33790,9 +33803,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -33800,50 +33813,56 @@ EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT24S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace Int24s +} // namespace ClusterRevision -namespace Int32s { +} // namespace Attributes +} // namespace ApplianceIdentification -EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) +namespace MeterIdentification { +namespace Attributes { + +namespace CompanyName { + +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) { - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + uint8_t zclString[16 + 1]; + EmberAfStatus status = + emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, sizeof(zclString)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - *value = Traits::StorageToWorking(temp); + + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[1], 16); + value.reduce_size(length); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT32S_ATTRIBUTE_TYPE); + static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[16 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, ZCL_CHAR_STRING_ATTRIBUTE_TYPE); } -} // namespace Int32s +} // namespace CompanyName -namespace Int40s { +namespace MeterTypeId { -EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -33852,9 +33871,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -33862,19 +33881,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT40S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace Int40s +} // namespace MeterTypeId -namespace Int48s { +namespace DataQualityId { -EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -33883,9 +33902,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -33893,112 +33912,236 @@ EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT48S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace Int48s +} // namespace DataQualityId -namespace Int56s { +namespace CustomerName { -EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) { - using Traits = NumericAttributeTraits>; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + uint8_t zclString[16 + 1]; + EmberAfStatus status = + emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, sizeof(zclString)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - *value = Traits::StorageToWorking(temp); + + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[1], 16); + value.reduce_size(length); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[16 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, ZCL_CHAR_STRING_ATTRIBUTE_TYPE); +} + +} // namespace CustomerName + +namespace Model { + +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) +{ + uint8_t zclString[16 + 1]; + EmberAfStatus status = + emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, sizeof(zclString)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT56S_ATTRIBUTE_TYPE); + + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[1], 16); + value.reduce_size(length); + return status; +} +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) +{ + static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[16 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); } -} // namespace Int56s +} // namespace Model -namespace Int64s { +namespace PartNumber { -EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) { - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + uint8_t zclString[16 + 1]; + EmberAfStatus status = + emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, sizeof(zclString)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - *value = Traits::StorageToWorking(temp); + + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[1], 16); + value.reduce_size(length); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[16 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); +} + +} // namespace PartNumber + +namespace ProductRevision { + +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) +{ + uint8_t zclString[6 + 1]; + EmberAfStatus status = + emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, sizeof(zclString)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT64S_ATTRIBUTE_TYPE); + + VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[1], 6); + value.reduce_size(length); + return status; +} +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) +{ + static_assert(6 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[6 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); } -} // namespace Int64s +} // namespace ProductRevision -namespace Enum8 { +namespace SoftwareRevision { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) { - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + uint8_t zclString[6 + 1]; + EmberAfStatus status = + emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, sizeof(zclString)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - *value = Traits::StorageToWorking(temp); + + VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[1], 6); + value.reduce_size(length); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + static_assert(6 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[6 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); +} + +} // namespace SoftwareRevision + +namespace UtilityName { + +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) +{ + uint8_t zclString[16 + 1]; + EmberAfStatus status = + emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, sizeof(zclString)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM8_ATTRIBUTE_TYPE); + + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[1], 16); + value.reduce_size(length); + return status; +} +EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) +{ + static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[16 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, ZCL_CHAR_STRING_ATTRIBUTE_TYPE); } -} // namespace Enum8 +} // namespace UtilityName -namespace Enum16 { +namespace Pod { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) { - using Traits = NumericAttributeTraits; + uint8_t zclString[16 + 1]; + EmberAfStatus status = + emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, sizeof(zclString)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[1], 16); + value.reduce_size(length); + return status; +} +EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) +{ + static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[16 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, ZCL_CHAR_STRING_ATTRIBUTE_TYPE); +} + +} // namespace Pod + +namespace AvailablePower { + +EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) +{ + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -34007,9 +34150,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -34017,19 +34160,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM16_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, writable, ZCL_INT24S_ATTRIBUTE_TYPE); } -} // namespace Enum16 +} // namespace AvailablePower -namespace FloatSingle { +namespace PowerThreshold { -EmberAfStatus Get(chip::EndpointId endpoint, float * value) +EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -34038,9 +34181,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, float value) +EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -34048,19 +34191,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_SINGLE_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, writable, ZCL_INT24S_ATTRIBUTE_TYPE); } -} // namespace FloatSingle +} // namespace PowerThreshold -namespace FloatDouble { +namespace FeatureMap { -EmberAfStatus Get(chip::EndpointId endpoint, double * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -34069,9 +34212,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, double * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, double value) +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -34079,139 +34222,87 @@ EmberAfStatus Set(chip::EndpointId endpoint, double value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_DOUBLE_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); } -} // namespace FloatDouble +} // namespace FeatureMap -namespace OctetString { +namespace ClusterRevision { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - uint8_t zclString[10 + 1]; - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, sizeof(zclString)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - VerifyOrReturnError(value.size() == 10, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[1], 10); - value.reduce_size(length); + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) -{ - static_assert(10 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 10, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[10 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); -} - -} // namespace OctetString - -namespace LongOctetString { - -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - uint8_t zclString[1000 + 2]; - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, sizeof(zclString)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfLongStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - VerifyOrReturnError(value.size() == 1000, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[2], 1000); - value.reduce_size(length); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) -{ - static_assert(1000 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 1000, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[1000 + 2]; - emberAfCopyInt16u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[2], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, ZCL_LONG_OCTET_STRING_ATTRIBUTE_TYPE); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace LongOctetString +} // namespace ClusterRevision -namespace CharString { +} // namespace Attributes +} // namespace MeterIdentification -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) +namespace ApplianceEventsAndAlert { +namespace Attributes { + +namespace FeatureMap { + +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) { - uint8_t zclString[10 + 1]; - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, sizeof(zclString)); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceEventsAndAlert::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - VerifyOrReturnError(value.size() == 10, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[1], 10); - value.reduce_size(length); + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) -{ - static_assert(10 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 10, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[10 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, ZCL_CHAR_STRING_ATTRIBUTE_TYPE); -} - -} // namespace CharString - -namespace LongCharString { - -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { - uint8_t zclString[1000 + 2]; - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, sizeof(zclString)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfLongStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - VerifyOrReturnError(value.size() == 1000, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[2], 1000); - value.reduce_size(length); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) -{ - static_assert(1000 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 1000, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[1000 + 2]; - emberAfCopyInt16u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[2], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, ZCL_LONG_CHAR_STRING_ATTRIBUTE_TYPE); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceEventsAndAlert::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); } -} // namespace LongCharString +} // namespace FeatureMap -namespace EpochUs { +namespace ClusterRevision { -EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceEventsAndAlert::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -34220,9 +34311,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -34230,19 +34321,25 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_EPOCH_US_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceEventsAndAlert::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace EpochUs +} // namespace ClusterRevision -namespace EpochS { +} // namespace Attributes +} // namespace ApplianceEventsAndAlert + +namespace ApplianceStatistics { +namespace Attributes { + +namespace LogMaxSize { EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -34261,19 +34358,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_EPOCH_S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, writable, ZCL_INT32U_ATTRIBUTE_TYPE); } -} // namespace EpochS +} // namespace LogMaxSize -namespace VendorId { +namespace LogQueueMaxSize { -EmberAfStatus Get(chip::EndpointId endpoint, chip::VendorId * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -34282,9 +34379,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::VendorId * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::VendorId value) +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -34292,19 +34389,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, chip::VendorId value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_VENDOR_ID_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); } -} // namespace VendorId +} // namespace LogQueueMaxSize -namespace EnumAttr { +namespace FeatureMap { -EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::TestCluster::SimpleEnum * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -34313,9 +34410,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::TestCluster::S *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::TestCluster::SimpleEnum value) +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -34323,19 +34420,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::TestCluster::S Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM8_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); } -} // namespace EnumAttr +} // namespace FeatureMap -namespace RangeRestrictedInt8u { +namespace ClusterRevision { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -34344,9 +34441,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -34354,19 +34451,25 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace RangeRestrictedInt8u +} // namespace ClusterRevision -namespace RangeRestrictedInt8s { +} // namespace Attributes +} // namespace ApplianceStatistics -EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) +namespace ElectricalMeasurement { +namespace Attributes { + +namespace MeasurementType { + +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -34375,9 +34478,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -34385,19 +34488,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); } -} // namespace RangeRestrictedInt8s +} // namespace MeasurementType -namespace RangeRestrictedInt16u { +namespace DcVoltage { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -34406,9 +34509,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -34416,19 +34519,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace RangeRestrictedInt16u +} // namespace DcVoltage -namespace RangeRestrictedInt16s { +namespace DcVoltageMin { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -34447,19 +34550,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace RangeRestrictedInt16s +} // namespace DcVoltageMin -namespace TimedWriteBoolean { +namespace DcVoltageMax { -EmberAfStatus Get(chip::EndpointId endpoint, bool * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -34468,9 +34571,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, bool value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -34478,19 +34581,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BOOLEAN_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace TimedWriteBoolean +} // namespace DcVoltageMax -namespace GeneralErrorBoolean { +namespace DcCurrent { -EmberAfStatus Get(chip::EndpointId endpoint, bool * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -34499,9 +34602,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, bool value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -34509,19 +34612,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BOOLEAN_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace GeneralErrorBoolean +} // namespace DcCurrent -namespace ClusterErrorBoolean { +namespace DcCurrentMin { -EmberAfStatus Get(chip::EndpointId endpoint, bool * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -34530,9 +34633,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, bool value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -34540,19 +34643,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BOOLEAN_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace ClusterErrorBoolean +} // namespace DcCurrentMin -namespace Unsupported { +namespace DcCurrentMax { -EmberAfStatus Get(chip::EndpointId endpoint, bool * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -34561,9 +34664,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, bool value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -34571,1714 +34674,1445 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BOOLEAN_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace Unsupported +} // namespace DcCurrentMax -namespace NullableBoolean { +namespace DcPower { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, bool value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BOOLEAN_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BOOLEAN_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) -{ - if (value.IsNull()) - { - return SetNull(endpoint); - } - - return Set(endpoint, value.Value()); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace NullableBoolean +} // namespace DcPower -namespace NullableBitmap8 { +namespace DcPowerMin { -EmberAfStatus Get(chip::EndpointId endpoint, - DataModel::Nullable> & value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP8_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -EmberAfStatus SetNull(chip::EndpointId endpoint) +} // namespace DcPowerMin + +namespace DcPowerMax { + +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits>; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP8_ATTRIBUTE_TYPE); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; } - -EmberAfStatus Set(chip::EndpointId endpoint, - const chip::app::DataModel::Nullable> & value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - if (value.IsNull()) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { - return SetNull(endpoint); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - return Set(endpoint, value.Value()); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace NullableBitmap8 +} // namespace DcPowerMax -namespace NullableBitmap16 { +namespace DcVoltageMultiplier { -EmberAfStatus Get(chip::EndpointId endpoint, - DataModel::Nullable> & value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP16_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -EmberAfStatus SetNull(chip::EndpointId endpoint) +} // namespace DcVoltageMultiplier + +namespace DcVoltageDivisor { + +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits>; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP16_ATTRIBUTE_TYPE); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; } - -EmberAfStatus Set(chip::EndpointId endpoint, - const chip::app::DataModel::Nullable> & value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - if (value.IsNull()) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { - return SetNull(endpoint); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - return Set(endpoint, value.Value()); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace NullableBitmap16 +} // namespace DcVoltageDivisor -namespace NullableBitmap32 { +namespace DcCurrentMultiplier { -EmberAfStatus Get(chip::EndpointId endpoint, - DataModel::Nullable> & value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -EmberAfStatus SetNull(chip::EndpointId endpoint) +} // namespace DcCurrentMultiplier + +namespace DcCurrentDivisor { + +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits>; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; } - -EmberAfStatus Set(chip::EndpointId endpoint, - const chip::app::DataModel::Nullable> & value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - if (value.IsNull()) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { - return SetNull(endpoint); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - return Set(endpoint, value.Value()); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace NullableBitmap32 +} // namespace DcCurrentDivisor -namespace NullableBitmap64 { +namespace DcPowerMultiplier { -EmberAfStatus Get(chip::EndpointId endpoint, - DataModel::Nullable> & value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP64_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -EmberAfStatus SetNull(chip::EndpointId endpoint) +} // namespace DcPowerMultiplier + +namespace DcPowerDivisor { + +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits>; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP64_ATTRIBUTE_TYPE); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; } - -EmberAfStatus Set(chip::EndpointId endpoint, - const chip::app::DataModel::Nullable> & value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - if (value.IsNull()) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { - return SetNull(endpoint); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - return Set(endpoint, value.Value()); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace NullableBitmap64 +} // namespace DcPowerDivisor -namespace NullableInt8u { +namespace AcFrequency { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -EmberAfStatus SetNull(chip::EndpointId endpoint) +} // namespace AcFrequency + +namespace AcFrequencyMin { + +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; } - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - if (value.IsNull()) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { - return SetNull(endpoint); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - return Set(endpoint, value.Value()); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace NullableInt8u +} // namespace AcFrequencyMin -namespace NullableInt16u { +namespace AcFrequencyMax { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -EmberAfStatus SetNull(chip::EndpointId endpoint) +} // namespace AcFrequencyMax + +namespace NeutralCurrent { + +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; } - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - if (value.IsNull()) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { - return SetNull(endpoint); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - return Set(endpoint, value.Value()); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace NullableInt16u +} // namespace NeutralCurrent -namespace NullableInt24u { +namespace TotalActivePower { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT24U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT32S_ATTRIBUTE_TYPE); } -EmberAfStatus SetNull(chip::EndpointId endpoint) +} // namespace TotalActivePower + +namespace TotalReactivePower { + +EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) { - using Traits = NumericAttributeTraits>; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT24U_ATTRIBUTE_TYPE); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; } - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) { - if (value.IsNull()) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { - return SetNull(endpoint); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - return Set(endpoint, value.Value()); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT32S_ATTRIBUTE_TYPE); } -} // namespace NullableInt24u +} // namespace TotalReactivePower -namespace NullableInt32u { +namespace TotalApparentPower { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT32U_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT32U_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) -{ - if (value.IsNull()) - { - return SetNull(endpoint); - } - - return Set(endpoint, value.Value()); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT32U_ATTRIBUTE_TYPE); } -} // namespace NullableInt32u +} // namespace TotalApparentPower -namespace NullableInt40u { +namespace Measured1stHarmonicCurrent { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT40U_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - using Traits = NumericAttributeTraits>; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT40U_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) -{ - if (value.IsNull()) - { - return SetNull(endpoint); - } - - return Set(endpoint, value.Value()); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace NullableInt40u +} // namespace Measured1stHarmonicCurrent -namespace NullableInt48u { +namespace Measured3rdHarmonicCurrent { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT48U_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - using Traits = NumericAttributeTraits>; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT48U_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) -{ - if (value.IsNull()) - { - return SetNull(endpoint); - } - - return Set(endpoint, value.Value()); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace NullableInt48u +} // namespace Measured3rdHarmonicCurrent -namespace NullableInt56u { +namespace Measured5thHarmonicCurrent { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT56U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -EmberAfStatus SetNull(chip::EndpointId endpoint) +} // namespace Measured5thHarmonicCurrent + +namespace Measured7thHarmonicCurrent { + +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits>; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT56U_ATTRIBUTE_TYPE); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; } - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - if (value.IsNull()) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { - return SetNull(endpoint); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - return Set(endpoint, value.Value()); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace NullableInt56u +} // namespace Measured7thHarmonicCurrent -namespace NullableInt64u { +namespace Measured9thHarmonicCurrent { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT64U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -EmberAfStatus SetNull(chip::EndpointId endpoint) +} // namespace Measured9thHarmonicCurrent + +namespace Measured11thHarmonicCurrent { + +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT64U_ATTRIBUTE_TYPE); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; } - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - if (value.IsNull()) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { - return SetNull(endpoint); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - return Set(endpoint, value.Value()); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace NullableInt64u +} // namespace Measured11thHarmonicCurrent -namespace NullableInt8s { +namespace MeasuredPhase1stHarmonicCurrent { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) -{ - if (value.IsNull()) - { - return SetNull(endpoint); - } - - return Set(endpoint, value.Value()); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace NullableInt8s +} // namespace MeasuredPhase1stHarmonicCurrent -namespace NullableInt16s { +namespace MeasuredPhase3rdHarmonicCurrent { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -EmberAfStatus SetNull(chip::EndpointId endpoint) +} // namespace MeasuredPhase3rdHarmonicCurrent + +namespace MeasuredPhase5thHarmonicCurrent { + +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; } - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - if (value.IsNull()) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { - return SetNull(endpoint); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - return Set(endpoint, value.Value()); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace NullableInt16s +} // namespace MeasuredPhase5thHarmonicCurrent -namespace NullableInt24s { +namespace MeasuredPhase7thHarmonicCurrent { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT24S_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - using Traits = NumericAttributeTraits>; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT24S_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) -{ - if (value.IsNull()) - { - return SetNull(endpoint); - } - - return Set(endpoint, value.Value()); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace NullableInt24s +} // namespace MeasuredPhase7thHarmonicCurrent -namespace NullableInt32s { +namespace MeasuredPhase9thHarmonicCurrent { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT32S_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT32S_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) -{ - if (value.IsNull()) - { - return SetNull(endpoint); - } - - return Set(endpoint, value.Value()); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace NullableInt32s +} // namespace MeasuredPhase9thHarmonicCurrent -namespace NullableInt40s { +namespace MeasuredPhase11thHarmonicCurrent { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT40S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -EmberAfStatus SetNull(chip::EndpointId endpoint) +} // namespace MeasuredPhase11thHarmonicCurrent + +namespace AcFrequencyMultiplier { + +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits>; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT40S_ATTRIBUTE_TYPE); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; } - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - if (value.IsNull()) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { - return SetNull(endpoint); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - return Set(endpoint, value.Value()); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace NullableInt40s +} // namespace AcFrequencyMultiplier -namespace NullableInt48s { +namespace AcFrequencyDivisor { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT48S_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - using Traits = NumericAttributeTraits>; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT48S_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) -{ - if (value.IsNull()) - { - return SetNull(endpoint); - } - - return Set(endpoint, value.Value()); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace NullableInt48s +} // namespace AcFrequencyDivisor -namespace NullableInt56s { +namespace PowerMultiplier { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT56S_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - using Traits = NumericAttributeTraits>; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT56S_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) -{ - if (value.IsNull()) - { - return SetNull(endpoint); - } - - return Set(endpoint, value.Value()); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT32U_ATTRIBUTE_TYPE); } -} // namespace NullableInt56s +} // namespace PowerMultiplier -namespace NullableInt64s { +namespace PowerDivisor { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT64S_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT64S_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) -{ - if (value.IsNull()) - { - return SetNull(endpoint); - } - - return Set(endpoint, value.Value()); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT32U_ATTRIBUTE_TYPE); } -} // namespace NullableInt64s +} // namespace PowerDivisor -namespace NullableEnum8 { +namespace HarmonicCurrentMultiplier { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM8_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); } -EmberAfStatus SetNull(chip::EndpointId endpoint) +} // namespace HarmonicCurrentMultiplier + +namespace PhaseHarmonicCurrentMultiplier { + +EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) { - using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM8_ATTRIBUTE_TYPE); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; } - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { - if (value.IsNull()) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { - return SetNull(endpoint); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - return Set(endpoint, value.Value()); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); } -} // namespace NullableEnum8 +} // namespace PhaseHarmonicCurrentMultiplier -namespace NullableEnum16 { +namespace InstantaneousVoltage { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM16_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -EmberAfStatus SetNull(chip::EndpointId endpoint) +} // namespace InstantaneousVoltage + +namespace InstantaneousLineCurrent { + +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM16_ATTRIBUTE_TYPE); + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; } - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - if (value.IsNull()) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { - return SetNull(endpoint); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - return Set(endpoint, value.Value()); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace NullableEnum16 +} // namespace InstantaneousLineCurrent -namespace NullableFloatSingle { +namespace InstantaneousActiveCurrent { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, float value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_SINGLE_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_SINGLE_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) -{ - if (value.IsNull()) - { - return SetNull(endpoint); - } - - return Set(endpoint, value.Value()); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace NullableFloatSingle +} // namespace InstantaneousActiveCurrent -namespace NullableFloatDouble { +namespace InstantaneousReactiveCurrent { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, double value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_DOUBLE_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_DOUBLE_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) -{ - if (value.IsNull()) - { - return SetNull(endpoint); - } - - return Set(endpoint, value.Value()); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace NullableFloatDouble +} // namespace InstantaneousReactiveCurrent -namespace NullableOctetString { +namespace InstantaneousPower { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - uint8_t zclString[10 + 1]; - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, sizeof(zclString)); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNull(); - return EMBER_ZCL_STATUS_SUCCESS; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - auto & span = value.SetNonNull(); - - VerifyOrReturnError(span.size() == 10, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(span.data(), &zclString[1], 10); - span.reduce_size(length); + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) -{ - static_assert(10 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 10, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[10 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - uint8_t zclString[1] = { 0xFF }; - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - if (value.IsNull()) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { - return SetNull(endpoint); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - return Set(endpoint, value.Value()); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace NullableOctetString +} // namespace InstantaneousPower -namespace NullableCharString { +namespace RmsVoltage { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - uint8_t zclString[10 + 1]; - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, sizeof(zclString)); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNull(); - return EMBER_ZCL_STATUS_SUCCESS; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - auto & span = value.SetNonNull(); - - VerifyOrReturnError(span.size() == 10, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(span.data(), &zclString[1], 10); - span.reduce_size(length); + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) -{ - static_assert(10 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 10, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[10 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, ZCL_CHAR_STRING_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - uint8_t zclString[1] = { 0xFF }; - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, ZCL_CHAR_STRING_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - if (value.IsNull()) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { - return SetNull(endpoint); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - return Set(endpoint, value.Value()); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace NullableCharString +} // namespace RmsVoltage -namespace NullableEnumAttr { +namespace RmsVoltageMin { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::TestCluster::SimpleEnum value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM8_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM8_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, - const chip::app::DataModel::Nullable & value) -{ - if (value.IsNull()) - { - return SetNull(endpoint); - } - - return Set(endpoint, value.Value()); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace NullableEnumAttr +} // namespace RmsVoltageMin -namespace NullableRangeRestrictedInt8u { +namespace RmsVoltageMax { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) -{ - if (value.IsNull()) - { - return SetNull(endpoint); - } - - return Set(endpoint, value.Value()); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace NullableRangeRestrictedInt8u +} // namespace RmsVoltageMax -namespace NullableRangeRestrictedInt8s { +namespace RmsCurrent { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) -{ - if (value.IsNull()) - { - return SetNull(endpoint); - } - - return Set(endpoint, value.Value()); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace NullableRangeRestrictedInt8s +} // namespace RmsCurrent -namespace NullableRangeRestrictedInt16u { +namespace RmsCurrentMin { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -EmberAfStatus SetNull(chip::EndpointId endpoint) +} // namespace RmsCurrentMin + +namespace RmsCurrentMax { + +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; } - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - if (value.IsNull()) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { - return SetNull(endpoint); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - return Set(endpoint, value.Value()); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace NullableRangeRestrictedInt16u +} // namespace RmsCurrentMax -namespace NullableRangeRestrictedInt16s { +namespace ActivePower { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (Traits::IsNullValue(temp)) - { - value.SetNull(); - } - else + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { - value.SetNonNull() = Traits::StorageToWorking(temp); + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } + *value = Traits::StorageToWorking(temp); return status; } EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); -} - -EmberAfStatus SetNull(chip::EndpointId endpoint) -{ - using Traits = NumericAttributeTraits; - Traits::StorageType value; - Traits::SetNull(value); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); -} - -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) -{ - if (value.IsNull()) - { - return SetNull(endpoint); - } - - return Set(endpoint, value.Value()); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace NullableRangeRestrictedInt16s +} // namespace ActivePower -namespace FeatureMap { +namespace ActivePowerMin { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -36287,9 +36121,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -36297,19 +36131,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace FeatureMap +} // namespace ActivePowerMin -namespace ClusterRevision { +namespace ActivePowerMax { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -36318,9 +36152,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -36328,25 +36162,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace ClusterRevision - -} // namespace Attributes -} // namespace TestCluster - -namespace Messaging { -namespace Attributes { +} // namespace ActivePowerMax -namespace FeatureMap { +namespace ReactivePower { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::Messaging::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -36355,9 +36183,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -36365,19 +36193,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::Messaging::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace FeatureMap +} // namespace ReactivePower -namespace ClusterRevision { +namespace ApparentPower { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::Messaging::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -36396,25 +36224,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::Messaging::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace ClusterRevision - -} // namespace Attributes -} // namespace Messaging - -namespace ApplianceIdentification { -namespace Attributes { +} // namespace ApparentPower -namespace BasicIdentification { +namespace PowerFactor { -EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -36423,9 +36245,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -36433,51 +36255,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, writable, ZCL_INT56U_ATTRIBUTE_TYPE); -} - -} // namespace BasicIdentification - -namespace CompanyName { - -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) -{ - uint8_t zclString[16 + 1]; - EmberAfStatus status = - emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, sizeof(zclString)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[1], 16); - value.reduce_size(length); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) -{ - static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[16 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, - ZCL_CHAR_STRING_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); } -} // namespace CompanyName +} // namespace PowerFactor -namespace CompanyId { +namespace AverageRmsVoltageMeasurementPeriod { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -36496,51 +36286,50 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace CompanyId +} // namespace AverageRmsVoltageMeasurementPeriod -namespace BrandName { +namespace AverageRmsUnderVoltageCounter { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - uint8_t zclString[16 + 1]; - EmberAfStatus status = - emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, sizeof(zclString)); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[1], 16); - value.reduce_size(length); + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[16 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, - ZCL_CHAR_STRING_ATTRIBUTE_TYPE); + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace BrandName +} // namespace AverageRmsUnderVoltageCounter -namespace BrandId { +namespace RmsExtremeOverVoltagePeriod { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -36559,179 +36348,112 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace BrandId +} // namespace RmsExtremeOverVoltagePeriod -namespace Model { +namespace RmsExtremeUnderVoltagePeriod { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - uint8_t zclString[16 + 1]; - EmberAfStatus status = - emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, sizeof(zclString)); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[1], 16); - value.reduce_size(length); + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) -{ - static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[16 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, - ZCL_OCTET_STRING_ATTRIBUTE_TYPE); -} - -} // namespace Model - -namespace PartNumber { - -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - uint8_t zclString[16 + 1]; - EmberAfStatus status = - emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, sizeof(zclString)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[1], 16); - value.reduce_size(length); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) -{ - static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[16 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, - ZCL_OCTET_STRING_ATTRIBUTE_TYPE); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace PartNumber +} // namespace RmsExtremeUnderVoltagePeriod -namespace ProductRevision { +namespace RmsVoltageSagPeriod { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - uint8_t zclString[6 + 1]; - EmberAfStatus status = - emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, sizeof(zclString)); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[1], 6); - value.reduce_size(length); + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) -{ - static_assert(6 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[6 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, - ZCL_OCTET_STRING_ATTRIBUTE_TYPE); -} - -} // namespace ProductRevision - -namespace SoftwareRevision { - -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - uint8_t zclString[6 + 1]; - EmberAfStatus status = - emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, sizeof(zclString)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[1], 6); - value.reduce_size(length); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) -{ - static_assert(6 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[6 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, - ZCL_OCTET_STRING_ATTRIBUTE_TYPE); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace SoftwareRevision +} // namespace RmsVoltageSagPeriod -namespace ProductTypeName { +namespace RmsVoltageSwellPeriod { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - uint8_t zclString[2 + 1]; - EmberAfStatus status = - emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, sizeof(zclString)); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - VerifyOrReturnError(value.size() == 2, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[1], 2); - value.reduce_size(length); + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - static_assert(2 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 2, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[2 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, zclString, - ZCL_OCTET_STRING_ATTRIBUTE_TYPE); + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace ProductTypeName +} // namespace RmsVoltageSwellPeriod -namespace ProductTypeId { +namespace AcVoltageMultiplier { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -36750,19 +36472,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace ProductTypeId +} // namespace AcVoltageMultiplier -namespace CecedSpecificationVersion { +namespace AcVoltageDivisor { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -36771,9 +36493,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -36781,19 +36503,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace CecedSpecificationVersion +} // namespace AcVoltageDivisor -namespace FeatureMap { +namespace AcCurrentMultiplier { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -36802,9 +36524,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -36812,19 +36534,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace FeatureMap +} // namespace AcCurrentMultiplier -namespace ClusterRevision { +namespace AcCurrentDivisor { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -36843,56 +36565,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); -} - -} // namespace ClusterRevision - -} // namespace Attributes -} // namespace ApplianceIdentification - -namespace MeterIdentification { -namespace Attributes { - -namespace CompanyName { - -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) -{ - uint8_t zclString[16 + 1]; - EmberAfStatus status = - emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, sizeof(zclString)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[1], 16); - value.reduce_size(length); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) -{ - static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[16 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, ZCL_CHAR_STRING_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace CompanyName +} // namespace AcCurrentDivisor -namespace MeterTypeId { +namespace AcPowerMultiplier { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -36911,19 +36596,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace MeterTypeId +} // namespace AcPowerMultiplier -namespace DataQualityId { +namespace AcPowerDivisor { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -36942,236 +36627,143 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace DataQualityId +} // namespace AcPowerDivisor -namespace CustomerName { +namespace OverloadAlarmsMask { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) +EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) { - uint8_t zclString[16 + 1]; - EmberAfStatus status = - emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, sizeof(zclString)); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[1], 16); - value.reduce_size(length); + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) -{ - static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[16 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, ZCL_CHAR_STRING_ATTRIBUTE_TYPE); -} - -} // namespace CustomerName - -namespace Model { - -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { - uint8_t zclString[16 + 1]; - EmberAfStatus status = - emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, sizeof(zclString)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[1], 16); - value.reduce_size(length); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) -{ - static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[16 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_BITMAP8_ATTRIBUTE_TYPE); } -} // namespace Model +} // namespace OverloadAlarmsMask -namespace PartNumber { +namespace VoltageOverload { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - uint8_t zclString[16 + 1]; - EmberAfStatus status = - emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, sizeof(zclString)); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[1], 16); - value.reduce_size(length); + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) -{ - static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[16 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); -} - -} // namespace PartNumber - -namespace ProductRevision { - -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - uint8_t zclString[6 + 1]; - EmberAfStatus status = - emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, sizeof(zclString)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[1], 6); - value.reduce_size(length); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) -{ - static_assert(6 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[6 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace ProductRevision +} // namespace VoltageOverload -namespace SoftwareRevision { +namespace CurrentOverload { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - uint8_t zclString[6 + 1]; - EmberAfStatus status = - emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, sizeof(zclString)); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[1], 6); - value.reduce_size(length); + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) -{ - static_assert(6 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[6 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); -} - -} // namespace SoftwareRevision - -namespace UtilityName { - -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - uint8_t zclString[16 + 1]; - EmberAfStatus status = - emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, sizeof(zclString)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[1], 16); - value.reduce_size(length); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) -{ - static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[16 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, ZCL_CHAR_STRING_ATTRIBUTE_TYPE); + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace UtilityName +} // namespace CurrentOverload -namespace Pod { +namespace AcOverloadAlarmsMask { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - uint8_t zclString[16 + 1]; - EmberAfStatus status = - emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, sizeof(zclString)); + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - size_t length = emberAfStringLength(zclString); - if (length == NumericAttributeTraits::kNullValue) + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); - memcpy(value.data(), &zclString[1], 16); - value.reduce_size(length); + *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); - uint8_t zclString[16 + 1]; - emberAfCopyInt8u(zclString, 0, static_cast(value.size())); - memcpy(&zclString[1], value.data(), value.size()); - return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, zclString, ZCL_CHAR_STRING_ATTRIBUTE_TYPE); + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_BITMAP16_ATTRIBUTE_TYPE); } -} // namespace Pod +} // namespace AcOverloadAlarmsMask -namespace AvailablePower { +namespace AcVoltageOverload { -EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -37180,9 +36772,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37190,19 +36782,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, writable, ZCL_INT24S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace AvailablePower +} // namespace AcVoltageOverload -namespace PowerThreshold { +namespace AcCurrentOverload { -EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -37211,9 +36803,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits>; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37221,19 +36813,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, writable, ZCL_INT24S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace PowerThreshold +} // namespace AcCurrentOverload -namespace FeatureMap { +namespace AcActivePowerOverload { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -37242,9 +36834,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37252,19 +36844,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace FeatureMap +} // namespace AcActivePowerOverload -namespace ClusterRevision { +namespace AcReactivePowerOverload { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -37273,9 +36865,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37283,25 +36875,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace ClusterRevision - -} // namespace Attributes -} // namespace MeterIdentification - -namespace ApplianceEventsAndAlert { -namespace Attributes { +} // namespace AcReactivePowerOverload -namespace FeatureMap { +namespace AverageRmsOverVoltage { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceEventsAndAlert::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -37310,9 +36896,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37320,19 +36906,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceEventsAndAlert::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace FeatureMap +} // namespace AverageRmsOverVoltage -namespace ClusterRevision { +namespace AverageRmsUnderVoltage { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceEventsAndAlert::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -37341,9 +36927,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37351,25 +36937,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceEventsAndAlert::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace ClusterRevision - -} // namespace Attributes -} // namespace ApplianceEventsAndAlert - -namespace ApplianceStatistics { -namespace Attributes { +} // namespace AverageRmsUnderVoltage -namespace LogMaxSize { +namespace RmsExtremeOverVoltage { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -37378,9 +36958,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37388,19 +36968,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, writable, ZCL_INT32U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace LogMaxSize +} // namespace RmsExtremeOverVoltage -namespace LogQueueMaxSize { +namespace RmsExtremeUnderVoltage { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -37409,9 +36989,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37419,19 +36999,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace LogQueueMaxSize +} // namespace RmsExtremeUnderVoltage -namespace FeatureMap { +namespace RmsVoltageSag { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -37440,9 +37020,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37450,19 +37030,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace FeatureMap +} // namespace RmsVoltageSag -namespace ClusterRevision { +namespace RmsVoltageSwell { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -37471,9 +37051,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37481,22 +37061,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace ClusterRevision - -} // namespace Attributes -} // namespace ApplianceStatistics - -namespace ElectricalMeasurement { -namespace Attributes { +} // namespace RmsVoltageSwell -namespace MeasurementType { +namespace LineCurrentPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -37508,9 +37082,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37518,12 +37092,12 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace MeasurementType +} // namespace LineCurrentPhaseB -namespace DcVoltage { +namespace ActiveCurrentPhaseB { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { @@ -37552,9 +37126,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace DcVoltage +} // namespace ActiveCurrentPhaseB -namespace DcVoltageMin { +namespace ReactiveCurrentPhaseB { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { @@ -37583,13 +37157,13 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace DcVoltageMin +} // namespace ReactiveCurrentPhaseB -namespace DcVoltageMax { +namespace RmsVoltagePhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -37601,9 +37175,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37611,16 +37185,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace DcVoltageMax +} // namespace RmsVoltagePhaseB -namespace DcCurrent { +namespace RmsVoltageMinPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -37632,9 +37206,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37642,16 +37216,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace DcCurrent +} // namespace RmsVoltageMinPhaseB -namespace DcCurrentMin { +namespace RmsVoltageMaxPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -37663,9 +37237,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37673,16 +37247,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace DcCurrentMin +} // namespace RmsVoltageMaxPhaseB -namespace DcCurrentMax { +namespace RmsCurrentPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -37694,9 +37268,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37704,16 +37278,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace DcCurrentMax +} // namespace RmsCurrentPhaseB -namespace DcPower { +namespace RmsCurrentMinPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -37725,9 +37299,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37735,16 +37309,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace DcPower +} // namespace RmsCurrentMinPhaseB -namespace DcPowerMin { +namespace RmsCurrentMaxPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -37756,9 +37330,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37766,12 +37340,12 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace DcPowerMin +} // namespace RmsCurrentMaxPhaseB -namespace DcPowerMax { +namespace ActivePowerPhaseB { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { @@ -37800,13 +37374,13 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace DcPowerMax +} // namespace ActivePowerPhaseB -namespace DcVoltageMultiplier { +namespace ActivePowerMinPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -37818,9 +37392,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37828,16 +37402,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace DcVoltageMultiplier +} // namespace ActivePowerMinPhaseB -namespace DcVoltageDivisor { +namespace ActivePowerMaxPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -37849,9 +37423,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37859,16 +37433,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace DcVoltageDivisor +} // namespace ActivePowerMaxPhaseB -namespace DcCurrentMultiplier { +namespace ReactivePowerPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -37880,9 +37454,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37890,12 +37464,12 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace DcCurrentMultiplier +} // namespace ReactivePowerPhaseB -namespace DcCurrentDivisor { +namespace ApparentPowerPhaseB { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { @@ -37924,13 +37498,13 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace DcCurrentDivisor +} // namespace ApparentPowerPhaseB -namespace DcPowerMultiplier { +namespace PowerFactorPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -37942,9 +37516,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -37952,12 +37526,12 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); } -} // namespace DcPowerMultiplier +} // namespace PowerFactorPhaseB -namespace DcPowerDivisor { +namespace AverageRmsVoltageMeasurementPeriodPhaseB { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { @@ -37986,9 +37560,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace DcPowerDivisor +} // namespace AverageRmsVoltageMeasurementPeriodPhaseB -namespace AcFrequency { +namespace AverageRmsOverVoltageCounterPhaseB { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { @@ -38017,9 +37591,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace AcFrequency +} // namespace AverageRmsOverVoltageCounterPhaseB -namespace AcFrequencyMin { +namespace AverageRmsUnderVoltageCounterPhaseB { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { @@ -38048,9 +37622,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace AcFrequencyMin +} // namespace AverageRmsUnderVoltageCounterPhaseB -namespace AcFrequencyMax { +namespace RmsExtremeOverVoltagePeriodPhaseB { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { @@ -38079,9 +37653,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace AcFrequencyMax +} // namespace RmsExtremeOverVoltagePeriodPhaseB -namespace NeutralCurrent { +namespace RmsExtremeUnderVoltagePeriodPhaseB { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { @@ -38110,13 +37684,13 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace NeutralCurrent +} // namespace RmsExtremeUnderVoltagePeriodPhaseB -namespace TotalActivePower { +namespace RmsVoltageSagPeriodPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38128,9 +37702,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38138,16 +37712,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT32S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace TotalActivePower +} // namespace RmsVoltageSagPeriodPhaseB -namespace TotalReactivePower { +namespace RmsVoltageSwellPeriodPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38159,9 +37733,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38169,16 +37743,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT32S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace TotalReactivePower +} // namespace RmsVoltageSwellPeriodPhaseB -namespace TotalApparentPower { +namespace LineCurrentPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38190,9 +37764,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38200,12 +37774,12 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT32U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace TotalApparentPower +} // namespace LineCurrentPhaseC -namespace Measured1stHarmonicCurrent { +namespace ActiveCurrentPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { @@ -38234,9 +37808,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace Measured1stHarmonicCurrent +} // namespace ActiveCurrentPhaseC -namespace Measured3rdHarmonicCurrent { +namespace ReactiveCurrentPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { @@ -38265,13 +37839,13 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace Measured3rdHarmonicCurrent +} // namespace ReactiveCurrentPhaseC -namespace Measured5thHarmonicCurrent { +namespace RmsVoltagePhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38283,9 +37857,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38293,16 +37867,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace Measured5thHarmonicCurrent +} // namespace RmsVoltagePhaseC -namespace Measured7thHarmonicCurrent { +namespace RmsVoltageMinPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38314,9 +37888,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38324,16 +37898,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace Measured7thHarmonicCurrent +} // namespace RmsVoltageMinPhaseC -namespace Measured9thHarmonicCurrent { +namespace RmsVoltageMaxPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38345,9 +37919,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38355,16 +37929,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace Measured9thHarmonicCurrent +} // namespace RmsVoltageMaxPhaseC -namespace Measured11thHarmonicCurrent { +namespace RmsCurrentPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38376,9 +37950,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38386,16 +37960,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace Measured11thHarmonicCurrent +} // namespace RmsCurrentPhaseC -namespace MeasuredPhase1stHarmonicCurrent { +namespace RmsCurrentMinPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38407,9 +37981,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38417,16 +37991,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace MeasuredPhase1stHarmonicCurrent +} // namespace RmsCurrentMinPhaseC -namespace MeasuredPhase3rdHarmonicCurrent { +namespace RmsCurrentMaxPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38438,9 +38012,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38448,12 +38022,12 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace MeasuredPhase3rdHarmonicCurrent +} // namespace RmsCurrentMaxPhaseC -namespace MeasuredPhase5thHarmonicCurrent { +namespace ActivePowerPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { @@ -38482,9 +38056,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace MeasuredPhase5thHarmonicCurrent +} // namespace ActivePowerPhaseC -namespace MeasuredPhase7thHarmonicCurrent { +namespace ActivePowerMinPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { @@ -38513,9 +38087,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace MeasuredPhase7thHarmonicCurrent +} // namespace ActivePowerMinPhaseC -namespace MeasuredPhase9thHarmonicCurrent { +namespace ActivePowerMaxPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { @@ -38544,9 +38118,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace MeasuredPhase9thHarmonicCurrent +} // namespace ActivePowerMaxPhaseC -namespace MeasuredPhase11thHarmonicCurrent { +namespace ReactivePowerPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { @@ -38575,9 +38149,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace MeasuredPhase11thHarmonicCurrent +} // namespace ReactivePowerPhaseC -namespace AcFrequencyMultiplier { +namespace ApparentPowerPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { @@ -38606,13 +38180,13 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace AcFrequencyMultiplier +} // namespace ApparentPowerPhaseC -namespace AcFrequencyDivisor { +namespace PowerFactorPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38624,9 +38198,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38634,16 +38208,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); } -} // namespace AcFrequencyDivisor +} // namespace PowerFactorPhaseC -namespace PowerMultiplier { +namespace AverageRmsVoltageMeasurementPeriodPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38655,9 +38229,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38665,16 +38239,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT32U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace PowerMultiplier +} // namespace AverageRmsVoltageMeasurementPeriodPhaseC -namespace PowerDivisor { +namespace AverageRmsOverVoltageCounterPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38686,9 +38260,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38696,16 +38270,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT32U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace PowerDivisor +} // namespace AverageRmsOverVoltageCounterPhaseC -namespace HarmonicCurrentMultiplier { +namespace AverageRmsUnderVoltageCounterPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38717,9 +38291,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38727,16 +38301,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace HarmonicCurrentMultiplier +} // namespace AverageRmsUnderVoltageCounterPhaseC -namespace PhaseHarmonicCurrentMultiplier { +namespace RmsExtremeOverVoltagePeriodPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38748,9 +38322,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38758,16 +38332,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace PhaseHarmonicCurrentMultiplier +} // namespace RmsExtremeOverVoltagePeriodPhaseC -namespace InstantaneousVoltage { +namespace RmsExtremeUnderVoltagePeriodPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38779,9 +38353,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38789,12 +38363,12 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace InstantaneousVoltage +} // namespace RmsExtremeUnderVoltagePeriodPhaseC -namespace InstantaneousLineCurrent { +namespace RmsVoltageSagPeriodPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { @@ -38823,13 +38397,13 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace InstantaneousLineCurrent +} // namespace RmsVoltageSagPeriodPhaseC -namespace InstantaneousActiveCurrent { +namespace RmsVoltageSwellPeriodPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38841,9 +38415,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38851,16 +38425,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace InstantaneousActiveCurrent +} // namespace RmsVoltageSwellPeriodPhaseC -namespace InstantaneousReactiveCurrent { +namespace FeatureMap { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38872,9 +38446,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38882,16 +38456,16 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); } -} // namespace InstantaneousReactiveCurrent +} // namespace FeatureMap -namespace InstantaneousPower { +namespace ClusterRevision { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); @@ -38903,9 +38477,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38913,19 +38487,25 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace InstantaneousPower +} // namespace ClusterRevision -namespace RmsVoltage { +} // namespace Attributes +} // namespace ElectricalMeasurement -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +namespace TestCluster { +namespace Attributes { + +namespace Boolean { + +EmberAfStatus Get(chip::EndpointId endpoint, bool * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -38934,9 +38514,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, bool value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38944,19 +38524,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } -} // namespace RmsVoltage +} // namespace Boolean -namespace RmsVoltageMin { +namespace Bitmap8 { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -38965,9 +38545,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -38975,19 +38555,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP8_ATTRIBUTE_TYPE); } -} // namespace RmsVoltageMin +} // namespace Bitmap8 -namespace RmsVoltageMax { +namespace Bitmap16 { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -38996,9 +38576,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39006,19 +38586,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP16_ATTRIBUTE_TYPE); } -} // namespace RmsVoltageMax +} // namespace Bitmap16 -namespace RmsCurrent { +namespace Bitmap32 { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39027,9 +38607,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39037,19 +38617,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); } -} // namespace RmsCurrent +} // namespace Bitmap32 -namespace RmsCurrentMin { +namespace Bitmap64 { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39058,9 +38638,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39068,19 +38648,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP64_ATTRIBUTE_TYPE); } -} // namespace RmsCurrentMin +} // namespace Bitmap64 -namespace RmsCurrentMax { +namespace Int8u { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39089,9 +38669,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39099,19 +38679,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); } -} // namespace RmsCurrentMax +} // namespace Int8u -namespace ActivePower { +namespace Int16u { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39120,9 +38700,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39130,19 +38710,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace ActivePower +} // namespace Int16u -namespace ActivePowerMin { +namespace Int24u { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39151,9 +38731,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39161,19 +38741,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT24U_ATTRIBUTE_TYPE); } -} // namespace ActivePowerMin +} // namespace Int24u -namespace ActivePowerMax { +namespace Int32u { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39182,9 +38762,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39192,19 +38772,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT32U_ATTRIBUTE_TYPE); } -} // namespace ActivePowerMax +} // namespace Int32u -namespace ReactivePower { +namespace Int40u { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39213,9 +38793,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39223,19 +38803,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT40U_ATTRIBUTE_TYPE); } -} // namespace ReactivePower +} // namespace Int40u -namespace ApparentPower { +namespace Int48u { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39244,9 +38824,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39254,19 +38834,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT48U_ATTRIBUTE_TYPE); } -} // namespace ApparentPower +} // namespace Int48u -namespace PowerFactor { +namespace Int56u { -EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39275,9 +38855,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39285,19 +38865,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT56U_ATTRIBUTE_TYPE); } -} // namespace PowerFactor +} // namespace Int56u -namespace AverageRmsVoltageMeasurementPeriod { +namespace Int64u { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39306,9 +38886,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39316,19 +38896,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT64U_ATTRIBUTE_TYPE); } -} // namespace AverageRmsVoltageMeasurementPeriod +} // namespace Int64u -namespace AverageRmsUnderVoltageCounter { +namespace Int8s { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39337,9 +38917,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39347,19 +38927,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); } -} // namespace AverageRmsUnderVoltageCounter +} // namespace Int8s -namespace RmsExtremeOverVoltagePeriod { +namespace Int16s { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39368,9 +38948,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39378,19 +38958,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace RmsExtremeOverVoltagePeriod +} // namespace Int16s -namespace RmsExtremeUnderVoltagePeriod { +namespace Int24s { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39399,9 +38979,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39409,19 +38989,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT24S_ATTRIBUTE_TYPE); } -} // namespace RmsExtremeUnderVoltagePeriod +} // namespace Int24s -namespace RmsVoltageSagPeriod { +namespace Int32s { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39430,9 +39010,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39440,19 +39020,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT32S_ATTRIBUTE_TYPE); } -} // namespace RmsVoltageSagPeriod +} // namespace Int32s -namespace RmsVoltageSwellPeriod { +namespace Int40s { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39461,9 +39041,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39471,19 +39051,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT40S_ATTRIBUTE_TYPE); } -} // namespace RmsVoltageSwellPeriod +} // namespace Int40s -namespace AcVoltageMultiplier { +namespace Int48s { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39492,9 +39072,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39502,19 +39082,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT48S_ATTRIBUTE_TYPE); } -} // namespace AcVoltageMultiplier +} // namespace Int48s -namespace AcVoltageDivisor { +namespace Int56s { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39523,9 +39103,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39533,19 +39113,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT56S_ATTRIBUTE_TYPE); } -} // namespace AcVoltageDivisor +} // namespace Int56s -namespace AcCurrentMultiplier { +namespace Int64s { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39554,9 +39134,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39564,19 +39144,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT64S_ATTRIBUTE_TYPE); } -} // namespace AcCurrentMultiplier +} // namespace Int64s -namespace AcCurrentDivisor { +namespace Enum8 { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39585,9 +39165,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39595,19 +39175,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM8_ATTRIBUTE_TYPE); } -} // namespace AcCurrentDivisor +} // namespace Enum8 -namespace AcPowerMultiplier { +namespace Enum16 { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39626,19 +39206,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM16_ATTRIBUTE_TYPE); } -} // namespace AcPowerMultiplier +} // namespace Enum16 -namespace AcPowerDivisor { +namespace FloatSingle { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, float * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39647,9 +39227,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, float value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39657,19 +39237,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_SINGLE_ATTRIBUTE_TYPE); } -} // namespace AcPowerDivisor +} // namespace FloatSingle -namespace OverloadAlarmsMask { +namespace FloatDouble { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, double * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39678,9 +39258,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, double value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39688,81 +39268,139 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_BITMAP8_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_DOUBLE_ATTRIBUTE_TYPE); } -} // namespace OverloadAlarmsMask +} // namespace FloatDouble -namespace VoltageOverload { +namespace OctetString { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) { - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + uint8_t zclString[10 + 1]; + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, sizeof(zclString)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - *value = Traits::StorageToWorking(temp); + + VerifyOrReturnError(value.size() == 10, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[1], 10); + value.reduce_size(length); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + static_assert(10 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 10, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[10 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); +} + +} // namespace OctetString + +namespace LongOctetString { + +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) +{ + uint8_t zclString[1000 + 2]; + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, sizeof(zclString)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + size_t length = emberAfLongStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + + VerifyOrReturnError(value.size() == 1000, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[2], 1000); + value.reduce_size(length); + return status; +} +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) +{ + static_assert(1000 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 1000, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[1000 + 2]; + emberAfCopyInt16u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[2], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, ZCL_LONG_OCTET_STRING_ATTRIBUTE_TYPE); } -} // namespace VoltageOverload +} // namespace LongOctetString -namespace CurrentOverload { +namespace CharString { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) { - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + uint8_t zclString[10 + 1]; + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, sizeof(zclString)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - *value = Traits::StorageToWorking(temp); + + VerifyOrReturnError(value.size() == 10, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[1], 10); + value.reduce_size(length); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + static_assert(10 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 10, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[10 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, ZCL_CHAR_STRING_ATTRIBUTE_TYPE); +} + +} // namespace CharString + +namespace LongCharString { + +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) +{ + uint8_t zclString[1000 + 2]; + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, sizeof(zclString)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + size_t length = emberAfLongStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + + VerifyOrReturnError(value.size() == 1000, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(value.data(), &zclString[2], 1000); + value.reduce_size(length); + return status; +} +EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) +{ + static_assert(1000 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 1000, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[1000 + 2]; + emberAfCopyInt16u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[2], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, ZCL_LONG_CHAR_STRING_ATTRIBUTE_TYPE); } -} // namespace CurrentOverload +} // namespace LongCharString -namespace AcOverloadAlarmsMask { +namespace EpochUs { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39771,9 +39409,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39781,19 +39419,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_BITMAP16_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_EPOCH_US_ATTRIBUTE_TYPE); } -} // namespace AcOverloadAlarmsMask +} // namespace EpochUs -namespace AcVoltageOverload { +namespace EpochS { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39802,9 +39440,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39812,19 +39450,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_EPOCH_S_ATTRIBUTE_TYPE); } -} // namespace AcVoltageOverload +} // namespace EpochS -namespace AcCurrentOverload { +namespace VendorId { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::VendorId * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39833,9 +39471,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::VendorId value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39843,19 +39481,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_VENDOR_ID_ATTRIBUTE_TYPE); } -} // namespace AcCurrentOverload +} // namespace VendorId -namespace AcActivePowerOverload { +namespace EnumAttr { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::TestCluster::SimpleEnum * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39864,9 +39502,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::TestCluster::SimpleEnum value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39874,19 +39512,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM8_ATTRIBUTE_TYPE); } -} // namespace AcActivePowerOverload +} // namespace EnumAttr -namespace AcReactivePowerOverload { +namespace RangeRestrictedInt8u { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39895,9 +39533,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39905,19 +39543,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); } -} // namespace AcReactivePowerOverload +} // namespace RangeRestrictedInt8u -namespace AverageRmsOverVoltage { +namespace RangeRestrictedInt8s { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39926,9 +39564,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39936,19 +39574,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); } -} // namespace AverageRmsOverVoltage +} // namespace RangeRestrictedInt8s -namespace AverageRmsUnderVoltage { +namespace RangeRestrictedInt16u { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39957,9 +39595,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -39967,19 +39605,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace AverageRmsUnderVoltage +} // namespace RangeRestrictedInt16u -namespace RmsExtremeOverVoltage { +namespace RangeRestrictedInt16s { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -39998,19 +39636,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace RmsExtremeOverVoltage +} // namespace RangeRestrictedInt16s -namespace RmsExtremeUnderVoltage { +namespace TimedWriteBoolean { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, bool * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -40019,9 +39657,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, bool value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -40029,19 +39667,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } -} // namespace RmsExtremeUnderVoltage +} // namespace TimedWriteBoolean -namespace RmsVoltageSag { +namespace GeneralErrorBoolean { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, bool * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -40050,9 +39688,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, bool value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -40060,19 +39698,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } -} // namespace RmsVoltageSag +} // namespace GeneralErrorBoolean -namespace RmsVoltageSwell { +namespace ClusterErrorBoolean { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, bool * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -40081,9 +39719,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, bool value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -40091,19 +39729,19 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } -} // namespace RmsVoltageSwell +} // namespace ClusterErrorBoolean -namespace LineCurrentPhaseB { +namespace Unsupported { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, bool * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -40112,9 +39750,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, bool value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -40122,1343 +39760,1705 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } -} // namespace LineCurrentPhaseB +} // namespace Unsupported -namespace ActiveCurrentPhaseB { +namespace NullableBoolean { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, bool value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } -} // namespace ActiveCurrentPhaseB +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} -namespace ReactiveCurrentPhaseB { +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) + return Set(endpoint, value.Value()); +} + +} // namespace NullableBoolean + +namespace NullableBitmap8 { + +EmberAfStatus Get(chip::EndpointId endpoint, + DataModel::Nullable> & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits>; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP8_ATTRIBUTE_TYPE); } -} // namespace ReactiveCurrentPhaseB +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits>; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP8_ATTRIBUTE_TYPE); +} -namespace RmsVoltagePhaseB { +EmberAfStatus Set(chip::EndpointId endpoint, + const chip::app::DataModel::Nullable> & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) + return Set(endpoint, value.Value()); +} + +} // namespace NullableBitmap8 + +namespace NullableBitmap16 { + +EmberAfStatus Get(chip::EndpointId endpoint, + DataModel::Nullable> & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits>; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP16_ATTRIBUTE_TYPE); +} + +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits>; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP16_ATTRIBUTE_TYPE); +} + +EmberAfStatus Set(chip::EndpointId endpoint, + const chip::app::DataModel::Nullable> & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } + + return Set(endpoint, value.Value()); } -} // namespace RmsVoltagePhaseB +} // namespace NullableBitmap16 -namespace RmsVoltageMinPhaseB { +namespace NullableBitmap32 { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, + DataModel::Nullable> & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits>; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); } -} // namespace RmsVoltageMinPhaseB - -namespace RmsVoltageMaxPhaseB { - -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus SetNull(chip::EndpointId endpoint) { - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; + using Traits = NumericAttributeTraits>; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) + +EmberAfStatus Set(chip::EndpointId endpoint, + const chip::app::DataModel::Nullable> & value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + if (value.IsNull()) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + return SetNull(endpoint); } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + + return Set(endpoint, value.Value()); } -} // namespace RmsVoltageMaxPhaseB +} // namespace NullableBitmap32 -namespace RmsCurrentPhaseB { +namespace NullableBitmap64 { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, + DataModel::Nullable> & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits>; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP64_ATTRIBUTE_TYPE); } -} // namespace RmsCurrentPhaseB - -namespace RmsCurrentMinPhaseB { - -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus SetNull(chip::EndpointId endpoint) { - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; + using Traits = NumericAttributeTraits>; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP64_ATTRIBUTE_TYPE); } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) + +EmberAfStatus Set(chip::EndpointId endpoint, + const chip::app::DataModel::Nullable> & value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + if (value.IsNull()) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + return SetNull(endpoint); } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + + return Set(endpoint, value.Value()); } -} // namespace RmsCurrentMinPhaseB +} // namespace NullableBitmap64 -namespace RmsCurrentMaxPhaseB { +namespace NullableInt8u { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); } -} // namespace RmsCurrentMaxPhaseB - -namespace ActivePowerPhaseB { - -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus SetNull(chip::EndpointId endpoint) { - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) + +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + if (value.IsNull()) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + return SetNull(endpoint); } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + + return Set(endpoint, value.Value()); } -} // namespace ActivePowerPhaseB +} // namespace NullableInt8u -namespace ActivePowerMinPhaseB { +namespace NullableInt16u { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace ActivePowerMinPhaseB - -namespace ActivePowerMaxPhaseB { - -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus SetNull(chip::EndpointId endpoint) { - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) + +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + if (value.IsNull()) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + return SetNull(endpoint); } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + + return Set(endpoint, value.Value()); } -} // namespace ActivePowerMaxPhaseB +} // namespace NullableInt16u -namespace ReactivePowerPhaseB { +namespace NullableInt24u { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits>; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT24U_ATTRIBUTE_TYPE); } -} // namespace ReactivePowerPhaseB - -namespace ApparentPowerPhaseB { - -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus SetNull(chip::EndpointId endpoint) { - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; + using Traits = NumericAttributeTraits>; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT24U_ATTRIBUTE_TYPE); } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) + +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + if (value.IsNull()) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + return SetNull(endpoint); } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + + return Set(endpoint, value.Value()); } -} // namespace ApparentPowerPhaseB +} // namespace NullableInt24u -namespace PowerFactorPhaseB { +namespace NullableInt32u { -EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT32U_ATTRIBUTE_TYPE); } -} // namespace PowerFactorPhaseB +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT32U_ATTRIBUTE_TYPE); +} -namespace AverageRmsVoltageMeasurementPeriodPhaseB { +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) + return Set(endpoint, value.Value()); +} + +} // namespace NullableInt32u + +namespace NullableInt40u { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits>; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT40U_ATTRIBUTE_TYPE); } -} // namespace AverageRmsVoltageMeasurementPeriodPhaseB +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits>; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT40U_ATTRIBUTE_TYPE); +} -namespace AverageRmsOverVoltageCounterPhaseB { +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) + return Set(endpoint, value.Value()); +} + +} // namespace NullableInt40u + +namespace NullableInt48u { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits>; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT48U_ATTRIBUTE_TYPE); } -} // namespace AverageRmsOverVoltageCounterPhaseB +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits>; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT48U_ATTRIBUTE_TYPE); +} -namespace AverageRmsUnderVoltageCounterPhaseB { +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) + return Set(endpoint, value.Value()); +} + +} // namespace NullableInt48u + +namespace NullableInt56u { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits>; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT56U_ATTRIBUTE_TYPE); } -} // namespace AverageRmsUnderVoltageCounterPhaseB - -namespace RmsExtremeOverVoltagePeriodPhaseB { - -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus SetNull(chip::EndpointId endpoint) { - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; + using Traits = NumericAttributeTraits>; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT56U_ATTRIBUTE_TYPE); } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) + +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + if (value.IsNull()) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + return SetNull(endpoint); } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + + return Set(endpoint, value.Value()); } -} // namespace RmsExtremeOverVoltagePeriodPhaseB +} // namespace NullableInt56u -namespace RmsExtremeUnderVoltagePeriodPhaseB { +namespace NullableInt64u { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT64U_ATTRIBUTE_TYPE); } -} // namespace RmsExtremeUnderVoltagePeriodPhaseB +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT64U_ATTRIBUTE_TYPE); +} -namespace RmsVoltageSagPeriodPhaseB { +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) + return Set(endpoint, value.Value()); +} + +} // namespace NullableInt64u + +namespace NullableInt8s { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); } -} // namespace RmsVoltageSagPeriodPhaseB +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); +} -namespace RmsVoltageSwellPeriodPhaseB { +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) + return Set(endpoint, value.Value()); +} + +} // namespace NullableInt8s + +namespace NullableInt16s { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace RmsVoltageSwellPeriodPhaseB +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); +} -namespace LineCurrentPhaseC { +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) + return Set(endpoint, value.Value()); +} + +} // namespace NullableInt16s + +namespace NullableInt24s { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits>; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT24S_ATTRIBUTE_TYPE); } -} // namespace LineCurrentPhaseC +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits>; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT24S_ATTRIBUTE_TYPE); +} -namespace ActiveCurrentPhaseC { +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) + return Set(endpoint, value.Value()); +} + +} // namespace NullableInt24s + +namespace NullableInt32s { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT32S_ATTRIBUTE_TYPE); } -} // namespace ActiveCurrentPhaseC +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT32S_ATTRIBUTE_TYPE); +} -namespace ReactiveCurrentPhaseC { +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) + return Set(endpoint, value.Value()); +} + +} // namespace NullableInt32s + +namespace NullableInt40s { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits>; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT40S_ATTRIBUTE_TYPE); } -} // namespace ReactiveCurrentPhaseC +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits>; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT40S_ATTRIBUTE_TYPE); +} -namespace RmsVoltagePhaseC { +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) + return Set(endpoint, value.Value()); +} + +} // namespace NullableInt40s + +namespace NullableInt48s { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits>; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT48S_ATTRIBUTE_TYPE); } -} // namespace RmsVoltagePhaseC +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits>; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT48S_ATTRIBUTE_TYPE); +} -namespace RmsVoltageMinPhaseC { +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) + return Set(endpoint, value.Value()); +} + +} // namespace NullableInt48s + +namespace NullableInt56s { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits>; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT56S_ATTRIBUTE_TYPE); } -} // namespace RmsVoltageMinPhaseC +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits>; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT56S_ATTRIBUTE_TYPE); +} -namespace RmsVoltageMaxPhaseC { +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) + return Set(endpoint, value.Value()); +} + +} // namespace NullableInt56s + +namespace NullableInt64s { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT64S_ATTRIBUTE_TYPE); } -} // namespace RmsVoltageMaxPhaseC +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT64S_ATTRIBUTE_TYPE); +} -namespace RmsCurrentPhaseC { +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) + return Set(endpoint, value.Value()); +} + +} // namespace NullableInt64s + +namespace NullableEnum8 { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM8_ATTRIBUTE_TYPE); } -} // namespace RmsCurrentPhaseC +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM8_ATTRIBUTE_TYPE); +} -namespace RmsCurrentMinPhaseC { +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) + return Set(endpoint, value.Value()); +} + +} // namespace NullableEnum8 + +namespace NullableEnum16 { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM16_ATTRIBUTE_TYPE); } -} // namespace RmsCurrentMinPhaseC - -namespace RmsCurrentMaxPhaseC { - -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus SetNull(chip::EndpointId endpoint) { using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM16_ATTRIBUTE_TYPE); } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) + +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + if (value.IsNull()) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + return SetNull(endpoint); } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + + return Set(endpoint, value.Value()); } -} // namespace RmsCurrentMaxPhaseC +} // namespace NullableEnum16 -namespace ActivePowerPhaseC { +namespace NullableFloatSingle { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, float value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_SINGLE_ATTRIBUTE_TYPE); } -} // namespace ActivePowerPhaseC +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_SINGLE_ATTRIBUTE_TYPE); +} -namespace ActivePowerMinPhaseC { +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) + return Set(endpoint, value.Value()); +} + +} // namespace NullableFloatSingle + +namespace NullableFloatDouble { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, double value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_DOUBLE_ATTRIBUTE_TYPE); } -} // namespace ActivePowerMinPhaseC +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_DOUBLE_ATTRIBUTE_TYPE); +} -namespace ActivePowerMaxPhaseC { +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) + return Set(endpoint, value.Value()); +} + +} // namespace NullableFloatDouble + +namespace NullableOctetString { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + uint8_t zclString[10 + 1]; + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, sizeof(zclString)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + return EMBER_ZCL_STATUS_SUCCESS; } - *value = Traits::StorageToWorking(temp); + auto & span = value.SetNonNull(); + + VerifyOrReturnError(span.size() == 10, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(span.data(), &zclString[1], 10); + span.reduce_size(length); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + static_assert(10 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 10, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[10 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); +} + +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + uint8_t zclString[1] = { 0xFF }; + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); +} + +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + return SetNull(endpoint); } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + + return Set(endpoint, value.Value()); } -} // namespace ActivePowerMaxPhaseC +} // namespace NullableOctetString -namespace ReactivePowerPhaseC { +namespace NullableCharString { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + uint8_t zclString[10 + 1]; + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, sizeof(zclString)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + return EMBER_ZCL_STATUS_SUCCESS; } - *value = Traits::StorageToWorking(temp); + auto & span = value.SetNonNull(); + + VerifyOrReturnError(span.size() == 10, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(span.data(), &zclString[1], 10); + span.reduce_size(length); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + static_assert(10 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 10, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[10 + 1]; + emberAfCopyInt8u(zclString, 0, static_cast(value.size())); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, ZCL_CHAR_STRING_ATTRIBUTE_TYPE); +} + +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + uint8_t zclString[1] = { 0xFF }; + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, zclString, ZCL_CHAR_STRING_ATTRIBUTE_TYPE); +} + +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + return SetNull(endpoint); } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + + return Set(endpoint, value.Value()); } -} // namespace ReactivePowerPhaseC +} // namespace NullableCharString -namespace ApparentPowerPhaseC { +namespace NullableEnumAttr { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::TestCluster::SimpleEnum value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM8_ATTRIBUTE_TYPE); +} + +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_ENUM8_ATTRIBUTE_TYPE); +} + +EmberAfStatus Set(chip::EndpointId endpoint, + const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } + + return Set(endpoint, value.Value()); } -} // namespace ApparentPowerPhaseC +} // namespace NullableEnumAttr -namespace PowerFactorPhaseC { +namespace NullableRangeRestrictedInt8u { -EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); } -} // namespace PowerFactorPhaseC - -namespace AverageRmsVoltageMeasurementPeriodPhaseC { - -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus SetNull(chip::EndpointId endpoint) { - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) + +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + if (value.IsNull()) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + return SetNull(endpoint); } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + + return Set(endpoint, value.Value()); } -} // namespace AverageRmsVoltageMeasurementPeriodPhaseC +} // namespace NullableRangeRestrictedInt8u -namespace AverageRmsOverVoltageCounterPhaseC { +namespace NullableRangeRestrictedInt8s { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); } -} // namespace AverageRmsOverVoltageCounterPhaseC - -namespace AverageRmsUnderVoltageCounterPhaseC { - -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus SetNull(chip::EndpointId endpoint) { - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT8S_ATTRIBUTE_TYPE); } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) + +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + if (value.IsNull()) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + return SetNull(endpoint); } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + + return Set(endpoint, value.Value()); } -} // namespace AverageRmsUnderVoltageCounterPhaseC +} // namespace NullableRangeRestrictedInt8s -namespace RmsExtremeOverVoltagePeriodPhaseC { +namespace NullableRangeRestrictedInt16u { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -} // namespace RmsExtremeOverVoltagePeriodPhaseC - -namespace RmsExtremeUnderVoltagePeriodPhaseC { - -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus SetNull(chip::EndpointId endpoint) { using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) + +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + if (value.IsNull()) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + return SetNull(endpoint); } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + + return Set(endpoint, value.Value()); } -} // namespace RmsExtremeUnderVoltagePeriodPhaseC +} // namespace NullableRangeRestrictedInt16u -namespace RmsVoltageSagPeriodPhaseC { +namespace NullableRangeRestrictedInt16s { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + if (Traits::IsNullValue(temp)) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); } - *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -} // namespace RmsVoltageSagPeriodPhaseC - -namespace RmsVoltageSwellPeriodPhaseC { - -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus SetNull(chip::EndpointId endpoint) { - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) + +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) { - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + if (value.IsNull()) { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + return SetNull(endpoint); } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + + return Set(endpoint, value.Value()); } -} // namespace RmsVoltageSwellPeriodPhaseC +} // namespace NullableRangeRestrictedInt16s namespace FeatureMap { @@ -41467,7 +41467,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -41486,7 +41486,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE); } } // namespace FeatureMap @@ -41498,7 +41498,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, readable, sizeof(temp)); + EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::TestCluster::Id, Id, readable, sizeof(temp)); VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) { @@ -41517,13 +41517,13 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); } } // namespace ClusterRevision } // namespace Attributes -} // namespace ElectricalMeasurement +} // namespace TestCluster } // namespace Clusters } // namespace app diff --git a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h index 089500dd37f026..10fe3aaaba53e4 100644 --- a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h +++ b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h @@ -5739,451 +5739,176 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); } // namespace Attributes } // namespace AccountLogin -namespace TestCluster { +namespace Messaging { namespace Attributes { -namespace Boolean { -EmberAfStatus Get(chip::EndpointId endpoint, bool * value); // boolean -EmberAfStatus Set(chip::EndpointId endpoint, bool value); -} // namespace Boolean +namespace FeatureMap { +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // bitmap32 +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); +} // namespace FeatureMap -namespace Bitmap8 { -EmberAfStatus Get(chip::EndpointId endpoint, - chip::BitMask * value); // Bitmap8MaskMap -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); -} // namespace Bitmap8 +namespace ClusterRevision { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace ClusterRevision -namespace Bitmap16 { -EmberAfStatus Get(chip::EndpointId endpoint, - chip::BitMask * value); // Bitmap16MaskMap -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); -} // namespace Bitmap16 +} // namespace Attributes +} // namespace Messaging -namespace Bitmap32 { -EmberAfStatus Get(chip::EndpointId endpoint, - chip::BitMask * value); // Bitmap32MaskMap -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); -} // namespace Bitmap32 +namespace ApplianceIdentification { +namespace Attributes { -namespace Bitmap64 { -EmberAfStatus Get(chip::EndpointId endpoint, - chip::BitMask * value); // Bitmap64MaskMap -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); -} // namespace Bitmap64 +namespace BasicIdentification { +EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value); // int56u +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); +} // namespace BasicIdentification -namespace Int8u { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // int8u -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); -} // namespace Int8u +namespace CompanyName { +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // char_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value); +} // namespace CompanyName -namespace Int16u { +namespace CompanyId { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace Int16u +} // namespace CompanyId -namespace Int24u { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // int24u -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); -} // namespace Int24u +namespace BrandName { +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // char_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value); +} // namespace BrandName -namespace Int32u { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // int32u -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); -} // namespace Int32u +namespace BrandId { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace BrandId -namespace Int40u { -EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value); // int40u -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); -} // namespace Int40u +namespace Model { +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); +} // namespace Model -namespace Int48u { -EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value); // int48u -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); -} // namespace Int48u +namespace PartNumber { +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); +} // namespace PartNumber -namespace Int56u { -EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value); // int56u -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); -} // namespace Int56u +namespace ProductRevision { +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); +} // namespace ProductRevision -namespace Int64u { -EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value); // int64u -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); -} // namespace Int64u +namespace SoftwareRevision { +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); +} // namespace SoftwareRevision -namespace Int8s { -EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value); // int8s -EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); -} // namespace Int8s +namespace ProductTypeName { +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); +} // namespace ProductTypeName -namespace Int16s { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace Int16s +namespace ProductTypeId { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace ProductTypeId -namespace Int24s { -EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value); // int24s -EmberAfStatus Set(chip::EndpointId endpoint, int32_t value); -} // namespace Int24s +namespace CecedSpecificationVersion { +EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // int8u +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +} // namespace CecedSpecificationVersion -namespace Int32s { -EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value); // int32s -EmberAfStatus Set(chip::EndpointId endpoint, int32_t value); -} // namespace Int32s +namespace FeatureMap { +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // bitmap32 +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); +} // namespace FeatureMap -namespace Int40s { -EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value); // int40s -EmberAfStatus Set(chip::EndpointId endpoint, int64_t value); -} // namespace Int40s +namespace ClusterRevision { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace ClusterRevision -namespace Int48s { -EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value); // int48s -EmberAfStatus Set(chip::EndpointId endpoint, int64_t value); -} // namespace Int48s +} // namespace Attributes +} // namespace ApplianceIdentification -namespace Int56s { -EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value); // int56s -EmberAfStatus Set(chip::EndpointId endpoint, int64_t value); -} // namespace Int56s +namespace MeterIdentification { +namespace Attributes { -namespace Int64s { -EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value); // int64s -EmberAfStatus Set(chip::EndpointId endpoint, int64_t value); -} // namespace Int64s +namespace CompanyName { +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // char_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value); +} // namespace CompanyName -namespace Enum8 { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // enum8 -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); -} // namespace Enum8 +namespace MeterTypeId { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace MeterTypeId -namespace Enum16 { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // enum16 +namespace DataQualityId { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace Enum16 +} // namespace DataQualityId -namespace FloatSingle { -EmberAfStatus Get(chip::EndpointId endpoint, float * value); // single -EmberAfStatus Set(chip::EndpointId endpoint, float value); -} // namespace FloatSingle +namespace CustomerName { +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // char_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value); +} // namespace CustomerName -namespace FloatDouble { -EmberAfStatus Get(chip::EndpointId endpoint, double * value); // double -EmberAfStatus Set(chip::EndpointId endpoint, double value); -} // namespace FloatDouble +namespace Model { +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); +} // namespace Model -namespace OctetString { +namespace PartNumber { EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); -} // namespace OctetString +} // namespace PartNumber -namespace LongOctetString { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // long_octet_string +namespace ProductRevision { +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); -} // namespace LongOctetString +} // namespace ProductRevision -namespace CharString { +namespace SoftwareRevision { +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); +} // namespace SoftwareRevision + +namespace UtilityName { EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // char_string EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value); -} // namespace CharString +} // namespace UtilityName -namespace LongCharString { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // long_char_string +namespace Pod { +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // char_string EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value); -} // namespace LongCharString +} // namespace Pod -namespace EpochUs { -EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value); // epoch_us -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); -} // namespace EpochUs +namespace AvailablePower { +EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value); // int24s +EmberAfStatus Set(chip::EndpointId endpoint, int32_t value); +} // namespace AvailablePower -namespace EpochS { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // epoch_s +namespace PowerThreshold { +EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value); // int24s +EmberAfStatus Set(chip::EndpointId endpoint, int32_t value); +} // namespace PowerThreshold + +namespace FeatureMap { +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // bitmap32 EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); -} // namespace EpochS +} // namespace FeatureMap -namespace VendorId { -EmberAfStatus Get(chip::EndpointId endpoint, chip::VendorId * value); // vendor_id -EmberAfStatus Set(chip::EndpointId endpoint, chip::VendorId value); -} // namespace VendorId +namespace ClusterRevision { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace ClusterRevision -namespace EnumAttr { -EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::TestCluster::SimpleEnum * value); // SimpleEnum -EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::TestCluster::SimpleEnum value); -} // namespace EnumAttr +} // namespace Attributes +} // namespace MeterIdentification -namespace RangeRestrictedInt8u { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // int8u -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); -} // namespace RangeRestrictedInt8u - -namespace RangeRestrictedInt8s { -EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value); // int8s -EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); -} // namespace RangeRestrictedInt8s - -namespace RangeRestrictedInt16u { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RangeRestrictedInt16u - -namespace RangeRestrictedInt16s { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace RangeRestrictedInt16s - -namespace TimedWriteBoolean { -EmberAfStatus Get(chip::EndpointId endpoint, bool * value); // boolean -EmberAfStatus Set(chip::EndpointId endpoint, bool value); -} // namespace TimedWriteBoolean - -namespace GeneralErrorBoolean { -EmberAfStatus Get(chip::EndpointId endpoint, bool * value); // boolean -EmberAfStatus Set(chip::EndpointId endpoint, bool value); -} // namespace GeneralErrorBoolean - -namespace ClusterErrorBoolean { -EmberAfStatus Get(chip::EndpointId endpoint, bool * value); // boolean -EmberAfStatus Set(chip::EndpointId endpoint, bool value); -} // namespace ClusterErrorBoolean - -namespace Unsupported { -EmberAfStatus Get(chip::EndpointId endpoint, bool * value); // boolean -EmberAfStatus Set(chip::EndpointId endpoint, bool value); -} // namespace Unsupported - -namespace NullableBoolean { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // boolean -EmberAfStatus Set(chip::EndpointId endpoint, bool value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableBoolean - -namespace NullableBitmap8 { -EmberAfStatus Get(chip::EndpointId endpoint, - DataModel::Nullable> & value); // Bitmap8MaskMap -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, - const chip::app::DataModel::Nullable> & value); -} // namespace NullableBitmap8 - -namespace NullableBitmap16 { -EmberAfStatus Get(chip::EndpointId endpoint, - DataModel::Nullable> & value); // Bitmap16MaskMap -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, - const chip::app::DataModel::Nullable> & value); -} // namespace NullableBitmap16 - -namespace NullableBitmap32 { -EmberAfStatus Get(chip::EndpointId endpoint, - DataModel::Nullable> & value); // Bitmap32MaskMap -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, - const chip::app::DataModel::Nullable> & value); -} // namespace NullableBitmap32 - -namespace NullableBitmap64 { -EmberAfStatus Get(chip::EndpointId endpoint, - DataModel::Nullable> & value); // Bitmap64MaskMap -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, - const chip::app::DataModel::Nullable> & value); -} // namespace NullableBitmap64 - -namespace NullableInt8u { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int8u -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableInt8u - -namespace NullableInt16u { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableInt16u - -namespace NullableInt24u { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int24u -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableInt24u - -namespace NullableInt32u { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int32u -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableInt32u - -namespace NullableInt40u { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int40u -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableInt40u - -namespace NullableInt48u { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int48u -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableInt48u - -namespace NullableInt56u { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int56u -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableInt56u - -namespace NullableInt64u { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int64u -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableInt64u - -namespace NullableInt8s { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int8s -EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableInt8s - -namespace NullableInt16s { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableInt16s - -namespace NullableInt24s { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int24s -EmberAfStatus Set(chip::EndpointId endpoint, int32_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableInt24s - -namespace NullableInt32s { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int32s -EmberAfStatus Set(chip::EndpointId endpoint, int32_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableInt32s - -namespace NullableInt40s { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int40s -EmberAfStatus Set(chip::EndpointId endpoint, int64_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableInt40s - -namespace NullableInt48s { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int48s -EmberAfStatus Set(chip::EndpointId endpoint, int64_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableInt48s - -namespace NullableInt56s { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int56s -EmberAfStatus Set(chip::EndpointId endpoint, int64_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableInt56s - -namespace NullableInt64s { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int64s -EmberAfStatus Set(chip::EndpointId endpoint, int64_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableInt64s - -namespace NullableEnum8 { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // enum8 -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableEnum8 - -namespace NullableEnum16 { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // enum16 -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableEnum16 - -namespace NullableFloatSingle { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // single -EmberAfStatus Set(chip::EndpointId endpoint, float value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableFloatSingle - -namespace NullableFloatDouble { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // double -EmberAfStatus Set(chip::EndpointId endpoint, double value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableFloatDouble - -namespace NullableOctetString { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // octet_string -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableOctetString - -namespace NullableCharString { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // char_string -EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableCharString - -namespace NullableEnumAttr { -EmberAfStatus Get(chip::EndpointId endpoint, - DataModel::Nullable & value); // SimpleEnum -EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::TestCluster::SimpleEnum value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, - const chip::app::DataModel::Nullable & value); -} // namespace NullableEnumAttr - -namespace NullableRangeRestrictedInt8u { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int8u -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableRangeRestrictedInt8u - -namespace NullableRangeRestrictedInt8s { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int8s -EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableRangeRestrictedInt8s - -namespace NullableRangeRestrictedInt16u { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableRangeRestrictedInt16u - -namespace NullableRangeRestrictedInt16s { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -EmberAfStatus SetNull(chip::EndpointId endpoint); -EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); -} // namespace NullableRangeRestrictedInt16s +namespace ApplianceEventsAndAlert { +namespace Attributes { namespace FeatureMap { EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // bitmap32 @@ -6196,11 +5921,21 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); } // namespace ClusterRevision } // namespace Attributes -} // namespace TestCluster +} // namespace ApplianceEventsAndAlert -namespace Messaging { +namespace ApplianceStatistics { namespace Attributes { +namespace LogMaxSize { +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // int32u +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); +} // namespace LogMaxSize + +namespace LogQueueMaxSize { +EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // int8u +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +} // namespace LogQueueMaxSize + namespace FeatureMap { EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // bitmap32 EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); @@ -6212,844 +5947,1109 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); } // namespace ClusterRevision } // namespace Attributes -} // namespace Messaging +} // namespace ApplianceStatistics -namespace ApplianceIdentification { +namespace ElectricalMeasurement { namespace Attributes { -namespace BasicIdentification { -EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value); // int56u -EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); -} // namespace BasicIdentification +namespace MeasurementType { +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // bitmap32 +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); +} // namespace MeasurementType -namespace CompanyName { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // char_string -EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value); -} // namespace CompanyName +namespace DcVoltage { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace DcVoltage -namespace CompanyId { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace CompanyId +namespace DcVoltageMin { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace DcVoltageMin -namespace BrandName { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // char_string -EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value); -} // namespace BrandName +namespace DcVoltageMax { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace DcVoltageMax -namespace BrandId { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace BrandId +namespace DcCurrent { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace DcCurrent -namespace Model { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); -} // namespace Model +namespace DcCurrentMin { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace DcCurrentMin -namespace PartNumber { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); -} // namespace PartNumber +namespace DcCurrentMax { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace DcCurrentMax + +namespace DcPower { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace DcPower -namespace ProductRevision { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); -} // namespace ProductRevision +namespace DcPowerMin { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace DcPowerMin -namespace SoftwareRevision { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); -} // namespace SoftwareRevision +namespace DcPowerMax { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace DcPowerMax -namespace ProductTypeName { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); -} // namespace ProductTypeName +namespace DcVoltageMultiplier { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace DcVoltageMultiplier -namespace ProductTypeId { +namespace DcVoltageDivisor { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace ProductTypeId +} // namespace DcVoltageDivisor -namespace CecedSpecificationVersion { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // int8u -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); -} // namespace CecedSpecificationVersion +namespace DcCurrentMultiplier { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace DcCurrentMultiplier -namespace FeatureMap { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // bitmap32 -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); -} // namespace FeatureMap +namespace DcCurrentDivisor { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace DcCurrentDivisor -namespace ClusterRevision { +namespace DcPowerMultiplier { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace ClusterRevision +} // namespace DcPowerMultiplier -} // namespace Attributes -} // namespace ApplianceIdentification +namespace DcPowerDivisor { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace DcPowerDivisor -namespace MeterIdentification { -namespace Attributes { +namespace AcFrequency { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace AcFrequency -namespace CompanyName { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // char_string -EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value); -} // namespace CompanyName +namespace AcFrequencyMin { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace AcFrequencyMin -namespace MeterTypeId { +namespace AcFrequencyMax { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace MeterTypeId +} // namespace AcFrequencyMax -namespace DataQualityId { +namespace NeutralCurrent { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace DataQualityId +} // namespace NeutralCurrent -namespace CustomerName { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // char_string -EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value); -} // namespace CustomerName +namespace TotalActivePower { +EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value); // int32s +EmberAfStatus Set(chip::EndpointId endpoint, int32_t value); +} // namespace TotalActivePower -namespace Model { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); -} // namespace Model +namespace TotalReactivePower { +EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value); // int32s +EmberAfStatus Set(chip::EndpointId endpoint, int32_t value); +} // namespace TotalReactivePower -namespace PartNumber { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); -} // namespace PartNumber +namespace TotalApparentPower { +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // int32u +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); +} // namespace TotalApparentPower -namespace ProductRevision { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); -} // namespace ProductRevision +namespace Measured1stHarmonicCurrent { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace Measured1stHarmonicCurrent -namespace SoftwareRevision { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string -EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); -} // namespace SoftwareRevision +namespace Measured3rdHarmonicCurrent { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace Measured3rdHarmonicCurrent -namespace UtilityName { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // char_string -EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value); -} // namespace UtilityName +namespace Measured5thHarmonicCurrent { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace Measured5thHarmonicCurrent -namespace Pod { -EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // char_string -EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value); -} // namespace Pod +namespace Measured7thHarmonicCurrent { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace Measured7thHarmonicCurrent -namespace AvailablePower { -EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value); // int24s -EmberAfStatus Set(chip::EndpointId endpoint, int32_t value); -} // namespace AvailablePower +namespace Measured9thHarmonicCurrent { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace Measured9thHarmonicCurrent -namespace PowerThreshold { -EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value); // int24s -EmberAfStatus Set(chip::EndpointId endpoint, int32_t value); -} // namespace PowerThreshold +namespace Measured11thHarmonicCurrent { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace Measured11thHarmonicCurrent -namespace FeatureMap { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // bitmap32 -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); -} // namespace FeatureMap +namespace MeasuredPhase1stHarmonicCurrent { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace MeasuredPhase1stHarmonicCurrent -namespace ClusterRevision { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace ClusterRevision +namespace MeasuredPhase3rdHarmonicCurrent { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace MeasuredPhase3rdHarmonicCurrent -} // namespace Attributes -} // namespace MeterIdentification +namespace MeasuredPhase5thHarmonicCurrent { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace MeasuredPhase5thHarmonicCurrent -namespace ApplianceEventsAndAlert { -namespace Attributes { +namespace MeasuredPhase7thHarmonicCurrent { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace MeasuredPhase7thHarmonicCurrent -namespace FeatureMap { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // bitmap32 -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); -} // namespace FeatureMap +namespace MeasuredPhase9thHarmonicCurrent { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace MeasuredPhase9thHarmonicCurrent -namespace ClusterRevision { +namespace MeasuredPhase11thHarmonicCurrent { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace MeasuredPhase11thHarmonicCurrent + +namespace AcFrequencyMultiplier { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace ClusterRevision +} // namespace AcFrequencyMultiplier -} // namespace Attributes -} // namespace ApplianceEventsAndAlert +namespace AcFrequencyDivisor { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace AcFrequencyDivisor -namespace ApplianceStatistics { -namespace Attributes { +namespace PowerMultiplier { +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // int32u +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); +} // namespace PowerMultiplier -namespace LogMaxSize { +namespace PowerDivisor { EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // int32u EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); -} // namespace LogMaxSize +} // namespace PowerDivisor -namespace LogQueueMaxSize { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // int8u -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); -} // namespace LogQueueMaxSize +namespace HarmonicCurrentMultiplier { +EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value); // int8s +EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); +} // namespace HarmonicCurrentMultiplier -namespace FeatureMap { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // bitmap32 -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); -} // namespace FeatureMap +namespace PhaseHarmonicCurrentMultiplier { +EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value); // int8s +EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); +} // namespace PhaseHarmonicCurrentMultiplier -namespace ClusterRevision { +namespace InstantaneousVoltage { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace InstantaneousVoltage + +namespace InstantaneousLineCurrent { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace InstantaneousLineCurrent + +namespace InstantaneousActiveCurrent { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace InstantaneousActiveCurrent + +namespace InstantaneousReactiveCurrent { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace InstantaneousReactiveCurrent + +namespace InstantaneousPower { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace InstantaneousPower + +namespace RmsVoltage { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace RmsVoltage + +namespace RmsVoltageMin { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace ClusterRevision +} // namespace RmsVoltageMin -} // namespace Attributes -} // namespace ApplianceStatistics +namespace RmsVoltageMax { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace RmsVoltageMax -namespace ElectricalMeasurement { -namespace Attributes { +namespace RmsCurrent { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace RmsCurrent -namespace MeasurementType { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // bitmap32 -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); -} // namespace MeasurementType +namespace RmsCurrentMin { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace RmsCurrentMin -namespace DcVoltage { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace DcVoltage +namespace RmsCurrentMax { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace RmsCurrentMax -namespace DcVoltageMin { +namespace ActivePower { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace DcVoltageMin +} // namespace ActivePower -namespace DcVoltageMax { +namespace ActivePowerMin { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace DcVoltageMax +} // namespace ActivePowerMin -namespace DcCurrent { +namespace ActivePowerMax { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace DcCurrent +} // namespace ActivePowerMax -namespace DcCurrentMin { +namespace ReactivePower { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace DcCurrentMin +} // namespace ReactivePower -namespace DcCurrentMax { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace DcCurrentMax +namespace ApparentPower { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace ApparentPower -namespace DcPower { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace DcPower +namespace PowerFactor { +EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value); // int8s +EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); +} // namespace PowerFactor -namespace DcPowerMin { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace DcPowerMin +namespace AverageRmsVoltageMeasurementPeriod { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace AverageRmsVoltageMeasurementPeriod -namespace DcPowerMax { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace DcPowerMax +namespace AverageRmsUnderVoltageCounter { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace AverageRmsUnderVoltageCounter -namespace DcVoltageMultiplier { +namespace RmsExtremeOverVoltagePeriod { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace DcVoltageMultiplier +} // namespace RmsExtremeOverVoltagePeriod -namespace DcVoltageDivisor { +namespace RmsExtremeUnderVoltagePeriod { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace DcVoltageDivisor +} // namespace RmsExtremeUnderVoltagePeriod -namespace DcCurrentMultiplier { +namespace RmsVoltageSagPeriod { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace DcCurrentMultiplier +} // namespace RmsVoltageSagPeriod -namespace DcCurrentDivisor { +namespace RmsVoltageSwellPeriod { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace DcCurrentDivisor +} // namespace RmsVoltageSwellPeriod -namespace DcPowerMultiplier { +namespace AcVoltageMultiplier { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace DcPowerMultiplier +} // namespace AcVoltageMultiplier -namespace DcPowerDivisor { +namespace AcVoltageDivisor { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace DcPowerDivisor +} // namespace AcVoltageDivisor -namespace AcFrequency { +namespace AcCurrentMultiplier { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AcFrequency +} // namespace AcCurrentMultiplier -namespace AcFrequencyMin { +namespace AcCurrentDivisor { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AcFrequencyMin +} // namespace AcCurrentDivisor -namespace AcFrequencyMax { +namespace AcPowerMultiplier { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AcFrequencyMax +} // namespace AcPowerMultiplier -namespace NeutralCurrent { +namespace AcPowerDivisor { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace NeutralCurrent +} // namespace AcPowerDivisor -namespace TotalActivePower { -EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value); // int32s -EmberAfStatus Set(chip::EndpointId endpoint, int32_t value); -} // namespace TotalActivePower +namespace OverloadAlarmsMask { +EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // bitmap8 +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +} // namespace OverloadAlarmsMask -namespace TotalReactivePower { -EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value); // int32s -EmberAfStatus Set(chip::EndpointId endpoint, int32_t value); -} // namespace TotalReactivePower +namespace VoltageOverload { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace VoltageOverload -namespace TotalApparentPower { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // int32u -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); -} // namespace TotalApparentPower +namespace CurrentOverload { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace CurrentOverload -namespace Measured1stHarmonicCurrent { +namespace AcOverloadAlarmsMask { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // bitmap16 +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace AcOverloadAlarmsMask + +namespace AcVoltageOverload { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace Measured1stHarmonicCurrent +} // namespace AcVoltageOverload -namespace Measured3rdHarmonicCurrent { +namespace AcCurrentOverload { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace Measured3rdHarmonicCurrent +} // namespace AcCurrentOverload -namespace Measured5thHarmonicCurrent { +namespace AcActivePowerOverload { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace Measured5thHarmonicCurrent +} // namespace AcActivePowerOverload -namespace Measured7thHarmonicCurrent { +namespace AcReactivePowerOverload { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace Measured7thHarmonicCurrent +} // namespace AcReactivePowerOverload -namespace Measured9thHarmonicCurrent { +namespace AverageRmsOverVoltage { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace Measured9thHarmonicCurrent +} // namespace AverageRmsOverVoltage -namespace Measured11thHarmonicCurrent { +namespace AverageRmsUnderVoltage { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace Measured11thHarmonicCurrent +} // namespace AverageRmsUnderVoltage -namespace MeasuredPhase1stHarmonicCurrent { +namespace RmsExtremeOverVoltage { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace MeasuredPhase1stHarmonicCurrent +} // namespace RmsExtremeOverVoltage -namespace MeasuredPhase3rdHarmonicCurrent { +namespace RmsExtremeUnderVoltage { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace MeasuredPhase3rdHarmonicCurrent +} // namespace RmsExtremeUnderVoltage -namespace MeasuredPhase5thHarmonicCurrent { +namespace RmsVoltageSag { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace MeasuredPhase5thHarmonicCurrent +} // namespace RmsVoltageSag -namespace MeasuredPhase7thHarmonicCurrent { +namespace RmsVoltageSwell { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace MeasuredPhase7thHarmonicCurrent +} // namespace RmsVoltageSwell -namespace MeasuredPhase9thHarmonicCurrent { +namespace LineCurrentPhaseB { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace LineCurrentPhaseB + +namespace ActiveCurrentPhaseB { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace MeasuredPhase9thHarmonicCurrent +} // namespace ActiveCurrentPhaseB -namespace MeasuredPhase11thHarmonicCurrent { +namespace ReactiveCurrentPhaseB { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace MeasuredPhase11thHarmonicCurrent +} // namespace ReactiveCurrentPhaseB + +namespace RmsVoltagePhaseB { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace RmsVoltagePhaseB + +namespace RmsVoltageMinPhaseB { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace RmsVoltageMinPhaseB + +namespace RmsVoltageMaxPhaseB { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace RmsVoltageMaxPhaseB + +namespace RmsCurrentPhaseB { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace RmsCurrentPhaseB + +namespace RmsCurrentMinPhaseB { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace RmsCurrentMinPhaseB + +namespace RmsCurrentMaxPhaseB { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace RmsCurrentMaxPhaseB + +namespace ActivePowerPhaseB { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace ActivePowerPhaseB + +namespace ActivePowerMinPhaseB { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace ActivePowerMinPhaseB + +namespace ActivePowerMaxPhaseB { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace ActivePowerMaxPhaseB + +namespace ReactivePowerPhaseB { +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +} // namespace ReactivePowerPhaseB + +namespace ApparentPowerPhaseB { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace ApparentPowerPhaseB -namespace AcFrequencyMultiplier { +namespace PowerFactorPhaseB { +EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value); // int8s +EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); +} // namespace PowerFactorPhaseB + +namespace AverageRmsVoltageMeasurementPeriodPhaseB { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AcFrequencyMultiplier +} // namespace AverageRmsVoltageMeasurementPeriodPhaseB -namespace AcFrequencyDivisor { +namespace AverageRmsOverVoltageCounterPhaseB { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AcFrequencyDivisor - -namespace PowerMultiplier { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // int32u -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); -} // namespace PowerMultiplier +} // namespace AverageRmsOverVoltageCounterPhaseB -namespace PowerDivisor { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // int32u -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); -} // namespace PowerDivisor +namespace AverageRmsUnderVoltageCounterPhaseB { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace AverageRmsUnderVoltageCounterPhaseB -namespace HarmonicCurrentMultiplier { -EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value); // int8s -EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); -} // namespace HarmonicCurrentMultiplier +namespace RmsExtremeOverVoltagePeriodPhaseB { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace RmsExtremeOverVoltagePeriodPhaseB -namespace PhaseHarmonicCurrentMultiplier { -EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value); // int8s -EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); -} // namespace PhaseHarmonicCurrentMultiplier +namespace RmsExtremeUnderVoltagePeriodPhaseB { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace RmsExtremeUnderVoltagePeriodPhaseB -namespace InstantaneousVoltage { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace InstantaneousVoltage +namespace RmsVoltageSagPeriodPhaseB { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace RmsVoltageSagPeriodPhaseB -namespace InstantaneousLineCurrent { +namespace RmsVoltageSwellPeriodPhaseB { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace InstantaneousLineCurrent +} // namespace RmsVoltageSwellPeriodPhaseB -namespace InstantaneousActiveCurrent { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace InstantaneousActiveCurrent +namespace LineCurrentPhaseC { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +} // namespace LineCurrentPhaseC -namespace InstantaneousReactiveCurrent { +namespace ActiveCurrentPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace InstantaneousReactiveCurrent +} // namespace ActiveCurrentPhaseC -namespace InstantaneousPower { +namespace ReactiveCurrentPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace InstantaneousPower +} // namespace ReactiveCurrentPhaseC -namespace RmsVoltage { +namespace RmsVoltagePhaseC { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsVoltage +} // namespace RmsVoltagePhaseC -namespace RmsVoltageMin { +namespace RmsVoltageMinPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsVoltageMin +} // namespace RmsVoltageMinPhaseC -namespace RmsVoltageMax { +namespace RmsVoltageMaxPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsVoltageMax +} // namespace RmsVoltageMaxPhaseC -namespace RmsCurrent { +namespace RmsCurrentPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsCurrent +} // namespace RmsCurrentPhaseC -namespace RmsCurrentMin { +namespace RmsCurrentMinPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsCurrentMin +} // namespace RmsCurrentMinPhaseC -namespace RmsCurrentMax { +namespace RmsCurrentMaxPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsCurrentMax +} // namespace RmsCurrentMaxPhaseC -namespace ActivePower { +namespace ActivePowerPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace ActivePower +} // namespace ActivePowerPhaseC -namespace ActivePowerMin { +namespace ActivePowerMinPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace ActivePowerMin +} // namespace ActivePowerMinPhaseC -namespace ActivePowerMax { +namespace ActivePowerMaxPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace ActivePowerMax +} // namespace ActivePowerMaxPhaseC -namespace ReactivePower { +namespace ReactivePowerPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace ReactivePower +} // namespace ReactivePowerPhaseC -namespace ApparentPower { +namespace ApparentPowerPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace ApparentPower +} // namespace ApparentPowerPhaseC -namespace PowerFactor { +namespace PowerFactorPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value); // int8s EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); -} // namespace PowerFactor +} // namespace PowerFactorPhaseC -namespace AverageRmsVoltageMeasurementPeriod { +namespace AverageRmsVoltageMeasurementPeriodPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AverageRmsVoltageMeasurementPeriod +} // namespace AverageRmsVoltageMeasurementPeriodPhaseC -namespace AverageRmsUnderVoltageCounter { +namespace AverageRmsOverVoltageCounterPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AverageRmsUnderVoltageCounter +} // namespace AverageRmsOverVoltageCounterPhaseC -namespace RmsExtremeOverVoltagePeriod { +namespace AverageRmsUnderVoltageCounterPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsExtremeOverVoltagePeriod +} // namespace AverageRmsUnderVoltageCounterPhaseC -namespace RmsExtremeUnderVoltagePeriod { +namespace RmsExtremeOverVoltagePeriodPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsExtremeUnderVoltagePeriod +} // namespace RmsExtremeOverVoltagePeriodPhaseC -namespace RmsVoltageSagPeriod { +namespace RmsExtremeUnderVoltagePeriodPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsVoltageSagPeriod +} // namespace RmsExtremeUnderVoltagePeriodPhaseC -namespace RmsVoltageSwellPeriod { +namespace RmsVoltageSagPeriodPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsVoltageSwellPeriod +} // namespace RmsVoltageSagPeriodPhaseC -namespace AcVoltageMultiplier { +namespace RmsVoltageSwellPeriodPhaseC { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AcVoltageMultiplier +} // namespace RmsVoltageSwellPeriodPhaseC -namespace AcVoltageDivisor { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AcVoltageDivisor +namespace FeatureMap { +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // bitmap32 +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); +} // namespace FeatureMap -namespace AcCurrentMultiplier { +namespace ClusterRevision { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AcCurrentMultiplier +} // namespace ClusterRevision -namespace AcCurrentDivisor { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AcCurrentDivisor +} // namespace Attributes +} // namespace ElectricalMeasurement -namespace AcPowerMultiplier { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AcPowerMultiplier +namespace TestCluster { +namespace Attributes { -namespace AcPowerDivisor { +namespace Boolean { +EmberAfStatus Get(chip::EndpointId endpoint, bool * value); // boolean +EmberAfStatus Set(chip::EndpointId endpoint, bool value); +} // namespace Boolean + +namespace Bitmap8 { +EmberAfStatus Get(chip::EndpointId endpoint, + chip::BitMask * value); // Bitmap8MaskMap +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); +} // namespace Bitmap8 + +namespace Bitmap16 { +EmberAfStatus Get(chip::EndpointId endpoint, + chip::BitMask * value); // Bitmap16MaskMap +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); +} // namespace Bitmap16 + +namespace Bitmap32 { +EmberAfStatus Get(chip::EndpointId endpoint, + chip::BitMask * value); // Bitmap32MaskMap +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); +} // namespace Bitmap32 + +namespace Bitmap64 { +EmberAfStatus Get(chip::EndpointId endpoint, + chip::BitMask * value); // Bitmap64MaskMap +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); +} // namespace Bitmap64 + +namespace Int8u { +EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // int8u +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +} // namespace Int8u + +namespace Int16u { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AcPowerDivisor +} // namespace Int16u -namespace OverloadAlarmsMask { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // bitmap8 -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); -} // namespace OverloadAlarmsMask +namespace Int24u { +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // int24u +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); +} // namespace Int24u -namespace VoltageOverload { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace VoltageOverload +namespace Int32u { +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // int32u +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); +} // namespace Int32u -namespace CurrentOverload { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace CurrentOverload +namespace Int40u { +EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value); // int40u +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); +} // namespace Int40u -namespace AcOverloadAlarmsMask { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // bitmap16 -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AcOverloadAlarmsMask +namespace Int48u { +EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value); // int48u +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); +} // namespace Int48u -namespace AcVoltageOverload { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace AcVoltageOverload +namespace Int56u { +EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value); // int56u +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); +} // namespace Int56u -namespace AcCurrentOverload { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace AcCurrentOverload +namespace Int64u { +EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value); // int64u +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); +} // namespace Int64u -namespace AcActivePowerOverload { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace AcActivePowerOverload +namespace Int8s { +EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value); // int8s +EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); +} // namespace Int8s -namespace AcReactivePowerOverload { +namespace Int16s { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace AcReactivePowerOverload +} // namespace Int16s -namespace AverageRmsOverVoltage { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace AverageRmsOverVoltage +namespace Int24s { +EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value); // int24s +EmberAfStatus Set(chip::EndpointId endpoint, int32_t value); +} // namespace Int24s -namespace AverageRmsUnderVoltage { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace AverageRmsUnderVoltage +namespace Int32s { +EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value); // int32s +EmberAfStatus Set(chip::EndpointId endpoint, int32_t value); +} // namespace Int32s -namespace RmsExtremeOverVoltage { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace RmsExtremeOverVoltage +namespace Int40s { +EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value); // int40s +EmberAfStatus Set(chip::EndpointId endpoint, int64_t value); +} // namespace Int40s -namespace RmsExtremeUnderVoltage { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace RmsExtremeUnderVoltage +namespace Int48s { +EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value); // int48s +EmberAfStatus Set(chip::EndpointId endpoint, int64_t value); +} // namespace Int48s -namespace RmsVoltageSag { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace RmsVoltageSag +namespace Int56s { +EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value); // int56s +EmberAfStatus Set(chip::EndpointId endpoint, int64_t value); +} // namespace Int56s -namespace RmsVoltageSwell { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace RmsVoltageSwell +namespace Int64s { +EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value); // int64s +EmberAfStatus Set(chip::EndpointId endpoint, int64_t value); +} // namespace Int64s -namespace LineCurrentPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +namespace Enum8 { +EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // enum8 +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +} // namespace Enum8 + +namespace Enum16 { +EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // enum16 EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace LineCurrentPhaseB +} // namespace Enum16 -namespace ActiveCurrentPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace ActiveCurrentPhaseB +namespace FloatSingle { +EmberAfStatus Get(chip::EndpointId endpoint, float * value); // single +EmberAfStatus Set(chip::EndpointId endpoint, float value); +} // namespace FloatSingle -namespace ReactiveCurrentPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace ReactiveCurrentPhaseB +namespace FloatDouble { +EmberAfStatus Get(chip::EndpointId endpoint, double * value); // double +EmberAfStatus Set(chip::EndpointId endpoint, double value); +} // namespace FloatDouble -namespace RmsVoltagePhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsVoltagePhaseB +namespace OctetString { +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // octet_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); +} // namespace OctetString -namespace RmsVoltageMinPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsVoltageMinPhaseB +namespace LongOctetString { +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value); // long_octet_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); +} // namespace LongOctetString -namespace RmsVoltageMaxPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsVoltageMaxPhaseB +namespace CharString { +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // char_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value); +} // namespace CharString -namespace RmsCurrentPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsCurrentPhaseB +namespace LongCharString { +EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // long_char_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value); +} // namespace LongCharString -namespace RmsCurrentMinPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsCurrentMinPhaseB +namespace EpochUs { +EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value); // epoch_us +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); +} // namespace EpochUs -namespace RmsCurrentMaxPhaseB { +namespace EpochS { +EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // epoch_s +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); +} // namespace EpochS + +namespace VendorId { +EmberAfStatus Get(chip::EndpointId endpoint, chip::VendorId * value); // vendor_id +EmberAfStatus Set(chip::EndpointId endpoint, chip::VendorId value); +} // namespace VendorId + +namespace EnumAttr { +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::TestCluster::SimpleEnum * value); // SimpleEnum +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::TestCluster::SimpleEnum value); +} // namespace EnumAttr + +namespace RangeRestrictedInt8u { +EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // int8u +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +} // namespace RangeRestrictedInt8u + +namespace RangeRestrictedInt8s { +EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value); // int8s +EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); +} // namespace RangeRestrictedInt8s + +namespace RangeRestrictedInt16u { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsCurrentMaxPhaseB +} // namespace RangeRestrictedInt16u -namespace ActivePowerPhaseB { +namespace RangeRestrictedInt16s { EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace ActivePowerPhaseB +} // namespace RangeRestrictedInt16s -namespace ActivePowerMinPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace ActivePowerMinPhaseB +namespace TimedWriteBoolean { +EmberAfStatus Get(chip::EndpointId endpoint, bool * value); // boolean +EmberAfStatus Set(chip::EndpointId endpoint, bool value); +} // namespace TimedWriteBoolean -namespace ActivePowerMaxPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace ActivePowerMaxPhaseB +namespace GeneralErrorBoolean { +EmberAfStatus Get(chip::EndpointId endpoint, bool * value); // boolean +EmberAfStatus Set(chip::EndpointId endpoint, bool value); +} // namespace GeneralErrorBoolean -namespace ReactivePowerPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace ReactivePowerPhaseB +namespace ClusterErrorBoolean { +EmberAfStatus Get(chip::EndpointId endpoint, bool * value); // boolean +EmberAfStatus Set(chip::EndpointId endpoint, bool value); +} // namespace ClusterErrorBoolean -namespace ApparentPowerPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace ApparentPowerPhaseB +namespace Unsupported { +EmberAfStatus Get(chip::EndpointId endpoint, bool * value); // boolean +EmberAfStatus Set(chip::EndpointId endpoint, bool value); +} // namespace Unsupported -namespace PowerFactorPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value); // int8s -EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); -} // namespace PowerFactorPhaseB +namespace NullableBoolean { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // boolean +EmberAfStatus Set(chip::EndpointId endpoint, bool value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableBoolean -namespace AverageRmsVoltageMeasurementPeriodPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AverageRmsVoltageMeasurementPeriodPhaseB +namespace NullableBitmap8 { +EmberAfStatus Get(chip::EndpointId endpoint, + DataModel::Nullable> & value); // Bitmap8MaskMap +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, + const chip::app::DataModel::Nullable> & value); +} // namespace NullableBitmap8 -namespace AverageRmsOverVoltageCounterPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AverageRmsOverVoltageCounterPhaseB +namespace NullableBitmap16 { +EmberAfStatus Get(chip::EndpointId endpoint, + DataModel::Nullable> & value); // Bitmap16MaskMap +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, + const chip::app::DataModel::Nullable> & value); +} // namespace NullableBitmap16 -namespace AverageRmsUnderVoltageCounterPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AverageRmsUnderVoltageCounterPhaseB +namespace NullableBitmap32 { +EmberAfStatus Get(chip::EndpointId endpoint, + DataModel::Nullable> & value); // Bitmap32MaskMap +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, + const chip::app::DataModel::Nullable> & value); +} // namespace NullableBitmap32 -namespace RmsExtremeOverVoltagePeriodPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsExtremeOverVoltagePeriodPhaseB +namespace NullableBitmap64 { +EmberAfStatus Get(chip::EndpointId endpoint, + DataModel::Nullable> & value); // Bitmap64MaskMap +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, + const chip::app::DataModel::Nullable> & value); +} // namespace NullableBitmap64 + +namespace NullableInt8u { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int8u +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableInt8u -namespace RmsExtremeUnderVoltagePeriodPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +namespace NullableInt16u { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsExtremeUnderVoltagePeriodPhaseB +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableInt16u -namespace RmsVoltageSagPeriodPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsVoltageSagPeriodPhaseB +namespace NullableInt24u { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int24u +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableInt24u -namespace RmsVoltageSwellPeriodPhaseB { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsVoltageSwellPeriodPhaseB +namespace NullableInt32u { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int32u +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableInt32u -namespace LineCurrentPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace LineCurrentPhaseC +namespace NullableInt40u { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int40u +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableInt40u -namespace ActiveCurrentPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace ActiveCurrentPhaseC +namespace NullableInt48u { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int48u +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableInt48u -namespace ReactiveCurrentPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace ReactiveCurrentPhaseC +namespace NullableInt56u { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int56u +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableInt56u -namespace RmsVoltagePhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsVoltagePhaseC +namespace NullableInt64u { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int64u +EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableInt64u -namespace RmsVoltageMinPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsVoltageMinPhaseC +namespace NullableInt8s { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int8s +EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableInt8s -namespace RmsVoltageMaxPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsVoltageMaxPhaseC +namespace NullableInt16s { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableInt16s -namespace RmsCurrentPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsCurrentPhaseC +namespace NullableInt24s { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int24s +EmberAfStatus Set(chip::EndpointId endpoint, int32_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableInt24s -namespace RmsCurrentMinPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsCurrentMinPhaseC +namespace NullableInt32s { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int32s +EmberAfStatus Set(chip::EndpointId endpoint, int32_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableInt32s -namespace RmsCurrentMaxPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsCurrentMaxPhaseC +namespace NullableInt40s { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int40s +EmberAfStatus Set(chip::EndpointId endpoint, int64_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableInt40s -namespace ActivePowerPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace ActivePowerPhaseC +namespace NullableInt48s { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int48s +EmberAfStatus Set(chip::EndpointId endpoint, int64_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableInt48s -namespace ActivePowerMinPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace ActivePowerMinPhaseC +namespace NullableInt56s { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int56s +EmberAfStatus Set(chip::EndpointId endpoint, int64_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableInt56s -namespace ActivePowerMaxPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace ActivePowerMaxPhaseC +namespace NullableInt64s { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int64s +EmberAfStatus Set(chip::EndpointId endpoint, int64_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableInt64s -namespace ReactivePowerPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s -EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); -} // namespace ReactivePowerPhaseC +namespace NullableEnum8 { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // enum8 +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableEnum8 -namespace ApparentPowerPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +namespace NullableEnum16 { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // enum16 EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace ApparentPowerPhaseC +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableEnum16 -namespace PowerFactorPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value); // int8s -EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); -} // namespace PowerFactorPhaseC +namespace NullableFloatSingle { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // single +EmberAfStatus Set(chip::EndpointId endpoint, float value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableFloatSingle -namespace AverageRmsVoltageMeasurementPeriodPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AverageRmsVoltageMeasurementPeriodPhaseC +namespace NullableFloatDouble { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // double +EmberAfStatus Set(chip::EndpointId endpoint, double value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableFloatDouble -namespace AverageRmsOverVoltageCounterPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AverageRmsOverVoltageCounterPhaseC +namespace NullableOctetString { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // octet_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableOctetString -namespace AverageRmsUnderVoltageCounterPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace AverageRmsUnderVoltageCounterPhaseC +namespace NullableCharString { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // char_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableCharString -namespace RmsExtremeOverVoltagePeriodPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsExtremeOverVoltagePeriodPhaseC +namespace NullableEnumAttr { +EmberAfStatus Get(chip::EndpointId endpoint, + DataModel::Nullable & value); // SimpleEnum +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::TestCluster::SimpleEnum value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, + const chip::app::DataModel::Nullable & value); +} // namespace NullableEnumAttr -namespace RmsExtremeUnderVoltagePeriodPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsExtremeUnderVoltagePeriodPhaseC +namespace NullableRangeRestrictedInt8u { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int8u +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableRangeRestrictedInt8u -namespace RmsVoltageSagPeriodPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsVoltageSagPeriodPhaseC +namespace NullableRangeRestrictedInt8s { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int8s +EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableRangeRestrictedInt8s -namespace RmsVoltageSwellPeriodPhaseC { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u +namespace NullableRangeRestrictedInt16u { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace RmsVoltageSwellPeriodPhaseC +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableRangeRestrictedInt16u + +namespace NullableRangeRestrictedInt16s { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int16s +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NullableRangeRestrictedInt16s namespace FeatureMap { EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // bitmap32 @@ -7062,7 +7062,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); } // namespace ClusterRevision } // namespace Attributes -} // namespace ElectricalMeasurement +} // namespace TestCluster } // namespace Clusters } // namespace app diff --git a/zzz_generated/app-common/app-common/zap-generated/callback.h b/zzz_generated/app-common/app-common/zap-generated/callback.h index 20e4c5a0a2cb4a..36cdc3f334ae28 100644 --- a/zzz_generated/app-common/app-common/zap-generated/callback.h +++ b/zzz_generated/app-common/app-common/zap-generated/callback.h @@ -925,14 +925,6 @@ void emberAfApplicationBasicClusterInitCallback(chip::EndpointId endpoint); */ void emberAfAccountLoginClusterInitCallback(chip::EndpointId endpoint); -/** @brief Test Cluster Cluster Init - * - * Cluster Init - * - * @param endpoint Endpoint that is being initialized - */ -void emberAfTestClusterClusterInitCallback(chip::EndpointId endpoint); - /** @brief Messaging Cluster Init * * Cluster Init @@ -981,6 +973,14 @@ void emberAfApplianceStatisticsClusterInitCallback(chip::EndpointId endpoint); */ void emberAfElectricalMeasurementClusterInitCallback(chip::EndpointId endpoint); +/** @brief Test Cluster Cluster Init + * + * Cluster Init + * + * @param endpoint Endpoint that is being initialized + */ +void emberAfTestClusterClusterInitCallback(chip::EndpointId endpoint); + // Cluster Server/Client Init Functions // @@ -11615,102 +11615,6 @@ void emberAfAccountLoginClusterServerTickCallback(chip::EndpointId endpoint); */ void emberAfAccountLoginClusterClientTickCallback(chip::EndpointId endpoint); -// -// Test Cluster Cluster -// - -/** @brief Test Cluster Cluster Server Init - * - * Server Init - * - * @param endpoint Endpoint that is being initialized - */ -void emberAfTestClusterClusterServerInitCallback(chip::EndpointId endpoint); - -/** @brief Test Cluster Cluster Client Init - * - * Client Init - * - * @param endpoint Endpoint that is being initialized - */ -void emberAfTestClusterClusterClientInitCallback(chip::EndpointId endpoint); - -/** @brief Test Cluster Cluster Server Attribute Changed - * - * Server Attribute Changed - * - * @param attributePath Concrete attribute path that changed - */ -void MatterTestClusterClusterServerAttributeChangedCallback(const chip::app::ConcreteAttributePath & attributePath); - -/** @brief Test Cluster Cluster Server Message Sent - * - * Server Message Sent - * - * @param destination The destination to which the message was sent - * @param apsFrame The APS frame for the message - * @param msgLen The length of the message - * @param message The message that was sent - * @param status The status of the sent message - */ -void emberAfTestClusterClusterServerMessageSentCallback(const chip::MessageSendDestination & destination, EmberApsFrame * apsFrame, - uint16_t msgLen, uint8_t * message, EmberStatus status); - -/** @brief Test Cluster Cluster Client Message Sent - * - * Client Message Sent - * - * @param destination The destination to which the message was sent - * @param apsFrame The APS frame for the message - * @param msgLen The length of the message - * @param message The message that was sent - * @param status The status of the sent message - */ -void emberAfTestClusterClusterClientMessageSentCallback(const chip::MessageSendDestination & destination, EmberApsFrame * apsFrame, - uint16_t msgLen, uint8_t * message, EmberStatus status); - -/** @brief Test Cluster Cluster Server Pre Attribute Changed - * - * Server Pre Attribute Changed - * - * @param attributePath Concrete attribute path to be changed - * @param attributeType Attribute type - * @param size Attribute size - * @param value Attribute value - */ -chip::Protocols::InteractionModel::Status -MatterTestClusterClusterServerPreAttributeChangedCallback(const chip::app::ConcreteAttributePath & attributePath, - EmberAfAttributeType attributeType, uint16_t size, uint8_t * value); - -/** @brief Test Cluster Cluster Client Pre Attribute Changed - * - * Client Pre Attribute Changed - * - * @param attributePath Concrete attribute path to be changed - * @param attributeType Attribute type - * @param size Attribute size - * @param value Attribute value - */ -chip::Protocols::InteractionModel::Status -MatterTestClusterClusterClientPreAttributeChangedCallback(const chip::app::ConcreteAttributePath & attributePath, - EmberAfAttributeType attributeType, uint16_t size, uint8_t * value); - -/** @brief Test Cluster Cluster Server Tick - * - * Server Tick - * - * @param endpoint Endpoint that is being served - */ -void emberAfTestClusterClusterServerTickCallback(chip::EndpointId endpoint); - -/** @brief Test Cluster Cluster Client Tick - * - * Client Tick - * - * @param endpoint Endpoint that is being served - */ -void emberAfTestClusterClusterClientTickCallback(chip::EndpointId endpoint); - // // Messaging Cluster // @@ -12287,6 +12191,102 @@ void emberAfElectricalMeasurementClusterServerTickCallback(chip::EndpointId endp */ void emberAfElectricalMeasurementClusterClientTickCallback(chip::EndpointId endpoint); +// +// Test Cluster Cluster +// + +/** @brief Test Cluster Cluster Server Init + * + * Server Init + * + * @param endpoint Endpoint that is being initialized + */ +void emberAfTestClusterClusterServerInitCallback(chip::EndpointId endpoint); + +/** @brief Test Cluster Cluster Client Init + * + * Client Init + * + * @param endpoint Endpoint that is being initialized + */ +void emberAfTestClusterClusterClientInitCallback(chip::EndpointId endpoint); + +/** @brief Test Cluster Cluster Server Attribute Changed + * + * Server Attribute Changed + * + * @param attributePath Concrete attribute path that changed + */ +void MatterTestClusterClusterServerAttributeChangedCallback(const chip::app::ConcreteAttributePath & attributePath); + +/** @brief Test Cluster Cluster Server Message Sent + * + * Server Message Sent + * + * @param destination The destination to which the message was sent + * @param apsFrame The APS frame for the message + * @param msgLen The length of the message + * @param message The message that was sent + * @param status The status of the sent message + */ +void emberAfTestClusterClusterServerMessageSentCallback(const chip::MessageSendDestination & destination, EmberApsFrame * apsFrame, + uint16_t msgLen, uint8_t * message, EmberStatus status); + +/** @brief Test Cluster Cluster Client Message Sent + * + * Client Message Sent + * + * @param destination The destination to which the message was sent + * @param apsFrame The APS frame for the message + * @param msgLen The length of the message + * @param message The message that was sent + * @param status The status of the sent message + */ +void emberAfTestClusterClusterClientMessageSentCallback(const chip::MessageSendDestination & destination, EmberApsFrame * apsFrame, + uint16_t msgLen, uint8_t * message, EmberStatus status); + +/** @brief Test Cluster Cluster Server Pre Attribute Changed + * + * Server Pre Attribute Changed + * + * @param attributePath Concrete attribute path to be changed + * @param attributeType Attribute type + * @param size Attribute size + * @param value Attribute value + */ +chip::Protocols::InteractionModel::Status +MatterTestClusterClusterServerPreAttributeChangedCallback(const chip::app::ConcreteAttributePath & attributePath, + EmberAfAttributeType attributeType, uint16_t size, uint8_t * value); + +/** @brief Test Cluster Cluster Client Pre Attribute Changed + * + * Client Pre Attribute Changed + * + * @param attributePath Concrete attribute path to be changed + * @param attributeType Attribute type + * @param size Attribute size + * @param value Attribute value + */ +chip::Protocols::InteractionModel::Status +MatterTestClusterClusterClientPreAttributeChangedCallback(const chip::app::ConcreteAttributePath & attributePath, + EmberAfAttributeType attributeType, uint16_t size, uint8_t * value); + +/** @brief Test Cluster Cluster Server Tick + * + * Server Tick + * + * @param endpoint Endpoint that is being served + */ +void emberAfTestClusterClusterServerTickCallback(chip::EndpointId endpoint); + +/** @brief Test Cluster Cluster Client Tick + * + * Client Tick + * + * @param endpoint Endpoint that is being served + */ +void emberAfTestClusterClusterClientTickCallback(chip::EndpointId endpoint); + // Cluster Commands Callback /** @@ -13897,6 +13897,133 @@ bool emberAfAccountLoginClusterLoginCallback(chip::app::CommandHandler * command bool emberAfAccountLoginClusterLogoutCallback( chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, const chip::app::Clusters::AccountLogin::Commands::Logout::DecodableType & commandData); +/** + * @brief Messaging Cluster DisplayMessage Command callback (from server) + */ +bool emberAfMessagingClusterDisplayMessageCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, + uint32_t messageId, uint8_t messageControl, uint32_t startTime, + uint16_t durationInMinutes, chip::CharSpan message, + uint8_t optionalExtendedMessageControl); +/** + * @brief Messaging Cluster GetLastMessage Command callback (from client) + */ +bool emberAfMessagingClusterGetLastMessageCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Messaging::Commands::GetLastMessage::DecodableType & commandData); +/** + * @brief Messaging Cluster CancelMessage Command callback (from server) + */ +bool emberAfMessagingClusterCancelMessageCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, + uint32_t messageId, uint8_t messageControl); +/** + * @brief Messaging Cluster MessageConfirmation Command callback (from client) + */ +bool emberAfMessagingClusterMessageConfirmationCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Messaging::Commands::MessageConfirmation::DecodableType & commandData); +/** + * @brief Messaging Cluster DisplayProtectedMessage Command callback (from server) + */ +bool emberAfMessagingClusterDisplayProtectedMessageCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, + uint32_t messageId, uint8_t messageControl, uint32_t startTime, + uint16_t durationInMinutes, chip::CharSpan message, + uint8_t optionalExtendedMessageControl); +/** + * @brief Messaging Cluster GetMessageCancellation Command callback (from client) + */ +bool emberAfMessagingClusterGetMessageCancellationCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Messaging::Commands::GetMessageCancellation::DecodableType & commandData); +/** + * @brief Messaging Cluster CancelAllMessages Command callback (from server) + */ +bool emberAfMessagingClusterCancelAllMessagesCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, + uint32_t implementationDateTime); +/** + * @brief Appliance Events and Alert Cluster GetAlerts Command callback (from client) + */ +bool emberAfApplianceEventsAndAlertClusterGetAlertsCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::ApplianceEventsAndAlert::Commands::GetAlerts::DecodableType & commandData); +/** + * @brief Appliance Events and Alert Cluster GetAlertsResponse Command callback (from server) + */ +bool emberAfApplianceEventsAndAlertClusterGetAlertsResponseCallback( + chip::EndpointId endpoint, chip::app::CommandSender * commandObj, uint8_t alertsCount, + /* TYPE WARNING: array array defaults to */ uint8_t * alertStructures); +/** + * @brief Appliance Events and Alert Cluster AlertsNotification Command callback (from server) + */ +bool emberAfApplianceEventsAndAlertClusterAlertsNotificationCallback( + chip::EndpointId endpoint, chip::app::CommandSender * commandObj, uint8_t alertsCount, + /* TYPE WARNING: array array defaults to */ uint8_t * alertStructures); +/** + * @brief Appliance Events and Alert Cluster EventsNotification Command callback (from server) + */ +bool emberAfApplianceEventsAndAlertClusterEventsNotificationCallback(chip::EndpointId endpoint, + chip::app::CommandSender * commandObj, uint8_t eventHeader, + uint8_t eventId); +/** + * @brief Appliance Statistics Cluster LogNotification Command callback (from server) + */ +bool emberAfApplianceStatisticsClusterLogNotificationCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, + uint32_t timeStamp, uint32_t logId, uint32_t logLength, + /* TYPE WARNING: array array defaults to */ uint8_t * logPayload); +/** + * @brief Appliance Statistics Cluster LogRequest Command callback (from client) + */ +bool emberAfApplianceStatisticsClusterLogRequestCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::ApplianceStatistics::Commands::LogRequest::DecodableType & commandData); +/** + * @brief Appliance Statistics Cluster LogResponse Command callback (from server) + */ +bool emberAfApplianceStatisticsClusterLogResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, + uint32_t timeStamp, uint32_t logId, uint32_t logLength, + /* TYPE WARNING: array array defaults to */ uint8_t * logPayload); +/** + * @brief Appliance Statistics Cluster LogQueueRequest Command callback (from client) + */ +bool emberAfApplianceStatisticsClusterLogQueueRequestCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::ApplianceStatistics::Commands::LogQueueRequest::DecodableType & commandData); +/** + * @brief Appliance Statistics Cluster LogQueueResponse Command callback (from server) + */ +bool emberAfApplianceStatisticsClusterLogQueueResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, + uint8_t logQueueSize, + /* TYPE WARNING: array array defaults to */ uint8_t * logIds); +/** + * @brief Appliance Statistics Cluster StatisticsAvailable Command callback (from server) + */ +bool emberAfApplianceStatisticsClusterStatisticsAvailableCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, + uint8_t logQueueSize, + /* TYPE WARNING: array array defaults to */ uint8_t * logIds); +/** + * @brief Electrical Measurement Cluster GetProfileInfoResponseCommand Command callback (from server) + */ +bool emberAfElectricalMeasurementClusterGetProfileInfoResponseCommandCallback( + chip::EndpointId endpoint, chip::app::CommandSender * commandObj, uint8_t profileCount, uint8_t profileIntervalPeriod, + uint8_t maxNumberOfIntervals, /* TYPE WARNING: array array defaults to */ uint8_t * listOfAttributes); +/** + * @brief Electrical Measurement Cluster GetProfileInfoCommand Command callback (from client) + */ +bool emberAfElectricalMeasurementClusterGetProfileInfoCommandCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::ElectricalMeasurement::Commands::GetProfileInfoCommand::DecodableType & commandData); +/** + * @brief Electrical Measurement Cluster GetMeasurementProfileResponseCommand Command callback (from server) + */ +bool emberAfElectricalMeasurementClusterGetMeasurementProfileResponseCommandCallback( + chip::EndpointId endpoint, chip::app::CommandSender * commandObj, uint32_t startTime, uint8_t status, + uint8_t profileIntervalPeriod, uint8_t numberOfIntervalsDelivered, uint16_t attributeId, + /* TYPE WARNING: array array defaults to */ uint8_t * intervals); +/** + * @brief Electrical Measurement Cluster GetMeasurementProfileCommand Command callback (from client) + */ +bool emberAfElectricalMeasurementClusterGetMeasurementProfileCommandCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::ElectricalMeasurement::Commands::GetMeasurementProfileCommand::DecodableType & commandData); /** * @brief Test Cluster Cluster Test Command callback (from client) */ @@ -14104,133 +14231,6 @@ bool emberAfTestClusterClusterTestEmitTestEventRequestCallback( bool emberAfTestClusterClusterTestEmitTestFabricScopedEventRequestCallback( chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, const chip::app::Clusters::TestCluster::Commands::TestEmitTestFabricScopedEventRequest::DecodableType & commandData); -/** - * @brief Messaging Cluster DisplayMessage Command callback (from server) - */ -bool emberAfMessagingClusterDisplayMessageCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint32_t messageId, uint8_t messageControl, uint32_t startTime, - uint16_t durationInMinutes, chip::CharSpan message, - uint8_t optionalExtendedMessageControl); -/** - * @brief Messaging Cluster GetLastMessage Command callback (from client) - */ -bool emberAfMessagingClusterGetLastMessageCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::Messaging::Commands::GetLastMessage::DecodableType & commandData); -/** - * @brief Messaging Cluster CancelMessage Command callback (from server) - */ -bool emberAfMessagingClusterCancelMessageCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint32_t messageId, uint8_t messageControl); -/** - * @brief Messaging Cluster MessageConfirmation Command callback (from client) - */ -bool emberAfMessagingClusterMessageConfirmationCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::Messaging::Commands::MessageConfirmation::DecodableType & commandData); -/** - * @brief Messaging Cluster DisplayProtectedMessage Command callback (from server) - */ -bool emberAfMessagingClusterDisplayProtectedMessageCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint32_t messageId, uint8_t messageControl, uint32_t startTime, - uint16_t durationInMinutes, chip::CharSpan message, - uint8_t optionalExtendedMessageControl); -/** - * @brief Messaging Cluster GetMessageCancellation Command callback (from client) - */ -bool emberAfMessagingClusterGetMessageCancellationCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::Messaging::Commands::GetMessageCancellation::DecodableType & commandData); -/** - * @brief Messaging Cluster CancelAllMessages Command callback (from server) - */ -bool emberAfMessagingClusterCancelAllMessagesCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint32_t implementationDateTime); -/** - * @brief Appliance Events and Alert Cluster GetAlerts Command callback (from client) - */ -bool emberAfApplianceEventsAndAlertClusterGetAlertsCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::ApplianceEventsAndAlert::Commands::GetAlerts::DecodableType & commandData); -/** - * @brief Appliance Events and Alert Cluster GetAlertsResponse Command callback (from server) - */ -bool emberAfApplianceEventsAndAlertClusterGetAlertsResponseCallback( - chip::EndpointId endpoint, chip::app::CommandSender * commandObj, uint8_t alertsCount, - /* TYPE WARNING: array array defaults to */ uint8_t * alertStructures); -/** - * @brief Appliance Events and Alert Cluster AlertsNotification Command callback (from server) - */ -bool emberAfApplianceEventsAndAlertClusterAlertsNotificationCallback( - chip::EndpointId endpoint, chip::app::CommandSender * commandObj, uint8_t alertsCount, - /* TYPE WARNING: array array defaults to */ uint8_t * alertStructures); -/** - * @brief Appliance Events and Alert Cluster EventsNotification Command callback (from server) - */ -bool emberAfApplianceEventsAndAlertClusterEventsNotificationCallback(chip::EndpointId endpoint, - chip::app::CommandSender * commandObj, uint8_t eventHeader, - uint8_t eventId); -/** - * @brief Appliance Statistics Cluster LogNotification Command callback (from server) - */ -bool emberAfApplianceStatisticsClusterLogNotificationCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint32_t timeStamp, uint32_t logId, uint32_t logLength, - /* TYPE WARNING: array array defaults to */ uint8_t * logPayload); -/** - * @brief Appliance Statistics Cluster LogRequest Command callback (from client) - */ -bool emberAfApplianceStatisticsClusterLogRequestCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::ApplianceStatistics::Commands::LogRequest::DecodableType & commandData); -/** - * @brief Appliance Statistics Cluster LogResponse Command callback (from server) - */ -bool emberAfApplianceStatisticsClusterLogResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint32_t timeStamp, uint32_t logId, uint32_t logLength, - /* TYPE WARNING: array array defaults to */ uint8_t * logPayload); -/** - * @brief Appliance Statistics Cluster LogQueueRequest Command callback (from client) - */ -bool emberAfApplianceStatisticsClusterLogQueueRequestCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::ApplianceStatistics::Commands::LogQueueRequest::DecodableType & commandData); -/** - * @brief Appliance Statistics Cluster LogQueueResponse Command callback (from server) - */ -bool emberAfApplianceStatisticsClusterLogQueueResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t logQueueSize, - /* TYPE WARNING: array array defaults to */ uint8_t * logIds); -/** - * @brief Appliance Statistics Cluster StatisticsAvailable Command callback (from server) - */ -bool emberAfApplianceStatisticsClusterStatisticsAvailableCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t logQueueSize, - /* TYPE WARNING: array array defaults to */ uint8_t * logIds); -/** - * @brief Electrical Measurement Cluster GetProfileInfoResponseCommand Command callback (from server) - */ -bool emberAfElectricalMeasurementClusterGetProfileInfoResponseCommandCallback( - chip::EndpointId endpoint, chip::app::CommandSender * commandObj, uint8_t profileCount, uint8_t profileIntervalPeriod, - uint8_t maxNumberOfIntervals, /* TYPE WARNING: array array defaults to */ uint8_t * listOfAttributes); -/** - * @brief Electrical Measurement Cluster GetProfileInfoCommand Command callback (from client) - */ -bool emberAfElectricalMeasurementClusterGetProfileInfoCommandCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::ElectricalMeasurement::Commands::GetProfileInfoCommand::DecodableType & commandData); -/** - * @brief Electrical Measurement Cluster GetMeasurementProfileResponseCommand Command callback (from server) - */ -bool emberAfElectricalMeasurementClusterGetMeasurementProfileResponseCommandCallback( - chip::EndpointId endpoint, chip::app::CommandSender * commandObj, uint32_t startTime, uint8_t status, - uint8_t profileIntervalPeriod, uint8_t numberOfIntervalsDelivered, uint16_t attributeId, - /* TYPE WARNING: array array defaults to */ uint8_t * intervals); -/** - * @brief Electrical Measurement Cluster GetMeasurementProfileCommand Command callback (from client) - */ -bool emberAfElectricalMeasurementClusterGetMeasurementProfileCommandCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::ElectricalMeasurement::Commands::GetMeasurementProfileCommand::DecodableType & commandData); /** @brief Add To Current App Tasks * diff --git a/zzz_generated/app-common/app-common/zap-generated/callbacks/PluginCallbacks.h b/zzz_generated/app-common/app-common/zap-generated/callbacks/PluginCallbacks.h index c4e9ae9188ccd8..d8803409d146fa 100644 --- a/zzz_generated/app-common/app-common/zap-generated/callbacks/PluginCallbacks.h +++ b/zzz_generated/app-common/app-common/zap-generated/callbacks/PluginCallbacks.h @@ -239,8 +239,6 @@ void __attribute__((weak)) MatterApplicationBasicPluginClientInitCallback() {} void MatterApplicationBasicPluginServerInitCallback(); void __attribute__((weak)) MatterAccountLoginPluginClientInitCallback() {} void MatterAccountLoginPluginServerInitCallback(); -void __attribute__((weak)) MatterTestClusterPluginClientInitCallback() {} -void MatterTestClusterPluginServerInitCallback(); void __attribute__((weak)) MatterMessagingPluginClientInitCallback() {} void MatterMessagingPluginServerInitCallback(); void __attribute__((weak)) MatterApplianceIdentificationPluginClientInitCallback() {} @@ -253,3 +251,5 @@ void __attribute__((weak)) MatterApplianceStatisticsPluginClientInitCallback() { void MatterApplianceStatisticsPluginServerInitCallback(); void __attribute__((weak)) MatterElectricalMeasurementPluginClientInitCallback() {} void MatterElectricalMeasurementPluginServerInitCallback(); +void __attribute__((weak)) MatterTestClusterPluginClientInitCallback() {} +void MatterTestClusterPluginServerInitCallback(); diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h index 979639f7a2e01a..5480a4a7912460 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h @@ -2425,62 +2425,6 @@ enum class ApplicationStatusEnum : uint8_t namespace AccountLogin { } // namespace AccountLogin -namespace TestCluster { - -// Enum for SimpleEnum -enum class SimpleEnum : uint8_t -{ - kUnspecified = 0x00, - kValueA = 0x01, - kValueB = 0x02, - kValueC = 0x03, -}; - -// Bitmap for Bitmap16MaskMap -enum class Bitmap16MaskMap : uint16_t -{ - kMaskVal1 = 0x1, - kMaskVal2 = 0x2, - kMaskVal3 = 0x4, - kMaskVal4 = 0x4000, -}; - -// Bitmap for Bitmap32MaskMap -enum class Bitmap32MaskMap : uint32_t -{ - kMaskVal1 = 0x1, - kMaskVal2 = 0x2, - kMaskVal3 = 0x4, - kMaskVal4 = 0x40000000, -}; - -// Bitmap for Bitmap64MaskMap -enum class Bitmap64MaskMap : uint64_t -{ - kMaskVal1 = 0x1, - kMaskVal2 = 0x2, - kMaskVal3 = 0x4, - kMaskVal4 = 0x4000000000000000, -}; - -// Bitmap for Bitmap8MaskMap -enum class Bitmap8MaskMap : uint8_t -{ - kMaskVal1 = 0x1, - kMaskVal2 = 0x2, - kMaskVal3 = 0x4, - kMaskVal4 = 0x40, -}; - -// Bitmap for SimpleBitmap -enum class SimpleBitmap : uint8_t -{ - kValueA = 0x1, - kValueB = 0x2, - kValueC = 0x4, -}; -} // namespace TestCluster - namespace Messaging { // Enum for EventId @@ -2664,6 +2608,62 @@ namespace ApplianceStatistics { namespace ElectricalMeasurement { } // namespace ElectricalMeasurement +namespace TestCluster { + +// Enum for SimpleEnum +enum class SimpleEnum : uint8_t +{ + kUnspecified = 0x00, + kValueA = 0x01, + kValueB = 0x02, + kValueC = 0x03, +}; + +// Bitmap for Bitmap16MaskMap +enum class Bitmap16MaskMap : uint16_t +{ + kMaskVal1 = 0x1, + kMaskVal2 = 0x2, + kMaskVal3 = 0x4, + kMaskVal4 = 0x4000, +}; + +// Bitmap for Bitmap32MaskMap +enum class Bitmap32MaskMap : uint32_t +{ + kMaskVal1 = 0x1, + kMaskVal2 = 0x2, + kMaskVal3 = 0x4, + kMaskVal4 = 0x40000000, +}; + +// Bitmap for Bitmap64MaskMap +enum class Bitmap64MaskMap : uint64_t +{ + kMaskVal1 = 0x1, + kMaskVal2 = 0x2, + kMaskVal3 = 0x4, + kMaskVal4 = 0x4000000000000000, +}; + +// Bitmap for Bitmap8MaskMap +enum class Bitmap8MaskMap : uint8_t +{ + kMaskVal1 = 0x1, + kMaskVal2 = 0x2, + kMaskVal3 = 0x4, + kMaskVal4 = 0x40, +}; + +// Bitmap for SimpleBitmap +enum class SimpleBitmap : uint8_t +{ + kValueA = 0x1, + kValueB = 0x2, + kValueC = 0x4, +}; +} // namespace TestCluster + } // namespace Clusters } // namespace app } // namespace chip diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-id.h b/zzz_generated/app-common/app-common/zap-generated/cluster-id.h index d6b5f0c17fa89c..0f7a350c1fd290 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-id.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-id.h @@ -352,9 +352,6 @@ static constexpr chip::ClusterId ZCL_APPLICATION_BASIC_CLUSTER_ID = 0x050D; // Definitions for cluster: Account Login static constexpr chip::ClusterId ZCL_ACCOUNT_LOGIN_CLUSTER_ID = 0x050E; -// Definitions for cluster: Test Cluster -static constexpr chip::ClusterId ZCL_TEST_CLUSTER_ID = 0x050F; - // Definitions for cluster: Messaging static constexpr chip::ClusterId ZCL_MESSAGING_CLUSTER_ID = 0x0703; @@ -372,3 +369,6 @@ static constexpr chip::ClusterId ZCL_APPLIANCE_STATISTICS_CLUSTER_ID = 0x0B03; // Definitions for cluster: Electrical Measurement static constexpr chip::ClusterId ZCL_ELECTRICAL_MEASUREMENT_CLUSTER_ID = 0x0B04; + +// Definitions for cluster: Test Cluster +static constexpr chip::ClusterId ZCL_TEST_CLUSTER_ID = 0xFFF1FC05; diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp index 284a683877af59..292f01cabf9b95 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp @@ -23015,21 +23015,21 @@ namespace Events { } // namespace Events } // namespace AccountLogin -namespace TestCluster { -namespace Structs { -namespace SimpleStruct { +namespace Messaging { + +namespace Commands { +namespace DisplayMessage { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kA)), a)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kB)), b)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kC)), c)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kD)), d)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kE)), e)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kF)), f)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kG)), g)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kH)), h)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageId)), messageId)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageControl)), messageControl)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStartTime)), startTime)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kDurationInMinutes)), durationInMinutes)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessage)), message)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalExtendedMessageControl)), + optionalExtendedMessageControl)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -23039,8 +23039,7 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) CHIP_ERROR err = CHIP_NO_ERROR; TLV::TLVType outer; VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - err = reader.EnterContainer(outer); - ReturnErrorOnFailure(err); + ReturnErrorOnFailure(reader.EnterContainer(outer)); while ((err = reader.Next()) == CHIP_NO_ERROR) { if (!TLV::IsContextTag(reader.GetTag())) @@ -23049,29 +23048,23 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kA): - ReturnErrorOnFailure(DataModel::Decode(reader, a)); - break; - case to_underlying(Fields::kB): - ReturnErrorOnFailure(DataModel::Decode(reader, b)); - break; - case to_underlying(Fields::kC): - ReturnErrorOnFailure(DataModel::Decode(reader, c)); + case to_underlying(Fields::kMessageId): + ReturnErrorOnFailure(DataModel::Decode(reader, messageId)); break; - case to_underlying(Fields::kD): - ReturnErrorOnFailure(DataModel::Decode(reader, d)); + case to_underlying(Fields::kMessageControl): + ReturnErrorOnFailure(DataModel::Decode(reader, messageControl)); break; - case to_underlying(Fields::kE): - ReturnErrorOnFailure(DataModel::Decode(reader, e)); + case to_underlying(Fields::kStartTime): + ReturnErrorOnFailure(DataModel::Decode(reader, startTime)); break; - case to_underlying(Fields::kF): - ReturnErrorOnFailure(DataModel::Decode(reader, f)); + case to_underlying(Fields::kDurationInMinutes): + ReturnErrorOnFailure(DataModel::Decode(reader, durationInMinutes)); break; - case to_underlying(Fields::kG): - ReturnErrorOnFailure(DataModel::Decode(reader, g)); + case to_underlying(Fields::kMessage): + ReturnErrorOnFailure(DataModel::Decode(reader, message)); break; - case to_underlying(Fields::kH): - ReturnErrorOnFailure(DataModel::Decode(reader, h)); + case to_underlying(Fields::kOptionalExtendedMessageControl): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalExtendedMessageControl)); break; default: break; @@ -23080,67 +23073,14 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) VerifyOrReturnError(err == CHIP_END_OF_TLV, err); ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; } - -} // namespace SimpleStruct -namespace TestFabricScoped { -CHIP_ERROR Type::EncodeForWrite(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - return DoEncode(writer, tag, NullOptional); -} - -CHIP_ERROR Type::EncodeForRead(TLV::TLVWriter & writer, TLV::Tag tag, FabricIndex accessingFabricIndex) const -{ - return DoEncode(writer, tag, MakeOptional(accessingFabricIndex)); -} - -CHIP_ERROR Type::DoEncode(TLV::TLVWriter & writer, TLV::Tag tag, const Optional & accessingFabricIndex) const +} // namespace DisplayMessage. +namespace GetLastMessage { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { - bool includeSensitive = !accessingFabricIndex.HasValue() || (accessingFabricIndex.Value() == fabricIndex); TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - if (includeSensitive) - { - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kFabricSensitiveInt8u)), fabricSensitiveInt8u)); - } - if (includeSensitive) - { - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalFabricSensitiveInt8u)), - optionalFabricSensitiveInt8u)); - } - if (includeSensitive) - { - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableFabricSensitiveInt8u)), - nullableFabricSensitiveInt8u)); - } - if (includeSensitive) - { - ReturnErrorOnFailure(DataModel::Encode(writer, - TLV::ContextTag(to_underlying(Fields::kNullableOptionalFabricSensitiveInt8u)), - nullableOptionalFabricSensitiveInt8u)); - } - if (includeSensitive) - { - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kFabricSensitiveCharString)), - fabricSensitiveCharString)); - } - if (includeSensitive) - { - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kFabricSensitiveStruct)), fabricSensitiveStruct)); - } - if (includeSensitive) - { - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kFabricSensitiveInt8uList)), fabricSensitiveInt8uList)); - } - if (accessingFabricIndex.HasValue()) - { - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kFabricIndex)), fabricIndex)); - } ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -23150,8 +23090,7 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) CHIP_ERROR err = CHIP_NO_ERROR; TLV::TLVType outer; VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - err = reader.EnterContainer(outer); - ReturnErrorOnFailure(err); + ReturnErrorOnFailure(reader.EnterContainer(outer)); while ((err = reader.Next()) == CHIP_NO_ERROR) { if (!TLV::IsContextTag(reader.GetTag())) @@ -23160,30 +23099,6 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kFabricSensitiveInt8u): - ReturnErrorOnFailure(DataModel::Decode(reader, fabricSensitiveInt8u)); - break; - case to_underlying(Fields::kOptionalFabricSensitiveInt8u): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalFabricSensitiveInt8u)); - break; - case to_underlying(Fields::kNullableFabricSensitiveInt8u): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableFabricSensitiveInt8u)); - break; - case to_underlying(Fields::kNullableOptionalFabricSensitiveInt8u): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalFabricSensitiveInt8u)); - break; - case to_underlying(Fields::kFabricSensitiveCharString): - ReturnErrorOnFailure(DataModel::Decode(reader, fabricSensitiveCharString)); - break; - case to_underlying(Fields::kFabricSensitiveStruct): - ReturnErrorOnFailure(DataModel::Decode(reader, fabricSensitiveStruct)); - break; - case to_underlying(Fields::kFabricSensitiveInt8uList): - ReturnErrorOnFailure(DataModel::Decode(reader, fabricSensitiveInt8uList)); - break; - case to_underlying(Fields::kFabricIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, fabricIndex)); - break; default: break; } @@ -23191,32 +23106,16 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) VerifyOrReturnError(err == CHIP_END_OF_TLV, err); ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; } - -} // namespace TestFabricScoped -namespace NullablesAndOptionalsStruct { +} // namespace GetLastMessage. +namespace CancelMessage { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableInt)), nullableInt)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalInt)), optionalInt)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalInt)), nullableOptionalInt)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableString)), nullableString)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalString)), optionalString)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalString)), nullableOptionalString)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableStruct)), nullableStruct)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalStruct)), optionalStruct)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalStruct)), nullableOptionalStruct)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableList)), nullableList)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalList)), optionalList)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalList)), nullableOptionalList)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageId)), messageId)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageControl)), messageControl)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -23226,8 +23125,7 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) CHIP_ERROR err = CHIP_NO_ERROR; TLV::TLVType outer; VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - err = reader.EnterContainer(outer); - ReturnErrorOnFailure(err); + ReturnErrorOnFailure(reader.EnterContainer(outer)); while ((err = reader.Next()) == CHIP_NO_ERROR) { if (!TLV::IsContextTag(reader.GetTag())) @@ -23236,41 +23134,11 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kNullableInt): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt)); - break; - case to_underlying(Fields::kOptionalInt): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalInt)); - break; - case to_underlying(Fields::kNullableOptionalInt): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalInt)); - break; - case to_underlying(Fields::kNullableString): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableString)); - break; - case to_underlying(Fields::kOptionalString): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalString)); - break; - case to_underlying(Fields::kNullableOptionalString): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalString)); - break; - case to_underlying(Fields::kNullableStruct): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableStruct)); - break; - case to_underlying(Fields::kOptionalStruct): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalStruct)); - break; - case to_underlying(Fields::kNullableOptionalStruct): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalStruct)); - break; - case to_underlying(Fields::kNullableList): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableList)); - break; - case to_underlying(Fields::kOptionalList): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalList)); + case to_underlying(Fields::kMessageId): + ReturnErrorOnFailure(DataModel::Decode(reader, messageId)); break; - case to_underlying(Fields::kNullableOptionalList): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalList)); + case to_underlying(Fields::kMessageControl): + ReturnErrorOnFailure(DataModel::Decode(reader, messageControl)); break; default: break; @@ -23279,19 +23147,19 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) VerifyOrReturnError(err == CHIP_END_OF_TLV, err); ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; } - -} // namespace NullablesAndOptionalsStruct -namespace NestedStruct { +} // namespace CancelMessage. +namespace MessageConfirmation { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kA)), a)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kB)), b)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kC)), c)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageId)), messageId)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kConfirmationTime)), confirmationTime)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageConfirmationControl)), messageConfirmationControl)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageResponse)), messageResponse)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -23301,8 +23169,7 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) CHIP_ERROR err = CHIP_NO_ERROR; TLV::TLVType outer; VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - err = reader.EnterContainer(outer); - ReturnErrorOnFailure(err); + ReturnErrorOnFailure(reader.EnterContainer(outer)); while ((err = reader.Next()) == CHIP_NO_ERROR) { if (!TLV::IsContextTag(reader.GetTag())) @@ -23311,14 +23178,17 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kA): - ReturnErrorOnFailure(DataModel::Decode(reader, a)); + case to_underlying(Fields::kMessageId): + ReturnErrorOnFailure(DataModel::Decode(reader, messageId)); break; - case to_underlying(Fields::kB): - ReturnErrorOnFailure(DataModel::Decode(reader, b)); + case to_underlying(Fields::kConfirmationTime): + ReturnErrorOnFailure(DataModel::Decode(reader, confirmationTime)); break; - case to_underlying(Fields::kC): - ReturnErrorOnFailure(DataModel::Decode(reader, c)); + case to_underlying(Fields::kMessageConfirmationControl): + ReturnErrorOnFailure(DataModel::Decode(reader, messageConfirmationControl)); + break; + case to_underlying(Fields::kMessageResponse): + ReturnErrorOnFailure(DataModel::Decode(reader, messageResponse)); break; default: break; @@ -23327,34 +23197,31 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) VerifyOrReturnError(err == CHIP_END_OF_TLV, err); ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; } - -} // namespace NestedStruct -namespace NestedStructList { +} // namespace MessageConfirmation. +namespace DisplayProtectedMessage { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kA)), a)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kB)), b)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kC)), c)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kD)), d)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kE)), e)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kF)), f)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kG)), g)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageId)), messageId)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageControl)), messageControl)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStartTime)), startTime)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kDurationInMinutes)), durationInMinutes)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessage)), message)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalExtendedMessageControl)), + optionalExtendedMessageControl)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) { CHIP_ERROR err = CHIP_NO_ERROR; TLV::TLVType outer; VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - err = reader.EnterContainer(outer); - ReturnErrorOnFailure(err); + ReturnErrorOnFailure(reader.EnterContainer(outer)); while ((err = reader.Next()) == CHIP_NO_ERROR) { if (!TLV::IsContextTag(reader.GetTag())) @@ -23363,26 +23230,23 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kA): - ReturnErrorOnFailure(DataModel::Decode(reader, a)); - break; - case to_underlying(Fields::kB): - ReturnErrorOnFailure(DataModel::Decode(reader, b)); + case to_underlying(Fields::kMessageId): + ReturnErrorOnFailure(DataModel::Decode(reader, messageId)); break; - case to_underlying(Fields::kC): - ReturnErrorOnFailure(DataModel::Decode(reader, c)); + case to_underlying(Fields::kMessageControl): + ReturnErrorOnFailure(DataModel::Decode(reader, messageControl)); break; - case to_underlying(Fields::kD): - ReturnErrorOnFailure(DataModel::Decode(reader, d)); + case to_underlying(Fields::kStartTime): + ReturnErrorOnFailure(DataModel::Decode(reader, startTime)); break; - case to_underlying(Fields::kE): - ReturnErrorOnFailure(DataModel::Decode(reader, e)); + case to_underlying(Fields::kDurationInMinutes): + ReturnErrorOnFailure(DataModel::Decode(reader, durationInMinutes)); break; - case to_underlying(Fields::kF): - ReturnErrorOnFailure(DataModel::Decode(reader, f)); + case to_underlying(Fields::kMessage): + ReturnErrorOnFailure(DataModel::Decode(reader, message)); break; - case to_underlying(Fields::kG): - ReturnErrorOnFailure(DataModel::Decode(reader, g)); + case to_underlying(Fields::kOptionalExtendedMessageControl): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalExtendedMessageControl)); break; default: break; @@ -23391,17 +23255,16 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) VerifyOrReturnError(err == CHIP_END_OF_TLV, err); ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; } - -} // namespace NestedStructList -namespace DoubleNestedStructList { +} // namespace DisplayProtectedMessage. +namespace GetMessageCancellation { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kA)), a)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kEarliestImplementationTime)), earliestImplementationTime)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -23411,8 +23274,7 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) CHIP_ERROR err = CHIP_NO_ERROR; TLV::TLVType outer; VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - err = reader.EnterContainer(outer); - ReturnErrorOnFailure(err); + ReturnErrorOnFailure(reader.EnterContainer(outer)); while ((err = reader.Next()) == CHIP_NO_ERROR) { if (!TLV::IsContextTag(reader.GetTag())) @@ -23421,8 +23283,8 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kA): - ReturnErrorOnFailure(DataModel::Decode(reader, a)); + case to_underlying(Fields::kEarliestImplementationTime): + ReturnErrorOnFailure(DataModel::Decode(reader, earliestImplementationTime)); break; default: break; @@ -23431,18 +23293,16 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) VerifyOrReturnError(err == CHIP_END_OF_TLV, err); ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; } - -} // namespace DoubleNestedStructList -namespace TestListStructOctet { +} // namespace GetMessageCancellation. +namespace CancelAllMessages { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kFabricIndex)), fabricIndex)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOperationalCert)), operationalCert)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kImplementationDateTime)), implementationDateTime)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -23452,8 +23312,7 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) CHIP_ERROR err = CHIP_NO_ERROR; TLV::TLVType outer; VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - err = reader.EnterContainer(outer); - ReturnErrorOnFailure(err); + ReturnErrorOnFailure(reader.EnterContainer(outer)); while ((err = reader.Next()) == CHIP_NO_ERROR) { if (!TLV::IsContextTag(reader.GetTag())) @@ -23462,11 +23321,8 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kFabricIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, fabricIndex)); - break; - case to_underlying(Fields::kOperationalCert): - ReturnErrorOnFailure(DataModel::Decode(reader, operationalCert)); + case to_underlying(Fields::kImplementationDateTime): + ReturnErrorOnFailure(DataModel::Decode(reader, implementationDateTime)); break; default: break; @@ -23475,123 +23331,197 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) VerifyOrReturnError(err == CHIP_END_OF_TLV, err); ReturnErrorOnFailure(reader.ExitContainer(outer)); - - return CHIP_NO_ERROR; -} - -} // namespace TestListStructOctet -} // namespace Structs - -namespace Commands { -namespace Test { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } +} // namespace CancelAllMessages. +} // namespace Commands -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +namespace Attributes { +CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path) { - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) + switch (path.mAttributeId) { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - default: - break; - } + case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, generatedCommandList)); + break; + case Attributes::AcceptedCommandList::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acceptedCommandList)); + break; + case Attributes::AttributeList::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, attributeList)); + break; + case Attributes::FeatureMap::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, featureMap)); + break; + case Attributes::ClusterRevision::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, clusterRevision)); + break; + default: + break; } - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace Test. -namespace TestSpecificResponse { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kReturnValue)), returnValue)); - ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } +} // namespace Attributes -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +namespace Events { +} // namespace Events + +} // namespace Messaging +namespace ApplianceIdentification { + +namespace Commands { +} // namespace Commands + +namespace Attributes { +CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path) { - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) + switch (path.mAttributeId) { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kReturnValue): - ReturnErrorOnFailure(DataModel::Decode(reader, returnValue)); - break; - default: - break; - } + case Attributes::BasicIdentification::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, basicIdentification)); + break; + case Attributes::CompanyName::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, companyName)); + break; + case Attributes::CompanyId::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, companyId)); + break; + case Attributes::BrandName::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, brandName)); + break; + case Attributes::BrandId::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, brandId)); + break; + case Attributes::Model::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, model)); + break; + case Attributes::PartNumber::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, partNumber)); + break; + case Attributes::ProductRevision::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, productRevision)); + break; + case Attributes::SoftwareRevision::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, softwareRevision)); + break; + case Attributes::ProductTypeName::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, productTypeName)); + break; + case Attributes::ProductTypeId::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, productTypeId)); + break; + case Attributes::CecedSpecificationVersion::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, cecedSpecificationVersion)); + break; + case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, generatedCommandList)); + break; + case Attributes::AcceptedCommandList::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acceptedCommandList)); + break; + case Attributes::AttributeList::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, attributeList)); + break; + case Attributes::FeatureMap::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, featureMap)); + break; + case Attributes::ClusterRevision::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, clusterRevision)); + break; + default: + break; } - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace TestSpecificResponse. -namespace TestNotHandled { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } +} // namespace Attributes -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +namespace Events { +} // namespace Events + +} // namespace ApplianceIdentification +namespace MeterIdentification { + +namespace Commands { +} // namespace Commands + +namespace Attributes { +CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path) { - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) + switch (path.mAttributeId) { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - default: - break; - } + case Attributes::CompanyName::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, companyName)); + break; + case Attributes::MeterTypeId::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, meterTypeId)); + break; + case Attributes::DataQualityId::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, dataQualityId)); + break; + case Attributes::CustomerName::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, customerName)); + break; + case Attributes::Model::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, model)); + break; + case Attributes::PartNumber::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, partNumber)); + break; + case Attributes::ProductRevision::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, productRevision)); + break; + case Attributes::SoftwareRevision::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, softwareRevision)); + break; + case Attributes::UtilityName::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, utilityName)); + break; + case Attributes::Pod::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, pod)); + break; + case Attributes::AvailablePower::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, availablePower)); + break; + case Attributes::PowerThreshold::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, powerThreshold)); + break; + case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, generatedCommandList)); + break; + case Attributes::AcceptedCommandList::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acceptedCommandList)); + break; + case Attributes::AttributeList::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, attributeList)); + break; + case Attributes::FeatureMap::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, featureMap)); + break; + case Attributes::ClusterRevision::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, clusterRevision)); + break; + default: + break; } - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace TestNotHandled. -namespace TestAddArgumentsResponse { +} // namespace Attributes + +namespace Events { +} // namespace Events + +} // namespace MeterIdentification +namespace ApplianceEventsAndAlert { + +namespace Commands { +namespace GetAlerts { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kReturnValue)), returnValue)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -23610,9 +23540,6 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kReturnValue): - ReturnErrorOnFailure(DataModel::Decode(reader, returnValue)); - break; default: break; } @@ -23622,12 +23549,14 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace TestAddArgumentsResponse. -namespace TestSpecific { +} // namespace GetAlerts. +namespace GetAlertsResponse { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kAlertsCount)), alertsCount)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kAlertStructures)), alertStructures)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -23646,6 +23575,12 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { + case to_underlying(Fields::kAlertsCount): + ReturnErrorOnFailure(DataModel::Decode(reader, alertsCount)); + break; + case to_underlying(Fields::kAlertStructures): + ReturnErrorOnFailure(DataModel::Decode(reader, alertStructures)); + break; default: break; } @@ -23655,13 +23590,14 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace TestSpecific. -namespace TestSimpleArgumentResponse { +} // namespace GetAlertsResponse. +namespace AlertsNotification { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kReturnValue)), returnValue)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kAlertsCount)), alertsCount)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kAlertStructures)), alertStructures)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -23680,8 +23616,11 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kReturnValue): - ReturnErrorOnFailure(DataModel::Decode(reader, returnValue)); + case to_underlying(Fields::kAlertsCount): + ReturnErrorOnFailure(DataModel::Decode(reader, alertsCount)); + break; + case to_underlying(Fields::kAlertStructures): + ReturnErrorOnFailure(DataModel::Decode(reader, alertStructures)); break; default: break; @@ -23692,12 +23631,14 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace TestSimpleArgumentResponse. -namespace TestUnknownCommand { +} // namespace AlertsNotification. +namespace EventsNotification { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kEventHeader)), eventHeader)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kEventId)), eventId)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -23716,6 +23657,12 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { + case to_underlying(Fields::kEventHeader): + ReturnErrorOnFailure(DataModel::Decode(reader, eventHeader)); + break; + case to_underlying(Fields::kEventId): + ReturnErrorOnFailure(DataModel::Decode(reader, eventId)); + break; default: break; } @@ -23725,18 +23672,53 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace TestUnknownCommand. -namespace TestStructArrayArgumentResponse { +} // namespace EventsNotification. +} // namespace Commands + +namespace Attributes { +CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path) +{ + switch (path.mAttributeId) + { + case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, generatedCommandList)); + break; + case Attributes::AcceptedCommandList::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acceptedCommandList)); + break; + case Attributes::AttributeList::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, attributeList)); + break; + case Attributes::FeatureMap::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, featureMap)); + break; + case Attributes::ClusterRevision::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, clusterRevision)); + break; + default: + break; + } + + return CHIP_NO_ERROR; +} +} // namespace Attributes + +namespace Events { +} // namespace Events + +} // namespace ApplianceEventsAndAlert +namespace ApplianceStatistics { + +namespace Commands { +namespace LogNotification { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg2)), arg2)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg3)), arg3)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg4)), arg4)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg5)), arg5)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg6)), arg6)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kTimeStamp)), timeStamp)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogId)), logId)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogLength)), logLength)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogPayload)), logPayload)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -23755,23 +23737,17 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; - case to_underlying(Fields::kArg2): - ReturnErrorOnFailure(DataModel::Decode(reader, arg2)); - break; - case to_underlying(Fields::kArg3): - ReturnErrorOnFailure(DataModel::Decode(reader, arg3)); + case to_underlying(Fields::kTimeStamp): + ReturnErrorOnFailure(DataModel::Decode(reader, timeStamp)); break; - case to_underlying(Fields::kArg4): - ReturnErrorOnFailure(DataModel::Decode(reader, arg4)); + case to_underlying(Fields::kLogId): + ReturnErrorOnFailure(DataModel::Decode(reader, logId)); break; - case to_underlying(Fields::kArg5): - ReturnErrorOnFailure(DataModel::Decode(reader, arg5)); + case to_underlying(Fields::kLogLength): + ReturnErrorOnFailure(DataModel::Decode(reader, logLength)); break; - case to_underlying(Fields::kArg6): - ReturnErrorOnFailure(DataModel::Decode(reader, arg6)); + case to_underlying(Fields::kLogPayload): + ReturnErrorOnFailure(DataModel::Decode(reader, logPayload)); break; default: break; @@ -23782,14 +23758,13 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace TestStructArrayArgumentResponse. -namespace TestAddArguments { +} // namespace LogNotification. +namespace LogRequest { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg2)), arg2)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogId)), logId)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -23808,11 +23783,8 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; - case to_underlying(Fields::kArg2): - ReturnErrorOnFailure(DataModel::Decode(reader, arg2)); + case to_underlying(Fields::kLogId): + ReturnErrorOnFailure(DataModel::Decode(reader, logId)); break; default: break; @@ -23823,13 +23795,16 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace TestAddArguments. -namespace TestListInt8UReverseResponse { +} // namespace LogRequest. +namespace LogResponse { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kTimeStamp)), timeStamp)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogId)), logId)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogLength)), logLength)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogPayload)), logPayload)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -23848,8 +23823,17 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); + case to_underlying(Fields::kTimeStamp): + ReturnErrorOnFailure(DataModel::Decode(reader, timeStamp)); + break; + case to_underlying(Fields::kLogId): + ReturnErrorOnFailure(DataModel::Decode(reader, logId)); + break; + case to_underlying(Fields::kLogLength): + ReturnErrorOnFailure(DataModel::Decode(reader, logLength)); + break; + case to_underlying(Fields::kLogPayload): + ReturnErrorOnFailure(DataModel::Decode(reader, logPayload)); break; default: break; @@ -23860,13 +23844,12 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace TestListInt8UReverseResponse. -namespace TestSimpleArgumentRequest { +} // namespace LogResponse. +namespace LogQueueRequest { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -23885,9 +23868,6 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; default: break; } @@ -23897,14 +23877,14 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace TestSimpleArgumentRequest. -namespace TestEnumsResponse { +} // namespace LogQueueRequest. +namespace LogQueueResponse { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg2)), arg2)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogQueueSize)), logQueueSize)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogIds)), logIds)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -23923,11 +23903,11 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); + case to_underlying(Fields::kLogQueueSize): + ReturnErrorOnFailure(DataModel::Decode(reader, logQueueSize)); break; - case to_underlying(Fields::kArg2): - ReturnErrorOnFailure(DataModel::Decode(reader, arg2)); + case to_underlying(Fields::kLogIds): + ReturnErrorOnFailure(DataModel::Decode(reader, logIds)); break; default: break; @@ -23938,18 +23918,14 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace TestEnumsResponse. -namespace TestStructArrayArgumentRequest { +} // namespace LogQueueResponse. +namespace StatisticsAvailable { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg2)), arg2)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg3)), arg3)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg4)), arg4)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg5)), arg5)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg6)), arg6)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogQueueSize)), logQueueSize)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogIds)), logIds)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -23968,23 +23944,11 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; - case to_underlying(Fields::kArg2): - ReturnErrorOnFailure(DataModel::Decode(reader, arg2)); - break; - case to_underlying(Fields::kArg3): - ReturnErrorOnFailure(DataModel::Decode(reader, arg3)); - break; - case to_underlying(Fields::kArg4): - ReturnErrorOnFailure(DataModel::Decode(reader, arg4)); - break; - case to_underlying(Fields::kArg5): - ReturnErrorOnFailure(DataModel::Decode(reader, arg5)); + case to_underlying(Fields::kLogQueueSize): + ReturnErrorOnFailure(DataModel::Decode(reader, logQueueSize)); break; - case to_underlying(Fields::kArg6): - ReturnErrorOnFailure(DataModel::Decode(reader, arg6)); + case to_underlying(Fields::kLogIds): + ReturnErrorOnFailure(DataModel::Decode(reader, logIds)); break; default: break; @@ -23995,16 +23959,61 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace TestStructArrayArgumentRequest. -namespace TestNullableOptionalResponse { +} // namespace StatisticsAvailable. +} // namespace Commands + +namespace Attributes { +CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path) +{ + switch (path.mAttributeId) + { + case Attributes::LogMaxSize::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, logMaxSize)); + break; + case Attributes::LogQueueMaxSize::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, logQueueMaxSize)); + break; + case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, generatedCommandList)); + break; + case Attributes::AcceptedCommandList::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acceptedCommandList)); + break; + case Attributes::AttributeList::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, attributeList)); + break; + case Attributes::FeatureMap::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, featureMap)); + break; + case Attributes::ClusterRevision::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, clusterRevision)); + break; + default: + break; + } + + return CHIP_NO_ERROR; +} +} // namespace Attributes + +namespace Events { +} // namespace Events + +} // namespace ApplianceStatistics +namespace ElectricalMeasurement { + +namespace Commands { +namespace GetProfileInfoResponseCommand { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kWasPresent)), wasPresent)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kWasNull)), wasNull)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kValue)), value)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOriginalValue)), originalValue)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kProfileCount)), profileCount)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kProfileIntervalPeriod)), profileIntervalPeriod)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMaxNumberOfIntervals)), maxNumberOfIntervals)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kListOfAttributes)), listOfAttributes)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -24023,17 +24032,17 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kWasPresent): - ReturnErrorOnFailure(DataModel::Decode(reader, wasPresent)); + case to_underlying(Fields::kProfileCount): + ReturnErrorOnFailure(DataModel::Decode(reader, profileCount)); break; - case to_underlying(Fields::kWasNull): - ReturnErrorOnFailure(DataModel::Decode(reader, wasNull)); + case to_underlying(Fields::kProfileIntervalPeriod): + ReturnErrorOnFailure(DataModel::Decode(reader, profileIntervalPeriod)); break; - case to_underlying(Fields::kValue): - ReturnErrorOnFailure(DataModel::Decode(reader, value)); + case to_underlying(Fields::kMaxNumberOfIntervals): + ReturnErrorOnFailure(DataModel::Decode(reader, maxNumberOfIntervals)); break; - case to_underlying(Fields::kOriginalValue): - ReturnErrorOnFailure(DataModel::Decode(reader, originalValue)); + case to_underlying(Fields::kListOfAttributes): + ReturnErrorOnFailure(DataModel::Decode(reader, listOfAttributes)); break; default: break; @@ -24044,13 +24053,12 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace TestNullableOptionalResponse. -namespace TestStructArgumentRequest { +} // namespace GetProfileInfoResponseCommand. +namespace GetProfileInfoCommand { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -24069,9 +24077,6 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; default: break; } @@ -24081,64 +24086,20 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace TestStructArgumentRequest. -namespace TestComplexNullableOptionalResponse { +} // namespace GetProfileInfoCommand. +namespace GetMeasurementProfileResponseCommand { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStartTime)), startTime)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStatus)), status)); ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableIntWasNull)), nullableIntWasNull)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableIntValue)), nullableIntValue)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalIntWasPresent)), optionalIntWasPresent)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalIntValue)), optionalIntValue)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalIntWasPresent)), - nullableOptionalIntWasPresent)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalIntWasNull)), nullableOptionalIntWasNull)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalIntValue)), nullableOptionalIntValue)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableStringWasNull)), nullableStringWasNull)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableStringValue)), nullableStringValue)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalStringWasPresent)), optionalStringWasPresent)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalStringValue)), optionalStringValue)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalStringWasPresent)), - nullableOptionalStringWasPresent)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalStringWasNull)), - nullableOptionalStringWasNull)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalStringValue)), - nullableOptionalStringValue)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableStructWasNull)), nullableStructWasNull)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableStructValue)), nullableStructValue)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalStructWasPresent)), optionalStructWasPresent)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalStructValue)), optionalStructValue)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalStructWasPresent)), - nullableOptionalStructWasPresent)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalStructWasNull)), - nullableOptionalStructWasNull)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalStructValue)), - nullableOptionalStructValue)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableListWasNull)), nullableListWasNull)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableListValue)), nullableListValue)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalListWasPresent)), optionalListWasPresent)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalListValue)), optionalListValue)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalListWasPresent)), - nullableOptionalListWasPresent)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalListWasNull)), - nullableOptionalListWasNull)); + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kProfileIntervalPeriod)), profileIntervalPeriod)); ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalListValue)), nullableOptionalListValue)); + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNumberOfIntervalsDelivered)), numberOfIntervalsDelivered)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kAttributeId)), attributeId)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kIntervals)), intervals)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -24157,276 +24118,70 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kNullableIntWasNull): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableIntWasNull)); - break; - case to_underlying(Fields::kNullableIntValue): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableIntValue)); - break; - case to_underlying(Fields::kOptionalIntWasPresent): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalIntWasPresent)); - break; - case to_underlying(Fields::kOptionalIntValue): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalIntValue)); - break; - case to_underlying(Fields::kNullableOptionalIntWasPresent): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalIntWasPresent)); + case to_underlying(Fields::kStartTime): + ReturnErrorOnFailure(DataModel::Decode(reader, startTime)); break; - case to_underlying(Fields::kNullableOptionalIntWasNull): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalIntWasNull)); + case to_underlying(Fields::kStatus): + ReturnErrorOnFailure(DataModel::Decode(reader, status)); break; - case to_underlying(Fields::kNullableOptionalIntValue): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalIntValue)); + case to_underlying(Fields::kProfileIntervalPeriod): + ReturnErrorOnFailure(DataModel::Decode(reader, profileIntervalPeriod)); break; - case to_underlying(Fields::kNullableStringWasNull): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableStringWasNull)); + case to_underlying(Fields::kNumberOfIntervalsDelivered): + ReturnErrorOnFailure(DataModel::Decode(reader, numberOfIntervalsDelivered)); break; - case to_underlying(Fields::kNullableStringValue): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableStringValue)); + case to_underlying(Fields::kAttributeId): + ReturnErrorOnFailure(DataModel::Decode(reader, attributeId)); break; - case to_underlying(Fields::kOptionalStringWasPresent): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalStringWasPresent)); + case to_underlying(Fields::kIntervals): + ReturnErrorOnFailure(DataModel::Decode(reader, intervals)); break; - case to_underlying(Fields::kOptionalStringValue): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalStringValue)); + default: break; - case to_underlying(Fields::kNullableOptionalStringWasPresent): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalStringWasPresent)); + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + return CHIP_NO_ERROR; +} +} // namespace GetMeasurementProfileResponseCommand. +namespace GetMeasurementProfileCommand { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kAttributeId)), attributeId)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStartTime)), startTime)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNumberOfIntervals)), numberOfIntervals)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + ReturnErrorOnFailure(reader.EnterContainer(outer)); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + case to_underlying(Fields::kAttributeId): + ReturnErrorOnFailure(DataModel::Decode(reader, attributeId)); break; - case to_underlying(Fields::kNullableOptionalStringWasNull): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalStringWasNull)); + case to_underlying(Fields::kStartTime): + ReturnErrorOnFailure(DataModel::Decode(reader, startTime)); break; - case to_underlying(Fields::kNullableOptionalStringValue): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalStringValue)); + case to_underlying(Fields::kNumberOfIntervals): + ReturnErrorOnFailure(DataModel::Decode(reader, numberOfIntervals)); break; - case to_underlying(Fields::kNullableStructWasNull): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableStructWasNull)); - break; - case to_underlying(Fields::kNullableStructValue): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableStructValue)); - break; - case to_underlying(Fields::kOptionalStructWasPresent): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalStructWasPresent)); - break; - case to_underlying(Fields::kOptionalStructValue): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalStructValue)); - break; - case to_underlying(Fields::kNullableOptionalStructWasPresent): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalStructWasPresent)); - break; - case to_underlying(Fields::kNullableOptionalStructWasNull): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalStructWasNull)); - break; - case to_underlying(Fields::kNullableOptionalStructValue): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalStructValue)); - break; - case to_underlying(Fields::kNullableListWasNull): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableListWasNull)); - break; - case to_underlying(Fields::kNullableListValue): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableListValue)); - break; - case to_underlying(Fields::kOptionalListWasPresent): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalListWasPresent)); - break; - case to_underlying(Fields::kOptionalListValue): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalListValue)); - break; - case to_underlying(Fields::kNullableOptionalListWasPresent): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalListWasPresent)); - break; - case to_underlying(Fields::kNullableOptionalListWasNull): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalListWasNull)); - break; - case to_underlying(Fields::kNullableOptionalListValue): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalListValue)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace TestComplexNullableOptionalResponse. -namespace TestNestedStructArgumentRequest { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace TestNestedStructArgumentRequest. -namespace BooleanResponse { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kValue)), value)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kValue): - ReturnErrorOnFailure(DataModel::Decode(reader, value)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace BooleanResponse. -namespace TestListStructArgumentRequest { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace TestListStructArgumentRequest. -namespace SimpleStructResponse { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace SimpleStructResponse. -namespace TestListInt8UArgumentRequest { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; - default: + default: break; } } @@ -24435,793 +24190,397 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace TestListInt8UArgumentRequest. -namespace TestEmitTestEventResponse { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kValue)), value)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} +} // namespace GetMeasurementProfileCommand. +} // namespace Commands -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +namespace Attributes { +CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path) { - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) + switch (path.mAttributeId) { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kValue): - ReturnErrorOnFailure(DataModel::Decode(reader, value)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace TestEmitTestEventResponse. -namespace TestNestedStructListArgumentRequest { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace TestNestedStructListArgumentRequest. -namespace TestEmitTestFabricScopedEventResponse { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kValue)), value)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kValue): - ReturnErrorOnFailure(DataModel::Decode(reader, value)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace TestEmitTestFabricScopedEventResponse. -namespace TestListNestedStructListArgumentRequest { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace TestListNestedStructListArgumentRequest. -namespace TestListInt8UReverseRequest { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace TestListInt8UReverseRequest. -namespace TestEnumsRequest { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg2)), arg2)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; - case to_underlying(Fields::kArg2): - ReturnErrorOnFailure(DataModel::Decode(reader, arg2)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace TestEnumsRequest. -namespace TestNullableOptionalRequest { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace TestNullableOptionalRequest. -namespace TestComplexNullableOptionalRequest { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableInt)), nullableInt)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalInt)), optionalInt)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalInt)), nullableOptionalInt)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableString)), nullableString)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalString)), optionalString)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalString)), nullableOptionalString)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableStruct)), nullableStruct)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalStruct)), optionalStruct)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalStruct)), nullableOptionalStruct)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableList)), nullableList)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalList)), optionalList)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalList)), nullableOptionalList)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kNullableInt): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt)); - break; - case to_underlying(Fields::kOptionalInt): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalInt)); - break; - case to_underlying(Fields::kNullableOptionalInt): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalInt)); - break; - case to_underlying(Fields::kNullableString): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableString)); - break; - case to_underlying(Fields::kOptionalString): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalString)); - break; - case to_underlying(Fields::kNullableOptionalString): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalString)); - break; - case to_underlying(Fields::kNullableStruct): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableStruct)); - break; - case to_underlying(Fields::kOptionalStruct): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalStruct)); - break; - case to_underlying(Fields::kNullableOptionalStruct): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalStruct)); - break; - case to_underlying(Fields::kNullableList): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableList)); - break; - case to_underlying(Fields::kOptionalList): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalList)); - break; - case to_underlying(Fields::kNullableOptionalList): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalList)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace TestComplexNullableOptionalRequest. -namespace SimpleStructEchoRequest { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace SimpleStructEchoRequest. -namespace TimedInvokeRequest { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace TimedInvokeRequest. -namespace TestSimpleOptionalArgumentRequest { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace TestSimpleOptionalArgumentRequest. -namespace TestEmitTestEventRequest { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg2)), arg2)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg3)), arg3)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; - case to_underlying(Fields::kArg2): - ReturnErrorOnFailure(DataModel::Decode(reader, arg2)); - break; - case to_underlying(Fields::kArg3): - ReturnErrorOnFailure(DataModel::Decode(reader, arg3)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace TestEmitTestEventRequest. -namespace TestEmitTestFabricScopedEventRequest { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kArg1): - ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace TestEmitTestFabricScopedEventRequest. -} // namespace Commands - -namespace Attributes { -CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path) -{ - switch (path.mAttributeId) - { - case Attributes::Boolean::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, boolean)); + case Attributes::MeasurementType::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, measurementType)); break; - case Attributes::Bitmap8::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, bitmap8)); + case Attributes::DcVoltage::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, dcVoltage)); break; - case Attributes::Bitmap16::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, bitmap16)); + case Attributes::DcVoltageMin::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, dcVoltageMin)); break; - case Attributes::Bitmap32::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, bitmap32)); + case Attributes::DcVoltageMax::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, dcVoltageMax)); break; - case Attributes::Bitmap64::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, bitmap64)); + case Attributes::DcCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, dcCurrent)); break; - case Attributes::Int8u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, int8u)); + case Attributes::DcCurrentMin::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, dcCurrentMin)); break; - case Attributes::Int16u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, int16u)); + case Attributes::DcCurrentMax::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, dcCurrentMax)); break; - case Attributes::Int24u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, int24u)); + case Attributes::DcPower::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, dcPower)); break; - case Attributes::Int32u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, int32u)); + case Attributes::DcPowerMin::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, dcPowerMin)); break; - case Attributes::Int40u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, int40u)); + case Attributes::DcPowerMax::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, dcPowerMax)); break; - case Attributes::Int48u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, int48u)); + case Attributes::DcVoltageMultiplier::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, dcVoltageMultiplier)); break; - case Attributes::Int56u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, int56u)); + case Attributes::DcVoltageDivisor::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, dcVoltageDivisor)); break; - case Attributes::Int64u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, int64u)); + case Attributes::DcCurrentMultiplier::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, dcCurrentMultiplier)); break; - case Attributes::Int8s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, int8s)); + case Attributes::DcCurrentDivisor::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, dcCurrentDivisor)); break; - case Attributes::Int16s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, int16s)); + case Attributes::DcPowerMultiplier::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, dcPowerMultiplier)); break; - case Attributes::Int24s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, int24s)); + case Attributes::DcPowerDivisor::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, dcPowerDivisor)); break; - case Attributes::Int32s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, int32s)); + case Attributes::AcFrequency::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acFrequency)); break; - case Attributes::Int40s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, int40s)); + case Attributes::AcFrequencyMin::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acFrequencyMin)); break; - case Attributes::Int48s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, int48s)); + case Attributes::AcFrequencyMax::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acFrequencyMax)); break; - case Attributes::Int56s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, int56s)); + case Attributes::NeutralCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, neutralCurrent)); break; - case Attributes::Int64s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, int64s)); + case Attributes::TotalActivePower::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, totalActivePower)); break; - case Attributes::Enum8::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, enum8)); + case Attributes::TotalReactivePower::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, totalReactivePower)); break; - case Attributes::Enum16::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, enum16)); + case Attributes::TotalApparentPower::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, totalApparentPower)); break; - case Attributes::FloatSingle::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, floatSingle)); + case Attributes::Measured1stHarmonicCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, measured1stHarmonicCurrent)); break; - case Attributes::FloatDouble::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, floatDouble)); + case Attributes::Measured3rdHarmonicCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, measured3rdHarmonicCurrent)); break; - case Attributes::OctetString::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, octetString)); + case Attributes::Measured5thHarmonicCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, measured5thHarmonicCurrent)); + break; + case Attributes::Measured7thHarmonicCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, measured7thHarmonicCurrent)); + break; + case Attributes::Measured9thHarmonicCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, measured9thHarmonicCurrent)); + break; + case Attributes::Measured11thHarmonicCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, measured11thHarmonicCurrent)); + break; + case Attributes::MeasuredPhase1stHarmonicCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, measuredPhase1stHarmonicCurrent)); + break; + case Attributes::MeasuredPhase3rdHarmonicCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, measuredPhase3rdHarmonicCurrent)); + break; + case Attributes::MeasuredPhase5thHarmonicCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, measuredPhase5thHarmonicCurrent)); + break; + case Attributes::MeasuredPhase7thHarmonicCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, measuredPhase7thHarmonicCurrent)); + break; + case Attributes::MeasuredPhase9thHarmonicCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, measuredPhase9thHarmonicCurrent)); + break; + case Attributes::MeasuredPhase11thHarmonicCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, measuredPhase11thHarmonicCurrent)); + break; + case Attributes::AcFrequencyMultiplier::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acFrequencyMultiplier)); + break; + case Attributes::AcFrequencyDivisor::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acFrequencyDivisor)); + break; + case Attributes::PowerMultiplier::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, powerMultiplier)); + break; + case Attributes::PowerDivisor::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, powerDivisor)); + break; + case Attributes::HarmonicCurrentMultiplier::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, harmonicCurrentMultiplier)); + break; + case Attributes::PhaseHarmonicCurrentMultiplier::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, phaseHarmonicCurrentMultiplier)); + break; + case Attributes::InstantaneousVoltage::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, instantaneousVoltage)); + break; + case Attributes::InstantaneousLineCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, instantaneousLineCurrent)); + break; + case Attributes::InstantaneousActiveCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, instantaneousActiveCurrent)); + break; + case Attributes::InstantaneousReactiveCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, instantaneousReactiveCurrent)); + break; + case Attributes::InstantaneousPower::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, instantaneousPower)); + break; + case Attributes::RmsVoltage::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltage)); + break; + case Attributes::RmsVoltageMin::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageMin)); + break; + case Attributes::RmsVoltageMax::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageMax)); + break; + case Attributes::RmsCurrent::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrent)); + break; + case Attributes::RmsCurrentMin::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrentMin)); + break; + case Attributes::RmsCurrentMax::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrentMax)); + break; + case Attributes::ActivePower::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, activePower)); + break; + case Attributes::ActivePowerMin::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, activePowerMin)); + break; + case Attributes::ActivePowerMax::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, activePowerMax)); + break; + case Attributes::ReactivePower::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, reactivePower)); + break; + case Attributes::ApparentPower::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, apparentPower)); + break; + case Attributes::PowerFactor::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, powerFactor)); + break; + case Attributes::AverageRmsVoltageMeasurementPeriod::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsVoltageMeasurementPeriod)); + break; + case Attributes::AverageRmsUnderVoltageCounter::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsUnderVoltageCounter)); + break; + case Attributes::RmsExtremeOverVoltagePeriod::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsExtremeOverVoltagePeriod)); + break; + case Attributes::RmsExtremeUnderVoltagePeriod::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsExtremeUnderVoltagePeriod)); + break; + case Attributes::RmsVoltageSagPeriod::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageSagPeriod)); + break; + case Attributes::RmsVoltageSwellPeriod::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageSwellPeriod)); + break; + case Attributes::AcVoltageMultiplier::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acVoltageMultiplier)); + break; + case Attributes::AcVoltageDivisor::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acVoltageDivisor)); + break; + case Attributes::AcCurrentMultiplier::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acCurrentMultiplier)); + break; + case Attributes::AcCurrentDivisor::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acCurrentDivisor)); + break; + case Attributes::AcPowerMultiplier::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acPowerMultiplier)); + break; + case Attributes::AcPowerDivisor::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acPowerDivisor)); + break; + case Attributes::OverloadAlarmsMask::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, overloadAlarmsMask)); + break; + case Attributes::VoltageOverload::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, voltageOverload)); break; - case Attributes::ListInt8u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, listInt8u)); + case Attributes::CurrentOverload::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, currentOverload)); break; - case Attributes::ListOctetString::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, listOctetString)); + case Attributes::AcOverloadAlarmsMask::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acOverloadAlarmsMask)); break; - case Attributes::ListStructOctetString::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, listStructOctetString)); + case Attributes::AcVoltageOverload::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acVoltageOverload)); break; - case Attributes::LongOctetString::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, longOctetString)); + case Attributes::AcCurrentOverload::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acCurrentOverload)); break; - case Attributes::CharString::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, charString)); + case Attributes::AcActivePowerOverload::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acActivePowerOverload)); break; - case Attributes::LongCharString::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, longCharString)); + case Attributes::AcReactivePowerOverload::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, acReactivePowerOverload)); break; - case Attributes::EpochUs::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, epochUs)); + case Attributes::AverageRmsOverVoltage::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsOverVoltage)); break; - case Attributes::EpochS::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, epochS)); + case Attributes::AverageRmsUnderVoltage::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsUnderVoltage)); break; - case Attributes::VendorId::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, vendorId)); + case Attributes::RmsExtremeOverVoltage::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsExtremeOverVoltage)); break; - case Attributes::ListNullablesAndOptionalsStruct::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, listNullablesAndOptionalsStruct)); + case Attributes::RmsExtremeUnderVoltage::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsExtremeUnderVoltage)); break; - case Attributes::EnumAttr::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, enumAttr)); + case Attributes::RmsVoltageSag::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageSag)); break; - case Attributes::StructAttr::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, structAttr)); + case Attributes::RmsVoltageSwell::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageSwell)); break; - case Attributes::RangeRestrictedInt8u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rangeRestrictedInt8u)); + case Attributes::LineCurrentPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, lineCurrentPhaseB)); break; - case Attributes::RangeRestrictedInt8s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rangeRestrictedInt8s)); + case Attributes::ActiveCurrentPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, activeCurrentPhaseB)); break; - case Attributes::RangeRestrictedInt16u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rangeRestrictedInt16u)); + case Attributes::ReactiveCurrentPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, reactiveCurrentPhaseB)); break; - case Attributes::RangeRestrictedInt16s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rangeRestrictedInt16s)); + case Attributes::RmsVoltagePhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltagePhaseB)); break; - case Attributes::ListLongOctetString::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, listLongOctetString)); + case Attributes::RmsVoltageMinPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageMinPhaseB)); break; - case Attributes::ListFabricScoped::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, listFabricScoped)); + case Attributes::RmsVoltageMaxPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageMaxPhaseB)); break; - case Attributes::TimedWriteBoolean::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, timedWriteBoolean)); + case Attributes::RmsCurrentPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrentPhaseB)); break; - case Attributes::GeneralErrorBoolean::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, generalErrorBoolean)); + case Attributes::RmsCurrentMinPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrentMinPhaseB)); break; - case Attributes::ClusterErrorBoolean::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, clusterErrorBoolean)); + case Attributes::RmsCurrentMaxPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrentMaxPhaseB)); break; - case Attributes::Unsupported::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, unsupported)); + case Attributes::ActivePowerPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, activePowerPhaseB)); break; - case Attributes::NullableBoolean::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableBoolean)); + case Attributes::ActivePowerMinPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, activePowerMinPhaseB)); break; - case Attributes::NullableBitmap8::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableBitmap8)); + case Attributes::ActivePowerMaxPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, activePowerMaxPhaseB)); break; - case Attributes::NullableBitmap16::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableBitmap16)); + case Attributes::ReactivePowerPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, reactivePowerPhaseB)); break; - case Attributes::NullableBitmap32::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableBitmap32)); + case Attributes::ApparentPowerPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, apparentPowerPhaseB)); break; - case Attributes::NullableBitmap64::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableBitmap64)); + case Attributes::PowerFactorPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, powerFactorPhaseB)); break; - case Attributes::NullableInt8u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt8u)); + case Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsVoltageMeasurementPeriodPhaseB)); break; - case Attributes::NullableInt16u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt16u)); + case Attributes::AverageRmsOverVoltageCounterPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsOverVoltageCounterPhaseB)); break; - case Attributes::NullableInt24u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt24u)); + case Attributes::AverageRmsUnderVoltageCounterPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsUnderVoltageCounterPhaseB)); break; - case Attributes::NullableInt32u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt32u)); + case Attributes::RmsExtremeOverVoltagePeriodPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsExtremeOverVoltagePeriodPhaseB)); break; - case Attributes::NullableInt40u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt40u)); + case Attributes::RmsExtremeUnderVoltagePeriodPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsExtremeUnderVoltagePeriodPhaseB)); break; - case Attributes::NullableInt48u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt48u)); + case Attributes::RmsVoltageSagPeriodPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageSagPeriodPhaseB)); break; - case Attributes::NullableInt56u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt56u)); + case Attributes::RmsVoltageSwellPeriodPhaseB::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageSwellPeriodPhaseB)); break; - case Attributes::NullableInt64u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt64u)); + case Attributes::LineCurrentPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, lineCurrentPhaseC)); break; - case Attributes::NullableInt8s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt8s)); + case Attributes::ActiveCurrentPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, activeCurrentPhaseC)); break; - case Attributes::NullableInt16s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt16s)); + case Attributes::ReactiveCurrentPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, reactiveCurrentPhaseC)); break; - case Attributes::NullableInt24s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt24s)); + case Attributes::RmsVoltagePhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltagePhaseC)); break; - case Attributes::NullableInt32s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt32s)); + case Attributes::RmsVoltageMinPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageMinPhaseC)); break; - case Attributes::NullableInt40s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt40s)); + case Attributes::RmsVoltageMaxPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageMaxPhaseC)); break; - case Attributes::NullableInt48s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt48s)); + case Attributes::RmsCurrentPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrentPhaseC)); break; - case Attributes::NullableInt56s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt56s)); + case Attributes::RmsCurrentMinPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrentMinPhaseC)); break; - case Attributes::NullableInt64s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt64s)); + case Attributes::RmsCurrentMaxPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrentMaxPhaseC)); break; - case Attributes::NullableEnum8::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableEnum8)); + case Attributes::ActivePowerPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, activePowerPhaseC)); break; - case Attributes::NullableEnum16::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableEnum16)); + case Attributes::ActivePowerMinPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, activePowerMinPhaseC)); break; - case Attributes::NullableFloatSingle::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableFloatSingle)); + case Attributes::ActivePowerMaxPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, activePowerMaxPhaseC)); break; - case Attributes::NullableFloatDouble::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableFloatDouble)); + case Attributes::ReactivePowerPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, reactivePowerPhaseC)); break; - case Attributes::NullableOctetString::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableOctetString)); + case Attributes::ApparentPowerPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, apparentPowerPhaseC)); break; - case Attributes::NullableCharString::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableCharString)); + case Attributes::PowerFactorPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, powerFactorPhaseC)); break; - case Attributes::NullableEnumAttr::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableEnumAttr)); + case Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsVoltageMeasurementPeriodPhaseC)); break; - case Attributes::NullableStruct::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableStruct)); + case Attributes::AverageRmsOverVoltageCounterPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsOverVoltageCounterPhaseC)); break; - case Attributes::NullableRangeRestrictedInt8u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableRangeRestrictedInt8u)); + case Attributes::AverageRmsUnderVoltageCounterPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsUnderVoltageCounterPhaseC)); break; - case Attributes::NullableRangeRestrictedInt8s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableRangeRestrictedInt8s)); + case Attributes::RmsExtremeOverVoltagePeriodPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsExtremeOverVoltagePeriodPhaseC)); break; - case Attributes::NullableRangeRestrictedInt16u::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableRangeRestrictedInt16u)); + case Attributes::RmsExtremeUnderVoltagePeriodPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsExtremeUnderVoltagePeriodPhaseC)); break; - case Attributes::NullableRangeRestrictedInt16s::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, nullableRangeRestrictedInt16s)); + case Attributes::RmsVoltageSagPeriodPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageSagPeriodPhaseC)); + break; + case Attributes::RmsVoltageSwellPeriodPhaseC::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageSwellPeriodPhaseC)); break; case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId(): ReturnErrorOnFailure(DataModel::Decode(reader, generatedCommandList)); @@ -25244,20 +24603,827 @@ CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const Concre return CHIP_NO_ERROR; } -} // namespace Attributes - -namespace Events { -namespace TestEvent { +} // namespace Attributes + +namespace Events { +} // namespace Events + +} // namespace ElectricalMeasurement +namespace TestCluster { +namespace Structs { +namespace SimpleStruct { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kA)), a)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kB)), b)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kC)), c)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kD)), d)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kE)), e)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kF)), f)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kG)), g)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kH)), h)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + err = reader.EnterContainer(outer); + ReturnErrorOnFailure(err); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + case to_underlying(Fields::kA): + ReturnErrorOnFailure(DataModel::Decode(reader, a)); + break; + case to_underlying(Fields::kB): + ReturnErrorOnFailure(DataModel::Decode(reader, b)); + break; + case to_underlying(Fields::kC): + ReturnErrorOnFailure(DataModel::Decode(reader, c)); + break; + case to_underlying(Fields::kD): + ReturnErrorOnFailure(DataModel::Decode(reader, d)); + break; + case to_underlying(Fields::kE): + ReturnErrorOnFailure(DataModel::Decode(reader, e)); + break; + case to_underlying(Fields::kF): + ReturnErrorOnFailure(DataModel::Decode(reader, f)); + break; + case to_underlying(Fields::kG): + ReturnErrorOnFailure(DataModel::Decode(reader, g)); + break; + case to_underlying(Fields::kH): + ReturnErrorOnFailure(DataModel::Decode(reader, h)); + break; + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + + return CHIP_NO_ERROR; +} + +} // namespace SimpleStruct +namespace TestFabricScoped { +CHIP_ERROR Type::EncodeForWrite(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + return DoEncode(writer, tag, NullOptional); +} + +CHIP_ERROR Type::EncodeForRead(TLV::TLVWriter & writer, TLV::Tag tag, FabricIndex accessingFabricIndex) const +{ + return DoEncode(writer, tag, MakeOptional(accessingFabricIndex)); +} + +CHIP_ERROR Type::DoEncode(TLV::TLVWriter & writer, TLV::Tag tag, const Optional & accessingFabricIndex) const +{ + bool includeSensitive = !accessingFabricIndex.HasValue() || (accessingFabricIndex.Value() == fabricIndex); + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + if (includeSensitive) + { + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kFabricSensitiveInt8u)), fabricSensitiveInt8u)); + } + if (includeSensitive) + { + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalFabricSensitiveInt8u)), + optionalFabricSensitiveInt8u)); + } + if (includeSensitive) + { + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableFabricSensitiveInt8u)), + nullableFabricSensitiveInt8u)); + } + if (includeSensitive) + { + ReturnErrorOnFailure(DataModel::Encode(writer, + TLV::ContextTag(to_underlying(Fields::kNullableOptionalFabricSensitiveInt8u)), + nullableOptionalFabricSensitiveInt8u)); + } + if (includeSensitive) + { + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kFabricSensitiveCharString)), + fabricSensitiveCharString)); + } + if (includeSensitive) + { + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kFabricSensitiveStruct)), fabricSensitiveStruct)); + } + if (includeSensitive) + { + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kFabricSensitiveInt8uList)), fabricSensitiveInt8uList)); + } + if (accessingFabricIndex.HasValue()) + { + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kFabricIndex)), fabricIndex)); + } + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + err = reader.EnterContainer(outer); + ReturnErrorOnFailure(err); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + case to_underlying(Fields::kFabricSensitiveInt8u): + ReturnErrorOnFailure(DataModel::Decode(reader, fabricSensitiveInt8u)); + break; + case to_underlying(Fields::kOptionalFabricSensitiveInt8u): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalFabricSensitiveInt8u)); + break; + case to_underlying(Fields::kNullableFabricSensitiveInt8u): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableFabricSensitiveInt8u)); + break; + case to_underlying(Fields::kNullableOptionalFabricSensitiveInt8u): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalFabricSensitiveInt8u)); + break; + case to_underlying(Fields::kFabricSensitiveCharString): + ReturnErrorOnFailure(DataModel::Decode(reader, fabricSensitiveCharString)); + break; + case to_underlying(Fields::kFabricSensitiveStruct): + ReturnErrorOnFailure(DataModel::Decode(reader, fabricSensitiveStruct)); + break; + case to_underlying(Fields::kFabricSensitiveInt8uList): + ReturnErrorOnFailure(DataModel::Decode(reader, fabricSensitiveInt8uList)); + break; + case to_underlying(Fields::kFabricIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, fabricIndex)); + break; + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + + return CHIP_NO_ERROR; +} + +} // namespace TestFabricScoped +namespace NullablesAndOptionalsStruct { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableInt)), nullableInt)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalInt)), optionalInt)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalInt)), nullableOptionalInt)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableString)), nullableString)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalString)), optionalString)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalString)), nullableOptionalString)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableStruct)), nullableStruct)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalStruct)), optionalStruct)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalStruct)), nullableOptionalStruct)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableList)), nullableList)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalList)), optionalList)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalList)), nullableOptionalList)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + err = reader.EnterContainer(outer); + ReturnErrorOnFailure(err); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + case to_underlying(Fields::kNullableInt): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt)); + break; + case to_underlying(Fields::kOptionalInt): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalInt)); + break; + case to_underlying(Fields::kNullableOptionalInt): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalInt)); + break; + case to_underlying(Fields::kNullableString): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableString)); + break; + case to_underlying(Fields::kOptionalString): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalString)); + break; + case to_underlying(Fields::kNullableOptionalString): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalString)); + break; + case to_underlying(Fields::kNullableStruct): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableStruct)); + break; + case to_underlying(Fields::kOptionalStruct): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalStruct)); + break; + case to_underlying(Fields::kNullableOptionalStruct): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalStruct)); + break; + case to_underlying(Fields::kNullableList): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableList)); + break; + case to_underlying(Fields::kOptionalList): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalList)); + break; + case to_underlying(Fields::kNullableOptionalList): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalList)); + break; + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + + return CHIP_NO_ERROR; +} + +} // namespace NullablesAndOptionalsStruct +namespace NestedStruct { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kA)), a)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kB)), b)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kC)), c)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + err = reader.EnterContainer(outer); + ReturnErrorOnFailure(err); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + case to_underlying(Fields::kA): + ReturnErrorOnFailure(DataModel::Decode(reader, a)); + break; + case to_underlying(Fields::kB): + ReturnErrorOnFailure(DataModel::Decode(reader, b)); + break; + case to_underlying(Fields::kC): + ReturnErrorOnFailure(DataModel::Decode(reader, c)); + break; + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + + return CHIP_NO_ERROR; +} + +} // namespace NestedStruct +namespace NestedStructList { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kA)), a)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kB)), b)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kC)), c)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kD)), d)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kE)), e)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kF)), f)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kG)), g)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + err = reader.EnterContainer(outer); + ReturnErrorOnFailure(err); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + case to_underlying(Fields::kA): + ReturnErrorOnFailure(DataModel::Decode(reader, a)); + break; + case to_underlying(Fields::kB): + ReturnErrorOnFailure(DataModel::Decode(reader, b)); + break; + case to_underlying(Fields::kC): + ReturnErrorOnFailure(DataModel::Decode(reader, c)); + break; + case to_underlying(Fields::kD): + ReturnErrorOnFailure(DataModel::Decode(reader, d)); + break; + case to_underlying(Fields::kE): + ReturnErrorOnFailure(DataModel::Decode(reader, e)); + break; + case to_underlying(Fields::kF): + ReturnErrorOnFailure(DataModel::Decode(reader, f)); + break; + case to_underlying(Fields::kG): + ReturnErrorOnFailure(DataModel::Decode(reader, g)); + break; + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + + return CHIP_NO_ERROR; +} + +} // namespace NestedStructList +namespace DoubleNestedStructList { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kA)), a)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + err = reader.EnterContainer(outer); + ReturnErrorOnFailure(err); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + case to_underlying(Fields::kA): + ReturnErrorOnFailure(DataModel::Decode(reader, a)); + break; + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + + return CHIP_NO_ERROR; +} + +} // namespace DoubleNestedStructList +namespace TestListStructOctet { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kFabricIndex)), fabricIndex)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOperationalCert)), operationalCert)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + err = reader.EnterContainer(outer); + ReturnErrorOnFailure(err); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + case to_underlying(Fields::kFabricIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, fabricIndex)); + break; + case to_underlying(Fields::kOperationalCert): + ReturnErrorOnFailure(DataModel::Decode(reader, operationalCert)); + break; + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + + return CHIP_NO_ERROR; +} + +} // namespace TestListStructOctet +} // namespace Structs + +namespace Commands { +namespace Test { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + ReturnErrorOnFailure(reader.EnterContainer(outer)); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + return CHIP_NO_ERROR; +} +} // namespace Test. +namespace TestSpecificResponse { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kReturnValue)), returnValue)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + ReturnErrorOnFailure(reader.EnterContainer(outer)); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + case to_underlying(Fields::kReturnValue): + ReturnErrorOnFailure(DataModel::Decode(reader, returnValue)); + break; + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + return CHIP_NO_ERROR; +} +} // namespace TestSpecificResponse. +namespace TestNotHandled { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + ReturnErrorOnFailure(reader.EnterContainer(outer)); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + return CHIP_NO_ERROR; +} +} // namespace TestNotHandled. +namespace TestAddArgumentsResponse { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kReturnValue)), returnValue)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + ReturnErrorOnFailure(reader.EnterContainer(outer)); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + case to_underlying(Fields::kReturnValue): + ReturnErrorOnFailure(DataModel::Decode(reader, returnValue)); + break; + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + return CHIP_NO_ERROR; +} +} // namespace TestAddArgumentsResponse. +namespace TestSpecific { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + ReturnErrorOnFailure(reader.EnterContainer(outer)); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + return CHIP_NO_ERROR; +} +} // namespace TestSpecific. +namespace TestSimpleArgumentResponse { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kReturnValue)), returnValue)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + ReturnErrorOnFailure(reader.EnterContainer(outer)); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + case to_underlying(Fields::kReturnValue): + ReturnErrorOnFailure(DataModel::Decode(reader, returnValue)); + break; + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + return CHIP_NO_ERROR; +} +} // namespace TestSimpleArgumentResponse. +namespace TestUnknownCommand { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + ReturnErrorOnFailure(reader.EnterContainer(outer)); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + return CHIP_NO_ERROR; +} +} // namespace TestUnknownCommand. +namespace TestStructArrayArgumentResponse { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg2)), arg2)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg3)), arg3)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg4)), arg4)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg5)), arg5)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg6)), arg6)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + ReturnErrorOnFailure(reader.EnterContainer(outer)); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); + break; + case to_underlying(Fields::kArg2): + ReturnErrorOnFailure(DataModel::Decode(reader, arg2)); + break; + case to_underlying(Fields::kArg3): + ReturnErrorOnFailure(DataModel::Decode(reader, arg3)); + break; + case to_underlying(Fields::kArg4): + ReturnErrorOnFailure(DataModel::Decode(reader, arg4)); + break; + case to_underlying(Fields::kArg5): + ReturnErrorOnFailure(DataModel::Decode(reader, arg5)); + break; + case to_underlying(Fields::kArg6): + ReturnErrorOnFailure(DataModel::Decode(reader, arg6)); + break; + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + return CHIP_NO_ERROR; +} +} // namespace TestStructArrayArgumentResponse. +namespace TestAddArguments { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg2)), arg2)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + ReturnErrorOnFailure(reader.EnterContainer(outer)); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); + break; + case to_underlying(Fields::kArg2): + ReturnErrorOnFailure(DataModel::Decode(reader, arg2)); + break; + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + return CHIP_NO_ERROR; +} +} // namespace TestAddArguments. +namespace TestListInt8UReverseResponse { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg2)), arg2)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg3)), arg3)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg4)), arg4)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg5)), arg5)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg6)), arg6)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -25279,21 +25445,6 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) case to_underlying(Fields::kArg1): ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); break; - case to_underlying(Fields::kArg2): - ReturnErrorOnFailure(DataModel::Decode(reader, arg2)); - break; - case to_underlying(Fields::kArg3): - ReturnErrorOnFailure(DataModel::Decode(reader, arg3)); - break; - case to_underlying(Fields::kArg4): - ReturnErrorOnFailure(DataModel::Decode(reader, arg4)); - break; - case to_underlying(Fields::kArg5): - ReturnErrorOnFailure(DataModel::Decode(reader, arg5)); - break; - case to_underlying(Fields::kArg6): - ReturnErrorOnFailure(DataModel::Decode(reader, arg6)); - break; default: break; } @@ -25303,8 +25454,8 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace TestEvent. -namespace TestFabricScopedEvent { +} // namespace TestListInt8UReverseResponse. +namespace TestSimpleArgumentRequest { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; @@ -25340,25 +25491,14 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace TestFabricScopedEvent. -} // namespace Events - -} // namespace TestCluster -namespace Messaging { - -namespace Commands { -namespace DisplayMessage { +} // namespace TestSimpleArgumentRequest. +namespace TestEnumsResponse { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageId)), messageId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageControl)), messageControl)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStartTime)), startTime)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kDurationInMinutes)), durationInMinutes)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessage)), message)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalExtendedMessageControl)), - optionalExtendedMessageControl)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg2)), arg2)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -25377,23 +25517,11 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kMessageId): - ReturnErrorOnFailure(DataModel::Decode(reader, messageId)); - break; - case to_underlying(Fields::kMessageControl): - ReturnErrorOnFailure(DataModel::Decode(reader, messageControl)); - break; - case to_underlying(Fields::kStartTime): - ReturnErrorOnFailure(DataModel::Decode(reader, startTime)); - break; - case to_underlying(Fields::kDurationInMinutes): - ReturnErrorOnFailure(DataModel::Decode(reader, durationInMinutes)); - break; - case to_underlying(Fields::kMessage): - ReturnErrorOnFailure(DataModel::Decode(reader, message)); + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); break; - case to_underlying(Fields::kOptionalExtendedMessageControl): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalExtendedMessageControl)); + case to_underlying(Fields::kArg2): + ReturnErrorOnFailure(DataModel::Decode(reader, arg2)); break; default: break; @@ -25404,12 +25532,18 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace DisplayMessage. -namespace GetLastMessage { +} // namespace TestEnumsResponse. +namespace TestStructArrayArgumentRequest { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg2)), arg2)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg3)), arg3)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg4)), arg4)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg5)), arg5)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg6)), arg6)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -25428,6 +25562,24 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); + break; + case to_underlying(Fields::kArg2): + ReturnErrorOnFailure(DataModel::Decode(reader, arg2)); + break; + case to_underlying(Fields::kArg3): + ReturnErrorOnFailure(DataModel::Decode(reader, arg3)); + break; + case to_underlying(Fields::kArg4): + ReturnErrorOnFailure(DataModel::Decode(reader, arg4)); + break; + case to_underlying(Fields::kArg5): + ReturnErrorOnFailure(DataModel::Decode(reader, arg5)); + break; + case to_underlying(Fields::kArg6): + ReturnErrorOnFailure(DataModel::Decode(reader, arg6)); + break; default: break; } @@ -25437,14 +25589,16 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace GetLastMessage. -namespace CancelMessage { +} // namespace TestStructArrayArgumentRequest. +namespace TestNullableOptionalResponse { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageId)), messageId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageControl)), messageControl)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kWasPresent)), wasPresent)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kWasNull)), wasNull)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kValue)), value)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOriginalValue)), originalValue)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -25463,11 +25617,17 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kMessageId): - ReturnErrorOnFailure(DataModel::Decode(reader, messageId)); + case to_underlying(Fields::kWasPresent): + ReturnErrorOnFailure(DataModel::Decode(reader, wasPresent)); break; - case to_underlying(Fields::kMessageControl): - ReturnErrorOnFailure(DataModel::Decode(reader, messageControl)); + case to_underlying(Fields::kWasNull): + ReturnErrorOnFailure(DataModel::Decode(reader, wasNull)); + break; + case to_underlying(Fields::kValue): + ReturnErrorOnFailure(DataModel::Decode(reader, value)); + break; + case to_underlying(Fields::kOriginalValue): + ReturnErrorOnFailure(DataModel::Decode(reader, originalValue)); break; default: break; @@ -25478,17 +25638,13 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace CancelMessage. -namespace MessageConfirmation { +} // namespace TestNullableOptionalResponse. +namespace TestStructArgumentRequest { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageId)), messageId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kConfirmationTime)), confirmationTime)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageConfirmationControl)), messageConfirmationControl)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageResponse)), messageResponse)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -25507,17 +25663,8 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kMessageId): - ReturnErrorOnFailure(DataModel::Decode(reader, messageId)); - break; - case to_underlying(Fields::kConfirmationTime): - ReturnErrorOnFailure(DataModel::Decode(reader, confirmationTime)); - break; - case to_underlying(Fields::kMessageConfirmationControl): - ReturnErrorOnFailure(DataModel::Decode(reader, messageConfirmationControl)); - break; - case to_underlying(Fields::kMessageResponse): - ReturnErrorOnFailure(DataModel::Decode(reader, messageResponse)); + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); break; default: break; @@ -25528,19 +25675,64 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace MessageConfirmation. -namespace DisplayProtectedMessage { +} // namespace TestStructArgumentRequest. +namespace TestComplexNullableOptionalResponse { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageId)), messageId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessageControl)), messageControl)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStartTime)), startTime)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kDurationInMinutes)), durationInMinutes)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMessage)), message)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalExtendedMessageControl)), - optionalExtendedMessageControl)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableIntWasNull)), nullableIntWasNull)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableIntValue)), nullableIntValue)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalIntWasPresent)), optionalIntWasPresent)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalIntValue)), optionalIntValue)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalIntWasPresent)), + nullableOptionalIntWasPresent)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalIntWasNull)), nullableOptionalIntWasNull)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalIntValue)), nullableOptionalIntValue)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableStringWasNull)), nullableStringWasNull)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableStringValue)), nullableStringValue)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalStringWasPresent)), optionalStringWasPresent)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalStringValue)), optionalStringValue)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalStringWasPresent)), + nullableOptionalStringWasPresent)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalStringWasNull)), + nullableOptionalStringWasNull)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalStringValue)), + nullableOptionalStringValue)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableStructWasNull)), nullableStructWasNull)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableStructValue)), nullableStructValue)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalStructWasPresent)), optionalStructWasPresent)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalStructValue)), optionalStructValue)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalStructWasPresent)), + nullableOptionalStructWasPresent)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalStructWasNull)), + nullableOptionalStructWasNull)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalStructValue)), + nullableOptionalStructValue)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableListWasNull)), nullableListWasNull)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableListValue)), nullableListValue)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalListWasPresent)), optionalListWasPresent)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalListValue)), optionalListValue)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalListWasPresent)), + nullableOptionalListWasPresent)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalListWasNull)), + nullableOptionalListWasNull)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalListValue)), nullableOptionalListValue)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -25559,23 +25751,89 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kMessageId): - ReturnErrorOnFailure(DataModel::Decode(reader, messageId)); + case to_underlying(Fields::kNullableIntWasNull): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableIntWasNull)); + break; + case to_underlying(Fields::kNullableIntValue): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableIntValue)); + break; + case to_underlying(Fields::kOptionalIntWasPresent): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalIntWasPresent)); + break; + case to_underlying(Fields::kOptionalIntValue): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalIntValue)); + break; + case to_underlying(Fields::kNullableOptionalIntWasPresent): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalIntWasPresent)); + break; + case to_underlying(Fields::kNullableOptionalIntWasNull): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalIntWasNull)); + break; + case to_underlying(Fields::kNullableOptionalIntValue): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalIntValue)); + break; + case to_underlying(Fields::kNullableStringWasNull): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableStringWasNull)); + break; + case to_underlying(Fields::kNullableStringValue): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableStringValue)); + break; + case to_underlying(Fields::kOptionalStringWasPresent): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalStringWasPresent)); + break; + case to_underlying(Fields::kOptionalStringValue): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalStringValue)); + break; + case to_underlying(Fields::kNullableOptionalStringWasPresent): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalStringWasPresent)); break; - case to_underlying(Fields::kMessageControl): - ReturnErrorOnFailure(DataModel::Decode(reader, messageControl)); + case to_underlying(Fields::kNullableOptionalStringWasNull): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalStringWasNull)); break; - case to_underlying(Fields::kStartTime): - ReturnErrorOnFailure(DataModel::Decode(reader, startTime)); + case to_underlying(Fields::kNullableOptionalStringValue): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalStringValue)); break; - case to_underlying(Fields::kDurationInMinutes): - ReturnErrorOnFailure(DataModel::Decode(reader, durationInMinutes)); + case to_underlying(Fields::kNullableStructWasNull): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableStructWasNull)); break; - case to_underlying(Fields::kMessage): - ReturnErrorOnFailure(DataModel::Decode(reader, message)); + case to_underlying(Fields::kNullableStructValue): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableStructValue)); break; - case to_underlying(Fields::kOptionalExtendedMessageControl): - ReturnErrorOnFailure(DataModel::Decode(reader, optionalExtendedMessageControl)); + case to_underlying(Fields::kOptionalStructWasPresent): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalStructWasPresent)); + break; + case to_underlying(Fields::kOptionalStructValue): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalStructValue)); + break; + case to_underlying(Fields::kNullableOptionalStructWasPresent): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalStructWasPresent)); + break; + case to_underlying(Fields::kNullableOptionalStructWasNull): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalStructWasNull)); + break; + case to_underlying(Fields::kNullableOptionalStructValue): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalStructValue)); + break; + case to_underlying(Fields::kNullableListWasNull): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableListWasNull)); + break; + case to_underlying(Fields::kNullableListValue): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableListValue)); + break; + case to_underlying(Fields::kOptionalListWasPresent): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalListWasPresent)); + break; + case to_underlying(Fields::kOptionalListValue): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalListValue)); + break; + case to_underlying(Fields::kNullableOptionalListWasPresent): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalListWasPresent)); + break; + case to_underlying(Fields::kNullableOptionalListWasNull): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalListWasNull)); + break; + case to_underlying(Fields::kNullableOptionalListValue): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalListValue)); break; default: break; @@ -25586,14 +25844,13 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace DisplayProtectedMessage. -namespace GetMessageCancellation { +} // namespace TestComplexNullableOptionalResponse. +namespace TestNestedStructArgumentRequest { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kEarliestImplementationTime)), earliestImplementationTime)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -25612,8 +25869,8 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kEarliestImplementationTime): - ReturnErrorOnFailure(DataModel::Decode(reader, earliestImplementationTime)); + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); break; default: break; @@ -25624,14 +25881,13 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace GetMessageCancellation. -namespace CancelAllMessages { +} // namespace TestNestedStructArgumentRequest. +namespace BooleanResponse { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kImplementationDateTime)), implementationDateTime)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kValue)), value)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -25649,208 +25905,26 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) continue; } switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kImplementationDateTime): - ReturnErrorOnFailure(DataModel::Decode(reader, implementationDateTime)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace CancelAllMessages. -} // namespace Commands - -namespace Attributes { -CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path) -{ - switch (path.mAttributeId) - { - case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, generatedCommandList)); - break; - case Attributes::AcceptedCommandList::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acceptedCommandList)); - break; - case Attributes::AttributeList::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, attributeList)); - break; - case Attributes::FeatureMap::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, featureMap)); - break; - case Attributes::ClusterRevision::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, clusterRevision)); - break; - default: - break; - } - - return CHIP_NO_ERROR; -} -} // namespace Attributes - -namespace Events { -} // namespace Events - -} // namespace Messaging -namespace ApplianceIdentification { - -namespace Commands { -} // namespace Commands - -namespace Attributes { -CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path) -{ - switch (path.mAttributeId) - { - case Attributes::BasicIdentification::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, basicIdentification)); - break; - case Attributes::CompanyName::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, companyName)); - break; - case Attributes::CompanyId::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, companyId)); - break; - case Attributes::BrandName::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, brandName)); - break; - case Attributes::BrandId::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, brandId)); - break; - case Attributes::Model::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, model)); - break; - case Attributes::PartNumber::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, partNumber)); - break; - case Attributes::ProductRevision::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, productRevision)); - break; - case Attributes::SoftwareRevision::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, softwareRevision)); - break; - case Attributes::ProductTypeName::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, productTypeName)); - break; - case Attributes::ProductTypeId::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, productTypeId)); - break; - case Attributes::CecedSpecificationVersion::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, cecedSpecificationVersion)); - break; - case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, generatedCommandList)); - break; - case Attributes::AcceptedCommandList::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acceptedCommandList)); - break; - case Attributes::AttributeList::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, attributeList)); - break; - case Attributes::FeatureMap::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, featureMap)); - break; - case Attributes::ClusterRevision::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, clusterRevision)); - break; - default: - break; - } - - return CHIP_NO_ERROR; -} -} // namespace Attributes - -namespace Events { -} // namespace Events - -} // namespace ApplianceIdentification -namespace MeterIdentification { - -namespace Commands { -} // namespace Commands - -namespace Attributes { -CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path) -{ - switch (path.mAttributeId) - { - case Attributes::CompanyName::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, companyName)); - break; - case Attributes::MeterTypeId::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, meterTypeId)); - break; - case Attributes::DataQualityId::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, dataQualityId)); - break; - case Attributes::CustomerName::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, customerName)); - break; - case Attributes::Model::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, model)); - break; - case Attributes::PartNumber::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, partNumber)); - break; - case Attributes::ProductRevision::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, productRevision)); - break; - case Attributes::SoftwareRevision::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, softwareRevision)); - break; - case Attributes::UtilityName::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, utilityName)); - break; - case Attributes::Pod::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, pod)); - break; - case Attributes::AvailablePower::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, availablePower)); - break; - case Attributes::PowerThreshold::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, powerThreshold)); - break; - case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, generatedCommandList)); - break; - case Attributes::AcceptedCommandList::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acceptedCommandList)); - break; - case Attributes::AttributeList::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, attributeList)); - break; - case Attributes::FeatureMap::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, featureMap)); - break; - case Attributes::ClusterRevision::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, clusterRevision)); - break; - default: - break; + { + case to_underlying(Fields::kValue): + ReturnErrorOnFailure(DataModel::Decode(reader, value)); + break; + default: + break; + } } + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace Attributes - -namespace Events { -} // namespace Events - -} // namespace MeterIdentification -namespace ApplianceEventsAndAlert { - -namespace Commands { -namespace GetAlerts { +} // namespace BooleanResponse. +namespace TestListStructArgumentRequest { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -25869,6 +25943,9 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); + break; default: break; } @@ -25878,14 +25955,13 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace GetAlerts. -namespace GetAlertsResponse { +} // namespace TestListStructArgumentRequest. +namespace SimpleStructResponse { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kAlertsCount)), alertsCount)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kAlertStructures)), alertStructures)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -25904,11 +25980,8 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kAlertsCount): - ReturnErrorOnFailure(DataModel::Decode(reader, alertsCount)); - break; - case to_underlying(Fields::kAlertStructures): - ReturnErrorOnFailure(DataModel::Decode(reader, alertStructures)); + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); break; default: break; @@ -25919,14 +25992,13 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace GetAlertsResponse. -namespace AlertsNotification { +} // namespace SimpleStructResponse. +namespace TestListInt8UArgumentRequest { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kAlertsCount)), alertsCount)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kAlertStructures)), alertStructures)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -25945,11 +26017,8 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kAlertsCount): - ReturnErrorOnFailure(DataModel::Decode(reader, alertsCount)); - break; - case to_underlying(Fields::kAlertStructures): - ReturnErrorOnFailure(DataModel::Decode(reader, alertStructures)); + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); break; default: break; @@ -25960,14 +26029,13 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace AlertsNotification. -namespace EventsNotification { +} // namespace TestListInt8UArgumentRequest. +namespace TestEmitTestEventResponse { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kEventHeader)), eventHeader)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kEventId)), eventId)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kValue)), value)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -25986,11 +26054,8 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kEventHeader): - ReturnErrorOnFailure(DataModel::Decode(reader, eventHeader)); - break; - case to_underlying(Fields::kEventId): - ReturnErrorOnFailure(DataModel::Decode(reader, eventId)); + case to_underlying(Fields::kValue): + ReturnErrorOnFailure(DataModel::Decode(reader, value)); break; default: break; @@ -26001,53 +26066,13 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace EventsNotification. -} // namespace Commands - -namespace Attributes { -CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path) -{ - switch (path.mAttributeId) - { - case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, generatedCommandList)); - break; - case Attributes::AcceptedCommandList::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acceptedCommandList)); - break; - case Attributes::AttributeList::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, attributeList)); - break; - case Attributes::FeatureMap::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, featureMap)); - break; - case Attributes::ClusterRevision::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, clusterRevision)); - break; - default: - break; - } - - return CHIP_NO_ERROR; -} -} // namespace Attributes - -namespace Events { -} // namespace Events - -} // namespace ApplianceEventsAndAlert -namespace ApplianceStatistics { - -namespace Commands { -namespace LogNotification { +} // namespace TestEmitTestEventResponse. +namespace TestNestedStructListArgumentRequest { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kTimeStamp)), timeStamp)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogId)), logId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogLength)), logLength)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogPayload)), logPayload)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -26066,17 +26091,8 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kTimeStamp): - ReturnErrorOnFailure(DataModel::Decode(reader, timeStamp)); - break; - case to_underlying(Fields::kLogId): - ReturnErrorOnFailure(DataModel::Decode(reader, logId)); - break; - case to_underlying(Fields::kLogLength): - ReturnErrorOnFailure(DataModel::Decode(reader, logLength)); - break; - case to_underlying(Fields::kLogPayload): - ReturnErrorOnFailure(DataModel::Decode(reader, logPayload)); + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); break; default: break; @@ -26087,13 +26103,13 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace LogNotification. -namespace LogRequest { +} // namespace TestNestedStructListArgumentRequest. +namespace TestEmitTestFabricScopedEventResponse { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogId)), logId)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kValue)), value)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -26112,8 +26128,8 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kLogId): - ReturnErrorOnFailure(DataModel::Decode(reader, logId)); + case to_underlying(Fields::kValue): + ReturnErrorOnFailure(DataModel::Decode(reader, value)); break; default: break; @@ -26124,16 +26140,13 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace LogRequest. -namespace LogResponse { +} // namespace TestEmitTestFabricScopedEventResponse. +namespace TestListNestedStructListArgumentRequest { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kTimeStamp)), timeStamp)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogId)), logId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogLength)), logLength)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogPayload)), logPayload)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -26152,17 +26165,8 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kTimeStamp): - ReturnErrorOnFailure(DataModel::Decode(reader, timeStamp)); - break; - case to_underlying(Fields::kLogId): - ReturnErrorOnFailure(DataModel::Decode(reader, logId)); - break; - case to_underlying(Fields::kLogLength): - ReturnErrorOnFailure(DataModel::Decode(reader, logLength)); - break; - case to_underlying(Fields::kLogPayload): - ReturnErrorOnFailure(DataModel::Decode(reader, logPayload)); + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); break; default: break; @@ -26173,12 +26177,13 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace LogResponse. -namespace LogQueueRequest { +} // namespace TestListNestedStructListArgumentRequest. +namespace TestListInt8UReverseRequest { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -26197,6 +26202,9 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); + break; default: break; } @@ -26206,14 +26214,14 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace LogQueueRequest. -namespace LogQueueResponse { +} // namespace TestListInt8UReverseRequest. +namespace TestEnumsRequest { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogQueueSize)), logQueueSize)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogIds)), logIds)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg2)), arg2)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -26232,11 +26240,11 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kLogQueueSize): - ReturnErrorOnFailure(DataModel::Decode(reader, logQueueSize)); + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); break; - case to_underlying(Fields::kLogIds): - ReturnErrorOnFailure(DataModel::Decode(reader, logIds)); + case to_underlying(Fields::kArg2): + ReturnErrorOnFailure(DataModel::Decode(reader, arg2)); break; default: break; @@ -26247,14 +26255,13 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace LogQueueResponse. -namespace StatisticsAvailable { +} // namespace TestEnumsRequest. +namespace TestNullableOptionalRequest { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogQueueSize)), logQueueSize)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogIds)), logIds)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -26273,11 +26280,8 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kLogQueueSize): - ReturnErrorOnFailure(DataModel::Decode(reader, logQueueSize)); - break; - case to_underlying(Fields::kLogIds): - ReturnErrorOnFailure(DataModel::Decode(reader, logIds)); + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); break; default: break; @@ -26288,61 +26292,28 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace StatisticsAvailable. -} // namespace Commands - -namespace Attributes { -CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path) -{ - switch (path.mAttributeId) - { - case Attributes::LogMaxSize::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, logMaxSize)); - break; - case Attributes::LogQueueMaxSize::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, logQueueMaxSize)); - break; - case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, generatedCommandList)); - break; - case Attributes::AcceptedCommandList::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acceptedCommandList)); - break; - case Attributes::AttributeList::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, attributeList)); - break; - case Attributes::FeatureMap::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, featureMap)); - break; - case Attributes::ClusterRevision::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, clusterRevision)); - break; - default: - break; - } - - return CHIP_NO_ERROR; -} -} // namespace Attributes - -namespace Events { -} // namespace Events - -} // namespace ApplianceStatistics -namespace ElectricalMeasurement { - -namespace Commands { -namespace GetProfileInfoResponseCommand { +} // namespace TestNullableOptionalRequest. +namespace TestComplexNullableOptionalRequest { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kProfileCount)), profileCount)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableInt)), nullableInt)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalInt)), optionalInt)); ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kProfileIntervalPeriod)), profileIntervalPeriod)); + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalInt)), nullableOptionalInt)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableString)), nullableString)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalString)), optionalString)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalString)), nullableOptionalString)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableStruct)), nullableStruct)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalStruct)), optionalStruct)); + ReturnErrorOnFailure( + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalStruct)), nullableOptionalStruct)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableList)), nullableList)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOptionalList)), optionalList)); ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kMaxNumberOfIntervals)), maxNumberOfIntervals)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kListOfAttributes)), listOfAttributes)); + DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNullableOptionalList)), nullableOptionalList)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -26361,17 +26332,41 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kProfileCount): - ReturnErrorOnFailure(DataModel::Decode(reader, profileCount)); + case to_underlying(Fields::kNullableInt): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt)); break; - case to_underlying(Fields::kProfileIntervalPeriod): - ReturnErrorOnFailure(DataModel::Decode(reader, profileIntervalPeriod)); + case to_underlying(Fields::kOptionalInt): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalInt)); break; - case to_underlying(Fields::kMaxNumberOfIntervals): - ReturnErrorOnFailure(DataModel::Decode(reader, maxNumberOfIntervals)); + case to_underlying(Fields::kNullableOptionalInt): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalInt)); break; - case to_underlying(Fields::kListOfAttributes): - ReturnErrorOnFailure(DataModel::Decode(reader, listOfAttributes)); + case to_underlying(Fields::kNullableString): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableString)); + break; + case to_underlying(Fields::kOptionalString): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalString)); + break; + case to_underlying(Fields::kNullableOptionalString): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalString)); + break; + case to_underlying(Fields::kNullableStruct): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableStruct)); + break; + case to_underlying(Fields::kOptionalStruct): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalStruct)); + break; + case to_underlying(Fields::kNullableOptionalStruct): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalStruct)); + break; + case to_underlying(Fields::kNullableList): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableList)); + break; + case to_underlying(Fields::kOptionalList): + ReturnErrorOnFailure(DataModel::Decode(reader, optionalList)); + break; + case to_underlying(Fields::kNullableOptionalList): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOptionalList)); break; default: break; @@ -26382,12 +26377,13 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace GetProfileInfoResponseCommand. -namespace GetProfileInfoCommand { +} // namespace TestComplexNullableOptionalRequest. +namespace SimpleStructEchoRequest { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -26406,6 +26402,9 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); + break; default: break; } @@ -26415,20 +26414,12 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace GetProfileInfoCommand. -namespace GetMeasurementProfileResponseCommand { +} // namespace SimpleStructEchoRequest. +namespace TimedInvokeRequest { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStartTime)), startTime)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStatus)), status)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kProfileIntervalPeriod)), profileIntervalPeriod)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNumberOfIntervalsDelivered)), numberOfIntervalsDelivered)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kAttributeId)), attributeId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kIntervals)), intervals)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -26447,24 +26438,6 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kStartTime): - ReturnErrorOnFailure(DataModel::Decode(reader, startTime)); - break; - case to_underlying(Fields::kStatus): - ReturnErrorOnFailure(DataModel::Decode(reader, status)); - break; - case to_underlying(Fields::kProfileIntervalPeriod): - ReturnErrorOnFailure(DataModel::Decode(reader, profileIntervalPeriod)); - break; - case to_underlying(Fields::kNumberOfIntervalsDelivered): - ReturnErrorOnFailure(DataModel::Decode(reader, numberOfIntervalsDelivered)); - break; - case to_underlying(Fields::kAttributeId): - ReturnErrorOnFailure(DataModel::Decode(reader, attributeId)); - break; - case to_underlying(Fields::kIntervals): - ReturnErrorOnFailure(DataModel::Decode(reader, intervals)); - break; default: break; } @@ -26474,15 +26447,13 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace GetMeasurementProfileResponseCommand. -namespace GetMeasurementProfileCommand { +} // namespace TimedInvokeRequest. +namespace TestSimpleOptionalArgumentRequest { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kAttributeId)), attributeId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStartTime)), startTime)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kNumberOfIntervals)), numberOfIntervals)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -26501,415 +26472,350 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kAttributeId): - ReturnErrorOnFailure(DataModel::Decode(reader, attributeId)); - break; - case to_underlying(Fields::kStartTime): - ReturnErrorOnFailure(DataModel::Decode(reader, startTime)); - break; - case to_underlying(Fields::kNumberOfIntervals): - ReturnErrorOnFailure(DataModel::Decode(reader, numberOfIntervals)); + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); break; default: break; } } - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace GetMeasurementProfileCommand. -} // namespace Commands - -namespace Attributes { -CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path) -{ - switch (path.mAttributeId) - { - case Attributes::MeasurementType::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, measurementType)); - break; - case Attributes::DcVoltage::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, dcVoltage)); - break; - case Attributes::DcVoltageMin::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, dcVoltageMin)); - break; - case Attributes::DcVoltageMax::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, dcVoltageMax)); - break; - case Attributes::DcCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, dcCurrent)); - break; - case Attributes::DcCurrentMin::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, dcCurrentMin)); - break; - case Attributes::DcCurrentMax::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, dcCurrentMax)); - break; - case Attributes::DcPower::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, dcPower)); - break; - case Attributes::DcPowerMin::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, dcPowerMin)); - break; - case Attributes::DcPowerMax::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, dcPowerMax)); - break; - case Attributes::DcVoltageMultiplier::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, dcVoltageMultiplier)); - break; - case Attributes::DcVoltageDivisor::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, dcVoltageDivisor)); - break; - case Attributes::DcCurrentMultiplier::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, dcCurrentMultiplier)); - break; - case Attributes::DcCurrentDivisor::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, dcCurrentDivisor)); - break; - case Attributes::DcPowerMultiplier::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, dcPowerMultiplier)); - break; - case Attributes::DcPowerDivisor::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, dcPowerDivisor)); - break; - case Attributes::AcFrequency::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acFrequency)); - break; - case Attributes::AcFrequencyMin::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acFrequencyMin)); - break; - case Attributes::AcFrequencyMax::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acFrequencyMax)); - break; - case Attributes::NeutralCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, neutralCurrent)); - break; - case Attributes::TotalActivePower::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, totalActivePower)); - break; - case Attributes::TotalReactivePower::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, totalReactivePower)); - break; - case Attributes::TotalApparentPower::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, totalApparentPower)); - break; - case Attributes::Measured1stHarmonicCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, measured1stHarmonicCurrent)); - break; - case Attributes::Measured3rdHarmonicCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, measured3rdHarmonicCurrent)); - break; - case Attributes::Measured5thHarmonicCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, measured5thHarmonicCurrent)); - break; - case Attributes::Measured7thHarmonicCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, measured7thHarmonicCurrent)); - break; - case Attributes::Measured9thHarmonicCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, measured9thHarmonicCurrent)); - break; - case Attributes::Measured11thHarmonicCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, measured11thHarmonicCurrent)); - break; - case Attributes::MeasuredPhase1stHarmonicCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, measuredPhase1stHarmonicCurrent)); - break; - case Attributes::MeasuredPhase3rdHarmonicCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, measuredPhase3rdHarmonicCurrent)); - break; - case Attributes::MeasuredPhase5thHarmonicCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, measuredPhase5thHarmonicCurrent)); - break; - case Attributes::MeasuredPhase7thHarmonicCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, measuredPhase7thHarmonicCurrent)); - break; - case Attributes::MeasuredPhase9thHarmonicCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, measuredPhase9thHarmonicCurrent)); - break; - case Attributes::MeasuredPhase11thHarmonicCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, measuredPhase11thHarmonicCurrent)); - break; - case Attributes::AcFrequencyMultiplier::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acFrequencyMultiplier)); - break; - case Attributes::AcFrequencyDivisor::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acFrequencyDivisor)); - break; - case Attributes::PowerMultiplier::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, powerMultiplier)); - break; - case Attributes::PowerDivisor::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, powerDivisor)); - break; - case Attributes::HarmonicCurrentMultiplier::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, harmonicCurrentMultiplier)); - break; - case Attributes::PhaseHarmonicCurrentMultiplier::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, phaseHarmonicCurrentMultiplier)); - break; - case Attributes::InstantaneousVoltage::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, instantaneousVoltage)); - break; - case Attributes::InstantaneousLineCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, instantaneousLineCurrent)); - break; - case Attributes::InstantaneousActiveCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, instantaneousActiveCurrent)); - break; - case Attributes::InstantaneousReactiveCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, instantaneousReactiveCurrent)); - break; - case Attributes::InstantaneousPower::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, instantaneousPower)); - break; - case Attributes::RmsVoltage::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltage)); - break; - case Attributes::RmsVoltageMin::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageMin)); + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + return CHIP_NO_ERROR; +} +} // namespace TestSimpleOptionalArgumentRequest. +namespace TestEmitTestEventRequest { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg2)), arg2)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg3)), arg3)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + ReturnErrorOnFailure(reader.EnterContainer(outer)); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); + break; + case to_underlying(Fields::kArg2): + ReturnErrorOnFailure(DataModel::Decode(reader, arg2)); + break; + case to_underlying(Fields::kArg3): + ReturnErrorOnFailure(DataModel::Decode(reader, arg3)); + break; + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + return CHIP_NO_ERROR; +} +} // namespace TestEmitTestEventRequest. +namespace TestEmitTestFabricScopedEventRequest { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + ReturnErrorOnFailure(reader.EnterContainer(outer)); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); + break; + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + return CHIP_NO_ERROR; +} +} // namespace TestEmitTestFabricScopedEventRequest. +} // namespace Commands + +namespace Attributes { +CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path) +{ + switch (path.mAttributeId) + { + case Attributes::Boolean::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, boolean)); break; - case Attributes::RmsVoltageMax::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageMax)); + case Attributes::Bitmap8::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, bitmap8)); break; - case Attributes::RmsCurrent::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrent)); + case Attributes::Bitmap16::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, bitmap16)); break; - case Attributes::RmsCurrentMin::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrentMin)); + case Attributes::Bitmap32::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, bitmap32)); break; - case Attributes::RmsCurrentMax::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrentMax)); + case Attributes::Bitmap64::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, bitmap64)); break; - case Attributes::ActivePower::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, activePower)); + case Attributes::Int8u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, int8u)); break; - case Attributes::ActivePowerMin::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, activePowerMin)); + case Attributes::Int16u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, int16u)); break; - case Attributes::ActivePowerMax::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, activePowerMax)); + case Attributes::Int24u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, int24u)); break; - case Attributes::ReactivePower::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, reactivePower)); + case Attributes::Int32u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, int32u)); break; - case Attributes::ApparentPower::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, apparentPower)); + case Attributes::Int40u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, int40u)); break; - case Attributes::PowerFactor::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, powerFactor)); + case Attributes::Int48u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, int48u)); break; - case Attributes::AverageRmsVoltageMeasurementPeriod::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsVoltageMeasurementPeriod)); + case Attributes::Int56u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, int56u)); break; - case Attributes::AverageRmsUnderVoltageCounter::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsUnderVoltageCounter)); + case Attributes::Int64u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, int64u)); break; - case Attributes::RmsExtremeOverVoltagePeriod::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsExtremeOverVoltagePeriod)); + case Attributes::Int8s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, int8s)); break; - case Attributes::RmsExtremeUnderVoltagePeriod::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsExtremeUnderVoltagePeriod)); + case Attributes::Int16s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, int16s)); break; - case Attributes::RmsVoltageSagPeriod::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageSagPeriod)); + case Attributes::Int24s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, int24s)); break; - case Attributes::RmsVoltageSwellPeriod::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageSwellPeriod)); + case Attributes::Int32s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, int32s)); break; - case Attributes::AcVoltageMultiplier::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acVoltageMultiplier)); + case Attributes::Int40s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, int40s)); break; - case Attributes::AcVoltageDivisor::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acVoltageDivisor)); + case Attributes::Int48s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, int48s)); break; - case Attributes::AcCurrentMultiplier::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acCurrentMultiplier)); + case Attributes::Int56s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, int56s)); break; - case Attributes::AcCurrentDivisor::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acCurrentDivisor)); + case Attributes::Int64s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, int64s)); break; - case Attributes::AcPowerMultiplier::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acPowerMultiplier)); + case Attributes::Enum8::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, enum8)); break; - case Attributes::AcPowerDivisor::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acPowerDivisor)); + case Attributes::Enum16::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, enum16)); break; - case Attributes::OverloadAlarmsMask::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, overloadAlarmsMask)); + case Attributes::FloatSingle::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, floatSingle)); break; - case Attributes::VoltageOverload::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, voltageOverload)); + case Attributes::FloatDouble::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, floatDouble)); break; - case Attributes::CurrentOverload::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, currentOverload)); + case Attributes::OctetString::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, octetString)); break; - case Attributes::AcOverloadAlarmsMask::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acOverloadAlarmsMask)); + case Attributes::ListInt8u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, listInt8u)); break; - case Attributes::AcVoltageOverload::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acVoltageOverload)); + case Attributes::ListOctetString::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, listOctetString)); break; - case Attributes::AcCurrentOverload::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acCurrentOverload)); + case Attributes::ListStructOctetString::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, listStructOctetString)); break; - case Attributes::AcActivePowerOverload::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acActivePowerOverload)); + case Attributes::LongOctetString::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, longOctetString)); break; - case Attributes::AcReactivePowerOverload::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, acReactivePowerOverload)); + case Attributes::CharString::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, charString)); break; - case Attributes::AverageRmsOverVoltage::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsOverVoltage)); + case Attributes::LongCharString::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, longCharString)); break; - case Attributes::AverageRmsUnderVoltage::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsUnderVoltage)); + case Attributes::EpochUs::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, epochUs)); break; - case Attributes::RmsExtremeOverVoltage::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsExtremeOverVoltage)); + case Attributes::EpochS::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, epochS)); break; - case Attributes::RmsExtremeUnderVoltage::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsExtremeUnderVoltage)); + case Attributes::VendorId::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, vendorId)); break; - case Attributes::RmsVoltageSag::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageSag)); + case Attributes::ListNullablesAndOptionalsStruct::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, listNullablesAndOptionalsStruct)); break; - case Attributes::RmsVoltageSwell::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageSwell)); + case Attributes::EnumAttr::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, enumAttr)); break; - case Attributes::LineCurrentPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, lineCurrentPhaseB)); + case Attributes::StructAttr::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, structAttr)); break; - case Attributes::ActiveCurrentPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, activeCurrentPhaseB)); + case Attributes::RangeRestrictedInt8u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rangeRestrictedInt8u)); break; - case Attributes::ReactiveCurrentPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, reactiveCurrentPhaseB)); + case Attributes::RangeRestrictedInt8s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rangeRestrictedInt8s)); break; - case Attributes::RmsVoltagePhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltagePhaseB)); + case Attributes::RangeRestrictedInt16u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rangeRestrictedInt16u)); break; - case Attributes::RmsVoltageMinPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageMinPhaseB)); + case Attributes::RangeRestrictedInt16s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, rangeRestrictedInt16s)); break; - case Attributes::RmsVoltageMaxPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageMaxPhaseB)); + case Attributes::ListLongOctetString::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, listLongOctetString)); break; - case Attributes::RmsCurrentPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrentPhaseB)); + case Attributes::ListFabricScoped::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, listFabricScoped)); break; - case Attributes::RmsCurrentMinPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrentMinPhaseB)); + case Attributes::TimedWriteBoolean::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, timedWriteBoolean)); break; - case Attributes::RmsCurrentMaxPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrentMaxPhaseB)); + case Attributes::GeneralErrorBoolean::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, generalErrorBoolean)); break; - case Attributes::ActivePowerPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, activePowerPhaseB)); + case Attributes::ClusterErrorBoolean::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, clusterErrorBoolean)); break; - case Attributes::ActivePowerMinPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, activePowerMinPhaseB)); + case Attributes::Unsupported::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, unsupported)); break; - case Attributes::ActivePowerMaxPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, activePowerMaxPhaseB)); + case Attributes::NullableBoolean::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableBoolean)); break; - case Attributes::ReactivePowerPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, reactivePowerPhaseB)); + case Attributes::NullableBitmap8::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableBitmap8)); break; - case Attributes::ApparentPowerPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, apparentPowerPhaseB)); + case Attributes::NullableBitmap16::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableBitmap16)); break; - case Attributes::PowerFactorPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, powerFactorPhaseB)); + case Attributes::NullableBitmap32::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableBitmap32)); break; - case Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsVoltageMeasurementPeriodPhaseB)); + case Attributes::NullableBitmap64::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableBitmap64)); break; - case Attributes::AverageRmsOverVoltageCounterPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsOverVoltageCounterPhaseB)); + case Attributes::NullableInt8u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt8u)); break; - case Attributes::AverageRmsUnderVoltageCounterPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsUnderVoltageCounterPhaseB)); + case Attributes::NullableInt16u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt16u)); break; - case Attributes::RmsExtremeOverVoltagePeriodPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsExtremeOverVoltagePeriodPhaseB)); + case Attributes::NullableInt24u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt24u)); break; - case Attributes::RmsExtremeUnderVoltagePeriodPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsExtremeUnderVoltagePeriodPhaseB)); + case Attributes::NullableInt32u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt32u)); break; - case Attributes::RmsVoltageSagPeriodPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageSagPeriodPhaseB)); + case Attributes::NullableInt40u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt40u)); break; - case Attributes::RmsVoltageSwellPeriodPhaseB::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageSwellPeriodPhaseB)); + case Attributes::NullableInt48u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt48u)); break; - case Attributes::LineCurrentPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, lineCurrentPhaseC)); + case Attributes::NullableInt56u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt56u)); break; - case Attributes::ActiveCurrentPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, activeCurrentPhaseC)); + case Attributes::NullableInt64u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt64u)); break; - case Attributes::ReactiveCurrentPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, reactiveCurrentPhaseC)); + case Attributes::NullableInt8s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt8s)); break; - case Attributes::RmsVoltagePhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltagePhaseC)); + case Attributes::NullableInt16s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt16s)); break; - case Attributes::RmsVoltageMinPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageMinPhaseC)); + case Attributes::NullableInt24s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt24s)); break; - case Attributes::RmsVoltageMaxPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageMaxPhaseC)); + case Attributes::NullableInt32s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt32s)); break; - case Attributes::RmsCurrentPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrentPhaseC)); + case Attributes::NullableInt40s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt40s)); break; - case Attributes::RmsCurrentMinPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrentMinPhaseC)); + case Attributes::NullableInt48s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt48s)); break; - case Attributes::RmsCurrentMaxPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsCurrentMaxPhaseC)); + case Attributes::NullableInt56s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt56s)); break; - case Attributes::ActivePowerPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, activePowerPhaseC)); + case Attributes::NullableInt64s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableInt64s)); break; - case Attributes::ActivePowerMinPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, activePowerMinPhaseC)); + case Attributes::NullableEnum8::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableEnum8)); break; - case Attributes::ActivePowerMaxPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, activePowerMaxPhaseC)); + case Attributes::NullableEnum16::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableEnum16)); break; - case Attributes::ReactivePowerPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, reactivePowerPhaseC)); + case Attributes::NullableFloatSingle::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableFloatSingle)); break; - case Attributes::ApparentPowerPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, apparentPowerPhaseC)); + case Attributes::NullableFloatDouble::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableFloatDouble)); break; - case Attributes::PowerFactorPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, powerFactorPhaseC)); + case Attributes::NullableOctetString::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableOctetString)); break; - case Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsVoltageMeasurementPeriodPhaseC)); + case Attributes::NullableCharString::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableCharString)); break; - case Attributes::AverageRmsOverVoltageCounterPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsOverVoltageCounterPhaseC)); + case Attributes::NullableEnumAttr::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableEnumAttr)); break; - case Attributes::AverageRmsUnderVoltageCounterPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, averageRmsUnderVoltageCounterPhaseC)); + case Attributes::NullableStruct::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableStruct)); break; - case Attributes::RmsExtremeOverVoltagePeriodPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsExtremeOverVoltagePeriodPhaseC)); + case Attributes::NullableRangeRestrictedInt8u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableRangeRestrictedInt8u)); break; - case Attributes::RmsExtremeUnderVoltagePeriodPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsExtremeUnderVoltagePeriodPhaseC)); + case Attributes::NullableRangeRestrictedInt8s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableRangeRestrictedInt8s)); break; - case Attributes::RmsVoltageSagPeriodPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageSagPeriodPhaseC)); + case Attributes::NullableRangeRestrictedInt16u::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableRangeRestrictedInt16u)); break; - case Attributes::RmsVoltageSwellPeriodPhaseC::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, rmsVoltageSwellPeriodPhaseC)); + case Attributes::NullableRangeRestrictedInt16s::TypeInfo::GetAttributeId(): + ReturnErrorOnFailure(DataModel::Decode(reader, nullableRangeRestrictedInt16s)); break; case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId(): ReturnErrorOnFailure(DataModel::Decode(reader, generatedCommandList)); @@ -26935,9 +26841,103 @@ CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const Concre } // namespace Attributes namespace Events { +namespace TestEvent { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg2)), arg2)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg3)), arg3)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg4)), arg4)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg5)), arg5)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg6)), arg6)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + ReturnErrorOnFailure(reader.EnterContainer(outer)); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); + break; + case to_underlying(Fields::kArg2): + ReturnErrorOnFailure(DataModel::Decode(reader, arg2)); + break; + case to_underlying(Fields::kArg3): + ReturnErrorOnFailure(DataModel::Decode(reader, arg3)); + break; + case to_underlying(Fields::kArg4): + ReturnErrorOnFailure(DataModel::Decode(reader, arg4)); + break; + case to_underlying(Fields::kArg5): + ReturnErrorOnFailure(DataModel::Decode(reader, arg5)); + break; + case to_underlying(Fields::kArg6): + ReturnErrorOnFailure(DataModel::Decode(reader, arg6)); + break; + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + return CHIP_NO_ERROR; +} +} // namespace TestEvent. +namespace TestFabricScopedEvent { +CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const +{ + TLV::TLVType outer; + ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kArg1)), arg1)); + ReturnErrorOnFailure(writer.EndContainer(outer)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVType outer; + VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); + ReturnErrorOnFailure(reader.EnterContainer(outer)); + while ((err = reader.Next()) == CHIP_NO_ERROR) + { + if (!TLV::IsContextTag(reader.GetTag())) + { + continue; + } + switch (TLV::TagNumFromTag(reader.GetTag())) + { + case to_underlying(Fields::kArg1): + ReturnErrorOnFailure(DataModel::Decode(reader, arg1)); + break; + default: + break; + } + } + + VerifyOrReturnError(err == CHIP_END_OF_TLV, err); + ReturnErrorOnFailure(reader.ExitContainer(outer)); + return CHIP_NO_ERROR; +} +} // namespace TestFabricScopedEvent. } // namespace Events -} // namespace ElectricalMeasurement +} // namespace TestCluster } // namespace Clusters diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h index 68343842a54cec..1cf83a9cebcfa3 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h @@ -31093,769 +31093,841 @@ struct TypeInfo }; } // namespace Attributes } // namespace AccountLogin -namespace TestCluster { -namespace Structs { -namespace SimpleStruct { -enum class Fields -{ - kA = 0, - kB = 1, - kC = 2, - kD = 3, - kE = 4, - kF = 5, - kG = 6, - kH = 7, -}; +namespace Messaging { -struct Type -{ -public: - uint8_t a = static_cast(0); - bool b = static_cast(0); - SimpleEnum c = static_cast(0); - chip::ByteSpan d; - chip::CharSpan e; - chip::BitMask f = static_cast>(0); - float g = static_cast(0); - double h = static_cast(0); +namespace Commands { +// Forward-declarations so we can reference these later. - CHIP_ERROR Decode(TLV::TLVReader & reader); +namespace DisplayMessage { +struct Type; +struct DecodableType; +} // namespace DisplayMessage - static constexpr bool kIsFabricScoped = false; +namespace GetLastMessage { +struct Type; +struct DecodableType; +} // namespace GetLastMessage - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; -}; +namespace CancelMessage { +struct Type; +struct DecodableType; +} // namespace CancelMessage -using DecodableType = Type; +namespace MessageConfirmation { +struct Type; +struct DecodableType; +} // namespace MessageConfirmation -} // namespace SimpleStruct -namespace TestFabricScoped { +namespace DisplayProtectedMessage { +struct Type; +struct DecodableType; +} // namespace DisplayProtectedMessage + +namespace GetMessageCancellation { +struct Type; +struct DecodableType; +} // namespace GetMessageCancellation + +namespace CancelAllMessages { +struct Type; +struct DecodableType; +} // namespace CancelAllMessages + +} // namespace Commands + +namespace Commands { +namespace DisplayMessage { enum class Fields { - kFabricSensitiveInt8u = 1, - kOptionalFabricSensitiveInt8u = 2, - kNullableFabricSensitiveInt8u = 3, - kNullableOptionalFabricSensitiveInt8u = 4, - kFabricSensitiveCharString = 5, - kFabricSensitiveStruct = 6, - kFabricSensitiveInt8uList = 7, - kFabricIndex = 254, + kMessageId = 0, + kMessageControl = 1, + kStartTime = 2, + kDurationInMinutes = 3, + kMessage = 4, + kOptionalExtendedMessageControl = 5, }; struct Type { public: - uint8_t fabricSensitiveInt8u = static_cast(0); - Optional optionalFabricSensitiveInt8u; - DataModel::Nullable nullableFabricSensitiveInt8u; - Optional> nullableOptionalFabricSensitiveInt8u; - chip::CharSpan fabricSensitiveCharString; - Structs::SimpleStruct::Type fabricSensitiveStruct; - DataModel::List fabricSensitiveInt8uList; - chip::FabricIndex fabricIndex = static_cast(0); - - static constexpr bool kIsFabricScoped = true; + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::DisplayMessage::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - auto GetFabricIndex() const { return fabricIndex; } + uint32_t messageId = static_cast(0); + chip::BitMask messageControl = static_cast>(0); + uint32_t startTime = static_cast(0); + uint16_t durationInMinutes = static_cast(0); + chip::CharSpan message; + chip::BitMask optionalExtendedMessageControl = + static_cast>(0); - void SetFabricIndex(chip::FabricIndex fabricIndex_) { fabricIndex = fabricIndex_; } + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - CHIP_ERROR EncodeForWrite(TLV::TLVWriter & writer, TLV::Tag tag) const; - CHIP_ERROR EncodeForRead(TLV::TLVWriter & writer, TLV::Tag tag, FabricIndex accessingFabricIndex) const; + using ResponseType = DataModel::NullObjectType; -private: - CHIP_ERROR DoEncode(TLV::TLVWriter & writer, TLV::Tag tag, const Optional & accessingFabricIndex) const; + static constexpr bool MustUseTimedInvoke() { return false; } }; struct DecodableType { public: - uint8_t fabricSensitiveInt8u = static_cast(0); - Optional optionalFabricSensitiveInt8u; - DataModel::Nullable nullableFabricSensitiveInt8u; - Optional> nullableOptionalFabricSensitiveInt8u; - chip::CharSpan fabricSensitiveCharString; - Structs::SimpleStruct::DecodableType fabricSensitiveStruct; - DataModel::DecodableList fabricSensitiveInt8uList; - chip::FabricIndex fabricIndex = static_cast(0); + static constexpr CommandId GetCommandId() { return Commands::DisplayMessage::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } + uint32_t messageId = static_cast(0); + chip::BitMask messageControl = static_cast>(0); + uint32_t startTime = static_cast(0); + uint16_t durationInMinutes = static_cast(0); + chip::CharSpan message; + chip::BitMask optionalExtendedMessageControl = + static_cast>(0); CHIP_ERROR Decode(TLV::TLVReader & reader); - - static constexpr bool kIsFabricScoped = true; - - auto GetFabricIndex() const { return fabricIndex; } - - void SetFabricIndex(chip::FabricIndex fabricIndex_) { fabricIndex = fabricIndex_; } }; - -} // namespace TestFabricScoped -namespace NullablesAndOptionalsStruct { +}; // namespace DisplayMessage +namespace GetLastMessage { enum class Fields { - kNullableInt = 0, - kOptionalInt = 1, - kNullableOptionalInt = 2, - kNullableString = 3, - kOptionalString = 4, - kNullableOptionalString = 5, - kNullableStruct = 6, - kOptionalStruct = 7, - kNullableOptionalStruct = 8, - kNullableList = 9, - kOptionalList = 10, - kNullableOptionalList = 11, }; struct Type { public: - DataModel::Nullable nullableInt; - Optional optionalInt; - Optional> nullableOptionalInt; - DataModel::Nullable nullableString; - Optional optionalString; - Optional> nullableOptionalString; - DataModel::Nullable nullableStruct; - Optional optionalStruct; - Optional> nullableOptionalStruct; - DataModel::Nullable> nullableList; - Optional> optionalList; - Optional>> nullableOptionalList; - - static constexpr bool kIsFabricScoped = false; + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::GetLastMessage::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; struct DecodableType { public: - DataModel::Nullable nullableInt; - Optional optionalInt; - Optional> nullableOptionalInt; - DataModel::Nullable nullableString; - Optional optionalString; - Optional> nullableOptionalString; - DataModel::Nullable nullableStruct; - Optional optionalStruct; - Optional> nullableOptionalStruct; - DataModel::Nullable> nullableList; - Optional> optionalList; - Optional>> nullableOptionalList; + static constexpr CommandId GetCommandId() { return Commands::GetLastMessage::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } CHIP_ERROR Decode(TLV::TLVReader & reader); - - static constexpr bool kIsFabricScoped = false; }; - -} // namespace NullablesAndOptionalsStruct -namespace NestedStruct { +}; // namespace GetLastMessage +namespace CancelMessage { enum class Fields { - kA = 0, - kB = 1, - kC = 2, + kMessageId = 0, + kMessageControl = 1, }; struct Type { public: - uint8_t a = static_cast(0); - bool b = static_cast(0); - Structs::SimpleStruct::Type c; - - CHIP_ERROR Decode(TLV::TLVReader & reader); + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::CancelMessage::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - static constexpr bool kIsFabricScoped = false; + uint32_t messageId = static_cast(0); + chip::BitMask messageControl = static_cast>(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -using DecodableType = Type; +struct DecodableType +{ +public: + static constexpr CommandId GetCommandId() { return Commands::CancelMessage::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } -} // namespace NestedStruct -namespace NestedStructList { + uint32_t messageId = static_cast(0); + chip::BitMask messageControl = static_cast>(0); + CHIP_ERROR Decode(TLV::TLVReader & reader); +}; +}; // namespace CancelMessage +namespace MessageConfirmation { enum class Fields { - kA = 0, - kB = 1, - kC = 2, - kD = 3, - kE = 4, - kF = 5, - kG = 6, + kMessageId = 0, + kConfirmationTime = 1, + kMessageConfirmationControl = 2, + kMessageResponse = 3, }; struct Type { public: - uint8_t a = static_cast(0); - bool b = static_cast(0); - Structs::SimpleStruct::Type c; - DataModel::List d; - DataModel::List e; - DataModel::List f; - DataModel::List g; + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::MessageConfirmation::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - static constexpr bool kIsFabricScoped = false; + uint32_t messageId = static_cast(0); + uint32_t confirmationTime = static_cast(0); + uint8_t messageConfirmationControl = static_cast(0); + chip::ByteSpan messageResponse; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; -}; + + using ResponseType = DataModel::NullObjectType; + + static constexpr bool MustUseTimedInvoke() { return false; } +}; struct DecodableType { public: - uint8_t a = static_cast(0); - bool b = static_cast(0); - Structs::SimpleStruct::DecodableType c; - DataModel::DecodableList d; - DataModel::DecodableList e; - DataModel::DecodableList f; - DataModel::DecodableList g; + static constexpr CommandId GetCommandId() { return Commands::MessageConfirmation::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } + uint32_t messageId = static_cast(0); + uint32_t confirmationTime = static_cast(0); + uint8_t messageConfirmationControl = static_cast(0); + chip::ByteSpan messageResponse; CHIP_ERROR Decode(TLV::TLVReader & reader); - - static constexpr bool kIsFabricScoped = false; }; - -} // namespace NestedStructList -namespace DoubleNestedStructList { +}; // namespace MessageConfirmation +namespace DisplayProtectedMessage { enum class Fields { - kA = 0, + kMessageId = 0, + kMessageControl = 1, + kStartTime = 2, + kDurationInMinutes = 3, + kMessage = 4, + kOptionalExtendedMessageControl = 5, }; struct Type { public: - DataModel::List a; + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::DisplayProtectedMessage::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - static constexpr bool kIsFabricScoped = false; + uint32_t messageId = static_cast(0); + chip::BitMask messageControl = static_cast>(0); + uint32_t startTime = static_cast(0); + uint16_t durationInMinutes = static_cast(0); + chip::CharSpan message; + chip::BitMask optionalExtendedMessageControl = + static_cast>(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; struct DecodableType { public: - DataModel::DecodableList a; + static constexpr CommandId GetCommandId() { return Commands::DisplayProtectedMessage::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } + uint32_t messageId = static_cast(0); + chip::BitMask messageControl = static_cast>(0); + uint32_t startTime = static_cast(0); + uint16_t durationInMinutes = static_cast(0); + chip::CharSpan message; + chip::BitMask optionalExtendedMessageControl = + static_cast>(0); CHIP_ERROR Decode(TLV::TLVReader & reader); - - static constexpr bool kIsFabricScoped = false; }; - -} // namespace DoubleNestedStructList -namespace TestListStructOctet { +}; // namespace DisplayProtectedMessage +namespace GetMessageCancellation { enum class Fields { - kFabricIndex = 0, - kOperationalCert = 1, + kEarliestImplementationTime = 0, }; struct Type { public: - uint64_t fabricIndex = static_cast(0); - chip::ByteSpan operationalCert; - - CHIP_ERROR Decode(TLV::TLVReader & reader); + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::GetMessageCancellation::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - static constexpr bool kIsFabricScoped = false; + uint32_t earliestImplementationTime = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; -}; - -using DecodableType = Type; -} // namespace TestListStructOctet -} // namespace Structs + using ResponseType = DataModel::NullObjectType; -namespace Commands { -// Forward-declarations so we can reference these later. + static constexpr bool MustUseTimedInvoke() { return false; } +}; -namespace Test { -struct Type; -struct DecodableType; -} // namespace Test +struct DecodableType +{ +public: + static constexpr CommandId GetCommandId() { return Commands::GetMessageCancellation::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } -namespace TestSpecificResponse { -struct Type; -struct DecodableType; -} // namespace TestSpecificResponse + uint32_t earliestImplementationTime = static_cast(0); + CHIP_ERROR Decode(TLV::TLVReader & reader); +}; +}; // namespace GetMessageCancellation +namespace CancelAllMessages { +enum class Fields +{ + kImplementationDateTime = 0, +}; -namespace TestNotHandled { -struct Type; -struct DecodableType; -} // namespace TestNotHandled +struct Type +{ +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::CancelAllMessages::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } -namespace TestAddArgumentsResponse { -struct Type; -struct DecodableType; -} // namespace TestAddArgumentsResponse + uint32_t implementationDateTime = static_cast(0); -namespace TestSpecific { -struct Type; -struct DecodableType; -} // namespace TestSpecific + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; -namespace TestSimpleArgumentResponse { -struct Type; -struct DecodableType; -} // namespace TestSimpleArgumentResponse + using ResponseType = DataModel::NullObjectType; -namespace TestUnknownCommand { -struct Type; -struct DecodableType; -} // namespace TestUnknownCommand + static constexpr bool MustUseTimedInvoke() { return false; } +}; -namespace TestStructArrayArgumentResponse { -struct Type; -struct DecodableType; -} // namespace TestStructArrayArgumentResponse +struct DecodableType +{ +public: + static constexpr CommandId GetCommandId() { return Commands::CancelAllMessages::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } -namespace TestAddArguments { -struct Type; -struct DecodableType; -} // namespace TestAddArguments + uint32_t implementationDateTime = static_cast(0); + CHIP_ERROR Decode(TLV::TLVReader & reader); +}; +}; // namespace CancelAllMessages +} // namespace Commands -namespace TestListInt8UReverseResponse { -struct Type; -struct DecodableType; -} // namespace TestListInt8UReverseResponse +namespace Attributes { -namespace TestSimpleArgumentRequest { -struct Type; -struct DecodableType; -} // namespace TestSimpleArgumentRequest +namespace GeneratedCommandList { +struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } +}; +} // namespace GeneratedCommandList +namespace AcceptedCommandList { +struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } +}; +} // namespace AcceptedCommandList +namespace AttributeList { +struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } +}; +} // namespace AttributeList +namespace FeatureMap { +struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } +}; +} // namespace FeatureMap +namespace ClusterRevision { +struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } +}; +} // namespace ClusterRevision -namespace TestEnumsResponse { -struct Type; -struct DecodableType; -} // namespace TestEnumsResponse +struct TypeInfo +{ + struct DecodableType + { + static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } -namespace TestStructArrayArgumentRequest { -struct Type; -struct DecodableType; -} // namespace TestStructArrayArgumentRequest + CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); -namespace TestNullableOptionalResponse { -struct Type; -struct DecodableType; -} // namespace TestNullableOptionalResponse + Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; + Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; + Attributes::AttributeList::TypeInfo::DecodableType attributeList; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); + }; +}; +} // namespace Attributes +} // namespace Messaging +namespace ApplianceIdentification { -namespace TestStructArgumentRequest { -struct Type; -struct DecodableType; -} // namespace TestStructArgumentRequest +namespace Attributes { -namespace TestComplexNullableOptionalResponse { -struct Type; -struct DecodableType; -} // namespace TestComplexNullableOptionalResponse +namespace BasicIdentification { +struct TypeInfo +{ + using Type = uint64_t; + using DecodableType = uint64_t; + using DecodableArgType = uint64_t; -namespace TestNestedStructArgumentRequest { -struct Type; -struct DecodableType; -} // namespace TestNestedStructArgumentRequest + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::BasicIdentification::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace BasicIdentification +namespace CompanyName { +struct TypeInfo +{ + using Type = chip::CharSpan; + using DecodableType = chip::CharSpan; + using DecodableArgType = chip::CharSpan; -namespace BooleanResponse { -struct Type; -struct DecodableType; -} // namespace BooleanResponse - -namespace TestListStructArgumentRequest { -struct Type; -struct DecodableType; -} // namespace TestListStructArgumentRequest - -namespace SimpleStructResponse { -struct Type; -struct DecodableType; -} // namespace SimpleStructResponse - -namespace TestListInt8UArgumentRequest { -struct Type; -struct DecodableType; -} // namespace TestListInt8UArgumentRequest - -namespace TestEmitTestEventResponse { -struct Type; -struct DecodableType; -} // namespace TestEmitTestEventResponse - -namespace TestNestedStructListArgumentRequest { -struct Type; -struct DecodableType; -} // namespace TestNestedStructListArgumentRequest - -namespace TestEmitTestFabricScopedEventResponse { -struct Type; -struct DecodableType; -} // namespace TestEmitTestFabricScopedEventResponse - -namespace TestListNestedStructListArgumentRequest { -struct Type; -struct DecodableType; -} // namespace TestListNestedStructListArgumentRequest - -namespace TestListInt8UReverseRequest { -struct Type; -struct DecodableType; -} // namespace TestListInt8UReverseRequest - -namespace TestEnumsRequest { -struct Type; -struct DecodableType; -} // namespace TestEnumsRequest - -namespace TestNullableOptionalRequest { -struct Type; -struct DecodableType; -} // namespace TestNullableOptionalRequest - -namespace TestComplexNullableOptionalRequest { -struct Type; -struct DecodableType; -} // namespace TestComplexNullableOptionalRequest - -namespace SimpleStructEchoRequest { -struct Type; -struct DecodableType; -} // namespace SimpleStructEchoRequest - -namespace TimedInvokeRequest { -struct Type; -struct DecodableType; -} // namespace TimedInvokeRequest - -namespace TestSimpleOptionalArgumentRequest { -struct Type; -struct DecodableType; -} // namespace TestSimpleOptionalArgumentRequest - -namespace TestEmitTestEventRequest { -struct Type; -struct DecodableType; -} // namespace TestEmitTestEventRequest - -namespace TestEmitTestFabricScopedEventRequest { -struct Type; -struct DecodableType; -} // namespace TestEmitTestFabricScopedEventRequest - -} // namespace Commands - -namespace Commands { -namespace Test { -enum class Fields -{ + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::CompanyName::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 16; } }; - -struct Type +} // namespace CompanyName +namespace CompanyId { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::Test::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::CompanyId::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace CompanyId +namespace BrandName { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::Test::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = chip::CharSpan; + using DecodableType = chip::CharSpan; + using DecodableArgType = chip::CharSpan; - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::BrandName::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 16; } }; -}; // namespace Test -namespace TestSpecificResponse { -enum class Fields +} // namespace BrandName +namespace BrandId { +struct TypeInfo { - kReturnValue = 0, -}; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; -struct Type + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::BrandId::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace BrandId +namespace Model { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestSpecificResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - uint8_t returnValue = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; + using Type = chip::ByteSpan; + using DecodableType = chip::ByteSpan; + using DecodableArgType = chip::ByteSpan; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Model::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 16; } }; - -struct DecodableType +} // namespace Model +namespace PartNumber { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TestSpecificResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = chip::ByteSpan; + using DecodableType = chip::ByteSpan; + using DecodableArgType = chip::ByteSpan; - uint8_t returnValue = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::PartNumber::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 16; } }; -}; // namespace TestSpecificResponse -namespace TestNotHandled { -enum class Fields +} // namespace PartNumber +namespace ProductRevision { +struct TypeInfo { -}; + using Type = chip::ByteSpan; + using DecodableType = chip::ByteSpan; + using DecodableArgType = chip::ByteSpan; -struct Type + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ProductRevision::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 6; } +}; +} // namespace ProductRevision +namespace SoftwareRevision { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestNotHandled::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; + using Type = chip::ByteSpan; + using DecodableType = chip::ByteSpan; + using DecodableArgType = chip::ByteSpan; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::SoftwareRevision::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 6; } }; - -struct DecodableType +} // namespace SoftwareRevision +namespace ProductTypeName { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TestNotHandled::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = chip::ByteSpan; + using DecodableType = chip::ByteSpan; + using DecodableArgType = chip::ByteSpan; - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ProductTypeName::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 2; } }; -}; // namespace TestNotHandled -namespace TestAddArgumentsResponse { -enum class Fields +} // namespace ProductTypeName +namespace ProductTypeId { +struct TypeInfo { - kReturnValue = 0, -}; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; -struct Type + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ProductTypeId::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace ProductTypeId +namespace CecedSpecificationVersion { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestAddArgumentsResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - uint8_t returnValue = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; + using Type = uint8_t; + using DecodableType = uint8_t; + using DecodableArgType = uint8_t; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::CecedSpecificationVersion::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace CecedSpecificationVersion +namespace GeneratedCommandList { +struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TestAddArgumentsResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - uint8_t returnValue = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } }; -}; // namespace TestAddArgumentsResponse -namespace TestSpecific { -enum class Fields +} // namespace GeneratedCommandList +namespace AcceptedCommandList { +struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo { + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } }; - -struct Type +} // namespace AcceptedCommandList +namespace AttributeList { +struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestSpecific::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = Clusters::TestCluster::Commands::TestSpecificResponse::DecodableType; - - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } }; - -struct DecodableType +} // namespace AttributeList +namespace FeatureMap { +struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TestSpecific::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } }; -}; // namespace TestSpecific -namespace TestSimpleArgumentResponse { -enum class Fields +} // namespace FeatureMap +namespace ClusterRevision { +struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo { - kReturnValue = 0, + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } }; +} // namespace ClusterRevision -struct Type +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestSimpleArgumentResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - bool returnValue = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + struct DecodableType + { + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } - using ResponseType = DataModel::NullObjectType; + CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - static constexpr bool MustUseTimedInvoke() { return false; } + Attributes::BasicIdentification::TypeInfo::DecodableType basicIdentification = static_cast(0); + Attributes::CompanyName::TypeInfo::DecodableType companyName; + Attributes::CompanyId::TypeInfo::DecodableType companyId = static_cast(0); + Attributes::BrandName::TypeInfo::DecodableType brandName; + Attributes::BrandId::TypeInfo::DecodableType brandId = static_cast(0); + Attributes::Model::TypeInfo::DecodableType model; + Attributes::PartNumber::TypeInfo::DecodableType partNumber; + Attributes::ProductRevision::TypeInfo::DecodableType productRevision; + Attributes::SoftwareRevision::TypeInfo::DecodableType softwareRevision; + Attributes::ProductTypeName::TypeInfo::DecodableType productTypeName; + Attributes::ProductTypeId::TypeInfo::DecodableType productTypeId = static_cast(0); + Attributes::CecedSpecificationVersion::TypeInfo::DecodableType cecedSpecificationVersion = static_cast(0); + Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; + Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; + Attributes::AttributeList::TypeInfo::DecodableType attributeList; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); + }; }; +} // namespace Attributes +} // namespace ApplianceIdentification +namespace MeterIdentification { -struct DecodableType +namespace Attributes { + +namespace CompanyName { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TestSimpleArgumentResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = chip::CharSpan; + using DecodableType = chip::CharSpan; + using DecodableArgType = chip::CharSpan; - bool returnValue = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::CompanyName::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 16; } }; -}; // namespace TestSimpleArgumentResponse -namespace TestUnknownCommand { -enum class Fields +} // namespace CompanyName +namespace MeterTypeId { +struct TypeInfo { -}; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; -struct Type + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::MeterTypeId::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace MeterTypeId +namespace DataQualityId { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestUnknownCommand::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::DataQualityId::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace DataQualityId +namespace CustomerName { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TestUnknownCommand::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = chip::CharSpan; + using DecodableType = chip::CharSpan; + using DecodableArgType = chip::CharSpan; - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::CustomerName::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 16; } }; -}; // namespace TestUnknownCommand -namespace TestStructArrayArgumentResponse { -enum class Fields +} // namespace CustomerName +namespace Model { +struct TypeInfo { - kArg1 = 0, - kArg2 = 1, - kArg3 = 2, - kArg4 = 3, - kArg5 = 4, - kArg6 = 5, -}; + using Type = chip::ByteSpan; + using DecodableType = chip::ByteSpan; + using DecodableArgType = chip::ByteSpan; -struct Type + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Model::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 16; } +}; +} // namespace Model +namespace PartNumber { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestStructArrayArgumentResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - DataModel::List arg1; - DataModel::List arg2; - DataModel::List arg3; - DataModel::List arg4; - SimpleEnum arg5 = static_cast(0); - bool arg6 = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; + using Type = chip::ByteSpan; + using DecodableType = chip::ByteSpan; + using DecodableArgType = chip::ByteSpan; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::PartNumber::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 16; } }; - -struct DecodableType +} // namespace PartNumber +namespace ProductRevision { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TestStructArrayArgumentResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = chip::ByteSpan; + using DecodableType = chip::ByteSpan; + using DecodableArgType = chip::ByteSpan; - DataModel::DecodableList arg1; - DataModel::DecodableList arg2; - DataModel::DecodableList arg3; - DataModel::DecodableList arg4; - SimpleEnum arg5 = static_cast(0); - bool arg6 = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ProductRevision::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 6; } }; -}; // namespace TestStructArrayArgumentResponse -namespace TestAddArguments { -enum class Fields +} // namespace ProductRevision +namespace SoftwareRevision { +struct TypeInfo { - kArg1 = 0, - kArg2 = 1, -}; + using Type = chip::ByteSpan; + using DecodableType = chip::ByteSpan; + using DecodableArgType = chip::ByteSpan; -struct Type + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::SoftwareRevision::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 6; } +}; +} // namespace SoftwareRevision +namespace UtilityName { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestAddArguments::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = chip::CharSpan; + using DecodableType = chip::CharSpan; + using DecodableArgType = chip::CharSpan; - uint8_t arg1 = static_cast(0); - uint8_t arg2 = static_cast(0); + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::UtilityName::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 16; } +}; +} // namespace UtilityName +namespace Pod { +struct TypeInfo +{ + using Type = chip::CharSpan; + using DecodableType = chip::CharSpan; + using DecodableArgType = chip::CharSpan; - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Pod::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 16; } +}; +} // namespace Pod +namespace AvailablePower { +struct TypeInfo +{ + using Type = int32_t; + using DecodableType = int32_t; + using DecodableArgType = int32_t; - using ResponseType = Clusters::TestCluster::Commands::TestAddArgumentsResponse::DecodableType; + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AvailablePower::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace AvailablePower +namespace PowerThreshold { +struct TypeInfo +{ + using Type = int32_t; + using DecodableType = int32_t; + using DecodableArgType = int32_t; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::PowerThreshold::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace PowerThreshold +namespace GeneratedCommandList { +struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } }; +} // namespace GeneratedCommandList +namespace AcceptedCommandList { +struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } +}; +} // namespace AcceptedCommandList +namespace AttributeList { +struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } +}; +} // namespace AttributeList +namespace FeatureMap { +struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } +}; +} // namespace FeatureMap +namespace ClusterRevision { +struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } +}; +} // namespace ClusterRevision -struct DecodableType +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TestAddArguments::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + struct DecodableType + { + static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } - uint8_t arg1 = static_cast(0); - uint8_t arg2 = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); + CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); + + Attributes::CompanyName::TypeInfo::DecodableType companyName; + Attributes::MeterTypeId::TypeInfo::DecodableType meterTypeId = static_cast(0); + Attributes::DataQualityId::TypeInfo::DecodableType dataQualityId = static_cast(0); + Attributes::CustomerName::TypeInfo::DecodableType customerName; + Attributes::Model::TypeInfo::DecodableType model; + Attributes::PartNumber::TypeInfo::DecodableType partNumber; + Attributes::ProductRevision::TypeInfo::DecodableType productRevision; + Attributes::SoftwareRevision::TypeInfo::DecodableType softwareRevision; + Attributes::UtilityName::TypeInfo::DecodableType utilityName; + Attributes::Pod::TypeInfo::DecodableType pod; + Attributes::AvailablePower::TypeInfo::DecodableType availablePower = static_cast(0); + Attributes::PowerThreshold::TypeInfo::DecodableType powerThreshold = static_cast(0); + Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; + Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; + Attributes::AttributeList::TypeInfo::DecodableType attributeList; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); + }; }; -}; // namespace TestAddArguments -namespace TestListInt8UReverseResponse { +} // namespace Attributes +} // namespace MeterIdentification +namespace ApplianceEventsAndAlert { + +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace GetAlerts { +struct Type; +struct DecodableType; +} // namespace GetAlerts + +namespace GetAlertsResponse { +struct Type; +struct DecodableType; +} // namespace GetAlertsResponse + +namespace AlertsNotification { +struct Type; +struct DecodableType; +} // namespace AlertsNotification + +namespace EventsNotification { +struct Type; +struct DecodableType; +} // namespace EventsNotification + +} // namespace Commands + +namespace Commands { +namespace GetAlerts { enum class Fields { - kArg1 = 0, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestListInt8UReverseResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - DataModel::List arg1; + static constexpr CommandId GetCommandId() { return Commands::GetAlerts::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = DataModel::NullObjectType; + using ResponseType = Clusters::ApplianceEventsAndAlert::Commands::GetAlertsResponse::DecodableType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -31863,31 +31935,32 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::TestListInt8UReverseResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetAlerts::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } - DataModel::DecodableList arg1; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace TestListInt8UReverseResponse -namespace TestSimpleArgumentRequest { +}; // namespace GetAlerts +namespace GetAlertsResponse { enum class Fields { - kArg1 = 0, + kAlertsCount = 0, + kAlertStructures = 1, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestSimpleArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetAlertsResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } - bool arg1 = static_cast(0); + chip::BitMask alertsCount = static_cast>(0); + DataModel::List> alertStructures; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = Clusters::TestCluster::Commands::TestSimpleArgumentResponse::DecodableType; + using ResponseType = DataModel::NullObjectType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -31895,29 +31968,30 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::TestSimpleArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetAlertsResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } - bool arg1 = static_cast(0); + chip::BitMask alertsCount = static_cast>(0); + DataModel::DecodableList> alertStructures; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace TestSimpleArgumentRequest -namespace TestEnumsResponse { +}; // namespace GetAlertsResponse +namespace AlertsNotification { enum class Fields { - kArg1 = 0, - kArg2 = 1, + kAlertsCount = 0, + kAlertStructures = 1, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestEnumsResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::AlertsNotification::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } - chip::VendorId arg1 = static_cast(0); - SimpleEnum arg2 = static_cast(0); + chip::BitMask alertsCount = static_cast>(0); + DataModel::List> alertStructures; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -31929,42 +32003,34 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::TestEnumsResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::AlertsNotification::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } - chip::VendorId arg1 = static_cast(0); - SimpleEnum arg2 = static_cast(0); + chip::BitMask alertsCount = static_cast>(0); + DataModel::DecodableList> alertStructures; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace TestEnumsResponse -namespace TestStructArrayArgumentRequest { +}; // namespace AlertsNotification +namespace EventsNotification { enum class Fields { - kArg1 = 0, - kArg2 = 1, - kArg3 = 2, - kArg4 = 3, - kArg5 = 4, - kArg6 = 5, + kEventHeader = 0, + kEventId = 1, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestStructArrayArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::EventsNotification::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } - DataModel::List arg1; - DataModel::List arg2; - DataModel::List arg3; - DataModel::List arg4; - SimpleEnum arg5 = static_cast(0); - bool arg6 = static_cast(0); + uint8_t eventHeader = static_cast(0); + EventIdentification eventId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = Clusters::TestCluster::Commands::TestStructArrayArgumentResponse::DecodableType; + using ResponseType = DataModel::NullObjectType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -31972,38 +32038,124 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::TestStructArrayArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::EventsNotification::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } - DataModel::DecodableList arg1; - DataModel::DecodableList arg2; - DataModel::DecodableList arg3; - DataModel::DecodableList arg4; - SimpleEnum arg5 = static_cast(0); - bool arg6 = static_cast(0); + uint8_t eventHeader = static_cast(0); + EventIdentification eventId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace TestStructArrayArgumentRequest -namespace TestNullableOptionalResponse { -enum class Fields -{ - kWasPresent = 0, - kWasNull = 1, - kValue = 2, - kOriginalValue = 3, +}; // namespace EventsNotification +} // namespace Commands + +namespace Attributes { + +namespace GeneratedCommandList { +struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } +}; +} // namespace GeneratedCommandList +namespace AcceptedCommandList { +struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } +}; +} // namespace AcceptedCommandList +namespace AttributeList { +struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } +}; +} // namespace AttributeList +namespace FeatureMap { +struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } +}; +} // namespace FeatureMap +namespace ClusterRevision { +struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } +}; +} // namespace ClusterRevision + +struct TypeInfo +{ + struct DecodableType + { + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } + + CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); + + Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; + Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; + Attributes::AttributeList::TypeInfo::DecodableType attributeList; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); + }; +}; +} // namespace Attributes +} // namespace ApplianceEventsAndAlert +namespace ApplianceStatistics { + +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace LogNotification { +struct Type; +struct DecodableType; +} // namespace LogNotification + +namespace LogRequest { +struct Type; +struct DecodableType; +} // namespace LogRequest + +namespace LogResponse { +struct Type; +struct DecodableType; +} // namespace LogResponse + +namespace LogQueueRequest { +struct Type; +struct DecodableType; +} // namespace LogQueueRequest + +namespace LogQueueResponse { +struct Type; +struct DecodableType; +} // namespace LogQueueResponse + +namespace StatisticsAvailable { +struct Type; +struct DecodableType; +} // namespace StatisticsAvailable + +} // namespace Commands + +namespace Commands { +namespace LogNotification { +enum class Fields +{ + kTimeStamp = 0, + kLogId = 1, + kLogLength = 2, + kLogPayload = 3, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestNullableOptionalResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::LogNotification::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - bool wasPresent = static_cast(0); - Optional wasNull; - Optional value; - Optional> originalValue; + uint32_t timeStamp = static_cast(0); + uint32_t logId = static_cast(0); + uint32_t logLength = static_cast(0); + DataModel::List logPayload; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -32015,34 +32167,34 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::TestNullableOptionalResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::LogNotification::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - bool wasPresent = static_cast(0); - Optional wasNull; - Optional value; - Optional> originalValue; + uint32_t timeStamp = static_cast(0); + uint32_t logId = static_cast(0); + uint32_t logLength = static_cast(0); + DataModel::DecodableList logPayload; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace TestNullableOptionalResponse -namespace TestStructArgumentRequest { +}; // namespace LogNotification +namespace LogRequest { enum class Fields { - kArg1 = 0, + kLogId = 0, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestStructArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::LogRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - Structs::SimpleStruct::Type arg1; + uint32_t logId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = Clusters::TestCluster::Commands::BooleanResponse::DecodableType; + using ResponseType = Clusters::ApplianceStatistics::Commands::LogResponse::DecodableType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -32050,81 +32202,33 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::TestStructArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::LogRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - Structs::SimpleStruct::DecodableType arg1; + uint32_t logId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace TestStructArgumentRequest -namespace TestComplexNullableOptionalResponse { +}; // namespace LogRequest +namespace LogResponse { enum class Fields { - kNullableIntWasNull = 0, - kNullableIntValue = 1, - kOptionalIntWasPresent = 2, - kOptionalIntValue = 3, - kNullableOptionalIntWasPresent = 4, - kNullableOptionalIntWasNull = 5, - kNullableOptionalIntValue = 6, - kNullableStringWasNull = 7, - kNullableStringValue = 8, - kOptionalStringWasPresent = 9, - kOptionalStringValue = 10, - kNullableOptionalStringWasPresent = 11, - kNullableOptionalStringWasNull = 12, - kNullableOptionalStringValue = 13, - kNullableStructWasNull = 14, - kNullableStructValue = 15, - kOptionalStructWasPresent = 16, - kOptionalStructValue = 17, - kNullableOptionalStructWasPresent = 18, - kNullableOptionalStructWasNull = 19, - kNullableOptionalStructValue = 20, - kNullableListWasNull = 21, - kNullableListValue = 22, - kOptionalListWasPresent = 23, - kOptionalListValue = 24, - kNullableOptionalListWasPresent = 25, - kNullableOptionalListWasNull = 26, - kNullableOptionalListValue = 27, + kTimeStamp = 0, + kLogId = 1, + kLogLength = 2, + kLogPayload = 3, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestComplexNullableOptionalResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::LogResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - bool nullableIntWasNull = static_cast(0); - Optional nullableIntValue; - bool optionalIntWasPresent = static_cast(0); - Optional optionalIntValue; - bool nullableOptionalIntWasPresent = static_cast(0); - Optional nullableOptionalIntWasNull; - Optional nullableOptionalIntValue; - bool nullableStringWasNull = static_cast(0); - Optional nullableStringValue; - bool optionalStringWasPresent = static_cast(0); - Optional optionalStringValue; - bool nullableOptionalStringWasPresent = static_cast(0); - Optional nullableOptionalStringWasNull; - Optional nullableOptionalStringValue; - bool nullableStructWasNull = static_cast(0); - Optional nullableStructValue; - bool optionalStructWasPresent = static_cast(0); - Optional optionalStructValue; - bool nullableOptionalStructWasPresent = static_cast(0); - Optional nullableOptionalStructWasNull; - Optional nullableOptionalStructValue; - bool nullableListWasNull = static_cast(0); - Optional> nullableListValue; - bool optionalListWasPresent = static_cast(0); - Optional> optionalListValue; - bool nullableOptionalListWasPresent = static_cast(0); - Optional nullableOptionalListWasNull; - Optional> nullableOptionalListValue; + uint32_t timeStamp = static_cast(0); + uint32_t logId = static_cast(0); + uint32_t logLength = static_cast(0); + DataModel::List logPayload; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -32136,58 +32240,31 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::TestComplexNullableOptionalResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::LogResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - bool nullableIntWasNull = static_cast(0); - Optional nullableIntValue; - bool optionalIntWasPresent = static_cast(0); - Optional optionalIntValue; - bool nullableOptionalIntWasPresent = static_cast(0); - Optional nullableOptionalIntWasNull; - Optional nullableOptionalIntValue; - bool nullableStringWasNull = static_cast(0); - Optional nullableStringValue; - bool optionalStringWasPresent = static_cast(0); - Optional optionalStringValue; - bool nullableOptionalStringWasPresent = static_cast(0); - Optional nullableOptionalStringWasNull; - Optional nullableOptionalStringValue; - bool nullableStructWasNull = static_cast(0); - Optional nullableStructValue; - bool optionalStructWasPresent = static_cast(0); - Optional optionalStructValue; - bool nullableOptionalStructWasPresent = static_cast(0); - Optional nullableOptionalStructWasNull; - Optional nullableOptionalStructValue; - bool nullableListWasNull = static_cast(0); - Optional> nullableListValue; - bool optionalListWasPresent = static_cast(0); - Optional> optionalListValue; - bool nullableOptionalListWasPresent = static_cast(0); - Optional nullableOptionalListWasNull; - Optional> nullableOptionalListValue; + uint32_t timeStamp = static_cast(0); + uint32_t logId = static_cast(0); + uint32_t logLength = static_cast(0); + DataModel::DecodableList logPayload; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace TestComplexNullableOptionalResponse -namespace TestNestedStructArgumentRequest { +}; // namespace LogResponse +namespace LogQueueRequest { enum class Fields { - kArg1 = 0, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestNestedStructArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - Structs::NestedStruct::Type arg1; + static constexpr CommandId GetCommandId() { return Commands::LogQueueRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = Clusters::TestCluster::Commands::BooleanResponse::DecodableType; + using ResponseType = Clusters::ApplianceStatistics::Commands::LogQueueResponse::DecodableType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -32195,27 +32272,28 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::TestNestedStructArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::LogQueueRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - Structs::NestedStruct::DecodableType arg1; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace TestNestedStructArgumentRequest -namespace BooleanResponse { +}; // namespace LogQueueRequest +namespace LogQueueResponse { enum class Fields { - kValue = 0, + kLogQueueSize = 0, + kLogIds = 1, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::BooleanResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::LogQueueResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - bool value = static_cast(0); + uint8_t logQueueSize = static_cast(0); + DataModel::List logIds; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -32227,31 +32305,34 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::BooleanResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::LogQueueResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - bool value = static_cast(0); + uint8_t logQueueSize = static_cast(0); + DataModel::DecodableList logIds; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace BooleanResponse -namespace TestListStructArgumentRequest { +}; // namespace LogQueueResponse +namespace StatisticsAvailable { enum class Fields { - kArg1 = 0, + kLogQueueSize = 0, + kLogIds = 1, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestListStructArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::StatisticsAvailable::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - DataModel::List arg1; + uint8_t logQueueSize = static_cast(0); + DataModel::List logIds; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = Clusters::TestCluster::Commands::BooleanResponse::DecodableType; + using ResponseType = DataModel::NullObjectType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -32259,27 +32340,140 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::TestListStructArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::StatisticsAvailable::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - DataModel::DecodableList arg1; + uint8_t logQueueSize = static_cast(0); + DataModel::DecodableList logIds; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace TestListStructArgumentRequest -namespace SimpleStructResponse { +}; // namespace StatisticsAvailable +} // namespace Commands + +namespace Attributes { + +namespace LogMaxSize { +struct TypeInfo +{ + using Type = uint32_t; + using DecodableType = uint32_t; + using DecodableArgType = uint32_t; + + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::LogMaxSize::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace LogMaxSize +namespace LogQueueMaxSize { +struct TypeInfo +{ + using Type = uint8_t; + using DecodableType = uint8_t; + using DecodableArgType = uint8_t; + + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::LogQueueMaxSize::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace LogQueueMaxSize +namespace GeneratedCommandList { +struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } +}; +} // namespace GeneratedCommandList +namespace AcceptedCommandList { +struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } +}; +} // namespace AcceptedCommandList +namespace AttributeList { +struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } +}; +} // namespace AttributeList +namespace FeatureMap { +struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } +}; +} // namespace FeatureMap +namespace ClusterRevision { +struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo +{ + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } +}; +} // namespace ClusterRevision + +struct TypeInfo +{ + struct DecodableType + { + static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } + + CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); + + Attributes::LogMaxSize::TypeInfo::DecodableType logMaxSize = static_cast(0); + Attributes::LogQueueMaxSize::TypeInfo::DecodableType logQueueMaxSize = static_cast(0); + Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; + Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; + Attributes::AttributeList::TypeInfo::DecodableType attributeList; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); + }; +}; +} // namespace Attributes +} // namespace ApplianceStatistics +namespace ElectricalMeasurement { + +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace GetProfileInfoResponseCommand { +struct Type; +struct DecodableType; +} // namespace GetProfileInfoResponseCommand + +namespace GetProfileInfoCommand { +struct Type; +struct DecodableType; +} // namespace GetProfileInfoCommand + +namespace GetMeasurementProfileResponseCommand { +struct Type; +struct DecodableType; +} // namespace GetMeasurementProfileResponseCommand + +namespace GetMeasurementProfileCommand { +struct Type; +struct DecodableType; +} // namespace GetMeasurementProfileCommand + +} // namespace Commands + +namespace Commands { +namespace GetProfileInfoResponseCommand { enum class Fields { - kArg1 = 0, + kProfileCount = 0, + kProfileIntervalPeriod = 1, + kMaxNumberOfIntervals = 2, + kListOfAttributes = 3, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::SimpleStructResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetProfileInfoResponseCommand::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - Structs::SimpleStruct::Type arg1; + uint8_t profileCount = static_cast(0); + uint8_t profileIntervalPeriod = static_cast(0); + uint8_t maxNumberOfIntervals = static_cast(0); + DataModel::List listOfAttributes; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -32291,31 +32485,31 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::SimpleStructResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetProfileInfoResponseCommand::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - Structs::SimpleStruct::DecodableType arg1; + uint8_t profileCount = static_cast(0); + uint8_t profileIntervalPeriod = static_cast(0); + uint8_t maxNumberOfIntervals = static_cast(0); + DataModel::DecodableList listOfAttributes; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace SimpleStructResponse -namespace TestListInt8UArgumentRequest { +}; // namespace GetProfileInfoResponseCommand +namespace GetProfileInfoCommand { enum class Fields { - kArg1 = 0, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestListInt8UArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - DataModel::List arg1; + static constexpr CommandId GetCommandId() { return Commands::GetProfileInfoCommand::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = Clusters::TestCluster::Commands::BooleanResponse::DecodableType; + using ResponseType = DataModel::NullObjectType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -32323,27 +32517,36 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::TestListInt8UArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetProfileInfoCommand::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - DataModel::DecodableList arg1; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace TestListInt8UArgumentRequest -namespace TestEmitTestEventResponse { +}; // namespace GetProfileInfoCommand +namespace GetMeasurementProfileResponseCommand { enum class Fields { - kValue = 0, + kStartTime = 0, + kStatus = 1, + kProfileIntervalPeriod = 2, + kNumberOfIntervalsDelivered = 3, + kAttributeId = 4, + kIntervals = 5, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestEmitTestEventResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetMeasurementProfileResponseCommand::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - uint64_t value = static_cast(0); + uint32_t startTime = static_cast(0); + uint8_t status = static_cast(0); + uint8_t profileIntervalPeriod = static_cast(0); + uint8_t numberOfIntervalsDelivered = static_cast(0); + uint16_t attributeId = static_cast(0); + DataModel::List intervals; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -32355,31 +32558,40 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::TestEmitTestEventResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetMeasurementProfileResponseCommand::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - uint64_t value = static_cast(0); + uint32_t startTime = static_cast(0); + uint8_t status = static_cast(0); + uint8_t profileIntervalPeriod = static_cast(0); + uint8_t numberOfIntervalsDelivered = static_cast(0); + uint16_t attributeId = static_cast(0); + DataModel::DecodableList intervals; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace TestEmitTestEventResponse -namespace TestNestedStructListArgumentRequest { +}; // namespace GetMeasurementProfileResponseCommand +namespace GetMeasurementProfileCommand { enum class Fields { - kArg1 = 0, + kAttributeId = 0, + kStartTime = 1, + kNumberOfIntervals = 2, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestNestedStructListArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetMeasurementProfileCommand::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - Structs::NestedStructList::Type arg1; + uint16_t attributeId = static_cast(0); + uint32_t startTime = static_cast(0); + uint8_t numberOfIntervals = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = Clusters::TestCluster::Commands::BooleanResponse::DecodableType; + using ResponseType = DataModel::NullObjectType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -32387,2435 +32599,2204 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::TestNestedStructListArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetMeasurementProfileCommand::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - Structs::NestedStructList::DecodableType arg1; + uint16_t attributeId = static_cast(0); + uint32_t startTime = static_cast(0); + uint8_t numberOfIntervals = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace TestNestedStructListArgumentRequest -namespace TestEmitTestFabricScopedEventResponse { -enum class Fields -{ - kValue = 0, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestEmitTestFabricScopedEventResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - uint64_t value = static_cast(0); +}; // namespace GetMeasurementProfileCommand +} // namespace Commands - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; +namespace Attributes { - using ResponseType = DataModel::NullObjectType; +namespace MeasurementType { +struct TypeInfo +{ + using Type = uint32_t; + using DecodableType = uint32_t; + using DecodableArgType = uint32_t; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::MeasurementType::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace MeasurementType +namespace DcVoltage { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TestEmitTestFabricScopedEventResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - uint64_t value = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::DcVoltage::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -}; // namespace TestEmitTestFabricScopedEventResponse -namespace TestListNestedStructListArgumentRequest { -enum class Fields +} // namespace DcVoltage +namespace DcVoltageMin { +struct TypeInfo { - kArg1 = 0, -}; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; -struct Type + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::DcVoltageMin::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace DcVoltageMin +namespace DcVoltageMax { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestListNestedStructListArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - DataModel::List arg1; - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = Clusters::TestCluster::Commands::BooleanResponse::DecodableType; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::DcVoltageMax::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace DcVoltageMax +namespace DcCurrent { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TestListNestedStructListArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - DataModel::DecodableList arg1; - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::DcCurrent::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -}; // namespace TestListNestedStructListArgumentRequest -namespace TestListInt8UReverseRequest { -enum class Fields +} // namespace DcCurrent +namespace DcCurrentMin { +struct TypeInfo { - kArg1 = 0, -}; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; -struct Type + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::DcCurrentMin::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace DcCurrentMin +namespace DcCurrentMax { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestListInt8UReverseRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - DataModel::List arg1; - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = Clusters::TestCluster::Commands::TestListInt8UReverseResponse::DecodableType; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::DcCurrentMax::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace DcCurrentMax +namespace DcPower { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TestListInt8UReverseRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - DataModel::DecodableList arg1; - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::DcPower::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -}; // namespace TestListInt8UReverseRequest -namespace TestEnumsRequest { -enum class Fields +} // namespace DcPower +namespace DcPowerMin { +struct TypeInfo { - kArg1 = 0, - kArg2 = 1, -}; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; -struct Type + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::DcPowerMin::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace DcPowerMin +namespace DcPowerMax { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestEnumsRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - chip::VendorId arg1 = static_cast(0); - SimpleEnum arg2 = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = Clusters::TestCluster::Commands::TestEnumsResponse::DecodableType; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::DcPowerMax::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace DcPowerMax +namespace DcVoltageMultiplier { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TestEnumsRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - chip::VendorId arg1 = static_cast(0); - SimpleEnum arg2 = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::DcVoltageMultiplier::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -}; // namespace TestEnumsRequest -namespace TestNullableOptionalRequest { -enum class Fields +} // namespace DcVoltageMultiplier +namespace DcVoltageDivisor { +struct TypeInfo { - kArg1 = 0, -}; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; -struct Type + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::DcVoltageDivisor::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace DcVoltageDivisor +namespace DcCurrentMultiplier { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestNullableOptionalRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - Optional> arg1; - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = Clusters::TestCluster::Commands::TestNullableOptionalResponse::DecodableType; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::DcCurrentMultiplier::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace DcCurrentMultiplier +namespace DcCurrentDivisor { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TestNullableOptionalRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - Optional> arg1; - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::DcCurrentDivisor::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -}; // namespace TestNullableOptionalRequest -namespace TestComplexNullableOptionalRequest { -enum class Fields +} // namespace DcCurrentDivisor +namespace DcPowerMultiplier { +struct TypeInfo { - kNullableInt = 0, - kOptionalInt = 1, - kNullableOptionalInt = 2, - kNullableString = 3, - kOptionalString = 4, - kNullableOptionalString = 5, - kNullableStruct = 6, - kOptionalStruct = 7, - kNullableOptionalStruct = 8, - kNullableList = 9, - kOptionalList = 10, - kNullableOptionalList = 11, -}; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; -struct Type + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::DcPowerMultiplier::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace DcPowerMultiplier +namespace DcPowerDivisor { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestComplexNullableOptionalRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - DataModel::Nullable nullableInt; - Optional optionalInt; - Optional> nullableOptionalInt; - DataModel::Nullable nullableString; - Optional optionalString; - Optional> nullableOptionalString; - DataModel::Nullable nullableStruct; - Optional optionalStruct; - Optional> nullableOptionalStruct; - DataModel::Nullable> nullableList; - Optional> optionalList; - Optional>> nullableOptionalList; - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = Clusters::TestCluster::Commands::TestComplexNullableOptionalResponse::DecodableType; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::DcPowerDivisor::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace DcPowerDivisor +namespace AcFrequency { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TestComplexNullableOptionalRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - DataModel::Nullable nullableInt; - Optional optionalInt; - Optional> nullableOptionalInt; - DataModel::Nullable nullableString; - Optional optionalString; - Optional> nullableOptionalString; - DataModel::Nullable nullableStruct; - Optional optionalStruct; - Optional> nullableOptionalStruct; - DataModel::Nullable> nullableList; - Optional> optionalList; - Optional>> nullableOptionalList; - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AcFrequency::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -}; // namespace TestComplexNullableOptionalRequest -namespace SimpleStructEchoRequest { -enum class Fields +} // namespace AcFrequency +namespace AcFrequencyMin { +struct TypeInfo { - kArg1 = 0, -}; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; -struct Type + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AcFrequencyMin::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace AcFrequencyMin +namespace AcFrequencyMax { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::SimpleStructEchoRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - Structs::SimpleStruct::Type arg1; - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = Clusters::TestCluster::Commands::SimpleStructResponse::DecodableType; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AcFrequencyMax::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace AcFrequencyMax +namespace NeutralCurrent { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::SimpleStructEchoRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - Structs::SimpleStruct::DecodableType arg1; - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NeutralCurrent::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -}; // namespace SimpleStructEchoRequest -namespace TimedInvokeRequest { -enum class Fields +} // namespace NeutralCurrent +namespace TotalActivePower { +struct TypeInfo { -}; + using Type = int32_t; + using DecodableType = int32_t; + using DecodableArgType = int32_t; -struct Type + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::TotalActivePower::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace TotalActivePower +namespace TotalReactivePower { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TimedInvokeRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; + using Type = int32_t; + using DecodableType = int32_t; + using DecodableArgType = int32_t; - static constexpr bool MustUseTimedInvoke() { return true; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::TotalReactivePower::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace TotalReactivePower +namespace TotalApparentPower { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TimedInvokeRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = uint32_t; + using DecodableType = uint32_t; + using DecodableArgType = uint32_t; - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::TotalApparentPower::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -}; // namespace TimedInvokeRequest -namespace TestSimpleOptionalArgumentRequest { -enum class Fields +} // namespace TotalApparentPower +namespace Measured1stHarmonicCurrent { +struct TypeInfo { - kArg1 = 0, -}; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; -struct Type + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Measured1stHarmonicCurrent::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace Measured1stHarmonicCurrent +namespace Measured3rdHarmonicCurrent { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestSimpleOptionalArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - Optional arg1; - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Measured3rdHarmonicCurrent::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace Measured3rdHarmonicCurrent +namespace Measured5thHarmonicCurrent { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TestSimpleOptionalArgumentRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - Optional arg1; - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Measured5thHarmonicCurrent::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -}; // namespace TestSimpleOptionalArgumentRequest -namespace TestEmitTestEventRequest { -enum class Fields -{ - kArg1 = 0, - kArg2 = 1, - kArg3 = 2, -}; - -struct Type +} // namespace Measured5thHarmonicCurrent +namespace Measured7thHarmonicCurrent { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestEmitTestEventRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - uint8_t arg1 = static_cast(0); - SimpleEnum arg2 = static_cast(0); - bool arg3 = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = Clusters::TestCluster::Commands::TestEmitTestEventResponse::DecodableType; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Measured7thHarmonicCurrent::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace Measured7thHarmonicCurrent +namespace Measured9thHarmonicCurrent { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TestEmitTestEventRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - uint8_t arg1 = static_cast(0); - SimpleEnum arg2 = static_cast(0); - bool arg3 = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace TestEmitTestEventRequest -namespace TestEmitTestFabricScopedEventRequest { -enum class Fields -{ - kArg1 = 0, + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Measured9thHarmonicCurrent::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct Type +} // namespace Measured9thHarmonicCurrent +namespace Measured11thHarmonicCurrent { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::TestEmitTestFabricScopedEventRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - uint8_t arg1 = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = Clusters::TestCluster::Commands::TestEmitTestFabricScopedEventResponse::DecodableType; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Measured11thHarmonicCurrent::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace Measured11thHarmonicCurrent +namespace MeasuredPhase1stHarmonicCurrent { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::TestEmitTestFabricScopedEventRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - uint8_t arg1 = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase1stHarmonicCurrent::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -}; // namespace TestEmitTestFabricScopedEventRequest -} // namespace Commands - -namespace Attributes { - -namespace Boolean { +} // namespace MeasuredPhase1stHarmonicCurrent +namespace MeasuredPhase3rdHarmonicCurrent { struct TypeInfo { - using Type = bool; - using DecodableType = bool; - using DecodableArgType = bool; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Boolean::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase3rdHarmonicCurrent::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Boolean -namespace Bitmap8 { +} // namespace MeasuredPhase3rdHarmonicCurrent +namespace MeasuredPhase5thHarmonicCurrent { struct TypeInfo { - using Type = chip::BitMask; - using DecodableType = chip::BitMask; - using DecodableArgType = chip::BitMask; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Bitmap8::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase5thHarmonicCurrent::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Bitmap8 -namespace Bitmap16 { +} // namespace MeasuredPhase5thHarmonicCurrent +namespace MeasuredPhase7thHarmonicCurrent { struct TypeInfo { - using Type = chip::BitMask; - using DecodableType = chip::BitMask; - using DecodableArgType = chip::BitMask; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Bitmap16::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase7thHarmonicCurrent::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Bitmap16 -namespace Bitmap32 { +} // namespace MeasuredPhase7thHarmonicCurrent +namespace MeasuredPhase9thHarmonicCurrent { struct TypeInfo { - using Type = chip::BitMask; - using DecodableType = chip::BitMask; - using DecodableArgType = chip::BitMask; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Bitmap32::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase9thHarmonicCurrent::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Bitmap32 -namespace Bitmap64 { +} // namespace MeasuredPhase9thHarmonicCurrent +namespace MeasuredPhase11thHarmonicCurrent { struct TypeInfo { - using Type = chip::BitMask; - using DecodableType = chip::BitMask; - using DecodableArgType = chip::BitMask; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Bitmap64::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase11thHarmonicCurrent::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Bitmap64 -namespace Int8u { +} // namespace MeasuredPhase11thHarmonicCurrent +namespace AcFrequencyMultiplier { struct TypeInfo { - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Int8u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AcFrequencyMultiplier::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Int8u -namespace Int16u { +} // namespace AcFrequencyMultiplier +namespace AcFrequencyDivisor { struct TypeInfo { using Type = uint16_t; using DecodableType = uint16_t; using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Int16u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AcFrequencyDivisor::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Int16u -namespace Int24u { +} // namespace AcFrequencyDivisor +namespace PowerMultiplier { struct TypeInfo { using Type = uint32_t; using DecodableType = uint32_t; using DecodableArgType = uint32_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Int24u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::PowerMultiplier::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Int24u -namespace Int32u { +} // namespace PowerMultiplier +namespace PowerDivisor { struct TypeInfo { using Type = uint32_t; using DecodableType = uint32_t; using DecodableArgType = uint32_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Int32u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::PowerDivisor::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Int32u -namespace Int40u { +} // namespace PowerDivisor +namespace HarmonicCurrentMultiplier { struct TypeInfo { - using Type = uint64_t; - using DecodableType = uint64_t; - using DecodableArgType = uint64_t; + using Type = int8_t; + using DecodableType = int8_t; + using DecodableArgType = int8_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Int40u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::HarmonicCurrentMultiplier::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Int40u -namespace Int48u { +} // namespace HarmonicCurrentMultiplier +namespace PhaseHarmonicCurrentMultiplier { struct TypeInfo { - using Type = uint64_t; - using DecodableType = uint64_t; - using DecodableArgType = uint64_t; + using Type = int8_t; + using DecodableType = int8_t; + using DecodableArgType = int8_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Int48u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::PhaseHarmonicCurrentMultiplier::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Int48u -namespace Int56u { +} // namespace PhaseHarmonicCurrentMultiplier +namespace InstantaneousVoltage { struct TypeInfo { - using Type = uint64_t; - using DecodableType = uint64_t; - using DecodableArgType = uint64_t; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Int56u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::InstantaneousVoltage::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Int56u -namespace Int64u { +} // namespace InstantaneousVoltage +namespace InstantaneousLineCurrent { struct TypeInfo { - using Type = uint64_t; - using DecodableType = uint64_t; - using DecodableArgType = uint64_t; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Int64u::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace Int64u -namespace Int8s { -struct TypeInfo -{ - using Type = int8_t; - using DecodableType = int8_t; - using DecodableArgType = int8_t; - - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Int8s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::InstantaneousLineCurrent::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Int8s -namespace Int16s { +} // namespace InstantaneousLineCurrent +namespace InstantaneousActiveCurrent { struct TypeInfo { using Type = int16_t; using DecodableType = int16_t; using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Int16s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::InstantaneousActiveCurrent::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Int16s -namespace Int24s { +} // namespace InstantaneousActiveCurrent +namespace InstantaneousReactiveCurrent { struct TypeInfo { - using Type = int32_t; - using DecodableType = int32_t; - using DecodableArgType = int32_t; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Int24s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::InstantaneousReactiveCurrent::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Int24s -namespace Int32s { +} // namespace InstantaneousReactiveCurrent +namespace InstantaneousPower { struct TypeInfo { - using Type = int32_t; - using DecodableType = int32_t; - using DecodableArgType = int32_t; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Int32s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::InstantaneousPower::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Int32s -namespace Int40s { +} // namespace InstantaneousPower +namespace RmsVoltage { struct TypeInfo { - using Type = int64_t; - using DecodableType = int64_t; - using DecodableArgType = int64_t; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Int40s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltage::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Int40s -namespace Int48s { +} // namespace RmsVoltage +namespace RmsVoltageMin { struct TypeInfo { - using Type = int64_t; - using DecodableType = int64_t; - using DecodableArgType = int64_t; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Int48s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMin::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Int48s -namespace Int56s { +} // namespace RmsVoltageMin +namespace RmsVoltageMax { struct TypeInfo { - using Type = int64_t; - using DecodableType = int64_t; - using DecodableArgType = int64_t; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Int56s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMax::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Int56s -namespace Int64s { +} // namespace RmsVoltageMax +namespace RmsCurrent { struct TypeInfo { - using Type = int64_t; - using DecodableType = int64_t; - using DecodableArgType = int64_t; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Int64s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrent::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Int64s -namespace Enum8 { +} // namespace RmsCurrent +namespace RmsCurrentMin { struct TypeInfo { - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Enum8::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMin::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Enum8 -namespace Enum16 { +} // namespace RmsCurrentMin +namespace RmsCurrentMax { struct TypeInfo { using Type = uint16_t; using DecodableType = uint16_t; using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Enum16::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMax::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Enum16 -namespace FloatSingle { +} // namespace RmsCurrentMax +namespace ActivePower { struct TypeInfo { - using Type = float; - using DecodableType = float; - using DecodableArgType = float; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::FloatSingle::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ActivePower::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace FloatSingle -namespace FloatDouble { +} // namespace ActivePower +namespace ActivePowerMin { struct TypeInfo { - using Type = double; - using DecodableType = double; - using DecodableArgType = double; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::FloatDouble::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMin::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace FloatDouble -namespace OctetString { +} // namespace ActivePowerMin +namespace ActivePowerMax { struct TypeInfo { - using Type = chip::ByteSpan; - using DecodableType = chip::ByteSpan; - using DecodableArgType = chip::ByteSpan; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::OctetString::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMax::Id; } static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 10; } }; -} // namespace OctetString -namespace ListInt8u { +} // namespace ActivePowerMax +namespace ReactivePower { struct TypeInfo { - using Type = chip::app::DataModel::List; - using DecodableType = chip::app::DataModel::DecodableList; - using DecodableArgType = const chip::app::DataModel::DecodableList &; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ListInt8u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ReactivePower::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ListInt8u -namespace ListOctetString { +} // namespace ReactivePower +namespace ApparentPower { struct TypeInfo { - using Type = chip::app::DataModel::List; - using DecodableType = chip::app::DataModel::DecodableList; - using DecodableArgType = const chip::app::DataModel::DecodableList &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ListOctetString::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ApparentPower::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ListOctetString -namespace ListStructOctetString { +} // namespace ApparentPower +namespace PowerFactor { struct TypeInfo { - using Type = chip::app::DataModel::List; - using DecodableType = - chip::app::DataModel::DecodableList; - using DecodableArgType = - const chip::app::DataModel::DecodableList &; + using Type = int8_t; + using DecodableType = int8_t; + using DecodableArgType = int8_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ListStructOctetString::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::PowerFactor::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ListStructOctetString -namespace LongOctetString { +} // namespace PowerFactor +namespace AverageRmsVoltageMeasurementPeriod { struct TypeInfo { - using Type = chip::ByteSpan; - using DecodableType = chip::ByteSpan; - using DecodableArgType = chip::ByteSpan; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::LongOctetString::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsVoltageMeasurementPeriod::Id; } static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 1000; } }; -} // namespace LongOctetString -namespace CharString { +} // namespace AverageRmsVoltageMeasurementPeriod +namespace AverageRmsUnderVoltageCounter { struct TypeInfo { - using Type = chip::CharSpan; - using DecodableType = chip::CharSpan; - using DecodableArgType = chip::CharSpan; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::CharString::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsUnderVoltageCounter::Id; } static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 10; } }; -} // namespace CharString -namespace LongCharString { +} // namespace AverageRmsUnderVoltageCounter +namespace RmsExtremeOverVoltagePeriod { struct TypeInfo { - using Type = chip::CharSpan; - using DecodableType = chip::CharSpan; - using DecodableArgType = chip::CharSpan; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::LongCharString::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeOverVoltagePeriod::Id; } static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 1000; } }; -} // namespace LongCharString -namespace EpochUs { +} // namespace RmsExtremeOverVoltagePeriod +namespace RmsExtremeUnderVoltagePeriod { struct TypeInfo { - using Type = uint64_t; - using DecodableType = uint64_t; - using DecodableArgType = uint64_t; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::EpochUs::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeUnderVoltagePeriod::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace EpochUs -namespace EpochS { +} // namespace RmsExtremeUnderVoltagePeriod +namespace RmsVoltageSagPeriod { struct TypeInfo { - using Type = uint32_t; - using DecodableType = uint32_t; - using DecodableArgType = uint32_t; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::EpochS::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSagPeriod::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace EpochS -namespace VendorId { +} // namespace RmsVoltageSagPeriod +namespace RmsVoltageSwellPeriod { struct TypeInfo { - using Type = chip::VendorId; - using DecodableType = chip::VendorId; - using DecodableArgType = chip::VendorId; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::VendorId::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSwellPeriod::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace VendorId -namespace ListNullablesAndOptionalsStruct { +} // namespace RmsVoltageSwellPeriod +namespace AcVoltageMultiplier { struct TypeInfo { - using Type = chip::app::DataModel::List; - using DecodableType = - chip::app::DataModel::DecodableList; - using DecodableArgType = const chip::app::DataModel::DecodableList< - chip::app::Clusters::TestCluster::Structs::NullablesAndOptionalsStruct::DecodableType> &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ListNullablesAndOptionalsStruct::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AcVoltageMultiplier::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ListNullablesAndOptionalsStruct -namespace EnumAttr { +} // namespace AcVoltageMultiplier +namespace AcVoltageDivisor { struct TypeInfo { - using Type = chip::app::Clusters::TestCluster::SimpleEnum; - using DecodableType = chip::app::Clusters::TestCluster::SimpleEnum; - using DecodableArgType = chip::app::Clusters::TestCluster::SimpleEnum; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::EnumAttr::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AcVoltageDivisor::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace EnumAttr -namespace StructAttr { +} // namespace AcVoltageDivisor +namespace AcCurrentMultiplier { struct TypeInfo { - using Type = chip::app::Clusters::TestCluster::Structs::SimpleStruct::Type; - using DecodableType = chip::app::Clusters::TestCluster::Structs::SimpleStruct::DecodableType; - using DecodableArgType = const chip::app::Clusters::TestCluster::Structs::SimpleStruct::DecodableType &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::StructAttr::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AcCurrentMultiplier::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace StructAttr -namespace RangeRestrictedInt8u { +} // namespace AcCurrentMultiplier +namespace AcCurrentDivisor { struct TypeInfo { - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RangeRestrictedInt8u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AcCurrentDivisor::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RangeRestrictedInt8u -namespace RangeRestrictedInt8s { +} // namespace AcCurrentDivisor +namespace AcPowerMultiplier { struct TypeInfo { - using Type = int8_t; - using DecodableType = int8_t; - using DecodableArgType = int8_t; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RangeRestrictedInt8s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AcPowerMultiplier::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RangeRestrictedInt8s -namespace RangeRestrictedInt16u { +} // namespace AcPowerMultiplier +namespace AcPowerDivisor { struct TypeInfo { using Type = uint16_t; using DecodableType = uint16_t; using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RangeRestrictedInt16u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AcPowerDivisor::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RangeRestrictedInt16u -namespace RangeRestrictedInt16s { +} // namespace AcPowerDivisor +namespace OverloadAlarmsMask { +struct TypeInfo +{ + using Type = uint8_t; + using DecodableType = uint8_t; + using DecodableArgType = uint8_t; + + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::OverloadAlarmsMask::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace OverloadAlarmsMask +namespace VoltageOverload { struct TypeInfo { using Type = int16_t; using DecodableType = int16_t; using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RangeRestrictedInt16s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::VoltageOverload::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RangeRestrictedInt16s -namespace ListLongOctetString { +} // namespace VoltageOverload +namespace CurrentOverload { struct TypeInfo { - using Type = chip::app::DataModel::List; - using DecodableType = chip::app::DataModel::DecodableList; - using DecodableArgType = const chip::app::DataModel::DecodableList &; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ListLongOctetString::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::CurrentOverload::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ListLongOctetString -namespace ListFabricScoped { +} // namespace CurrentOverload +namespace AcOverloadAlarmsMask { struct TypeInfo { - using Type = chip::app::DataModel::List; - using DecodableType = - chip::app::DataModel::DecodableList; - using DecodableArgType = - const chip::app::DataModel::DecodableList &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ListFabricScoped::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AcOverloadAlarmsMask::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ListFabricScoped -namespace TimedWriteBoolean { +} // namespace AcOverloadAlarmsMask +namespace AcVoltageOverload { struct TypeInfo { - using Type = bool; - using DecodableType = bool; - using DecodableArgType = bool; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::TimedWriteBoolean::Id; } - static constexpr bool MustUseTimedWrite() { return true; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AcVoltageOverload::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace TimedWriteBoolean -namespace GeneralErrorBoolean { +} // namespace AcVoltageOverload +namespace AcCurrentOverload { struct TypeInfo { - using Type = bool; - using DecodableType = bool; - using DecodableArgType = bool; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::GeneralErrorBoolean::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AcCurrentOverload::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace GeneralErrorBoolean -namespace ClusterErrorBoolean { +} // namespace AcCurrentOverload +namespace AcActivePowerOverload { struct TypeInfo { - using Type = bool; - using DecodableType = bool; - using DecodableArgType = bool; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ClusterErrorBoolean::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AcActivePowerOverload::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ClusterErrorBoolean -namespace Unsupported { +} // namespace AcActivePowerOverload +namespace AcReactivePowerOverload { struct TypeInfo { - using Type = bool; - using DecodableType = bool; - using DecodableArgType = bool; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Unsupported::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AcReactivePowerOverload::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Unsupported -namespace NullableBoolean { +} // namespace AcReactivePowerOverload +namespace AverageRmsOverVoltage { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableBoolean::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsOverVoltage::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableBoolean -namespace NullableBitmap8 { +} // namespace AverageRmsOverVoltage +namespace AverageRmsUnderVoltage { struct TypeInfo { - using Type = chip::app::DataModel::Nullable>; - using DecodableType = chip::app::DataModel::Nullable>; - using DecodableArgType = - const chip::app::DataModel::Nullable> &; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableBitmap8::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsUnderVoltage::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableBitmap8 -namespace NullableBitmap16 { +} // namespace AverageRmsUnderVoltage +namespace RmsExtremeOverVoltage { struct TypeInfo { - using Type = chip::app::DataModel::Nullable>; - using DecodableType = chip::app::DataModel::Nullable>; - using DecodableArgType = - const chip::app::DataModel::Nullable> &; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableBitmap16::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeOverVoltage::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableBitmap16 -namespace NullableBitmap32 { +} // namespace RmsExtremeOverVoltage +namespace RmsExtremeUnderVoltage { struct TypeInfo { - using Type = chip::app::DataModel::Nullable>; - using DecodableType = chip::app::DataModel::Nullable>; - using DecodableArgType = - const chip::app::DataModel::Nullable> &; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableBitmap32::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeUnderVoltage::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableBitmap32 -namespace NullableBitmap64 { +} // namespace RmsExtremeUnderVoltage +namespace RmsVoltageSag { struct TypeInfo { - using Type = chip::app::DataModel::Nullable>; - using DecodableType = chip::app::DataModel::Nullable>; - using DecodableArgType = - const chip::app::DataModel::Nullable> &; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableBitmap64::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSag::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableBitmap64 -namespace NullableInt8u { +} // namespace RmsVoltageSag +namespace RmsVoltageSwell { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt8u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSwell::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableInt8u -namespace NullableInt16u { +} // namespace RmsVoltageSwell +namespace LineCurrentPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt16u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::LineCurrentPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableInt16u -namespace NullableInt24u { +} // namespace LineCurrentPhaseB +namespace ActiveCurrentPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt24u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ActiveCurrentPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableInt24u -namespace NullableInt32u { +} // namespace ActiveCurrentPhaseB +namespace ReactiveCurrentPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt32u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ReactiveCurrentPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableInt32u -namespace NullableInt40u { +} // namespace ReactiveCurrentPhaseB +namespace RmsVoltagePhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt40u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltagePhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableInt40u -namespace NullableInt48u { +} // namespace RmsVoltagePhaseB +namespace RmsVoltageMinPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt48u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMinPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableInt48u -namespace NullableInt56u { +} // namespace RmsVoltageMinPhaseB +namespace RmsVoltageMaxPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt56u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMaxPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableInt56u -namespace NullableInt64u { +} // namespace RmsVoltageMaxPhaseB +namespace RmsCurrentPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt64u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableInt64u -namespace NullableInt8s { +} // namespace RmsCurrentPhaseB +namespace RmsCurrentMinPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt8s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMinPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableInt8s -namespace NullableInt16s { +} // namespace RmsCurrentMinPhaseB +namespace RmsCurrentMaxPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt16s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMaxPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableInt16s -namespace NullableInt24s { +} // namespace RmsCurrentMaxPhaseB +namespace ActivePowerPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt24s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableInt24s -namespace NullableInt32s { +} // namespace ActivePowerPhaseB +namespace ActivePowerMinPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt32s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMinPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableInt32s -namespace NullableInt40s { +} // namespace ActivePowerMinPhaseB +namespace ActivePowerMaxPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt40s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMaxPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableInt40s -namespace NullableInt48s { +} // namespace ActivePowerMaxPhaseB +namespace ReactivePowerPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt48s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ReactivePowerPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableInt48s -namespace NullableInt56s { +} // namespace ReactivePowerPhaseB +namespace ApparentPowerPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; - - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt56s::Id; } + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; + + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ApparentPowerPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableInt56s -namespace NullableInt64s { +} // namespace ApparentPowerPhaseB +namespace PowerFactorPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = int8_t; + using DecodableType = int8_t; + using DecodableArgType = int8_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt64s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::PowerFactorPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableInt64s -namespace NullableEnum8 { +} // namespace PowerFactorPhaseB +namespace AverageRmsVoltageMeasurementPeriodPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableEnum8::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableEnum8 -namespace NullableEnum16 { +} // namespace AverageRmsVoltageMeasurementPeriodPhaseB +namespace AverageRmsOverVoltageCounterPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableEnum16::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsOverVoltageCounterPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableEnum16 -namespace NullableFloatSingle { +} // namespace AverageRmsOverVoltageCounterPhaseB +namespace AverageRmsUnderVoltageCounterPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableFloatSingle::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsUnderVoltageCounterPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableFloatSingle -namespace NullableFloatDouble { +} // namespace AverageRmsUnderVoltageCounterPhaseB +namespace RmsExtremeOverVoltagePeriodPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableFloatDouble::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeOverVoltagePeriodPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableFloatDouble -namespace NullableOctetString { +} // namespace RmsExtremeOverVoltagePeriodPhaseB +namespace RmsExtremeUnderVoltagePeriodPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableOctetString::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeUnderVoltagePeriodPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 10; } }; -} // namespace NullableOctetString -namespace NullableCharString { +} // namespace RmsExtremeUnderVoltagePeriodPhaseB +namespace RmsVoltageSagPeriodPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableCharString::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSagPeriodPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 10; } }; -} // namespace NullableCharString -namespace NullableEnumAttr { +} // namespace RmsVoltageSagPeriodPhaseB +namespace RmsVoltageSwellPeriodPhaseB { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableEnumAttr::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSwellPeriodPhaseB::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableEnumAttr -namespace NullableStruct { +} // namespace RmsVoltageSwellPeriodPhaseB +namespace LineCurrentPhaseC { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = - const chip::app::DataModel::Nullable &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableStruct::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::LineCurrentPhaseC::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableStruct -namespace NullableRangeRestrictedInt8u { +} // namespace LineCurrentPhaseC +namespace ActiveCurrentPhaseC { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableRangeRestrictedInt8u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ActiveCurrentPhaseC::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableRangeRestrictedInt8u -namespace NullableRangeRestrictedInt8s { +} // namespace ActiveCurrentPhaseC +namespace ReactiveCurrentPhaseC { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableRangeRestrictedInt8s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ReactiveCurrentPhaseC::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableRangeRestrictedInt8s -namespace NullableRangeRestrictedInt16u { +} // namespace ReactiveCurrentPhaseC +namespace RmsVoltagePhaseC { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableRangeRestrictedInt16u::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltagePhaseC::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableRangeRestrictedInt16u -namespace NullableRangeRestrictedInt16s { +} // namespace RmsVoltagePhaseC +namespace RmsVoltageMinPhaseC { struct TypeInfo { - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NullableRangeRestrictedInt16s::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMinPhaseC::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace NullableRangeRestrictedInt16s -namespace GeneratedCommandList { -struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo +} // namespace RmsVoltageMinPhaseC +namespace RmsVoltageMaxPhaseC { +struct TypeInfo { - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; + + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMaxPhaseC::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace GeneratedCommandList -namespace AcceptedCommandList { -struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo +} // namespace RmsVoltageMaxPhaseC +namespace RmsCurrentPhaseC { +struct TypeInfo { - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; + + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentPhaseC::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AcceptedCommandList -namespace AttributeList { -struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo +} // namespace RmsCurrentPhaseC +namespace RmsCurrentMinPhaseC { +struct TypeInfo { - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; + + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMinPhaseC::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AttributeList -namespace FeatureMap { -struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo +} // namespace RmsCurrentMinPhaseC +namespace RmsCurrentMaxPhaseC { +struct TypeInfo { - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; + + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMaxPhaseC::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace FeatureMap -namespace ClusterRevision { -struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo +} // namespace RmsCurrentMaxPhaseC +namespace ActivePowerPhaseC { +struct TypeInfo { - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } -}; -} // namespace ClusterRevision + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerPhaseC::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace ActivePowerPhaseC +namespace ActivePowerMinPhaseC { struct TypeInfo { - struct DecodableType - { - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - Attributes::Boolean::TypeInfo::DecodableType boolean = static_cast(0); - Attributes::Bitmap8::TypeInfo::DecodableType bitmap8 = - static_cast>(0); - Attributes::Bitmap16::TypeInfo::DecodableType bitmap16 = - static_cast>(0); - Attributes::Bitmap32::TypeInfo::DecodableType bitmap32 = - static_cast>(0); - Attributes::Bitmap64::TypeInfo::DecodableType bitmap64 = - static_cast>(0); - Attributes::Int8u::TypeInfo::DecodableType int8u = static_cast(0); - Attributes::Int16u::TypeInfo::DecodableType int16u = static_cast(0); - Attributes::Int24u::TypeInfo::DecodableType int24u = static_cast(0); - Attributes::Int32u::TypeInfo::DecodableType int32u = static_cast(0); - Attributes::Int40u::TypeInfo::DecodableType int40u = static_cast(0); - Attributes::Int48u::TypeInfo::DecodableType int48u = static_cast(0); - Attributes::Int56u::TypeInfo::DecodableType int56u = static_cast(0); - Attributes::Int64u::TypeInfo::DecodableType int64u = static_cast(0); - Attributes::Int8s::TypeInfo::DecodableType int8s = static_cast(0); - Attributes::Int16s::TypeInfo::DecodableType int16s = static_cast(0); - Attributes::Int24s::TypeInfo::DecodableType int24s = static_cast(0); - Attributes::Int32s::TypeInfo::DecodableType int32s = static_cast(0); - Attributes::Int40s::TypeInfo::DecodableType int40s = static_cast(0); - Attributes::Int48s::TypeInfo::DecodableType int48s = static_cast(0); - Attributes::Int56s::TypeInfo::DecodableType int56s = static_cast(0); - Attributes::Int64s::TypeInfo::DecodableType int64s = static_cast(0); - Attributes::Enum8::TypeInfo::DecodableType enum8 = static_cast(0); - Attributes::Enum16::TypeInfo::DecodableType enum16 = static_cast(0); - Attributes::FloatSingle::TypeInfo::DecodableType floatSingle = static_cast(0); - Attributes::FloatDouble::TypeInfo::DecodableType floatDouble = static_cast(0); - Attributes::OctetString::TypeInfo::DecodableType octetString; - Attributes::ListInt8u::TypeInfo::DecodableType listInt8u; - Attributes::ListOctetString::TypeInfo::DecodableType listOctetString; - Attributes::ListStructOctetString::TypeInfo::DecodableType listStructOctetString; - Attributes::LongOctetString::TypeInfo::DecodableType longOctetString; - Attributes::CharString::TypeInfo::DecodableType charString; - Attributes::LongCharString::TypeInfo::DecodableType longCharString; - Attributes::EpochUs::TypeInfo::DecodableType epochUs = static_cast(0); - Attributes::EpochS::TypeInfo::DecodableType epochS = static_cast(0); - Attributes::VendorId::TypeInfo::DecodableType vendorId = static_cast(0); - Attributes::ListNullablesAndOptionalsStruct::TypeInfo::DecodableType listNullablesAndOptionalsStruct; - Attributes::EnumAttr::TypeInfo::DecodableType enumAttr = static_cast(0); - Attributes::StructAttr::TypeInfo::DecodableType structAttr; - Attributes::RangeRestrictedInt8u::TypeInfo::DecodableType rangeRestrictedInt8u = static_cast(0); - Attributes::RangeRestrictedInt8s::TypeInfo::DecodableType rangeRestrictedInt8s = static_cast(0); - Attributes::RangeRestrictedInt16u::TypeInfo::DecodableType rangeRestrictedInt16u = static_cast(0); - Attributes::RangeRestrictedInt16s::TypeInfo::DecodableType rangeRestrictedInt16s = static_cast(0); - Attributes::ListLongOctetString::TypeInfo::DecodableType listLongOctetString; - Attributes::ListFabricScoped::TypeInfo::DecodableType listFabricScoped; - Attributes::TimedWriteBoolean::TypeInfo::DecodableType timedWriteBoolean = static_cast(0); - Attributes::GeneralErrorBoolean::TypeInfo::DecodableType generalErrorBoolean = static_cast(0); - Attributes::ClusterErrorBoolean::TypeInfo::DecodableType clusterErrorBoolean = static_cast(0); - Attributes::Unsupported::TypeInfo::DecodableType unsupported = static_cast(0); - Attributes::NullableBoolean::TypeInfo::DecodableType nullableBoolean; - Attributes::NullableBitmap8::TypeInfo::DecodableType nullableBitmap8; - Attributes::NullableBitmap16::TypeInfo::DecodableType nullableBitmap16; - Attributes::NullableBitmap32::TypeInfo::DecodableType nullableBitmap32; - Attributes::NullableBitmap64::TypeInfo::DecodableType nullableBitmap64; - Attributes::NullableInt8u::TypeInfo::DecodableType nullableInt8u; - Attributes::NullableInt16u::TypeInfo::DecodableType nullableInt16u; - Attributes::NullableInt24u::TypeInfo::DecodableType nullableInt24u; - Attributes::NullableInt32u::TypeInfo::DecodableType nullableInt32u; - Attributes::NullableInt40u::TypeInfo::DecodableType nullableInt40u; - Attributes::NullableInt48u::TypeInfo::DecodableType nullableInt48u; - Attributes::NullableInt56u::TypeInfo::DecodableType nullableInt56u; - Attributes::NullableInt64u::TypeInfo::DecodableType nullableInt64u; - Attributes::NullableInt8s::TypeInfo::DecodableType nullableInt8s; - Attributes::NullableInt16s::TypeInfo::DecodableType nullableInt16s; - Attributes::NullableInt24s::TypeInfo::DecodableType nullableInt24s; - Attributes::NullableInt32s::TypeInfo::DecodableType nullableInt32s; - Attributes::NullableInt40s::TypeInfo::DecodableType nullableInt40s; - Attributes::NullableInt48s::TypeInfo::DecodableType nullableInt48s; - Attributes::NullableInt56s::TypeInfo::DecodableType nullableInt56s; - Attributes::NullableInt64s::TypeInfo::DecodableType nullableInt64s; - Attributes::NullableEnum8::TypeInfo::DecodableType nullableEnum8; - Attributes::NullableEnum16::TypeInfo::DecodableType nullableEnum16; - Attributes::NullableFloatSingle::TypeInfo::DecodableType nullableFloatSingle; - Attributes::NullableFloatDouble::TypeInfo::DecodableType nullableFloatDouble; - Attributes::NullableOctetString::TypeInfo::DecodableType nullableOctetString; - Attributes::NullableCharString::TypeInfo::DecodableType nullableCharString; - Attributes::NullableEnumAttr::TypeInfo::DecodableType nullableEnumAttr; - Attributes::NullableStruct::TypeInfo::DecodableType nullableStruct; - Attributes::NullableRangeRestrictedInt8u::TypeInfo::DecodableType nullableRangeRestrictedInt8u; - Attributes::NullableRangeRestrictedInt8s::TypeInfo::DecodableType nullableRangeRestrictedInt8s; - Attributes::NullableRangeRestrictedInt16u::TypeInfo::DecodableType nullableRangeRestrictedInt16u; - Attributes::NullableRangeRestrictedInt16s::TypeInfo::DecodableType nullableRangeRestrictedInt16s; - Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; - Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; - Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); - }; + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMinPhaseC::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace Attributes -namespace Events { -namespace TestEvent { -static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info; - -enum class Fields +} // namespace ActivePowerMinPhaseC +namespace ActivePowerMaxPhaseC { +struct TypeInfo { - kArg1 = 1, - kArg2 = 2, - kArg3 = 3, - kArg4 = 4, - kArg5 = 5, - kArg6 = 6, -}; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; -struct Type + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMaxPhaseC::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace ActivePowerMaxPhaseC +namespace ReactivePowerPhaseC { +struct TypeInfo { -public: - static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } - static constexpr EventId GetEventId() { return Events::TestEvent::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr bool kIsFabricScoped = false; - - uint8_t arg1 = static_cast(0); - SimpleEnum arg2 = static_cast(0); - bool arg3 = static_cast(0); - Structs::SimpleStruct::Type arg4; - DataModel::List arg5; - DataModel::List arg6; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ReactivePowerPhaseC::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace ReactivePowerPhaseC +namespace ApparentPowerPhaseC { +struct TypeInfo { -public: - static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } - static constexpr EventId GetEventId() { return Events::TestEvent::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - uint8_t arg1 = static_cast(0); - SimpleEnum arg2 = static_cast(0); - bool arg3 = static_cast(0); - Structs::SimpleStruct::DecodableType arg4; - DataModel::DecodableList arg5; - DataModel::DecodableList arg6; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ApparentPowerPhaseC::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace TestEvent -namespace TestFabricScopedEvent { -static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info; - -enum class Fields +} // namespace ApparentPowerPhaseC +namespace PowerFactorPhaseC { +struct TypeInfo { - kArg1 = 254, -}; + using Type = int8_t; + using DecodableType = int8_t; + using DecodableArgType = int8_t; -struct Type + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::PowerFactorPhaseC::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace PowerFactorPhaseC +namespace AverageRmsVoltageMeasurementPeriodPhaseC { +struct TypeInfo { -public: - static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } - static constexpr EventId GetEventId() { return Events::TestFabricScopedEvent::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr bool kIsFabricScoped = true; - - chip::FabricIndex arg1 = static_cast(0); - - auto GetFabricIndex() const { return arg1; } + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace AverageRmsVoltageMeasurementPeriodPhaseC +namespace AverageRmsOverVoltageCounterPhaseC { +struct TypeInfo { -public: - static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } - static constexpr EventId GetEventId() { return Events::TestFabricScopedEvent::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - - chip::FabricIndex arg1 = static_cast(0); + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsOverVoltageCounterPhaseC::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace TestFabricScopedEvent -} // namespace Events -} // namespace TestCluster -namespace Messaging { - -namespace Commands { -// Forward-declarations so we can reference these later. - -namespace DisplayMessage { -struct Type; -struct DecodableType; -} // namespace DisplayMessage +} // namespace AverageRmsOverVoltageCounterPhaseC +namespace AverageRmsUnderVoltageCounterPhaseC { +struct TypeInfo +{ + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; -namespace GetLastMessage { -struct Type; -struct DecodableType; -} // namespace GetLastMessage - -namespace CancelMessage { -struct Type; -struct DecodableType; -} // namespace CancelMessage - -namespace MessageConfirmation { -struct Type; -struct DecodableType; -} // namespace MessageConfirmation - -namespace DisplayProtectedMessage { -struct Type; -struct DecodableType; -} // namespace DisplayProtectedMessage - -namespace GetMessageCancellation { -struct Type; -struct DecodableType; -} // namespace GetMessageCancellation - -namespace CancelAllMessages { -struct Type; -struct DecodableType; -} // namespace CancelAllMessages - -} // namespace Commands - -namespace Commands { -namespace DisplayMessage { -enum class Fields -{ - kMessageId = 0, - kMessageControl = 1, - kStartTime = 2, - kDurationInMinutes = 3, - kMessage = 4, - kOptionalExtendedMessageControl = 5, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::DisplayMessage::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - - uint32_t messageId = static_cast(0); - chip::BitMask messageControl = static_cast>(0); - uint32_t startTime = static_cast(0); - uint16_t durationInMinutes = static_cast(0); - chip::CharSpan message; - chip::BitMask optionalExtendedMessageControl = - static_cast>(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; - - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsUnderVoltageCounterPhaseC::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace AverageRmsUnderVoltageCounterPhaseC +namespace RmsExtremeOverVoltagePeriodPhaseC { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::DisplayMessage::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - uint32_t messageId = static_cast(0); - chip::BitMask messageControl = static_cast>(0); - uint32_t startTime = static_cast(0); - uint16_t durationInMinutes = static_cast(0); - chip::CharSpan message; - chip::BitMask optionalExtendedMessageControl = - static_cast>(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace DisplayMessage -namespace GetLastMessage { -enum class Fields -{ + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeOverVoltagePeriodPhaseC::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct Type +} // namespace RmsExtremeOverVoltagePeriodPhaseC +namespace RmsExtremeUnderVoltagePeriodPhaseC { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetLastMessage::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeUnderVoltagePeriodPhaseC::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace RmsExtremeUnderVoltagePeriodPhaseC +namespace RmsVoltageSagPeriodPhaseC { +struct TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::GetLastMessage::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace GetLastMessage -namespace CancelMessage { -enum class Fields -{ - kMessageId = 0, - kMessageControl = 1, + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSagPeriodPhaseC::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct Type +} // namespace RmsVoltageSagPeriodPhaseC +namespace RmsVoltageSwellPeriodPhaseC { +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::CancelMessage::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - - uint32_t messageId = static_cast(0); - chip::BitMask messageControl = static_cast>(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSwellPeriodPhaseC::Id; } + static constexpr bool MustUseTimedWrite() { return false; } }; - -struct DecodableType +} // namespace RmsVoltageSwellPeriodPhaseC +namespace GeneratedCommandList { +struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::CancelMessage::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - - uint32_t messageId = static_cast(0); - chip::BitMask messageControl = static_cast>(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } }; -}; // namespace CancelMessage -namespace MessageConfirmation { -enum class Fields +} // namespace GeneratedCommandList +namespace AcceptedCommandList { +struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo { - kMessageId = 0, - kConfirmationTime = 1, - kMessageConfirmationControl = 2, - kMessageResponse = 3, + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } }; - -struct Type +} // namespace AcceptedCommandList +namespace AttributeList { +struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::MessageConfirmation::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - - uint32_t messageId = static_cast(0); - uint32_t confirmationTime = static_cast(0); - uint8_t messageConfirmationControl = static_cast(0); - chip::ByteSpan messageResponse; - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; - - static constexpr bool MustUseTimedInvoke() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } }; - -struct DecodableType +} // namespace AttributeList +namespace FeatureMap { +struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo { -public: - static constexpr CommandId GetCommandId() { return Commands::MessageConfirmation::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - - uint32_t messageId = static_cast(0); - uint32_t confirmationTime = static_cast(0); - uint8_t messageConfirmationControl = static_cast(0); - chip::ByteSpan messageResponse; - CHIP_ERROR Decode(TLV::TLVReader & reader); + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } }; -}; // namespace MessageConfirmation -namespace DisplayProtectedMessage { -enum class Fields +} // namespace FeatureMap +namespace ClusterRevision { +struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo { - kMessageId = 0, - kMessageControl = 1, - kStartTime = 2, - kDurationInMinutes = 3, - kMessage = 4, - kOptionalExtendedMessageControl = 5, + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } }; +} // namespace ClusterRevision -struct Type +struct TypeInfo { -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::DisplayProtectedMessage::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - - uint32_t messageId = static_cast(0); - chip::BitMask messageControl = static_cast>(0); - uint32_t startTime = static_cast(0); - uint16_t durationInMinutes = static_cast(0); - chip::CharSpan message; - chip::BitMask optionalExtendedMessageControl = - static_cast>(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + struct DecodableType + { + static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - using ResponseType = DataModel::NullObjectType; + CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::DisplayProtectedMessage::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - - uint32_t messageId = static_cast(0); - chip::BitMask messageControl = static_cast>(0); - uint32_t startTime = static_cast(0); - uint16_t durationInMinutes = static_cast(0); - chip::CharSpan message; - chip::BitMask optionalExtendedMessageControl = - static_cast>(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); + Attributes::MeasurementType::TypeInfo::DecodableType measurementType = static_cast(0); + Attributes::DcVoltage::TypeInfo::DecodableType dcVoltage = static_cast(0); + Attributes::DcVoltageMin::TypeInfo::DecodableType dcVoltageMin = static_cast(0); + Attributes::DcVoltageMax::TypeInfo::DecodableType dcVoltageMax = static_cast(0); + Attributes::DcCurrent::TypeInfo::DecodableType dcCurrent = static_cast(0); + Attributes::DcCurrentMin::TypeInfo::DecodableType dcCurrentMin = static_cast(0); + Attributes::DcCurrentMax::TypeInfo::DecodableType dcCurrentMax = static_cast(0); + Attributes::DcPower::TypeInfo::DecodableType dcPower = static_cast(0); + Attributes::DcPowerMin::TypeInfo::DecodableType dcPowerMin = static_cast(0); + Attributes::DcPowerMax::TypeInfo::DecodableType dcPowerMax = static_cast(0); + Attributes::DcVoltageMultiplier::TypeInfo::DecodableType dcVoltageMultiplier = static_cast(0); + Attributes::DcVoltageDivisor::TypeInfo::DecodableType dcVoltageDivisor = static_cast(0); + Attributes::DcCurrentMultiplier::TypeInfo::DecodableType dcCurrentMultiplier = static_cast(0); + Attributes::DcCurrentDivisor::TypeInfo::DecodableType dcCurrentDivisor = static_cast(0); + Attributes::DcPowerMultiplier::TypeInfo::DecodableType dcPowerMultiplier = static_cast(0); + Attributes::DcPowerDivisor::TypeInfo::DecodableType dcPowerDivisor = static_cast(0); + Attributes::AcFrequency::TypeInfo::DecodableType acFrequency = static_cast(0); + Attributes::AcFrequencyMin::TypeInfo::DecodableType acFrequencyMin = static_cast(0); + Attributes::AcFrequencyMax::TypeInfo::DecodableType acFrequencyMax = static_cast(0); + Attributes::NeutralCurrent::TypeInfo::DecodableType neutralCurrent = static_cast(0); + Attributes::TotalActivePower::TypeInfo::DecodableType totalActivePower = static_cast(0); + Attributes::TotalReactivePower::TypeInfo::DecodableType totalReactivePower = static_cast(0); + Attributes::TotalApparentPower::TypeInfo::DecodableType totalApparentPower = static_cast(0); + Attributes::Measured1stHarmonicCurrent::TypeInfo::DecodableType measured1stHarmonicCurrent = static_cast(0); + Attributes::Measured3rdHarmonicCurrent::TypeInfo::DecodableType measured3rdHarmonicCurrent = static_cast(0); + Attributes::Measured5thHarmonicCurrent::TypeInfo::DecodableType measured5thHarmonicCurrent = static_cast(0); + Attributes::Measured7thHarmonicCurrent::TypeInfo::DecodableType measured7thHarmonicCurrent = static_cast(0); + Attributes::Measured9thHarmonicCurrent::TypeInfo::DecodableType measured9thHarmonicCurrent = static_cast(0); + Attributes::Measured11thHarmonicCurrent::TypeInfo::DecodableType measured11thHarmonicCurrent = static_cast(0); + Attributes::MeasuredPhase1stHarmonicCurrent::TypeInfo::DecodableType measuredPhase1stHarmonicCurrent = + static_cast(0); + Attributes::MeasuredPhase3rdHarmonicCurrent::TypeInfo::DecodableType measuredPhase3rdHarmonicCurrent = + static_cast(0); + Attributes::MeasuredPhase5thHarmonicCurrent::TypeInfo::DecodableType measuredPhase5thHarmonicCurrent = + static_cast(0); + Attributes::MeasuredPhase7thHarmonicCurrent::TypeInfo::DecodableType measuredPhase7thHarmonicCurrent = + static_cast(0); + Attributes::MeasuredPhase9thHarmonicCurrent::TypeInfo::DecodableType measuredPhase9thHarmonicCurrent = + static_cast(0); + Attributes::MeasuredPhase11thHarmonicCurrent::TypeInfo::DecodableType measuredPhase11thHarmonicCurrent = + static_cast(0); + Attributes::AcFrequencyMultiplier::TypeInfo::DecodableType acFrequencyMultiplier = static_cast(0); + Attributes::AcFrequencyDivisor::TypeInfo::DecodableType acFrequencyDivisor = static_cast(0); + Attributes::PowerMultiplier::TypeInfo::DecodableType powerMultiplier = static_cast(0); + Attributes::PowerDivisor::TypeInfo::DecodableType powerDivisor = static_cast(0); + Attributes::HarmonicCurrentMultiplier::TypeInfo::DecodableType harmonicCurrentMultiplier = static_cast(0); + Attributes::PhaseHarmonicCurrentMultiplier::TypeInfo::DecodableType phaseHarmonicCurrentMultiplier = static_cast(0); + Attributes::InstantaneousVoltage::TypeInfo::DecodableType instantaneousVoltage = static_cast(0); + Attributes::InstantaneousLineCurrent::TypeInfo::DecodableType instantaneousLineCurrent = static_cast(0); + Attributes::InstantaneousActiveCurrent::TypeInfo::DecodableType instantaneousActiveCurrent = static_cast(0); + Attributes::InstantaneousReactiveCurrent::TypeInfo::DecodableType instantaneousReactiveCurrent = static_cast(0); + Attributes::InstantaneousPower::TypeInfo::DecodableType instantaneousPower = static_cast(0); + Attributes::RmsVoltage::TypeInfo::DecodableType rmsVoltage = static_cast(0); + Attributes::RmsVoltageMin::TypeInfo::DecodableType rmsVoltageMin = static_cast(0); + Attributes::RmsVoltageMax::TypeInfo::DecodableType rmsVoltageMax = static_cast(0); + Attributes::RmsCurrent::TypeInfo::DecodableType rmsCurrent = static_cast(0); + Attributes::RmsCurrentMin::TypeInfo::DecodableType rmsCurrentMin = static_cast(0); + Attributes::RmsCurrentMax::TypeInfo::DecodableType rmsCurrentMax = static_cast(0); + Attributes::ActivePower::TypeInfo::DecodableType activePower = static_cast(0); + Attributes::ActivePowerMin::TypeInfo::DecodableType activePowerMin = static_cast(0); + Attributes::ActivePowerMax::TypeInfo::DecodableType activePowerMax = static_cast(0); + Attributes::ReactivePower::TypeInfo::DecodableType reactivePower = static_cast(0); + Attributes::ApparentPower::TypeInfo::DecodableType apparentPower = static_cast(0); + Attributes::PowerFactor::TypeInfo::DecodableType powerFactor = static_cast(0); + Attributes::AverageRmsVoltageMeasurementPeriod::TypeInfo::DecodableType averageRmsVoltageMeasurementPeriod = + static_cast(0); + Attributes::AverageRmsUnderVoltageCounter::TypeInfo::DecodableType averageRmsUnderVoltageCounter = static_cast(0); + Attributes::RmsExtremeOverVoltagePeriod::TypeInfo::DecodableType rmsExtremeOverVoltagePeriod = static_cast(0); + Attributes::RmsExtremeUnderVoltagePeriod::TypeInfo::DecodableType rmsExtremeUnderVoltagePeriod = static_cast(0); + Attributes::RmsVoltageSagPeriod::TypeInfo::DecodableType rmsVoltageSagPeriod = static_cast(0); + Attributes::RmsVoltageSwellPeriod::TypeInfo::DecodableType rmsVoltageSwellPeriod = static_cast(0); + Attributes::AcVoltageMultiplier::TypeInfo::DecodableType acVoltageMultiplier = static_cast(0); + Attributes::AcVoltageDivisor::TypeInfo::DecodableType acVoltageDivisor = static_cast(0); + Attributes::AcCurrentMultiplier::TypeInfo::DecodableType acCurrentMultiplier = static_cast(0); + Attributes::AcCurrentDivisor::TypeInfo::DecodableType acCurrentDivisor = static_cast(0); + Attributes::AcPowerMultiplier::TypeInfo::DecodableType acPowerMultiplier = static_cast(0); + Attributes::AcPowerDivisor::TypeInfo::DecodableType acPowerDivisor = static_cast(0); + Attributes::OverloadAlarmsMask::TypeInfo::DecodableType overloadAlarmsMask = static_cast(0); + Attributes::VoltageOverload::TypeInfo::DecodableType voltageOverload = static_cast(0); + Attributes::CurrentOverload::TypeInfo::DecodableType currentOverload = static_cast(0); + Attributes::AcOverloadAlarmsMask::TypeInfo::DecodableType acOverloadAlarmsMask = static_cast(0); + Attributes::AcVoltageOverload::TypeInfo::DecodableType acVoltageOverload = static_cast(0); + Attributes::AcCurrentOverload::TypeInfo::DecodableType acCurrentOverload = static_cast(0); + Attributes::AcActivePowerOverload::TypeInfo::DecodableType acActivePowerOverload = static_cast(0); + Attributes::AcReactivePowerOverload::TypeInfo::DecodableType acReactivePowerOverload = static_cast(0); + Attributes::AverageRmsOverVoltage::TypeInfo::DecodableType averageRmsOverVoltage = static_cast(0); + Attributes::AverageRmsUnderVoltage::TypeInfo::DecodableType averageRmsUnderVoltage = static_cast(0); + Attributes::RmsExtremeOverVoltage::TypeInfo::DecodableType rmsExtremeOverVoltage = static_cast(0); + Attributes::RmsExtremeUnderVoltage::TypeInfo::DecodableType rmsExtremeUnderVoltage = static_cast(0); + Attributes::RmsVoltageSag::TypeInfo::DecodableType rmsVoltageSag = static_cast(0); + Attributes::RmsVoltageSwell::TypeInfo::DecodableType rmsVoltageSwell = static_cast(0); + Attributes::LineCurrentPhaseB::TypeInfo::DecodableType lineCurrentPhaseB = static_cast(0); + Attributes::ActiveCurrentPhaseB::TypeInfo::DecodableType activeCurrentPhaseB = static_cast(0); + Attributes::ReactiveCurrentPhaseB::TypeInfo::DecodableType reactiveCurrentPhaseB = static_cast(0); + Attributes::RmsVoltagePhaseB::TypeInfo::DecodableType rmsVoltagePhaseB = static_cast(0); + Attributes::RmsVoltageMinPhaseB::TypeInfo::DecodableType rmsVoltageMinPhaseB = static_cast(0); + Attributes::RmsVoltageMaxPhaseB::TypeInfo::DecodableType rmsVoltageMaxPhaseB = static_cast(0); + Attributes::RmsCurrentPhaseB::TypeInfo::DecodableType rmsCurrentPhaseB = static_cast(0); + Attributes::RmsCurrentMinPhaseB::TypeInfo::DecodableType rmsCurrentMinPhaseB = static_cast(0); + Attributes::RmsCurrentMaxPhaseB::TypeInfo::DecodableType rmsCurrentMaxPhaseB = static_cast(0); + Attributes::ActivePowerPhaseB::TypeInfo::DecodableType activePowerPhaseB = static_cast(0); + Attributes::ActivePowerMinPhaseB::TypeInfo::DecodableType activePowerMinPhaseB = static_cast(0); + Attributes::ActivePowerMaxPhaseB::TypeInfo::DecodableType activePowerMaxPhaseB = static_cast(0); + Attributes::ReactivePowerPhaseB::TypeInfo::DecodableType reactivePowerPhaseB = static_cast(0); + Attributes::ApparentPowerPhaseB::TypeInfo::DecodableType apparentPowerPhaseB = static_cast(0); + Attributes::PowerFactorPhaseB::TypeInfo::DecodableType powerFactorPhaseB = static_cast(0); + Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::TypeInfo::DecodableType averageRmsVoltageMeasurementPeriodPhaseB = + static_cast(0); + Attributes::AverageRmsOverVoltageCounterPhaseB::TypeInfo::DecodableType averageRmsOverVoltageCounterPhaseB = + static_cast(0); + Attributes::AverageRmsUnderVoltageCounterPhaseB::TypeInfo::DecodableType averageRmsUnderVoltageCounterPhaseB = + static_cast(0); + Attributes::RmsExtremeOverVoltagePeriodPhaseB::TypeInfo::DecodableType rmsExtremeOverVoltagePeriodPhaseB = + static_cast(0); + Attributes::RmsExtremeUnderVoltagePeriodPhaseB::TypeInfo::DecodableType rmsExtremeUnderVoltagePeriodPhaseB = + static_cast(0); + Attributes::RmsVoltageSagPeriodPhaseB::TypeInfo::DecodableType rmsVoltageSagPeriodPhaseB = static_cast(0); + Attributes::RmsVoltageSwellPeriodPhaseB::TypeInfo::DecodableType rmsVoltageSwellPeriodPhaseB = static_cast(0); + Attributes::LineCurrentPhaseC::TypeInfo::DecodableType lineCurrentPhaseC = static_cast(0); + Attributes::ActiveCurrentPhaseC::TypeInfo::DecodableType activeCurrentPhaseC = static_cast(0); + Attributes::ReactiveCurrentPhaseC::TypeInfo::DecodableType reactiveCurrentPhaseC = static_cast(0); + Attributes::RmsVoltagePhaseC::TypeInfo::DecodableType rmsVoltagePhaseC = static_cast(0); + Attributes::RmsVoltageMinPhaseC::TypeInfo::DecodableType rmsVoltageMinPhaseC = static_cast(0); + Attributes::RmsVoltageMaxPhaseC::TypeInfo::DecodableType rmsVoltageMaxPhaseC = static_cast(0); + Attributes::RmsCurrentPhaseC::TypeInfo::DecodableType rmsCurrentPhaseC = static_cast(0); + Attributes::RmsCurrentMinPhaseC::TypeInfo::DecodableType rmsCurrentMinPhaseC = static_cast(0); + Attributes::RmsCurrentMaxPhaseC::TypeInfo::DecodableType rmsCurrentMaxPhaseC = static_cast(0); + Attributes::ActivePowerPhaseC::TypeInfo::DecodableType activePowerPhaseC = static_cast(0); + Attributes::ActivePowerMinPhaseC::TypeInfo::DecodableType activePowerMinPhaseC = static_cast(0); + Attributes::ActivePowerMaxPhaseC::TypeInfo::DecodableType activePowerMaxPhaseC = static_cast(0); + Attributes::ReactivePowerPhaseC::TypeInfo::DecodableType reactivePowerPhaseC = static_cast(0); + Attributes::ApparentPowerPhaseC::TypeInfo::DecodableType apparentPowerPhaseC = static_cast(0); + Attributes::PowerFactorPhaseC::TypeInfo::DecodableType powerFactorPhaseC = static_cast(0); + Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::TypeInfo::DecodableType averageRmsVoltageMeasurementPeriodPhaseC = + static_cast(0); + Attributes::AverageRmsOverVoltageCounterPhaseC::TypeInfo::DecodableType averageRmsOverVoltageCounterPhaseC = + static_cast(0); + Attributes::AverageRmsUnderVoltageCounterPhaseC::TypeInfo::DecodableType averageRmsUnderVoltageCounterPhaseC = + static_cast(0); + Attributes::RmsExtremeOverVoltagePeriodPhaseC::TypeInfo::DecodableType rmsExtremeOverVoltagePeriodPhaseC = + static_cast(0); + Attributes::RmsExtremeUnderVoltagePeriodPhaseC::TypeInfo::DecodableType rmsExtremeUnderVoltagePeriodPhaseC = + static_cast(0); + Attributes::RmsVoltageSagPeriodPhaseC::TypeInfo::DecodableType rmsVoltageSagPeriodPhaseC = static_cast(0); + Attributes::RmsVoltageSwellPeriodPhaseC::TypeInfo::DecodableType rmsVoltageSwellPeriodPhaseC = static_cast(0); + Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; + Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; + Attributes::AttributeList::TypeInfo::DecodableType attributeList; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); + }; }; -}; // namespace DisplayProtectedMessage -namespace GetMessageCancellation { +} // namespace Attributes +} // namespace ElectricalMeasurement +namespace TestCluster { +namespace Structs { +namespace SimpleStruct { enum class Fields { - kEarliestImplementationTime = 0, + kA = 0, + kB = 1, + kC = 2, + kD = 3, + kE = 4, + kF = 5, + kG = 6, + kH = 7, }; struct Type { public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetMessageCancellation::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - - uint32_t earliestImplementationTime = static_cast(0); + uint8_t a = static_cast(0); + bool b = static_cast(0); + SimpleEnum c = static_cast(0); + chip::ByteSpan d; + chip::CharSpan e; + chip::BitMask f = static_cast>(0); + float g = static_cast(0); + double h = static_cast(0); - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + CHIP_ERROR Decode(TLV::TLVReader & reader); - using ResponseType = DataModel::NullObjectType; + static constexpr bool kIsFabricScoped = false; - static constexpr bool MustUseTimedInvoke() { return false; } + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::GetMessageCancellation::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } +using DecodableType = Type; - uint32_t earliestImplementationTime = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace GetMessageCancellation -namespace CancelAllMessages { +} // namespace SimpleStruct +namespace TestFabricScoped { enum class Fields { - kImplementationDateTime = 0, + kFabricSensitiveInt8u = 1, + kOptionalFabricSensitiveInt8u = 2, + kNullableFabricSensitiveInt8u = 3, + kNullableOptionalFabricSensitiveInt8u = 4, + kFabricSensitiveCharString = 5, + kFabricSensitiveStruct = 6, + kFabricSensitiveInt8uList = 7, + kFabricIndex = 254, }; struct Type { public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::CancelAllMessages::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } + uint8_t fabricSensitiveInt8u = static_cast(0); + Optional optionalFabricSensitiveInt8u; + DataModel::Nullable nullableFabricSensitiveInt8u; + Optional> nullableOptionalFabricSensitiveInt8u; + chip::CharSpan fabricSensitiveCharString; + Structs::SimpleStruct::Type fabricSensitiveStruct; + DataModel::List fabricSensitiveInt8uList; + chip::FabricIndex fabricIndex = static_cast(0); - uint32_t implementationDateTime = static_cast(0); + static constexpr bool kIsFabricScoped = true; - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + auto GetFabricIndex() const { return fabricIndex; } - using ResponseType = DataModel::NullObjectType; + void SetFabricIndex(chip::FabricIndex fabricIndex_) { fabricIndex = fabricIndex_; } - static constexpr bool MustUseTimedInvoke() { return false; } + CHIP_ERROR EncodeForWrite(TLV::TLVWriter & writer, TLV::Tag tag) const; + CHIP_ERROR EncodeForRead(TLV::TLVWriter & writer, TLV::Tag tag, FabricIndex accessingFabricIndex) const; + +private: + CHIP_ERROR DoEncode(TLV::TLVWriter & writer, TLV::Tag tag, const Optional & accessingFabricIndex) const; }; struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::CancelAllMessages::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } + uint8_t fabricSensitiveInt8u = static_cast(0); + Optional optionalFabricSensitiveInt8u; + DataModel::Nullable nullableFabricSensitiveInt8u; + Optional> nullableOptionalFabricSensitiveInt8u; + chip::CharSpan fabricSensitiveCharString; + Structs::SimpleStruct::DecodableType fabricSensitiveStruct; + DataModel::DecodableList fabricSensitiveInt8uList; + chip::FabricIndex fabricIndex = static_cast(0); - uint32_t implementationDateTime = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace CancelAllMessages -} // namespace Commands -namespace Attributes { + static constexpr bool kIsFabricScoped = true; -namespace GeneratedCommandList { -struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } + auto GetFabricIndex() const { return fabricIndex; } + + void SetFabricIndex(chip::FabricIndex fabricIndex_) { fabricIndex = fabricIndex_; } }; -} // namespace GeneratedCommandList -namespace AcceptedCommandList { -struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo + +} // namespace TestFabricScoped +namespace NullablesAndOptionalsStruct { +enum class Fields { - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } + kNullableInt = 0, + kOptionalInt = 1, + kNullableOptionalInt = 2, + kNullableString = 3, + kOptionalString = 4, + kNullableOptionalString = 5, + kNullableStruct = 6, + kOptionalStruct = 7, + kNullableOptionalStruct = 8, + kNullableList = 9, + kOptionalList = 10, + kNullableOptionalList = 11, }; -} // namespace AcceptedCommandList -namespace AttributeList { -struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo + +struct Type { - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } +public: + DataModel::Nullable nullableInt; + Optional optionalInt; + Optional> nullableOptionalInt; + DataModel::Nullable nullableString; + Optional optionalString; + Optional> nullableOptionalString; + DataModel::Nullable nullableStruct; + Optional optionalStruct; + Optional> nullableOptionalStruct; + DataModel::Nullable> nullableList; + Optional> optionalList; + Optional>> nullableOptionalList; + + static constexpr bool kIsFabricScoped = false; + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; -} // namespace AttributeList -namespace FeatureMap { -struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo + +struct DecodableType { - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } +public: + DataModel::Nullable nullableInt; + Optional optionalInt; + Optional> nullableOptionalInt; + DataModel::Nullable nullableString; + Optional optionalString; + Optional> nullableOptionalString; + DataModel::Nullable nullableStruct; + Optional optionalStruct; + Optional> nullableOptionalStruct; + DataModel::Nullable> nullableList; + Optional> optionalList; + Optional>> nullableOptionalList; + + CHIP_ERROR Decode(TLV::TLVReader & reader); + + static constexpr bool kIsFabricScoped = false; }; -} // namespace FeatureMap -namespace ClusterRevision { -struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo + +} // namespace NullablesAndOptionalsStruct +namespace NestedStruct { +enum class Fields { - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } + kA = 0, + kB = 1, + kC = 2, }; -} // namespace ClusterRevision -struct TypeInfo +struct Type { - struct DecodableType - { - static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } +public: + uint8_t a = static_cast(0); + bool b = static_cast(0); + Structs::SimpleStruct::Type c; - CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); + CHIP_ERROR Decode(TLV::TLVReader & reader); - Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; - Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; - Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); - }; + static constexpr bool kIsFabricScoped = false; + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; -} // namespace Attributes -} // namespace Messaging -namespace ApplianceIdentification { -namespace Attributes { +using DecodableType = Type; -namespace BasicIdentification { -struct TypeInfo +} // namespace NestedStruct +namespace NestedStructList { +enum class Fields { - using Type = uint64_t; - using DecodableType = uint64_t; - using DecodableArgType = uint64_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::BasicIdentification::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + kA = 0, + kB = 1, + kC = 2, + kD = 3, + kE = 4, + kF = 5, + kG = 6, }; -} // namespace BasicIdentification -namespace CompanyName { -struct TypeInfo -{ - using Type = chip::CharSpan; - using DecodableType = chip::CharSpan; - using DecodableArgType = chip::CharSpan; - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::CompanyName::Id; } - static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 16; } -}; -} // namespace CompanyName -namespace CompanyId { -struct TypeInfo +struct Type { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; +public: + uint8_t a = static_cast(0); + bool b = static_cast(0); + Structs::SimpleStruct::Type c; + DataModel::List d; + DataModel::List e; + DataModel::List f; + DataModel::List g; - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::CompanyId::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + static constexpr bool kIsFabricScoped = false; + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; -} // namespace CompanyId -namespace BrandName { -struct TypeInfo + +struct DecodableType { - using Type = chip::CharSpan; - using DecodableType = chip::CharSpan; - using DecodableArgType = chip::CharSpan; +public: + uint8_t a = static_cast(0); + bool b = static_cast(0); + Structs::SimpleStruct::DecodableType c; + DataModel::DecodableList d; + DataModel::DecodableList e; + DataModel::DecodableList f; + DataModel::DecodableList g; - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::BrandName::Id; } - static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 16; } + CHIP_ERROR Decode(TLV::TLVReader & reader); + + static constexpr bool kIsFabricScoped = false; }; -} // namespace BrandName -namespace BrandId { -struct TypeInfo -{ - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::BrandId::Id; } - static constexpr bool MustUseTimedWrite() { return false; } +} // namespace NestedStructList +namespace DoubleNestedStructList { +enum class Fields +{ + kA = 0, }; -} // namespace BrandId -namespace Model { -struct TypeInfo + +struct Type { - using Type = chip::ByteSpan; - using DecodableType = chip::ByteSpan; - using DecodableArgType = chip::ByteSpan; +public: + DataModel::List a; - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Model::Id; } - static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 16; } + static constexpr bool kIsFabricScoped = false; + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; -} // namespace Model -namespace PartNumber { -struct TypeInfo + +struct DecodableType { - using Type = chip::ByteSpan; - using DecodableType = chip::ByteSpan; - using DecodableArgType = chip::ByteSpan; +public: + DataModel::DecodableList a; - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::PartNumber::Id; } - static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 16; } + CHIP_ERROR Decode(TLV::TLVReader & reader); + + static constexpr bool kIsFabricScoped = false; }; -} // namespace PartNumber -namespace ProductRevision { -struct TypeInfo + +} // namespace DoubleNestedStructList +namespace TestListStructOctet { +enum class Fields { - using Type = chip::ByteSpan; - using DecodableType = chip::ByteSpan; - using DecodableArgType = chip::ByteSpan; + kFabricIndex = 0, + kOperationalCert = 1, +}; - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ProductRevision::Id; } - static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 6; } -}; -} // namespace ProductRevision -namespace SoftwareRevision { -struct TypeInfo +struct Type { - using Type = chip::ByteSpan; - using DecodableType = chip::ByteSpan; - using DecodableArgType = chip::ByteSpan; +public: + uint64_t fabricIndex = static_cast(0); + chip::ByteSpan operationalCert; - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::SoftwareRevision::Id; } - static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 6; } -}; -} // namespace SoftwareRevision -namespace ProductTypeName { -struct TypeInfo -{ - using Type = chip::ByteSpan; - using DecodableType = chip::ByteSpan; - using DecodableArgType = chip::ByteSpan; + CHIP_ERROR Decode(TLV::TLVReader & reader); - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ProductTypeName::Id; } - static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 2; } -}; -} // namespace ProductTypeName -namespace ProductTypeId { -struct TypeInfo -{ - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + static constexpr bool kIsFabricScoped = false; - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ProductTypeId::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; -} // namespace ProductTypeId -namespace CecedSpecificationVersion { -struct TypeInfo -{ - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::CecedSpecificationVersion::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace CecedSpecificationVersion -namespace GeneratedCommandList { -struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } -}; -} // namespace GeneratedCommandList -namespace AcceptedCommandList { -struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } -}; -} // namespace AcceptedCommandList -namespace AttributeList { -struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } -}; -} // namespace AttributeList -namespace FeatureMap { -struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } -}; -} // namespace FeatureMap -namespace ClusterRevision { -struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } -}; -} // namespace ClusterRevision +using DecodableType = Type; -struct TypeInfo -{ - struct DecodableType - { - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; } +} // namespace TestListStructOctet +} // namespace Structs - CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); +namespace Commands { +// Forward-declarations so we can reference these later. - Attributes::BasicIdentification::TypeInfo::DecodableType basicIdentification = static_cast(0); - Attributes::CompanyName::TypeInfo::DecodableType companyName; - Attributes::CompanyId::TypeInfo::DecodableType companyId = static_cast(0); - Attributes::BrandName::TypeInfo::DecodableType brandName; - Attributes::BrandId::TypeInfo::DecodableType brandId = static_cast(0); - Attributes::Model::TypeInfo::DecodableType model; - Attributes::PartNumber::TypeInfo::DecodableType partNumber; - Attributes::ProductRevision::TypeInfo::DecodableType productRevision; - Attributes::SoftwareRevision::TypeInfo::DecodableType softwareRevision; - Attributes::ProductTypeName::TypeInfo::DecodableType productTypeName; - Attributes::ProductTypeId::TypeInfo::DecodableType productTypeId = static_cast(0); - Attributes::CecedSpecificationVersion::TypeInfo::DecodableType cecedSpecificationVersion = static_cast(0); - Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; - Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; - Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); - }; -}; -} // namespace Attributes -} // namespace ApplianceIdentification -namespace MeterIdentification { +namespace Test { +struct Type; +struct DecodableType; +} // namespace Test -namespace Attributes { +namespace TestSpecificResponse { +struct Type; +struct DecodableType; +} // namespace TestSpecificResponse -namespace CompanyName { -struct TypeInfo -{ - using Type = chip::CharSpan; - using DecodableType = chip::CharSpan; - using DecodableArgType = chip::CharSpan; +namespace TestNotHandled { +struct Type; +struct DecodableType; +} // namespace TestNotHandled - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::CompanyName::Id; } - static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 16; } -}; -} // namespace CompanyName -namespace MeterTypeId { -struct TypeInfo -{ - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; +namespace TestAddArgumentsResponse { +struct Type; +struct DecodableType; +} // namespace TestAddArgumentsResponse - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::MeterTypeId::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace MeterTypeId -namespace DataQualityId { -struct TypeInfo -{ - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; +namespace TestSpecific { +struct Type; +struct DecodableType; +} // namespace TestSpecific - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::DataQualityId::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace DataQualityId -namespace CustomerName { -struct TypeInfo -{ - using Type = chip::CharSpan; - using DecodableType = chip::CharSpan; - using DecodableArgType = chip::CharSpan; +namespace TestSimpleArgumentResponse { +struct Type; +struct DecodableType; +} // namespace TestSimpleArgumentResponse - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::CustomerName::Id; } - static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 16; } -}; -} // namespace CustomerName -namespace Model { -struct TypeInfo -{ - using Type = chip::ByteSpan; - using DecodableType = chip::ByteSpan; - using DecodableArgType = chip::ByteSpan; +namespace TestUnknownCommand { +struct Type; +struct DecodableType; +} // namespace TestUnknownCommand - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Model::Id; } - static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 16; } -}; -} // namespace Model -namespace PartNumber { -struct TypeInfo -{ - using Type = chip::ByteSpan; - using DecodableType = chip::ByteSpan; - using DecodableArgType = chip::ByteSpan; +namespace TestStructArrayArgumentResponse { +struct Type; +struct DecodableType; +} // namespace TestStructArrayArgumentResponse - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::PartNumber::Id; } - static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 16; } -}; -} // namespace PartNumber -namespace ProductRevision { -struct TypeInfo -{ - using Type = chip::ByteSpan; - using DecodableType = chip::ByteSpan; - using DecodableArgType = chip::ByteSpan; +namespace TestAddArguments { +struct Type; +struct DecodableType; +} // namespace TestAddArguments - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ProductRevision::Id; } - static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 6; } -}; -} // namespace ProductRevision -namespace SoftwareRevision { -struct TypeInfo -{ - using Type = chip::ByteSpan; - using DecodableType = chip::ByteSpan; - using DecodableArgType = chip::ByteSpan; +namespace TestListInt8UReverseResponse { +struct Type; +struct DecodableType; +} // namespace TestListInt8UReverseResponse - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::SoftwareRevision::Id; } - static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 6; } -}; -} // namespace SoftwareRevision -namespace UtilityName { -struct TypeInfo -{ - using Type = chip::CharSpan; - using DecodableType = chip::CharSpan; - using DecodableArgType = chip::CharSpan; +namespace TestSimpleArgumentRequest { +struct Type; +struct DecodableType; +} // namespace TestSimpleArgumentRequest - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::UtilityName::Id; } - static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 16; } -}; -} // namespace UtilityName -namespace Pod { -struct TypeInfo -{ - using Type = chip::CharSpan; - using DecodableType = chip::CharSpan; - using DecodableArgType = chip::CharSpan; +namespace TestEnumsResponse { +struct Type; +struct DecodableType; +} // namespace TestEnumsResponse - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Pod::Id; } - static constexpr bool MustUseTimedWrite() { return false; } - static constexpr size_t MaxLength() { return 16; } -}; -} // namespace Pod -namespace AvailablePower { -struct TypeInfo -{ - using Type = int32_t; - using DecodableType = int32_t; - using DecodableArgType = int32_t; +namespace TestStructArrayArgumentRequest { +struct Type; +struct DecodableType; +} // namespace TestStructArrayArgumentRequest - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AvailablePower::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace AvailablePower -namespace PowerThreshold { -struct TypeInfo -{ - using Type = int32_t; - using DecodableType = int32_t; - using DecodableArgType = int32_t; +namespace TestNullableOptionalResponse { +struct Type; +struct DecodableType; +} // namespace TestNullableOptionalResponse - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::PowerThreshold::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace PowerThreshold -namespace GeneratedCommandList { -struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } -}; -} // namespace GeneratedCommandList -namespace AcceptedCommandList { -struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } -}; -} // namespace AcceptedCommandList -namespace AttributeList { -struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } -}; -} // namespace AttributeList -namespace FeatureMap { -struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } -}; -} // namespace FeatureMap -namespace ClusterRevision { -struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } -}; -} // namespace ClusterRevision +namespace TestStructArgumentRequest { +struct Type; +struct DecodableType; +} // namespace TestStructArgumentRequest -struct TypeInfo -{ - struct DecodableType - { - static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; } +namespace TestComplexNullableOptionalResponse { +struct Type; +struct DecodableType; +} // namespace TestComplexNullableOptionalResponse - CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); +namespace TestNestedStructArgumentRequest { +struct Type; +struct DecodableType; +} // namespace TestNestedStructArgumentRequest - Attributes::CompanyName::TypeInfo::DecodableType companyName; - Attributes::MeterTypeId::TypeInfo::DecodableType meterTypeId = static_cast(0); - Attributes::DataQualityId::TypeInfo::DecodableType dataQualityId = static_cast(0); - Attributes::CustomerName::TypeInfo::DecodableType customerName; - Attributes::Model::TypeInfo::DecodableType model; - Attributes::PartNumber::TypeInfo::DecodableType partNumber; - Attributes::ProductRevision::TypeInfo::DecodableType productRevision; - Attributes::SoftwareRevision::TypeInfo::DecodableType softwareRevision; - Attributes::UtilityName::TypeInfo::DecodableType utilityName; - Attributes::Pod::TypeInfo::DecodableType pod; - Attributes::AvailablePower::TypeInfo::DecodableType availablePower = static_cast(0); - Attributes::PowerThreshold::TypeInfo::DecodableType powerThreshold = static_cast(0); - Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; - Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; - Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); - }; -}; -} // namespace Attributes -} // namespace MeterIdentification -namespace ApplianceEventsAndAlert { +namespace BooleanResponse { +struct Type; +struct DecodableType; +} // namespace BooleanResponse -namespace Commands { -// Forward-declarations so we can reference these later. +namespace TestListStructArgumentRequest { +struct Type; +struct DecodableType; +} // namespace TestListStructArgumentRequest -namespace GetAlerts { +namespace SimpleStructResponse { struct Type; struct DecodableType; -} // namespace GetAlerts +} // namespace SimpleStructResponse -namespace GetAlertsResponse { +namespace TestListInt8UArgumentRequest { struct Type; struct DecodableType; -} // namespace GetAlertsResponse +} // namespace TestListInt8UArgumentRequest -namespace AlertsNotification { +namespace TestEmitTestEventResponse { struct Type; struct DecodableType; -} // namespace AlertsNotification +} // namespace TestEmitTestEventResponse -namespace EventsNotification { +namespace TestNestedStructListArgumentRequest { struct Type; struct DecodableType; -} // namespace EventsNotification +} // namespace TestNestedStructListArgumentRequest + +namespace TestEmitTestFabricScopedEventResponse { +struct Type; +struct DecodableType; +} // namespace TestEmitTestFabricScopedEventResponse + +namespace TestListNestedStructListArgumentRequest { +struct Type; +struct DecodableType; +} // namespace TestListNestedStructListArgumentRequest + +namespace TestListInt8UReverseRequest { +struct Type; +struct DecodableType; +} // namespace TestListInt8UReverseRequest + +namespace TestEnumsRequest { +struct Type; +struct DecodableType; +} // namespace TestEnumsRequest + +namespace TestNullableOptionalRequest { +struct Type; +struct DecodableType; +} // namespace TestNullableOptionalRequest + +namespace TestComplexNullableOptionalRequest { +struct Type; +struct DecodableType; +} // namespace TestComplexNullableOptionalRequest + +namespace SimpleStructEchoRequest { +struct Type; +struct DecodableType; +} // namespace SimpleStructEchoRequest + +namespace TimedInvokeRequest { +struct Type; +struct DecodableType; +} // namespace TimedInvokeRequest + +namespace TestSimpleOptionalArgumentRequest { +struct Type; +struct DecodableType; +} // namespace TestSimpleOptionalArgumentRequest + +namespace TestEmitTestEventRequest { +struct Type; +struct DecodableType; +} // namespace TestEmitTestEventRequest + +namespace TestEmitTestFabricScopedEventRequest { +struct Type; +struct DecodableType; +} // namespace TestEmitTestFabricScopedEventRequest } // namespace Commands namespace Commands { -namespace GetAlerts { +namespace Test { enum class Fields { }; @@ -34824,12 +34805,12 @@ struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetAlerts::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } + static constexpr CommandId GetCommandId() { return Commands::Test::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = Clusters::ApplianceEventsAndAlert::Commands::GetAlertsResponse::DecodableType; + using ResponseType = DataModel::NullObjectType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -34837,28 +34818,26 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::GetAlerts::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } + static constexpr CommandId GetCommandId() { return Commands::Test::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace GetAlerts -namespace GetAlertsResponse { +}; // namespace Test +namespace TestSpecificResponse { enum class Fields { - kAlertsCount = 0, - kAlertStructures = 1, + kReturnValue = 0, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetAlertsResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestSpecificResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - chip::BitMask alertsCount = static_cast>(0); - DataModel::List> alertStructures; + uint8_t returnValue = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -34870,30 +34849,24 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::GetAlertsResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestSpecificResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - chip::BitMask alertsCount = static_cast>(0); - DataModel::DecodableList> alertStructures; + uint8_t returnValue = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace GetAlertsResponse -namespace AlertsNotification { +}; // namespace TestSpecificResponse +namespace TestNotHandled { enum class Fields { - kAlertsCount = 0, - kAlertStructures = 1, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::AlertsNotification::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } - - chip::BitMask alertsCount = static_cast>(0); - DataModel::List> alertStructures; + static constexpr CommandId GetCommandId() { return Commands::TestNotHandled::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -34905,30 +34878,26 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::AlertsNotification::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestNotHandled::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - chip::BitMask alertsCount = static_cast>(0); - DataModel::DecodableList> alertStructures; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace AlertsNotification -namespace EventsNotification { +}; // namespace TestNotHandled +namespace TestAddArgumentsResponse { enum class Fields { - kEventHeader = 0, - kEventId = 1, + kReturnValue = 0, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::EventsNotification::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestAddArgumentsResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t eventHeader = static_cast(0); - EventIdentification eventId = static_cast(0); + uint8_t returnValue = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -34940,124 +34909,55 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::EventsNotification::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestAddArgumentsResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t eventHeader = static_cast(0); - EventIdentification eventId = static_cast(0); + uint8_t returnValue = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace EventsNotification -} // namespace Commands - -namespace Attributes { - -namespace GeneratedCommandList { -struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } -}; -} // namespace GeneratedCommandList -namespace AcceptedCommandList { -struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } -}; -} // namespace AcceptedCommandList -namespace AttributeList { -struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } -}; -} // namespace AttributeList -namespace FeatureMap { -struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } -}; -} // namespace FeatureMap -namespace ClusterRevision { -struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo +}; // namespace TestAddArgumentsResponse +namespace TestSpecific { +enum class Fields { - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } }; -} // namespace ClusterRevision -struct TypeInfo +struct Type { - struct DecodableType - { - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } - - CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - - Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; - Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; - Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); - }; -}; -} // namespace Attributes -} // namespace ApplianceEventsAndAlert -namespace ApplianceStatistics { - -namespace Commands { -// Forward-declarations so we can reference these later. - -namespace LogNotification { -struct Type; -struct DecodableType; -} // namespace LogNotification - -namespace LogRequest { -struct Type; -struct DecodableType; -} // namespace LogRequest - -namespace LogResponse { -struct Type; -struct DecodableType; -} // namespace LogResponse +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::TestSpecific::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } -namespace LogQueueRequest { -struct Type; -struct DecodableType; -} // namespace LogQueueRequest + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; -namespace LogQueueResponse { -struct Type; -struct DecodableType; -} // namespace LogQueueResponse + using ResponseType = Clusters::TestCluster::Commands::TestSpecificResponse::DecodableType; -namespace StatisticsAvailable { -struct Type; -struct DecodableType; -} // namespace StatisticsAvailable + static constexpr bool MustUseTimedInvoke() { return false; } +}; -} // namespace Commands +struct DecodableType +{ +public: + static constexpr CommandId GetCommandId() { return Commands::TestSpecific::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } -namespace Commands { -namespace LogNotification { + CHIP_ERROR Decode(TLV::TLVReader & reader); +}; +}; // namespace TestSpecific +namespace TestSimpleArgumentResponse { enum class Fields { - kTimeStamp = 0, - kLogId = 1, - kLogLength = 2, - kLogPayload = 3, + kReturnValue = 0, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::LogNotification::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestSimpleArgumentResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint32_t timeStamp = static_cast(0); - uint32_t logId = static_cast(0); - uint32_t logLength = static_cast(0); - DataModel::List logPayload; + bool returnValue = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -35069,34 +34969,28 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::LogNotification::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestSimpleArgumentResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint32_t timeStamp = static_cast(0); - uint32_t logId = static_cast(0); - uint32_t logLength = static_cast(0); - DataModel::DecodableList logPayload; + bool returnValue = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace LogNotification -namespace LogRequest { +}; // namespace TestSimpleArgumentResponse +namespace TestUnknownCommand { enum class Fields { - kLogId = 0, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::LogRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - - uint32_t logId = static_cast(0); + static constexpr CommandId GetCommandId() { return Commands::TestUnknownCommand::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = Clusters::ApplianceStatistics::Commands::LogResponse::DecodableType; + using ResponseType = DataModel::NullObjectType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -35104,33 +34998,36 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::LogRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestUnknownCommand::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint32_t logId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace LogRequest -namespace LogResponse { +}; // namespace TestUnknownCommand +namespace TestStructArrayArgumentResponse { enum class Fields { - kTimeStamp = 0, - kLogId = 1, - kLogLength = 2, - kLogPayload = 3, + kArg1 = 0, + kArg2 = 1, + kArg3 = 2, + kArg4 = 3, + kArg5 = 4, + kArg6 = 5, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::LogResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestStructArrayArgumentResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint32_t timeStamp = static_cast(0); - uint32_t logId = static_cast(0); - uint32_t logLength = static_cast(0); - DataModel::List logPayload; + DataModel::List arg1; + DataModel::List arg2; + DataModel::List arg3; + DataModel::List arg4; + SimpleEnum arg5 = static_cast(0); + bool arg6 = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -35142,31 +35039,38 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::LogResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestStructArrayArgumentResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint32_t timeStamp = static_cast(0); - uint32_t logId = static_cast(0); - uint32_t logLength = static_cast(0); - DataModel::DecodableList logPayload; + DataModel::DecodableList arg1; + DataModel::DecodableList arg2; + DataModel::DecodableList arg3; + DataModel::DecodableList arg4; + SimpleEnum arg5 = static_cast(0); + bool arg6 = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace LogResponse -namespace LogQueueRequest { +}; // namespace TestStructArrayArgumentResponse +namespace TestAddArguments { enum class Fields { + kArg1 = 0, + kArg2 = 1, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::LogQueueRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestAddArguments::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + + uint8_t arg1 = static_cast(0); + uint8_t arg2 = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = Clusters::ApplianceStatistics::Commands::LogQueueResponse::DecodableType; + using ResponseType = Clusters::TestCluster::Commands::TestAddArgumentsResponse::DecodableType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -35174,28 +35078,28 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::LogQueueRequest::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestAddArguments::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + uint8_t arg1 = static_cast(0); + uint8_t arg2 = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace LogQueueRequest -namespace LogQueueResponse { +}; // namespace TestAddArguments +namespace TestListInt8UReverseResponse { enum class Fields { - kLogQueueSize = 0, - kLogIds = 1, + kArg1 = 0, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::LogQueueResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestListInt8UReverseResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t logQueueSize = static_cast(0); - DataModel::List logIds; + DataModel::List arg1; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -35207,34 +35111,31 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::LogQueueResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestListInt8UReverseResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t logQueueSize = static_cast(0); - DataModel::DecodableList logIds; + DataModel::DecodableList arg1; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace LogQueueResponse -namespace StatisticsAvailable { +}; // namespace TestListInt8UReverseResponse +namespace TestSimpleArgumentRequest { enum class Fields { - kLogQueueSize = 0, - kLogIds = 1, + kArg1 = 0, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::StatisticsAvailable::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestSimpleArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t logQueueSize = static_cast(0); - DataModel::List logIds; + bool arg1 = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = DataModel::NullObjectType; + using ResponseType = Clusters::TestCluster::Commands::TestSimpleArgumentResponse::DecodableType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -35242,140 +35143,29 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::StatisticsAvailable::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestSimpleArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t logQueueSize = static_cast(0); - DataModel::DecodableList logIds; + bool arg1 = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace StatisticsAvailable -} // namespace Commands - -namespace Attributes { - -namespace LogMaxSize { -struct TypeInfo -{ - using Type = uint32_t; - using DecodableType = uint32_t; - using DecodableArgType = uint32_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::LogMaxSize::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace LogMaxSize -namespace LogQueueMaxSize { -struct TypeInfo -{ - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::LogQueueMaxSize::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace LogQueueMaxSize -namespace GeneratedCommandList { -struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } -}; -} // namespace GeneratedCommandList -namespace AcceptedCommandList { -struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } -}; -} // namespace AcceptedCommandList -namespace AttributeList { -struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } -}; -} // namespace AttributeList -namespace FeatureMap { -struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } -}; -} // namespace FeatureMap -namespace ClusterRevision { -struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo -{ - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } -}; -} // namespace ClusterRevision - -struct TypeInfo -{ - struct DecodableType - { - static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - - CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - - Attributes::LogMaxSize::TypeInfo::DecodableType logMaxSize = static_cast(0); - Attributes::LogQueueMaxSize::TypeInfo::DecodableType logQueueMaxSize = static_cast(0); - Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; - Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; - Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); - }; -}; -} // namespace Attributes -} // namespace ApplianceStatistics -namespace ElectricalMeasurement { - -namespace Commands { -// Forward-declarations so we can reference these later. - -namespace GetProfileInfoResponseCommand { -struct Type; -struct DecodableType; -} // namespace GetProfileInfoResponseCommand - -namespace GetProfileInfoCommand { -struct Type; -struct DecodableType; -} // namespace GetProfileInfoCommand - -namespace GetMeasurementProfileResponseCommand { -struct Type; -struct DecodableType; -} // namespace GetMeasurementProfileResponseCommand - -namespace GetMeasurementProfileCommand { -struct Type; -struct DecodableType; -} // namespace GetMeasurementProfileCommand - -} // namespace Commands - -namespace Commands { -namespace GetProfileInfoResponseCommand { +}; // namespace TestSimpleArgumentRequest +namespace TestEnumsResponse { enum class Fields { - kProfileCount = 0, - kProfileIntervalPeriod = 1, - kMaxNumberOfIntervals = 2, - kListOfAttributes = 3, + kArg1 = 0, + kArg2 = 1, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetProfileInfoResponseCommand::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestEnumsResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t profileCount = static_cast(0); - uint8_t profileIntervalPeriod = static_cast(0); - uint8_t maxNumberOfIntervals = static_cast(0); - DataModel::List listOfAttributes; + chip::VendorId arg1 = static_cast(0); + SimpleEnum arg2 = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -35387,31 +35177,42 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::GetProfileInfoResponseCommand::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestEnumsResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t profileCount = static_cast(0); - uint8_t profileIntervalPeriod = static_cast(0); - uint8_t maxNumberOfIntervals = static_cast(0); - DataModel::DecodableList listOfAttributes; + chip::VendorId arg1 = static_cast(0); + SimpleEnum arg2 = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace GetProfileInfoResponseCommand -namespace GetProfileInfoCommand { +}; // namespace TestEnumsResponse +namespace TestStructArrayArgumentRequest { enum class Fields { + kArg1 = 0, + kArg2 = 1, + kArg3 = 2, + kArg4 = 3, + kArg5 = 4, + kArg6 = 5, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetProfileInfoCommand::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestStructArrayArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + + DataModel::List arg1; + DataModel::List arg2; + DataModel::List arg3; + DataModel::List arg4; + SimpleEnum arg5 = static_cast(0); + bool arg6 = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = DataModel::NullObjectType; + using ResponseType = Clusters::TestCluster::Commands::TestStructArrayArgumentResponse::DecodableType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -35419,36 +35220,38 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::GetProfileInfoCommand::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestStructArrayArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + DataModel::DecodableList arg1; + DataModel::DecodableList arg2; + DataModel::DecodableList arg3; + DataModel::DecodableList arg4; + SimpleEnum arg5 = static_cast(0); + bool arg6 = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace GetProfileInfoCommand -namespace GetMeasurementProfileResponseCommand { +}; // namespace TestStructArrayArgumentRequest +namespace TestNullableOptionalResponse { enum class Fields { - kStartTime = 0, - kStatus = 1, - kProfileIntervalPeriod = 2, - kNumberOfIntervalsDelivered = 3, - kAttributeId = 4, - kIntervals = 5, + kWasPresent = 0, + kWasNull = 1, + kValue = 2, + kOriginalValue = 3, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetMeasurementProfileResponseCommand::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestNullableOptionalResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint32_t startTime = static_cast(0); - uint8_t status = static_cast(0); - uint8_t profileIntervalPeriod = static_cast(0); - uint8_t numberOfIntervalsDelivered = static_cast(0); - uint16_t attributeId = static_cast(0); - DataModel::List intervals; + bool wasPresent = static_cast(0); + Optional wasNull; + Optional value; + Optional> originalValue; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -35460,40 +35263,34 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::GetMeasurementProfileResponseCommand::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestNullableOptionalResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint32_t startTime = static_cast(0); - uint8_t status = static_cast(0); - uint8_t profileIntervalPeriod = static_cast(0); - uint8_t numberOfIntervalsDelivered = static_cast(0); - uint16_t attributeId = static_cast(0); - DataModel::DecodableList intervals; + bool wasPresent = static_cast(0); + Optional wasNull; + Optional value; + Optional> originalValue; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace GetMeasurementProfileResponseCommand -namespace GetMeasurementProfileCommand { +}; // namespace TestNullableOptionalResponse +namespace TestStructArgumentRequest { enum class Fields { - kAttributeId = 0, - kStartTime = 1, - kNumberOfIntervals = 2, + kArg1 = 0, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetMeasurementProfileCommand::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestStructArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint16_t attributeId = static_cast(0); - uint32_t startTime = static_cast(0); - uint8_t numberOfIntervals = static_cast(0); + Structs::SimpleStruct::Type arg1; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = DataModel::NullObjectType; + using ResponseType = Clusters::TestCluster::Commands::BooleanResponse::DecodableType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -35501,1583 +35298,1761 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::GetMeasurementProfileCommand::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr CommandId GetCommandId() { return Commands::TestStructArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint16_t attributeId = static_cast(0); - uint32_t startTime = static_cast(0); - uint8_t numberOfIntervals = static_cast(0); + Structs::SimpleStruct::DecodableType arg1; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace GetMeasurementProfileCommand -} // namespace Commands - -namespace Attributes { - -namespace MeasurementType { -struct TypeInfo +}; // namespace TestStructArgumentRequest +namespace TestComplexNullableOptionalResponse { +enum class Fields { - using Type = uint32_t; - using DecodableType = uint32_t; - using DecodableArgType = uint32_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::MeasurementType::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + kNullableIntWasNull = 0, + kNullableIntValue = 1, + kOptionalIntWasPresent = 2, + kOptionalIntValue = 3, + kNullableOptionalIntWasPresent = 4, + kNullableOptionalIntWasNull = 5, + kNullableOptionalIntValue = 6, + kNullableStringWasNull = 7, + kNullableStringValue = 8, + kOptionalStringWasPresent = 9, + kOptionalStringValue = 10, + kNullableOptionalStringWasPresent = 11, + kNullableOptionalStringWasNull = 12, + kNullableOptionalStringValue = 13, + kNullableStructWasNull = 14, + kNullableStructValue = 15, + kOptionalStructWasPresent = 16, + kOptionalStructValue = 17, + kNullableOptionalStructWasPresent = 18, + kNullableOptionalStructWasNull = 19, + kNullableOptionalStructValue = 20, + kNullableListWasNull = 21, + kNullableListValue = 22, + kOptionalListWasPresent = 23, + kOptionalListValue = 24, + kNullableOptionalListWasPresent = 25, + kNullableOptionalListWasNull = 26, + kNullableOptionalListValue = 27, }; -} // namespace MeasurementType -namespace DcVoltage { -struct TypeInfo + +struct Type { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::TestComplexNullableOptionalResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::DcVoltage::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + bool nullableIntWasNull = static_cast(0); + Optional nullableIntValue; + bool optionalIntWasPresent = static_cast(0); + Optional optionalIntValue; + bool nullableOptionalIntWasPresent = static_cast(0); + Optional nullableOptionalIntWasNull; + Optional nullableOptionalIntValue; + bool nullableStringWasNull = static_cast(0); + Optional nullableStringValue; + bool optionalStringWasPresent = static_cast(0); + Optional optionalStringValue; + bool nullableOptionalStringWasPresent = static_cast(0); + Optional nullableOptionalStringWasNull; + Optional nullableOptionalStringValue; + bool nullableStructWasNull = static_cast(0); + Optional nullableStructValue; + bool optionalStructWasPresent = static_cast(0); + Optional optionalStructValue; + bool nullableOptionalStructWasPresent = static_cast(0); + Optional nullableOptionalStructWasNull; + Optional nullableOptionalStructValue; + bool nullableListWasNull = static_cast(0); + Optional> nullableListValue; + bool optionalListWasPresent = static_cast(0); + Optional> optionalListValue; + bool nullableOptionalListWasPresent = static_cast(0); + Optional nullableOptionalListWasNull; + Optional> nullableOptionalListValue; + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace DcVoltage -namespace DcVoltageMin { -struct TypeInfo + +struct DecodableType { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + static constexpr CommandId GetCommandId() { return Commands::TestComplexNullableOptionalResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::DcVoltageMin::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + bool nullableIntWasNull = static_cast(0); + Optional nullableIntValue; + bool optionalIntWasPresent = static_cast(0); + Optional optionalIntValue; + bool nullableOptionalIntWasPresent = static_cast(0); + Optional nullableOptionalIntWasNull; + Optional nullableOptionalIntValue; + bool nullableStringWasNull = static_cast(0); + Optional nullableStringValue; + bool optionalStringWasPresent = static_cast(0); + Optional optionalStringValue; + bool nullableOptionalStringWasPresent = static_cast(0); + Optional nullableOptionalStringWasNull; + Optional nullableOptionalStringValue; + bool nullableStructWasNull = static_cast(0); + Optional nullableStructValue; + bool optionalStructWasPresent = static_cast(0); + Optional optionalStructValue; + bool nullableOptionalStructWasPresent = static_cast(0); + Optional nullableOptionalStructWasNull; + Optional nullableOptionalStructValue; + bool nullableListWasNull = static_cast(0); + Optional> nullableListValue; + bool optionalListWasPresent = static_cast(0); + Optional> optionalListValue; + bool nullableOptionalListWasPresent = static_cast(0); + Optional nullableOptionalListWasNull; + Optional> nullableOptionalListValue; + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace DcVoltageMin -namespace DcVoltageMax { -struct TypeInfo +}; // namespace TestComplexNullableOptionalResponse +namespace TestNestedStructArgumentRequest { +enum class Fields { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::DcVoltageMax::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + kArg1 = 0, }; -} // namespace DcVoltageMax -namespace DcCurrent { -struct TypeInfo + +struct Type { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::TestNestedStructArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::DcCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + Structs::NestedStruct::Type arg1; + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::BooleanResponse::DecodableType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace DcCurrent -namespace DcCurrentMin { -struct TypeInfo + +struct DecodableType { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + static constexpr CommandId GetCommandId() { return Commands::TestNestedStructArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::DcCurrentMin::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + Structs::NestedStruct::DecodableType arg1; + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace DcCurrentMin -namespace DcCurrentMax { -struct TypeInfo +}; // namespace TestNestedStructArgumentRequest +namespace BooleanResponse { +enum class Fields { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::DcCurrentMax::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + kValue = 0, }; -} // namespace DcCurrentMax -namespace DcPower { -struct TypeInfo + +struct Type { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::BooleanResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::DcPower::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + bool value = static_cast(0); + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace DcPower -namespace DcPowerMin { -struct TypeInfo + +struct DecodableType { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + static constexpr CommandId GetCommandId() { return Commands::BooleanResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::DcPowerMin::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + bool value = static_cast(0); + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace DcPowerMin -namespace DcPowerMax { -struct TypeInfo +}; // namespace BooleanResponse +namespace TestListStructArgumentRequest { +enum class Fields { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + kArg1 = 0, +}; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::DcPowerMax::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace DcPowerMax -namespace DcVoltageMultiplier { -struct TypeInfo +struct Type { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::TestListStructArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::DcVoltageMultiplier::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + DataModel::List arg1; + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::BooleanResponse::DecodableType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace DcVoltageMultiplier -namespace DcVoltageDivisor { -struct TypeInfo + +struct DecodableType { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; +public: + static constexpr CommandId GetCommandId() { return Commands::TestListStructArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::DcVoltageDivisor::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + DataModel::DecodableList arg1; + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace DcVoltageDivisor -namespace DcCurrentMultiplier { -struct TypeInfo +}; // namespace TestListStructArgumentRequest +namespace SimpleStructResponse { +enum class Fields { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::DcCurrentMultiplier::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + kArg1 = 0, }; -} // namespace DcCurrentMultiplier -namespace DcCurrentDivisor { -struct TypeInfo + +struct Type { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::SimpleStructResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::DcCurrentDivisor::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + Structs::SimpleStruct::Type arg1; + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace DcCurrentDivisor -namespace DcPowerMultiplier { -struct TypeInfo + +struct DecodableType { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; +public: + static constexpr CommandId GetCommandId() { return Commands::SimpleStructResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::DcPowerMultiplier::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + Structs::SimpleStruct::DecodableType arg1; + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace DcPowerMultiplier -namespace DcPowerDivisor { -struct TypeInfo +}; // namespace SimpleStructResponse +namespace TestListInt8UArgumentRequest { +enum class Fields { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::DcPowerDivisor::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + kArg1 = 0, }; -} // namespace DcPowerDivisor -namespace AcFrequency { -struct TypeInfo + +struct Type { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::TestListInt8UArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AcFrequency::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + DataModel::List arg1; + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::BooleanResponse::DecodableType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace AcFrequency -namespace AcFrequencyMin { -struct TypeInfo + +struct DecodableType { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; +public: + static constexpr CommandId GetCommandId() { return Commands::TestListInt8UArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AcFrequencyMin::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + DataModel::DecodableList arg1; + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace AcFrequencyMin -namespace AcFrequencyMax { -struct TypeInfo +}; // namespace TestListInt8UArgumentRequest +namespace TestEmitTestEventResponse { +enum class Fields { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AcFrequencyMax::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + kValue = 0, }; -} // namespace AcFrequencyMax -namespace NeutralCurrent { -struct TypeInfo + +struct Type { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::TestEmitTestEventResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NeutralCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + uint64_t value = static_cast(0); + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace NeutralCurrent -namespace TotalActivePower { -struct TypeInfo + +struct DecodableType { - using Type = int32_t; - using DecodableType = int32_t; - using DecodableArgType = int32_t; +public: + static constexpr CommandId GetCommandId() { return Commands::TestEmitTestEventResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::TotalActivePower::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + uint64_t value = static_cast(0); + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace TotalActivePower -namespace TotalReactivePower { -struct TypeInfo +}; // namespace TestEmitTestEventResponse +namespace TestNestedStructListArgumentRequest { +enum class Fields { - using Type = int32_t; - using DecodableType = int32_t; - using DecodableArgType = int32_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::TotalReactivePower::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + kArg1 = 0, }; -} // namespace TotalReactivePower -namespace TotalApparentPower { -struct TypeInfo + +struct Type { - using Type = uint32_t; - using DecodableType = uint32_t; - using DecodableArgType = uint32_t; +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::TestNestedStructListArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::TotalApparentPower::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + Structs::NestedStructList::Type arg1; + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::BooleanResponse::DecodableType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace TotalApparentPower -namespace Measured1stHarmonicCurrent { -struct TypeInfo + +struct DecodableType { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + static constexpr CommandId GetCommandId() { return Commands::TestNestedStructListArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Measured1stHarmonicCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + Structs::NestedStructList::DecodableType arg1; + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace Measured1stHarmonicCurrent -namespace Measured3rdHarmonicCurrent { -struct TypeInfo +}; // namespace TestNestedStructListArgumentRequest +namespace TestEmitTestFabricScopedEventResponse { +enum class Fields { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Measured3rdHarmonicCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + kValue = 0, }; -} // namespace Measured3rdHarmonicCurrent -namespace Measured5thHarmonicCurrent { -struct TypeInfo + +struct Type { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::TestEmitTestFabricScopedEventResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Measured5thHarmonicCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + uint64_t value = static_cast(0); + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace Measured5thHarmonicCurrent -namespace Measured7thHarmonicCurrent { -struct TypeInfo + +struct DecodableType { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + static constexpr CommandId GetCommandId() { return Commands::TestEmitTestFabricScopedEventResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Measured7thHarmonicCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + uint64_t value = static_cast(0); + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace Measured7thHarmonicCurrent -namespace Measured9thHarmonicCurrent { -struct TypeInfo +}; // namespace TestEmitTestFabricScopedEventResponse +namespace TestListNestedStructListArgumentRequest { +enum class Fields { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Measured9thHarmonicCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + kArg1 = 0, }; -} // namespace Measured9thHarmonicCurrent -namespace Measured11thHarmonicCurrent { -struct TypeInfo + +struct Type { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::TestListNestedStructListArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::Measured11thHarmonicCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + DataModel::List arg1; + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::BooleanResponse::DecodableType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace Measured11thHarmonicCurrent -namespace MeasuredPhase1stHarmonicCurrent { -struct TypeInfo + +struct DecodableType { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + static constexpr CommandId GetCommandId() { return Commands::TestListNestedStructListArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase1stHarmonicCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + DataModel::DecodableList arg1; + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace MeasuredPhase1stHarmonicCurrent -namespace MeasuredPhase3rdHarmonicCurrent { -struct TypeInfo +}; // namespace TestListNestedStructListArgumentRequest +namespace TestListInt8UReverseRequest { +enum class Fields { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase3rdHarmonicCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + kArg1 = 0, }; -} // namespace MeasuredPhase3rdHarmonicCurrent -namespace MeasuredPhase5thHarmonicCurrent { -struct TypeInfo + +struct Type { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::TestListInt8UReverseRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase5thHarmonicCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + DataModel::List arg1; + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::TestListInt8UReverseResponse::DecodableType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace MeasuredPhase5thHarmonicCurrent -namespace MeasuredPhase7thHarmonicCurrent { -struct TypeInfo + +struct DecodableType { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + static constexpr CommandId GetCommandId() { return Commands::TestListInt8UReverseRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase7thHarmonicCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + DataModel::DecodableList arg1; + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace MeasuredPhase7thHarmonicCurrent -namespace MeasuredPhase9thHarmonicCurrent { -struct TypeInfo +}; // namespace TestListInt8UReverseRequest +namespace TestEnumsRequest { +enum class Fields { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase9thHarmonicCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + kArg1 = 0, + kArg2 = 1, }; -} // namespace MeasuredPhase9thHarmonicCurrent -namespace MeasuredPhase11thHarmonicCurrent { -struct TypeInfo + +struct Type { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::TestEnumsRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase11thHarmonicCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + chip::VendorId arg1 = static_cast(0); + SimpleEnum arg2 = static_cast(0); + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::TestEnumsResponse::DecodableType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace MeasuredPhase11thHarmonicCurrent -namespace AcFrequencyMultiplier { -struct TypeInfo + +struct DecodableType { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; +public: + static constexpr CommandId GetCommandId() { return Commands::TestEnumsRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AcFrequencyMultiplier::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + chip::VendorId arg1 = static_cast(0); + SimpleEnum arg2 = static_cast(0); + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace AcFrequencyMultiplier -namespace AcFrequencyDivisor { -struct TypeInfo +}; // namespace TestEnumsRequest +namespace TestNullableOptionalRequest { +enum class Fields { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AcFrequencyDivisor::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + kArg1 = 0, }; -} // namespace AcFrequencyDivisor -namespace PowerMultiplier { -struct TypeInfo + +struct Type { - using Type = uint32_t; - using DecodableType = uint32_t; - using DecodableArgType = uint32_t; +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::TestNullableOptionalRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::PowerMultiplier::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + Optional> arg1; + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::TestNullableOptionalResponse::DecodableType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace PowerMultiplier -namespace PowerDivisor { -struct TypeInfo + +struct DecodableType { - using Type = uint32_t; - using DecodableType = uint32_t; - using DecodableArgType = uint32_t; +public: + static constexpr CommandId GetCommandId() { return Commands::TestNullableOptionalRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::PowerDivisor::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + Optional> arg1; + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace PowerDivisor -namespace HarmonicCurrentMultiplier { -struct TypeInfo +}; // namespace TestNullableOptionalRequest +namespace TestComplexNullableOptionalRequest { +enum class Fields { - using Type = int8_t; - using DecodableType = int8_t; - using DecodableArgType = int8_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::HarmonicCurrentMultiplier::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + kNullableInt = 0, + kOptionalInt = 1, + kNullableOptionalInt = 2, + kNullableString = 3, + kOptionalString = 4, + kNullableOptionalString = 5, + kNullableStruct = 6, + kOptionalStruct = 7, + kNullableOptionalStruct = 8, + kNullableList = 9, + kOptionalList = 10, + kNullableOptionalList = 11, }; -} // namespace HarmonicCurrentMultiplier -namespace PhaseHarmonicCurrentMultiplier { -struct TypeInfo -{ - using Type = int8_t; - using DecodableType = int8_t; - using DecodableArgType = int8_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::PhaseHarmonicCurrentMultiplier::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace PhaseHarmonicCurrentMultiplier -namespace InstantaneousVoltage { -struct TypeInfo +struct Type { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::TestComplexNullableOptionalRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::InstantaneousVoltage::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace InstantaneousVoltage -namespace InstantaneousLineCurrent { -struct TypeInfo -{ - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + DataModel::Nullable nullableInt; + Optional optionalInt; + Optional> nullableOptionalInt; + DataModel::Nullable nullableString; + Optional optionalString; + Optional> nullableOptionalString; + DataModel::Nullable nullableStruct; + Optional optionalStruct; + Optional> nullableOptionalStruct; + DataModel::Nullable> nullableList; + Optional> optionalList; + Optional>> nullableOptionalList; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::InstantaneousLineCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::TestComplexNullableOptionalResponse::DecodableType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace InstantaneousLineCurrent -namespace InstantaneousActiveCurrent { -struct TypeInfo + +struct DecodableType { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + static constexpr CommandId GetCommandId() { return Commands::TestComplexNullableOptionalRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::InstantaneousActiveCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + DataModel::Nullable nullableInt; + Optional optionalInt; + Optional> nullableOptionalInt; + DataModel::Nullable nullableString; + Optional optionalString; + Optional> nullableOptionalString; + DataModel::Nullable nullableStruct; + Optional optionalStruct; + Optional> nullableOptionalStruct; + DataModel::Nullable> nullableList; + Optional> optionalList; + Optional>> nullableOptionalList; + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace InstantaneousActiveCurrent -namespace InstantaneousReactiveCurrent { -struct TypeInfo +}; // namespace TestComplexNullableOptionalRequest +namespace SimpleStructEchoRequest { +enum class Fields { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::InstantaneousReactiveCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + kArg1 = 0, }; -} // namespace InstantaneousReactiveCurrent -namespace InstantaneousPower { -struct TypeInfo + +struct Type { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::SimpleStructEchoRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::InstantaneousPower::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + Structs::SimpleStruct::Type arg1; + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::SimpleStructResponse::DecodableType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace InstantaneousPower -namespace RmsVoltage { -struct TypeInfo + +struct DecodableType { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; +public: + static constexpr CommandId GetCommandId() { return Commands::SimpleStructEchoRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltage::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + Structs::SimpleStruct::DecodableType arg1; + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace RmsVoltage -namespace RmsVoltageMin { -struct TypeInfo +}; // namespace SimpleStructEchoRequest +namespace TimedInvokeRequest { +enum class Fields { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMin::Id; } - static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsVoltageMin -namespace RmsVoltageMax { -struct TypeInfo + +struct Type { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::TimedInvokeRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMax::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; + + static constexpr bool MustUseTimedInvoke() { return true; } }; -} // namespace RmsVoltageMax -namespace RmsCurrent { -struct TypeInfo + +struct DecodableType { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; +public: + static constexpr CommandId GetCommandId() { return Commands::TimedInvokeRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrent::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace RmsCurrent -namespace RmsCurrentMin { -struct TypeInfo +}; // namespace TimedInvokeRequest +namespace TestSimpleOptionalArgumentRequest { +enum class Fields { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; - - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMin::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + kArg1 = 0, }; -} // namespace RmsCurrentMin -namespace RmsCurrentMax { -struct TypeInfo + +struct Type { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::TestSimpleOptionalArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMax::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + Optional arg1; + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace RmsCurrentMax -namespace ActivePower { -struct TypeInfo + +struct DecodableType { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + static constexpr CommandId GetCommandId() { return Commands::TestSimpleOptionalArgumentRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ActivePower::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + Optional arg1; + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace ActivePower -namespace ActivePowerMin { -struct TypeInfo +}; // namespace TestSimpleOptionalArgumentRequest +namespace TestEmitTestEventRequest { +enum class Fields { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + kArg1 = 0, + kArg2 = 1, + kArg3 = 2, +}; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMin::Id; } - static constexpr bool MustUseTimedWrite() { return false; } +struct Type +{ +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::TestEmitTestEventRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + + uint8_t arg1 = static_cast(0); + SimpleEnum arg2 = static_cast(0); + bool arg3 = static_cast(0); + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::TestEmitTestEventResponse::DecodableType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace ActivePowerMin -namespace ActivePowerMax { -struct TypeInfo + +struct DecodableType { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; +public: + static constexpr CommandId GetCommandId() { return Commands::TestEmitTestEventRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMax::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + uint8_t arg1 = static_cast(0); + SimpleEnum arg2 = static_cast(0); + bool arg3 = static_cast(0); + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace ActivePowerMax -namespace ReactivePower { -struct TypeInfo +}; // namespace TestEmitTestEventRequest +namespace TestEmitTestFabricScopedEventRequest { +enum class Fields { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + kArg1 = 0, +}; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ReactivePower::Id; } - static constexpr bool MustUseTimedWrite() { return false; } +struct Type +{ +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::TestEmitTestFabricScopedEventRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + + uint8_t arg1 = static_cast(0); + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::TestEmitTestFabricScopedEventResponse::DecodableType; + + static constexpr bool MustUseTimedInvoke() { return false; } }; -} // namespace ReactivePower -namespace ApparentPower { -struct TypeInfo + +struct DecodableType { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; +public: + static constexpr CommandId GetCommandId() { return Commands::TestEmitTestFabricScopedEventRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ApparentPower::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + uint8_t arg1 = static_cast(0); + CHIP_ERROR Decode(TLV::TLVReader & reader); }; -} // namespace ApparentPower -namespace PowerFactor { +}; // namespace TestEmitTestFabricScopedEventRequest +} // namespace Commands + +namespace Attributes { + +namespace Boolean { struct TypeInfo { - using Type = int8_t; - using DecodableType = int8_t; - using DecodableArgType = int8_t; + using Type = bool; + using DecodableType = bool; + using DecodableArgType = bool; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::PowerFactor::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Boolean::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace PowerFactor -namespace AverageRmsVoltageMeasurementPeriod { +} // namespace Boolean +namespace Bitmap8 { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::BitMask; + using DecodableType = chip::BitMask; + using DecodableArgType = chip::BitMask; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsVoltageMeasurementPeriod::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Bitmap8::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AverageRmsVoltageMeasurementPeriod -namespace AverageRmsUnderVoltageCounter { +} // namespace Bitmap8 +namespace Bitmap16 { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::BitMask; + using DecodableType = chip::BitMask; + using DecodableArgType = chip::BitMask; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsUnderVoltageCounter::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Bitmap16::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AverageRmsUnderVoltageCounter -namespace RmsExtremeOverVoltagePeriod { +} // namespace Bitmap16 +namespace Bitmap32 { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::BitMask; + using DecodableType = chip::BitMask; + using DecodableArgType = chip::BitMask; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeOverVoltagePeriod::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Bitmap32::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsExtremeOverVoltagePeriod -namespace RmsExtremeUnderVoltagePeriod { +} // namespace Bitmap32 +namespace Bitmap64 { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::BitMask; + using DecodableType = chip::BitMask; + using DecodableArgType = chip::BitMask; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeUnderVoltagePeriod::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Bitmap64::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsExtremeUnderVoltagePeriod -namespace RmsVoltageSagPeriod { +} // namespace Bitmap64 +namespace Int8u { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = uint8_t; + using DecodableType = uint8_t; + using DecodableArgType = uint8_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSagPeriod::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Int8u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsVoltageSagPeriod -namespace RmsVoltageSwellPeriod { +} // namespace Int8u +namespace Int16u { struct TypeInfo { using Type = uint16_t; using DecodableType = uint16_t; using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSwellPeriod::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Int16u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsVoltageSwellPeriod -namespace AcVoltageMultiplier { +} // namespace Int16u +namespace Int24u { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = uint32_t; + using DecodableType = uint32_t; + using DecodableArgType = uint32_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AcVoltageMultiplier::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Int24u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AcVoltageMultiplier -namespace AcVoltageDivisor { +} // namespace Int24u +namespace Int32u { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = uint32_t; + using DecodableType = uint32_t; + using DecodableArgType = uint32_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AcVoltageDivisor::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Int32u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AcVoltageDivisor -namespace AcCurrentMultiplier { +} // namespace Int32u +namespace Int40u { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = uint64_t; + using DecodableType = uint64_t; + using DecodableArgType = uint64_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AcCurrentMultiplier::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Int40u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AcCurrentMultiplier -namespace AcCurrentDivisor { +} // namespace Int40u +namespace Int48u { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = uint64_t; + using DecodableType = uint64_t; + using DecodableArgType = uint64_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AcCurrentDivisor::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Int48u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AcCurrentDivisor -namespace AcPowerMultiplier { +} // namespace Int48u +namespace Int56u { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = uint64_t; + using DecodableType = uint64_t; + using DecodableArgType = uint64_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AcPowerMultiplier::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Int56u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AcPowerMultiplier -namespace AcPowerDivisor { +} // namespace Int56u +namespace Int64u { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = uint64_t; + using DecodableType = uint64_t; + using DecodableArgType = uint64_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AcPowerDivisor::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Int64u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AcPowerDivisor -namespace OverloadAlarmsMask { +} // namespace Int64u +namespace Int8s { struct TypeInfo { - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; + using Type = int8_t; + using DecodableType = int8_t; + using DecodableArgType = int8_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::OverloadAlarmsMask::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Int8s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace OverloadAlarmsMask -namespace VoltageOverload { +} // namespace Int8s +namespace Int16s { struct TypeInfo { using Type = int16_t; using DecodableType = int16_t; using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::VoltageOverload::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Int16s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace VoltageOverload -namespace CurrentOverload { +} // namespace Int16s +namespace Int24s { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = int32_t; + using DecodableType = int32_t; + using DecodableArgType = int32_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::CurrentOverload::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Int24s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace CurrentOverload -namespace AcOverloadAlarmsMask { +} // namespace Int24s +namespace Int32s { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = int32_t; + using DecodableType = int32_t; + using DecodableArgType = int32_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AcOverloadAlarmsMask::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Int32s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AcOverloadAlarmsMask -namespace AcVoltageOverload { +} // namespace Int32s +namespace Int40s { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = int64_t; + using DecodableType = int64_t; + using DecodableArgType = int64_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AcVoltageOverload::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Int40s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AcVoltageOverload -namespace AcCurrentOverload { +} // namespace Int40s +namespace Int48s { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = int64_t; + using DecodableType = int64_t; + using DecodableArgType = int64_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AcCurrentOverload::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Int48s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AcCurrentOverload -namespace AcActivePowerOverload { +} // namespace Int48s +namespace Int56s { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = int64_t; + using DecodableType = int64_t; + using DecodableArgType = int64_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AcActivePowerOverload::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Int56s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AcActivePowerOverload -namespace AcReactivePowerOverload { +} // namespace Int56s +namespace Int64s { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = int64_t; + using DecodableType = int64_t; + using DecodableArgType = int64_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AcReactivePowerOverload::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Int64s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AcReactivePowerOverload -namespace AverageRmsOverVoltage { +} // namespace Int64s +namespace Enum8 { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = uint8_t; + using DecodableType = uint8_t; + using DecodableArgType = uint8_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsOverVoltage::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Enum8::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AverageRmsOverVoltage -namespace AverageRmsUnderVoltage { +} // namespace Enum8 +namespace Enum16 { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = uint16_t; + using DecodableType = uint16_t; + using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsUnderVoltage::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Enum16::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AverageRmsUnderVoltage -namespace RmsExtremeOverVoltage { +} // namespace Enum16 +namespace FloatSingle { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = float; + using DecodableType = float; + using DecodableArgType = float; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeOverVoltage::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::FloatSingle::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsExtremeOverVoltage -namespace RmsExtremeUnderVoltage { +} // namespace FloatSingle +namespace FloatDouble { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = double; + using DecodableType = double; + using DecodableArgType = double; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeUnderVoltage::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::FloatDouble::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsExtremeUnderVoltage -namespace RmsVoltageSag { +} // namespace FloatDouble +namespace OctetString { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = chip::ByteSpan; + using DecodableType = chip::ByteSpan; + using DecodableArgType = chip::ByteSpan; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSag::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::OctetString::Id; } static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 10; } }; -} // namespace RmsVoltageSag -namespace RmsVoltageSwell { +} // namespace OctetString +namespace ListInt8u { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = chip::app::DataModel::List; + using DecodableType = chip::app::DataModel::DecodableList; + using DecodableArgType = const chip::app::DataModel::DecodableList &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSwell::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ListInt8u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsVoltageSwell -namespace LineCurrentPhaseB { +} // namespace ListInt8u +namespace ListOctetString { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::List; + using DecodableType = chip::app::DataModel::DecodableList; + using DecodableArgType = const chip::app::DataModel::DecodableList &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::LineCurrentPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ListOctetString::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace LineCurrentPhaseB -namespace ActiveCurrentPhaseB { +} // namespace ListOctetString +namespace ListStructOctetString { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = chip::app::DataModel::List; + using DecodableType = + chip::app::DataModel::DecodableList; + using DecodableArgType = + const chip::app::DataModel::DecodableList &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ActiveCurrentPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ListStructOctetString::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ActiveCurrentPhaseB -namespace ReactiveCurrentPhaseB { +} // namespace ListStructOctetString +namespace LongOctetString { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = chip::ByteSpan; + using DecodableType = chip::ByteSpan; + using DecodableArgType = chip::ByteSpan; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ReactiveCurrentPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::LongOctetString::Id; } static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 1000; } }; -} // namespace ReactiveCurrentPhaseB -namespace RmsVoltagePhaseB { +} // namespace LongOctetString +namespace CharString { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::CharSpan; + using DecodableType = chip::CharSpan; + using DecodableArgType = chip::CharSpan; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltagePhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::CharString::Id; } static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 10; } }; -} // namespace RmsVoltagePhaseB -namespace RmsVoltageMinPhaseB { +} // namespace CharString +namespace LongCharString { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::CharSpan; + using DecodableType = chip::CharSpan; + using DecodableArgType = chip::CharSpan; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMinPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::LongCharString::Id; } static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 1000; } }; -} // namespace RmsVoltageMinPhaseB -namespace RmsVoltageMaxPhaseB { +} // namespace LongCharString +namespace EpochUs { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = uint64_t; + using DecodableType = uint64_t; + using DecodableArgType = uint64_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMaxPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::EpochUs::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsVoltageMaxPhaseB -namespace RmsCurrentPhaseB { +} // namespace EpochUs +namespace EpochS { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = uint32_t; + using DecodableType = uint32_t; + using DecodableArgType = uint32_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::EpochS::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsCurrentPhaseB -namespace RmsCurrentMinPhaseB { +} // namespace EpochS +namespace VendorId { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::VendorId; + using DecodableType = chip::VendorId; + using DecodableArgType = chip::VendorId; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMinPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::VendorId::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsCurrentMinPhaseB -namespace RmsCurrentMaxPhaseB { +} // namespace VendorId +namespace ListNullablesAndOptionalsStruct { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::List; + using DecodableType = + chip::app::DataModel::DecodableList; + using DecodableArgType = const chip::app::DataModel::DecodableList< + chip::app::Clusters::TestCluster::Structs::NullablesAndOptionalsStruct::DecodableType> &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMaxPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ListNullablesAndOptionalsStruct::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsCurrentMaxPhaseB -namespace ActivePowerPhaseB { +} // namespace ListNullablesAndOptionalsStruct +namespace EnumAttr { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = chip::app::Clusters::TestCluster::SimpleEnum; + using DecodableType = chip::app::Clusters::TestCluster::SimpleEnum; + using DecodableArgType = chip::app::Clusters::TestCluster::SimpleEnum; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::EnumAttr::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ActivePowerPhaseB -namespace ActivePowerMinPhaseB { +} // namespace EnumAttr +namespace StructAttr { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = chip::app::Clusters::TestCluster::Structs::SimpleStruct::Type; + using DecodableType = chip::app::Clusters::TestCluster::Structs::SimpleStruct::DecodableType; + using DecodableArgType = const chip::app::Clusters::TestCluster::Structs::SimpleStruct::DecodableType &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMinPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::StructAttr::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ActivePowerMinPhaseB -namespace ActivePowerMaxPhaseB { +} // namespace StructAttr +namespace RangeRestrictedInt8u { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = uint8_t; + using DecodableType = uint8_t; + using DecodableArgType = uint8_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMaxPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RangeRestrictedInt8u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ActivePowerMaxPhaseB -namespace ReactivePowerPhaseB { +} // namespace RangeRestrictedInt8u +namespace RangeRestrictedInt8s { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = int8_t; + using DecodableType = int8_t; + using DecodableArgType = int8_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ReactivePowerPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RangeRestrictedInt8s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ReactivePowerPhaseB -namespace ApparentPowerPhaseB { +} // namespace RangeRestrictedInt8s +namespace RangeRestrictedInt16u { struct TypeInfo { using Type = uint16_t; using DecodableType = uint16_t; using DecodableArgType = uint16_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ApparentPowerPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RangeRestrictedInt16u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ApparentPowerPhaseB -namespace PowerFactorPhaseB { +} // namespace RangeRestrictedInt16u +namespace RangeRestrictedInt16s { struct TypeInfo { - using Type = int8_t; - using DecodableType = int8_t; - using DecodableArgType = int8_t; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::PowerFactorPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::RangeRestrictedInt16s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace PowerFactorPhaseB -namespace AverageRmsVoltageMeasurementPeriodPhaseB { +} // namespace RangeRestrictedInt16s +namespace ListLongOctetString { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::List; + using DecodableType = chip::app::DataModel::DecodableList; + using DecodableArgType = const chip::app::DataModel::DecodableList &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ListLongOctetString::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AverageRmsVoltageMeasurementPeriodPhaseB -namespace AverageRmsOverVoltageCounterPhaseB { +} // namespace ListLongOctetString +namespace ListFabricScoped { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::List; + using DecodableType = + chip::app::DataModel::DecodableList; + using DecodableArgType = + const chip::app::DataModel::DecodableList &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsOverVoltageCounterPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ListFabricScoped::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AverageRmsOverVoltageCounterPhaseB -namespace AverageRmsUnderVoltageCounterPhaseB { +} // namespace ListFabricScoped +namespace TimedWriteBoolean { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = bool; + using DecodableType = bool; + using DecodableArgType = bool; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsUnderVoltageCounterPhaseB::Id; } - static constexpr bool MustUseTimedWrite() { return false; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::TimedWriteBoolean::Id; } + static constexpr bool MustUseTimedWrite() { return true; } }; -} // namespace AverageRmsUnderVoltageCounterPhaseB -namespace RmsExtremeOverVoltagePeriodPhaseB { +} // namespace TimedWriteBoolean +namespace GeneralErrorBoolean { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = bool; + using DecodableType = bool; + using DecodableArgType = bool; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeOverVoltagePeriodPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::GeneralErrorBoolean::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsExtremeOverVoltagePeriodPhaseB -namespace RmsExtremeUnderVoltagePeriodPhaseB { +} // namespace GeneralErrorBoolean +namespace ClusterErrorBoolean { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = bool; + using DecodableType = bool; + using DecodableArgType = bool; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeUnderVoltagePeriodPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ClusterErrorBoolean::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsExtremeUnderVoltagePeriodPhaseB -namespace RmsVoltageSagPeriodPhaseB { +} // namespace ClusterErrorBoolean +namespace Unsupported { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = bool; + using DecodableType = bool; + using DecodableArgType = bool; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSagPeriodPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Unsupported::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsVoltageSagPeriodPhaseB -namespace RmsVoltageSwellPeriodPhaseB { +} // namespace Unsupported +namespace NullableBoolean { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSwellPeriodPhaseB::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableBoolean::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsVoltageSwellPeriodPhaseB -namespace LineCurrentPhaseC { +} // namespace NullableBoolean +namespace NullableBitmap8 { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::Nullable>; + using DecodableType = chip::app::DataModel::Nullable>; + using DecodableArgType = + const chip::app::DataModel::Nullable> &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::LineCurrentPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableBitmap8::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace LineCurrentPhaseC -namespace ActiveCurrentPhaseC { +} // namespace NullableBitmap8 +namespace NullableBitmap16 { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = chip::app::DataModel::Nullable>; + using DecodableType = chip::app::DataModel::Nullable>; + using DecodableArgType = + const chip::app::DataModel::Nullable> &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ActiveCurrentPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableBitmap16::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ActiveCurrentPhaseC -namespace ReactiveCurrentPhaseC { +} // namespace NullableBitmap16 +namespace NullableBitmap32 { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = chip::app::DataModel::Nullable>; + using DecodableType = chip::app::DataModel::Nullable>; + using DecodableArgType = + const chip::app::DataModel::Nullable> &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ReactiveCurrentPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableBitmap32::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ReactiveCurrentPhaseC -namespace RmsVoltagePhaseC { +} // namespace NullableBitmap32 +namespace NullableBitmap64 { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::Nullable>; + using DecodableType = chip::app::DataModel::Nullable>; + using DecodableArgType = + const chip::app::DataModel::Nullable> &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltagePhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableBitmap64::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsVoltagePhaseC -namespace RmsVoltageMinPhaseC { +} // namespace NullableBitmap64 +namespace NullableInt8u { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMinPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt8u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsVoltageMinPhaseC -namespace RmsVoltageMaxPhaseC { +} // namespace NullableInt8u +namespace NullableInt16u { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMaxPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt16u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsVoltageMaxPhaseC -namespace RmsCurrentPhaseC { +} // namespace NullableInt16u +namespace NullableInt24u { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt24u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsCurrentPhaseC -namespace RmsCurrentMinPhaseC { +} // namespace NullableInt24u +namespace NullableInt32u { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMinPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt32u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsCurrentMinPhaseC -namespace RmsCurrentMaxPhaseC { +} // namespace NullableInt32u +namespace NullableInt40u { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMaxPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt40u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsCurrentMaxPhaseC -namespace ActivePowerPhaseC { +} // namespace NullableInt40u +namespace NullableInt48u { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt48u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ActivePowerPhaseC -namespace ActivePowerMinPhaseC { +} // namespace NullableInt48u +namespace NullableInt56u { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMinPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt56u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ActivePowerMinPhaseC -namespace ActivePowerMaxPhaseC { +} // namespace NullableInt56u +namespace NullableInt64u { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMaxPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt64u::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ActivePowerMaxPhaseC -namespace ReactivePowerPhaseC { +} // namespace NullableInt64u +namespace NullableInt8s { struct TypeInfo { - using Type = int16_t; - using DecodableType = int16_t; - using DecodableArgType = int16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ReactivePowerPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt8s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ReactivePowerPhaseC -namespace ApparentPowerPhaseC { +} // namespace NullableInt8s +namespace NullableInt16s { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ApparentPowerPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt16s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ApparentPowerPhaseC -namespace PowerFactorPhaseC { +} // namespace NullableInt16s +namespace NullableInt24s { struct TypeInfo { - using Type = int8_t; - using DecodableType = int8_t; - using DecodableArgType = int8_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::PowerFactorPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt24s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace PowerFactorPhaseC -namespace AverageRmsVoltageMeasurementPeriodPhaseC { +} // namespace NullableInt24s +namespace NullableInt32s { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt32s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AverageRmsVoltageMeasurementPeriodPhaseC -namespace AverageRmsOverVoltageCounterPhaseC { +} // namespace NullableInt32s +namespace NullableInt40s { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsOverVoltageCounterPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt40s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AverageRmsOverVoltageCounterPhaseC -namespace AverageRmsUnderVoltageCounterPhaseC { +} // namespace NullableInt40s +namespace NullableInt48s { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsUnderVoltageCounterPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt48s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace AverageRmsUnderVoltageCounterPhaseC -namespace RmsExtremeOverVoltagePeriodPhaseC { +} // namespace NullableInt48s +namespace NullableInt56s { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeOverVoltagePeriodPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt56s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsExtremeOverVoltagePeriodPhaseC -namespace RmsExtremeUnderVoltagePeriodPhaseC { +} // namespace NullableInt56s +namespace NullableInt64s { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeUnderVoltagePeriodPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableInt64s::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsExtremeUnderVoltagePeriodPhaseC -namespace RmsVoltageSagPeriodPhaseC { +} // namespace NullableInt64s +namespace NullableEnum8 { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSagPeriodPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableEnum8::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsVoltageSagPeriodPhaseC -namespace RmsVoltageSwellPeriodPhaseC { +} // namespace NullableEnum8 +namespace NullableEnum16 { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSwellPeriodPhaseC::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableEnum16::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace RmsVoltageSwellPeriodPhaseC +} // namespace NullableEnum16 +namespace NullableFloatSingle { +struct TypeInfo +{ + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; + + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableFloatSingle::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace NullableFloatSingle +namespace NullableFloatDouble { +struct TypeInfo +{ + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; + + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableFloatDouble::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace NullableFloatDouble +namespace NullableOctetString { +struct TypeInfo +{ + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; + + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableOctetString::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 10; } +}; +} // namespace NullableOctetString +namespace NullableCharString { +struct TypeInfo +{ + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; + + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableCharString::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 10; } +}; +} // namespace NullableCharString +namespace NullableEnumAttr { +struct TypeInfo +{ + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; + + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableEnumAttr::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace NullableEnumAttr +namespace NullableStruct { +struct TypeInfo +{ + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = + const chip::app::DataModel::Nullable &; + + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableStruct::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace NullableStruct +namespace NullableRangeRestrictedInt8u { +struct TypeInfo +{ + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; + + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableRangeRestrictedInt8u::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace NullableRangeRestrictedInt8u +namespace NullableRangeRestrictedInt8s { +struct TypeInfo +{ + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; + + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableRangeRestrictedInt8s::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace NullableRangeRestrictedInt8s +namespace NullableRangeRestrictedInt16u { +struct TypeInfo +{ + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; + + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableRangeRestrictedInt16u::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace NullableRangeRestrictedInt16u +namespace NullableRangeRestrictedInt16s { +struct TypeInfo +{ + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; + + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NullableRangeRestrictedInt16s::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace NullableRangeRestrictedInt16s namespace GeneratedCommandList { struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo { - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } }; } // namespace GeneratedCommandList namespace AcceptedCommandList { struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo { - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } }; } // namespace AcceptedCommandList namespace AttributeList { struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo { - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } }; } // namespace AttributeList namespace FeatureMap { struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo { - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } }; } // namespace FeatureMap namespace ClusterRevision { struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo { - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } }; } // namespace ClusterRevision @@ -37085,155 +37060,95 @@ struct TypeInfo { struct DecodableType { - static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasurementType::TypeInfo::DecodableType measurementType = static_cast(0); - Attributes::DcVoltage::TypeInfo::DecodableType dcVoltage = static_cast(0); - Attributes::DcVoltageMin::TypeInfo::DecodableType dcVoltageMin = static_cast(0); - Attributes::DcVoltageMax::TypeInfo::DecodableType dcVoltageMax = static_cast(0); - Attributes::DcCurrent::TypeInfo::DecodableType dcCurrent = static_cast(0); - Attributes::DcCurrentMin::TypeInfo::DecodableType dcCurrentMin = static_cast(0); - Attributes::DcCurrentMax::TypeInfo::DecodableType dcCurrentMax = static_cast(0); - Attributes::DcPower::TypeInfo::DecodableType dcPower = static_cast(0); - Attributes::DcPowerMin::TypeInfo::DecodableType dcPowerMin = static_cast(0); - Attributes::DcPowerMax::TypeInfo::DecodableType dcPowerMax = static_cast(0); - Attributes::DcVoltageMultiplier::TypeInfo::DecodableType dcVoltageMultiplier = static_cast(0); - Attributes::DcVoltageDivisor::TypeInfo::DecodableType dcVoltageDivisor = static_cast(0); - Attributes::DcCurrentMultiplier::TypeInfo::DecodableType dcCurrentMultiplier = static_cast(0); - Attributes::DcCurrentDivisor::TypeInfo::DecodableType dcCurrentDivisor = static_cast(0); - Attributes::DcPowerMultiplier::TypeInfo::DecodableType dcPowerMultiplier = static_cast(0); - Attributes::DcPowerDivisor::TypeInfo::DecodableType dcPowerDivisor = static_cast(0); - Attributes::AcFrequency::TypeInfo::DecodableType acFrequency = static_cast(0); - Attributes::AcFrequencyMin::TypeInfo::DecodableType acFrequencyMin = static_cast(0); - Attributes::AcFrequencyMax::TypeInfo::DecodableType acFrequencyMax = static_cast(0); - Attributes::NeutralCurrent::TypeInfo::DecodableType neutralCurrent = static_cast(0); - Attributes::TotalActivePower::TypeInfo::DecodableType totalActivePower = static_cast(0); - Attributes::TotalReactivePower::TypeInfo::DecodableType totalReactivePower = static_cast(0); - Attributes::TotalApparentPower::TypeInfo::DecodableType totalApparentPower = static_cast(0); - Attributes::Measured1stHarmonicCurrent::TypeInfo::DecodableType measured1stHarmonicCurrent = static_cast(0); - Attributes::Measured3rdHarmonicCurrent::TypeInfo::DecodableType measured3rdHarmonicCurrent = static_cast(0); - Attributes::Measured5thHarmonicCurrent::TypeInfo::DecodableType measured5thHarmonicCurrent = static_cast(0); - Attributes::Measured7thHarmonicCurrent::TypeInfo::DecodableType measured7thHarmonicCurrent = static_cast(0); - Attributes::Measured9thHarmonicCurrent::TypeInfo::DecodableType measured9thHarmonicCurrent = static_cast(0); - Attributes::Measured11thHarmonicCurrent::TypeInfo::DecodableType measured11thHarmonicCurrent = static_cast(0); - Attributes::MeasuredPhase1stHarmonicCurrent::TypeInfo::DecodableType measuredPhase1stHarmonicCurrent = - static_cast(0); - Attributes::MeasuredPhase3rdHarmonicCurrent::TypeInfo::DecodableType measuredPhase3rdHarmonicCurrent = - static_cast(0); - Attributes::MeasuredPhase5thHarmonicCurrent::TypeInfo::DecodableType measuredPhase5thHarmonicCurrent = - static_cast(0); - Attributes::MeasuredPhase7thHarmonicCurrent::TypeInfo::DecodableType measuredPhase7thHarmonicCurrent = - static_cast(0); - Attributes::MeasuredPhase9thHarmonicCurrent::TypeInfo::DecodableType measuredPhase9thHarmonicCurrent = - static_cast(0); - Attributes::MeasuredPhase11thHarmonicCurrent::TypeInfo::DecodableType measuredPhase11thHarmonicCurrent = - static_cast(0); - Attributes::AcFrequencyMultiplier::TypeInfo::DecodableType acFrequencyMultiplier = static_cast(0); - Attributes::AcFrequencyDivisor::TypeInfo::DecodableType acFrequencyDivisor = static_cast(0); - Attributes::PowerMultiplier::TypeInfo::DecodableType powerMultiplier = static_cast(0); - Attributes::PowerDivisor::TypeInfo::DecodableType powerDivisor = static_cast(0); - Attributes::HarmonicCurrentMultiplier::TypeInfo::DecodableType harmonicCurrentMultiplier = static_cast(0); - Attributes::PhaseHarmonicCurrentMultiplier::TypeInfo::DecodableType phaseHarmonicCurrentMultiplier = static_cast(0); - Attributes::InstantaneousVoltage::TypeInfo::DecodableType instantaneousVoltage = static_cast(0); - Attributes::InstantaneousLineCurrent::TypeInfo::DecodableType instantaneousLineCurrent = static_cast(0); - Attributes::InstantaneousActiveCurrent::TypeInfo::DecodableType instantaneousActiveCurrent = static_cast(0); - Attributes::InstantaneousReactiveCurrent::TypeInfo::DecodableType instantaneousReactiveCurrent = static_cast(0); - Attributes::InstantaneousPower::TypeInfo::DecodableType instantaneousPower = static_cast(0); - Attributes::RmsVoltage::TypeInfo::DecodableType rmsVoltage = static_cast(0); - Attributes::RmsVoltageMin::TypeInfo::DecodableType rmsVoltageMin = static_cast(0); - Attributes::RmsVoltageMax::TypeInfo::DecodableType rmsVoltageMax = static_cast(0); - Attributes::RmsCurrent::TypeInfo::DecodableType rmsCurrent = static_cast(0); - Attributes::RmsCurrentMin::TypeInfo::DecodableType rmsCurrentMin = static_cast(0); - Attributes::RmsCurrentMax::TypeInfo::DecodableType rmsCurrentMax = static_cast(0); - Attributes::ActivePower::TypeInfo::DecodableType activePower = static_cast(0); - Attributes::ActivePowerMin::TypeInfo::DecodableType activePowerMin = static_cast(0); - Attributes::ActivePowerMax::TypeInfo::DecodableType activePowerMax = static_cast(0); - Attributes::ReactivePower::TypeInfo::DecodableType reactivePower = static_cast(0); - Attributes::ApparentPower::TypeInfo::DecodableType apparentPower = static_cast(0); - Attributes::PowerFactor::TypeInfo::DecodableType powerFactor = static_cast(0); - Attributes::AverageRmsVoltageMeasurementPeriod::TypeInfo::DecodableType averageRmsVoltageMeasurementPeriod = - static_cast(0); - Attributes::AverageRmsUnderVoltageCounter::TypeInfo::DecodableType averageRmsUnderVoltageCounter = static_cast(0); - Attributes::RmsExtremeOverVoltagePeriod::TypeInfo::DecodableType rmsExtremeOverVoltagePeriod = static_cast(0); - Attributes::RmsExtremeUnderVoltagePeriod::TypeInfo::DecodableType rmsExtremeUnderVoltagePeriod = static_cast(0); - Attributes::RmsVoltageSagPeriod::TypeInfo::DecodableType rmsVoltageSagPeriod = static_cast(0); - Attributes::RmsVoltageSwellPeriod::TypeInfo::DecodableType rmsVoltageSwellPeriod = static_cast(0); - Attributes::AcVoltageMultiplier::TypeInfo::DecodableType acVoltageMultiplier = static_cast(0); - Attributes::AcVoltageDivisor::TypeInfo::DecodableType acVoltageDivisor = static_cast(0); - Attributes::AcCurrentMultiplier::TypeInfo::DecodableType acCurrentMultiplier = static_cast(0); - Attributes::AcCurrentDivisor::TypeInfo::DecodableType acCurrentDivisor = static_cast(0); - Attributes::AcPowerMultiplier::TypeInfo::DecodableType acPowerMultiplier = static_cast(0); - Attributes::AcPowerDivisor::TypeInfo::DecodableType acPowerDivisor = static_cast(0); - Attributes::OverloadAlarmsMask::TypeInfo::DecodableType overloadAlarmsMask = static_cast(0); - Attributes::VoltageOverload::TypeInfo::DecodableType voltageOverload = static_cast(0); - Attributes::CurrentOverload::TypeInfo::DecodableType currentOverload = static_cast(0); - Attributes::AcOverloadAlarmsMask::TypeInfo::DecodableType acOverloadAlarmsMask = static_cast(0); - Attributes::AcVoltageOverload::TypeInfo::DecodableType acVoltageOverload = static_cast(0); - Attributes::AcCurrentOverload::TypeInfo::DecodableType acCurrentOverload = static_cast(0); - Attributes::AcActivePowerOverload::TypeInfo::DecodableType acActivePowerOverload = static_cast(0); - Attributes::AcReactivePowerOverload::TypeInfo::DecodableType acReactivePowerOverload = static_cast(0); - Attributes::AverageRmsOverVoltage::TypeInfo::DecodableType averageRmsOverVoltage = static_cast(0); - Attributes::AverageRmsUnderVoltage::TypeInfo::DecodableType averageRmsUnderVoltage = static_cast(0); - Attributes::RmsExtremeOverVoltage::TypeInfo::DecodableType rmsExtremeOverVoltage = static_cast(0); - Attributes::RmsExtremeUnderVoltage::TypeInfo::DecodableType rmsExtremeUnderVoltage = static_cast(0); - Attributes::RmsVoltageSag::TypeInfo::DecodableType rmsVoltageSag = static_cast(0); - Attributes::RmsVoltageSwell::TypeInfo::DecodableType rmsVoltageSwell = static_cast(0); - Attributes::LineCurrentPhaseB::TypeInfo::DecodableType lineCurrentPhaseB = static_cast(0); - Attributes::ActiveCurrentPhaseB::TypeInfo::DecodableType activeCurrentPhaseB = static_cast(0); - Attributes::ReactiveCurrentPhaseB::TypeInfo::DecodableType reactiveCurrentPhaseB = static_cast(0); - Attributes::RmsVoltagePhaseB::TypeInfo::DecodableType rmsVoltagePhaseB = static_cast(0); - Attributes::RmsVoltageMinPhaseB::TypeInfo::DecodableType rmsVoltageMinPhaseB = static_cast(0); - Attributes::RmsVoltageMaxPhaseB::TypeInfo::DecodableType rmsVoltageMaxPhaseB = static_cast(0); - Attributes::RmsCurrentPhaseB::TypeInfo::DecodableType rmsCurrentPhaseB = static_cast(0); - Attributes::RmsCurrentMinPhaseB::TypeInfo::DecodableType rmsCurrentMinPhaseB = static_cast(0); - Attributes::RmsCurrentMaxPhaseB::TypeInfo::DecodableType rmsCurrentMaxPhaseB = static_cast(0); - Attributes::ActivePowerPhaseB::TypeInfo::DecodableType activePowerPhaseB = static_cast(0); - Attributes::ActivePowerMinPhaseB::TypeInfo::DecodableType activePowerMinPhaseB = static_cast(0); - Attributes::ActivePowerMaxPhaseB::TypeInfo::DecodableType activePowerMaxPhaseB = static_cast(0); - Attributes::ReactivePowerPhaseB::TypeInfo::DecodableType reactivePowerPhaseB = static_cast(0); - Attributes::ApparentPowerPhaseB::TypeInfo::DecodableType apparentPowerPhaseB = static_cast(0); - Attributes::PowerFactorPhaseB::TypeInfo::DecodableType powerFactorPhaseB = static_cast(0); - Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::TypeInfo::DecodableType averageRmsVoltageMeasurementPeriodPhaseB = - static_cast(0); - Attributes::AverageRmsOverVoltageCounterPhaseB::TypeInfo::DecodableType averageRmsOverVoltageCounterPhaseB = - static_cast(0); - Attributes::AverageRmsUnderVoltageCounterPhaseB::TypeInfo::DecodableType averageRmsUnderVoltageCounterPhaseB = - static_cast(0); - Attributes::RmsExtremeOverVoltagePeriodPhaseB::TypeInfo::DecodableType rmsExtremeOverVoltagePeriodPhaseB = - static_cast(0); - Attributes::RmsExtremeUnderVoltagePeriodPhaseB::TypeInfo::DecodableType rmsExtremeUnderVoltagePeriodPhaseB = - static_cast(0); - Attributes::RmsVoltageSagPeriodPhaseB::TypeInfo::DecodableType rmsVoltageSagPeriodPhaseB = static_cast(0); - Attributes::RmsVoltageSwellPeriodPhaseB::TypeInfo::DecodableType rmsVoltageSwellPeriodPhaseB = static_cast(0); - Attributes::LineCurrentPhaseC::TypeInfo::DecodableType lineCurrentPhaseC = static_cast(0); - Attributes::ActiveCurrentPhaseC::TypeInfo::DecodableType activeCurrentPhaseC = static_cast(0); - Attributes::ReactiveCurrentPhaseC::TypeInfo::DecodableType reactiveCurrentPhaseC = static_cast(0); - Attributes::RmsVoltagePhaseC::TypeInfo::DecodableType rmsVoltagePhaseC = static_cast(0); - Attributes::RmsVoltageMinPhaseC::TypeInfo::DecodableType rmsVoltageMinPhaseC = static_cast(0); - Attributes::RmsVoltageMaxPhaseC::TypeInfo::DecodableType rmsVoltageMaxPhaseC = static_cast(0); - Attributes::RmsCurrentPhaseC::TypeInfo::DecodableType rmsCurrentPhaseC = static_cast(0); - Attributes::RmsCurrentMinPhaseC::TypeInfo::DecodableType rmsCurrentMinPhaseC = static_cast(0); - Attributes::RmsCurrentMaxPhaseC::TypeInfo::DecodableType rmsCurrentMaxPhaseC = static_cast(0); - Attributes::ActivePowerPhaseC::TypeInfo::DecodableType activePowerPhaseC = static_cast(0); - Attributes::ActivePowerMinPhaseC::TypeInfo::DecodableType activePowerMinPhaseC = static_cast(0); - Attributes::ActivePowerMaxPhaseC::TypeInfo::DecodableType activePowerMaxPhaseC = static_cast(0); - Attributes::ReactivePowerPhaseC::TypeInfo::DecodableType reactivePowerPhaseC = static_cast(0); - Attributes::ApparentPowerPhaseC::TypeInfo::DecodableType apparentPowerPhaseC = static_cast(0); - Attributes::PowerFactorPhaseC::TypeInfo::DecodableType powerFactorPhaseC = static_cast(0); - Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::TypeInfo::DecodableType averageRmsVoltageMeasurementPeriodPhaseC = - static_cast(0); - Attributes::AverageRmsOverVoltageCounterPhaseC::TypeInfo::DecodableType averageRmsOverVoltageCounterPhaseC = - static_cast(0); - Attributes::AverageRmsUnderVoltageCounterPhaseC::TypeInfo::DecodableType averageRmsUnderVoltageCounterPhaseC = - static_cast(0); - Attributes::RmsExtremeOverVoltagePeriodPhaseC::TypeInfo::DecodableType rmsExtremeOverVoltagePeriodPhaseC = - static_cast(0); - Attributes::RmsExtremeUnderVoltagePeriodPhaseC::TypeInfo::DecodableType rmsExtremeUnderVoltagePeriodPhaseC = - static_cast(0); - Attributes::RmsVoltageSagPeriodPhaseC::TypeInfo::DecodableType rmsVoltageSagPeriodPhaseC = static_cast(0); - Attributes::RmsVoltageSwellPeriodPhaseC::TypeInfo::DecodableType rmsVoltageSwellPeriodPhaseC = static_cast(0); + Attributes::Boolean::TypeInfo::DecodableType boolean = static_cast(0); + Attributes::Bitmap8::TypeInfo::DecodableType bitmap8 = + static_cast>(0); + Attributes::Bitmap16::TypeInfo::DecodableType bitmap16 = + static_cast>(0); + Attributes::Bitmap32::TypeInfo::DecodableType bitmap32 = + static_cast>(0); + Attributes::Bitmap64::TypeInfo::DecodableType bitmap64 = + static_cast>(0); + Attributes::Int8u::TypeInfo::DecodableType int8u = static_cast(0); + Attributes::Int16u::TypeInfo::DecodableType int16u = static_cast(0); + Attributes::Int24u::TypeInfo::DecodableType int24u = static_cast(0); + Attributes::Int32u::TypeInfo::DecodableType int32u = static_cast(0); + Attributes::Int40u::TypeInfo::DecodableType int40u = static_cast(0); + Attributes::Int48u::TypeInfo::DecodableType int48u = static_cast(0); + Attributes::Int56u::TypeInfo::DecodableType int56u = static_cast(0); + Attributes::Int64u::TypeInfo::DecodableType int64u = static_cast(0); + Attributes::Int8s::TypeInfo::DecodableType int8s = static_cast(0); + Attributes::Int16s::TypeInfo::DecodableType int16s = static_cast(0); + Attributes::Int24s::TypeInfo::DecodableType int24s = static_cast(0); + Attributes::Int32s::TypeInfo::DecodableType int32s = static_cast(0); + Attributes::Int40s::TypeInfo::DecodableType int40s = static_cast(0); + Attributes::Int48s::TypeInfo::DecodableType int48s = static_cast(0); + Attributes::Int56s::TypeInfo::DecodableType int56s = static_cast(0); + Attributes::Int64s::TypeInfo::DecodableType int64s = static_cast(0); + Attributes::Enum8::TypeInfo::DecodableType enum8 = static_cast(0); + Attributes::Enum16::TypeInfo::DecodableType enum16 = static_cast(0); + Attributes::FloatSingle::TypeInfo::DecodableType floatSingle = static_cast(0); + Attributes::FloatDouble::TypeInfo::DecodableType floatDouble = static_cast(0); + Attributes::OctetString::TypeInfo::DecodableType octetString; + Attributes::ListInt8u::TypeInfo::DecodableType listInt8u; + Attributes::ListOctetString::TypeInfo::DecodableType listOctetString; + Attributes::ListStructOctetString::TypeInfo::DecodableType listStructOctetString; + Attributes::LongOctetString::TypeInfo::DecodableType longOctetString; + Attributes::CharString::TypeInfo::DecodableType charString; + Attributes::LongCharString::TypeInfo::DecodableType longCharString; + Attributes::EpochUs::TypeInfo::DecodableType epochUs = static_cast(0); + Attributes::EpochS::TypeInfo::DecodableType epochS = static_cast(0); + Attributes::VendorId::TypeInfo::DecodableType vendorId = static_cast(0); + Attributes::ListNullablesAndOptionalsStruct::TypeInfo::DecodableType listNullablesAndOptionalsStruct; + Attributes::EnumAttr::TypeInfo::DecodableType enumAttr = static_cast(0); + Attributes::StructAttr::TypeInfo::DecodableType structAttr; + Attributes::RangeRestrictedInt8u::TypeInfo::DecodableType rangeRestrictedInt8u = static_cast(0); + Attributes::RangeRestrictedInt8s::TypeInfo::DecodableType rangeRestrictedInt8s = static_cast(0); + Attributes::RangeRestrictedInt16u::TypeInfo::DecodableType rangeRestrictedInt16u = static_cast(0); + Attributes::RangeRestrictedInt16s::TypeInfo::DecodableType rangeRestrictedInt16s = static_cast(0); + Attributes::ListLongOctetString::TypeInfo::DecodableType listLongOctetString; + Attributes::ListFabricScoped::TypeInfo::DecodableType listFabricScoped; + Attributes::TimedWriteBoolean::TypeInfo::DecodableType timedWriteBoolean = static_cast(0); + Attributes::GeneralErrorBoolean::TypeInfo::DecodableType generalErrorBoolean = static_cast(0); + Attributes::ClusterErrorBoolean::TypeInfo::DecodableType clusterErrorBoolean = static_cast(0); + Attributes::Unsupported::TypeInfo::DecodableType unsupported = static_cast(0); + Attributes::NullableBoolean::TypeInfo::DecodableType nullableBoolean; + Attributes::NullableBitmap8::TypeInfo::DecodableType nullableBitmap8; + Attributes::NullableBitmap16::TypeInfo::DecodableType nullableBitmap16; + Attributes::NullableBitmap32::TypeInfo::DecodableType nullableBitmap32; + Attributes::NullableBitmap64::TypeInfo::DecodableType nullableBitmap64; + Attributes::NullableInt8u::TypeInfo::DecodableType nullableInt8u; + Attributes::NullableInt16u::TypeInfo::DecodableType nullableInt16u; + Attributes::NullableInt24u::TypeInfo::DecodableType nullableInt24u; + Attributes::NullableInt32u::TypeInfo::DecodableType nullableInt32u; + Attributes::NullableInt40u::TypeInfo::DecodableType nullableInt40u; + Attributes::NullableInt48u::TypeInfo::DecodableType nullableInt48u; + Attributes::NullableInt56u::TypeInfo::DecodableType nullableInt56u; + Attributes::NullableInt64u::TypeInfo::DecodableType nullableInt64u; + Attributes::NullableInt8s::TypeInfo::DecodableType nullableInt8s; + Attributes::NullableInt16s::TypeInfo::DecodableType nullableInt16s; + Attributes::NullableInt24s::TypeInfo::DecodableType nullableInt24s; + Attributes::NullableInt32s::TypeInfo::DecodableType nullableInt32s; + Attributes::NullableInt40s::TypeInfo::DecodableType nullableInt40s; + Attributes::NullableInt48s::TypeInfo::DecodableType nullableInt48s; + Attributes::NullableInt56s::TypeInfo::DecodableType nullableInt56s; + Attributes::NullableInt64s::TypeInfo::DecodableType nullableInt64s; + Attributes::NullableEnum8::TypeInfo::DecodableType nullableEnum8; + Attributes::NullableEnum16::TypeInfo::DecodableType nullableEnum16; + Attributes::NullableFloatSingle::TypeInfo::DecodableType nullableFloatSingle; + Attributes::NullableFloatDouble::TypeInfo::DecodableType nullableFloatDouble; + Attributes::NullableOctetString::TypeInfo::DecodableType nullableOctetString; + Attributes::NullableCharString::TypeInfo::DecodableType nullableCharString; + Attributes::NullableEnumAttr::TypeInfo::DecodableType nullableEnumAttr; + Attributes::NullableStruct::TypeInfo::DecodableType nullableStruct; + Attributes::NullableRangeRestrictedInt8u::TypeInfo::DecodableType nullableRangeRestrictedInt8u; + Attributes::NullableRangeRestrictedInt8s::TypeInfo::DecodableType nullableRangeRestrictedInt8s; + Attributes::NullableRangeRestrictedInt16u::TypeInfo::DecodableType nullableRangeRestrictedInt16u; + Attributes::NullableRangeRestrictedInt16s::TypeInfo::DecodableType nullableRangeRestrictedInt16s; Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; Attributes::AttributeList::TypeInfo::DecodableType attributeList; @@ -37242,7 +37157,92 @@ struct TypeInfo }; }; } // namespace Attributes -} // namespace ElectricalMeasurement +namespace Events { +namespace TestEvent { +static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info; + +enum class Fields +{ + kArg1 = 1, + kArg2 = 2, + kArg3 = 3, + kArg4 = 4, + kArg5 = 5, + kArg6 = 6, +}; + +struct Type +{ +public: + static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } + static constexpr EventId GetEventId() { return Events::TestEvent::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr bool kIsFabricScoped = false; + + uint8_t arg1 = static_cast(0); + SimpleEnum arg2 = static_cast(0); + bool arg3 = static_cast(0); + Structs::SimpleStruct::Type arg4; + DataModel::List arg5; + DataModel::List arg6; + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; +}; + +struct DecodableType +{ +public: + static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } + static constexpr EventId GetEventId() { return Events::TestEvent::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + + uint8_t arg1 = static_cast(0); + SimpleEnum arg2 = static_cast(0); + bool arg3 = static_cast(0); + Structs::SimpleStruct::DecodableType arg4; + DataModel::DecodableList arg5; + DataModel::DecodableList arg6; + + CHIP_ERROR Decode(TLV::TLVReader & reader); +}; +} // namespace TestEvent +namespace TestFabricScopedEvent { +static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info; + +enum class Fields +{ + kArg1 = 254, +}; + +struct Type +{ +public: + static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } + static constexpr EventId GetEventId() { return Events::TestFabricScopedEvent::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + static constexpr bool kIsFabricScoped = true; + + chip::FabricIndex arg1 = static_cast(0); + + auto GetFabricIndex() const { return arg1; } + + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; +}; + +struct DecodableType +{ +public: + static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } + static constexpr EventId GetEventId() { return Events::TestFabricScopedEvent::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } + + chip::FabricIndex arg1 = static_cast(0); + + CHIP_ERROR Decode(TLV::TLVReader & reader); +}; +} // namespace TestFabricScopedEvent +} // namespace Events +} // namespace TestCluster } // namespace Clusters diff --git a/zzz_generated/app-common/app-common/zap-generated/command-id.h b/zzz_generated/app-common/app-common/zap-generated/command-id.h index 601c4dbc461b6a..09d4aa9514e261 100644 --- a/zzz_generated/app-common/app-common/zap-generated/command-id.h +++ b/zzz_generated/app-common/app-common/zap-generated/command-id.h @@ -390,6 +390,35 @@ #define ZCL_LOGIN_COMMAND_ID (0x02) #define ZCL_LOGOUT_COMMAND_ID (0x03) +// Commands for cluster: Messaging +#define ZCL_DISPLAY_MESSAGE_COMMAND_ID (0x00) +#define ZCL_GET_LAST_MESSAGE_COMMAND_ID (0x00) +#define ZCL_CANCEL_MESSAGE_COMMAND_ID (0x01) +#define ZCL_MESSAGE_CONFIRMATION_COMMAND_ID (0x01) +#define ZCL_DISPLAY_PROTECTED_MESSAGE_COMMAND_ID (0x02) +#define ZCL_GET_MESSAGE_CANCELLATION_COMMAND_ID (0x02) +#define ZCL_CANCEL_ALL_MESSAGES_COMMAND_ID (0x03) + +// Commands for cluster: Appliance Events and Alert +#define ZCL_GET_ALERTS_COMMAND_ID (0x00) +#define ZCL_GET_ALERTS_RESPONSE_COMMAND_ID (0x00) +#define ZCL_ALERTS_NOTIFICATION_COMMAND_ID (0x01) +#define ZCL_EVENTS_NOTIFICATION_COMMAND_ID (0x02) + +// Commands for cluster: Appliance Statistics +#define ZCL_LOG_NOTIFICATION_COMMAND_ID (0x00) +#define ZCL_LOG_REQUEST_COMMAND_ID (0x00) +#define ZCL_LOG_RESPONSE_COMMAND_ID (0x01) +#define ZCL_LOG_QUEUE_REQUEST_COMMAND_ID (0x01) +#define ZCL_LOG_QUEUE_RESPONSE_COMMAND_ID (0x02) +#define ZCL_STATISTICS_AVAILABLE_COMMAND_ID (0x03) + +// Commands for cluster: Electrical Measurement +#define ZCL_GET_PROFILE_INFO_RESPONSE_COMMAND_COMMAND_ID (0x00) +#define ZCL_GET_PROFILE_INFO_COMMAND_COMMAND_ID (0x00) +#define ZCL_GET_MEASUREMENT_PROFILE_RESPONSE_COMMAND_COMMAND_ID (0x01) +#define ZCL_GET_MEASUREMENT_PROFILE_COMMAND_COMMAND_ID (0x01) + // Commands for cluster: Test Cluster #define ZCL_TEST_COMMAND_ID (0x00) #define ZCL_TEST_SPECIFIC_RESPONSE_COMMAND_ID (0x00) @@ -425,32 +454,3 @@ #define ZCL_TEST_SIMPLE_OPTIONAL_ARGUMENT_REQUEST_COMMAND_ID (0x13) #define ZCL_TEST_EMIT_TEST_EVENT_REQUEST_COMMAND_ID (0x14) #define ZCL_TEST_EMIT_TEST_FABRIC_SCOPED_EVENT_REQUEST_COMMAND_ID (0x15) - -// Commands for cluster: Messaging -#define ZCL_DISPLAY_MESSAGE_COMMAND_ID (0x00) -#define ZCL_GET_LAST_MESSAGE_COMMAND_ID (0x00) -#define ZCL_CANCEL_MESSAGE_COMMAND_ID (0x01) -#define ZCL_MESSAGE_CONFIRMATION_COMMAND_ID (0x01) -#define ZCL_DISPLAY_PROTECTED_MESSAGE_COMMAND_ID (0x02) -#define ZCL_GET_MESSAGE_CANCELLATION_COMMAND_ID (0x02) -#define ZCL_CANCEL_ALL_MESSAGES_COMMAND_ID (0x03) - -// Commands for cluster: Appliance Events and Alert -#define ZCL_GET_ALERTS_COMMAND_ID (0x00) -#define ZCL_GET_ALERTS_RESPONSE_COMMAND_ID (0x00) -#define ZCL_ALERTS_NOTIFICATION_COMMAND_ID (0x01) -#define ZCL_EVENTS_NOTIFICATION_COMMAND_ID (0x02) - -// Commands for cluster: Appliance Statistics -#define ZCL_LOG_NOTIFICATION_COMMAND_ID (0x00) -#define ZCL_LOG_REQUEST_COMMAND_ID (0x00) -#define ZCL_LOG_RESPONSE_COMMAND_ID (0x01) -#define ZCL_LOG_QUEUE_REQUEST_COMMAND_ID (0x01) -#define ZCL_LOG_QUEUE_RESPONSE_COMMAND_ID (0x02) -#define ZCL_STATISTICS_AVAILABLE_COMMAND_ID (0x03) - -// Commands for cluster: Electrical Measurement -#define ZCL_GET_PROFILE_INFO_RESPONSE_COMMAND_COMMAND_ID (0x00) -#define ZCL_GET_PROFILE_INFO_COMMAND_COMMAND_ID (0x00) -#define ZCL_GET_MEASUREMENT_PROFILE_RESPONSE_COMMAND_COMMAND_ID (0x01) -#define ZCL_GET_MEASUREMENT_PROFILE_COMMAND_COMMAND_ID (0x01) diff --git a/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h b/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h index 0e65c09b996e40..8d73dee1f9f3ab 100644 --- a/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h +++ b/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h @@ -6059,344 +6059,168 @@ static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id; } // namespace Attributes } // namespace AccountLogin -namespace TestCluster { +namespace Messaging { namespace Attributes { -namespace Boolean { -static constexpr AttributeId Id = 0x00000000; -} // namespace Boolean - -namespace Bitmap8 { -static constexpr AttributeId Id = 0x00000001; -} // namespace Bitmap8 - -namespace Bitmap16 { -static constexpr AttributeId Id = 0x00000002; -} // namespace Bitmap16 - -namespace Bitmap32 { -static constexpr AttributeId Id = 0x00000003; -} // namespace Bitmap32 - -namespace Bitmap64 { -static constexpr AttributeId Id = 0x00000004; -} // namespace Bitmap64 - -namespace Int8u { -static constexpr AttributeId Id = 0x00000005; -} // namespace Int8u - -namespace Int16u { -static constexpr AttributeId Id = 0x00000006; -} // namespace Int16u - -namespace Int24u { -static constexpr AttributeId Id = 0x00000007; -} // namespace Int24u - -namespace Int32u { -static constexpr AttributeId Id = 0x00000008; -} // namespace Int32u +namespace GeneratedCommandList { +static constexpr AttributeId Id = Globals::Attributes::GeneratedCommandList::Id; +} // namespace GeneratedCommandList -namespace Int40u { -static constexpr AttributeId Id = 0x00000009; -} // namespace Int40u +namespace AcceptedCommandList { +static constexpr AttributeId Id = Globals::Attributes::AcceptedCommandList::Id; +} // namespace AcceptedCommandList -namespace Int48u { -static constexpr AttributeId Id = 0x0000000A; -} // namespace Int48u +namespace AttributeList { +static constexpr AttributeId Id = Globals::Attributes::AttributeList::Id; +} // namespace AttributeList -namespace Int56u { -static constexpr AttributeId Id = 0x0000000B; -} // namespace Int56u +namespace FeatureMap { +static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id; +} // namespace FeatureMap -namespace Int64u { -static constexpr AttributeId Id = 0x0000000C; -} // namespace Int64u +namespace ClusterRevision { +static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id; +} // namespace ClusterRevision -namespace Int8s { -static constexpr AttributeId Id = 0x0000000D; -} // namespace Int8s +} // namespace Attributes +} // namespace Messaging -namespace Int16s { -static constexpr AttributeId Id = 0x0000000E; -} // namespace Int16s +namespace ApplianceIdentification { +namespace Attributes { -namespace Int24s { -static constexpr AttributeId Id = 0x0000000F; -} // namespace Int24s +namespace BasicIdentification { +static constexpr AttributeId Id = 0x00000000; +} // namespace BasicIdentification -namespace Int32s { +namespace CompanyName { static constexpr AttributeId Id = 0x00000010; -} // namespace Int32s +} // namespace CompanyName -namespace Int40s { +namespace CompanyId { static constexpr AttributeId Id = 0x00000011; -} // namespace Int40s +} // namespace CompanyId -namespace Int48s { +namespace BrandName { static constexpr AttributeId Id = 0x00000012; -} // namespace Int48s +} // namespace BrandName -namespace Int56s { +namespace BrandId { static constexpr AttributeId Id = 0x00000013; -} // namespace Int56s +} // namespace BrandId -namespace Int64s { +namespace Model { static constexpr AttributeId Id = 0x00000014; -} // namespace Int64s +} // namespace Model -namespace Enum8 { +namespace PartNumber { static constexpr AttributeId Id = 0x00000015; -} // namespace Enum8 +} // namespace PartNumber -namespace Enum16 { +namespace ProductRevision { static constexpr AttributeId Id = 0x00000016; -} // namespace Enum16 +} // namespace ProductRevision -namespace FloatSingle { +namespace SoftwareRevision { static constexpr AttributeId Id = 0x00000017; -} // namespace FloatSingle +} // namespace SoftwareRevision -namespace FloatDouble { +namespace ProductTypeName { static constexpr AttributeId Id = 0x00000018; -} // namespace FloatDouble +} // namespace ProductTypeName -namespace OctetString { +namespace ProductTypeId { static constexpr AttributeId Id = 0x00000019; -} // namespace OctetString +} // namespace ProductTypeId -namespace ListInt8u { +namespace CecedSpecificationVersion { static constexpr AttributeId Id = 0x0000001A; -} // namespace ListInt8u +} // namespace CecedSpecificationVersion -namespace ListOctetString { -static constexpr AttributeId Id = 0x0000001B; -} // namespace ListOctetString +namespace GeneratedCommandList { +static constexpr AttributeId Id = Globals::Attributes::GeneratedCommandList::Id; +} // namespace GeneratedCommandList -namespace ListStructOctetString { -static constexpr AttributeId Id = 0x0000001C; -} // namespace ListStructOctetString +namespace AcceptedCommandList { +static constexpr AttributeId Id = Globals::Attributes::AcceptedCommandList::Id; +} // namespace AcceptedCommandList -namespace LongOctetString { -static constexpr AttributeId Id = 0x0000001D; -} // namespace LongOctetString +namespace AttributeList { +static constexpr AttributeId Id = Globals::Attributes::AttributeList::Id; +} // namespace AttributeList -namespace CharString { -static constexpr AttributeId Id = 0x0000001E; -} // namespace CharString +namespace FeatureMap { +static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id; +} // namespace FeatureMap -namespace LongCharString { -static constexpr AttributeId Id = 0x0000001F; -} // namespace LongCharString +namespace ClusterRevision { +static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id; +} // namespace ClusterRevision -namespace EpochUs { -static constexpr AttributeId Id = 0x00000020; -} // namespace EpochUs +} // namespace Attributes +} // namespace ApplianceIdentification -namespace EpochS { -static constexpr AttributeId Id = 0x00000021; -} // namespace EpochS +namespace MeterIdentification { +namespace Attributes { -namespace VendorId { -static constexpr AttributeId Id = 0x00000022; -} // namespace VendorId +namespace CompanyName { +static constexpr AttributeId Id = 0x00000000; +} // namespace CompanyName -namespace ListNullablesAndOptionalsStruct { -static constexpr AttributeId Id = 0x00000023; -} // namespace ListNullablesAndOptionalsStruct +namespace MeterTypeId { +static constexpr AttributeId Id = 0x00000001; +} // namespace MeterTypeId -namespace EnumAttr { -static constexpr AttributeId Id = 0x00000024; -} // namespace EnumAttr +namespace DataQualityId { +static constexpr AttributeId Id = 0x00000004; +} // namespace DataQualityId -namespace StructAttr { -static constexpr AttributeId Id = 0x00000025; -} // namespace StructAttr +namespace CustomerName { +static constexpr AttributeId Id = 0x00000005; +} // namespace CustomerName -namespace RangeRestrictedInt8u { -static constexpr AttributeId Id = 0x00000026; -} // namespace RangeRestrictedInt8u +namespace Model { +static constexpr AttributeId Id = 0x00000006; +} // namespace Model -namespace RangeRestrictedInt8s { -static constexpr AttributeId Id = 0x00000027; -} // namespace RangeRestrictedInt8s +namespace PartNumber { +static constexpr AttributeId Id = 0x00000007; +} // namespace PartNumber -namespace RangeRestrictedInt16u { -static constexpr AttributeId Id = 0x00000028; -} // namespace RangeRestrictedInt16u +namespace ProductRevision { +static constexpr AttributeId Id = 0x00000008; +} // namespace ProductRevision -namespace RangeRestrictedInt16s { -static constexpr AttributeId Id = 0x00000029; -} // namespace RangeRestrictedInt16s +namespace SoftwareRevision { +static constexpr AttributeId Id = 0x0000000A; +} // namespace SoftwareRevision -namespace ListLongOctetString { -static constexpr AttributeId Id = 0x0000002A; -} // namespace ListLongOctetString +namespace UtilityName { +static constexpr AttributeId Id = 0x0000000B; +} // namespace UtilityName -namespace ListFabricScoped { -static constexpr AttributeId Id = 0x0000002B; -} // namespace ListFabricScoped +namespace Pod { +static constexpr AttributeId Id = 0x0000000C; +} // namespace Pod -namespace TimedWriteBoolean { -static constexpr AttributeId Id = 0x00000030; -} // namespace TimedWriteBoolean +namespace AvailablePower { +static constexpr AttributeId Id = 0x0000000D; +} // namespace AvailablePower -namespace GeneralErrorBoolean { -static constexpr AttributeId Id = 0x00000031; -} // namespace GeneralErrorBoolean +namespace PowerThreshold { +static constexpr AttributeId Id = 0x0000000E; +} // namespace PowerThreshold -namespace ClusterErrorBoolean { -static constexpr AttributeId Id = 0x00000032; -} // namespace ClusterErrorBoolean +namespace GeneratedCommandList { +static constexpr AttributeId Id = Globals::Attributes::GeneratedCommandList::Id; +} // namespace GeneratedCommandList -namespace Unsupported { -static constexpr AttributeId Id = 0x000000FF; -} // namespace Unsupported +namespace AcceptedCommandList { +static constexpr AttributeId Id = Globals::Attributes::AcceptedCommandList::Id; +} // namespace AcceptedCommandList -namespace NullableBoolean { -static constexpr AttributeId Id = 0x00004000; -} // namespace NullableBoolean - -namespace NullableBitmap8 { -static constexpr AttributeId Id = 0x00004001; -} // namespace NullableBitmap8 - -namespace NullableBitmap16 { -static constexpr AttributeId Id = 0x00004002; -} // namespace NullableBitmap16 - -namespace NullableBitmap32 { -static constexpr AttributeId Id = 0x00004003; -} // namespace NullableBitmap32 - -namespace NullableBitmap64 { -static constexpr AttributeId Id = 0x00004004; -} // namespace NullableBitmap64 - -namespace NullableInt8u { -static constexpr AttributeId Id = 0x00004005; -} // namespace NullableInt8u - -namespace NullableInt16u { -static constexpr AttributeId Id = 0x00004006; -} // namespace NullableInt16u - -namespace NullableInt24u { -static constexpr AttributeId Id = 0x00004007; -} // namespace NullableInt24u - -namespace NullableInt32u { -static constexpr AttributeId Id = 0x00004008; -} // namespace NullableInt32u - -namespace NullableInt40u { -static constexpr AttributeId Id = 0x00004009; -} // namespace NullableInt40u - -namespace NullableInt48u { -static constexpr AttributeId Id = 0x0000400A; -} // namespace NullableInt48u - -namespace NullableInt56u { -static constexpr AttributeId Id = 0x0000400B; -} // namespace NullableInt56u - -namespace NullableInt64u { -static constexpr AttributeId Id = 0x0000400C; -} // namespace NullableInt64u - -namespace NullableInt8s { -static constexpr AttributeId Id = 0x0000400D; -} // namespace NullableInt8s - -namespace NullableInt16s { -static constexpr AttributeId Id = 0x0000400E; -} // namespace NullableInt16s - -namespace NullableInt24s { -static constexpr AttributeId Id = 0x0000400F; -} // namespace NullableInt24s - -namespace NullableInt32s { -static constexpr AttributeId Id = 0x00004010; -} // namespace NullableInt32s - -namespace NullableInt40s { -static constexpr AttributeId Id = 0x00004011; -} // namespace NullableInt40s - -namespace NullableInt48s { -static constexpr AttributeId Id = 0x00004012; -} // namespace NullableInt48s - -namespace NullableInt56s { -static constexpr AttributeId Id = 0x00004013; -} // namespace NullableInt56s - -namespace NullableInt64s { -static constexpr AttributeId Id = 0x00004014; -} // namespace NullableInt64s - -namespace NullableEnum8 { -static constexpr AttributeId Id = 0x00004015; -} // namespace NullableEnum8 - -namespace NullableEnum16 { -static constexpr AttributeId Id = 0x00004016; -} // namespace NullableEnum16 - -namespace NullableFloatSingle { -static constexpr AttributeId Id = 0x00004017; -} // namespace NullableFloatSingle - -namespace NullableFloatDouble { -static constexpr AttributeId Id = 0x00004018; -} // namespace NullableFloatDouble - -namespace NullableOctetString { -static constexpr AttributeId Id = 0x00004019; -} // namespace NullableOctetString - -namespace NullableCharString { -static constexpr AttributeId Id = 0x0000401E; -} // namespace NullableCharString - -namespace NullableEnumAttr { -static constexpr AttributeId Id = 0x00004024; -} // namespace NullableEnumAttr - -namespace NullableStruct { -static constexpr AttributeId Id = 0x00004025; -} // namespace NullableStruct - -namespace NullableRangeRestrictedInt8u { -static constexpr AttributeId Id = 0x00004026; -} // namespace NullableRangeRestrictedInt8u - -namespace NullableRangeRestrictedInt8s { -static constexpr AttributeId Id = 0x00004027; -} // namespace NullableRangeRestrictedInt8s - -namespace NullableRangeRestrictedInt16u { -static constexpr AttributeId Id = 0x00004028; -} // namespace NullableRangeRestrictedInt16u - -namespace NullableRangeRestrictedInt16s { -static constexpr AttributeId Id = 0x00004029; -} // namespace NullableRangeRestrictedInt16s - -namespace GeneratedCommandList { -static constexpr AttributeId Id = Globals::Attributes::GeneratedCommandList::Id; -} // namespace GeneratedCommandList - -namespace AcceptedCommandList { -static constexpr AttributeId Id = Globals::Attributes::AcceptedCommandList::Id; -} // namespace AcceptedCommandList - -namespace AttributeList { -static constexpr AttributeId Id = Globals::Attributes::AttributeList::Id; -} // namespace AttributeList +namespace AttributeList { +static constexpr AttributeId Id = Globals::Attributes::AttributeList::Id; +} // namespace AttributeList namespace FeatureMap { static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id; @@ -6407,9 +6231,9 @@ static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id; } // namespace ClusterRevision } // namespace Attributes -} // namespace TestCluster +} // namespace MeterIdentification -namespace Messaging { +namespace ApplianceEventsAndAlert { namespace Attributes { namespace GeneratedCommandList { @@ -6433,58 +6257,18 @@ static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id; } // namespace ClusterRevision } // namespace Attributes -} // namespace Messaging +} // namespace ApplianceEventsAndAlert -namespace ApplianceIdentification { +namespace ApplianceStatistics { namespace Attributes { -namespace BasicIdentification { +namespace LogMaxSize { static constexpr AttributeId Id = 0x00000000; -} // namespace BasicIdentification - -namespace CompanyName { -static constexpr AttributeId Id = 0x00000010; -} // namespace CompanyName - -namespace CompanyId { -static constexpr AttributeId Id = 0x00000011; -} // namespace CompanyId - -namespace BrandName { -static constexpr AttributeId Id = 0x00000012; -} // namespace BrandName - -namespace BrandId { -static constexpr AttributeId Id = 0x00000013; -} // namespace BrandId - -namespace Model { -static constexpr AttributeId Id = 0x00000014; -} // namespace Model - -namespace PartNumber { -static constexpr AttributeId Id = 0x00000015; -} // namespace PartNumber - -namespace ProductRevision { -static constexpr AttributeId Id = 0x00000016; -} // namespace ProductRevision - -namespace SoftwareRevision { -static constexpr AttributeId Id = 0x00000017; -} // namespace SoftwareRevision - -namespace ProductTypeName { -static constexpr AttributeId Id = 0x00000018; -} // namespace ProductTypeName - -namespace ProductTypeId { -static constexpr AttributeId Id = 0x00000019; -} // namespace ProductTypeId +} // namespace LogMaxSize -namespace CecedSpecificationVersion { -static constexpr AttributeId Id = 0x0000001A; -} // namespace CecedSpecificationVersion +namespace LogQueueMaxSize { +static constexpr AttributeId Id = 0x00000001; +} // namespace LogQueueMaxSize namespace GeneratedCommandList { static constexpr AttributeId Id = Globals::Attributes::GeneratedCommandList::Id; @@ -6507,180 +6291,46 @@ static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id; } // namespace ClusterRevision } // namespace Attributes -} // namespace ApplianceIdentification +} // namespace ApplianceStatistics -namespace MeterIdentification { +namespace ElectricalMeasurement { namespace Attributes { -namespace CompanyName { +namespace MeasurementType { static constexpr AttributeId Id = 0x00000000; -} // namespace CompanyName - -namespace MeterTypeId { -static constexpr AttributeId Id = 0x00000001; -} // namespace MeterTypeId +} // namespace MeasurementType -namespace DataQualityId { -static constexpr AttributeId Id = 0x00000004; -} // namespace DataQualityId +namespace DcVoltage { +static constexpr AttributeId Id = 0x00000100; +} // namespace DcVoltage -namespace CustomerName { -static constexpr AttributeId Id = 0x00000005; -} // namespace CustomerName +namespace DcVoltageMin { +static constexpr AttributeId Id = 0x00000101; +} // namespace DcVoltageMin -namespace Model { -static constexpr AttributeId Id = 0x00000006; -} // namespace Model +namespace DcVoltageMax { +static constexpr AttributeId Id = 0x00000102; +} // namespace DcVoltageMax -namespace PartNumber { -static constexpr AttributeId Id = 0x00000007; -} // namespace PartNumber +namespace DcCurrent { +static constexpr AttributeId Id = 0x00000103; +} // namespace DcCurrent -namespace ProductRevision { -static constexpr AttributeId Id = 0x00000008; -} // namespace ProductRevision +namespace DcCurrentMin { +static constexpr AttributeId Id = 0x00000104; +} // namespace DcCurrentMin -namespace SoftwareRevision { -static constexpr AttributeId Id = 0x0000000A; -} // namespace SoftwareRevision +namespace DcCurrentMax { +static constexpr AttributeId Id = 0x00000105; +} // namespace DcCurrentMax -namespace UtilityName { -static constexpr AttributeId Id = 0x0000000B; -} // namespace UtilityName +namespace DcPower { +static constexpr AttributeId Id = 0x00000106; +} // namespace DcPower -namespace Pod { -static constexpr AttributeId Id = 0x0000000C; -} // namespace Pod - -namespace AvailablePower { -static constexpr AttributeId Id = 0x0000000D; -} // namespace AvailablePower - -namespace PowerThreshold { -static constexpr AttributeId Id = 0x0000000E; -} // namespace PowerThreshold - -namespace GeneratedCommandList { -static constexpr AttributeId Id = Globals::Attributes::GeneratedCommandList::Id; -} // namespace GeneratedCommandList - -namespace AcceptedCommandList { -static constexpr AttributeId Id = Globals::Attributes::AcceptedCommandList::Id; -} // namespace AcceptedCommandList - -namespace AttributeList { -static constexpr AttributeId Id = Globals::Attributes::AttributeList::Id; -} // namespace AttributeList - -namespace FeatureMap { -static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id; -} // namespace FeatureMap - -namespace ClusterRevision { -static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id; -} // namespace ClusterRevision - -} // namespace Attributes -} // namespace MeterIdentification - -namespace ApplianceEventsAndAlert { -namespace Attributes { - -namespace GeneratedCommandList { -static constexpr AttributeId Id = Globals::Attributes::GeneratedCommandList::Id; -} // namespace GeneratedCommandList - -namespace AcceptedCommandList { -static constexpr AttributeId Id = Globals::Attributes::AcceptedCommandList::Id; -} // namespace AcceptedCommandList - -namespace AttributeList { -static constexpr AttributeId Id = Globals::Attributes::AttributeList::Id; -} // namespace AttributeList - -namespace FeatureMap { -static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id; -} // namespace FeatureMap - -namespace ClusterRevision { -static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id; -} // namespace ClusterRevision - -} // namespace Attributes -} // namespace ApplianceEventsAndAlert - -namespace ApplianceStatistics { -namespace Attributes { - -namespace LogMaxSize { -static constexpr AttributeId Id = 0x00000000; -} // namespace LogMaxSize - -namespace LogQueueMaxSize { -static constexpr AttributeId Id = 0x00000001; -} // namespace LogQueueMaxSize - -namespace GeneratedCommandList { -static constexpr AttributeId Id = Globals::Attributes::GeneratedCommandList::Id; -} // namespace GeneratedCommandList - -namespace AcceptedCommandList { -static constexpr AttributeId Id = Globals::Attributes::AcceptedCommandList::Id; -} // namespace AcceptedCommandList - -namespace AttributeList { -static constexpr AttributeId Id = Globals::Attributes::AttributeList::Id; -} // namespace AttributeList - -namespace FeatureMap { -static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id; -} // namespace FeatureMap - -namespace ClusterRevision { -static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id; -} // namespace ClusterRevision - -} // namespace Attributes -} // namespace ApplianceStatistics - -namespace ElectricalMeasurement { -namespace Attributes { - -namespace MeasurementType { -static constexpr AttributeId Id = 0x00000000; -} // namespace MeasurementType - -namespace DcVoltage { -static constexpr AttributeId Id = 0x00000100; -} // namespace DcVoltage - -namespace DcVoltageMin { -static constexpr AttributeId Id = 0x00000101; -} // namespace DcVoltageMin - -namespace DcVoltageMax { -static constexpr AttributeId Id = 0x00000102; -} // namespace DcVoltageMax - -namespace DcCurrent { -static constexpr AttributeId Id = 0x00000103; -} // namespace DcCurrent - -namespace DcCurrentMin { -static constexpr AttributeId Id = 0x00000104; -} // namespace DcCurrentMin - -namespace DcCurrentMax { -static constexpr AttributeId Id = 0x00000105; -} // namespace DcCurrentMax - -namespace DcPower { -static constexpr AttributeId Id = 0x00000106; -} // namespace DcPower - -namespace DcPowerMin { -static constexpr AttributeId Id = 0x00000107; -} // namespace DcPowerMin +namespace DcPowerMin { +static constexpr AttributeId Id = 0x00000107; +} // namespace DcPowerMin namespace DcPowerMax { static constexpr AttributeId Id = 0x00000108; @@ -6990,173 +6640,523 @@ namespace ActiveCurrentPhaseB { static constexpr AttributeId Id = 0x00000902; } // namespace ActiveCurrentPhaseB -namespace ReactiveCurrentPhaseB { -static constexpr AttributeId Id = 0x00000903; -} // namespace ReactiveCurrentPhaseB +namespace ReactiveCurrentPhaseB { +static constexpr AttributeId Id = 0x00000903; +} // namespace ReactiveCurrentPhaseB + +namespace RmsVoltagePhaseB { +static constexpr AttributeId Id = 0x00000905; +} // namespace RmsVoltagePhaseB + +namespace RmsVoltageMinPhaseB { +static constexpr AttributeId Id = 0x00000906; +} // namespace RmsVoltageMinPhaseB + +namespace RmsVoltageMaxPhaseB { +static constexpr AttributeId Id = 0x00000907; +} // namespace RmsVoltageMaxPhaseB + +namespace RmsCurrentPhaseB { +static constexpr AttributeId Id = 0x00000908; +} // namespace RmsCurrentPhaseB + +namespace RmsCurrentMinPhaseB { +static constexpr AttributeId Id = 0x00000909; +} // namespace RmsCurrentMinPhaseB + +namespace RmsCurrentMaxPhaseB { +static constexpr AttributeId Id = 0x0000090A; +} // namespace RmsCurrentMaxPhaseB + +namespace ActivePowerPhaseB { +static constexpr AttributeId Id = 0x0000090B; +} // namespace ActivePowerPhaseB + +namespace ActivePowerMinPhaseB { +static constexpr AttributeId Id = 0x0000090C; +} // namespace ActivePowerMinPhaseB + +namespace ActivePowerMaxPhaseB { +static constexpr AttributeId Id = 0x0000090D; +} // namespace ActivePowerMaxPhaseB + +namespace ReactivePowerPhaseB { +static constexpr AttributeId Id = 0x0000090E; +} // namespace ReactivePowerPhaseB + +namespace ApparentPowerPhaseB { +static constexpr AttributeId Id = 0x0000090F; +} // namespace ApparentPowerPhaseB + +namespace PowerFactorPhaseB { +static constexpr AttributeId Id = 0x00000910; +} // namespace PowerFactorPhaseB + +namespace AverageRmsVoltageMeasurementPeriodPhaseB { +static constexpr AttributeId Id = 0x00000911; +} // namespace AverageRmsVoltageMeasurementPeriodPhaseB + +namespace AverageRmsOverVoltageCounterPhaseB { +static constexpr AttributeId Id = 0x00000912; +} // namespace AverageRmsOverVoltageCounterPhaseB + +namespace AverageRmsUnderVoltageCounterPhaseB { +static constexpr AttributeId Id = 0x00000913; +} // namespace AverageRmsUnderVoltageCounterPhaseB + +namespace RmsExtremeOverVoltagePeriodPhaseB { +static constexpr AttributeId Id = 0x00000914; +} // namespace RmsExtremeOverVoltagePeriodPhaseB + +namespace RmsExtremeUnderVoltagePeriodPhaseB { +static constexpr AttributeId Id = 0x00000915; +} // namespace RmsExtremeUnderVoltagePeriodPhaseB + +namespace RmsVoltageSagPeriodPhaseB { +static constexpr AttributeId Id = 0x00000916; +} // namespace RmsVoltageSagPeriodPhaseB + +namespace RmsVoltageSwellPeriodPhaseB { +static constexpr AttributeId Id = 0x00000917; +} // namespace RmsVoltageSwellPeriodPhaseB + +namespace LineCurrentPhaseC { +static constexpr AttributeId Id = 0x00000A01; +} // namespace LineCurrentPhaseC + +namespace ActiveCurrentPhaseC { +static constexpr AttributeId Id = 0x00000A02; +} // namespace ActiveCurrentPhaseC + +namespace ReactiveCurrentPhaseC { +static constexpr AttributeId Id = 0x00000A03; +} // namespace ReactiveCurrentPhaseC + +namespace RmsVoltagePhaseC { +static constexpr AttributeId Id = 0x00000A05; +} // namespace RmsVoltagePhaseC + +namespace RmsVoltageMinPhaseC { +static constexpr AttributeId Id = 0x00000A06; +} // namespace RmsVoltageMinPhaseC + +namespace RmsVoltageMaxPhaseC { +static constexpr AttributeId Id = 0x00000A07; +} // namespace RmsVoltageMaxPhaseC + +namespace RmsCurrentPhaseC { +static constexpr AttributeId Id = 0x00000A08; +} // namespace RmsCurrentPhaseC + +namespace RmsCurrentMinPhaseC { +static constexpr AttributeId Id = 0x00000A09; +} // namespace RmsCurrentMinPhaseC + +namespace RmsCurrentMaxPhaseC { +static constexpr AttributeId Id = 0x00000A0A; +} // namespace RmsCurrentMaxPhaseC + +namespace ActivePowerPhaseC { +static constexpr AttributeId Id = 0x00000A0B; +} // namespace ActivePowerPhaseC + +namespace ActivePowerMinPhaseC { +static constexpr AttributeId Id = 0x00000A0C; +} // namespace ActivePowerMinPhaseC + +namespace ActivePowerMaxPhaseC { +static constexpr AttributeId Id = 0x00000A0D; +} // namespace ActivePowerMaxPhaseC + +namespace ReactivePowerPhaseC { +static constexpr AttributeId Id = 0x00000A0E; +} // namespace ReactivePowerPhaseC + +namespace ApparentPowerPhaseC { +static constexpr AttributeId Id = 0x00000A0F; +} // namespace ApparentPowerPhaseC + +namespace PowerFactorPhaseC { +static constexpr AttributeId Id = 0x00000A10; +} // namespace PowerFactorPhaseC + +namespace AverageRmsVoltageMeasurementPeriodPhaseC { +static constexpr AttributeId Id = 0x00000A11; +} // namespace AverageRmsVoltageMeasurementPeriodPhaseC + +namespace AverageRmsOverVoltageCounterPhaseC { +static constexpr AttributeId Id = 0x00000A12; +} // namespace AverageRmsOverVoltageCounterPhaseC + +namespace AverageRmsUnderVoltageCounterPhaseC { +static constexpr AttributeId Id = 0x00000A13; +} // namespace AverageRmsUnderVoltageCounterPhaseC + +namespace RmsExtremeOverVoltagePeriodPhaseC { +static constexpr AttributeId Id = 0x00000A14; +} // namespace RmsExtremeOverVoltagePeriodPhaseC + +namespace RmsExtremeUnderVoltagePeriodPhaseC { +static constexpr AttributeId Id = 0x00000A15; +} // namespace RmsExtremeUnderVoltagePeriodPhaseC + +namespace RmsVoltageSagPeriodPhaseC { +static constexpr AttributeId Id = 0x00000A16; +} // namespace RmsVoltageSagPeriodPhaseC + +namespace RmsVoltageSwellPeriodPhaseC { +static constexpr AttributeId Id = 0x00000A17; +} // namespace RmsVoltageSwellPeriodPhaseC + +namespace GeneratedCommandList { +static constexpr AttributeId Id = Globals::Attributes::GeneratedCommandList::Id; +} // namespace GeneratedCommandList + +namespace AcceptedCommandList { +static constexpr AttributeId Id = Globals::Attributes::AcceptedCommandList::Id; +} // namespace AcceptedCommandList + +namespace AttributeList { +static constexpr AttributeId Id = Globals::Attributes::AttributeList::Id; +} // namespace AttributeList + +namespace FeatureMap { +static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id; +} // namespace FeatureMap + +namespace ClusterRevision { +static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id; +} // namespace ClusterRevision + +} // namespace Attributes +} // namespace ElectricalMeasurement + +namespace TestCluster { +namespace Attributes { + +namespace Boolean { +static constexpr AttributeId Id = 0x00000000; +} // namespace Boolean + +namespace Bitmap8 { +static constexpr AttributeId Id = 0x00000001; +} // namespace Bitmap8 + +namespace Bitmap16 { +static constexpr AttributeId Id = 0x00000002; +} // namespace Bitmap16 + +namespace Bitmap32 { +static constexpr AttributeId Id = 0x00000003; +} // namespace Bitmap32 + +namespace Bitmap64 { +static constexpr AttributeId Id = 0x00000004; +} // namespace Bitmap64 + +namespace Int8u { +static constexpr AttributeId Id = 0x00000005; +} // namespace Int8u + +namespace Int16u { +static constexpr AttributeId Id = 0x00000006; +} // namespace Int16u + +namespace Int24u { +static constexpr AttributeId Id = 0x00000007; +} // namespace Int24u + +namespace Int32u { +static constexpr AttributeId Id = 0x00000008; +} // namespace Int32u + +namespace Int40u { +static constexpr AttributeId Id = 0x00000009; +} // namespace Int40u + +namespace Int48u { +static constexpr AttributeId Id = 0x0000000A; +} // namespace Int48u + +namespace Int56u { +static constexpr AttributeId Id = 0x0000000B; +} // namespace Int56u + +namespace Int64u { +static constexpr AttributeId Id = 0x0000000C; +} // namespace Int64u + +namespace Int8s { +static constexpr AttributeId Id = 0x0000000D; +} // namespace Int8s + +namespace Int16s { +static constexpr AttributeId Id = 0x0000000E; +} // namespace Int16s + +namespace Int24s { +static constexpr AttributeId Id = 0x0000000F; +} // namespace Int24s + +namespace Int32s { +static constexpr AttributeId Id = 0x00000010; +} // namespace Int32s + +namespace Int40s { +static constexpr AttributeId Id = 0x00000011; +} // namespace Int40s + +namespace Int48s { +static constexpr AttributeId Id = 0x00000012; +} // namespace Int48s + +namespace Int56s { +static constexpr AttributeId Id = 0x00000013; +} // namespace Int56s + +namespace Int64s { +static constexpr AttributeId Id = 0x00000014; +} // namespace Int64s + +namespace Enum8 { +static constexpr AttributeId Id = 0x00000015; +} // namespace Enum8 + +namespace Enum16 { +static constexpr AttributeId Id = 0x00000016; +} // namespace Enum16 + +namespace FloatSingle { +static constexpr AttributeId Id = 0x00000017; +} // namespace FloatSingle + +namespace FloatDouble { +static constexpr AttributeId Id = 0x00000018; +} // namespace FloatDouble + +namespace OctetString { +static constexpr AttributeId Id = 0x00000019; +} // namespace OctetString + +namespace ListInt8u { +static constexpr AttributeId Id = 0x0000001A; +} // namespace ListInt8u + +namespace ListOctetString { +static constexpr AttributeId Id = 0x0000001B; +} // namespace ListOctetString + +namespace ListStructOctetString { +static constexpr AttributeId Id = 0x0000001C; +} // namespace ListStructOctetString + +namespace LongOctetString { +static constexpr AttributeId Id = 0x0000001D; +} // namespace LongOctetString + +namespace CharString { +static constexpr AttributeId Id = 0x0000001E; +} // namespace CharString + +namespace LongCharString { +static constexpr AttributeId Id = 0x0000001F; +} // namespace LongCharString + +namespace EpochUs { +static constexpr AttributeId Id = 0x00000020; +} // namespace EpochUs + +namespace EpochS { +static constexpr AttributeId Id = 0x00000021; +} // namespace EpochS + +namespace VendorId { +static constexpr AttributeId Id = 0x00000022; +} // namespace VendorId + +namespace ListNullablesAndOptionalsStruct { +static constexpr AttributeId Id = 0x00000023; +} // namespace ListNullablesAndOptionalsStruct + +namespace EnumAttr { +static constexpr AttributeId Id = 0x00000024; +} // namespace EnumAttr + +namespace StructAttr { +static constexpr AttributeId Id = 0x00000025; +} // namespace StructAttr + +namespace RangeRestrictedInt8u { +static constexpr AttributeId Id = 0x00000026; +} // namespace RangeRestrictedInt8u + +namespace RangeRestrictedInt8s { +static constexpr AttributeId Id = 0x00000027; +} // namespace RangeRestrictedInt8s -namespace RmsVoltagePhaseB { -static constexpr AttributeId Id = 0x00000905; -} // namespace RmsVoltagePhaseB +namespace RangeRestrictedInt16u { +static constexpr AttributeId Id = 0x00000028; +} // namespace RangeRestrictedInt16u -namespace RmsVoltageMinPhaseB { -static constexpr AttributeId Id = 0x00000906; -} // namespace RmsVoltageMinPhaseB +namespace RangeRestrictedInt16s { +static constexpr AttributeId Id = 0x00000029; +} // namespace RangeRestrictedInt16s -namespace RmsVoltageMaxPhaseB { -static constexpr AttributeId Id = 0x00000907; -} // namespace RmsVoltageMaxPhaseB +namespace ListLongOctetString { +static constexpr AttributeId Id = 0x0000002A; +} // namespace ListLongOctetString -namespace RmsCurrentPhaseB { -static constexpr AttributeId Id = 0x00000908; -} // namespace RmsCurrentPhaseB +namespace ListFabricScoped { +static constexpr AttributeId Id = 0x0000002B; +} // namespace ListFabricScoped -namespace RmsCurrentMinPhaseB { -static constexpr AttributeId Id = 0x00000909; -} // namespace RmsCurrentMinPhaseB +namespace TimedWriteBoolean { +static constexpr AttributeId Id = 0x00000030; +} // namespace TimedWriteBoolean -namespace RmsCurrentMaxPhaseB { -static constexpr AttributeId Id = 0x0000090A; -} // namespace RmsCurrentMaxPhaseB +namespace GeneralErrorBoolean { +static constexpr AttributeId Id = 0x00000031; +} // namespace GeneralErrorBoolean -namespace ActivePowerPhaseB { -static constexpr AttributeId Id = 0x0000090B; -} // namespace ActivePowerPhaseB +namespace ClusterErrorBoolean { +static constexpr AttributeId Id = 0x00000032; +} // namespace ClusterErrorBoolean -namespace ActivePowerMinPhaseB { -static constexpr AttributeId Id = 0x0000090C; -} // namespace ActivePowerMinPhaseB +namespace Unsupported { +static constexpr AttributeId Id = 0x000000FF; +} // namespace Unsupported -namespace ActivePowerMaxPhaseB { -static constexpr AttributeId Id = 0x0000090D; -} // namespace ActivePowerMaxPhaseB +namespace NullableBoolean { +static constexpr AttributeId Id = 0x00004000; +} // namespace NullableBoolean -namespace ReactivePowerPhaseB { -static constexpr AttributeId Id = 0x0000090E; -} // namespace ReactivePowerPhaseB +namespace NullableBitmap8 { +static constexpr AttributeId Id = 0x00004001; +} // namespace NullableBitmap8 -namespace ApparentPowerPhaseB { -static constexpr AttributeId Id = 0x0000090F; -} // namespace ApparentPowerPhaseB +namespace NullableBitmap16 { +static constexpr AttributeId Id = 0x00004002; +} // namespace NullableBitmap16 -namespace PowerFactorPhaseB { -static constexpr AttributeId Id = 0x00000910; -} // namespace PowerFactorPhaseB +namespace NullableBitmap32 { +static constexpr AttributeId Id = 0x00004003; +} // namespace NullableBitmap32 -namespace AverageRmsVoltageMeasurementPeriodPhaseB { -static constexpr AttributeId Id = 0x00000911; -} // namespace AverageRmsVoltageMeasurementPeriodPhaseB +namespace NullableBitmap64 { +static constexpr AttributeId Id = 0x00004004; +} // namespace NullableBitmap64 -namespace AverageRmsOverVoltageCounterPhaseB { -static constexpr AttributeId Id = 0x00000912; -} // namespace AverageRmsOverVoltageCounterPhaseB +namespace NullableInt8u { +static constexpr AttributeId Id = 0x00004005; +} // namespace NullableInt8u -namespace AverageRmsUnderVoltageCounterPhaseB { -static constexpr AttributeId Id = 0x00000913; -} // namespace AverageRmsUnderVoltageCounterPhaseB +namespace NullableInt16u { +static constexpr AttributeId Id = 0x00004006; +} // namespace NullableInt16u -namespace RmsExtremeOverVoltagePeriodPhaseB { -static constexpr AttributeId Id = 0x00000914; -} // namespace RmsExtremeOverVoltagePeriodPhaseB +namespace NullableInt24u { +static constexpr AttributeId Id = 0x00004007; +} // namespace NullableInt24u -namespace RmsExtremeUnderVoltagePeriodPhaseB { -static constexpr AttributeId Id = 0x00000915; -} // namespace RmsExtremeUnderVoltagePeriodPhaseB +namespace NullableInt32u { +static constexpr AttributeId Id = 0x00004008; +} // namespace NullableInt32u -namespace RmsVoltageSagPeriodPhaseB { -static constexpr AttributeId Id = 0x00000916; -} // namespace RmsVoltageSagPeriodPhaseB +namespace NullableInt40u { +static constexpr AttributeId Id = 0x00004009; +} // namespace NullableInt40u -namespace RmsVoltageSwellPeriodPhaseB { -static constexpr AttributeId Id = 0x00000917; -} // namespace RmsVoltageSwellPeriodPhaseB +namespace NullableInt48u { +static constexpr AttributeId Id = 0x0000400A; +} // namespace NullableInt48u -namespace LineCurrentPhaseC { -static constexpr AttributeId Id = 0x00000A01; -} // namespace LineCurrentPhaseC +namespace NullableInt56u { +static constexpr AttributeId Id = 0x0000400B; +} // namespace NullableInt56u -namespace ActiveCurrentPhaseC { -static constexpr AttributeId Id = 0x00000A02; -} // namespace ActiveCurrentPhaseC +namespace NullableInt64u { +static constexpr AttributeId Id = 0x0000400C; +} // namespace NullableInt64u -namespace ReactiveCurrentPhaseC { -static constexpr AttributeId Id = 0x00000A03; -} // namespace ReactiveCurrentPhaseC +namespace NullableInt8s { +static constexpr AttributeId Id = 0x0000400D; +} // namespace NullableInt8s -namespace RmsVoltagePhaseC { -static constexpr AttributeId Id = 0x00000A05; -} // namespace RmsVoltagePhaseC +namespace NullableInt16s { +static constexpr AttributeId Id = 0x0000400E; +} // namespace NullableInt16s -namespace RmsVoltageMinPhaseC { -static constexpr AttributeId Id = 0x00000A06; -} // namespace RmsVoltageMinPhaseC +namespace NullableInt24s { +static constexpr AttributeId Id = 0x0000400F; +} // namespace NullableInt24s -namespace RmsVoltageMaxPhaseC { -static constexpr AttributeId Id = 0x00000A07; -} // namespace RmsVoltageMaxPhaseC +namespace NullableInt32s { +static constexpr AttributeId Id = 0x00004010; +} // namespace NullableInt32s -namespace RmsCurrentPhaseC { -static constexpr AttributeId Id = 0x00000A08; -} // namespace RmsCurrentPhaseC +namespace NullableInt40s { +static constexpr AttributeId Id = 0x00004011; +} // namespace NullableInt40s -namespace RmsCurrentMinPhaseC { -static constexpr AttributeId Id = 0x00000A09; -} // namespace RmsCurrentMinPhaseC +namespace NullableInt48s { +static constexpr AttributeId Id = 0x00004012; +} // namespace NullableInt48s -namespace RmsCurrentMaxPhaseC { -static constexpr AttributeId Id = 0x00000A0A; -} // namespace RmsCurrentMaxPhaseC +namespace NullableInt56s { +static constexpr AttributeId Id = 0x00004013; +} // namespace NullableInt56s -namespace ActivePowerPhaseC { -static constexpr AttributeId Id = 0x00000A0B; -} // namespace ActivePowerPhaseC +namespace NullableInt64s { +static constexpr AttributeId Id = 0x00004014; +} // namespace NullableInt64s -namespace ActivePowerMinPhaseC { -static constexpr AttributeId Id = 0x00000A0C; -} // namespace ActivePowerMinPhaseC +namespace NullableEnum8 { +static constexpr AttributeId Id = 0x00004015; +} // namespace NullableEnum8 -namespace ActivePowerMaxPhaseC { -static constexpr AttributeId Id = 0x00000A0D; -} // namespace ActivePowerMaxPhaseC +namespace NullableEnum16 { +static constexpr AttributeId Id = 0x00004016; +} // namespace NullableEnum16 -namespace ReactivePowerPhaseC { -static constexpr AttributeId Id = 0x00000A0E; -} // namespace ReactivePowerPhaseC +namespace NullableFloatSingle { +static constexpr AttributeId Id = 0x00004017; +} // namespace NullableFloatSingle -namespace ApparentPowerPhaseC { -static constexpr AttributeId Id = 0x00000A0F; -} // namespace ApparentPowerPhaseC +namespace NullableFloatDouble { +static constexpr AttributeId Id = 0x00004018; +} // namespace NullableFloatDouble -namespace PowerFactorPhaseC { -static constexpr AttributeId Id = 0x00000A10; -} // namespace PowerFactorPhaseC +namespace NullableOctetString { +static constexpr AttributeId Id = 0x00004019; +} // namespace NullableOctetString -namespace AverageRmsVoltageMeasurementPeriodPhaseC { -static constexpr AttributeId Id = 0x00000A11; -} // namespace AverageRmsVoltageMeasurementPeriodPhaseC +namespace NullableCharString { +static constexpr AttributeId Id = 0x0000401E; +} // namespace NullableCharString -namespace AverageRmsOverVoltageCounterPhaseC { -static constexpr AttributeId Id = 0x00000A12; -} // namespace AverageRmsOverVoltageCounterPhaseC +namespace NullableEnumAttr { +static constexpr AttributeId Id = 0x00004024; +} // namespace NullableEnumAttr -namespace AverageRmsUnderVoltageCounterPhaseC { -static constexpr AttributeId Id = 0x00000A13; -} // namespace AverageRmsUnderVoltageCounterPhaseC +namespace NullableStruct { +static constexpr AttributeId Id = 0x00004025; +} // namespace NullableStruct -namespace RmsExtremeOverVoltagePeriodPhaseC { -static constexpr AttributeId Id = 0x00000A14; -} // namespace RmsExtremeOverVoltagePeriodPhaseC +namespace NullableRangeRestrictedInt8u { +static constexpr AttributeId Id = 0x00004026; +} // namespace NullableRangeRestrictedInt8u -namespace RmsExtremeUnderVoltagePeriodPhaseC { -static constexpr AttributeId Id = 0x00000A15; -} // namespace RmsExtremeUnderVoltagePeriodPhaseC +namespace NullableRangeRestrictedInt8s { +static constexpr AttributeId Id = 0x00004027; +} // namespace NullableRangeRestrictedInt8s -namespace RmsVoltageSagPeriodPhaseC { -static constexpr AttributeId Id = 0x00000A16; -} // namespace RmsVoltageSagPeriodPhaseC +namespace NullableRangeRestrictedInt16u { +static constexpr AttributeId Id = 0x00004028; +} // namespace NullableRangeRestrictedInt16u -namespace RmsVoltageSwellPeriodPhaseC { -static constexpr AttributeId Id = 0x00000A17; -} // namespace RmsVoltageSwellPeriodPhaseC +namespace NullableRangeRestrictedInt16s { +static constexpr AttributeId Id = 0x00004029; +} // namespace NullableRangeRestrictedInt16s namespace GeneratedCommandList { static constexpr AttributeId Id = Globals::Attributes::GeneratedCommandList::Id; @@ -7179,7 +7179,7 @@ static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id; } // namespace ClusterRevision } // namespace Attributes -} // namespace ElectricalMeasurement +} // namespace TestCluster } // namespace Clusters } // namespace app diff --git a/zzz_generated/app-common/app-common/zap-generated/ids/Clusters.h b/zzz_generated/app-common/app-common/zap-generated/ids/Clusters.h index f313e9b37cca0b..23ca45d9841b24 100644 --- a/zzz_generated/app-common/app-common/zap-generated/ids/Clusters.h +++ b/zzz_generated/app-common/app-common/zap-generated/ids/Clusters.h @@ -355,9 +355,6 @@ static constexpr ClusterId Id = 0x0000050D; namespace AccountLogin { static constexpr ClusterId Id = 0x0000050E; } // namespace AccountLogin -namespace TestCluster { -static constexpr ClusterId Id = 0x0000050F; -} // namespace TestCluster namespace Messaging { static constexpr ClusterId Id = 0x00000703; } // namespace Messaging @@ -376,6 +373,9 @@ static constexpr ClusterId Id = 0x00000B03; namespace ElectricalMeasurement { static constexpr ClusterId Id = 0x00000B04; } // namespace ElectricalMeasurement +namespace TestCluster { +static constexpr ClusterId Id = 0xFFF1FC05; +} // namespace TestCluster } // namespace Clusters } // namespace app diff --git a/zzz_generated/app-common/app-common/zap-generated/ids/Commands.h b/zzz_generated/app-common/app-common/zap-generated/ids/Commands.h index 44c41b9e76ace3..a690fdfb767094 100644 --- a/zzz_generated/app-common/app-common/zap-generated/ids/Commands.h +++ b/zzz_generated/app-common/app-common/zap-generated/ids/Commands.h @@ -1373,6 +1373,114 @@ static constexpr CommandId Id = 0x00000003; } // namespace Commands } // namespace AccountLogin +namespace Messaging { +namespace Commands { + +namespace DisplayMessage { +static constexpr CommandId Id = 0x00000000; +} // namespace DisplayMessage + +namespace GetLastMessage { +static constexpr CommandId Id = 0x00000000; +} // namespace GetLastMessage + +namespace CancelMessage { +static constexpr CommandId Id = 0x00000001; +} // namespace CancelMessage + +namespace MessageConfirmation { +static constexpr CommandId Id = 0x00000001; +} // namespace MessageConfirmation + +namespace DisplayProtectedMessage { +static constexpr CommandId Id = 0x00000002; +} // namespace DisplayProtectedMessage + +namespace GetMessageCancellation { +static constexpr CommandId Id = 0x00000002; +} // namespace GetMessageCancellation + +namespace CancelAllMessages { +static constexpr CommandId Id = 0x00000003; +} // namespace CancelAllMessages + +} // namespace Commands +} // namespace Messaging + +namespace ApplianceEventsAndAlert { +namespace Commands { + +namespace GetAlerts { +static constexpr CommandId Id = 0x00000000; +} // namespace GetAlerts + +namespace GetAlertsResponse { +static constexpr CommandId Id = 0x00000000; +} // namespace GetAlertsResponse + +namespace AlertsNotification { +static constexpr CommandId Id = 0x00000001; +} // namespace AlertsNotification + +namespace EventsNotification { +static constexpr CommandId Id = 0x00000002; +} // namespace EventsNotification + +} // namespace Commands +} // namespace ApplianceEventsAndAlert + +namespace ApplianceStatistics { +namespace Commands { + +namespace LogNotification { +static constexpr CommandId Id = 0x00000000; +} // namespace LogNotification + +namespace LogRequest { +static constexpr CommandId Id = 0x00000000; +} // namespace LogRequest + +namespace LogResponse { +static constexpr CommandId Id = 0x00000001; +} // namespace LogResponse + +namespace LogQueueRequest { +static constexpr CommandId Id = 0x00000001; +} // namespace LogQueueRequest + +namespace LogQueueResponse { +static constexpr CommandId Id = 0x00000002; +} // namespace LogQueueResponse + +namespace StatisticsAvailable { +static constexpr CommandId Id = 0x00000003; +} // namespace StatisticsAvailable + +} // namespace Commands +} // namespace ApplianceStatistics + +namespace ElectricalMeasurement { +namespace Commands { + +namespace GetProfileInfoResponseCommand { +static constexpr CommandId Id = 0x00000000; +} // namespace GetProfileInfoResponseCommand + +namespace GetProfileInfoCommand { +static constexpr CommandId Id = 0x00000000; +} // namespace GetProfileInfoCommand + +namespace GetMeasurementProfileResponseCommand { +static constexpr CommandId Id = 0x00000001; +} // namespace GetMeasurementProfileResponseCommand + +namespace GetMeasurementProfileCommand { +static constexpr CommandId Id = 0x00000001; +} // namespace GetMeasurementProfileCommand + +} // namespace Commands +} // namespace ElectricalMeasurement + namespace TestCluster { namespace Commands { @@ -1515,114 +1623,6 @@ static constexpr CommandId Id = 0x00000015; } // namespace Commands } // namespace TestCluster -namespace Messaging { -namespace Commands { - -namespace DisplayMessage { -static constexpr CommandId Id = 0x00000000; -} // namespace DisplayMessage - -namespace GetLastMessage { -static constexpr CommandId Id = 0x00000000; -} // namespace GetLastMessage - -namespace CancelMessage { -static constexpr CommandId Id = 0x00000001; -} // namespace CancelMessage - -namespace MessageConfirmation { -static constexpr CommandId Id = 0x00000001; -} // namespace MessageConfirmation - -namespace DisplayProtectedMessage { -static constexpr CommandId Id = 0x00000002; -} // namespace DisplayProtectedMessage - -namespace GetMessageCancellation { -static constexpr CommandId Id = 0x00000002; -} // namespace GetMessageCancellation - -namespace CancelAllMessages { -static constexpr CommandId Id = 0x00000003; -} // namespace CancelAllMessages - -} // namespace Commands -} // namespace Messaging - -namespace ApplianceEventsAndAlert { -namespace Commands { - -namespace GetAlerts { -static constexpr CommandId Id = 0x00000000; -} // namespace GetAlerts - -namespace GetAlertsResponse { -static constexpr CommandId Id = 0x00000000; -} // namespace GetAlertsResponse - -namespace AlertsNotification { -static constexpr CommandId Id = 0x00000001; -} // namespace AlertsNotification - -namespace EventsNotification { -static constexpr CommandId Id = 0x00000002; -} // namespace EventsNotification - -} // namespace Commands -} // namespace ApplianceEventsAndAlert - -namespace ApplianceStatistics { -namespace Commands { - -namespace LogNotification { -static constexpr CommandId Id = 0x00000000; -} // namespace LogNotification - -namespace LogRequest { -static constexpr CommandId Id = 0x00000000; -} // namespace LogRequest - -namespace LogResponse { -static constexpr CommandId Id = 0x00000001; -} // namespace LogResponse - -namespace LogQueueRequest { -static constexpr CommandId Id = 0x00000001; -} // namespace LogQueueRequest - -namespace LogQueueResponse { -static constexpr CommandId Id = 0x00000002; -} // namespace LogQueueResponse - -namespace StatisticsAvailable { -static constexpr CommandId Id = 0x00000003; -} // namespace StatisticsAvailable - -} // namespace Commands -} // namespace ApplianceStatistics - -namespace ElectricalMeasurement { -namespace Commands { - -namespace GetProfileInfoResponseCommand { -static constexpr CommandId Id = 0x00000000; -} // namespace GetProfileInfoResponseCommand - -namespace GetProfileInfoCommand { -static constexpr CommandId Id = 0x00000000; -} // namespace GetProfileInfoCommand - -namespace GetMeasurementProfileResponseCommand { -static constexpr CommandId Id = 0x00000001; -} // namespace GetMeasurementProfileResponseCommand - -namespace GetMeasurementProfileCommand { -static constexpr CommandId Id = 0x00000001; -} // namespace GetMeasurementProfileCommand - -} // namespace Commands -} // namespace ElectricalMeasurement - } // namespace Clusters } // namespace app } // namespace chip diff --git a/zzz_generated/app-common/app-common/zap-generated/print-cluster.h b/zzz_generated/app-common/app-common/zap-generated/print-cluster.h index 12ae28dcde6f69..1988a112b8d6ec 100644 --- a/zzz_generated/app-common/app-common/zap-generated/print-cluster.h +++ b/zzz_generated/app-common/app-common/zap-generated/print-cluster.h @@ -25,388 +25,385 @@ // The names of clusters that are not present, are removed. #if defined(ZCL_USING_POWER_CONFIG_CLUSTER_SERVER) || defined(ZCL_USING_POWER_CONFIG_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_POWER_CONFIG_CLUSTER { ZCL_POWER_CONFIG_CLUSTER_ID, 1, "Power Configuration" }, +#define CHIP_PRINTCLUSTER_POWER_CONFIG_CLUSTER { ZCL_POWER_CONFIG_CLUSTER_ID, "Power Configuration" }, #else #define CHIP_PRINTCLUSTER_POWER_CONFIG_CLUSTER #endif #if defined(ZCL_USING_DEVICE_TEMP_CLUSTER_SERVER) || defined(ZCL_USING_DEVICE_TEMP_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_DEVICE_TEMP_CLUSTER { ZCL_DEVICE_TEMP_CLUSTER_ID, 2, "Device Temperature Configuration" }, +#define CHIP_PRINTCLUSTER_DEVICE_TEMP_CLUSTER { ZCL_DEVICE_TEMP_CLUSTER_ID, "Device Temperature Configuration" }, #else #define CHIP_PRINTCLUSTER_DEVICE_TEMP_CLUSTER #endif #if defined(ZCL_USING_IDENTIFY_CLUSTER_SERVER) || defined(ZCL_USING_IDENTIFY_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_IDENTIFY_CLUSTER { ZCL_IDENTIFY_CLUSTER_ID, 3, "Identify" }, +#define CHIP_PRINTCLUSTER_IDENTIFY_CLUSTER { ZCL_IDENTIFY_CLUSTER_ID, "Identify" }, #else #define CHIP_PRINTCLUSTER_IDENTIFY_CLUSTER #endif #if defined(ZCL_USING_GROUPS_CLUSTER_SERVER) || defined(ZCL_USING_GROUPS_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_GROUPS_CLUSTER { ZCL_GROUPS_CLUSTER_ID, 4, "Groups" }, +#define CHIP_PRINTCLUSTER_GROUPS_CLUSTER { ZCL_GROUPS_CLUSTER_ID, "Groups" }, #else #define CHIP_PRINTCLUSTER_GROUPS_CLUSTER #endif #if defined(ZCL_USING_SCENES_CLUSTER_SERVER) || defined(ZCL_USING_SCENES_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_SCENES_CLUSTER { ZCL_SCENES_CLUSTER_ID, 5, "Scenes" }, +#define CHIP_PRINTCLUSTER_SCENES_CLUSTER { ZCL_SCENES_CLUSTER_ID, "Scenes" }, #else #define CHIP_PRINTCLUSTER_SCENES_CLUSTER #endif #if defined(ZCL_USING_ON_OFF_CLUSTER_SERVER) || defined(ZCL_USING_ON_OFF_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_ON_OFF_CLUSTER { ZCL_ON_OFF_CLUSTER_ID, 6, "On/Off" }, +#define CHIP_PRINTCLUSTER_ON_OFF_CLUSTER { ZCL_ON_OFF_CLUSTER_ID, "On/Off" }, #else #define CHIP_PRINTCLUSTER_ON_OFF_CLUSTER #endif #if defined(ZCL_USING_ON_OFF_SWITCH_CONFIG_CLUSTER_SERVER) || defined(ZCL_USING_ON_OFF_SWITCH_CONFIG_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_ON_OFF_SWITCH_CONFIG_CLUSTER { ZCL_ON_OFF_SWITCH_CONFIG_CLUSTER_ID, 7, "On/off Switch Configuration" }, +#define CHIP_PRINTCLUSTER_ON_OFF_SWITCH_CONFIG_CLUSTER { ZCL_ON_OFF_SWITCH_CONFIG_CLUSTER_ID, "On/off Switch Configuration" }, #else #define CHIP_PRINTCLUSTER_ON_OFF_SWITCH_CONFIG_CLUSTER #endif #if defined(ZCL_USING_LEVEL_CONTROL_CLUSTER_SERVER) || defined(ZCL_USING_LEVEL_CONTROL_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_LEVEL_CONTROL_CLUSTER { ZCL_LEVEL_CONTROL_CLUSTER_ID, 8, "Level Control" }, +#define CHIP_PRINTCLUSTER_LEVEL_CONTROL_CLUSTER { ZCL_LEVEL_CONTROL_CLUSTER_ID, "Level Control" }, #else #define CHIP_PRINTCLUSTER_LEVEL_CONTROL_CLUSTER #endif #if defined(ZCL_USING_ALARM_CLUSTER_SERVER) || defined(ZCL_USING_ALARM_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_ALARM_CLUSTER { ZCL_ALARM_CLUSTER_ID, 9, "Alarms" }, +#define CHIP_PRINTCLUSTER_ALARM_CLUSTER { ZCL_ALARM_CLUSTER_ID, "Alarms" }, #else #define CHIP_PRINTCLUSTER_ALARM_CLUSTER #endif #if defined(ZCL_USING_TIME_CLUSTER_SERVER) || defined(ZCL_USING_TIME_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_TIME_CLUSTER { ZCL_TIME_CLUSTER_ID, 10, "Time" }, +#define CHIP_PRINTCLUSTER_TIME_CLUSTER { ZCL_TIME_CLUSTER_ID, "Time" }, #else #define CHIP_PRINTCLUSTER_TIME_CLUSTER #endif #if defined(ZCL_USING_BINARY_INPUT_BASIC_CLUSTER_SERVER) || defined(ZCL_USING_BINARY_INPUT_BASIC_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_BINARY_INPUT_BASIC_CLUSTER { ZCL_BINARY_INPUT_BASIC_CLUSTER_ID, 15, "Binary Input (Basic)" }, +#define CHIP_PRINTCLUSTER_BINARY_INPUT_BASIC_CLUSTER { ZCL_BINARY_INPUT_BASIC_CLUSTER_ID, "Binary Input (Basic)" }, #else #define CHIP_PRINTCLUSTER_BINARY_INPUT_BASIC_CLUSTER #endif #if defined(ZCL_USING_POWER_PROFILE_CLUSTER_SERVER) || defined(ZCL_USING_POWER_PROFILE_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_POWER_PROFILE_CLUSTER { ZCL_POWER_PROFILE_CLUSTER_ID, 26, "Power Profile" }, +#define CHIP_PRINTCLUSTER_POWER_PROFILE_CLUSTER { ZCL_POWER_PROFILE_CLUSTER_ID, "Power Profile" }, #else #define CHIP_PRINTCLUSTER_POWER_PROFILE_CLUSTER #endif #if defined(ZCL_USING_APPLIANCE_CONTROL_CLUSTER_SERVER) || defined(ZCL_USING_APPLIANCE_CONTROL_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_APPLIANCE_CONTROL_CLUSTER { ZCL_APPLIANCE_CONTROL_CLUSTER_ID, 27, "Appliance Control" }, +#define CHIP_PRINTCLUSTER_APPLIANCE_CONTROL_CLUSTER { ZCL_APPLIANCE_CONTROL_CLUSTER_ID, "Appliance Control" }, #else #define CHIP_PRINTCLUSTER_APPLIANCE_CONTROL_CLUSTER #endif #if defined(ZCL_USING_PWM_CLUSTER_SERVER) || defined(ZCL_USING_PWM_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_PWM_CLUSTER { ZCL_PWM_CLUSTER_ID, 28, "Pulse Width Modulation" }, +#define CHIP_PRINTCLUSTER_PWM_CLUSTER { ZCL_PWM_CLUSTER_ID, "Pulse Width Modulation" }, #else #define CHIP_PRINTCLUSTER_PWM_CLUSTER #endif #if defined(ZCL_USING_DESCRIPTOR_CLUSTER_SERVER) || defined(ZCL_USING_DESCRIPTOR_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_DESCRIPTOR_CLUSTER { ZCL_DESCRIPTOR_CLUSTER_ID, 29, "Descriptor" }, +#define CHIP_PRINTCLUSTER_DESCRIPTOR_CLUSTER { ZCL_DESCRIPTOR_CLUSTER_ID, "Descriptor" }, #else #define CHIP_PRINTCLUSTER_DESCRIPTOR_CLUSTER #endif #if defined(ZCL_USING_BINDING_CLUSTER_SERVER) || defined(ZCL_USING_BINDING_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_BINDING_CLUSTER { ZCL_BINDING_CLUSTER_ID, 30, "Binding" }, +#define CHIP_PRINTCLUSTER_BINDING_CLUSTER { ZCL_BINDING_CLUSTER_ID, "Binding" }, #else #define CHIP_PRINTCLUSTER_BINDING_CLUSTER #endif #if defined(ZCL_USING_ACCESS_CONTROL_CLUSTER_SERVER) || defined(ZCL_USING_ACCESS_CONTROL_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_ACCESS_CONTROL_CLUSTER { ZCL_ACCESS_CONTROL_CLUSTER_ID, 31, "Access Control" }, +#define CHIP_PRINTCLUSTER_ACCESS_CONTROL_CLUSTER { ZCL_ACCESS_CONTROL_CLUSTER_ID, "Access Control" }, #else #define CHIP_PRINTCLUSTER_ACCESS_CONTROL_CLUSTER #endif #if defined(ZCL_USING_POLL_CONTROL_CLUSTER_SERVER) || defined(ZCL_USING_POLL_CONTROL_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_POLL_CONTROL_CLUSTER { ZCL_POLL_CONTROL_CLUSTER_ID, 32, "Poll Control" }, +#define CHIP_PRINTCLUSTER_POLL_CONTROL_CLUSTER { ZCL_POLL_CONTROL_CLUSTER_ID, "Poll Control" }, #else #define CHIP_PRINTCLUSTER_POLL_CONTROL_CLUSTER #endif #if defined(ZCL_USING_BRIDGED_ACTIONS_CLUSTER_SERVER) || defined(ZCL_USING_BRIDGED_ACTIONS_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_BRIDGED_ACTIONS_CLUSTER { ZCL_BRIDGED_ACTIONS_CLUSTER_ID, 37, "Bridged Actions" }, +#define CHIP_PRINTCLUSTER_BRIDGED_ACTIONS_CLUSTER { ZCL_BRIDGED_ACTIONS_CLUSTER_ID, "Bridged Actions" }, #else #define CHIP_PRINTCLUSTER_BRIDGED_ACTIONS_CLUSTER #endif #if defined(ZCL_USING_BASIC_CLUSTER_SERVER) || defined(ZCL_USING_BASIC_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_BASIC_CLUSTER { ZCL_BASIC_CLUSTER_ID, 40, "Basic" }, +#define CHIP_PRINTCLUSTER_BASIC_CLUSTER { ZCL_BASIC_CLUSTER_ID, "Basic" }, #else #define CHIP_PRINTCLUSTER_BASIC_CLUSTER #endif #if defined(ZCL_USING_OTA_PROVIDER_CLUSTER_SERVER) || defined(ZCL_USING_OTA_PROVIDER_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_OTA_PROVIDER_CLUSTER { ZCL_OTA_PROVIDER_CLUSTER_ID, 41, "OTA Software Update Provider" }, +#define CHIP_PRINTCLUSTER_OTA_PROVIDER_CLUSTER { ZCL_OTA_PROVIDER_CLUSTER_ID, "OTA Software Update Provider" }, #else #define CHIP_PRINTCLUSTER_OTA_PROVIDER_CLUSTER #endif #if defined(ZCL_USING_OTA_REQUESTOR_CLUSTER_SERVER) || defined(ZCL_USING_OTA_REQUESTOR_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_OTA_REQUESTOR_CLUSTER { ZCL_OTA_REQUESTOR_CLUSTER_ID, 42, "OTA Software Update Requestor" }, +#define CHIP_PRINTCLUSTER_OTA_REQUESTOR_CLUSTER { ZCL_OTA_REQUESTOR_CLUSTER_ID, "OTA Software Update Requestor" }, #else #define CHIP_PRINTCLUSTER_OTA_REQUESTOR_CLUSTER #endif #if defined(ZCL_USING_LOCALIZATION_CONFIGURATION_CLUSTER_SERVER) || defined(ZCL_USING_LOCALIZATION_CONFIGURATION_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_LOCALIZATION_CONFIGURATION_CLUSTER \ - { ZCL_LOCALIZATION_CONFIGURATION_CLUSTER_ID, 43, "Localization Configuration" }, + { ZCL_LOCALIZATION_CONFIGURATION_CLUSTER_ID, "Localization Configuration" }, #else #define CHIP_PRINTCLUSTER_LOCALIZATION_CONFIGURATION_CLUSTER #endif #if defined(ZCL_USING_TIME_FORMAT_LOCALIZATION_CLUSTER_SERVER) || defined(ZCL_USING_TIME_FORMAT_LOCALIZATION_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_TIME_FORMAT_LOCALIZATION_CLUSTER \ - { ZCL_TIME_FORMAT_LOCALIZATION_CLUSTER_ID, 44, "Time Format Localization" }, +#define CHIP_PRINTCLUSTER_TIME_FORMAT_LOCALIZATION_CLUSTER { ZCL_TIME_FORMAT_LOCALIZATION_CLUSTER_ID, "Time Format Localization" }, #else #define CHIP_PRINTCLUSTER_TIME_FORMAT_LOCALIZATION_CLUSTER #endif #if defined(ZCL_USING_UNIT_LOCALIZATION_CLUSTER_SERVER) || defined(ZCL_USING_UNIT_LOCALIZATION_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_UNIT_LOCALIZATION_CLUSTER { ZCL_UNIT_LOCALIZATION_CLUSTER_ID, 45, "Unit Localization" }, +#define CHIP_PRINTCLUSTER_UNIT_LOCALIZATION_CLUSTER { ZCL_UNIT_LOCALIZATION_CLUSTER_ID, "Unit Localization" }, #else #define CHIP_PRINTCLUSTER_UNIT_LOCALIZATION_CLUSTER #endif #if defined(ZCL_USING_POWER_SOURCE_CONFIGURATION_CLUSTER_SERVER) || defined(ZCL_USING_POWER_SOURCE_CONFIGURATION_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_POWER_SOURCE_CONFIGURATION_CLUSTER \ - { ZCL_POWER_SOURCE_CONFIGURATION_CLUSTER_ID, 46, "Power Source Configuration" }, + { ZCL_POWER_SOURCE_CONFIGURATION_CLUSTER_ID, "Power Source Configuration" }, #else #define CHIP_PRINTCLUSTER_POWER_SOURCE_CONFIGURATION_CLUSTER #endif #if defined(ZCL_USING_POWER_SOURCE_CLUSTER_SERVER) || defined(ZCL_USING_POWER_SOURCE_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_POWER_SOURCE_CLUSTER { ZCL_POWER_SOURCE_CLUSTER_ID, 47, "Power Source" }, +#define CHIP_PRINTCLUSTER_POWER_SOURCE_CLUSTER { ZCL_POWER_SOURCE_CLUSTER_ID, "Power Source" }, #else #define CHIP_PRINTCLUSTER_POWER_SOURCE_CLUSTER #endif #if defined(ZCL_USING_GENERAL_COMMISSIONING_CLUSTER_SERVER) || defined(ZCL_USING_GENERAL_COMMISSIONING_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_GENERAL_COMMISSIONING_CLUSTER { ZCL_GENERAL_COMMISSIONING_CLUSTER_ID, 48, "General Commissioning" }, +#define CHIP_PRINTCLUSTER_GENERAL_COMMISSIONING_CLUSTER { ZCL_GENERAL_COMMISSIONING_CLUSTER_ID, "General Commissioning" }, #else #define CHIP_PRINTCLUSTER_GENERAL_COMMISSIONING_CLUSTER #endif #if defined(ZCL_USING_NETWORK_COMMISSIONING_CLUSTER_SERVER) || defined(ZCL_USING_NETWORK_COMMISSIONING_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_NETWORK_COMMISSIONING_CLUSTER { ZCL_NETWORK_COMMISSIONING_CLUSTER_ID, 49, "Network Commissioning" }, +#define CHIP_PRINTCLUSTER_NETWORK_COMMISSIONING_CLUSTER { ZCL_NETWORK_COMMISSIONING_CLUSTER_ID, "Network Commissioning" }, #else #define CHIP_PRINTCLUSTER_NETWORK_COMMISSIONING_CLUSTER #endif #if defined(ZCL_USING_DIAGNOSTIC_LOGS_CLUSTER_SERVER) || defined(ZCL_USING_DIAGNOSTIC_LOGS_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_DIAGNOSTIC_LOGS_CLUSTER { ZCL_DIAGNOSTIC_LOGS_CLUSTER_ID, 50, "Diagnostic Logs" }, +#define CHIP_PRINTCLUSTER_DIAGNOSTIC_LOGS_CLUSTER { ZCL_DIAGNOSTIC_LOGS_CLUSTER_ID, "Diagnostic Logs" }, #else #define CHIP_PRINTCLUSTER_DIAGNOSTIC_LOGS_CLUSTER #endif #if defined(ZCL_USING_GENERAL_DIAGNOSTICS_CLUSTER_SERVER) || defined(ZCL_USING_GENERAL_DIAGNOSTICS_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_GENERAL_DIAGNOSTICS_CLUSTER { ZCL_GENERAL_DIAGNOSTICS_CLUSTER_ID, 51, "General Diagnostics" }, +#define CHIP_PRINTCLUSTER_GENERAL_DIAGNOSTICS_CLUSTER { ZCL_GENERAL_DIAGNOSTICS_CLUSTER_ID, "General Diagnostics" }, #else #define CHIP_PRINTCLUSTER_GENERAL_DIAGNOSTICS_CLUSTER #endif #if defined(ZCL_USING_SOFTWARE_DIAGNOSTICS_CLUSTER_SERVER) || defined(ZCL_USING_SOFTWARE_DIAGNOSTICS_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_SOFTWARE_DIAGNOSTICS_CLUSTER { ZCL_SOFTWARE_DIAGNOSTICS_CLUSTER_ID, 52, "Software Diagnostics" }, +#define CHIP_PRINTCLUSTER_SOFTWARE_DIAGNOSTICS_CLUSTER { ZCL_SOFTWARE_DIAGNOSTICS_CLUSTER_ID, "Software Diagnostics" }, #else #define CHIP_PRINTCLUSTER_SOFTWARE_DIAGNOSTICS_CLUSTER #endif #if defined(ZCL_USING_THREAD_NETWORK_DIAGNOSTICS_CLUSTER_SERVER) || defined(ZCL_USING_THREAD_NETWORK_DIAGNOSTICS_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_THREAD_NETWORK_DIAGNOSTICS_CLUSTER \ - { ZCL_THREAD_NETWORK_DIAGNOSTICS_CLUSTER_ID, 53, "Thread Network Diagnostics" }, + { ZCL_THREAD_NETWORK_DIAGNOSTICS_CLUSTER_ID, "Thread Network Diagnostics" }, #else #define CHIP_PRINTCLUSTER_THREAD_NETWORK_DIAGNOSTICS_CLUSTER #endif #if defined(ZCL_USING_WIFI_NETWORK_DIAGNOSTICS_CLUSTER_SERVER) || defined(ZCL_USING_WIFI_NETWORK_DIAGNOSTICS_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_WIFI_NETWORK_DIAGNOSTICS_CLUSTER \ - { ZCL_WIFI_NETWORK_DIAGNOSTICS_CLUSTER_ID, 54, "WiFi Network Diagnostics" }, +#define CHIP_PRINTCLUSTER_WIFI_NETWORK_DIAGNOSTICS_CLUSTER { ZCL_WIFI_NETWORK_DIAGNOSTICS_CLUSTER_ID, "WiFi Network Diagnostics" }, #else #define CHIP_PRINTCLUSTER_WIFI_NETWORK_DIAGNOSTICS_CLUSTER #endif #if defined(ZCL_USING_ETHERNET_NETWORK_DIAGNOSTICS_CLUSTER_SERVER) || defined(ZCL_USING_ETHERNET_NETWORK_DIAGNOSTICS_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_ETHERNET_NETWORK_DIAGNOSTICS_CLUSTER \ - { ZCL_ETHERNET_NETWORK_DIAGNOSTICS_CLUSTER_ID, 55, "Ethernet Network Diagnostics" }, + { ZCL_ETHERNET_NETWORK_DIAGNOSTICS_CLUSTER_ID, "Ethernet Network Diagnostics" }, #else #define CHIP_PRINTCLUSTER_ETHERNET_NETWORK_DIAGNOSTICS_CLUSTER #endif #if defined(ZCL_USING_TIME_SYNCHRONIZATION_CLUSTER_SERVER) || defined(ZCL_USING_TIME_SYNCHRONIZATION_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_TIME_SYNCHRONIZATION_CLUSTER { ZCL_TIME_SYNCHRONIZATION_CLUSTER_ID, 56, "Time Synchronization" }, +#define CHIP_PRINTCLUSTER_TIME_SYNCHRONIZATION_CLUSTER { ZCL_TIME_SYNCHRONIZATION_CLUSTER_ID, "Time Synchronization" }, #else #define CHIP_PRINTCLUSTER_TIME_SYNCHRONIZATION_CLUSTER #endif #if defined(ZCL_USING_BRIDGED_DEVICE_BASIC_CLUSTER_SERVER) || defined(ZCL_USING_BRIDGED_DEVICE_BASIC_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_BRIDGED_DEVICE_BASIC_CLUSTER { ZCL_BRIDGED_DEVICE_BASIC_CLUSTER_ID, 57, "Bridged Device Basic" }, +#define CHIP_PRINTCLUSTER_BRIDGED_DEVICE_BASIC_CLUSTER { ZCL_BRIDGED_DEVICE_BASIC_CLUSTER_ID, "Bridged Device Basic" }, #else #define CHIP_PRINTCLUSTER_BRIDGED_DEVICE_BASIC_CLUSTER #endif #if defined(ZCL_USING_SWITCH_CLUSTER_SERVER) || defined(ZCL_USING_SWITCH_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_SWITCH_CLUSTER { ZCL_SWITCH_CLUSTER_ID, 59, "Switch" }, +#define CHIP_PRINTCLUSTER_SWITCH_CLUSTER { ZCL_SWITCH_CLUSTER_ID, "Switch" }, #else #define CHIP_PRINTCLUSTER_SWITCH_CLUSTER #endif #if defined(ZCL_USING_ADMINISTRATOR_COMMISSIONING_CLUSTER_SERVER) || defined(ZCL_USING_ADMINISTRATOR_COMMISSIONING_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_ADMINISTRATOR_COMMISSIONING_CLUSTER \ - { ZCL_ADMINISTRATOR_COMMISSIONING_CLUSTER_ID, 60, "AdministratorCommissioning" }, + { ZCL_ADMINISTRATOR_COMMISSIONING_CLUSTER_ID, "AdministratorCommissioning" }, #else #define CHIP_PRINTCLUSTER_ADMINISTRATOR_COMMISSIONING_CLUSTER #endif #if defined(ZCL_USING_OPERATIONAL_CREDENTIALS_CLUSTER_SERVER) || defined(ZCL_USING_OPERATIONAL_CREDENTIALS_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_OPERATIONAL_CREDENTIALS_CLUSTER { ZCL_OPERATIONAL_CREDENTIALS_CLUSTER_ID, 62, "Operational Credentials" }, +#define CHIP_PRINTCLUSTER_OPERATIONAL_CREDENTIALS_CLUSTER { ZCL_OPERATIONAL_CREDENTIALS_CLUSTER_ID, "Operational Credentials" }, #else #define CHIP_PRINTCLUSTER_OPERATIONAL_CREDENTIALS_CLUSTER #endif #if defined(ZCL_USING_GROUP_KEY_MANAGEMENT_CLUSTER_SERVER) || defined(ZCL_USING_GROUP_KEY_MANAGEMENT_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_GROUP_KEY_MANAGEMENT_CLUSTER { ZCL_GROUP_KEY_MANAGEMENT_CLUSTER_ID, 63, "Group Key Management" }, +#define CHIP_PRINTCLUSTER_GROUP_KEY_MANAGEMENT_CLUSTER { ZCL_GROUP_KEY_MANAGEMENT_CLUSTER_ID, "Group Key Management" }, #else #define CHIP_PRINTCLUSTER_GROUP_KEY_MANAGEMENT_CLUSTER #endif #if defined(ZCL_USING_FIXED_LABEL_CLUSTER_SERVER) || defined(ZCL_USING_FIXED_LABEL_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_FIXED_LABEL_CLUSTER { ZCL_FIXED_LABEL_CLUSTER_ID, 64, "Fixed Label" }, +#define CHIP_PRINTCLUSTER_FIXED_LABEL_CLUSTER { ZCL_FIXED_LABEL_CLUSTER_ID, "Fixed Label" }, #else #define CHIP_PRINTCLUSTER_FIXED_LABEL_CLUSTER #endif #if defined(ZCL_USING_USER_LABEL_CLUSTER_SERVER) || defined(ZCL_USING_USER_LABEL_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_USER_LABEL_CLUSTER { ZCL_USER_LABEL_CLUSTER_ID, 65, "User Label" }, +#define CHIP_PRINTCLUSTER_USER_LABEL_CLUSTER { ZCL_USER_LABEL_CLUSTER_ID, "User Label" }, #else #define CHIP_PRINTCLUSTER_USER_LABEL_CLUSTER #endif #if defined(ZCL_USING_PROXY_CONFIGURATION_CLUSTER_SERVER) || defined(ZCL_USING_PROXY_CONFIGURATION_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_PROXY_CONFIGURATION_CLUSTER { ZCL_PROXY_CONFIGURATION_CLUSTER_ID, 66, "Proxy Configuration" }, +#define CHIP_PRINTCLUSTER_PROXY_CONFIGURATION_CLUSTER { ZCL_PROXY_CONFIGURATION_CLUSTER_ID, "Proxy Configuration" }, #else #define CHIP_PRINTCLUSTER_PROXY_CONFIGURATION_CLUSTER #endif #if defined(ZCL_USING_PROXY_DISCOVERY_CLUSTER_SERVER) || defined(ZCL_USING_PROXY_DISCOVERY_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_PROXY_DISCOVERY_CLUSTER { ZCL_PROXY_DISCOVERY_CLUSTER_ID, 67, "Proxy Discovery" }, +#define CHIP_PRINTCLUSTER_PROXY_DISCOVERY_CLUSTER { ZCL_PROXY_DISCOVERY_CLUSTER_ID, "Proxy Discovery" }, #else #define CHIP_PRINTCLUSTER_PROXY_DISCOVERY_CLUSTER #endif #if defined(ZCL_USING_PROXY_VALID_CLUSTER_SERVER) || defined(ZCL_USING_PROXY_VALID_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_PROXY_VALID_CLUSTER { ZCL_PROXY_VALID_CLUSTER_ID, 68, "Proxy Valid" }, +#define CHIP_PRINTCLUSTER_PROXY_VALID_CLUSTER { ZCL_PROXY_VALID_CLUSTER_ID, "Proxy Valid" }, #else #define CHIP_PRINTCLUSTER_PROXY_VALID_CLUSTER #endif #if defined(ZCL_USING_BOOLEAN_STATE_CLUSTER_SERVER) || defined(ZCL_USING_BOOLEAN_STATE_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_BOOLEAN_STATE_CLUSTER { ZCL_BOOLEAN_STATE_CLUSTER_ID, 69, "Boolean State" }, +#define CHIP_PRINTCLUSTER_BOOLEAN_STATE_CLUSTER { ZCL_BOOLEAN_STATE_CLUSTER_ID, "Boolean State" }, #else #define CHIP_PRINTCLUSTER_BOOLEAN_STATE_CLUSTER #endif #if defined(ZCL_USING_MODE_SELECT_CLUSTER_SERVER) || defined(ZCL_USING_MODE_SELECT_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_MODE_SELECT_CLUSTER { ZCL_MODE_SELECT_CLUSTER_ID, 80, "Mode Select" }, +#define CHIP_PRINTCLUSTER_MODE_SELECT_CLUSTER { ZCL_MODE_SELECT_CLUSTER_ID, "Mode Select" }, #else #define CHIP_PRINTCLUSTER_MODE_SELECT_CLUSTER #endif #if defined(ZCL_USING_SHADE_CONFIG_CLUSTER_SERVER) || defined(ZCL_USING_SHADE_CONFIG_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_SHADE_CONFIG_CLUSTER { ZCL_SHADE_CONFIG_CLUSTER_ID, 256, "Shade Configuration" }, +#define CHIP_PRINTCLUSTER_SHADE_CONFIG_CLUSTER { ZCL_SHADE_CONFIG_CLUSTER_ID, "Shade Configuration" }, #else #define CHIP_PRINTCLUSTER_SHADE_CONFIG_CLUSTER #endif #if defined(ZCL_USING_DOOR_LOCK_CLUSTER_SERVER) || defined(ZCL_USING_DOOR_LOCK_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_DOOR_LOCK_CLUSTER { ZCL_DOOR_LOCK_CLUSTER_ID, 257, "Door Lock" }, +#define CHIP_PRINTCLUSTER_DOOR_LOCK_CLUSTER { ZCL_DOOR_LOCK_CLUSTER_ID, "Door Lock" }, #else #define CHIP_PRINTCLUSTER_DOOR_LOCK_CLUSTER #endif #if defined(ZCL_USING_WINDOW_COVERING_CLUSTER_SERVER) || defined(ZCL_USING_WINDOW_COVERING_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_WINDOW_COVERING_CLUSTER { ZCL_WINDOW_COVERING_CLUSTER_ID, 258, "Window Covering" }, +#define CHIP_PRINTCLUSTER_WINDOW_COVERING_CLUSTER { ZCL_WINDOW_COVERING_CLUSTER_ID, "Window Covering" }, #else #define CHIP_PRINTCLUSTER_WINDOW_COVERING_CLUSTER #endif #if defined(ZCL_USING_BARRIER_CONTROL_CLUSTER_SERVER) || defined(ZCL_USING_BARRIER_CONTROL_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_BARRIER_CONTROL_CLUSTER { ZCL_BARRIER_CONTROL_CLUSTER_ID, 259, "Barrier Control" }, +#define CHIP_PRINTCLUSTER_BARRIER_CONTROL_CLUSTER { ZCL_BARRIER_CONTROL_CLUSTER_ID, "Barrier Control" }, #else #define CHIP_PRINTCLUSTER_BARRIER_CONTROL_CLUSTER #endif #if defined(ZCL_USING_PUMP_CONFIG_CONTROL_CLUSTER_SERVER) || defined(ZCL_USING_PUMP_CONFIG_CONTROL_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_PUMP_CONFIG_CONTROL_CLUSTER { ZCL_PUMP_CONFIG_CONTROL_CLUSTER_ID, 512, "Pump Configuration and Control" }, +#define CHIP_PRINTCLUSTER_PUMP_CONFIG_CONTROL_CLUSTER { ZCL_PUMP_CONFIG_CONTROL_CLUSTER_ID, "Pump Configuration and Control" }, #else #define CHIP_PRINTCLUSTER_PUMP_CONFIG_CONTROL_CLUSTER #endif #if defined(ZCL_USING_THERMOSTAT_CLUSTER_SERVER) || defined(ZCL_USING_THERMOSTAT_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_THERMOSTAT_CLUSTER { ZCL_THERMOSTAT_CLUSTER_ID, 513, "Thermostat" }, +#define CHIP_PRINTCLUSTER_THERMOSTAT_CLUSTER { ZCL_THERMOSTAT_CLUSTER_ID, "Thermostat" }, #else #define CHIP_PRINTCLUSTER_THERMOSTAT_CLUSTER #endif #if defined(ZCL_USING_FAN_CONTROL_CLUSTER_SERVER) || defined(ZCL_USING_FAN_CONTROL_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_FAN_CONTROL_CLUSTER { ZCL_FAN_CONTROL_CLUSTER_ID, 514, "Fan Control" }, +#define CHIP_PRINTCLUSTER_FAN_CONTROL_CLUSTER { ZCL_FAN_CONTROL_CLUSTER_ID, "Fan Control" }, #else #define CHIP_PRINTCLUSTER_FAN_CONTROL_CLUSTER #endif #if defined(ZCL_USING_DEHUMID_CONTROL_CLUSTER_SERVER) || defined(ZCL_USING_DEHUMID_CONTROL_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_DEHUMID_CONTROL_CLUSTER { ZCL_DEHUMID_CONTROL_CLUSTER_ID, 515, "Dehumidification Control" }, +#define CHIP_PRINTCLUSTER_DEHUMID_CONTROL_CLUSTER { ZCL_DEHUMID_CONTROL_CLUSTER_ID, "Dehumidification Control" }, #else #define CHIP_PRINTCLUSTER_DEHUMID_CONTROL_CLUSTER #endif #if defined(ZCL_USING_THERMOSTAT_UI_CONFIG_CLUSTER_SERVER) || defined(ZCL_USING_THERMOSTAT_UI_CONFIG_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_THERMOSTAT_UI_CONFIG_CLUSTER \ - { ZCL_THERMOSTAT_UI_CONFIG_CLUSTER_ID, 516, "Thermostat User Interface Configuration" }, + { ZCL_THERMOSTAT_UI_CONFIG_CLUSTER_ID, "Thermostat User Interface Configuration" }, #else #define CHIP_PRINTCLUSTER_THERMOSTAT_UI_CONFIG_CLUSTER #endif #if defined(ZCL_USING_COLOR_CONTROL_CLUSTER_SERVER) || defined(ZCL_USING_COLOR_CONTROL_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_COLOR_CONTROL_CLUSTER { ZCL_COLOR_CONTROL_CLUSTER_ID, 768, "Color Control" }, +#define CHIP_PRINTCLUSTER_COLOR_CONTROL_CLUSTER { ZCL_COLOR_CONTROL_CLUSTER_ID, "Color Control" }, #else #define CHIP_PRINTCLUSTER_COLOR_CONTROL_CLUSTER #endif #if defined(ZCL_USING_BALLAST_CONFIGURATION_CLUSTER_SERVER) || defined(ZCL_USING_BALLAST_CONFIGURATION_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_BALLAST_CONFIGURATION_CLUSTER { ZCL_BALLAST_CONFIGURATION_CLUSTER_ID, 769, "Ballast Configuration" }, +#define CHIP_PRINTCLUSTER_BALLAST_CONFIGURATION_CLUSTER { ZCL_BALLAST_CONFIGURATION_CLUSTER_ID, "Ballast Configuration" }, #else #define CHIP_PRINTCLUSTER_BALLAST_CONFIGURATION_CLUSTER #endif #if defined(ZCL_USING_ILLUMINANCE_MEASUREMENT_CLUSTER_SERVER) || defined(ZCL_USING_ILLUMINANCE_MEASUREMENT_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_ILLUMINANCE_MEASUREMENT_CLUSTER \ - { ZCL_ILLUMINANCE_MEASUREMENT_CLUSTER_ID, 1024, "Illuminance Measurement" }, +#define CHIP_PRINTCLUSTER_ILLUMINANCE_MEASUREMENT_CLUSTER { ZCL_ILLUMINANCE_MEASUREMENT_CLUSTER_ID, "Illuminance Measurement" }, #else #define CHIP_PRINTCLUSTER_ILLUMINANCE_MEASUREMENT_CLUSTER #endif #if defined(ZCL_USING_TEMP_MEASUREMENT_CLUSTER_SERVER) || defined(ZCL_USING_TEMP_MEASUREMENT_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_TEMP_MEASUREMENT_CLUSTER { ZCL_TEMP_MEASUREMENT_CLUSTER_ID, 1026, "Temperature Measurement" }, +#define CHIP_PRINTCLUSTER_TEMP_MEASUREMENT_CLUSTER { ZCL_TEMP_MEASUREMENT_CLUSTER_ID, "Temperature Measurement" }, #else #define CHIP_PRINTCLUSTER_TEMP_MEASUREMENT_CLUSTER #endif #if defined(ZCL_USING_PRESSURE_MEASUREMENT_CLUSTER_SERVER) || defined(ZCL_USING_PRESSURE_MEASUREMENT_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_PRESSURE_MEASUREMENT_CLUSTER { ZCL_PRESSURE_MEASUREMENT_CLUSTER_ID, 1027, "Pressure Measurement" }, +#define CHIP_PRINTCLUSTER_PRESSURE_MEASUREMENT_CLUSTER { ZCL_PRESSURE_MEASUREMENT_CLUSTER_ID, "Pressure Measurement" }, #else #define CHIP_PRINTCLUSTER_PRESSURE_MEASUREMENT_CLUSTER #endif #if defined(ZCL_USING_FLOW_MEASUREMENT_CLUSTER_SERVER) || defined(ZCL_USING_FLOW_MEASUREMENT_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_FLOW_MEASUREMENT_CLUSTER { ZCL_FLOW_MEASUREMENT_CLUSTER_ID, 1028, "Flow Measurement" }, +#define CHIP_PRINTCLUSTER_FLOW_MEASUREMENT_CLUSTER { ZCL_FLOW_MEASUREMENT_CLUSTER_ID, "Flow Measurement" }, #else #define CHIP_PRINTCLUSTER_FLOW_MEASUREMENT_CLUSTER #endif @@ -414,13 +411,13 @@ #if defined(ZCL_USING_RELATIVE_HUMIDITY_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_RELATIVE_HUMIDITY_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_RELATIVE_HUMIDITY_MEASUREMENT_CLUSTER \ - { ZCL_RELATIVE_HUMIDITY_MEASUREMENT_CLUSTER_ID, 1029, "Relative Humidity Measurement" }, + { ZCL_RELATIVE_HUMIDITY_MEASUREMENT_CLUSTER_ID, "Relative Humidity Measurement" }, #else #define CHIP_PRINTCLUSTER_RELATIVE_HUMIDITY_MEASUREMENT_CLUSTER #endif #if defined(ZCL_USING_OCCUPANCY_SENSING_CLUSTER_SERVER) || defined(ZCL_USING_OCCUPANCY_SENSING_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_OCCUPANCY_SENSING_CLUSTER { ZCL_OCCUPANCY_SENSING_CLUSTER_ID, 1030, "Occupancy Sensing" }, +#define CHIP_PRINTCLUSTER_OCCUPANCY_SENSING_CLUSTER { ZCL_OCCUPANCY_SENSING_CLUSTER_ID, "Occupancy Sensing" }, #else #define CHIP_PRINTCLUSTER_OCCUPANCY_SENSING_CLUSTER #endif @@ -428,7 +425,7 @@ #if defined(ZCL_USING_CARBON_MONOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_CARBON_MONOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_CARBON_MONOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_CARBON_MONOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1036, "Carbon Monoxide Concentration Measurement" }, + { ZCL_CARBON_MONOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Carbon Monoxide Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_CARBON_MONOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -436,7 +433,7 @@ #if defined(ZCL_USING_CARBON_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_CARBON_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_CARBON_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_CARBON_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1037, "Carbon Dioxide Concentration Measurement" }, + { ZCL_CARBON_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Carbon Dioxide Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_CARBON_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -444,7 +441,7 @@ #if defined(ZCL_USING_ETHYLENE_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_ETHYLENE_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_ETHYLENE_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_ETHYLENE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1038, "Ethylene Concentration Measurement" }, + { ZCL_ETHYLENE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Ethylene Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_ETHYLENE_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -452,7 +449,7 @@ #if defined(ZCL_USING_ETHYLENE_OXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_ETHYLENE_OXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_ETHYLENE_OXIDE_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_ETHYLENE_OXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1039, "Ethylene Oxide Concentration Measurement" }, + { ZCL_ETHYLENE_OXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Ethylene Oxide Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_ETHYLENE_OXIDE_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -460,7 +457,7 @@ #if defined(ZCL_USING_HYDROGEN_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_HYDROGEN_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_HYDROGEN_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_HYDROGEN_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1040, "Hydrogen Concentration Measurement" }, + { ZCL_HYDROGEN_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Hydrogen Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_HYDROGEN_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -468,7 +465,7 @@ #if defined(ZCL_USING_HYDROGEN_SULPHIDE_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_HYDROGEN_SULPHIDE_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_HYDROGEN_SULPHIDE_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_HYDROGEN_SULPHIDE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1041, "Hydrogen Sulphide Concentration Measurement" }, + { ZCL_HYDROGEN_SULPHIDE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Hydrogen Sulphide Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_HYDROGEN_SULPHIDE_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -476,7 +473,7 @@ #if defined(ZCL_USING_NITRIC_OXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_NITRIC_OXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_NITRIC_OXIDE_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_NITRIC_OXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1042, "Nitric Oxide Concentration Measurement" }, + { ZCL_NITRIC_OXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Nitric Oxide Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_NITRIC_OXIDE_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -484,7 +481,7 @@ #if defined(ZCL_USING_NITROGEN_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_NITROGEN_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_NITROGEN_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_NITROGEN_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1043, "Nitrogen Dioxide Concentration Measurement" }, + { ZCL_NITROGEN_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Nitrogen Dioxide Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_NITROGEN_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -492,7 +489,7 @@ #if defined(ZCL_USING_OXYGEN_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_OXYGEN_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_OXYGEN_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_OXYGEN_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1044, "Oxygen Concentration Measurement" }, + { ZCL_OXYGEN_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Oxygen Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_OXYGEN_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -500,7 +497,7 @@ #if defined(ZCL_USING_OZONE_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_OZONE_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_OZONE_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_OZONE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1045, "Ozone Concentration Measurement" }, + { ZCL_OZONE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Ozone Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_OZONE_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -508,7 +505,7 @@ #if defined(ZCL_USING_SULFUR_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_SULFUR_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_SULFUR_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_SULFUR_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1046, "Sulfur Dioxide Concentration Measurement" }, + { ZCL_SULFUR_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Sulfur Dioxide Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_SULFUR_DIOXIDE_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -516,7 +513,7 @@ #if defined(ZCL_USING_DISSOLVED_OXYGEN_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_DISSOLVED_OXYGEN_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_DISSOLVED_OXYGEN_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_DISSOLVED_OXYGEN_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1047, "Dissolved Oxygen Concentration Measurement" }, + { ZCL_DISSOLVED_OXYGEN_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Dissolved Oxygen Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_DISSOLVED_OXYGEN_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -524,7 +521,7 @@ #if defined(ZCL_USING_BROMATE_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_BROMATE_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_BROMATE_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_BROMATE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1048, "Bromate Concentration Measurement" }, + { ZCL_BROMATE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Bromate Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_BROMATE_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -532,7 +529,7 @@ #if defined(ZCL_USING_CHLORAMINES_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_CHLORAMINES_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_CHLORAMINES_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_CHLORAMINES_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1049, "Chloramines Concentration Measurement" }, + { ZCL_CHLORAMINES_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Chloramines Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_CHLORAMINES_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -540,7 +537,7 @@ #if defined(ZCL_USING_CHLORINE_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_CHLORINE_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_CHLORINE_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_CHLORINE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1050, "Chlorine Concentration Measurement" }, + { ZCL_CHLORINE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Chlorine Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_CHLORINE_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -548,8 +545,7 @@ #if defined(ZCL_USING_FECAL_COLIFORM_AND_E_COLI_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_FECAL_COLIFORM_AND_E_COLI_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_FECAL_COLIFORM_AND_E_COLI_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_FECAL_COLIFORM_AND_E_COLI_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1051, \ - "Fecal coliform and E. Coli Concentration Measurement" }, + { ZCL_FECAL_COLIFORM_AND_E_COLI_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Fecal coliform and E. Coli Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_FECAL_COLIFORM_AND_E_COLI_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -557,7 +553,7 @@ #if defined(ZCL_USING_FLUORIDE_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_FLUORIDE_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_FLUORIDE_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_FLUORIDE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1052, "Fluoride Concentration Measurement" }, + { ZCL_FLUORIDE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Fluoride Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_FLUORIDE_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -565,7 +561,7 @@ #if defined(ZCL_USING_HALOACETIC_ACIDS_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_HALOACETIC_ACIDS_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_HALOACETIC_ACIDS_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_HALOACETIC_ACIDS_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1053, "Haloacetic Acids Concentration Measurement" }, + { ZCL_HALOACETIC_ACIDS_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Haloacetic Acids Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_HALOACETIC_ACIDS_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -573,7 +569,7 @@ #if defined(ZCL_USING_TOTAL_TRIHALOMETHANES_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_TOTAL_TRIHALOMETHANES_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_TOTAL_TRIHALOMETHANES_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_TOTAL_TRIHALOMETHANES_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1054, "Total Trihalomethanes Concentration Measurement" }, + { ZCL_TOTAL_TRIHALOMETHANES_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Total Trihalomethanes Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_TOTAL_TRIHALOMETHANES_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -581,7 +577,7 @@ #if defined(ZCL_USING_TOTAL_COLIFORM_BACTERIA_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_TOTAL_COLIFORM_BACTERIA_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_TOTAL_COLIFORM_BACTERIA_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_TOTAL_COLIFORM_BACTERIA_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1055, "Total Coliform Bacteria Concentration Measurement" }, + { ZCL_TOTAL_COLIFORM_BACTERIA_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Total Coliform Bacteria Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_TOTAL_COLIFORM_BACTERIA_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -589,7 +585,7 @@ #if defined(ZCL_USING_TURBIDITY_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_TURBIDITY_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_TURBIDITY_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_TURBIDITY_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1056, "Turbidity Concentration Measurement" }, + { ZCL_TURBIDITY_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Turbidity Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_TURBIDITY_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -597,7 +593,7 @@ #if defined(ZCL_USING_COPPER_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_COPPER_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_COPPER_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_COPPER_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1057, "Copper Concentration Measurement" }, + { ZCL_COPPER_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Copper Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_COPPER_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -605,7 +601,7 @@ #if defined(ZCL_USING_LEAD_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_LEAD_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_LEAD_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_LEAD_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1058, "Lead Concentration Measurement" }, + { ZCL_LEAD_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Lead Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_LEAD_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -613,7 +609,7 @@ #if defined(ZCL_USING_MANGANESE_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_MANGANESE_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_MANGANESE_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_MANGANESE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1059, "Manganese Concentration Measurement" }, + { ZCL_MANGANESE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Manganese Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_MANGANESE_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -621,7 +617,7 @@ #if defined(ZCL_USING_SULFATE_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_SULFATE_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_SULFATE_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_SULFATE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1060, "Sulfate Concentration Measurement" }, + { ZCL_SULFATE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Sulfate Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_SULFATE_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -629,7 +625,7 @@ #if defined(ZCL_USING_BROMODICHLOROMETHANE_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_BROMODICHLOROMETHANE_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_BROMODICHLOROMETHANE_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_BROMODICHLOROMETHANE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1061, "Bromodichloromethane Concentration Measurement" }, + { ZCL_BROMODICHLOROMETHANE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Bromodichloromethane Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_BROMODICHLOROMETHANE_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -637,7 +633,7 @@ #if defined(ZCL_USING_BROMOFORM_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_BROMOFORM_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_BROMOFORM_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_BROMOFORM_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1062, "Bromoform Concentration Measurement" }, + { ZCL_BROMOFORM_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Bromoform Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_BROMOFORM_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -645,7 +641,7 @@ #if defined(ZCL_USING_CHLORODIBROMOMETHANE_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_CHLORODIBROMOMETHANE_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_CHLORODIBROMOMETHANE_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_CHLORODIBROMOMETHANE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1063, "Chlorodibromomethane Concentration Measurement" }, + { ZCL_CHLORODIBROMOMETHANE_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Chlorodibromomethane Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_CHLORODIBROMOMETHANE_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -653,7 +649,7 @@ #if defined(ZCL_USING_CHLOROFORM_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_CHLOROFORM_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_CHLOROFORM_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_CHLOROFORM_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1064, "Chloroform Concentration Measurement" }, + { ZCL_CHLOROFORM_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Chloroform Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_CHLOROFORM_CONCENTRATION_MEASUREMENT_CLUSTER #endif @@ -661,145 +657,144 @@ #if defined(ZCL_USING_SODIUM_CONCENTRATION_MEASUREMENT_CLUSTER_SERVER) || \ defined(ZCL_USING_SODIUM_CONCENTRATION_MEASUREMENT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_SODIUM_CONCENTRATION_MEASUREMENT_CLUSTER \ - { ZCL_SODIUM_CONCENTRATION_MEASUREMENT_CLUSTER_ID, 1065, "Sodium Concentration Measurement" }, + { ZCL_SODIUM_CONCENTRATION_MEASUREMENT_CLUSTER_ID, "Sodium Concentration Measurement" }, #else #define CHIP_PRINTCLUSTER_SODIUM_CONCENTRATION_MEASUREMENT_CLUSTER #endif #if defined(ZCL_USING_IAS_ZONE_CLUSTER_SERVER) || defined(ZCL_USING_IAS_ZONE_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_IAS_ZONE_CLUSTER { ZCL_IAS_ZONE_CLUSTER_ID, 1280, "IAS Zone" }, +#define CHIP_PRINTCLUSTER_IAS_ZONE_CLUSTER { ZCL_IAS_ZONE_CLUSTER_ID, "IAS Zone" }, #else #define CHIP_PRINTCLUSTER_IAS_ZONE_CLUSTER #endif #if defined(ZCL_USING_IAS_ACE_CLUSTER_SERVER) || defined(ZCL_USING_IAS_ACE_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_IAS_ACE_CLUSTER { ZCL_IAS_ACE_CLUSTER_ID, 1281, "IAS ACE" }, +#define CHIP_PRINTCLUSTER_IAS_ACE_CLUSTER { ZCL_IAS_ACE_CLUSTER_ID, "IAS ACE" }, #else #define CHIP_PRINTCLUSTER_IAS_ACE_CLUSTER #endif #if defined(ZCL_USING_IAS_WD_CLUSTER_SERVER) || defined(ZCL_USING_IAS_WD_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_IAS_WD_CLUSTER { ZCL_IAS_WD_CLUSTER_ID, 1282, "IAS WD" }, +#define CHIP_PRINTCLUSTER_IAS_WD_CLUSTER { ZCL_IAS_WD_CLUSTER_ID, "IAS WD" }, #else #define CHIP_PRINTCLUSTER_IAS_WD_CLUSTER #endif #if defined(ZCL_USING_WAKE_ON_LAN_CLUSTER_SERVER) || defined(ZCL_USING_WAKE_ON_LAN_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_WAKE_ON_LAN_CLUSTER { ZCL_WAKE_ON_LAN_CLUSTER_ID, 1283, "Wake on LAN" }, +#define CHIP_PRINTCLUSTER_WAKE_ON_LAN_CLUSTER { ZCL_WAKE_ON_LAN_CLUSTER_ID, "Wake on LAN" }, #else #define CHIP_PRINTCLUSTER_WAKE_ON_LAN_CLUSTER #endif #if defined(ZCL_USING_CHANNEL_CLUSTER_SERVER) || defined(ZCL_USING_CHANNEL_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_CHANNEL_CLUSTER { ZCL_CHANNEL_CLUSTER_ID, 1284, "Channel" }, +#define CHIP_PRINTCLUSTER_CHANNEL_CLUSTER { ZCL_CHANNEL_CLUSTER_ID, "Channel" }, #else #define CHIP_PRINTCLUSTER_CHANNEL_CLUSTER #endif #if defined(ZCL_USING_TARGET_NAVIGATOR_CLUSTER_SERVER) || defined(ZCL_USING_TARGET_NAVIGATOR_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_TARGET_NAVIGATOR_CLUSTER { ZCL_TARGET_NAVIGATOR_CLUSTER_ID, 1285, "Target Navigator" }, +#define CHIP_PRINTCLUSTER_TARGET_NAVIGATOR_CLUSTER { ZCL_TARGET_NAVIGATOR_CLUSTER_ID, "Target Navigator" }, #else #define CHIP_PRINTCLUSTER_TARGET_NAVIGATOR_CLUSTER #endif #if defined(ZCL_USING_MEDIA_PLAYBACK_CLUSTER_SERVER) || defined(ZCL_USING_MEDIA_PLAYBACK_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_MEDIA_PLAYBACK_CLUSTER { ZCL_MEDIA_PLAYBACK_CLUSTER_ID, 1286, "Media Playback" }, +#define CHIP_PRINTCLUSTER_MEDIA_PLAYBACK_CLUSTER { ZCL_MEDIA_PLAYBACK_CLUSTER_ID, "Media Playback" }, #else #define CHIP_PRINTCLUSTER_MEDIA_PLAYBACK_CLUSTER #endif #if defined(ZCL_USING_MEDIA_INPUT_CLUSTER_SERVER) || defined(ZCL_USING_MEDIA_INPUT_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_MEDIA_INPUT_CLUSTER { ZCL_MEDIA_INPUT_CLUSTER_ID, 1287, "Media Input" }, +#define CHIP_PRINTCLUSTER_MEDIA_INPUT_CLUSTER { ZCL_MEDIA_INPUT_CLUSTER_ID, "Media Input" }, #else #define CHIP_PRINTCLUSTER_MEDIA_INPUT_CLUSTER #endif #if defined(ZCL_USING_LOW_POWER_CLUSTER_SERVER) || defined(ZCL_USING_LOW_POWER_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_LOW_POWER_CLUSTER { ZCL_LOW_POWER_CLUSTER_ID, 1288, "Low Power" }, +#define CHIP_PRINTCLUSTER_LOW_POWER_CLUSTER { ZCL_LOW_POWER_CLUSTER_ID, "Low Power" }, #else #define CHIP_PRINTCLUSTER_LOW_POWER_CLUSTER #endif #if defined(ZCL_USING_KEYPAD_INPUT_CLUSTER_SERVER) || defined(ZCL_USING_KEYPAD_INPUT_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_KEYPAD_INPUT_CLUSTER { ZCL_KEYPAD_INPUT_CLUSTER_ID, 1289, "Keypad Input" }, +#define CHIP_PRINTCLUSTER_KEYPAD_INPUT_CLUSTER { ZCL_KEYPAD_INPUT_CLUSTER_ID, "Keypad Input" }, #else #define CHIP_PRINTCLUSTER_KEYPAD_INPUT_CLUSTER #endif #if defined(ZCL_USING_CONTENT_LAUNCH_CLUSTER_SERVER) || defined(ZCL_USING_CONTENT_LAUNCH_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_CONTENT_LAUNCH_CLUSTER { ZCL_CONTENT_LAUNCH_CLUSTER_ID, 1290, "Content Launcher" }, +#define CHIP_PRINTCLUSTER_CONTENT_LAUNCH_CLUSTER { ZCL_CONTENT_LAUNCH_CLUSTER_ID, "Content Launcher" }, #else #define CHIP_PRINTCLUSTER_CONTENT_LAUNCH_CLUSTER #endif #if defined(ZCL_USING_AUDIO_OUTPUT_CLUSTER_SERVER) || defined(ZCL_USING_AUDIO_OUTPUT_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_AUDIO_OUTPUT_CLUSTER { ZCL_AUDIO_OUTPUT_CLUSTER_ID, 1291, "Audio Output" }, +#define CHIP_PRINTCLUSTER_AUDIO_OUTPUT_CLUSTER { ZCL_AUDIO_OUTPUT_CLUSTER_ID, "Audio Output" }, #else #define CHIP_PRINTCLUSTER_AUDIO_OUTPUT_CLUSTER #endif #if defined(ZCL_USING_APPLICATION_LAUNCHER_CLUSTER_SERVER) || defined(ZCL_USING_APPLICATION_LAUNCHER_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_APPLICATION_LAUNCHER_CLUSTER { ZCL_APPLICATION_LAUNCHER_CLUSTER_ID, 1292, "Application Launcher" }, +#define CHIP_PRINTCLUSTER_APPLICATION_LAUNCHER_CLUSTER { ZCL_APPLICATION_LAUNCHER_CLUSTER_ID, "Application Launcher" }, #else #define CHIP_PRINTCLUSTER_APPLICATION_LAUNCHER_CLUSTER #endif #if defined(ZCL_USING_APPLICATION_BASIC_CLUSTER_SERVER) || defined(ZCL_USING_APPLICATION_BASIC_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_APPLICATION_BASIC_CLUSTER { ZCL_APPLICATION_BASIC_CLUSTER_ID, 1293, "Application Basic" }, +#define CHIP_PRINTCLUSTER_APPLICATION_BASIC_CLUSTER { ZCL_APPLICATION_BASIC_CLUSTER_ID, "Application Basic" }, #else #define CHIP_PRINTCLUSTER_APPLICATION_BASIC_CLUSTER #endif #if defined(ZCL_USING_ACCOUNT_LOGIN_CLUSTER_SERVER) || defined(ZCL_USING_ACCOUNT_LOGIN_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_ACCOUNT_LOGIN_CLUSTER { ZCL_ACCOUNT_LOGIN_CLUSTER_ID, 1294, "Account Login" }, +#define CHIP_PRINTCLUSTER_ACCOUNT_LOGIN_CLUSTER { ZCL_ACCOUNT_LOGIN_CLUSTER_ID, "Account Login" }, #else #define CHIP_PRINTCLUSTER_ACCOUNT_LOGIN_CLUSTER #endif -#if defined(ZCL_USING_TEST_CLUSTER_SERVER) || defined(ZCL_USING_TEST_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_TEST_CLUSTER { ZCL_TEST_CLUSTER_ID, 1295, "Test Cluster" }, -#else -#define CHIP_PRINTCLUSTER_TEST_CLUSTER -#endif - #if defined(ZCL_USING_MESSAGING_CLUSTER_SERVER) || defined(ZCL_USING_MESSAGING_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_MESSAGING_CLUSTER { ZCL_MESSAGING_CLUSTER_ID, 1795, "Messaging" }, +#define CHIP_PRINTCLUSTER_MESSAGING_CLUSTER { ZCL_MESSAGING_CLUSTER_ID, "Messaging" }, #else #define CHIP_PRINTCLUSTER_MESSAGING_CLUSTER #endif #if defined(ZCL_USING_APPLIANCE_IDENTIFICATION_CLUSTER_SERVER) || defined(ZCL_USING_APPLIANCE_IDENTIFICATION_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_APPLIANCE_IDENTIFICATION_CLUSTER \ - { ZCL_APPLIANCE_IDENTIFICATION_CLUSTER_ID, 2816, "Appliance Identification" }, +#define CHIP_PRINTCLUSTER_APPLIANCE_IDENTIFICATION_CLUSTER { ZCL_APPLIANCE_IDENTIFICATION_CLUSTER_ID, "Appliance Identification" }, #else #define CHIP_PRINTCLUSTER_APPLIANCE_IDENTIFICATION_CLUSTER #endif #if defined(ZCL_USING_METER_IDENTIFICATION_CLUSTER_SERVER) || defined(ZCL_USING_METER_IDENTIFICATION_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_METER_IDENTIFICATION_CLUSTER { ZCL_METER_IDENTIFICATION_CLUSTER_ID, 2817, "Meter Identification" }, +#define CHIP_PRINTCLUSTER_METER_IDENTIFICATION_CLUSTER { ZCL_METER_IDENTIFICATION_CLUSTER_ID, "Meter Identification" }, #else #define CHIP_PRINTCLUSTER_METER_IDENTIFICATION_CLUSTER #endif #if defined(ZCL_USING_APPLIANCE_EVENTS_AND_ALERT_CLUSTER_SERVER) || defined(ZCL_USING_APPLIANCE_EVENTS_AND_ALERT_CLUSTER_CLIENT) #define CHIP_PRINTCLUSTER_APPLIANCE_EVENTS_AND_ALERT_CLUSTER \ - { ZCL_APPLIANCE_EVENTS_AND_ALERT_CLUSTER_ID, 2818, "Appliance Events and Alert" }, + { ZCL_APPLIANCE_EVENTS_AND_ALERT_CLUSTER_ID, "Appliance Events and Alert" }, #else #define CHIP_PRINTCLUSTER_APPLIANCE_EVENTS_AND_ALERT_CLUSTER #endif #if defined(ZCL_USING_APPLIANCE_STATISTICS_CLUSTER_SERVER) || defined(ZCL_USING_APPLIANCE_STATISTICS_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_APPLIANCE_STATISTICS_CLUSTER { ZCL_APPLIANCE_STATISTICS_CLUSTER_ID, 2819, "Appliance Statistics" }, +#define CHIP_PRINTCLUSTER_APPLIANCE_STATISTICS_CLUSTER { ZCL_APPLIANCE_STATISTICS_CLUSTER_ID, "Appliance Statistics" }, #else #define CHIP_PRINTCLUSTER_APPLIANCE_STATISTICS_CLUSTER #endif #if defined(ZCL_USING_ELECTRICAL_MEASUREMENT_CLUSTER_SERVER) || defined(ZCL_USING_ELECTRICAL_MEASUREMENT_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_ELECTRICAL_MEASUREMENT_CLUSTER { ZCL_ELECTRICAL_MEASUREMENT_CLUSTER_ID, 2820, "Electrical Measurement" }, +#define CHIP_PRINTCLUSTER_ELECTRICAL_MEASUREMENT_CLUSTER { ZCL_ELECTRICAL_MEASUREMENT_CLUSTER_ID, "Electrical Measurement" }, #else #define CHIP_PRINTCLUSTER_ELECTRICAL_MEASUREMENT_CLUSTER #endif +#if defined(ZCL_USING_TEST_CLUSTER_SERVER) || defined(ZCL_USING_TEST_CLUSTER_CLIENT) +#define CHIP_PRINTCLUSTER_TEST_CLUSTER { ZCL_TEST_CLUSTER_ID, "Test Cluster" }, +#else +#define CHIP_PRINTCLUSTER_TEST_CLUSTER +#endif + #define CLUSTER_IDS_TO_NAMES \ CHIP_PRINTCLUSTER_POWER_CONFIG_CLUSTER \ CHIP_PRINTCLUSTER_DEVICE_TEMP_CLUSTER \ @@ -911,12 +906,12 @@ CHIP_PRINTCLUSTER_APPLICATION_LAUNCHER_CLUSTER \ CHIP_PRINTCLUSTER_APPLICATION_BASIC_CLUSTER \ CHIP_PRINTCLUSTER_ACCOUNT_LOGIN_CLUSTER \ - CHIP_PRINTCLUSTER_TEST_CLUSTER \ CHIP_PRINTCLUSTER_MESSAGING_CLUSTER \ CHIP_PRINTCLUSTER_APPLIANCE_IDENTIFICATION_CLUSTER \ CHIP_PRINTCLUSTER_METER_IDENTIFICATION_CLUSTER \ CHIP_PRINTCLUSTER_APPLIANCE_EVENTS_AND_ALERT_CLUSTER \ CHIP_PRINTCLUSTER_APPLIANCE_STATISTICS_CLUSTER \ - CHIP_PRINTCLUSTER_ELECTRICAL_MEASUREMENT_CLUSTER + CHIP_PRINTCLUSTER_ELECTRICAL_MEASUREMENT_CLUSTER \ + CHIP_PRINTCLUSTER_TEST_CLUSTER #define MAX_CLUSTER_NAME_LENGTH 52 diff --git a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h index 680e20f7a8660e..a592d0ecace6ec 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h @@ -143,13 +143,13 @@ | ApplicationLauncher | 0x050C | | ApplicationBasic | 0x050D | | AccountLogin | 0x050E | -| TestCluster | 0x050F | | Messaging | 0x0703 | | ApplianceIdentification | 0x0B00 | | MeterIdentification | 0x0B01 | | ApplianceEventsAndAlert | 0x0B02 | | ApplianceStatistics | 0x0B03 | | ElectricalMeasurement | 0x0B04 | +| TestCluster | 0xFFF1FC05| \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ @@ -14799,114 +14799,14 @@ class AccountLoginLogout : public ClusterCommand }; /*----------------------------------------------------------------------------*\ -| Cluster TestCluster | 0x050F | +| Cluster Messaging | 0x0703 | |------------------------------------------------------------------------------| | 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 | +| * GetLastMessage | 0x00 | +| * MessageConfirmation | 0x01 | +| * GetMessageCancellation | 0x02 | |------------------------------------------------------------------------------| | 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 | 0x4000 | -| * NullableBitmap8 | 0x4001 | -| * NullableBitmap16 | 0x4002 | -| * NullableBitmap32 | 0x4003 | -| * NullableBitmap64 | 0x4004 | -| * NullableInt8u | 0x4005 | -| * NullableInt16u | 0x4006 | -| * NullableInt24u | 0x4007 | -| * NullableInt32u | 0x4008 | -| * NullableInt40u | 0x4009 | -| * NullableInt48u | 0x400A | -| * NullableInt56u | 0x400B | -| * NullableInt64u | 0x400C | -| * NullableInt8s | 0x400D | -| * NullableInt16s | 0x400E | -| * NullableInt24s | 0x400F | -| * NullableInt32s | 0x4010 | -| * NullableInt40s | 0x4011 | -| * NullableInt48s | 0x4012 | -| * NullableInt56s | 0x4013 | -| * NullableInt64s | 0x4014 | -| * NullableEnum8 | 0x4015 | -| * NullableEnum16 | 0x4016 | -| * NullableFloatSingle | 0x4017 | -| * NullableFloatDouble | 0x4018 | -| * NullableOctetString | 0x4019 | -| * NullableCharString | 0x401E | -| * NullableEnumAttr | 0x4024 | -| * NullableStruct | 0x4025 | -| * NullableRangeRestrictedInt8u | 0x4026 | -| * NullableRangeRestrictedInt8s | 0x4027 | -| * NullableRangeRestrictedInt16u | 0x4028 | -| * NullableRangeRestrictedInt16s | 0x4029 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | @@ -14914,3641 +14814,3741 @@ class AccountLoginLogout : public ClusterCommand | * ClusterRevision | 0xFFFD | |------------------------------------------------------------------------------| | Events: | | -| * TestEvent | 0x0001 | -| * TestFabricScopedEvent | 0x0002 | \*----------------------------------------------------------------------------*/ /* - * Command Test + * Command GetLastMessage */ -class TestClusterTest : public ClusterCommand +class MessagingGetLastMessage : public ClusterCommand { public: - TestClusterTest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test", credsIssuerConfig) + MessagingGetLastMessage(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-last-message", credsIssuerConfig) { ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000000) on endpoint %u", endpointIds.at(0)); + ChipLogProgress(chipTool, "Sending cluster (0x00000703) command (0x00000000) on endpoint %u", endpointIds.at(0)); - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000000, mRequest); + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000703, 0x00000000, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000000) on Group %u", groupId); + ChipLogProgress(chipTool, "Sending cluster (0x00000703) command (0x00000000) on Group %u", groupId); - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000000, mRequest); + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000703, 0x00000000, mRequest); } private: - chip::app::Clusters::TestCluster::Commands::Test::Type mRequest; + chip::app::Clusters::Messaging::Commands::GetLastMessage::Type mRequest; }; /* - * Command TestNotHandled + * Command MessageConfirmation */ -class TestClusterTestNotHandled : public ClusterCommand +class MessagingMessageConfirmation : public ClusterCommand { public: - TestClusterTestNotHandled(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-not-handled", credsIssuerConfig) + MessagingMessageConfirmation(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("message-confirmation", credsIssuerConfig) { + AddArgument("MessageId", 0, UINT32_MAX, &mRequest.messageId); + AddArgument("ConfirmationTime", 0, UINT32_MAX, &mRequest.confirmationTime); + AddArgument("MessageConfirmationControl", 0, UINT8_MAX, &mRequest.messageConfirmationControl); + AddArgument("MessageResponse", &mRequest.messageResponse); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000001) on endpoint %u", endpointIds.at(0)); + ChipLogProgress(chipTool, "Sending cluster (0x00000703) command (0x00000001) on endpoint %u", endpointIds.at(0)); - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000001, mRequest); + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000703, 0x00000001, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000001) on Group %u", groupId); + ChipLogProgress(chipTool, "Sending cluster (0x00000703) command (0x00000001) on Group %u", groupId); - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000001, mRequest); + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000703, 0x00000001, mRequest); } private: - chip::app::Clusters::TestCluster::Commands::TestNotHandled::Type mRequest; + chip::app::Clusters::Messaging::Commands::MessageConfirmation::Type mRequest; }; /* - * Command TestSpecific + * Command GetMessageCancellation */ -class TestClusterTestSpecific : public ClusterCommand +class MessagingGetMessageCancellation : public ClusterCommand { public: - TestClusterTestSpecific(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-specific", credsIssuerConfig) + MessagingGetMessageCancellation(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("get-message-cancellation", credsIssuerConfig) { + AddArgument("EarliestImplementationTime", 0, UINT32_MAX, &mRequest.earliestImplementationTime); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000002) on endpoint %u", endpointIds.at(0)); + ChipLogProgress(chipTool, "Sending cluster (0x00000703) command (0x00000002) on endpoint %u", endpointIds.at(0)); - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000002, mRequest); + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000703, 0x00000002, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000002) on Group %u", groupId); + ChipLogProgress(chipTool, "Sending cluster (0x00000703) command (0x00000002) on Group %u", groupId); - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000002, mRequest); + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000703, 0x00000002, mRequest); } private: - chip::app::Clusters::TestCluster::Commands::TestSpecific::Type mRequest; + chip::app::Clusters::Messaging::Commands::GetMessageCancellation::Type mRequest; }; -/* - * Command TestUnknownCommand - */ -class TestClusterTestUnknownCommand : public ClusterCommand +/*----------------------------------------------------------------------------*\ +| Cluster ApplianceIdentification | 0x0B00 | +|------------------------------------------------------------------------------| +| Commands: | | +|------------------------------------------------------------------------------| +| Attributes: | | +| * BasicIdentification | 0x0000 | +| * CompanyName | 0x0010 | +| * CompanyId | 0x0011 | +| * BrandName | 0x0012 | +| * BrandId | 0x0013 | +| * Model | 0x0014 | +| * PartNumber | 0x0015 | +| * ProductRevision | 0x0016 | +| * SoftwareRevision | 0x0017 | +| * ProductTypeName | 0x0018 | +| * ProductTypeId | 0x0019 | +| * CecedSpecificationVersion | 0x001A | +| * GeneratedCommandList | 0xFFF8 | +| * AcceptedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + +/*----------------------------------------------------------------------------*\ +| Cluster MeterIdentification | 0x0B01 | +|------------------------------------------------------------------------------| +| Commands: | | +|------------------------------------------------------------------------------| +| Attributes: | | +| * CompanyName | 0x0000 | +| * MeterTypeId | 0x0001 | +| * DataQualityId | 0x0004 | +| * CustomerName | 0x0005 | +| * Model | 0x0006 | +| * PartNumber | 0x0007 | +| * ProductRevision | 0x0008 | +| * SoftwareRevision | 0x000A | +| * UtilityName | 0x000B | +| * Pod | 0x000C | +| * AvailablePower | 0x000D | +| * PowerThreshold | 0x000E | +| * GeneratedCommandList | 0xFFF8 | +| * AcceptedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + +class WriteMeterIdentificationCustomerName : public WriteAttribute { public: - TestClusterTestUnknownCommand(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-unknown-command", credsIssuerConfig) + WriteMeterIdentificationCustomerName(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("CustomerName", credsIssuerConfig) { - ClusterCommand::AddArguments(); + AddArgument("attr-name", "customer-name"); + AddArgument("attr-value", &mValue); + WriteAttribute::AddArguments(); } + ~WriteMeterIdentificationCustomerName() {} + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000003) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000003, mRequest); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B01, 0x00000005, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000003) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000003, mRequest); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B01, 0x00000005, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestUnknownCommand::Type mRequest; + chip::CharSpan mValue; }; +/*----------------------------------------------------------------------------*\ +| Cluster ApplianceEventsAndAlert | 0x0B02 | +|------------------------------------------------------------------------------| +| Commands: | | +| * GetAlerts | 0x00 | +|------------------------------------------------------------------------------| +| Attributes: | | +| * GeneratedCommandList | 0xFFF8 | +| * AcceptedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + /* - * Command TestAddArguments + * Command GetAlerts */ -class TestClusterTestAddArguments : public ClusterCommand +class ApplianceEventsAndAlertGetAlerts : public ClusterCommand { public: - TestClusterTestAddArguments(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-add-arguments", credsIssuerConfig) + ApplianceEventsAndAlertGetAlerts(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-alerts", credsIssuerConfig) { - AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); - AddArgument("Arg2", 0, UINT8_MAX, &mRequest.arg2); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000004) on endpoint %u", endpointIds.at(0)); + ChipLogProgress(chipTool, "Sending cluster (0x00000B02) command (0x00000000) on endpoint %u", endpointIds.at(0)); - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000004, mRequest); + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000B02, 0x00000000, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000004) on Group %u", groupId); + ChipLogProgress(chipTool, "Sending cluster (0x00000B02) command (0x00000000) on Group %u", groupId); - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000004, mRequest); + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000B02, 0x00000000, mRequest); } private: - chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type mRequest; + chip::app::Clusters::ApplianceEventsAndAlert::Commands::GetAlerts::Type mRequest; }; +/*----------------------------------------------------------------------------*\ +| Cluster ApplianceStatistics | 0x0B03 | +|------------------------------------------------------------------------------| +| Commands: | | +| * LogRequest | 0x00 | +| * LogQueueRequest | 0x01 | +|------------------------------------------------------------------------------| +| Attributes: | | +| * LogMaxSize | 0x0000 | +| * LogQueueMaxSize | 0x0001 | +| * GeneratedCommandList | 0xFFF8 | +| * AcceptedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + /* - * Command TestSimpleArgumentRequest + * Command LogRequest */ -class TestClusterTestSimpleArgumentRequest : public ClusterCommand +class ApplianceStatisticsLogRequest : public ClusterCommand { public: - TestClusterTestSimpleArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-simple-argument-request", credsIssuerConfig) + ApplianceStatisticsLogRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("log-request", credsIssuerConfig) { - AddArgument("Arg1", 0, 1, &mRequest.arg1); + AddArgument("LogId", 0, UINT32_MAX, &mRequest.logId); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000005) on endpoint %u", endpointIds.at(0)); + ChipLogProgress(chipTool, "Sending cluster (0x00000B03) command (0x00000000) on endpoint %u", endpointIds.at(0)); - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000005, mRequest); + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000B03, 0x00000000, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000005) on Group %u", groupId); + ChipLogProgress(chipTool, "Sending cluster (0x00000B03) command (0x00000000) on Group %u", groupId); - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000005, mRequest); + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000B03, 0x00000000, mRequest); } private: - chip::app::Clusters::TestCluster::Commands::TestSimpleArgumentRequest::Type mRequest; + chip::app::Clusters::ApplianceStatistics::Commands::LogRequest::Type mRequest; }; /* - * Command TestStructArrayArgumentRequest + * Command LogQueueRequest */ -class TestClusterTestStructArrayArgumentRequest : public ClusterCommand +class ApplianceStatisticsLogQueueRequest : 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) + ApplianceStatisticsLogQueueRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("log-queue-request", credsIssuerConfig) { - AddArgument("Arg1", &mComplex_Arg1); - AddArgument("Arg2", &mComplex_Arg2); - AddArgument("Arg3", &mComplex_Arg3); - AddArgument("Arg4", &mComplex_Arg4); - AddArgument("Arg5", 0, UINT8_MAX, &mRequest.arg5); - AddArgument("Arg6", 0, 1, &mRequest.arg6); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000006) on endpoint %u", endpointIds.at(0)); + ChipLogProgress(chipTool, "Sending cluster (0x00000B03) command (0x00000001) on endpoint %u", endpointIds.at(0)); - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000006, mRequest); + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000B03, 0x00000001, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000006) on Group %u", groupId); + ChipLogProgress(chipTool, "Sending cluster (0x00000B03) command (0x00000001) on Group %u", groupId); - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000006, mRequest); + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000B03, 0x00000001, mRequest); } private: - chip::app::Clusters::TestCluster::Commands::TestStructArrayArgumentRequest::Type mRequest; - TypedComplexArgument> - mComplex_Arg1; - TypedComplexArgument> - mComplex_Arg2; - TypedComplexArgument> mComplex_Arg3; - TypedComplexArgument> mComplex_Arg4; + chip::app::Clusters::ApplianceStatistics::Commands::LogQueueRequest::Type mRequest; }; +/*----------------------------------------------------------------------------*\ +| 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 | +| * GeneratedCommandList | 0xFFF8 | +| * AcceptedCommandList | 0xFFF9 | +| * AttributeList | 0xFFFB | +| * FeatureMap | 0xFFFC | +| * ClusterRevision | 0xFFFD | +|------------------------------------------------------------------------------| +| Events: | | +\*----------------------------------------------------------------------------*/ + /* - * Command TestStructArgumentRequest + * Command GetProfileInfoCommand */ -class TestClusterTestStructArgumentRequest : public ClusterCommand +class ElectricalMeasurementGetProfileInfoCommand : public ClusterCommand { public: - TestClusterTestStructArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-struct-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + ElectricalMeasurementGetProfileInfoCommand(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("get-profile-info-command", credsIssuerConfig) { - AddArgument("Arg1", &mComplex_Arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000007) on endpoint %u", endpointIds.at(0)); + ChipLogProgress(chipTool, "Sending cluster (0x00000B04) command (0x00000000) on endpoint %u", endpointIds.at(0)); - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000007, mRequest); + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000000, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000007) on Group %u", groupId); + ChipLogProgress(chipTool, "Sending cluster (0x00000B04) command (0x00000000) on Group %u", groupId); - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000007, mRequest); + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000000, mRequest); } private: - chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type mRequest; - TypedComplexArgument mComplex_Arg1; + chip::app::Clusters::ElectricalMeasurement::Commands::GetProfileInfoCommand::Type mRequest; }; /* - * Command TestNestedStructArgumentRequest + * Command GetMeasurementProfileCommand */ -class TestClusterTestNestedStructArgumentRequest : public ClusterCommand +class ElectricalMeasurementGetMeasurementProfileCommand : public ClusterCommand { public: - TestClusterTestNestedStructArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-nested-struct-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + ElectricalMeasurementGetMeasurementProfileCommand(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("get-measurement-profile-command", credsIssuerConfig) { - AddArgument("Arg1", &mComplex_Arg1); + 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(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000008) on endpoint %u", endpointIds.at(0)); + ChipLogProgress(chipTool, "Sending cluster (0x00000B04) command (0x00000001) on endpoint %u", endpointIds.at(0)); - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000008, mRequest); + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000001, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000008) on Group %u", groupId); + ChipLogProgress(chipTool, "Sending cluster (0x00000B04) command (0x00000001) on Group %u", groupId); - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000008, mRequest); + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000001, mRequest); } private: - chip::app::Clusters::TestCluster::Commands::TestNestedStructArgumentRequest::Type mRequest; - TypedComplexArgument mComplex_Arg1; + chip::app::Clusters::ElectricalMeasurement::Commands::GetMeasurementProfileCommand::Type mRequest; }; -/* - * Command TestListStructArgumentRequest - */ -class TestClusterTestListStructArgumentRequest : public ClusterCommand +class WriteElectricalMeasurementAverageRmsVoltageMeasurementPeriod : public WriteAttribute { public: - TestClusterTestListStructArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-list-struct-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + WriteElectricalMeasurementAverageRmsVoltageMeasurementPeriod(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("AverageRmsVoltageMeasurementPeriod", credsIssuerConfig) { - AddArgument("Arg1", &mComplex_Arg1); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000009) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000009, mRequest); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000009) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000009, mRequest); + AddArgument("attr-name", "average-rms-voltage-measurement-period"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); } -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(); - } + ~WriteElectricalMeasurementAverageRmsVoltageMeasurementPeriod() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000A) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000000A, mRequest); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000511, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000A) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000000A, mRequest); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000511, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type mRequest; - TypedComplexArgument> mComplex_Arg1; + uint16_t mValue; }; -/* - * Command TestNestedStructListArgumentRequest - */ -class TestClusterTestNestedStructListArgumentRequest : public ClusterCommand +class WriteElectricalMeasurementAverageRmsUnderVoltageCounter : public WriteAttribute { 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(chip::DeviceProxy * device, std::vector endpointIds) override - { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000B) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000000B, mRequest); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override + WriteElectricalMeasurementAverageRmsUnderVoltageCounter(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("AverageRmsUnderVoltageCounter", credsIssuerConfig) { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000B) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000000B, mRequest); + AddArgument("attr-name", "average-rms-under-voltage-counter"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); } -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(); - } + ~WriteElectricalMeasurementAverageRmsUnderVoltageCounter() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000C) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000000C, mRequest); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000513, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000C) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000000C, mRequest); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000513, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestListNestedStructListArgumentRequest::Type mRequest; - TypedComplexArgument> - mComplex_Arg1; + uint16_t mValue; }; -/* - * Command TestListInt8UReverseRequest - */ -class TestClusterTestListInt8UReverseRequest : public ClusterCommand +class WriteElectricalMeasurementRmsExtremeOverVoltagePeriod : public WriteAttribute { public: - TestClusterTestListInt8UReverseRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-list-int8ureverse-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + WriteElectricalMeasurementRmsExtremeOverVoltagePeriod(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RmsExtremeOverVoltagePeriod", credsIssuerConfig) { - AddArgument("Arg1", &mComplex_Arg1); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "rms-extreme-over-voltage-period"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteElectricalMeasurementRmsExtremeOverVoltagePeriod() {} + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000D) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000000D, mRequest); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000514, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000D) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000000D, mRequest); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000514, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type mRequest; - TypedComplexArgument> mComplex_Arg1; + uint16_t mValue; }; -/* - * Command TestEnumsRequest - */ -class TestClusterTestEnumsRequest : public ClusterCommand +class WriteElectricalMeasurementRmsExtremeUnderVoltagePeriod : public WriteAttribute { public: - TestClusterTestEnumsRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-enums-request", credsIssuerConfig) + WriteElectricalMeasurementRmsExtremeUnderVoltagePeriod(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RmsExtremeUnderVoltagePeriod", credsIssuerConfig) { - AddArgument("Arg1", 0, UINT16_MAX, &mRequest.arg1); - AddArgument("Arg2", 0, UINT8_MAX, &mRequest.arg2); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "rms-extreme-under-voltage-period"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteElectricalMeasurementRmsExtremeUnderVoltagePeriod() {} + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000E) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000000E, mRequest); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000515, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000E) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000000E, mRequest); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000515, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestEnumsRequest::Type mRequest; + uint16_t mValue; }; -/* - * Command TestNullableOptionalRequest - */ -class TestClusterTestNullableOptionalRequest : public ClusterCommand +class WriteElectricalMeasurementRmsVoltageSagPeriod : public WriteAttribute { public: - TestClusterTestNullableOptionalRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-nullable-optional-request", credsIssuerConfig) + WriteElectricalMeasurementRmsVoltageSagPeriod(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RmsVoltageSagPeriod", credsIssuerConfig) { - AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "rms-voltage-sag-period"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteElectricalMeasurementRmsVoltageSagPeriod() {} + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000F) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000000F, mRequest); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000516, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000F) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000000F, mRequest); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000516, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type mRequest; + uint16_t mValue; }; -/* - * Command TestComplexNullableOptionalRequest - */ -class TestClusterTestComplexNullableOptionalRequest : public ClusterCommand +class WriteElectricalMeasurementRmsVoltageSwellPeriod : public WriteAttribute { 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) + WriteElectricalMeasurementRmsVoltageSwellPeriod(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RmsVoltageSwellPeriod", credsIssuerConfig) { - 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(); + AddArgument("attr-name", "rms-voltage-swell-period"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteElectricalMeasurementRmsVoltageSwellPeriod() {} + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000010) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000010, mRequest); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000517, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000010) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000010, mRequest); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000517, mValue); } 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; + uint16_t mValue; }; -/* - * Command SimpleStructEchoRequest - */ -class TestClusterSimpleStructEchoRequest : public ClusterCommand +class WriteElectricalMeasurementOverloadAlarmsMask : public WriteAttribute { public: - TestClusterSimpleStructEchoRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("simple-struct-echo-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) + WriteElectricalMeasurementOverloadAlarmsMask(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("OverloadAlarmsMask", credsIssuerConfig) { - AddArgument("Arg1", &mComplex_Arg1); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "overload-alarms-mask"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteElectricalMeasurementOverloadAlarmsMask() {} + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000011) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000011, mRequest); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000700, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000011) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000011, mRequest); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000700, mValue); } private: - chip::app::Clusters::TestCluster::Commands::SimpleStructEchoRequest::Type mRequest; - TypedComplexArgument mComplex_Arg1; + uint8_t mValue; }; -/* - * Command TimedInvokeRequest - */ -class TestClusterTimedInvokeRequest : public ClusterCommand +class WriteElectricalMeasurementAcOverloadAlarmsMask : public WriteAttribute { public: - TestClusterTimedInvokeRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("timed-invoke-request", credsIssuerConfig) + WriteElectricalMeasurementAcOverloadAlarmsMask(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("AcOverloadAlarmsMask", credsIssuerConfig) { - ClusterCommand::AddArguments(); + AddArgument("attr-name", "ac-overload-alarms-mask"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteElectricalMeasurementAcOverloadAlarmsMask() {} + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000012) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000012, mRequest); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000800, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000012) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000012, mRequest); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000800, mValue); } private: - chip::app::Clusters::TestCluster::Commands::TimedInvokeRequest::Type mRequest; + uint16_t mValue; }; -/* - * Command TestSimpleOptionalArgumentRequest - */ -class TestClusterTestSimpleOptionalArgumentRequest : public ClusterCommand -{ -public: - TestClusterTestSimpleOptionalArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-simple-optional-argument-request", credsIssuerConfig) +/*----------------------------------------------------------------------------*\ +| Cluster TestCluster | 0xFFF1FC05| +|------------------------------------------------------------------------------| +| Commands: | | +| * Test | 0x00 | +| * TestNotHandled | 0x01 | +| * TestSpecific | 0x02 | +| * TestUnknownCommand | 0x03 | +| * TestAddArguments | 0x04 | +| * TestSimpleArgumentRequest | 0x05 | +| * TestStructArrayArgumentRequest | 0x06 | +| * TestStructArgumentRequest | 0x07 | +| * TestNestedStructArgumentRequest | 0x08 | +| * TestListStructArgumentRequest | 0x09 | +| * TestListInt8UArgumentRequest | 0x0A | +| * TestNestedStructListArgumentRequest | 0x0B | +| * TestListNestedStructListArgumentRequest | 0x0C | +| * TestListInt8UReverseRequest | 0x0D | +| * TestEnumsRequest | 0x0E | +| * TestNullableOptionalRequest | 0x0F | +| * TestComplexNullableOptionalRequest | 0x10 | +| * SimpleStructEchoRequest | 0x11 | +| * TimedInvokeRequest | 0x12 | +| * TestSimpleOptionalArgumentRequest | 0x13 | +| * TestEmitTestEventRequest | 0x14 | +| * TestEmitTestFabricScopedEventRequest | 0x15 | +|------------------------------------------------------------------------------| +| 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 | 0x4000 | +| * NullableBitmap8 | 0x4001 | +| * NullableBitmap16 | 0x4002 | +| * NullableBitmap32 | 0x4003 | +| * NullableBitmap64 | 0x4004 | +| * NullableInt8u | 0x4005 | +| * NullableInt16u | 0x4006 | +| * NullableInt24u | 0x4007 | +| * NullableInt32u | 0x4008 | +| * NullableInt40u | 0x4009 | +| * NullableInt48u | 0x400A | +| * NullableInt56u | 0x400B | +| * NullableInt64u | 0x400C | +| * NullableInt8s | 0x400D | +| * NullableInt16s | 0x400E | +| * NullableInt24s | 0x400F | +| * NullableInt32s | 0x4010 | +| * NullableInt40s | 0x4011 | +| * NullableInt48s | 0x4012 | +| * NullableInt56s | 0x4013 | +| * NullableInt64s | 0x4014 | +| * NullableEnum8 | 0x4015 | +| * NullableEnum16 | 0x4016 | +| * NullableFloatSingle | 0x4017 | +| * NullableFloatDouble | 0x4018 | +| * NullableOctetString | 0x4019 | +| * NullableCharString | 0x401E | +| * NullableEnumAttr | 0x4024 | +| * NullableStruct | 0x4025 | +| * NullableRangeRestrictedInt8u | 0x4026 | +| * NullableRangeRestrictedInt8s | 0x4027 | +| * NullableRangeRestrictedInt16u | 0x4028 | +| * NullableRangeRestrictedInt16s | 0x4029 | +| * GeneratedCommandList | 0xFFF8 | +| * AcceptedCommandList | 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) { - AddArgument("Arg1", 0, 1, &mRequest.arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000013) on endpoint %u", endpointIds.at(0)); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000000) on endpoint %u", endpointIds.at(0)); - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000013, mRequest); + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000000, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000013) on Group %u", groupId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000000) on Group %u", groupId); - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000013, mRequest); + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000000, mRequest); } private: - chip::app::Clusters::TestCluster::Commands::TestSimpleOptionalArgumentRequest::Type mRequest; + chip::app::Clusters::TestCluster::Commands::Test::Type mRequest; }; /* - * Command TestEmitTestEventRequest + * Command TestNotHandled */ -class TestClusterTestEmitTestEventRequest : public ClusterCommand +class TestClusterTestNotHandled : public ClusterCommand { public: - TestClusterTestEmitTestEventRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-emit-test-event-request", credsIssuerConfig) + TestClusterTestNotHandled(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-not-handled", credsIssuerConfig) { - AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); - AddArgument("Arg2", 0, UINT8_MAX, &mRequest.arg2); - AddArgument("Arg3", 0, 1, &mRequest.arg3); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000014) on endpoint %u", endpointIds.at(0)); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000001) on endpoint %u", endpointIds.at(0)); - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000014, mRequest); + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000001, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000014) on Group %u", groupId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000001) on Group %u", groupId); - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000014, mRequest); + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000001, mRequest); } private: - chip::app::Clusters::TestCluster::Commands::TestEmitTestEventRequest::Type mRequest; + chip::app::Clusters::TestCluster::Commands::TestNotHandled::Type mRequest; }; /* - * Command TestEmitTestFabricScopedEventRequest + * Command TestSpecific */ -class TestClusterTestEmitTestFabricScopedEventRequest : public ClusterCommand +class TestClusterTestSpecific : public ClusterCommand { public: - TestClusterTestEmitTestFabricScopedEventRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("test-emit-test-fabric-scoped-event-request", credsIssuerConfig) + TestClusterTestSpecific(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("test-specific", credsIssuerConfig) { - AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); ClusterCommand::AddArguments(); } CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000015) on endpoint %u", endpointIds.at(0)); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000002) on endpoint %u", endpointIds.at(0)); - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000015, mRequest); + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000002, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000015) on Group %u", groupId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000002) on Group %u", groupId); - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000015, mRequest); + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000002, mRequest); } private: - chip::app::Clusters::TestCluster::Commands::TestEmitTestFabricScopedEventRequest::Type mRequest; + chip::app::Clusters::TestCluster::Commands::TestSpecific::Type mRequest; }; -class WriteTestClusterBoolean : public WriteAttribute +/* + * Command TestUnknownCommand + */ +class TestClusterTestUnknownCommand : public ClusterCommand { public: - WriteTestClusterBoolean(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Boolean", credsIssuerConfig) + TestClusterTestUnknownCommand(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-unknown-command", credsIssuerConfig) { - AddArgument("attr-name", "boolean"); - AddArgument("attr-value", 0, 1, &mValue); - WriteAttribute::AddArguments(); + ClusterCommand::AddArguments(); } - ~WriteTestClusterBoolean() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000000, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000003) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000003, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000000, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000003) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000003, mRequest); } private: - bool mValue; + chip::app::Clusters::TestCluster::Commands::TestUnknownCommand::Type mRequest; }; -class WriteTestClusterBitmap8 : public WriteAttribute +/* + * Command TestAddArguments + */ +class TestClusterTestAddArguments : public ClusterCommand { public: - WriteTestClusterBitmap8(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Bitmap8", credsIssuerConfig) + TestClusterTestAddArguments(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-add-arguments", credsIssuerConfig) { - AddArgument("attr-name", "bitmap8"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); + AddArgument("Arg2", 0, UINT8_MAX, &mRequest.arg2); + ClusterCommand::AddArguments(); } - ~WriteTestClusterBitmap8() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000001, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000004) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000004, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000001, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000004) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000004, mRequest); } private: - chip::BitMask mValue; + chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type mRequest; }; -class WriteTestClusterBitmap16 : public WriteAttribute +/* + * Command TestSimpleArgumentRequest + */ +class TestClusterTestSimpleArgumentRequest : public ClusterCommand { public: - WriteTestClusterBitmap16(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Bitmap16", credsIssuerConfig) + TestClusterTestSimpleArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-simple-argument-request", credsIssuerConfig) { - AddArgument("attr-name", "bitmap16"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("Arg1", 0, 1, &mRequest.arg1); + ClusterCommand::AddArguments(); } - ~WriteTestClusterBitmap16() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000002, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000005) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000005, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000002, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000005) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000005, mRequest); } private: - chip::BitMask mValue; + chip::app::Clusters::TestCluster::Commands::TestSimpleArgumentRequest::Type mRequest; }; -class WriteTestClusterBitmap32 : public WriteAttribute +/* + * Command TestStructArrayArgumentRequest + */ +class TestClusterTestStructArrayArgumentRequest : public ClusterCommand { public: - WriteTestClusterBitmap32(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Bitmap32", credsIssuerConfig) + 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("attr-name", "bitmap32"); - AddArgument("attr-value", 0, UINT32_MAX, &mValue); - WriteAttribute::AddArguments(); + 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(); } - ~WriteTestClusterBitmap32() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000003, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000006) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000006, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000003, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000006) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000006, mRequest); } private: - chip::BitMask mValue; + chip::app::Clusters::TestCluster::Commands::TestStructArrayArgumentRequest::Type mRequest; + TypedComplexArgument> + mComplex_Arg1; + TypedComplexArgument> + mComplex_Arg2; + TypedComplexArgument> mComplex_Arg3; + TypedComplexArgument> mComplex_Arg4; }; -class WriteTestClusterBitmap64 : public WriteAttribute +/* + * Command TestStructArgumentRequest + */ +class TestClusterTestStructArgumentRequest : public ClusterCommand { public: - WriteTestClusterBitmap64(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Bitmap64", credsIssuerConfig) + TestClusterTestStructArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-struct-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) { - AddArgument("attr-name", "bitmap64"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("Arg1", &mComplex_Arg1); + ClusterCommand::AddArguments(); } - ~WriteTestClusterBitmap64() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000004, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000007) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000007, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000004, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000007) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000007, mRequest); } private: - chip::BitMask mValue; + chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type mRequest; + TypedComplexArgument mComplex_Arg1; }; -class WriteTestClusterInt8u : public WriteAttribute +/* + * Command TestNestedStructArgumentRequest + */ +class TestClusterTestNestedStructArgumentRequest : public ClusterCommand { public: - WriteTestClusterInt8u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int8u", credsIssuerConfig) + TestClusterTestNestedStructArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-nested-struct-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) { - AddArgument("attr-name", "int8u"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("Arg1", &mComplex_Arg1); + ClusterCommand::AddArguments(); } - ~WriteTestClusterInt8u() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000005, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000008) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000008, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000005, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000008) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000008, mRequest); } private: - uint8_t mValue; + chip::app::Clusters::TestCluster::Commands::TestNestedStructArgumentRequest::Type mRequest; + TypedComplexArgument mComplex_Arg1; }; -class WriteTestClusterInt16u : public WriteAttribute +/* + * Command TestListStructArgumentRequest + */ +class TestClusterTestListStructArgumentRequest : public ClusterCommand { public: - WriteTestClusterInt16u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int16u", credsIssuerConfig) + TestClusterTestListStructArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-list-struct-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) { - AddArgument("attr-name", "int16u"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("Arg1", &mComplex_Arg1); + ClusterCommand::AddArguments(); } - ~WriteTestClusterInt16u() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000006, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000009) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000009, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000006, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000009) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000009, mRequest); } private: - uint16_t mValue; + chip::app::Clusters::TestCluster::Commands::TestListStructArgumentRequest::Type mRequest; + TypedComplexArgument> + mComplex_Arg1; }; -class WriteTestClusterInt24u : public WriteAttribute +/* + * Command TestListInt8UArgumentRequest + */ +class TestClusterTestListInt8UArgumentRequest : public ClusterCommand { public: - WriteTestClusterInt24u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int24u", credsIssuerConfig) + TestClusterTestListInt8UArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-list-int8uargument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) { - AddArgument("attr-name", "int24u"); - AddArgument("attr-value", 0, UINT32_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("Arg1", &mComplex_Arg1); + ClusterCommand::AddArguments(); } - ~WriteTestClusterInt24u() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000007, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000A) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000000A, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000007, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000A) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000000A, mRequest); } private: - uint32_t mValue; + chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type mRequest; + TypedComplexArgument> mComplex_Arg1; }; -class WriteTestClusterInt32u : public WriteAttribute +/* + * Command TestNestedStructListArgumentRequest + */ +class TestClusterTestNestedStructListArgumentRequest : public ClusterCommand { public: - WriteTestClusterInt32u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int32u", credsIssuerConfig) + TestClusterTestNestedStructListArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-nested-struct-list-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) { - AddArgument("attr-name", "int32u"); - AddArgument("attr-value", 0, UINT32_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("Arg1", &mComplex_Arg1); + ClusterCommand::AddArguments(); } - ~WriteTestClusterInt32u() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000008, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000B) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000000B, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000008, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000B) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000000B, mRequest); } private: - uint32_t mValue; + chip::app::Clusters::TestCluster::Commands::TestNestedStructListArgumentRequest::Type mRequest; + TypedComplexArgument mComplex_Arg1; }; -class WriteTestClusterInt40u : public WriteAttribute +/* + * Command TestListNestedStructListArgumentRequest + */ +class TestClusterTestListNestedStructListArgumentRequest : public ClusterCommand { public: - WriteTestClusterInt40u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int40u", credsIssuerConfig) + TestClusterTestListNestedStructListArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-list-nested-struct-list-argument-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) { - AddArgument("attr-name", "int40u"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("Arg1", &mComplex_Arg1); + ClusterCommand::AddArguments(); } - ~WriteTestClusterInt40u() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000009, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000C) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000000C, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000009, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000C) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000000C, mRequest); } private: - uint64_t mValue; + chip::app::Clusters::TestCluster::Commands::TestListNestedStructListArgumentRequest::Type mRequest; + TypedComplexArgument> + mComplex_Arg1; }; -class WriteTestClusterInt48u : public WriteAttribute +/* + * Command TestListInt8UReverseRequest + */ +class TestClusterTestListInt8UReverseRequest : public ClusterCommand { public: - WriteTestClusterInt48u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int48u", credsIssuerConfig) + TestClusterTestListInt8UReverseRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-list-int8ureverse-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) { - AddArgument("attr-name", "int48u"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("Arg1", &mComplex_Arg1); + ClusterCommand::AddArguments(); } - ~WriteTestClusterInt48u() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000000A, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000D) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000000D, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000000A, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000D) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000000D, mRequest); } private: - uint64_t mValue; + chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type mRequest; + TypedComplexArgument> mComplex_Arg1; }; -class WriteTestClusterInt56u : public WriteAttribute +/* + * Command TestEnumsRequest + */ +class TestClusterTestEnumsRequest : public ClusterCommand { public: - WriteTestClusterInt56u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int56u", credsIssuerConfig) + TestClusterTestEnumsRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-enums-request", credsIssuerConfig) { - AddArgument("attr-name", "int56u"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("Arg1", 0, UINT16_MAX, &mRequest.arg1); + AddArgument("Arg2", 0, UINT8_MAX, &mRequest.arg2); + ClusterCommand::AddArguments(); } - ~WriteTestClusterInt56u() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000000B, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000E) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000000E, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000000B, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000E) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000000E, mRequest); } private: - uint64_t mValue; + chip::app::Clusters::TestCluster::Commands::TestEnumsRequest::Type mRequest; }; -class WriteTestClusterInt64u : public WriteAttribute +/* + * Command TestNullableOptionalRequest + */ +class TestClusterTestNullableOptionalRequest : public ClusterCommand { public: - WriteTestClusterInt64u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int64u", credsIssuerConfig) + TestClusterTestNullableOptionalRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-nullable-optional-request", credsIssuerConfig) { - AddArgument("attr-name", "int64u"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); + ClusterCommand::AddArguments(); } - ~WriteTestClusterInt64u() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000000C, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000F) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000000F, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000000C, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000F) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000000F, mRequest); } private: - uint64_t mValue; + chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type mRequest; }; -class WriteTestClusterInt8s : public WriteAttribute +/* + * Command TestComplexNullableOptionalRequest + */ +class TestClusterTestComplexNullableOptionalRequest : public ClusterCommand { public: - WriteTestClusterInt8s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int8s", credsIssuerConfig) + 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("attr-name", "int8s"); - AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); - WriteAttribute::AddArguments(); + 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(); } - ~WriteTestClusterInt8s() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000000D, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000010) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000010, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000000D, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000010) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000010, mRequest); } private: - int8_t mValue; + 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; }; -class WriteTestClusterInt16s : public WriteAttribute +/* + * Command SimpleStructEchoRequest + */ +class TestClusterSimpleStructEchoRequest : public ClusterCommand { public: - WriteTestClusterInt16s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int16s", credsIssuerConfig) + TestClusterSimpleStructEchoRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("simple-struct-echo-request", credsIssuerConfig), mComplex_Arg1(&mRequest.arg1) { - AddArgument("attr-name", "int16s"); - AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("Arg1", &mComplex_Arg1); + ClusterCommand::AddArguments(); } - ~WriteTestClusterInt16s() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000000E, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000011) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000011, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000000E, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000011) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000011, mRequest); } private: - int16_t mValue; + chip::app::Clusters::TestCluster::Commands::SimpleStructEchoRequest::Type mRequest; + TypedComplexArgument mComplex_Arg1; }; -class WriteTestClusterInt24s : public WriteAttribute +/* + * Command TimedInvokeRequest + */ +class TestClusterTimedInvokeRequest : public ClusterCommand { public: - WriteTestClusterInt24s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int24s", credsIssuerConfig) + TestClusterTimedInvokeRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("timed-invoke-request", credsIssuerConfig) { - AddArgument("attr-name", "int24s"); - AddArgument("attr-value", INT32_MIN, INT32_MAX, &mValue); - WriteAttribute::AddArguments(); + ClusterCommand::AddArguments(); } - ~WriteTestClusterInt24s() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000000F, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000012) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000012, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000000F, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000012) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000012, mRequest); } private: - int32_t mValue; + chip::app::Clusters::TestCluster::Commands::TimedInvokeRequest::Type mRequest; }; -class WriteTestClusterInt32s : public WriteAttribute +/* + * Command TestSimpleOptionalArgumentRequest + */ +class TestClusterTestSimpleOptionalArgumentRequest : public ClusterCommand { public: - WriteTestClusterInt32s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int32s", credsIssuerConfig) + TestClusterTestSimpleOptionalArgumentRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-simple-optional-argument-request", credsIssuerConfig) { - AddArgument("attr-name", "int32s"); - AddArgument("attr-value", INT32_MIN, INT32_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("Arg1", 0, 1, &mRequest.arg1); + ClusterCommand::AddArguments(); } - ~WriteTestClusterInt32s() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000010, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000013) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000013, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000010, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000013) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000013, mRequest); } private: - int32_t mValue; + chip::app::Clusters::TestCluster::Commands::TestSimpleOptionalArgumentRequest::Type mRequest; }; -class WriteTestClusterInt40s : public WriteAttribute +/* + * Command TestEmitTestEventRequest + */ +class TestClusterTestEmitTestEventRequest : public ClusterCommand { public: - WriteTestClusterInt40s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int40s", credsIssuerConfig) + TestClusterTestEmitTestEventRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-emit-test-event-request", credsIssuerConfig) { - AddArgument("attr-name", "int40s"); - AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); + AddArgument("Arg2", 0, UINT8_MAX, &mRequest.arg2); + AddArgument("Arg3", 0, 1, &mRequest.arg3); + ClusterCommand::AddArguments(); } - ~WriteTestClusterInt40s() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000011, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000014) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000014, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000011, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000014) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000014, mRequest); } private: - int64_t mValue; + chip::app::Clusters::TestCluster::Commands::TestEmitTestEventRequest::Type mRequest; }; -class WriteTestClusterInt48s : public WriteAttribute +/* + * Command TestEmitTestFabricScopedEventRequest + */ +class TestClusterTestEmitTestFabricScopedEventRequest : public ClusterCommand { public: - WriteTestClusterInt48s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int48s", credsIssuerConfig) + TestClusterTestEmitTestFabricScopedEventRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("test-emit-test-fabric-scoped-event-request", credsIssuerConfig) { - AddArgument("attr-name", "int48s"); - AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); - WriteAttribute::AddArguments(); + AddArgument("Arg1", 0, UINT8_MAX, &mRequest.arg1); + ClusterCommand::AddArguments(); } - ~WriteTestClusterInt48s() {} - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000012, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000015) on endpoint %u", endpointIds.at(0)); + + return ClusterCommand::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000015, mRequest); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000012, mValue); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000015) on Group %u", groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000015, mRequest); } private: - int64_t mValue; + chip::app::Clusters::TestCluster::Commands::TestEmitTestFabricScopedEventRequest::Type mRequest; }; -class WriteTestClusterInt56s : public WriteAttribute +class WriteTestClusterBoolean : public WriteAttribute { public: - WriteTestClusterInt56s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int56s", credsIssuerConfig) + WriteTestClusterBoolean(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Boolean", credsIssuerConfig) { - AddArgument("attr-name", "int56s"); - AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); + AddArgument("attr-name", "boolean"); + AddArgument("attr-value", 0, 1, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt56s() {} + ~WriteTestClusterBoolean() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000013, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000000, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000013, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000000, mValue); } private: - int64_t mValue; + bool mValue; }; -class WriteTestClusterInt64s : public WriteAttribute +class WriteTestClusterBitmap8 : public WriteAttribute { public: - WriteTestClusterInt64s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int64s", credsIssuerConfig) + WriteTestClusterBitmap8(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Bitmap8", credsIssuerConfig) { - AddArgument("attr-name", "int64s"); - AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); + AddArgument("attr-name", "bitmap8"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterInt64s() {} + ~WriteTestClusterBitmap8() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000014, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000001, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000014, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000001, mValue); } private: - int64_t mValue; + chip::BitMask mValue; }; -class WriteTestClusterEnum8 : public WriteAttribute +class WriteTestClusterBitmap16 : public WriteAttribute { public: - WriteTestClusterEnum8(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Enum8", credsIssuerConfig) + WriteTestClusterBitmap16(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Bitmap16", credsIssuerConfig) { - AddArgument("attr-name", "enum8"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "bitmap16"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterEnum8() {} + ~WriteTestClusterBitmap16() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000015, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000002, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000015, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000002, mValue); } private: - uint8_t mValue; + chip::BitMask mValue; }; -class WriteTestClusterEnum16 : public WriteAttribute +class WriteTestClusterBitmap32 : public WriteAttribute { public: - WriteTestClusterEnum16(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Enum16", credsIssuerConfig) + WriteTestClusterBitmap32(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Bitmap32", credsIssuerConfig) { - AddArgument("attr-name", "enum16"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "bitmap32"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterEnum16() {} + ~WriteTestClusterBitmap32() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000016, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000003, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000016, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000003, mValue); } private: - uint16_t mValue; + chip::BitMask mValue; }; -class WriteTestClusterFloatSingle : public WriteAttribute +class WriteTestClusterBitmap64 : public WriteAttribute { public: - WriteTestClusterFloatSingle(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("FloatSingle", credsIssuerConfig) + WriteTestClusterBitmap64(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Bitmap64", credsIssuerConfig) { - AddArgument("attr-name", "float-single"); - AddArgument("attr-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), &mValue); + AddArgument("attr-name", "bitmap64"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterFloatSingle() {} + ~WriteTestClusterBitmap64() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000017, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000004, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000017, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000004, mValue); } private: - float mValue; + chip::BitMask mValue; }; -class WriteTestClusterFloatDouble : public WriteAttribute +class WriteTestClusterInt8u : public WriteAttribute { public: - WriteTestClusterFloatDouble(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("FloatDouble", credsIssuerConfig) + WriteTestClusterInt8u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int8u", credsIssuerConfig) { - AddArgument("attr-name", "float-double"); - AddArgument("attr-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), &mValue); + AddArgument("attr-name", "int8u"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterFloatDouble() {} + ~WriteTestClusterInt8u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000018, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000005, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000018, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000005, mValue); } private: - double mValue; + uint8_t mValue; }; -class WriteTestClusterOctetString : public WriteAttribute +class WriteTestClusterInt16u : public WriteAttribute { public: - WriteTestClusterOctetString(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("OctetString", credsIssuerConfig) + WriteTestClusterInt16u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int16u", credsIssuerConfig) { - AddArgument("attr-name", "octet-string"); - AddArgument("attr-value", &mValue); + AddArgument("attr-name", "int16u"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterOctetString() {} + ~WriteTestClusterInt16u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000019, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000006, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000019, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000006, mValue); } private: - chip::ByteSpan mValue; + uint16_t mValue; }; -class WriteTestClusterListInt8u : public WriteAttribute +class WriteTestClusterInt24u : public WriteAttribute { public: - WriteTestClusterListInt8u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("ListInt8u", credsIssuerConfig), mComplex(&mValue) + WriteTestClusterInt24u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int24u", credsIssuerConfig) { - AddArgument("attr-name", "list-int8u"); - AddArgument("attr-value", &mComplex); + AddArgument("attr-name", "int24u"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterListInt8u() {} + ~WriteTestClusterInt24u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000001A, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000007, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000001A, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000007, mValue); } private: - chip::app::DataModel::List mValue; - TypedComplexArgument> mComplex; + uint32_t mValue; }; -class WriteTestClusterListOctetString : public WriteAttribute +class WriteTestClusterInt32u : public WriteAttribute { public: - WriteTestClusterListOctetString(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("ListOctetString", credsIssuerConfig), mComplex(&mValue) + WriteTestClusterInt32u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int32u", credsIssuerConfig) { - AddArgument("attr-name", "list-octet-string"); - AddArgument("attr-value", &mComplex); + AddArgument("attr-name", "int32u"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterListOctetString() {} + ~WriteTestClusterInt32u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000001B, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000008, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000001B, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000008, mValue); } private: - chip::app::DataModel::List mValue; - TypedComplexArgument> mComplex; + uint32_t mValue; }; -class WriteTestClusterListStructOctetString : public WriteAttribute +class WriteTestClusterInt40u : public WriteAttribute { public: - WriteTestClusterListStructOctetString(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("ListStructOctetString", credsIssuerConfig), mComplex(&mValue) + WriteTestClusterInt40u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int40u", credsIssuerConfig) { - AddArgument("attr-name", "list-struct-octet-string"); - AddArgument("attr-value", &mComplex); + AddArgument("attr-name", "int40u"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterListStructOctetString() {} + ~WriteTestClusterInt40u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000001C, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000009, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000001C, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000009, mValue); } private: - chip::app::DataModel::List mValue; - TypedComplexArgument> - mComplex; + uint64_t mValue; }; -class WriteTestClusterLongOctetString : public WriteAttribute +class WriteTestClusterInt48u : public WriteAttribute { public: - WriteTestClusterLongOctetString(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("LongOctetString", credsIssuerConfig) + WriteTestClusterInt48u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int48u", credsIssuerConfig) { - AddArgument("attr-name", "long-octet-string"); - AddArgument("attr-value", &mValue); + AddArgument("attr-name", "int48u"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterLongOctetString() {} + ~WriteTestClusterInt48u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000001D, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000000A, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000001D, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000000A, mValue); } private: - chip::ByteSpan mValue; + uint64_t mValue; }; -class WriteTestClusterCharString : public WriteAttribute +class WriteTestClusterInt56u : public WriteAttribute { public: - WriteTestClusterCharString(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("CharString", credsIssuerConfig) + WriteTestClusterInt56u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int56u", credsIssuerConfig) { - AddArgument("attr-name", "char-string"); - AddArgument("attr-value", &mValue); + AddArgument("attr-name", "int56u"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterCharString() {} + ~WriteTestClusterInt56u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000001E, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000000B, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000001E, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000000B, mValue); } private: - chip::CharSpan mValue; + uint64_t mValue; }; -class WriteTestClusterLongCharString : public WriteAttribute +class WriteTestClusterInt64u : public WriteAttribute { public: - WriteTestClusterLongCharString(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("LongCharString", credsIssuerConfig) + WriteTestClusterInt64u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int64u", credsIssuerConfig) { - AddArgument("attr-name", "long-char-string"); - AddArgument("attr-value", &mValue); + AddArgument("attr-name", "int64u"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterLongCharString() {} + ~WriteTestClusterInt64u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000001F, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000000C, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000001F, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000000C, mValue); } private: - chip::CharSpan mValue; + uint64_t mValue; }; -class WriteTestClusterEpochUs : public WriteAttribute +class WriteTestClusterInt8s : public WriteAttribute { public: - WriteTestClusterEpochUs(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("EpochUs", credsIssuerConfig) + WriteTestClusterInt8s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int8s", credsIssuerConfig) { - AddArgument("attr-name", "epoch-us"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "int8s"); + AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterEpochUs() {} + ~WriteTestClusterInt8s() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000020, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000000D, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000020, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000000D, mValue); } private: - uint64_t mValue; + int8_t mValue; }; -class WriteTestClusterEpochS : public WriteAttribute +class WriteTestClusterInt16s : public WriteAttribute { public: - WriteTestClusterEpochS(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("EpochS", credsIssuerConfig) + WriteTestClusterInt16s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int16s", credsIssuerConfig) { - AddArgument("attr-name", "epoch-s"); - AddArgument("attr-value", 0, UINT32_MAX, &mValue); + AddArgument("attr-name", "int16s"); + AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterEpochS() {} + ~WriteTestClusterInt16s() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000021, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000000E, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000021, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000000E, mValue); } private: - uint32_t mValue; + int16_t mValue; }; -class WriteTestClusterVendorId : public WriteAttribute +class WriteTestClusterInt24s : public WriteAttribute { public: - WriteTestClusterVendorId(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("VendorId", credsIssuerConfig) + WriteTestClusterInt24s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int24s", credsIssuerConfig) { - AddArgument("attr-name", "vendor-id"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "int24s"); + AddArgument("attr-value", INT32_MIN, INT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterVendorId() {} + ~WriteTestClusterInt24s() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000022, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000000F, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000022, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000000F, mValue); } private: - chip::VendorId mValue; + int32_t mValue; }; -class WriteTestClusterListNullablesAndOptionalsStruct : public WriteAttribute +class WriteTestClusterInt32s : public WriteAttribute { public: - WriteTestClusterListNullablesAndOptionalsStruct(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("ListNullablesAndOptionalsStruct", credsIssuerConfig), mComplex(&mValue) + WriteTestClusterInt32s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int32s", credsIssuerConfig) { - AddArgument("attr-name", "list-nullables-and-optionals-struct"); - AddArgument("attr-value", &mComplex); + AddArgument("attr-name", "int32s"); + AddArgument("attr-value", INT32_MIN, INT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterListNullablesAndOptionalsStruct() {} + ~WriteTestClusterInt32s() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000023, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000010, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000023, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000010, mValue); } private: - chip::app::DataModel::List mValue; - TypedComplexArgument< - chip::app::DataModel::List> - mComplex; + int32_t mValue; }; -class WriteTestClusterEnumAttr : public WriteAttribute +class WriteTestClusterInt40s : public WriteAttribute { public: - WriteTestClusterEnumAttr(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("EnumAttr", credsIssuerConfig) + WriteTestClusterInt40s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int40s", credsIssuerConfig) { - AddArgument("attr-name", "enum-attr"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "int40s"); + AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterEnumAttr() {} + ~WriteTestClusterInt40s() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000024, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000011, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000024, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000011, mValue); } private: - chip::app::Clusters::TestCluster::SimpleEnum mValue; + int64_t mValue; }; -class WriteTestClusterStructAttr : public WriteAttribute +class WriteTestClusterInt48s : public WriteAttribute { public: - WriteTestClusterStructAttr(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("StructAttr", credsIssuerConfig), mComplex(&mValue) + WriteTestClusterInt48s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int48s", credsIssuerConfig) { - AddArgument("attr-name", "struct-attr"); - AddArgument("attr-value", &mComplex); + AddArgument("attr-name", "int48s"); + AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterStructAttr() {} + ~WriteTestClusterInt48s() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000025, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000012, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000025, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000012, mValue); } private: - chip::app::Clusters::TestCluster::Structs::SimpleStruct::Type mValue; - TypedComplexArgument mComplex; + int64_t mValue; }; -class WriteTestClusterRangeRestrictedInt8u : public WriteAttribute +class WriteTestClusterInt56s : public WriteAttribute { public: - WriteTestClusterRangeRestrictedInt8u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("RangeRestrictedInt8u", credsIssuerConfig) + WriteTestClusterInt56s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int56s", credsIssuerConfig) { - AddArgument("attr-name", "range-restricted-int8u"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "int56s"); + AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterRangeRestrictedInt8u() {} + ~WriteTestClusterInt56s() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000026, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000013, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000026, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000013, mValue); } private: - uint8_t mValue; + int64_t mValue; }; -class WriteTestClusterRangeRestrictedInt8s : public WriteAttribute +class WriteTestClusterInt64s : public WriteAttribute { public: - WriteTestClusterRangeRestrictedInt8s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("RangeRestrictedInt8s", credsIssuerConfig) + WriteTestClusterInt64s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Int64s", credsIssuerConfig) { - AddArgument("attr-name", "range-restricted-int8s"); - AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); + AddArgument("attr-name", "int64s"); + AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterRangeRestrictedInt8s() {} + ~WriteTestClusterInt64s() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000027, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000014, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000027, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000014, mValue); } private: - int8_t mValue; + int64_t mValue; }; -class WriteTestClusterRangeRestrictedInt16u : public WriteAttribute +class WriteTestClusterEnum8 : public WriteAttribute { public: - WriteTestClusterRangeRestrictedInt16u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("RangeRestrictedInt16u", credsIssuerConfig) + WriteTestClusterEnum8(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Enum8", credsIssuerConfig) { - AddArgument("attr-name", "range-restricted-int16u"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "enum8"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterRangeRestrictedInt16u() {} + ~WriteTestClusterEnum8() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000028, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000015, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000028, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000015, mValue); } private: - uint16_t mValue; + uint8_t mValue; }; -class WriteTestClusterRangeRestrictedInt16s : public WriteAttribute +class WriteTestClusterEnum16 : public WriteAttribute { public: - WriteTestClusterRangeRestrictedInt16s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("RangeRestrictedInt16s", credsIssuerConfig) + WriteTestClusterEnum16(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Enum16", credsIssuerConfig) { - AddArgument("attr-name", "range-restricted-int16s"); - AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); + AddArgument("attr-name", "enum16"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterRangeRestrictedInt16s() {} + ~WriteTestClusterEnum16() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000029, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000016, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000029, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000016, mValue); } private: - int16_t mValue; + uint16_t mValue; }; -class WriteTestClusterListLongOctetString : public WriteAttribute +class WriteTestClusterFloatSingle : public WriteAttribute { public: - WriteTestClusterListLongOctetString(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("ListLongOctetString", credsIssuerConfig), mComplex(&mValue) + WriteTestClusterFloatSingle(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("FloatSingle", credsIssuerConfig) { - AddArgument("attr-name", "list-long-octet-string"); - AddArgument("attr-value", &mComplex); + AddArgument("attr-name", "float-single"); + AddArgument("attr-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterListLongOctetString() {} + ~WriteTestClusterFloatSingle() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000002A, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000017, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000002A, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000017, mValue); } private: - chip::app::DataModel::List mValue; - TypedComplexArgument> mComplex; + float mValue; }; -class WriteTestClusterListFabricScoped : public WriteAttribute +class WriteTestClusterFloatDouble : public WriteAttribute { public: - WriteTestClusterListFabricScoped(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("ListFabricScoped", credsIssuerConfig), mComplex(&mValue) + WriteTestClusterFloatDouble(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("FloatDouble", credsIssuerConfig) { - AddArgument("attr-name", "list-fabric-scoped"); - AddArgument("attr-value", &mComplex); + AddArgument("attr-name", "float-double"); + AddArgument("attr-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterListFabricScoped() {} + ~WriteTestClusterFloatDouble() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000002B, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000018, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000002B, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000018, mValue); } private: - chip::app::DataModel::List mValue; - TypedComplexArgument> - mComplex; + double mValue; }; -class WriteTestClusterTimedWriteBoolean : public WriteAttribute +class WriteTestClusterOctetString : public WriteAttribute { public: - WriteTestClusterTimedWriteBoolean(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("TimedWriteBoolean", credsIssuerConfig) + WriteTestClusterOctetString(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("OctetString", credsIssuerConfig) { - AddArgument("attr-name", "timed-write-boolean"); - AddArgument("attr-value", 0, 1, &mValue); + AddArgument("attr-name", "octet-string"); + AddArgument("attr-value", &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterTimedWriteBoolean() {} + ~WriteTestClusterOctetString() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000030, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000019, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000030, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000019, mValue); } private: - bool mValue; + chip::ByteSpan mValue; }; -class WriteTestClusterGeneralErrorBoolean : public WriteAttribute +class WriteTestClusterListInt8u : public WriteAttribute { public: - WriteTestClusterGeneralErrorBoolean(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("GeneralErrorBoolean", credsIssuerConfig) + WriteTestClusterListInt8u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ListInt8u", credsIssuerConfig), mComplex(&mValue) { - AddArgument("attr-name", "general-error-boolean"); - AddArgument("attr-value", 0, 1, &mValue); + AddArgument("attr-name", "list-int8u"); + AddArgument("attr-value", &mComplex); WriteAttribute::AddArguments(); } - ~WriteTestClusterGeneralErrorBoolean() {} + ~WriteTestClusterListInt8u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000031, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000001A, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000031, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000001A, mValue); } private: - bool mValue; + chip::app::DataModel::List mValue; + TypedComplexArgument> mComplex; }; -class WriteTestClusterClusterErrorBoolean : public WriteAttribute +class WriteTestClusterListOctetString : public WriteAttribute { public: - WriteTestClusterClusterErrorBoolean(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("ClusterErrorBoolean", credsIssuerConfig) + WriteTestClusterListOctetString(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ListOctetString", credsIssuerConfig), mComplex(&mValue) { - AddArgument("attr-name", "cluster-error-boolean"); - AddArgument("attr-value", 0, 1, &mValue); + AddArgument("attr-name", "list-octet-string"); + AddArgument("attr-value", &mComplex); WriteAttribute::AddArguments(); } - ~WriteTestClusterClusterErrorBoolean() {} + ~WriteTestClusterListOctetString() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00000032, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000001B, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00000032, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000001B, mValue); } private: - bool mValue; + chip::app::DataModel::List mValue; + TypedComplexArgument> mComplex; }; -class WriteTestClusterUnsupported : public WriteAttribute +class WriteTestClusterListStructOctetString : public WriteAttribute { public: - WriteTestClusterUnsupported(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Unsupported", credsIssuerConfig) + WriteTestClusterListStructOctetString(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ListStructOctetString", credsIssuerConfig), mComplex(&mValue) { - AddArgument("attr-name", "unsupported"); - AddArgument("attr-value", 0, 1, &mValue); + AddArgument("attr-name", "list-struct-octet-string"); + AddArgument("attr-value", &mComplex); WriteAttribute::AddArguments(); } - ~WriteTestClusterUnsupported() {} + ~WriteTestClusterListStructOctetString() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x000000FF, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000001C, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x000000FF, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000001C, mValue); } private: - bool mValue; + chip::app::DataModel::List mValue; + TypedComplexArgument> + mComplex; }; -class WriteTestClusterNullableBoolean : public WriteAttribute +class WriteTestClusterLongOctetString : public WriteAttribute { public: - WriteTestClusterNullableBoolean(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableBoolean", credsIssuerConfig) + WriteTestClusterLongOctetString(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("LongOctetString", credsIssuerConfig) { - AddArgument("attr-name", "nullable-boolean"); - AddArgument("attr-value", 0, 1, &mValue); + AddArgument("attr-name", "long-octet-string"); + AddArgument("attr-value", &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableBoolean() {} + ~WriteTestClusterLongOctetString() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004000, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000001D, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004000, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000001D, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::ByteSpan mValue; }; -class WriteTestClusterNullableBitmap8 : public WriteAttribute +class WriteTestClusterCharString : public WriteAttribute { public: - WriteTestClusterNullableBitmap8(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableBitmap8", credsIssuerConfig) + WriteTestClusterCharString(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("CharString", credsIssuerConfig) { - AddArgument("attr-name", "nullable-bitmap8"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "char-string"); + AddArgument("attr-value", &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableBitmap8() {} + ~WriteTestClusterCharString() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004001, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000001E, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004001, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000001E, mValue); } private: - chip::app::DataModel::Nullable> mValue; + chip::CharSpan mValue; }; -class WriteTestClusterNullableBitmap16 : public WriteAttribute +class WriteTestClusterLongCharString : public WriteAttribute { public: - WriteTestClusterNullableBitmap16(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableBitmap16", credsIssuerConfig) + WriteTestClusterLongCharString(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("LongCharString", credsIssuerConfig) { - AddArgument("attr-name", "nullable-bitmap16"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "long-char-string"); + AddArgument("attr-value", &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableBitmap16() {} + ~WriteTestClusterLongCharString() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004002, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000001F, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004002, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000001F, mValue); } private: - chip::app::DataModel::Nullable> mValue; + chip::CharSpan mValue; }; -class WriteTestClusterNullableBitmap32 : public WriteAttribute +class WriteTestClusterEpochUs : public WriteAttribute { public: - WriteTestClusterNullableBitmap32(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableBitmap32", credsIssuerConfig) + WriteTestClusterEpochUs(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("EpochUs", credsIssuerConfig) { - AddArgument("attr-name", "nullable-bitmap32"); - AddArgument("attr-value", 0, UINT32_MAX, &mValue); + AddArgument("attr-name", "epoch-us"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableBitmap32() {} + ~WriteTestClusterEpochUs() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004003, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000020, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004003, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000020, mValue); } private: - chip::app::DataModel::Nullable> mValue; + uint64_t mValue; }; -class WriteTestClusterNullableBitmap64 : public WriteAttribute +class WriteTestClusterEpochS : public WriteAttribute { public: - WriteTestClusterNullableBitmap64(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableBitmap64", credsIssuerConfig) + WriteTestClusterEpochS(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("EpochS", credsIssuerConfig) { - AddArgument("attr-name", "nullable-bitmap64"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "epoch-s"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableBitmap64() {} + ~WriteTestClusterEpochS() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004004, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000021, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004004, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000021, mValue); } private: - chip::app::DataModel::Nullable> mValue; + uint32_t mValue; }; -class WriteTestClusterNullableInt8u : public WriteAttribute +class WriteTestClusterVendorId : public WriteAttribute { public: - WriteTestClusterNullableInt8u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("NullableInt8u", credsIssuerConfig) + WriteTestClusterVendorId(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("VendorId", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int8u"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "vendor-id"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt8u() {} + ~WriteTestClusterVendorId() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004005, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000022, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004005, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000022, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::VendorId mValue; }; -class WriteTestClusterNullableInt16u : public WriteAttribute +class WriteTestClusterListNullablesAndOptionalsStruct : public WriteAttribute { public: - WriteTestClusterNullableInt16u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt16u", credsIssuerConfig) + WriteTestClusterListNullablesAndOptionalsStruct(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ListNullablesAndOptionalsStruct", credsIssuerConfig), mComplex(&mValue) { - AddArgument("attr-name", "nullable-int16u"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "list-nullables-and-optionals-struct"); + AddArgument("attr-value", &mComplex); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt16u() {} + ~WriteTestClusterListNullablesAndOptionalsStruct() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004006, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000023, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004006, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000023, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::List mValue; + TypedComplexArgument< + chip::app::DataModel::List> + mComplex; }; -class WriteTestClusterNullableInt24u : public WriteAttribute +class WriteTestClusterEnumAttr : public WriteAttribute { public: - WriteTestClusterNullableInt24u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt24u", credsIssuerConfig) + WriteTestClusterEnumAttr(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("EnumAttr", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int24u"); - AddArgument("attr-value", 0, UINT32_MAX, &mValue); + AddArgument("attr-name", "enum-attr"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt24u() {} + ~WriteTestClusterEnumAttr() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004007, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000024, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004007, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000024, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::Clusters::TestCluster::SimpleEnum mValue; }; -class WriteTestClusterNullableInt32u : public WriteAttribute +class WriteTestClusterStructAttr : public WriteAttribute { public: - WriteTestClusterNullableInt32u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt32u", credsIssuerConfig) + WriteTestClusterStructAttr(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("StructAttr", credsIssuerConfig), mComplex(&mValue) { - AddArgument("attr-name", "nullable-int32u"); - AddArgument("attr-value", 0, UINT32_MAX, &mValue); + AddArgument("attr-name", "struct-attr"); + AddArgument("attr-value", &mComplex); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt32u() {} + ~WriteTestClusterStructAttr() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004008, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000025, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004008, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000025, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::Clusters::TestCluster::Structs::SimpleStruct::Type mValue; + TypedComplexArgument mComplex; }; -class WriteTestClusterNullableInt40u : public WriteAttribute +class WriteTestClusterRangeRestrictedInt8u : public WriteAttribute { public: - WriteTestClusterNullableInt40u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt40u", credsIssuerConfig) + WriteTestClusterRangeRestrictedInt8u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RangeRestrictedInt8u", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int40u"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "range-restricted-int8u"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt40u() {} + ~WriteTestClusterRangeRestrictedInt8u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004009, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000026, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004009, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000026, mValue); } private: - chip::app::DataModel::Nullable mValue; + uint8_t mValue; }; -class WriteTestClusterNullableInt48u : public WriteAttribute +class WriteTestClusterRangeRestrictedInt8s : public WriteAttribute { public: - WriteTestClusterNullableInt48u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt48u", credsIssuerConfig) + WriteTestClusterRangeRestrictedInt8s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RangeRestrictedInt8s", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int48u"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "range-restricted-int8s"); + AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt48u() {} + ~WriteTestClusterRangeRestrictedInt8s() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000400A, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000027, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000400A, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000027, mValue); } private: - chip::app::DataModel::Nullable mValue; + int8_t mValue; }; -class WriteTestClusterNullableInt56u : public WriteAttribute +class WriteTestClusterRangeRestrictedInt16u : public WriteAttribute { public: - WriteTestClusterNullableInt56u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt56u", credsIssuerConfig) + WriteTestClusterRangeRestrictedInt16u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RangeRestrictedInt16u", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int56u"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "range-restricted-int16u"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt56u() {} + ~WriteTestClusterRangeRestrictedInt16u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000400B, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000028, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000400B, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000028, mValue); } private: - chip::app::DataModel::Nullable mValue; + uint16_t mValue; }; -class WriteTestClusterNullableInt64u : public WriteAttribute +class WriteTestClusterRangeRestrictedInt16s : public WriteAttribute { public: - WriteTestClusterNullableInt64u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt64u", credsIssuerConfig) + WriteTestClusterRangeRestrictedInt16s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("RangeRestrictedInt16s", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int64u"); - AddArgument("attr-value", 0, UINT64_MAX, &mValue); + AddArgument("attr-name", "range-restricted-int16s"); + AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt64u() {} + ~WriteTestClusterRangeRestrictedInt16s() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000400C, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000029, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000400C, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000029, mValue); } private: - chip::app::DataModel::Nullable mValue; + int16_t mValue; }; -class WriteTestClusterNullableInt8s : public WriteAttribute +class WriteTestClusterListLongOctetString : public WriteAttribute { public: - WriteTestClusterNullableInt8s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("NullableInt8s", credsIssuerConfig) + WriteTestClusterListLongOctetString(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ListLongOctetString", credsIssuerConfig), mComplex(&mValue) { - AddArgument("attr-name", "nullable-int8s"); - AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); + AddArgument("attr-name", "list-long-octet-string"); + AddArgument("attr-value", &mComplex); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt8s() {} + ~WriteTestClusterListLongOctetString() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000400D, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000002A, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000400D, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000002A, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::List mValue; + TypedComplexArgument> mComplex; }; -class WriteTestClusterNullableInt16s : public WriteAttribute +class WriteTestClusterListFabricScoped : public WriteAttribute { public: - WriteTestClusterNullableInt16s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt16s", credsIssuerConfig) + WriteTestClusterListFabricScoped(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ListFabricScoped", credsIssuerConfig), mComplex(&mValue) { - AddArgument("attr-name", "nullable-int16s"); - AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); + AddArgument("attr-name", "list-fabric-scoped"); + AddArgument("attr-value", &mComplex); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt16s() {} + ~WriteTestClusterListFabricScoped() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000400E, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000002B, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000400E, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000002B, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::List mValue; + TypedComplexArgument> + mComplex; }; -class WriteTestClusterNullableInt24s : public WriteAttribute +class WriteTestClusterTimedWriteBoolean : public WriteAttribute { public: - WriteTestClusterNullableInt24s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt24s", credsIssuerConfig) + WriteTestClusterTimedWriteBoolean(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("TimedWriteBoolean", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int24s"); - AddArgument("attr-value", INT32_MIN, INT32_MAX, &mValue); + AddArgument("attr-name", "timed-write-boolean"); + AddArgument("attr-value", 0, 1, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt24s() {} + ~WriteTestClusterTimedWriteBoolean() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000400F, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000030, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000400F, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000030, mValue); } private: - chip::app::DataModel::Nullable mValue; + bool mValue; }; -class WriteTestClusterNullableInt32s : public WriteAttribute +class WriteTestClusterGeneralErrorBoolean : public WriteAttribute { public: - WriteTestClusterNullableInt32s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt32s", credsIssuerConfig) + WriteTestClusterGeneralErrorBoolean(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("GeneralErrorBoolean", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int32s"); - AddArgument("attr-value", INT32_MIN, INT32_MAX, &mValue); + AddArgument("attr-name", "general-error-boolean"); + AddArgument("attr-value", 0, 1, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt32s() {} + ~WriteTestClusterGeneralErrorBoolean() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004010, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000031, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004010, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000031, mValue); } private: - chip::app::DataModel::Nullable mValue; + bool mValue; }; -class WriteTestClusterNullableInt40s : public WriteAttribute +class WriteTestClusterClusterErrorBoolean : public WriteAttribute { public: - WriteTestClusterNullableInt40s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt40s", credsIssuerConfig) + WriteTestClusterClusterErrorBoolean(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("ClusterErrorBoolean", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int40s"); - AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); + AddArgument("attr-name", "cluster-error-boolean"); + AddArgument("attr-value", 0, 1, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt40s() {} + ~WriteTestClusterClusterErrorBoolean() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004011, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00000032, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004011, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00000032, mValue); } private: - chip::app::DataModel::Nullable mValue; + bool mValue; }; -class WriteTestClusterNullableInt48s : public WriteAttribute +class WriteTestClusterUnsupported : public WriteAttribute { public: - WriteTestClusterNullableInt48s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt48s", credsIssuerConfig) + WriteTestClusterUnsupported(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("Unsupported", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int48s"); - AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); + AddArgument("attr-name", "unsupported"); + AddArgument("attr-value", 0, 1, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt48s() {} + ~WriteTestClusterUnsupported() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004012, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x000000FF, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004012, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x000000FF, mValue); } private: - chip::app::DataModel::Nullable mValue; + bool mValue; }; -class WriteTestClusterNullableInt56s : public WriteAttribute +class WriteTestClusterNullableBoolean : public WriteAttribute { public: - WriteTestClusterNullableInt56s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt56s", credsIssuerConfig) + WriteTestClusterNullableBoolean(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableBoolean", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int56s"); - AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); + AddArgument("attr-name", "nullable-boolean"); + AddArgument("attr-value", 0, 1, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt56s() {} + ~WriteTestClusterNullableBoolean() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004013, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004000, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004013, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004000, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableInt64s : public WriteAttribute +class WriteTestClusterNullableBitmap8 : public WriteAttribute { public: - WriteTestClusterNullableInt64s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableInt64s", credsIssuerConfig) + WriteTestClusterNullableBitmap8(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableBitmap8", credsIssuerConfig) { - AddArgument("attr-name", "nullable-int64s"); - AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); + AddArgument("attr-name", "nullable-bitmap8"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableInt64s() {} + ~WriteTestClusterNullableBitmap8() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004014, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004001, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004014, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004001, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable> mValue; }; -class WriteTestClusterNullableEnum8 : public WriteAttribute +class WriteTestClusterNullableBitmap16 : public WriteAttribute { public: - WriteTestClusterNullableEnum8(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("NullableEnum8", credsIssuerConfig) + WriteTestClusterNullableBitmap16(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableBitmap16", credsIssuerConfig) { - AddArgument("attr-name", "nullable-enum8"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "nullable-bitmap16"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableEnum8() {} + ~WriteTestClusterNullableBitmap16() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004015, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004002, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004015, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004002, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable> mValue; }; -class WriteTestClusterNullableEnum16 : public WriteAttribute +class WriteTestClusterNullableBitmap32 : public WriteAttribute { public: - WriteTestClusterNullableEnum16(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableEnum16", credsIssuerConfig) + WriteTestClusterNullableBitmap32(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableBitmap32", credsIssuerConfig) { - AddArgument("attr-name", "nullable-enum16"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "nullable-bitmap32"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableEnum16() {} + ~WriteTestClusterNullableBitmap32() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004016, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004003, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004016, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004003, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable> mValue; }; -class WriteTestClusterNullableFloatSingle : public WriteAttribute +class WriteTestClusterNullableBitmap64 : public WriteAttribute { public: - WriteTestClusterNullableFloatSingle(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableFloatSingle", credsIssuerConfig) + WriteTestClusterNullableBitmap64(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableBitmap64", credsIssuerConfig) { - AddArgument("attr-name", "nullable-float-single"); - AddArgument("attr-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), &mValue); + AddArgument("attr-name", "nullable-bitmap64"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableFloatSingle() {} + ~WriteTestClusterNullableBitmap64() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004017, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004004, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004017, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004004, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable> mValue; }; -class WriteTestClusterNullableFloatDouble : public WriteAttribute +class WriteTestClusterNullableInt8u : public WriteAttribute { public: - WriteTestClusterNullableFloatDouble(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableFloatDouble", credsIssuerConfig) + WriteTestClusterNullableInt8u(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("NullableInt8u", credsIssuerConfig) { - AddArgument("attr-name", "nullable-float-double"); - AddArgument("attr-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), &mValue); + AddArgument("attr-name", "nullable-int8u"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableFloatDouble() {} + ~WriteTestClusterNullableInt8u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004018, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004005, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004018, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004005, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableOctetString : public WriteAttribute +class WriteTestClusterNullableInt16u : public WriteAttribute { public: - WriteTestClusterNullableOctetString(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableOctetString", credsIssuerConfig) + WriteTestClusterNullableInt16u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt16u", credsIssuerConfig) { - AddArgument("attr-name", "nullable-octet-string"); - AddArgument("attr-value", &mValue); + AddArgument("attr-name", "nullable-int16u"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableOctetString() {} + ~WriteTestClusterNullableInt16u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004019, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004006, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004019, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004006, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableCharString : public WriteAttribute +class WriteTestClusterNullableInt24u : public WriteAttribute { public: - WriteTestClusterNullableCharString(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableCharString", credsIssuerConfig) + WriteTestClusterNullableInt24u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt24u", credsIssuerConfig) { - AddArgument("attr-name", "nullable-char-string"); - AddArgument("attr-value", &mValue); + AddArgument("attr-name", "nullable-int24u"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableCharString() {} + ~WriteTestClusterNullableInt24u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x0000401E, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004007, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x0000401E, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004007, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableEnumAttr : public WriteAttribute +class WriteTestClusterNullableInt32u : public WriteAttribute { public: - WriteTestClusterNullableEnumAttr(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableEnumAttr", credsIssuerConfig) + WriteTestClusterNullableInt32u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt32u", credsIssuerConfig) { - AddArgument("attr-name", "nullable-enum-attr"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "nullable-int32u"); + AddArgument("attr-value", 0, UINT32_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableEnumAttr() {} + ~WriteTestClusterNullableInt32u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004024, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004008, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004024, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004008, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableStruct : public WriteAttribute +class WriteTestClusterNullableInt40u : public WriteAttribute { public: - WriteTestClusterNullableStruct(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableStruct", credsIssuerConfig), mComplex(&mValue) + WriteTestClusterNullableInt40u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt40u", credsIssuerConfig) { - AddArgument("attr-name", "nullable-struct"); - AddArgument("attr-value", &mComplex); + AddArgument("attr-name", "nullable-int40u"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableStruct() {} + ~WriteTestClusterNullableInt40u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004025, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004009, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004025, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004009, mValue); } private: - chip::app::DataModel::Nullable mValue; - TypedComplexArgument> mComplex; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableRangeRestrictedInt8u : public WriteAttribute +class WriteTestClusterNullableInt48u : public WriteAttribute { public: - WriteTestClusterNullableRangeRestrictedInt8u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableRangeRestrictedInt8u", credsIssuerConfig) + WriteTestClusterNullableInt48u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt48u", credsIssuerConfig) { - AddArgument("attr-name", "nullable-range-restricted-int8u"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "nullable-int48u"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableRangeRestrictedInt8u() {} + ~WriteTestClusterNullableInt48u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004026, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000400A, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004026, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000400A, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableRangeRestrictedInt8s : public WriteAttribute +class WriteTestClusterNullableInt56u : public WriteAttribute { public: - WriteTestClusterNullableRangeRestrictedInt8s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableRangeRestrictedInt8s", credsIssuerConfig) + WriteTestClusterNullableInt56u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt56u", credsIssuerConfig) { - AddArgument("attr-name", "nullable-range-restricted-int8s"); - AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); + AddArgument("attr-name", "nullable-int56u"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableRangeRestrictedInt8s() {} + ~WriteTestClusterNullableInt56u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004027, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000400B, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004027, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000400B, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableRangeRestrictedInt16u : public WriteAttribute +class WriteTestClusterNullableInt64u : public WriteAttribute { public: - WriteTestClusterNullableRangeRestrictedInt16u(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableRangeRestrictedInt16u", credsIssuerConfig) + WriteTestClusterNullableInt64u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt64u", credsIssuerConfig) { - AddArgument("attr-name", "nullable-range-restricted-int16u"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "nullable-int64u"); + AddArgument("attr-value", 0, UINT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableRangeRestrictedInt16u() {} + ~WriteTestClusterNullableInt64u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004028, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000400C, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004028, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000400C, mValue); } private: - chip::app::DataModel::Nullable mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteTestClusterNullableRangeRestrictedInt16s : public WriteAttribute +class WriteTestClusterNullableInt8s : public WriteAttribute { public: - WriteTestClusterNullableRangeRestrictedInt16s(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("NullableRangeRestrictedInt16s", credsIssuerConfig) + WriteTestClusterNullableInt8s(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("NullableInt8s", credsIssuerConfig) { - AddArgument("attr-name", "nullable-range-restricted-int16s"); + AddArgument("attr-name", "nullable-int8s"); + AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteTestClusterNullableInt8s() {} + + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override + { + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000400D, mValue); + } + + CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override + { + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000400D, mValue); + } + +private: + chip::app::DataModel::Nullable mValue; +}; + +class WriteTestClusterNullableInt16s : public WriteAttribute +{ +public: + WriteTestClusterNullableInt16s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt16s", credsIssuerConfig) + { + AddArgument("attr-name", "nullable-int16s"); AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteTestClusterNullableRangeRestrictedInt16s() {} + ~WriteTestClusterNullableInt16s() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x0000050F, 0x00004029, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000400E, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x0000050F, 0x00004029, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000400E, mValue); } private: chip::app::DataModel::Nullable mValue; }; -/*----------------------------------------------------------------------------*\ -| Cluster Messaging | 0x0703 | -|------------------------------------------------------------------------------| -| Commands: | | -| * GetLastMessage | 0x00 | -| * MessageConfirmation | 0x01 | -| * GetMessageCancellation | 0x02 | -|------------------------------------------------------------------------------| -| Attributes: | | -| * GeneratedCommandList | 0xFFF8 | -| * AcceptedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * FeatureMap | 0xFFFC | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - -/* - * Command GetLastMessage - */ -class MessagingGetLastMessage : public ClusterCommand +class WriteTestClusterNullableInt24s : public WriteAttribute { public: - MessagingGetLastMessage(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-last-message", credsIssuerConfig) + WriteTestClusterNullableInt24s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt24s", credsIssuerConfig) { - ClusterCommand::AddArguments(); + AddArgument("attr-name", "nullable-int24s"); + AddArgument("attr-value", INT32_MIN, INT32_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterNullableInt24s() {} + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000703) command (0x00000000) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000703, 0x00000000, mRequest); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000400F, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000703) command (0x00000000) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000703, 0x00000000, mRequest); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000400F, mValue); } private: - chip::app::Clusters::Messaging::Commands::GetLastMessage::Type mRequest; + chip::app::DataModel::Nullable mValue; }; -/* - * Command MessageConfirmation - */ -class MessagingMessageConfirmation : public ClusterCommand +class WriteTestClusterNullableInt32s : public WriteAttribute { public: - MessagingMessageConfirmation(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("message-confirmation", credsIssuerConfig) + WriteTestClusterNullableInt32s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt32s", credsIssuerConfig) { - AddArgument("MessageId", 0, UINT32_MAX, &mRequest.messageId); - AddArgument("ConfirmationTime", 0, UINT32_MAX, &mRequest.confirmationTime); - AddArgument("MessageConfirmationControl", 0, UINT8_MAX, &mRequest.messageConfirmationControl); - AddArgument("MessageResponse", &mRequest.messageResponse); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "nullable-int32s"); + AddArgument("attr-value", INT32_MIN, INT32_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterNullableInt32s() {} + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000703) command (0x00000001) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000703, 0x00000001, mRequest); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004010, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000703) command (0x00000001) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000703, 0x00000001, mRequest); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004010, mValue); } private: - chip::app::Clusters::Messaging::Commands::MessageConfirmation::Type mRequest; + chip::app::DataModel::Nullable mValue; }; -/* - * Command GetMessageCancellation - */ -class MessagingGetMessageCancellation : public ClusterCommand +class WriteTestClusterNullableInt40s : public WriteAttribute { public: - MessagingGetMessageCancellation(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("get-message-cancellation", credsIssuerConfig) + WriteTestClusterNullableInt40s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt40s", credsIssuerConfig) { - AddArgument("EarliestImplementationTime", 0, UINT32_MAX, &mRequest.earliestImplementationTime); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "nullable-int40s"); + AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterNullableInt40s() {} + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000703) command (0x00000002) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000703, 0x00000002, mRequest); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004011, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000703) command (0x00000002) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000703, 0x00000002, mRequest); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004011, mValue); } private: - chip::app::Clusters::Messaging::Commands::GetMessageCancellation::Type mRequest; + chip::app::DataModel::Nullable mValue; }; -/*----------------------------------------------------------------------------*\ -| Cluster ApplianceIdentification | 0x0B00 | -|------------------------------------------------------------------------------| -| Commands: | | -|------------------------------------------------------------------------------| -| Attributes: | | -| * BasicIdentification | 0x0000 | -| * CompanyName | 0x0010 | -| * CompanyId | 0x0011 | -| * BrandName | 0x0012 | -| * BrandId | 0x0013 | -| * Model | 0x0014 | -| * PartNumber | 0x0015 | -| * ProductRevision | 0x0016 | -| * SoftwareRevision | 0x0017 | -| * ProductTypeName | 0x0018 | -| * ProductTypeId | 0x0019 | -| * CecedSpecificationVersion | 0x001A | -| * GeneratedCommandList | 0xFFF8 | -| * AcceptedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * FeatureMap | 0xFFFC | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ +class WriteTestClusterNullableInt48s : public WriteAttribute +{ +public: + WriteTestClusterNullableInt48s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt48s", credsIssuerConfig) + { + AddArgument("attr-name", "nullable-int48s"); + AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); + WriteAttribute::AddArguments(); + } -/*----------------------------------------------------------------------------*\ -| Cluster MeterIdentification | 0x0B01 | -|------------------------------------------------------------------------------| -| Commands: | | -|------------------------------------------------------------------------------| -| Attributes: | | -| * CompanyName | 0x0000 | -| * MeterTypeId | 0x0001 | -| * DataQualityId | 0x0004 | -| * CustomerName | 0x0005 | -| * Model | 0x0006 | -| * PartNumber | 0x0007 | -| * ProductRevision | 0x0008 | -| * SoftwareRevision | 0x000A | -| * UtilityName | 0x000B | -| * Pod | 0x000C | -| * AvailablePower | 0x000D | -| * PowerThreshold | 0x000E | -| * GeneratedCommandList | 0xFFF8 | -| * AcceptedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * FeatureMap | 0xFFFC | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ + ~WriteTestClusterNullableInt48s() {} -class WriteMeterIdentificationCustomerName : public WriteAttribute + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override + { + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004012, mValue); + } + + CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override + { + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004012, mValue); + } + +private: + chip::app::DataModel::Nullable mValue; +}; + +class WriteTestClusterNullableInt56s : public WriteAttribute { public: - WriteMeterIdentificationCustomerName(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("CustomerName", credsIssuerConfig) + WriteTestClusterNullableInt56s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt56s", credsIssuerConfig) { - AddArgument("attr-name", "customer-name"); - AddArgument("attr-value", &mValue); + AddArgument("attr-name", "nullable-int56s"); + AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteMeterIdentificationCustomerName() {} + ~WriteTestClusterNullableInt56s() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B01, 0x00000005, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004013, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B01, 0x00000005, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004013, mValue); } private: - chip::CharSpan mValue; + chip::app::DataModel::Nullable mValue; }; -/*----------------------------------------------------------------------------*\ -| Cluster ApplianceEventsAndAlert | 0x0B02 | -|------------------------------------------------------------------------------| -| Commands: | | -| * GetAlerts | 0x00 | -|------------------------------------------------------------------------------| -| Attributes: | | -| * GeneratedCommandList | 0xFFF8 | -| * AcceptedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * FeatureMap | 0xFFFC | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - -/* - * Command GetAlerts - */ -class ApplianceEventsAndAlertGetAlerts : public ClusterCommand +class WriteTestClusterNullableInt64s : public WriteAttribute { public: - ApplianceEventsAndAlertGetAlerts(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-alerts", credsIssuerConfig) + WriteTestClusterNullableInt64s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableInt64s", credsIssuerConfig) { - ClusterCommand::AddArguments(); + AddArgument("attr-name", "nullable-int64s"); + AddArgument("attr-value", INT64_MIN, INT64_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterNullableInt64s() {} + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000B02) command (0x00000000) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000B02, 0x00000000, mRequest); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004014, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000B02) command (0x00000000) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000B02, 0x00000000, mRequest); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004014, mValue); } private: - chip::app::Clusters::ApplianceEventsAndAlert::Commands::GetAlerts::Type mRequest; + chip::app::DataModel::Nullable mValue; }; -/*----------------------------------------------------------------------------*\ -| Cluster ApplianceStatistics | 0x0B03 | -|------------------------------------------------------------------------------| -| Commands: | | -| * LogRequest | 0x00 | -| * LogQueueRequest | 0x01 | -|------------------------------------------------------------------------------| -| Attributes: | | -| * LogMaxSize | 0x0000 | -| * LogQueueMaxSize | 0x0001 | -| * GeneratedCommandList | 0xFFF8 | -| * AcceptedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * FeatureMap | 0xFFFC | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - -/* - * Command LogRequest - */ -class ApplianceStatisticsLogRequest : public ClusterCommand +class WriteTestClusterNullableEnum8 : public WriteAttribute { public: - ApplianceStatisticsLogRequest(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("log-request", credsIssuerConfig) + WriteTestClusterNullableEnum8(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("NullableEnum8", credsIssuerConfig) { - AddArgument("LogId", 0, UINT32_MAX, &mRequest.logId); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "nullable-enum8"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterNullableEnum8() {} + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000B03) command (0x00000000) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000B03, 0x00000000, mRequest); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004015, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000B03) command (0x00000000) on Group %u", groupId); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004015, mValue); + } - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000B03, 0x00000000, mRequest); +private: + chip::app::DataModel::Nullable mValue; +}; + +class WriteTestClusterNullableEnum16 : public WriteAttribute +{ +public: + WriteTestClusterNullableEnum16(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableEnum16", credsIssuerConfig) + { + AddArgument("attr-name", "nullable-enum16"); + AddArgument("attr-value", 0, UINT16_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteTestClusterNullableEnum16() {} + + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override + { + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004016, mValue); + } + + CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override + { + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004016, mValue); } private: - chip::app::Clusters::ApplianceStatistics::Commands::LogRequest::Type mRequest; + chip::app::DataModel::Nullable mValue; }; -/* - * Command LogQueueRequest - */ -class ApplianceStatisticsLogQueueRequest : public ClusterCommand +class WriteTestClusterNullableFloatSingle : public WriteAttribute { public: - ApplianceStatisticsLogQueueRequest(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("log-queue-request", credsIssuerConfig) + WriteTestClusterNullableFloatSingle(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableFloatSingle", credsIssuerConfig) { - ClusterCommand::AddArguments(); + AddArgument("attr-name", "nullable-float-single"); + AddArgument("attr-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterNullableFloatSingle() {} + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000B03) command (0x00000001) on endpoint %u", endpointIds.at(0)); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004017, mValue); + } - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000B03, 0x00000001, mRequest); + CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override + { + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004017, mValue); + } + +private: + chip::app::DataModel::Nullable mValue; +}; + +class WriteTestClusterNullableFloatDouble : public WriteAttribute +{ +public: + WriteTestClusterNullableFloatDouble(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableFloatDouble", credsIssuerConfig) + { + AddArgument("attr-name", "nullable-float-double"); + AddArgument("attr-value", -std::numeric_limits::infinity(), std::numeric_limits::infinity(), &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteTestClusterNullableFloatDouble() {} + + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override + { + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004018, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000B03) command (0x00000001) on Group %u", groupId); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004018, mValue); + } - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000B03, 0x00000001, mRequest); +private: + chip::app::DataModel::Nullable mValue; +}; + +class WriteTestClusterNullableOctetString : public WriteAttribute +{ +public: + WriteTestClusterNullableOctetString(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableOctetString", credsIssuerConfig) + { + AddArgument("attr-name", "nullable-octet-string"); + AddArgument("attr-value", &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteTestClusterNullableOctetString() {} + + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override + { + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004019, mValue); + } + + CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override + { + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004019, mValue); } private: - chip::app::Clusters::ApplianceStatistics::Commands::LogQueueRequest::Type mRequest; + chip::app::DataModel::Nullable 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 | -| * GeneratedCommandList | 0xFFF8 | -| * AcceptedCommandList | 0xFFF9 | -| * AttributeList | 0xFFFB | -| * FeatureMap | 0xFFFC | -| * ClusterRevision | 0xFFFD | -|------------------------------------------------------------------------------| -| Events: | | -\*----------------------------------------------------------------------------*/ - -/* - * Command GetProfileInfoCommand - */ -class ElectricalMeasurementGetProfileInfoCommand : public ClusterCommand +class WriteTestClusterNullableCharString : public WriteAttribute { public: - ElectricalMeasurementGetProfileInfoCommand(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("get-profile-info-command", credsIssuerConfig) + WriteTestClusterNullableCharString(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableCharString", credsIssuerConfig) { - ClusterCommand::AddArguments(); + AddArgument("attr-name", "nullable-char-string"); + AddArgument("attr-value", &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterNullableCharString() {} + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000B04) command (0x00000000) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000000, mRequest); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x0000401E, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000B04) command (0x00000000) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000000, mRequest); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x0000401E, mValue); } private: - chip::app::Clusters::ElectricalMeasurement::Commands::GetProfileInfoCommand::Type mRequest; + chip::app::DataModel::Nullable mValue; }; -/* - * Command GetMeasurementProfileCommand - */ -class ElectricalMeasurementGetMeasurementProfileCommand : public ClusterCommand +class WriteTestClusterNullableEnumAttr : public WriteAttribute { public: - ElectricalMeasurementGetMeasurementProfileCommand(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("get-measurement-profile-command", credsIssuerConfig) + WriteTestClusterNullableEnumAttr(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableEnumAttr", credsIssuerConfig) { - AddArgument("AttributeId", 0, UINT16_MAX, &mRequest.attributeId); - AddArgument("StartTime", 0, UINT32_MAX, &mRequest.startTime); - AddArgument("NumberOfIntervals", 0, UINT8_MAX, &mRequest.numberOfIntervals); - ClusterCommand::AddArguments(); + AddArgument("attr-name", "nullable-enum-attr"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); } + ~WriteTestClusterNullableEnumAttr() {} + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000B04) command (0x00000001) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000001, mRequest); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004024, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000B04) command (0x00000001) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000001, mRequest); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004024, mValue); } private: - chip::app::Clusters::ElectricalMeasurement::Commands::GetMeasurementProfileCommand::Type mRequest; + chip::app::DataModel::Nullable mValue; }; -class WriteElectricalMeasurementAverageRmsVoltageMeasurementPeriod : public WriteAttribute +class WriteTestClusterNullableStruct : public WriteAttribute { public: - WriteElectricalMeasurementAverageRmsVoltageMeasurementPeriod(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("AverageRmsVoltageMeasurementPeriod", credsIssuerConfig) + WriteTestClusterNullableStruct(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableStruct", credsIssuerConfig), mComplex(&mValue) { - AddArgument("attr-name", "average-rms-voltage-measurement-period"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "nullable-struct"); + AddArgument("attr-value", &mComplex); WriteAttribute::AddArguments(); } - ~WriteElectricalMeasurementAverageRmsVoltageMeasurementPeriod() {} + ~WriteTestClusterNullableStruct() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000511, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004025, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000511, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004025, mValue); } private: - uint16_t mValue; + chip::app::DataModel::Nullable mValue; + TypedComplexArgument> mComplex; }; -class WriteElectricalMeasurementAverageRmsUnderVoltageCounter : public WriteAttribute +class WriteTestClusterNullableRangeRestrictedInt8u : public WriteAttribute { public: - WriteElectricalMeasurementAverageRmsUnderVoltageCounter(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("AverageRmsUnderVoltageCounter", credsIssuerConfig) + WriteTestClusterNullableRangeRestrictedInt8u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableRangeRestrictedInt8u", credsIssuerConfig) { - AddArgument("attr-name", "average-rms-under-voltage-counter"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "nullable-range-restricted-int8u"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteElectricalMeasurementAverageRmsUnderVoltageCounter() {} + ~WriteTestClusterNullableRangeRestrictedInt8u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000513, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004026, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000513, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004026, mValue); } private: - uint16_t mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteElectricalMeasurementRmsExtremeOverVoltagePeriod : public WriteAttribute +class WriteTestClusterNullableRangeRestrictedInt8s : public WriteAttribute { public: - WriteElectricalMeasurementRmsExtremeOverVoltagePeriod(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("RmsExtremeOverVoltagePeriod", credsIssuerConfig) + WriteTestClusterNullableRangeRestrictedInt8s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableRangeRestrictedInt8s", credsIssuerConfig) { - AddArgument("attr-name", "rms-extreme-over-voltage-period"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "nullable-range-restricted-int8s"); + AddArgument("attr-value", INT8_MIN, INT8_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteElectricalMeasurementRmsExtremeOverVoltagePeriod() {} + ~WriteTestClusterNullableRangeRestrictedInt8s() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000514, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004027, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000514, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004027, mValue); } private: - uint16_t mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteElectricalMeasurementRmsExtremeUnderVoltagePeriod : public WriteAttribute +class WriteTestClusterNullableRangeRestrictedInt16u : public WriteAttribute { public: - WriteElectricalMeasurementRmsExtremeUnderVoltagePeriod(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("RmsExtremeUnderVoltagePeriod", credsIssuerConfig) + WriteTestClusterNullableRangeRestrictedInt16u(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableRangeRestrictedInt16u", credsIssuerConfig) { - AddArgument("attr-name", "rms-extreme-under-voltage-period"); + AddArgument("attr-name", "nullable-range-restricted-int16u"); AddArgument("attr-value", 0, UINT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteElectricalMeasurementRmsExtremeUnderVoltagePeriod() {} + ~WriteTestClusterNullableRangeRestrictedInt16u() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000515, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004028, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000515, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004028, mValue); } private: - uint16_t mValue; + chip::app::DataModel::Nullable mValue; }; -class WriteElectricalMeasurementRmsVoltageSagPeriod : public WriteAttribute +class WriteTestClusterNullableRangeRestrictedInt16s : public WriteAttribute { public: - WriteElectricalMeasurementRmsVoltageSagPeriod(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("RmsVoltageSagPeriod", credsIssuerConfig) + WriteTestClusterNullableRangeRestrictedInt16s(CredentialIssuerCommands * credsIssuerConfig) : + WriteAttribute("NullableRangeRestrictedInt16s", credsIssuerConfig) { - AddArgument("attr-name", "rms-voltage-sag-period"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); + AddArgument("attr-name", "nullable-range-restricted-int16s"); + AddArgument("attr-value", INT16_MIN, INT16_MAX, &mValue); WriteAttribute::AddArguments(); } - ~WriteElectricalMeasurementRmsVoltageSagPeriod() {} - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000516, mValue); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000516, mValue); - } - -private: - uint16_t mValue; -}; - -class WriteElectricalMeasurementRmsVoltageSwellPeriod : public WriteAttribute -{ -public: - WriteElectricalMeasurementRmsVoltageSwellPeriod(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("RmsVoltageSwellPeriod", credsIssuerConfig) - { - AddArgument("attr-name", "rms-voltage-swell-period"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteElectricalMeasurementRmsVoltageSwellPeriod() {} - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000517, mValue); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000517, mValue); - } - -private: - uint16_t mValue; -}; - -class WriteElectricalMeasurementOverloadAlarmsMask : public WriteAttribute -{ -public: - WriteElectricalMeasurementOverloadAlarmsMask(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("OverloadAlarmsMask", credsIssuerConfig) - { - AddArgument("attr-name", "overload-alarms-mask"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteElectricalMeasurementOverloadAlarmsMask() {} - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000700, mValue); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000700, mValue); - } - -private: - uint8_t mValue; -}; - -class WriteElectricalMeasurementAcOverloadAlarmsMask : public WriteAttribute -{ -public: - WriteElectricalMeasurementAcOverloadAlarmsMask(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("AcOverloadAlarmsMask", credsIssuerConfig) - { - AddArgument("attr-name", "ac-overload-alarms-mask"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteElectricalMeasurementAcOverloadAlarmsMask() {} + ~WriteTestClusterNullableRangeRestrictedInt16s() {} CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000B04, 0x00000800, mValue); + return WriteAttribute::SendCommand(device, endpointIds.at(0), 0xFFF1FC05, 0x00004029, mValue); } CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000B04, 0x00000800, mValue); + return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0xFFF1FC05, 0x00004029, mValue); } private: - uint16_t mValue; + chip::app::DataModel::Nullable mValue; }; /*----------------------------------------------------------------------------*\ @@ -24871,303 +24871,92 @@ void registerClusterAccountLogin(Commands & commands, CredentialIssuerCommands * commands.Register(clusterName, clusterCommands); } -void registerClusterTestCluster(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) +void registerClusterMessaging(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { - using namespace chip::app::Clusters::TestCluster; + using namespace chip::app::Clusters::Messaging; - const char * clusterName = "TestCluster"; + const char * clusterName = "Messaging"; commands_list clusterCommands = { // // Commands // - make_unique(Id, credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // // // Attributes // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, "boolean", Attributes::Boolean::Id, credsIssuerConfig), // - make_unique(Id, "bitmap8", Attributes::Bitmap8::Id, credsIssuerConfig), // - make_unique(Id, "bitmap16", Attributes::Bitmap16::Id, credsIssuerConfig), // - make_unique(Id, "bitmap32", Attributes::Bitmap32::Id, credsIssuerConfig), // - make_unique(Id, "bitmap64", Attributes::Bitmap64::Id, credsIssuerConfig), // - make_unique(Id, "int8u", Attributes::Int8u::Id, credsIssuerConfig), // - make_unique(Id, "int16u", Attributes::Int16u::Id, credsIssuerConfig), // - make_unique(Id, "int24u", Attributes::Int24u::Id, credsIssuerConfig), // - make_unique(Id, "int32u", Attributes::Int32u::Id, credsIssuerConfig), // - make_unique(Id, "int40u", Attributes::Int40u::Id, credsIssuerConfig), // - make_unique(Id, "int48u", Attributes::Int48u::Id, credsIssuerConfig), // - make_unique(Id, "int56u", Attributes::Int56u::Id, credsIssuerConfig), // - make_unique(Id, "int64u", Attributes::Int64u::Id, credsIssuerConfig), // - make_unique(Id, "int8s", Attributes::Int8s::Id, credsIssuerConfig), // - make_unique(Id, "int16s", Attributes::Int16s::Id, credsIssuerConfig), // - make_unique(Id, "int24s", Attributes::Int24s::Id, credsIssuerConfig), // - make_unique(Id, "int32s", Attributes::Int32s::Id, credsIssuerConfig), // - make_unique(Id, "int40s", Attributes::Int40s::Id, credsIssuerConfig), // - make_unique(Id, "int48s", Attributes::Int48s::Id, credsIssuerConfig), // - make_unique(Id, "int56s", Attributes::Int56s::Id, credsIssuerConfig), // - make_unique(Id, "int64s", Attributes::Int64s::Id, credsIssuerConfig), // - make_unique(Id, "enum8", Attributes::Enum8::Id, credsIssuerConfig), // - make_unique(Id, "enum16", Attributes::Enum16::Id, credsIssuerConfig), // - make_unique(Id, "float-single", Attributes::FloatSingle::Id, credsIssuerConfig), // - make_unique(Id, "float-double", Attributes::FloatDouble::Id, credsIssuerConfig), // - make_unique(Id, "octet-string", Attributes::OctetString::Id, credsIssuerConfig), // - make_unique(Id, "list-int8u", Attributes::ListInt8u::Id, credsIssuerConfig), // - make_unique(Id, "list-octet-string", Attributes::ListOctetString::Id, credsIssuerConfig), // - make_unique(Id, "list-struct-octet-string", Attributes::ListStructOctetString::Id, credsIssuerConfig), // - make_unique(Id, "long-octet-string", Attributes::LongOctetString::Id, credsIssuerConfig), // - make_unique(Id, "char-string", Attributes::CharString::Id, credsIssuerConfig), // - make_unique(Id, "long-char-string", Attributes::LongCharString::Id, credsIssuerConfig), // - make_unique(Id, "epoch-us", Attributes::EpochUs::Id, credsIssuerConfig), // - make_unique(Id, "epoch-s", Attributes::EpochS::Id, credsIssuerConfig), // - make_unique(Id, "vendor-id", Attributes::VendorId::Id, credsIssuerConfig), // - make_unique(Id, "list-nullables-and-optionals-struct", Attributes::ListNullablesAndOptionalsStruct::Id, + make_unique(Id, credsIssuerConfig), // + make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // + make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // + make_unique(Id, "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, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // + make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // + make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // + make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // + make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // + // + // Events + // + make_unique(Id, credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + }; + + commands.Register(clusterName, clusterCommands); +} +void registerClusterApplianceIdentification(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) +{ + using namespace chip::app::Clusters::ApplianceIdentification; + + const char * clusterName = "ApplianceIdentification"; + + commands_list clusterCommands = { + // + // Commands + // + make_unique(Id, credsIssuerConfig), // + // + // Attributes + // + make_unique(Id, credsIssuerConfig), // + make_unique(Id, "basic-identification", Attributes::BasicIdentification::Id, credsIssuerConfig), // + make_unique(Id, "company-name", Attributes::CompanyName::Id, credsIssuerConfig), // + make_unique(Id, "company-id", Attributes::CompanyId::Id, credsIssuerConfig), // + make_unique(Id, "brand-name", Attributes::BrandName::Id, credsIssuerConfig), // + make_unique(Id, "brand-id", Attributes::BrandId::Id, credsIssuerConfig), // + make_unique(Id, "model", Attributes::Model::Id, credsIssuerConfig), // + make_unique(Id, "part-number", Attributes::PartNumber::Id, credsIssuerConfig), // + make_unique(Id, "product-revision", Attributes::ProductRevision::Id, credsIssuerConfig), // + make_unique(Id, "software-revision", Attributes::SoftwareRevision::Id, credsIssuerConfig), // + make_unique(Id, "product-type-name", Attributes::ProductTypeName::Id, credsIssuerConfig), // + make_unique(Id, "product-type-id", Attributes::ProductTypeId::Id, credsIssuerConfig), // + make_unique(Id, "ceced-specification-version", Attributes::CecedSpecificationVersion::Id, credsIssuerConfig), // - make_unique(Id, "enum-attr", Attributes::EnumAttr::Id, credsIssuerConfig), // - make_unique(Id, "struct-attr", Attributes::StructAttr::Id, credsIssuerConfig), // - make_unique(Id, "range-restricted-int8u", Attributes::RangeRestrictedInt8u::Id, credsIssuerConfig), // - make_unique(Id, "range-restricted-int8s", Attributes::RangeRestrictedInt8s::Id, credsIssuerConfig), // - make_unique(Id, "range-restricted-int16u", Attributes::RangeRestrictedInt16u::Id, credsIssuerConfig), // - make_unique(Id, "range-restricted-int16s", Attributes::RangeRestrictedInt16s::Id, credsIssuerConfig), // - make_unique(Id, "list-long-octet-string", Attributes::ListLongOctetString::Id, credsIssuerConfig), // - make_unique(Id, "list-fabric-scoped", Attributes::ListFabricScoped::Id, credsIssuerConfig), // - make_unique(Id, "timed-write-boolean", Attributes::TimedWriteBoolean::Id, credsIssuerConfig), // - make_unique(Id, "general-error-boolean", Attributes::GeneralErrorBoolean::Id, credsIssuerConfig), // - make_unique(Id, "cluster-error-boolean", Attributes::ClusterErrorBoolean::Id, credsIssuerConfig), // - make_unique(Id, "unsupported", Attributes::Unsupported::Id, credsIssuerConfig), // - make_unique(Id, "nullable-boolean", Attributes::NullableBoolean::Id, credsIssuerConfig), // - make_unique(Id, "nullable-bitmap8", Attributes::NullableBitmap8::Id, credsIssuerConfig), // - make_unique(Id, "nullable-bitmap16", Attributes::NullableBitmap16::Id, credsIssuerConfig), // - make_unique(Id, "nullable-bitmap32", Attributes::NullableBitmap32::Id, credsIssuerConfig), // - make_unique(Id, "nullable-bitmap64", Attributes::NullableBitmap64::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int8u", Attributes::NullableInt8u::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int16u", Attributes::NullableInt16u::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int24u", Attributes::NullableInt24u::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int32u", Attributes::NullableInt32u::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int40u", Attributes::NullableInt40u::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int48u", Attributes::NullableInt48u::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int56u", Attributes::NullableInt56u::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int64u", Attributes::NullableInt64u::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int8s", Attributes::NullableInt8s::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int16s", Attributes::NullableInt16s::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int24s", Attributes::NullableInt24s::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int32s", Attributes::NullableInt32s::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int40s", Attributes::NullableInt40s::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int48s", Attributes::NullableInt48s::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int56s", Attributes::NullableInt56s::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int64s", Attributes::NullableInt64s::Id, credsIssuerConfig), // - make_unique(Id, "nullable-enum8", Attributes::NullableEnum8::Id, credsIssuerConfig), // - make_unique(Id, "nullable-enum16", Attributes::NullableEnum16::Id, credsIssuerConfig), // - make_unique(Id, "nullable-float-single", Attributes::NullableFloatSingle::Id, credsIssuerConfig), // - make_unique(Id, "nullable-float-double", Attributes::NullableFloatDouble::Id, credsIssuerConfig), // - make_unique(Id, "nullable-octet-string", Attributes::NullableOctetString::Id, credsIssuerConfig), // - make_unique(Id, "nullable-char-string", Attributes::NullableCharString::Id, credsIssuerConfig), // - make_unique(Id, "nullable-enum-attr", Attributes::NullableEnumAttr::Id, credsIssuerConfig), // - make_unique(Id, "nullable-struct", Attributes::NullableStruct::Id, credsIssuerConfig), // - make_unique(Id, "nullable-range-restricted-int8u", Attributes::NullableRangeRestrictedInt8u::Id, - credsIssuerConfig), // - make_unique(Id, "nullable-range-restricted-int8s", Attributes::NullableRangeRestrictedInt8s::Id, - credsIssuerConfig), // - make_unique(Id, "nullable-range-restricted-int16u", Attributes::NullableRangeRestrictedInt16u::Id, - credsIssuerConfig), // - make_unique(Id, "nullable-range-restricted-int16s", Attributes::NullableRangeRestrictedInt16s::Id, - credsIssuerConfig), // - make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // - make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // - make_unique(Id, "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(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), // - 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, "boolean", Attributes::Boolean::Id, credsIssuerConfig), // - make_unique(Id, "bitmap8", Attributes::Bitmap8::Id, credsIssuerConfig), // - make_unique(Id, "bitmap16", Attributes::Bitmap16::Id, credsIssuerConfig), // - make_unique(Id, "bitmap32", Attributes::Bitmap32::Id, credsIssuerConfig), // - make_unique(Id, "bitmap64", Attributes::Bitmap64::Id, credsIssuerConfig), // - make_unique(Id, "int8u", Attributes::Int8u::Id, credsIssuerConfig), // - make_unique(Id, "int16u", Attributes::Int16u::Id, credsIssuerConfig), // - make_unique(Id, "int24u", Attributes::Int24u::Id, credsIssuerConfig), // - make_unique(Id, "int32u", Attributes::Int32u::Id, credsIssuerConfig), // - make_unique(Id, "int40u", Attributes::Int40u::Id, credsIssuerConfig), // - make_unique(Id, "int48u", Attributes::Int48u::Id, credsIssuerConfig), // - make_unique(Id, "int56u", Attributes::Int56u::Id, credsIssuerConfig), // - make_unique(Id, "int64u", Attributes::Int64u::Id, credsIssuerConfig), // - make_unique(Id, "int8s", Attributes::Int8s::Id, credsIssuerConfig), // - make_unique(Id, "int16s", Attributes::Int16s::Id, credsIssuerConfig), // - make_unique(Id, "int24s", Attributes::Int24s::Id, credsIssuerConfig), // - make_unique(Id, "int32s", Attributes::Int32s::Id, credsIssuerConfig), // - make_unique(Id, "int40s", Attributes::Int40s::Id, credsIssuerConfig), // - make_unique(Id, "int48s", Attributes::Int48s::Id, credsIssuerConfig), // - make_unique(Id, "int56s", Attributes::Int56s::Id, credsIssuerConfig), // - make_unique(Id, "int64s", Attributes::Int64s::Id, credsIssuerConfig), // - make_unique(Id, "enum8", Attributes::Enum8::Id, credsIssuerConfig), // - make_unique(Id, "enum16", Attributes::Enum16::Id, credsIssuerConfig), // - make_unique(Id, "float-single", Attributes::FloatSingle::Id, credsIssuerConfig), // - make_unique(Id, "float-double", Attributes::FloatDouble::Id, credsIssuerConfig), // - make_unique(Id, "octet-string", Attributes::OctetString::Id, credsIssuerConfig), // - make_unique(Id, "list-int8u", Attributes::ListInt8u::Id, credsIssuerConfig), // - make_unique(Id, "list-octet-string", Attributes::ListOctetString::Id, credsIssuerConfig), // - make_unique(Id, "list-struct-octet-string", Attributes::ListStructOctetString::Id, - credsIssuerConfig), // - make_unique(Id, "long-octet-string", Attributes::LongOctetString::Id, credsIssuerConfig), // - make_unique(Id, "char-string", Attributes::CharString::Id, credsIssuerConfig), // - make_unique(Id, "long-char-string", Attributes::LongCharString::Id, credsIssuerConfig), // - make_unique(Id, "epoch-us", Attributes::EpochUs::Id, credsIssuerConfig), // - make_unique(Id, "epoch-s", Attributes::EpochS::Id, credsIssuerConfig), // - make_unique(Id, "vendor-id", Attributes::VendorId::Id, credsIssuerConfig), // - make_unique(Id, "list-nullables-and-optionals-struct", Attributes::ListNullablesAndOptionalsStruct::Id, - credsIssuerConfig), // - make_unique(Id, "enum-attr", Attributes::EnumAttr::Id, credsIssuerConfig), // - make_unique(Id, "struct-attr", Attributes::StructAttr::Id, credsIssuerConfig), // - make_unique(Id, "range-restricted-int8u", Attributes::RangeRestrictedInt8u::Id, credsIssuerConfig), // - make_unique(Id, "range-restricted-int8s", Attributes::RangeRestrictedInt8s::Id, credsIssuerConfig), // - make_unique(Id, "range-restricted-int16u", Attributes::RangeRestrictedInt16u::Id, credsIssuerConfig), // - make_unique(Id, "range-restricted-int16s", Attributes::RangeRestrictedInt16s::Id, credsIssuerConfig), // - make_unique(Id, "list-long-octet-string", Attributes::ListLongOctetString::Id, credsIssuerConfig), // - make_unique(Id, "list-fabric-scoped", Attributes::ListFabricScoped::Id, credsIssuerConfig), // - make_unique(Id, "timed-write-boolean", Attributes::TimedWriteBoolean::Id, credsIssuerConfig), // - make_unique(Id, "general-error-boolean", Attributes::GeneralErrorBoolean::Id, credsIssuerConfig), // - make_unique(Id, "cluster-error-boolean", Attributes::ClusterErrorBoolean::Id, credsIssuerConfig), // - make_unique(Id, "unsupported", Attributes::Unsupported::Id, credsIssuerConfig), // - make_unique(Id, "nullable-boolean", Attributes::NullableBoolean::Id, credsIssuerConfig), // - make_unique(Id, "nullable-bitmap8", Attributes::NullableBitmap8::Id, credsIssuerConfig), // - make_unique(Id, "nullable-bitmap16", Attributes::NullableBitmap16::Id, credsIssuerConfig), // - make_unique(Id, "nullable-bitmap32", Attributes::NullableBitmap32::Id, credsIssuerConfig), // - make_unique(Id, "nullable-bitmap64", Attributes::NullableBitmap64::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int8u", Attributes::NullableInt8u::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int16u", Attributes::NullableInt16u::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int24u", Attributes::NullableInt24u::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int32u", Attributes::NullableInt32u::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int40u", Attributes::NullableInt40u::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int48u", Attributes::NullableInt48u::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int56u", Attributes::NullableInt56u::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int64u", Attributes::NullableInt64u::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int8s", Attributes::NullableInt8s::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int16s", Attributes::NullableInt16s::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int24s", Attributes::NullableInt24s::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int32s", Attributes::NullableInt32s::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int40s", Attributes::NullableInt40s::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int48s", Attributes::NullableInt48s::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int56s", Attributes::NullableInt56s::Id, credsIssuerConfig), // - make_unique(Id, "nullable-int64s", Attributes::NullableInt64s::Id, credsIssuerConfig), // - make_unique(Id, "nullable-enum8", Attributes::NullableEnum8::Id, credsIssuerConfig), // - make_unique(Id, "nullable-enum16", Attributes::NullableEnum16::Id, credsIssuerConfig), // - make_unique(Id, "nullable-float-single", Attributes::NullableFloatSingle::Id, credsIssuerConfig), // - make_unique(Id, "nullable-float-double", Attributes::NullableFloatDouble::Id, credsIssuerConfig), // - make_unique(Id, "nullable-octet-string", Attributes::NullableOctetString::Id, credsIssuerConfig), // - make_unique(Id, "nullable-char-string", Attributes::NullableCharString::Id, credsIssuerConfig), // - make_unique(Id, "nullable-enum-attr", Attributes::NullableEnumAttr::Id, credsIssuerConfig), // - make_unique(Id, "nullable-struct", Attributes::NullableStruct::Id, credsIssuerConfig), // - make_unique(Id, "nullable-range-restricted-int8u", Attributes::NullableRangeRestrictedInt8u::Id, - credsIssuerConfig), // - make_unique(Id, "nullable-range-restricted-int8s", Attributes::NullableRangeRestrictedInt8s::Id, - credsIssuerConfig), // - make_unique(Id, "nullable-range-restricted-int16u", Attributes::NullableRangeRestrictedInt16u::Id, - credsIssuerConfig), // - make_unique(Id, "nullable-range-restricted-int16s", Attributes::NullableRangeRestrictedInt16s::Id, + make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // + make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // + make_unique(Id, "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, "basic-identification", Attributes::BasicIdentification::Id, credsIssuerConfig), // + make_unique(Id, "company-name", Attributes::CompanyName::Id, credsIssuerConfig), // + make_unique(Id, "company-id", Attributes::CompanyId::Id, credsIssuerConfig), // + make_unique(Id, "brand-name", Attributes::BrandName::Id, credsIssuerConfig), // + make_unique(Id, "brand-id", Attributes::BrandId::Id, credsIssuerConfig), // + make_unique(Id, "model", Attributes::Model::Id, credsIssuerConfig), // + make_unique(Id, "part-number", Attributes::PartNumber::Id, credsIssuerConfig), // + make_unique(Id, "product-revision", Attributes::ProductRevision::Id, credsIssuerConfig), // + make_unique(Id, "software-revision", Attributes::SoftwareRevision::Id, credsIssuerConfig), // + make_unique(Id, "product-type-name", Attributes::ProductTypeName::Id, credsIssuerConfig), // + make_unique(Id, "product-type-id", Attributes::ProductTypeId::Id, credsIssuerConfig), // + make_unique(Id, "ceced-specification-version", Attributes::CecedSpecificationVersion::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // @@ -25177,41 +24966,59 @@ void registerClusterTestCluster(Commands & commands, CredentialIssuerCommands * // // Events // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, "test-event", Events::TestEvent::Id, credsIssuerConfig), // - make_unique(Id, "test-fabric-scoped-event", Events::TestFabricScopedEvent::Id, credsIssuerConfig), // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, "test-event", Events::TestEvent::Id, credsIssuerConfig), // - make_unique(Id, "test-fabric-scoped-event", Events::TestFabricScopedEvent::Id, credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // }; commands.Register(clusterName, clusterCommands); } -void registerClusterMessaging(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) +void registerClusterMeterIdentification(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { - using namespace chip::app::Clusters::Messaging; + using namespace chip::app::Clusters::MeterIdentification; - const char * clusterName = "Messaging"; + const char * clusterName = "MeterIdentification"; commands_list clusterCommands = { // // Commands // - make_unique(Id, credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // // // Attributes // make_unique(Id, credsIssuerConfig), // + make_unique(Id, "company-name", Attributes::CompanyName::Id, credsIssuerConfig), // + make_unique(Id, "meter-type-id", Attributes::MeterTypeId::Id, credsIssuerConfig), // + make_unique(Id, "data-quality-id", Attributes::DataQualityId::Id, credsIssuerConfig), // + make_unique(Id, "customer-name", Attributes::CustomerName::Id, credsIssuerConfig), // + make_unique(Id, "model", Attributes::Model::Id, credsIssuerConfig), // + make_unique(Id, "part-number", Attributes::PartNumber::Id, credsIssuerConfig), // + make_unique(Id, "product-revision", Attributes::ProductRevision::Id, credsIssuerConfig), // + make_unique(Id, "software-revision", Attributes::SoftwareRevision::Id, credsIssuerConfig), // + make_unique(Id, "utility-name", Attributes::UtilityName::Id, credsIssuerConfig), // + make_unique(Id, "pod", Attributes::Pod::Id, credsIssuerConfig), // + make_unique(Id, "available-power", Attributes::AvailablePower::Id, credsIssuerConfig), // + make_unique(Id, "power-threshold", Attributes::PowerThreshold::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "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, "company-name", Attributes::CompanyName::Id, credsIssuerConfig), // + make_unique(Id, "meter-type-id", Attributes::MeterTypeId::Id, credsIssuerConfig), // + make_unique(Id, "data-quality-id", Attributes::DataQualityId::Id, credsIssuerConfig), // + make_unique(Id, "customer-name", Attributes::CustomerName::Id, credsIssuerConfig), // + make_unique(Id, "model", Attributes::Model::Id, credsIssuerConfig), // + make_unique(Id, "part-number", Attributes::PartNumber::Id, credsIssuerConfig), // + make_unique(Id, "product-revision", Attributes::ProductRevision::Id, credsIssuerConfig), // + make_unique(Id, "software-revision", Attributes::SoftwareRevision::Id, credsIssuerConfig), // + make_unique(Id, "utility-name", Attributes::UtilityName::Id, credsIssuerConfig), // + make_unique(Id, "pod", Attributes::Pod::Id, credsIssuerConfig), // + make_unique(Id, "available-power", Attributes::AvailablePower::Id, credsIssuerConfig), // + make_unique(Id, "power-threshold", Attributes::PowerThreshold::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // @@ -25226,141 +25033,18 @@ void registerClusterMessaging(Commands & commands, CredentialIssuerCommands * cr commands.Register(clusterName, clusterCommands); } -void registerClusterApplianceIdentification(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) +void registerClusterApplianceEventsAndAlert(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { - using namespace chip::app::Clusters::ApplianceIdentification; + using namespace chip::app::Clusters::ApplianceEventsAndAlert; - const char * clusterName = "ApplianceIdentification"; + const char * clusterName = "ApplianceEventsAndAlert"; commands_list clusterCommands = { // // Commands // - make_unique(Id, credsIssuerConfig), // - // - // Attributes - // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, "basic-identification", Attributes::BasicIdentification::Id, credsIssuerConfig), // - make_unique(Id, "company-name", Attributes::CompanyName::Id, credsIssuerConfig), // - make_unique(Id, "company-id", Attributes::CompanyId::Id, credsIssuerConfig), // - make_unique(Id, "brand-name", Attributes::BrandName::Id, credsIssuerConfig), // - make_unique(Id, "brand-id", Attributes::BrandId::Id, credsIssuerConfig), // - make_unique(Id, "model", Attributes::Model::Id, credsIssuerConfig), // - make_unique(Id, "part-number", Attributes::PartNumber::Id, credsIssuerConfig), // - make_unique(Id, "product-revision", Attributes::ProductRevision::Id, credsIssuerConfig), // - make_unique(Id, "software-revision", Attributes::SoftwareRevision::Id, credsIssuerConfig), // - make_unique(Id, "product-type-name", Attributes::ProductTypeName::Id, credsIssuerConfig), // - make_unique(Id, "product-type-id", Attributes::ProductTypeId::Id, credsIssuerConfig), // - make_unique(Id, "ceced-specification-version", Attributes::CecedSpecificationVersion::Id, - credsIssuerConfig), // - make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // - make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // - make_unique(Id, "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, "basic-identification", Attributes::BasicIdentification::Id, credsIssuerConfig), // - make_unique(Id, "company-name", Attributes::CompanyName::Id, credsIssuerConfig), // - make_unique(Id, "company-id", Attributes::CompanyId::Id, credsIssuerConfig), // - make_unique(Id, "brand-name", Attributes::BrandName::Id, credsIssuerConfig), // - make_unique(Id, "brand-id", Attributes::BrandId::Id, credsIssuerConfig), // - make_unique(Id, "model", Attributes::Model::Id, credsIssuerConfig), // - make_unique(Id, "part-number", Attributes::PartNumber::Id, credsIssuerConfig), // - make_unique(Id, "product-revision", Attributes::ProductRevision::Id, credsIssuerConfig), // - make_unique(Id, "software-revision", Attributes::SoftwareRevision::Id, credsIssuerConfig), // - make_unique(Id, "product-type-name", Attributes::ProductTypeName::Id, credsIssuerConfig), // - make_unique(Id, "product-type-id", Attributes::ProductTypeId::Id, credsIssuerConfig), // - make_unique(Id, "ceced-specification-version", Attributes::CecedSpecificationVersion::Id, - credsIssuerConfig), // - make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // - make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // - make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // - make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // - make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // - // - // Events - // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, credsIssuerConfig), // - }; - - commands.Register(clusterName, clusterCommands); -} -void registerClusterMeterIdentification(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) -{ - using namespace chip::app::Clusters::MeterIdentification; - - const char * clusterName = "MeterIdentification"; - - commands_list clusterCommands = { - // - // Commands - // - make_unique(Id, credsIssuerConfig), // - // - // Attributes - // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, "company-name", Attributes::CompanyName::Id, credsIssuerConfig), // - make_unique(Id, "meter-type-id", Attributes::MeterTypeId::Id, credsIssuerConfig), // - make_unique(Id, "data-quality-id", Attributes::DataQualityId::Id, credsIssuerConfig), // - make_unique(Id, "customer-name", Attributes::CustomerName::Id, credsIssuerConfig), // - make_unique(Id, "model", Attributes::Model::Id, credsIssuerConfig), // - make_unique(Id, "part-number", Attributes::PartNumber::Id, credsIssuerConfig), // - make_unique(Id, "product-revision", Attributes::ProductRevision::Id, credsIssuerConfig), // - make_unique(Id, "software-revision", Attributes::SoftwareRevision::Id, credsIssuerConfig), // - make_unique(Id, "utility-name", Attributes::UtilityName::Id, credsIssuerConfig), // - make_unique(Id, "pod", Attributes::Pod::Id, credsIssuerConfig), // - make_unique(Id, "available-power", Attributes::AvailablePower::Id, credsIssuerConfig), // - make_unique(Id, "power-threshold", Attributes::PowerThreshold::Id, credsIssuerConfig), // - make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // - make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // - make_unique(Id, "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, "company-name", Attributes::CompanyName::Id, credsIssuerConfig), // - make_unique(Id, "meter-type-id", Attributes::MeterTypeId::Id, credsIssuerConfig), // - make_unique(Id, "data-quality-id", Attributes::DataQualityId::Id, credsIssuerConfig), // - make_unique(Id, "customer-name", Attributes::CustomerName::Id, credsIssuerConfig), // - make_unique(Id, "model", Attributes::Model::Id, credsIssuerConfig), // - make_unique(Id, "part-number", Attributes::PartNumber::Id, credsIssuerConfig), // - make_unique(Id, "product-revision", Attributes::ProductRevision::Id, credsIssuerConfig), // - make_unique(Id, "software-revision", Attributes::SoftwareRevision::Id, credsIssuerConfig), // - make_unique(Id, "utility-name", Attributes::UtilityName::Id, credsIssuerConfig), // - make_unique(Id, "pod", Attributes::Pod::Id, credsIssuerConfig), // - make_unique(Id, "available-power", Attributes::AvailablePower::Id, credsIssuerConfig), // - make_unique(Id, "power-threshold", Attributes::PowerThreshold::Id, credsIssuerConfig), // - make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // - make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // - make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // - make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // - make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // - // - // Events - // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, credsIssuerConfig), // - }; - - commands.Register(clusterName, clusterCommands); -} -void registerClusterApplianceEventsAndAlert(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) -{ - using namespace chip::app::Clusters::ApplianceEventsAndAlert; - - const char * clusterName = "ApplianceEventsAndAlert"; - - commands_list clusterCommands = { - // - // Commands - // - make_unique(Id, credsIssuerConfig), // - make_unique(credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + make_unique(credsIssuerConfig), // // // Attributes // @@ -25670,130 +25354,442 @@ void registerClusterElectricalMeasurement(Commands & commands, CredentialIssuerC 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, + 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, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // + make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // + make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // + make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // + make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // + // + // Events + // + make_unique(Id, credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + }; + + commands.Register(clusterName, clusterCommands); +} +void registerClusterTestCluster(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) +{ + using namespace chip::app::Clusters::TestCluster; + + const char * clusterName = "TestCluster"; + + commands_list clusterCommands = { + // + // Commands + // + make_unique(Id, credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + // + // Attributes + // + make_unique(Id, credsIssuerConfig), // + make_unique(Id, "boolean", Attributes::Boolean::Id, credsIssuerConfig), // + make_unique(Id, "bitmap8", Attributes::Bitmap8::Id, credsIssuerConfig), // + make_unique(Id, "bitmap16", Attributes::Bitmap16::Id, credsIssuerConfig), // + make_unique(Id, "bitmap32", Attributes::Bitmap32::Id, credsIssuerConfig), // + make_unique(Id, "bitmap64", Attributes::Bitmap64::Id, credsIssuerConfig), // + make_unique(Id, "int8u", Attributes::Int8u::Id, credsIssuerConfig), // + make_unique(Id, "int16u", Attributes::Int16u::Id, credsIssuerConfig), // + make_unique(Id, "int24u", Attributes::Int24u::Id, credsIssuerConfig), // + make_unique(Id, "int32u", Attributes::Int32u::Id, credsIssuerConfig), // + make_unique(Id, "int40u", Attributes::Int40u::Id, credsIssuerConfig), // + make_unique(Id, "int48u", Attributes::Int48u::Id, credsIssuerConfig), // + make_unique(Id, "int56u", Attributes::Int56u::Id, credsIssuerConfig), // + make_unique(Id, "int64u", Attributes::Int64u::Id, credsIssuerConfig), // + make_unique(Id, "int8s", Attributes::Int8s::Id, credsIssuerConfig), // + make_unique(Id, "int16s", Attributes::Int16s::Id, credsIssuerConfig), // + make_unique(Id, "int24s", Attributes::Int24s::Id, credsIssuerConfig), // + make_unique(Id, "int32s", Attributes::Int32s::Id, credsIssuerConfig), // + make_unique(Id, "int40s", Attributes::Int40s::Id, credsIssuerConfig), // + make_unique(Id, "int48s", Attributes::Int48s::Id, credsIssuerConfig), // + make_unique(Id, "int56s", Attributes::Int56s::Id, credsIssuerConfig), // + make_unique(Id, "int64s", Attributes::Int64s::Id, credsIssuerConfig), // + make_unique(Id, "enum8", Attributes::Enum8::Id, credsIssuerConfig), // + make_unique(Id, "enum16", Attributes::Enum16::Id, credsIssuerConfig), // + make_unique(Id, "float-single", Attributes::FloatSingle::Id, credsIssuerConfig), // + make_unique(Id, "float-double", Attributes::FloatDouble::Id, credsIssuerConfig), // + make_unique(Id, "octet-string", Attributes::OctetString::Id, credsIssuerConfig), // + make_unique(Id, "list-int8u", Attributes::ListInt8u::Id, credsIssuerConfig), // + make_unique(Id, "list-octet-string", Attributes::ListOctetString::Id, credsIssuerConfig), // + make_unique(Id, "list-struct-octet-string", Attributes::ListStructOctetString::Id, credsIssuerConfig), // + make_unique(Id, "long-octet-string", Attributes::LongOctetString::Id, credsIssuerConfig), // + make_unique(Id, "char-string", Attributes::CharString::Id, credsIssuerConfig), // + make_unique(Id, "long-char-string", Attributes::LongCharString::Id, credsIssuerConfig), // + make_unique(Id, "epoch-us", Attributes::EpochUs::Id, credsIssuerConfig), // + make_unique(Id, "epoch-s", Attributes::EpochS::Id, credsIssuerConfig), // + make_unique(Id, "vendor-id", Attributes::VendorId::Id, credsIssuerConfig), // + make_unique(Id, "list-nullables-and-optionals-struct", Attributes::ListNullablesAndOptionalsStruct::Id, + credsIssuerConfig), // + make_unique(Id, "enum-attr", Attributes::EnumAttr::Id, credsIssuerConfig), // + make_unique(Id, "struct-attr", Attributes::StructAttr::Id, credsIssuerConfig), // + make_unique(Id, "range-restricted-int8u", Attributes::RangeRestrictedInt8u::Id, credsIssuerConfig), // + make_unique(Id, "range-restricted-int8s", Attributes::RangeRestrictedInt8s::Id, credsIssuerConfig), // + make_unique(Id, "range-restricted-int16u", Attributes::RangeRestrictedInt16u::Id, credsIssuerConfig), // + make_unique(Id, "range-restricted-int16s", Attributes::RangeRestrictedInt16s::Id, credsIssuerConfig), // + make_unique(Id, "list-long-octet-string", Attributes::ListLongOctetString::Id, credsIssuerConfig), // + make_unique(Id, "list-fabric-scoped", Attributes::ListFabricScoped::Id, credsIssuerConfig), // + make_unique(Id, "timed-write-boolean", Attributes::TimedWriteBoolean::Id, credsIssuerConfig), // + make_unique(Id, "general-error-boolean", Attributes::GeneralErrorBoolean::Id, credsIssuerConfig), // + make_unique(Id, "cluster-error-boolean", Attributes::ClusterErrorBoolean::Id, credsIssuerConfig), // + make_unique(Id, "unsupported", Attributes::Unsupported::Id, credsIssuerConfig), // + make_unique(Id, "nullable-boolean", Attributes::NullableBoolean::Id, credsIssuerConfig), // + make_unique(Id, "nullable-bitmap8", Attributes::NullableBitmap8::Id, credsIssuerConfig), // + make_unique(Id, "nullable-bitmap16", Attributes::NullableBitmap16::Id, credsIssuerConfig), // + make_unique(Id, "nullable-bitmap32", Attributes::NullableBitmap32::Id, credsIssuerConfig), // + make_unique(Id, "nullable-bitmap64", Attributes::NullableBitmap64::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int8u", Attributes::NullableInt8u::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int16u", Attributes::NullableInt16u::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int24u", Attributes::NullableInt24u::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int32u", Attributes::NullableInt32u::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int40u", Attributes::NullableInt40u::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int48u", Attributes::NullableInt48u::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int56u", Attributes::NullableInt56u::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int64u", Attributes::NullableInt64u::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int8s", Attributes::NullableInt8s::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int16s", Attributes::NullableInt16s::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int24s", Attributes::NullableInt24s::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int32s", Attributes::NullableInt32s::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int40s", Attributes::NullableInt40s::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int48s", Attributes::NullableInt48s::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int56s", Attributes::NullableInt56s::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int64s", Attributes::NullableInt64s::Id, credsIssuerConfig), // + make_unique(Id, "nullable-enum8", Attributes::NullableEnum8::Id, credsIssuerConfig), // + make_unique(Id, "nullable-enum16", Attributes::NullableEnum16::Id, credsIssuerConfig), // + make_unique(Id, "nullable-float-single", Attributes::NullableFloatSingle::Id, credsIssuerConfig), // + make_unique(Id, "nullable-float-double", Attributes::NullableFloatDouble::Id, credsIssuerConfig), // + make_unique(Id, "nullable-octet-string", Attributes::NullableOctetString::Id, credsIssuerConfig), // + make_unique(Id, "nullable-char-string", Attributes::NullableCharString::Id, credsIssuerConfig), // + make_unique(Id, "nullable-enum-attr", Attributes::NullableEnumAttr::Id, credsIssuerConfig), // + make_unique(Id, "nullable-struct", Attributes::NullableStruct::Id, credsIssuerConfig), // + make_unique(Id, "nullable-range-restricted-int8u", Attributes::NullableRangeRestrictedInt8u::Id, + credsIssuerConfig), // + make_unique(Id, "nullable-range-restricted-int8s", Attributes::NullableRangeRestrictedInt8s::Id, + credsIssuerConfig), // + make_unique(Id, "nullable-range-restricted-int16u", Attributes::NullableRangeRestrictedInt16u::Id, + credsIssuerConfig), // + make_unique(Id, "nullable-range-restricted-int16s", Attributes::NullableRangeRestrictedInt16s::Id, + credsIssuerConfig), // + make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // + make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // + make_unique(Id, "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(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), // + 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, "boolean", Attributes::Boolean::Id, credsIssuerConfig), // + make_unique(Id, "bitmap8", Attributes::Bitmap8::Id, credsIssuerConfig), // + make_unique(Id, "bitmap16", Attributes::Bitmap16::Id, credsIssuerConfig), // + make_unique(Id, "bitmap32", Attributes::Bitmap32::Id, credsIssuerConfig), // + make_unique(Id, "bitmap64", Attributes::Bitmap64::Id, credsIssuerConfig), // + make_unique(Id, "int8u", Attributes::Int8u::Id, credsIssuerConfig), // + make_unique(Id, "int16u", Attributes::Int16u::Id, credsIssuerConfig), // + make_unique(Id, "int24u", Attributes::Int24u::Id, credsIssuerConfig), // + make_unique(Id, "int32u", Attributes::Int32u::Id, credsIssuerConfig), // + make_unique(Id, "int40u", Attributes::Int40u::Id, credsIssuerConfig), // + make_unique(Id, "int48u", Attributes::Int48u::Id, credsIssuerConfig), // + make_unique(Id, "int56u", Attributes::Int56u::Id, credsIssuerConfig), // + make_unique(Id, "int64u", Attributes::Int64u::Id, credsIssuerConfig), // + make_unique(Id, "int8s", Attributes::Int8s::Id, credsIssuerConfig), // + make_unique(Id, "int16s", Attributes::Int16s::Id, credsIssuerConfig), // + make_unique(Id, "int24s", Attributes::Int24s::Id, credsIssuerConfig), // + make_unique(Id, "int32s", Attributes::Int32s::Id, credsIssuerConfig), // + make_unique(Id, "int40s", Attributes::Int40s::Id, credsIssuerConfig), // + make_unique(Id, "int48s", Attributes::Int48s::Id, credsIssuerConfig), // + make_unique(Id, "int56s", Attributes::Int56s::Id, credsIssuerConfig), // + make_unique(Id, "int64s", Attributes::Int64s::Id, credsIssuerConfig), // + make_unique(Id, "enum8", Attributes::Enum8::Id, credsIssuerConfig), // + make_unique(Id, "enum16", Attributes::Enum16::Id, credsIssuerConfig), // + make_unique(Id, "float-single", Attributes::FloatSingle::Id, credsIssuerConfig), // + make_unique(Id, "float-double", Attributes::FloatDouble::Id, credsIssuerConfig), // + make_unique(Id, "octet-string", Attributes::OctetString::Id, credsIssuerConfig), // + make_unique(Id, "list-int8u", Attributes::ListInt8u::Id, credsIssuerConfig), // + make_unique(Id, "list-octet-string", Attributes::ListOctetString::Id, credsIssuerConfig), // + make_unique(Id, "list-struct-octet-string", Attributes::ListStructOctetString::Id, + credsIssuerConfig), // + make_unique(Id, "long-octet-string", Attributes::LongOctetString::Id, credsIssuerConfig), // + make_unique(Id, "char-string", Attributes::CharString::Id, credsIssuerConfig), // + make_unique(Id, "long-char-string", Attributes::LongCharString::Id, credsIssuerConfig), // + make_unique(Id, "epoch-us", Attributes::EpochUs::Id, credsIssuerConfig), // + make_unique(Id, "epoch-s", Attributes::EpochS::Id, credsIssuerConfig), // + make_unique(Id, "vendor-id", Attributes::VendorId::Id, credsIssuerConfig), // + make_unique(Id, "list-nullables-and-optionals-struct", Attributes::ListNullablesAndOptionalsStruct::Id, + credsIssuerConfig), // + make_unique(Id, "enum-attr", Attributes::EnumAttr::Id, credsIssuerConfig), // + make_unique(Id, "struct-attr", Attributes::StructAttr::Id, credsIssuerConfig), // + make_unique(Id, "range-restricted-int8u", Attributes::RangeRestrictedInt8u::Id, credsIssuerConfig), // + make_unique(Id, "range-restricted-int8s", Attributes::RangeRestrictedInt8s::Id, credsIssuerConfig), // + make_unique(Id, "range-restricted-int16u", Attributes::RangeRestrictedInt16u::Id, credsIssuerConfig), // + make_unique(Id, "range-restricted-int16s", Attributes::RangeRestrictedInt16s::Id, credsIssuerConfig), // + make_unique(Id, "list-long-octet-string", Attributes::ListLongOctetString::Id, credsIssuerConfig), // + make_unique(Id, "list-fabric-scoped", Attributes::ListFabricScoped::Id, credsIssuerConfig), // + make_unique(Id, "timed-write-boolean", Attributes::TimedWriteBoolean::Id, credsIssuerConfig), // + make_unique(Id, "general-error-boolean", Attributes::GeneralErrorBoolean::Id, credsIssuerConfig), // + make_unique(Id, "cluster-error-boolean", Attributes::ClusterErrorBoolean::Id, credsIssuerConfig), // + make_unique(Id, "unsupported", Attributes::Unsupported::Id, credsIssuerConfig), // + make_unique(Id, "nullable-boolean", Attributes::NullableBoolean::Id, credsIssuerConfig), // + make_unique(Id, "nullable-bitmap8", Attributes::NullableBitmap8::Id, credsIssuerConfig), // + make_unique(Id, "nullable-bitmap16", Attributes::NullableBitmap16::Id, credsIssuerConfig), // + make_unique(Id, "nullable-bitmap32", Attributes::NullableBitmap32::Id, credsIssuerConfig), // + make_unique(Id, "nullable-bitmap64", Attributes::NullableBitmap64::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int8u", Attributes::NullableInt8u::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int16u", Attributes::NullableInt16u::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int24u", Attributes::NullableInt24u::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int32u", Attributes::NullableInt32u::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int40u", Attributes::NullableInt40u::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int48u", Attributes::NullableInt48u::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int56u", Attributes::NullableInt56u::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int64u", Attributes::NullableInt64u::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int8s", Attributes::NullableInt8s::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int16s", Attributes::NullableInt16s::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int24s", Attributes::NullableInt24s::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int32s", Attributes::NullableInt32s::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int40s", Attributes::NullableInt40s::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int48s", Attributes::NullableInt48s::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int56s", Attributes::NullableInt56s::Id, credsIssuerConfig), // + make_unique(Id, "nullable-int64s", Attributes::NullableInt64s::Id, credsIssuerConfig), // + make_unique(Id, "nullable-enum8", Attributes::NullableEnum8::Id, credsIssuerConfig), // + make_unique(Id, "nullable-enum16", Attributes::NullableEnum16::Id, credsIssuerConfig), // + make_unique(Id, "nullable-float-single", Attributes::NullableFloatSingle::Id, credsIssuerConfig), // + make_unique(Id, "nullable-float-double", Attributes::NullableFloatDouble::Id, credsIssuerConfig), // + make_unique(Id, "nullable-octet-string", Attributes::NullableOctetString::Id, credsIssuerConfig), // + make_unique(Id, "nullable-char-string", Attributes::NullableCharString::Id, credsIssuerConfig), // + make_unique(Id, "nullable-enum-attr", Attributes::NullableEnumAttr::Id, credsIssuerConfig), // + make_unique(Id, "nullable-struct", Attributes::NullableStruct::Id, credsIssuerConfig), // + make_unique(Id, "nullable-range-restricted-int8u", Attributes::NullableRangeRestrictedInt8u::Id, credsIssuerConfig), // - make_unique(Id, "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, + make_unique(Id, "nullable-range-restricted-int8s", Attributes::NullableRangeRestrictedInt8s::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, + make_unique(Id, "nullable-range-restricted-int16u", Attributes::NullableRangeRestrictedInt16u::Id, credsIssuerConfig), // - make_unique(Id, "rms-voltage-swell-period-phase-c", Attributes::RmsVoltageSwellPeriodPhaseC::Id, + make_unique(Id, "nullable-range-restricted-int16s", Attributes::NullableRangeRestrictedInt16s::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // @@ -25803,8 +25799,12 @@ void registerClusterElectricalMeasurement(Commands & commands, CredentialIssuerC // // Events // - make_unique(Id, credsIssuerConfig), // - make_unique(Id, credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + make_unique(Id, "test-event", Events::TestEvent::Id, credsIssuerConfig), // + make_unique(Id, "test-fabric-scoped-event", Events::TestFabricScopedEvent::Id, credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + make_unique(Id, "test-event", Events::TestEvent::Id, credsIssuerConfig), // + make_unique(Id, "test-fabric-scoped-event", Events::TestFabricScopedEvent::Id, credsIssuerConfig), // }; commands.Register(clusterName, clusterCommands); @@ -25939,12 +25939,12 @@ void registerClusters(Commands & commands, CredentialIssuerCommands * credsIssue registerClusterApplicationLauncher(commands, credsIssuerConfig); registerClusterApplicationBasic(commands, credsIssuerConfig); registerClusterAccountLogin(commands, credsIssuerConfig); - registerClusterTestCluster(commands, credsIssuerConfig); registerClusterMessaging(commands, credsIssuerConfig); registerClusterApplianceIdentification(commands, credsIssuerConfig); registerClusterMeterIdentification(commands, credsIssuerConfig); registerClusterApplianceEventsAndAlert(commands, credsIssuerConfig); registerClusterApplianceStatistics(commands, credsIssuerConfig); registerClusterElectricalMeasurement(commands, credsIssuerConfig); + registerClusterTestCluster(commands, credsIssuerConfig); registerClusterSubscriptions(commands, credsIssuerConfig); } diff --git a/zzz_generated/controller-clusters/zap-generated/endpoint_config.h b/zzz_generated/controller-clusters/zap-generated/endpoint_config.h index f5d4d26b38a990..209cb7cda99b59 100644 --- a/zzz_generated/controller-clusters/zap-generated/endpoint_config.h +++ b/zzz_generated/controller-clusters/zap-generated/endpoint_config.h @@ -766,8 +766,8 @@ .generatedCommandList = nullptr ,\ },\ { \ - /* Endpoint: 1, Cluster: Test Cluster (client) */ \ - .clusterId = 0x0000050F, \ + /* Endpoint: 1, Cluster: Electrical Measurement (client) */ \ + .clusterId = 0x00000B04, \ .attributes = ZAP_ATTRIBUTE_INDEX(0), \ .attributeCount = 0, \ .clusterSize = 0, \ @@ -777,8 +777,8 @@ .generatedCommandList = nullptr ,\ },\ { \ - /* Endpoint: 1, Cluster: Electrical Measurement (client) */ \ - .clusterId = 0x00000B04, \ + /* Endpoint: 1, Cluster: Test Cluster (client) */ \ + .clusterId = 0xFFF1FC05, \ .attributes = ZAP_ATTRIBUTE_INDEX(0), \ .attributeCount = 0, \ .clusterSize = 0, \ diff --git a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h index 0368d72f306715..c4257897b8b90d 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h @@ -145,13 +145,13 @@ | ApplicationLauncher | 0x050C | | ApplicationBasic | 0x050D | | AccountLogin | 0x050E | -| TestCluster | 0x050F | | Messaging | 0x0703 | | ApplianceIdentification | 0x0B00 | | MeterIdentification | 0x0B01 | | ApplianceEventsAndAlert | 0x0B02 | | ApplianceStatistics | 0x0B03 | | ElectricalMeasurement | 0x0B04 | +| TestCluster | 0xFFF1FC05| \*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*\ @@ -67945,7 +67945,7 @@ class SubscribeAttributeTemperatureMeasurementClusterRevision : public Subscribe }; /*----------------------------------------------------------------------------*\ -| Cluster TestCluster | 0x050F | +| Cluster TestCluster | 0xFFF1FC05| |------------------------------------------------------------------------------| | Commands: | | | * Test | 0x00 | @@ -68077,7 +68077,7 @@ class TestClusterTest : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000000) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -68117,7 +68117,7 @@ class TestClusterTestNotHandled : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000001) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -68157,7 +68157,7 @@ class TestClusterTestSpecific : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000002) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -68199,7 +68199,7 @@ class TestClusterTestUnknownCommand : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000003) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -68241,7 +68241,7 @@ class TestClusterTestAddArguments : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000004) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -68288,7 +68288,7 @@ class TestClusterTestSimpleArgumentRequest : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000005) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -68344,7 +68344,7 @@ class TestClusterTestStructArrayArgumentRequest : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000006) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -68504,7 +68504,7 @@ class TestClusterTestStructArgumentRequest : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000007) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -68562,7 +68562,7 @@ class TestClusterTestNestedStructArgumentRequest : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000008) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -68623,7 +68623,7 @@ class TestClusterTestListStructArgumentRequest : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000009) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -68690,7 +68690,7 @@ class TestClusterTestListInt8UArgumentRequest : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000A) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -68746,7 +68746,7 @@ class TestClusterTestNestedStructListArgumentRequest : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000B) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -68853,7 +68853,7 @@ class TestClusterTestListNestedStructListArgumentRequest : public ClusterCommand CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000C) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -68970,7 +68970,7 @@ class TestClusterTestListInt8UReverseRequest : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000D) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -69027,7 +69027,7 @@ class TestClusterTestEnumsRequest : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000E) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -69074,7 +69074,7 @@ class TestClusterTestNullableOptionalRequest : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x0000000F) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -69146,7 +69146,7 @@ class TestClusterTestComplexNullableOptionalRequest : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000010) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -69352,7 +69352,7 @@ class TestClusterSimpleStructEchoRequest : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000011) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -69408,7 +69408,7 @@ class TestClusterTimedInvokeRequest : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000012) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -69449,7 +69449,7 @@ class TestClusterTestSimpleOptionalArgumentRequest : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000013) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -69499,7 +69499,7 @@ class TestClusterTestEmitTestEventRequest : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000014) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -69547,7 +69547,7 @@ class TestClusterTestEmitTestFabricScopedEventRequest : public ClusterCommand { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) command (0x00000015) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -69595,7 +69595,7 @@ class ReadTestClusterBoolean : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000000) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -69624,7 +69624,7 @@ class WriteTestClusterBoolean : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000000) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -69659,7 +69659,7 @@ class SubscribeAttributeTestClusterBoolean : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000000) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -69700,7 +69700,7 @@ class ReadTestClusterBitmap8 : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000001) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -69729,7 +69729,7 @@ class WriteTestClusterBitmap8 : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000001) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -69764,7 +69764,7 @@ class SubscribeAttributeTestClusterBitmap8 : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000001) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -69805,7 +69805,7 @@ class ReadTestClusterBitmap16 : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000002) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -69834,7 +69834,7 @@ class WriteTestClusterBitmap16 : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000002) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -69869,7 +69869,7 @@ class SubscribeAttributeTestClusterBitmap16 : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000002) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -69910,7 +69910,7 @@ class ReadTestClusterBitmap32 : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000003) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -69939,7 +69939,7 @@ class WriteTestClusterBitmap32 : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000003) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -69974,7 +69974,7 @@ class SubscribeAttributeTestClusterBitmap32 : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000003) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -70015,7 +70015,7 @@ class ReadTestClusterBitmap64 : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000004) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -70044,7 +70044,7 @@ class WriteTestClusterBitmap64 : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000004) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -70079,7 +70079,7 @@ class SubscribeAttributeTestClusterBitmap64 : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000004) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -70120,7 +70120,7 @@ class ReadTestClusterInt8u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000005) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -70149,7 +70149,7 @@ class WriteTestClusterInt8u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000005) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -70184,7 +70184,7 @@ class SubscribeAttributeTestClusterInt8u : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000005) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -70225,7 +70225,7 @@ class ReadTestClusterInt16u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000006) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -70254,7 +70254,7 @@ class WriteTestClusterInt16u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000006) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -70289,7 +70289,7 @@ class SubscribeAttributeTestClusterInt16u : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000006) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -70330,7 +70330,7 @@ class ReadTestClusterInt24u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000007) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -70359,7 +70359,7 @@ class WriteTestClusterInt24u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000007) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -70394,7 +70394,7 @@ class SubscribeAttributeTestClusterInt24u : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000007) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -70435,7 +70435,7 @@ class ReadTestClusterInt32u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000008) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -70464,7 +70464,7 @@ class WriteTestClusterInt32u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000008) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -70499,7 +70499,7 @@ class SubscribeAttributeTestClusterInt32u : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000008) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -70540,7 +70540,7 @@ class ReadTestClusterInt40u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000009) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -70569,7 +70569,7 @@ class WriteTestClusterInt40u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000009) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -70604,7 +70604,7 @@ class SubscribeAttributeTestClusterInt40u : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000009) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -70645,7 +70645,7 @@ class ReadTestClusterInt48u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000000A) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -70674,7 +70674,7 @@ class WriteTestClusterInt48u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000000A) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -70709,7 +70709,7 @@ class SubscribeAttributeTestClusterInt48u : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000000A) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -70750,7 +70750,7 @@ class ReadTestClusterInt56u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000000B) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -70779,7 +70779,7 @@ class WriteTestClusterInt56u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000000B) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -70814,7 +70814,7 @@ class SubscribeAttributeTestClusterInt56u : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000000B) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -70855,7 +70855,7 @@ class ReadTestClusterInt64u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000000C) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -70884,7 +70884,7 @@ class WriteTestClusterInt64u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000000C) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -70919,7 +70919,7 @@ class SubscribeAttributeTestClusterInt64u : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000000C) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -70960,7 +70960,7 @@ class ReadTestClusterInt8s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000000D) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -70989,7 +70989,7 @@ class WriteTestClusterInt8s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000000D) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -71024,7 +71024,7 @@ class SubscribeAttributeTestClusterInt8s : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000000D) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -71065,7 +71065,7 @@ class ReadTestClusterInt16s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000000E) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -71094,7 +71094,7 @@ class WriteTestClusterInt16s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000000E) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -71129,7 +71129,7 @@ class SubscribeAttributeTestClusterInt16s : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000000E) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -71170,7 +71170,7 @@ class ReadTestClusterInt24s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000000F) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -71199,7 +71199,7 @@ class WriteTestClusterInt24s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000000F) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -71234,7 +71234,7 @@ class SubscribeAttributeTestClusterInt24s : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000000F) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -71275,7 +71275,7 @@ class ReadTestClusterInt32s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000010) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -71304,7 +71304,7 @@ class WriteTestClusterInt32s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000010) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -71339,7 +71339,7 @@ class SubscribeAttributeTestClusterInt32s : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000010) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -71380,7 +71380,7 @@ class ReadTestClusterInt40s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000011) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -71409,7 +71409,7 @@ class WriteTestClusterInt40s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000011) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -71444,7 +71444,7 @@ class SubscribeAttributeTestClusterInt40s : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000011) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -71485,7 +71485,7 @@ class ReadTestClusterInt48s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000012) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -71514,7 +71514,7 @@ class WriteTestClusterInt48s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000012) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -71549,7 +71549,7 @@ class SubscribeAttributeTestClusterInt48s : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000012) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -71590,7 +71590,7 @@ class ReadTestClusterInt56s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000013) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -71619,7 +71619,7 @@ class WriteTestClusterInt56s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000013) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -71654,7 +71654,7 @@ class SubscribeAttributeTestClusterInt56s : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000013) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -71695,7 +71695,7 @@ class ReadTestClusterInt64s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000014) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -71724,7 +71724,7 @@ class WriteTestClusterInt64s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000014) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -71759,7 +71759,7 @@ class SubscribeAttributeTestClusterInt64s : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000014) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -71800,7 +71800,7 @@ class ReadTestClusterEnum8 : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000015) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -71829,7 +71829,7 @@ class WriteTestClusterEnum8 : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000015) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -71864,7 +71864,7 @@ class SubscribeAttributeTestClusterEnum8 : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000015) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -71905,7 +71905,7 @@ class ReadTestClusterEnum16 : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000016) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -71934,7 +71934,7 @@ class WriteTestClusterEnum16 : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000016) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -71969,7 +71969,7 @@ class SubscribeAttributeTestClusterEnum16 : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000016) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -72010,7 +72010,7 @@ class ReadTestClusterFloatSingle : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000017) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -72039,7 +72039,7 @@ class WriteTestClusterFloatSingle : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000017) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -72074,7 +72074,7 @@ class SubscribeAttributeTestClusterFloatSingle : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000017) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -72115,7 +72115,7 @@ class ReadTestClusterFloatDouble : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000018) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -72144,7 +72144,7 @@ class WriteTestClusterFloatDouble : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000018) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -72179,7 +72179,7 @@ class SubscribeAttributeTestClusterFloatDouble : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000018) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -72220,7 +72220,7 @@ class ReadTestClusterOctetString : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000019) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -72249,7 +72249,7 @@ class WriteTestClusterOctetString : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000019) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -72284,7 +72284,7 @@ class SubscribeAttributeTestClusterOctetString : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000019) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -72325,7 +72325,7 @@ class ReadTestClusterListInt8u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000001A) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -72355,7 +72355,7 @@ class WriteTestClusterListInt8u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000001A) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -72400,7 +72400,7 @@ class SubscribeAttributeTestClusterListInt8u : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000001A) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -72441,7 +72441,7 @@ class ReadTestClusterListOctetString : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000001B) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -72471,7 +72471,7 @@ class WriteTestClusterListOctetString : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000001B) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -72516,7 +72516,7 @@ class SubscribeAttributeTestClusterListOctetString : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000001B) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -72557,7 +72557,7 @@ class ReadTestClusterListStructOctetString : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000001C) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -72587,7 +72587,7 @@ class WriteTestClusterListStructOctetString : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000001C) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -72636,7 +72636,7 @@ class SubscribeAttributeTestClusterListStructOctetString : public SubscribeAttri CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000001C) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -72678,7 +72678,7 @@ class ReadTestClusterLongOctetString : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000001D) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -72707,7 +72707,7 @@ class WriteTestClusterLongOctetString : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000001D) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -72742,7 +72742,7 @@ class SubscribeAttributeTestClusterLongOctetString : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000001D) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -72783,7 +72783,7 @@ class ReadTestClusterCharString : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000001E) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -72812,7 +72812,7 @@ class WriteTestClusterCharString : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000001E) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -72849,7 +72849,7 @@ class SubscribeAttributeTestClusterCharString : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000001E) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -72890,7 +72890,7 @@ class ReadTestClusterLongCharString : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000001F) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -72919,7 +72919,7 @@ class WriteTestClusterLongCharString : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000001F) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -72956,7 +72956,7 @@ class SubscribeAttributeTestClusterLongCharString : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000001F) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -72997,7 +72997,7 @@ class ReadTestClusterEpochUs : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000020) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -73026,7 +73026,7 @@ class WriteTestClusterEpochUs : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000020) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -73061,7 +73061,7 @@ class SubscribeAttributeTestClusterEpochUs : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000020) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -73102,7 +73102,7 @@ class ReadTestClusterEpochS : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000021) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -73131,7 +73131,7 @@ class WriteTestClusterEpochS : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000021) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -73166,7 +73166,7 @@ class SubscribeAttributeTestClusterEpochS : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000021) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -73207,7 +73207,7 @@ class ReadTestClusterVendorId : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000022) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -73236,7 +73236,7 @@ class WriteTestClusterVendorId : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000022) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -73271,7 +73271,7 @@ class SubscribeAttributeTestClusterVendorId : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000022) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -73312,7 +73312,7 @@ class ReadTestClusterListNullablesAndOptionalsStruct : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000023) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -73343,7 +73343,7 @@ class WriteTestClusterListNullablesAndOptionalsStruct : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000023) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -73542,7 +73542,7 @@ class SubscribeAttributeTestClusterListNullablesAndOptionalsStruct : public Subs CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000023) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -73586,7 +73586,7 @@ class ReadTestClusterEnumAttr : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000024) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -73615,7 +73615,7 @@ class WriteTestClusterEnumAttr : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000024) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -73650,7 +73650,7 @@ class SubscribeAttributeTestClusterEnumAttr : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000024) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -73691,7 +73691,7 @@ class ReadTestClusterStructAttr : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000025) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -73722,7 +73722,7 @@ class WriteTestClusterStructAttr : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000025) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -73767,7 +73767,7 @@ class SubscribeAttributeTestClusterStructAttr : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000025) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -73809,7 +73809,7 @@ class ReadTestClusterRangeRestrictedInt8u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000026) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -73838,7 +73838,7 @@ class WriteTestClusterRangeRestrictedInt8u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000026) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -73873,7 +73873,7 @@ class SubscribeAttributeTestClusterRangeRestrictedInt8u : public SubscribeAttrib CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000026) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -73915,7 +73915,7 @@ class ReadTestClusterRangeRestrictedInt8s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000027) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -73944,7 +73944,7 @@ class WriteTestClusterRangeRestrictedInt8s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000027) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -73979,7 +73979,7 @@ class SubscribeAttributeTestClusterRangeRestrictedInt8s : public SubscribeAttrib CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000027) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -74021,7 +74021,7 @@ class ReadTestClusterRangeRestrictedInt16u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000028) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -74050,7 +74050,7 @@ class WriteTestClusterRangeRestrictedInt16u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000028) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -74085,7 +74085,7 @@ class SubscribeAttributeTestClusterRangeRestrictedInt16u : public SubscribeAttri CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000028) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -74127,7 +74127,7 @@ class ReadTestClusterRangeRestrictedInt16s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000029) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -74156,7 +74156,7 @@ class WriteTestClusterRangeRestrictedInt16s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000029) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -74191,7 +74191,7 @@ class SubscribeAttributeTestClusterRangeRestrictedInt16s : public SubscribeAttri CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000029) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -74233,7 +74233,7 @@ class ReadTestClusterListLongOctetString : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000002A) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -74263,7 +74263,7 @@ class WriteTestClusterListLongOctetString : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000002A) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -74308,7 +74308,7 @@ class SubscribeAttributeTestClusterListLongOctetString : public SubscribeAttribu CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000002A) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -74350,7 +74350,7 @@ class ReadTestClusterListFabricScoped : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000002B) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -74383,7 +74383,7 @@ class WriteTestClusterListFabricScoped : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000002B) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -74478,7 +74478,7 @@ class SubscribeAttributeTestClusterListFabricScoped : public SubscribeAttribute CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000002B) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -74519,7 +74519,7 @@ class ReadTestClusterTimedWriteBoolean : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000030) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -74548,7 +74548,7 @@ class WriteTestClusterTimedWriteBoolean : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000030) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -74583,7 +74583,7 @@ class SubscribeAttributeTestClusterTimedWriteBoolean : public SubscribeAttribute CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000030) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -74624,7 +74624,7 @@ class ReadTestClusterGeneralErrorBoolean : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000031) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -74653,7 +74653,7 @@ class WriteTestClusterGeneralErrorBoolean : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000031) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -74688,7 +74688,7 @@ class SubscribeAttributeTestClusterGeneralErrorBoolean : public SubscribeAttribu CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000031) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -74730,7 +74730,7 @@ class ReadTestClusterClusterErrorBoolean : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00000032) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -74759,7 +74759,7 @@ class WriteTestClusterClusterErrorBoolean : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00000032) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -74794,7 +74794,7 @@ class SubscribeAttributeTestClusterClusterErrorBoolean : public SubscribeAttribu CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00000032) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -74836,7 +74836,7 @@ class ReadTestClusterUnsupported : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x000000FF) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x000000FF) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -74865,7 +74865,7 @@ class WriteTestClusterUnsupported : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x000000FF) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x000000FF) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -74900,7 +74900,7 @@ class SubscribeAttributeTestClusterUnsupported : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x000000FF) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x000000FF) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -74941,7 +74941,7 @@ class ReadTestClusterNullableBoolean : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004000) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -74970,7 +74970,7 @@ class WriteTestClusterNullableBoolean : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004000) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -75005,7 +75005,7 @@ class SubscribeAttributeTestClusterNullableBoolean : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004000) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -75046,7 +75046,7 @@ class ReadTestClusterNullableBitmap8 : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004001) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -75075,7 +75075,7 @@ class WriteTestClusterNullableBitmap8 : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004001) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -75110,7 +75110,7 @@ class SubscribeAttributeTestClusterNullableBitmap8 : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004001) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -75151,7 +75151,7 @@ class ReadTestClusterNullableBitmap16 : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004002) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -75180,7 +75180,7 @@ class WriteTestClusterNullableBitmap16 : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004002) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -75215,7 +75215,7 @@ class SubscribeAttributeTestClusterNullableBitmap16 : public SubscribeAttribute CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004002) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -75256,7 +75256,7 @@ class ReadTestClusterNullableBitmap32 : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004003) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -75285,7 +75285,7 @@ class WriteTestClusterNullableBitmap32 : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004003) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -75320,7 +75320,7 @@ class SubscribeAttributeTestClusterNullableBitmap32 : public SubscribeAttribute CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004003) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -75361,7 +75361,7 @@ class ReadTestClusterNullableBitmap64 : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004004) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -75390,7 +75390,7 @@ class WriteTestClusterNullableBitmap64 : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004004) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -75425,7 +75425,7 @@ class SubscribeAttributeTestClusterNullableBitmap64 : public SubscribeAttribute CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004004) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -75466,7 +75466,7 @@ class ReadTestClusterNullableInt8u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004005) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -75495,7 +75495,7 @@ class WriteTestClusterNullableInt8u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004005) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -75530,7 +75530,7 @@ class SubscribeAttributeTestClusterNullableInt8u : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004005) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -75571,7 +75571,7 @@ class ReadTestClusterNullableInt16u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004006) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -75600,7 +75600,7 @@ class WriteTestClusterNullableInt16u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004006) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -75635,7 +75635,7 @@ class SubscribeAttributeTestClusterNullableInt16u : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004006) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -75676,7 +75676,7 @@ class ReadTestClusterNullableInt24u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004007) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -75705,7 +75705,7 @@ class WriteTestClusterNullableInt24u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004007) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -75740,7 +75740,7 @@ class SubscribeAttributeTestClusterNullableInt24u : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004007) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -75781,7 +75781,7 @@ class ReadTestClusterNullableInt32u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004008) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -75810,7 +75810,7 @@ class WriteTestClusterNullableInt32u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004008) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -75845,7 +75845,7 @@ class SubscribeAttributeTestClusterNullableInt32u : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004008) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -75886,7 +75886,7 @@ class ReadTestClusterNullableInt40u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004009) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -75915,7 +75915,7 @@ class WriteTestClusterNullableInt40u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004009) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -75950,7 +75950,7 @@ class SubscribeAttributeTestClusterNullableInt40u : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004009) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -75991,7 +75991,7 @@ class ReadTestClusterNullableInt48u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000400A) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -76020,7 +76020,7 @@ class WriteTestClusterNullableInt48u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000400A) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -76055,7 +76055,7 @@ class SubscribeAttributeTestClusterNullableInt48u : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000400A) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -76096,7 +76096,7 @@ class ReadTestClusterNullableInt56u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000400B) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -76125,7 +76125,7 @@ class WriteTestClusterNullableInt56u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000400B) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -76160,7 +76160,7 @@ class SubscribeAttributeTestClusterNullableInt56u : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000400B) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -76201,7 +76201,7 @@ class ReadTestClusterNullableInt64u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000400C) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -76230,7 +76230,7 @@ class WriteTestClusterNullableInt64u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000400C) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -76265,7 +76265,7 @@ class SubscribeAttributeTestClusterNullableInt64u : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000400C) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -76306,7 +76306,7 @@ class ReadTestClusterNullableInt8s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000400D) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -76335,7 +76335,7 @@ class WriteTestClusterNullableInt8s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000400D) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -76370,7 +76370,7 @@ class SubscribeAttributeTestClusterNullableInt8s : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000400D) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -76411,7 +76411,7 @@ class ReadTestClusterNullableInt16s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000400E) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -76440,7 +76440,7 @@ class WriteTestClusterNullableInt16s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000400E) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -76475,7 +76475,7 @@ class SubscribeAttributeTestClusterNullableInt16s : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000400E) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -76516,7 +76516,7 @@ class ReadTestClusterNullableInt24s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000400F) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -76545,7 +76545,7 @@ class WriteTestClusterNullableInt24s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000400F) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -76580,7 +76580,7 @@ class SubscribeAttributeTestClusterNullableInt24s : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000400F) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -76621,7 +76621,7 @@ class ReadTestClusterNullableInt32s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004010) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -76650,7 +76650,7 @@ class WriteTestClusterNullableInt32s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004010) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -76685,7 +76685,7 @@ class SubscribeAttributeTestClusterNullableInt32s : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004010) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -76726,7 +76726,7 @@ class ReadTestClusterNullableInt40s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004011) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -76755,7 +76755,7 @@ class WriteTestClusterNullableInt40s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004011) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -76790,7 +76790,7 @@ class SubscribeAttributeTestClusterNullableInt40s : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004011) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -76831,7 +76831,7 @@ class ReadTestClusterNullableInt48s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004012) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -76860,7 +76860,7 @@ class WriteTestClusterNullableInt48s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004012) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -76895,7 +76895,7 @@ class SubscribeAttributeTestClusterNullableInt48s : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004012) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -76936,7 +76936,7 @@ class ReadTestClusterNullableInt56s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004013) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -76965,7 +76965,7 @@ class WriteTestClusterNullableInt56s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004013) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -77000,7 +77000,7 @@ class SubscribeAttributeTestClusterNullableInt56s : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004013) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -77041,7 +77041,7 @@ class ReadTestClusterNullableInt64s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004014) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -77070,7 +77070,7 @@ class WriteTestClusterNullableInt64s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004014) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -77105,7 +77105,7 @@ class SubscribeAttributeTestClusterNullableInt64s : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004014) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -77146,7 +77146,7 @@ class ReadTestClusterNullableEnum8 : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004015) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -77175,7 +77175,7 @@ class WriteTestClusterNullableEnum8 : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004015) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -77210,7 +77210,7 @@ class SubscribeAttributeTestClusterNullableEnum8 : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004015) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -77251,7 +77251,7 @@ class ReadTestClusterNullableEnum16 : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004016) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -77280,7 +77280,7 @@ class WriteTestClusterNullableEnum16 : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004016) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -77315,7 +77315,7 @@ class SubscribeAttributeTestClusterNullableEnum16 : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004016) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -77356,7 +77356,7 @@ class ReadTestClusterNullableFloatSingle : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004017) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -77385,7 +77385,7 @@ class WriteTestClusterNullableFloatSingle : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004017) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -77420,7 +77420,7 @@ class SubscribeAttributeTestClusterNullableFloatSingle : public SubscribeAttribu CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004017) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -77462,7 +77462,7 @@ class ReadTestClusterNullableFloatDouble : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004018) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -77491,7 +77491,7 @@ class WriteTestClusterNullableFloatDouble : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004018) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -77526,7 +77526,7 @@ class SubscribeAttributeTestClusterNullableFloatDouble : public SubscribeAttribu CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004018) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -77568,7 +77568,7 @@ class ReadTestClusterNullableOctetString : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004019) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -77597,7 +77597,7 @@ class WriteTestClusterNullableOctetString : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004019) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -77632,7 +77632,7 @@ class SubscribeAttributeTestClusterNullableOctetString : public SubscribeAttribu CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004019) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -77674,7 +77674,7 @@ class ReadTestClusterNullableCharString : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000401E) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000401E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -77703,7 +77703,7 @@ class WriteTestClusterNullableCharString : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x0000401E) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000401E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -77740,7 +77740,7 @@ class SubscribeAttributeTestClusterNullableCharString : public SubscribeAttribut CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000401E) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000401E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -77782,7 +77782,7 @@ class ReadTestClusterNullableEnumAttr : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004024) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -77811,7 +77811,7 @@ class WriteTestClusterNullableEnumAttr : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004024) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -77846,7 +77846,7 @@ class SubscribeAttributeTestClusterNullableEnumAttr : public SubscribeAttribute CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004024) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -77887,7 +77887,7 @@ class ReadTestClusterNullableStruct : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004025) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -77918,7 +77918,7 @@ class WriteTestClusterNullableStruct : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004025) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -77969,7 +77969,7 @@ class SubscribeAttributeTestClusterNullableStruct : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004025) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -78011,7 +78011,7 @@ class ReadTestClusterNullableRangeRestrictedInt8u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004026) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -78041,7 +78041,7 @@ class WriteTestClusterNullableRangeRestrictedInt8u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004026) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -78077,7 +78077,7 @@ class SubscribeAttributeTestClusterNullableRangeRestrictedInt8u : public Subscri CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004026) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -78120,7 +78120,7 @@ class ReadTestClusterNullableRangeRestrictedInt8s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004027) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -78150,7 +78150,7 @@ class WriteTestClusterNullableRangeRestrictedInt8s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004027) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -78186,7 +78186,7 @@ class SubscribeAttributeTestClusterNullableRangeRestrictedInt8s : public Subscri CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004027) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -78229,7 +78229,7 @@ class ReadTestClusterNullableRangeRestrictedInt16u : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004028) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -78259,7 +78259,7 @@ class WriteTestClusterNullableRangeRestrictedInt16u : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004028) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -78295,7 +78295,7 @@ class SubscribeAttributeTestClusterNullableRangeRestrictedInt16u : public Subscr CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004028) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -78339,7 +78339,7 @@ class ReadTestClusterNullableRangeRestrictedInt16s : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x00004029) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -78369,7 +78369,7 @@ class WriteTestClusterNullableRangeRestrictedInt16s : public WriteAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) WriteAttribute (0x00004029) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; @@ -78405,7 +78405,7 @@ class SubscribeAttributeTestClusterNullableRangeRestrictedInt16s : public Subscr CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x00004029) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -78449,7 +78449,7 @@ class ReadTestClusterGeneratedCommandList : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -78475,7 +78475,7 @@ class SubscribeAttributeTestClusterGeneratedCommandList : public SubscribeAttrib CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -78517,7 +78517,7 @@ class ReadTestClusterAcceptedCommandList : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -78543,7 +78543,7 @@ class SubscribeAttributeTestClusterAcceptedCommandList : public SubscribeAttribu CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -78585,7 +78585,7 @@ class ReadTestClusterAttributeList : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -78611,7 +78611,7 @@ class SubscribeAttributeTestClusterAttributeList : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -78652,7 +78652,7 @@ class ReadTestClusterFeatureMap : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -78678,7 +78678,7 @@ class SubscribeAttributeTestClusterFeatureMap : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; @@ -78719,7 +78719,7 @@ class ReadTestClusterClusterRevision : public ReadAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; @@ -78745,7 +78745,7 @@ class SubscribeAttributeTestClusterClusterRevision : public SubscribeAttribute { CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0000050F) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; diff --git a/zzz_generated/tv-casting-app/zap-generated/endpoint_config.h b/zzz_generated/tv-casting-app/zap-generated/endpoint_config.h index 76bc02ac9f4707..fa696ca4d8bd4a 100644 --- a/zzz_generated/tv-casting-app/zap-generated/endpoint_config.h +++ b/zzz_generated/tv-casting-app/zap-generated/endpoint_config.h @@ -1340,7 +1340,7 @@ },\ { \ /* Endpoint: 1, Cluster: Test Cluster (server) */ \ - .clusterId = 0x0000050F, \ + .clusterId = 0xFFF1FC05, \ .attributes = ZAP_ATTRIBUTE_INDEX(275), \ .attributeCount = 22, \ .clusterSize = 1068, \