From 091b970383c940db51606536eeef4c9c6c887230 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 20 Mar 2023 12:09:30 -0400 Subject: [PATCH 01/28] Some initial changes --- .../matter_idl/generators/filters.py | 9 +++ .../generators/java/ClusterWriteMapping.jinja | 77 +++++++++++++++++++ .../matter_idl/generators/java/__init__.py | 13 +++- 3 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja diff --git a/scripts/py_matter_idl/matter_idl/generators/filters.py b/scripts/py_matter_idl/matter_idl/generators/filters.py index 594bcff7a2ecb7..afd40112cd29b4 100644 --- a/scripts/py_matter_idl/matter_idl/generators/filters.py +++ b/scripts/py_matter_idl/matter_idl/generators/filters.py @@ -24,6 +24,14 @@ def normalize_acronyms(s: str) -> str: return s.replace('WiFi', 'Wifi').replace('WI_FI', 'WIFI') +def lower_camel_case(s: str) -> str: + """Like camelcase, except it ensures the first letter is actually + lower case. + """ + s = stringcase.camelcase(s) + return s[0].lower() + s[1:] + + def RegisterCommonFilters(filtermap): """ Register filters that are NOT considered platform-generator specific. @@ -42,3 +50,4 @@ def RegisterCommonFilters(filtermap): filtermap['spinalcase'] = stringcase.spinalcase filtermap['normalize_acronyms'] = normalize_acronyms + filtermap['lowercamelcase'] = lower_camel_case diff --git a/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja b/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja new file mode 100644 index 00000000000000..f489108ac9b93a --- /dev/null +++ b/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja @@ -0,0 +1,77 @@ +import java.util.LinkedHashMap; +import java.util.Map; + +public class ClusterWriteMapping { + public Map> getWriteAttributeMap() { + Map> writeAttributeMap = new HashMap<>(); + + {%- for cluster in clientClusters | sort(attribute='name') %} + Map write{{cluster.name}}InteractionInfo = new LinkedHashMap<>(); + + {% - for attribute in cluster.attributes %} + {# TODO: add support for struct-typed attributes + # OLD LOGIC: {{#unless (isStrEqual chipCallback.name "Unsupported")}} + #} + {% if not attribute.field.is_list and attribute.is_writable %} + Map write{{cluster.name}}{{attribute.name}}CommandParams = new LinkedHashMap(); + CommandParameterInfo {{cluster.name | lowercamelcase}}{{attribute.name|lowercamelcase}}CommandParameterInfo = + new CommandParameterInfo( + "value", + FIXME, {# {{asJavaType type null parent.parent.name removeGenericType=true}}.class, #} + FIXME, {# {{asJavaType type null parent.parent.name underlyingType=true}}.class #} + ); + write{{cluster.name}}{{attribute.name}}CommandParams.put( + "value", + {{cluster.name | lowercamelcase}}{{attribute.name | lowercamelcase}}CommandParameterInfo + ); + InteractionInfo write{{cluster.name}}{{attribute.name}}AttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.{{cluster.name}}Cluster) cluster).write{{cluster.name}}Attribute( + (DefaultClusterCallback) callback, + FIXME, {# ({{asJavaBoxedType type chipType}}) #} + commandArguments.get("value") + FIXME, {# {{#if mustUseTimedWrite}}, 10000{{/if}} #} + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + write{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}CommandParams + ); + write{{cluster.name}}InteractionInfo.put("write{{attribute.name}}Attribute", write{{cluster.name}}{{attribute.name}}AttributeInteractionInfo); + {% endif %} + {% endfor %} + + writeAttributeMap.put("{{cluster.name | lowercamelcase}}", write{{cluster.name}}InteractionInfo); + {% endfor %} + + {# + FIXME: + {{#chip_server_cluster_attributes}} + {{! TODO: Add support for struct-typed attributes }} + {{#unless (isStrEqual chipCallback.name "Unsupported")}} + {{#if isWritableAttribute}} + {{#unless isArray}} + Map write{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}CommandParams = new LinkedHashMap(); + CommandParameterInfo {{asLowerCamelCase ../name}}{{asLowerCamelCase name}}CommandParameterInfo = new CommandParameterInfo("value", {{asJavaType type null parent.parent.name removeGenericType=true}}.class, {{asJavaType type null parent.parent.name underlyingType=true}}.class); + write{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}CommandParams.put("value",{{asLowerCamelCase ../name}}{{asLowerCamelCase name}}CommandParameterInfo); + InteractionInfo write{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}AttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.{{asUpperCamelCase ../name}}Cluster) cluster).write{{asUpperCamelCase name}}Attribute( + (DefaultClusterCallback) callback, + ({{asJavaBoxedType type chipType}}) + commandArguments.get("value") + {{#if mustUseTimedWrite}}, 10000{{/if}} + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + write{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}CommandParams + ); + write{{asUpperCamelCase ../name}}InteractionInfo.put("write{{asUpperCamelCase name}}Attribute", write{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}AttributeInteractionInfo); + {{/unless}} + {{/if}} + {{/unless}} + {{/chip_server_cluster_attributes}} + #} + + return writeAttributeMap; + } +} diff --git a/scripts/py_matter_idl/matter_idl/generators/java/__init__.py b/scripts/py_matter_idl/matter_idl/generators/java/__init__.py index ed47f7137d06d4..8e39671fa07dcb 100644 --- a/scripts/py_matter_idl/matter_idl/generators/java/__init__.py +++ b/scripts/py_matter_idl/matter_idl/generators/java/__init__.py @@ -20,7 +20,7 @@ from matter_idl.generators import CodeGenerator, GeneratorStorage from matter_idl.generators.types import (BasicInteger, BasicString, FundamentalType, IdlBitmapType, IdlEnumType, IdlType, ParseDataType, TypeLookupContext) -from matter_idl.matter_idl_types import Attribute, Cluster, ClusterSide, Command, DataType, Field, FieldQuality, Idl +from matter_idl.matter_idl_types import Attribute, Cluster, ClusterSide, Command, DataType, Field, FieldQuality, Idl, ClusterSide from stringcase import capitalcase @@ -369,6 +369,17 @@ def internal_render_all(self): """ Renders .CPP files required for JNI support. """ + + # Java generated code + self.internal_render_one_output( + template_path="java/ClusterWriteMapping.jinja", + output_file_name="java/chip/devicecontroller/ClusterWriteMapping.java", + vars={ + 'idl': self.idl, + 'clientClusters': [c for c in self.idl.clusters if c.side == ClusterSide.CLIENT], + } + ) + # Every cluster has its own impl, to avoid # very large compilations (running out of RAM) for cluster in self.idl.clusters: From b77d8e8f5ae82c781e5e9540d2e699f884a69f76 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 20 Mar 2023 12:17:48 -0400 Subject: [PATCH 02/28] Parser support for timed writes --- .../matter_idl/matter_grammar.lark | 1 + .../matter_idl/matter_idl_parser.py | 3 +++ .../matter_idl/matter_idl_types.py | 5 ++++ .../matter_idl/test_matter_idl_parser.py | 27 +++++++++++++++++++ 4 files changed, 36 insertions(+) diff --git a/scripts/py_matter_idl/matter_idl/matter_grammar.lark b/scripts/py_matter_idl/matter_idl/matter_grammar.lark index 14c0ffbb1baf55..e31e5a5cc2b700 100644 --- a/scripts/py_matter_idl/matter_idl/matter_grammar.lark +++ b/scripts/py_matter_idl/matter_idl/matter_grammar.lark @@ -35,6 +35,7 @@ attribute_with_access: attribute_access? struct_field attribute: attribute_qualities "attribute"i attribute_with_access ";" attribute_quality: "readonly"i -> attr_readonly | "nosubscribe"i -> attr_nosubscribe + | "timedwrite"i -> attr_timed attribute_qualities: attribute_quality* -> attribute_qualities request_struct: "request"i struct diff --git a/scripts/py_matter_idl/matter_idl/matter_idl_parser.py b/scripts/py_matter_idl/matter_idl/matter_idl_parser.py index 8683965743ffe8..0bbea23c1688bd 100755 --- a/scripts/py_matter_idl/matter_idl/matter_idl_parser.py +++ b/scripts/py_matter_idl/matter_idl/matter_idl_parser.py @@ -175,6 +175,9 @@ def attr_readonly(self, _): def attr_nosubscribe(self, _): return AttributeQuality.NOSUBSCRIBE + def attr_timed(self, _): + return AttributeQuality.TIMED_WRITE + def attribute_qualities(self, qualities): return UnionOfAllFlags(qualities) or AttributeQuality.NONE diff --git a/scripts/py_matter_idl/matter_idl/matter_idl_types.py b/scripts/py_matter_idl/matter_idl/matter_idl_types.py index 11df3b17771778..1877cb529cefba 100644 --- a/scripts/py_matter_idl/matter_idl/matter_idl_types.py +++ b/scripts/py_matter_idl/matter_idl/matter_idl_types.py @@ -44,6 +44,7 @@ class AttributeQuality(enum.Flag): READABLE = enum.auto() WRITABLE = enum.auto() NOSUBSCRIBE = enum.auto() + TIMED_WRITE = enum.auto() class AttributeStorage(enum.Enum): @@ -135,6 +136,10 @@ def is_writable(self): def is_subscribable(self): return not (AttributeQuality.NOSUBSCRIBE & self.qualities) + @property + def requires_timed_write(self): + return not (AttributeQuality.TIMED_WRITE & self.qualities) + @dataclass class Struct: diff --git a/scripts/py_matter_idl/matter_idl/test_matter_idl_parser.py b/scripts/py_matter_idl/matter_idl/test_matter_idl_parser.py index 4d429bd22e3a07..00b8bce8193510 100755 --- a/scripts/py_matter_idl/matter_idl/test_matter_idl_parser.py +++ b/scripts/py_matter_idl/matter_idl/test_matter_idl_parser.py @@ -165,6 +165,33 @@ def test_sized_attribute(self): )]) self.assertEqual(actual, expected) + def test_timed_attributes(self): + actual = parseText(""" + server cluster MyCluster = 1 { + attribute int32u attr1 = 1; + timedwrite attribute int32u attr2 = 2; + attribute int32u attr3 = 3; + timedwrite attribute octet_string<44> attr4[] = 4; + } + """) + + expected = Idl(clusters=[ + Cluster(side=ClusterSide.SERVER, + name="MyCluster", + code=1, + attributes=[ + Attribute(qualities=AttributeQuality.READABLE | AttributeQuality.WRITABLE, definition=Field( + data_type=DataType(name="int32u"), code=1, name="attr1")), + Attribute(qualities=AttributeQuality.READABLE | AttributeQuality.WRITABLE | AttributeQuality.TIMED_WRITE, definition=Field( + data_type=DataType(name="int32u"), code=2, name="attr2")), + Attribute(qualities=AttributeQuality.READABLE | AttributeQuality.WRITABLE, definition=Field( + data_type=DataType(name="int32u"), code=3, name="attr3")), + Attribute(qualities=AttributeQuality.READABLE | AttributeQuality.WRITABLE | AttributeQuality.TIMED_WRITE, definition=Field( + data_type=DataType(name="octet_string", max_length=44), code=4, name="attr4", is_list=True)), + ] + )]) + self.assertEqual(actual, expected) + def test_attribute_access(self): actual = parseText(""" server cluster MyCluster = 1 { From 83b359b46948c076b9e29bbc4fef4161c2d92d58 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 20 Mar 2023 12:18:37 -0400 Subject: [PATCH 03/28] Small doc update --- scripts/py_matter_idl/matter_idl/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/py_matter_idl/matter_idl/README.md b/scripts/py_matter_idl/matter_idl/README.md index e46fb4d00c853a..d7d6f27a7a41d2 100644 --- a/scripts/py_matter_idl/matter_idl/README.md +++ b/scripts/py_matter_idl/matter_idl/README.md @@ -89,6 +89,9 @@ server cluster AccessControl = 31 { attribute AccessControlEntry acl[] = 0; // attributes are read-write by default attribute ExtensionEntry extension[] = 1; // and require a (spec defined) number + // attributes may require timed writes + timedwrite attribute int16u require_timed_writes = 3; + // Access control privileges on attributes default to: // // access(read: view, write: operate) @@ -99,6 +102,7 @@ server cluster AccessControl = 31 { // attributes may be read-only as well readonly attribute int16u clusterRevision = 65533; + // Commands have spec-defined numbers which are used for over-the-wire // invocation. // From 7c56e3016550e5cbe739e6f1cf325b67ec644ffd Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 20 Mar 2023 12:19:58 -0400 Subject: [PATCH 04/28] Matter idl support for timed write --- src/app/zap-templates/templates/app/MatterIDL.zapt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/zap-templates/templates/app/MatterIDL.zapt b/src/app/zap-templates/templates/app/MatterIDL.zapt index 9f67be02284118..aae1e8ea369044 100644 --- a/src/app/zap-templates/templates/app/MatterIDL.zapt +++ b/src/app/zap-templates/templates/app/MatterIDL.zapt @@ -47,7 +47,11 @@ {{/zcl_events}} {{#chip_server_cluster_attributes}} {{#unless isGlobalAttribute}} - {{! ensure indent }}{{#unless isWritableAttribute~}} + {{! ensure indent }} + {{~#if mustUseTimedWrite~}} + timedwrite {{!marker to place a space even with whitespace removal~}} + {{~/if~}} + {{~#unless isWritableAttribute~}} readonly {{!marker to place a space even with whitespace removal~}} {{~/unless~}} {{~!TODO: write only attributes should also be supported~}} From 8564f1c98e20f16e4d87d47cab0833668d5b2eae Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 20 Mar 2023 12:21:59 -0400 Subject: [PATCH 05/28] Fix indent and codegen all --- .../all-clusters-common/all-clusters-app.matter | 2 +- .../all-clusters-common/all-clusters-minimal-app.matter | 2 +- src/app/zap-templates/templates/app/MatterIDL.zapt | 3 +-- src/controller/data_model/controller-clusters.matter | 2 +- 4 files changed, 4 insertions(+), 5 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 0624c2d2eca7fd..99acb67bc867a9 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 @@ -4208,7 +4208,7 @@ server cluster UnitTesting = 4294048773 { attribute int16s rangeRestrictedInt16s = 41; attribute LONG_OCTET_STRING listLongOctetString[] = 42; attribute TestFabricScoped listFabricScoped[] = 43; - attribute boolean timedWriteBoolean = 48; + timedwrite attribute boolean timedWriteBoolean = 48; attribute boolean generalErrorBoolean = 49; attribute boolean clusterErrorBoolean = 50; attribute nullable boolean nullableBoolean = 16384; 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 0b9400d1f4c62b..6a8b066ef5148a 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 @@ -3528,7 +3528,7 @@ server cluster UnitTesting = 4294048773 { attribute int16s rangeRestrictedInt16s = 41; attribute LONG_OCTET_STRING listLongOctetString[] = 42; attribute TestFabricScoped listFabricScoped[] = 43; - attribute boolean timedWriteBoolean = 48; + timedwrite attribute boolean timedWriteBoolean = 48; attribute boolean generalErrorBoolean = 49; attribute boolean clusterErrorBoolean = 50; attribute nullable boolean nullableBoolean = 16384; diff --git a/src/app/zap-templates/templates/app/MatterIDL.zapt b/src/app/zap-templates/templates/app/MatterIDL.zapt index aae1e8ea369044..cfe40d71f5dbd4 100644 --- a/src/app/zap-templates/templates/app/MatterIDL.zapt +++ b/src/app/zap-templates/templates/app/MatterIDL.zapt @@ -47,8 +47,7 @@ {{/zcl_events}} {{#chip_server_cluster_attributes}} {{#unless isGlobalAttribute}} - {{! ensure indent }} - {{~#if mustUseTimedWrite~}} + {{! ensure indent }}{{#if mustUseTimedWrite~}} timedwrite {{!marker to place a space even with whitespace removal~}} {{~/if~}} {{~#unless isWritableAttribute~}} diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index cb4df8c85b8b09..5bdcbb9d25d207 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -4539,7 +4539,7 @@ client cluster UnitTesting = 4294048773 { attribute int16s rangeRestrictedInt16s = 41; attribute LONG_OCTET_STRING listLongOctetString[] = 42; attribute TestFabricScoped listFabricScoped[] = 43; - attribute boolean timedWriteBoolean = 48; + timedwrite attribute boolean timedWriteBoolean = 48; attribute boolean generalErrorBoolean = 49; attribute boolean clusterErrorBoolean = 50; attribute boolean unsupported = 255; From dd9a5b24f9fdb74f542ff877e91874abaf5e3dd2 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 20 Mar 2023 12:23:13 -0400 Subject: [PATCH 06/28] Remove extra line from readme --- scripts/py_matter_idl/matter_idl/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/py_matter_idl/matter_idl/README.md b/scripts/py_matter_idl/matter_idl/README.md index d7d6f27a7a41d2..4446760bc5dc90 100644 --- a/scripts/py_matter_idl/matter_idl/README.md +++ b/scripts/py_matter_idl/matter_idl/README.md @@ -102,7 +102,6 @@ server cluster AccessControl = 31 { // attributes may be read-only as well readonly attribute int16u clusterRevision = 65533; - // Commands have spec-defined numbers which are used for over-the-wire // invocation. // From 497c8a4e2fac97fc950d73996fc5af64312d5eab Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 20 Mar 2023 13:45:52 -0400 Subject: [PATCH 07/28] Some fixes --- .../generators/java/ClusterWriteMapping.jinja | 57 +++++-------------- .../matter_idl/matter_idl_types.py | 2 +- 2 files changed, 14 insertions(+), 45 deletions(-) diff --git a/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja b/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja index f489108ac9b93a..e50bc5f71326e1 100644 --- a/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja +++ b/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja @@ -5,73 +5,42 @@ public class ClusterWriteMapping { public Map> getWriteAttributeMap() { Map> writeAttributeMap = new HashMap<>(); - {%- for cluster in clientClusters | sort(attribute='name') %} + {%- for cluster in clientClusters | sort(attribute='code') %} Map write{{cluster.name}}InteractionInfo = new LinkedHashMap<>(); - {% - for attribute in cluster.attributes %} - {# TODO: add support for struct-typed attributes - # OLD LOGIC: {{#unless (isStrEqual chipCallback.name "Unsupported")}} - #} - {% if not attribute.field.is_list and attribute.is_writable %} - Map write{{cluster.name}}{{attribute.name}}CommandParams = new LinkedHashMap(); - CommandParameterInfo {{cluster.name | lowercamelcase}}{{attribute.name|lowercamelcase}}CommandParameterInfo = + {%- for attribute in cluster.attributes | sort(attribute='name') %} + {#- TODO: add support for struct-typed attributes -#} + {% if not attribute.definition.is_list and attribute.is_writable %} + Map write{{cluster.name}}{{attribute.definition.name}}CommandParams = new LinkedHashMap(); + CommandParameterInfo {{cluster.name | lowercamelcase}}{{attribute.definition.name | lowercamelcase}}CommandParameterInfo = new CommandParameterInfo( "value", FIXME, {# {{asJavaType type null parent.parent.name removeGenericType=true}}.class, #} - FIXME, {# {{asJavaType type null parent.parent.name underlyingType=true}}.class #} + FIXME {# {{asJavaType type null parent.parent.name underlyingType=true}}.class #} ); - write{{cluster.name}}{{attribute.name}}CommandParams.put( + write{{cluster.name}}{{attribute.definition.name}}CommandParams.put( "value", - {{cluster.name | lowercamelcase}}{{attribute.name | lowercamelcase}}CommandParameterInfo + {{cluster.name | lowercamelcase}}{{attribute.definition.name | lowercamelcase}}CommandParameterInfo ); - InteractionInfo write{{cluster.name}}{{attribute.name}}AttributeInteractionInfo = new InteractionInfo( + InteractionInfo write{{cluster.name}}{{attribute.definition.name}}AttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { ((ChipClusters.{{cluster.name}}Cluster) cluster).write{{cluster.name}}Attribute( (DefaultClusterCallback) callback, FIXME, {# ({{asJavaBoxedType type chipType}}) #} commandArguments.get("value") - FIXME, {# {{#if mustUseTimedWrite}}, 10000{{/if}} #} + {%- if attribute.requires_timed_write -%}, 1000 {% endif %} ); }, () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - write{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}CommandParams + write{{cluster.name}}{{attribute.definition.name}}CommandParams ); - write{{cluster.name}}InteractionInfo.put("write{{attribute.name}}Attribute", write{{cluster.name}}{{attribute.name}}AttributeInteractionInfo); + write{{cluster.name}}InteractionInfo.put("write{{attribute.definition.name}}Attribute", write{{cluster.name}}{{attribute.definition.name}}AttributeInteractionInfo); {% endif %} {% endfor %} writeAttributeMap.put("{{cluster.name | lowercamelcase}}", write{{cluster.name}}InteractionInfo); {% endfor %} - {# - FIXME: - {{#chip_server_cluster_attributes}} - {{! TODO: Add support for struct-typed attributes }} - {{#unless (isStrEqual chipCallback.name "Unsupported")}} - {{#if isWritableAttribute}} - {{#unless isArray}} - Map write{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}CommandParams = new LinkedHashMap(); - CommandParameterInfo {{asLowerCamelCase ../name}}{{asLowerCamelCase name}}CommandParameterInfo = new CommandParameterInfo("value", {{asJavaType type null parent.parent.name removeGenericType=true}}.class, {{asJavaType type null parent.parent.name underlyingType=true}}.class); - write{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}CommandParams.put("value",{{asLowerCamelCase ../name}}{{asLowerCamelCase name}}CommandParameterInfo); - InteractionInfo write{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}AttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.{{asUpperCamelCase ../name}}Cluster) cluster).write{{asUpperCamelCase name}}Attribute( - (DefaultClusterCallback) callback, - ({{asJavaBoxedType type chipType}}) - commandArguments.get("value") - {{#if mustUseTimedWrite}}, 10000{{/if}} - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - write{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}CommandParams - ); - write{{asUpperCamelCase ../name}}InteractionInfo.put("write{{asUpperCamelCase name}}Attribute", write{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}AttributeInteractionInfo); - {{/unless}} - {{/if}} - {{/unless}} - {{/chip_server_cluster_attributes}} - #} - return writeAttributeMap; } } diff --git a/scripts/py_matter_idl/matter_idl/matter_idl_types.py b/scripts/py_matter_idl/matter_idl/matter_idl_types.py index 1877cb529cefba..b4a47218a4d6d2 100644 --- a/scripts/py_matter_idl/matter_idl/matter_idl_types.py +++ b/scripts/py_matter_idl/matter_idl/matter_idl_types.py @@ -138,7 +138,7 @@ def is_subscribable(self): @property def requires_timed_write(self): - return not (AttributeQuality.TIMED_WRITE & self.qualities) + return AttributeQuality.TIMED_WRITE & self.qualities @dataclass From eaa872bcbb0f53249612e4b85ebcf86907798936 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 20 Mar 2023 13:46:19 -0400 Subject: [PATCH 08/28] Fix conditional in requires_timed_write --- scripts/py_matter_idl/matter_idl/matter_idl_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/py_matter_idl/matter_idl/matter_idl_types.py b/scripts/py_matter_idl/matter_idl/matter_idl_types.py index 1877cb529cefba..b4a47218a4d6d2 100644 --- a/scripts/py_matter_idl/matter_idl/matter_idl_types.py +++ b/scripts/py_matter_idl/matter_idl/matter_idl_types.py @@ -138,7 +138,7 @@ def is_subscribable(self): @property def requires_timed_write(self): - return not (AttributeQuality.TIMED_WRITE & self.qualities) + return AttributeQuality.TIMED_WRITE & self.qualities @dataclass From 454638569b12d794c1af7c47b1287a6a201d91d0 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 20 Mar 2023 14:48:02 -0400 Subject: [PATCH 09/28] Most codegen looks ok. Java boxing logic is suspect still --- .../matter_idl/generators/filters.py | 15 ++++--- .../generators/java/ClusterWriteMapping.jinja | 39 +++++++++++-------- 2 files changed, 31 insertions(+), 23 deletions(-) diff --git a/scripts/py_matter_idl/matter_idl/generators/filters.py b/scripts/py_matter_idl/matter_idl/generators/filters.py index afd40112cd29b4..f0847e559036d9 100644 --- a/scripts/py_matter_idl/matter_idl/generators/filters.py +++ b/scripts/py_matter_idl/matter_idl/generators/filters.py @@ -24,14 +24,16 @@ def normalize_acronyms(s: str) -> str: return s.replace('WiFi', 'Wifi').replace('WI_FI', 'WIFI') -def lower_camel_case(s: str) -> str: - """Like camelcase, except it ensures the first letter is actually - lower case. - """ - s = stringcase.camelcase(s) +def lowfirst(s: str) -> str: + """Make the first letter lowercase. """ return s[0].lower() + s[1:] +def upfirst(s: str) -> str: + """Make the first letter uppercase """ + return s[0].upper() + s[1:] + + def RegisterCommonFilters(filtermap): """ Register filters that are NOT considered platform-generator specific. @@ -50,4 +52,5 @@ def RegisterCommonFilters(filtermap): filtermap['spinalcase'] = stringcase.spinalcase filtermap['normalize_acronyms'] = normalize_acronyms - filtermap['lowercamelcase'] = lower_camel_case + filtermap['lowfirst'] = lowfirst + filtermap['upfirst'] = upfirst diff --git a/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja b/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja index e50bc5f71326e1..94c84096d20620 100644 --- a/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja +++ b/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja @@ -1,3 +1,9 @@ +package chip.devicecontroller; + +import chip.clusterinfo.CommandParameterInfo; +import chip.clusterinfo.InteractionInfo; +import chip.devicecontroller.ChipClusters.DefaultClusterCallback; +import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; @@ -6,40 +12,39 @@ public class ClusterWriteMapping { Map> writeAttributeMap = new HashMap<>(); {%- for cluster in clientClusters | sort(attribute='code') %} + {%- set typeLookup = idl | createLookupContext(cluster) %} Map write{{cluster.name}}InteractionInfo = new LinkedHashMap<>(); - {%- for attribute in cluster.attributes | sort(attribute='name') %} {#- TODO: add support for struct-typed attributes -#} {% if not attribute.definition.is_list and attribute.is_writable %} - Map write{{cluster.name}}{{attribute.definition.name}}CommandParams = new LinkedHashMap(); - CommandParameterInfo {{cluster.name | lowercamelcase}}{{attribute.definition.name | lowercamelcase}}CommandParameterInfo = + Map write{{cluster.name}}{{attribute.definition.name | upfirst}}CommandParams = new LinkedHashMap(); + {%- set encodable = attribute.definition | asEncodable(typeLookup) %} + CommandParameterInfo {{cluster.name | lowfirst}}{{attribute.definition.name | lowfirst}}CommandParameterInfo = new CommandParameterInfo( "value", - FIXME, {# {{asJavaType type null parent.parent.name removeGenericType=true}}.class, #} - FIXME {# {{asJavaType type null parent.parent.name underlyingType=true}}.class #} + {{ encodable.boxed_java_type }}.class, {# {{asJavaType type null parent.parent.name removeGenericType=true}}.class, #} + {{ encodable.boxed_java_type }}.class {# {{asJavaType type null parent.parent.name underlyingType=true}}.class #} ); - write{{cluster.name}}{{attribute.definition.name}}CommandParams.put( + write{{cluster.name}}{{attribute.definition.name | upfirst}}CommandParams.put( "value", - {{cluster.name | lowercamelcase}}{{attribute.definition.name | lowercamelcase}}CommandParameterInfo + {{cluster.name | lowfirst}}{{attribute.definition.name | lowfirst}}CommandParameterInfo ); - InteractionInfo write{{cluster.name}}{{attribute.definition.name}}AttributeInteractionInfo = new InteractionInfo( + InteractionInfo write{{cluster.name}}{{attribute.definition.name | upfirst}}AttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { ((ChipClusters.{{cluster.name}}Cluster) cluster).write{{cluster.name}}Attribute( (DefaultClusterCallback) callback, - FIXME, {# ({{asJavaBoxedType type chipType}}) #} - commandArguments.get("value") + ({{ encodable.boxed_java_type }}) commandArguments.get("value") {%- if attribute.requires_timed_write -%}, 1000 {% endif %} ); }, () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - write{{cluster.name}}{{attribute.definition.name}}CommandParams + write{{cluster.name}}{{attribute.definition.name | upfirst}}CommandParams ); - write{{cluster.name}}InteractionInfo.put("write{{attribute.definition.name}}Attribute", write{{cluster.name}}{{attribute.definition.name}}AttributeInteractionInfo); - {% endif %} - {% endfor %} - - writeAttributeMap.put("{{cluster.name | lowercamelcase}}", write{{cluster.name}}InteractionInfo); - {% endfor %} + write{{cluster.name}}InteractionInfo.put("write{{attribute.definition.name | upfirst}}Attribute", write{{cluster.name}}{{attribute.definition.name | upfirst}}AttributeInteractionInfo); + {%- endif %} + {%- endfor %} + writeAttributeMap.put("{{cluster.name | lowfirst}}", write{{cluster.name}}InteractionInfo); + {%- endfor %} return writeAttributeMap; } From aae71820cf47c8a0cfc101f5cde8d4d1882e0203 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 20 Mar 2023 14:52:16 -0400 Subject: [PATCH 10/28] More updates, output idential EXCEPT types for boxing --- .../matter_idl/generators/java/ClusterWriteMapping.jinja | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja b/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja index 94c84096d20620..5d27bf61e4a58b 100644 --- a/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja +++ b/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja @@ -14,7 +14,7 @@ public class ClusterWriteMapping { {%- for cluster in clientClusters | sort(attribute='code') %} {%- set typeLookup = idl | createLookupContext(cluster) %} Map write{{cluster.name}}InteractionInfo = new LinkedHashMap<>(); - {%- for attribute in cluster.attributes | sort(attribute='name') %} + {%- for attribute in cluster.attributes | sort(attribute='name') | attributesWithCallback(typeLookup) %} {#- TODO: add support for struct-typed attributes -#} {% if not attribute.definition.is_list and attribute.is_writable %} Map write{{cluster.name}}{{attribute.definition.name | upfirst}}CommandParams = new LinkedHashMap(); @@ -31,7 +31,7 @@ public class ClusterWriteMapping { ); InteractionInfo write{{cluster.name}}{{attribute.definition.name | upfirst}}AttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.{{cluster.name}}Cluster) cluster).write{{cluster.name}}Attribute( + ((ChipClusters.{{cluster.name}}Cluster) cluster).write{{attribute.definition.name | upfirst}}Attribute( (DefaultClusterCallback) callback, ({{ encodable.boxed_java_type }}) commandArguments.get("value") {%- if attribute.requires_timed_write -%}, 1000 {% endif %} @@ -44,7 +44,7 @@ public class ClusterWriteMapping { {%- endif %} {%- endfor %} writeAttributeMap.put("{{cluster.name | lowfirst}}", write{{cluster.name}}InteractionInfo); - {%- endfor %} + {%- endfor -%} return writeAttributeMap; } From 8985670859b193d53d286b32025eb17928947d10 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 20 Mar 2023 14:53:09 -0400 Subject: [PATCH 11/28] Increase 1000 to 10000 to match original template --- .../matter_idl/generators/java/ClusterWriteMapping.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja b/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja index 5d27bf61e4a58b..bda9196a3ea22b 100644 --- a/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja +++ b/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja @@ -34,7 +34,7 @@ public class ClusterWriteMapping { ((ChipClusters.{{cluster.name}}Cluster) cluster).write{{attribute.definition.name | upfirst}}Attribute( (DefaultClusterCallback) callback, ({{ encodable.boxed_java_type }}) commandArguments.get("value") - {%- if attribute.requires_timed_write -%}, 1000 {% endif %} + {%- if attribute.requires_timed_write -%}, 10000 {% endif %} ); }, () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), From 6e5cbaacbb9d349c4fe3bf106a74fc6186a48e50 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 20 Mar 2023 15:09:32 -0400 Subject: [PATCH 12/28] Fix byte count comparison when long starts to take effect --- scripts/py_matter_idl/matter_idl/generators/java/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/py_matter_idl/matter_idl/generators/java/__init__.py b/scripts/py_matter_idl/matter_idl/generators/java/__init__.py index 8e39671fa07dcb..79d286ae61fcfa 100644 --- a/scripts/py_matter_idl/matter_idl/generators/java/__init__.py +++ b/scripts/py_matter_idl/matter_idl/generators/java/__init__.py @@ -241,7 +241,8 @@ def boxed_java_type(self): else: raise Exception("Unknown fundamental type") elif type(t) == BasicInteger: - if t.byte_count >= 4: + # the >= 3 will include int24_t to be considered "long" + if t.byte_count >= 3: return "Long" else: return "Integer" @@ -278,7 +279,7 @@ def boxed_java_signature(self): else: raise Exception("Unknown fundamental type") elif type(t) == BasicInteger: - if t.byte_count >= 4: + if t.byte_count >= 3: return "Ljava/lang/Long;" else: return "Ljava/lang/Integer;" From 9955422b873f30530044475c73d4d3a22413f805 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 20 Mar 2023 15:14:21 -0400 Subject: [PATCH 13/28] Fix length of underlying bitmap type sizing --- .../matter_idl/generators/java/__init__.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/py_matter_idl/matter_idl/generators/java/__init__.py b/scripts/py_matter_idl/matter_idl/generators/java/__init__.py index 79d286ae61fcfa..657b748120776b 100644 --- a/scripts/py_matter_idl/matter_idl/generators/java/__init__.py +++ b/scripts/py_matter_idl/matter_idl/generators/java/__init__.py @@ -254,7 +254,10 @@ def boxed_java_type(self): elif type(t) == IdlEnumType: return "Integer" elif type(t) == IdlBitmapType: - return "Integer" + if t.base_type.byte_count >= 3: + return "Long" + else: + return "Integer" else: return "Object" @@ -291,7 +294,10 @@ def boxed_java_signature(self): elif type(t) == IdlEnumType: return "Ljava/lang/Integer;" elif type(t) == IdlBitmapType: - return "Ljava/lang/Integer;" + if t.base_type.byte_count >= 3: + return "Ljava/lang/Long;" + else: + return "Ljava/lang/Integer;" else: return "Lchip/devicecontroller/ChipStructs${}Cluster{};".format(self.context.cluster.name, self.data_type.name) From 33e70ae6deb0dee9a8b5850fd9e0858026778b0f Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 20 Mar 2023 15:23:49 -0400 Subject: [PATCH 14/28] Fixed files, they are IDENTICAL --- .../matter_idl/generators/java/__init__.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/py_matter_idl/matter_idl/generators/java/__init__.py b/scripts/py_matter_idl/matter_idl/generators/java/__init__.py index 657b748120776b..2c6e0c3df0bb5d 100644 --- a/scripts/py_matter_idl/matter_idl/generators/java/__init__.py +++ b/scripts/py_matter_idl/matter_idl/generators/java/__init__.py @@ -252,7 +252,10 @@ def boxed_java_type(self): else: return "String" elif type(t) == IdlEnumType: - return "Integer" + if t.base_type.byte_count >= 3: + return "Long" + else: + return "Integer" elif type(t) == IdlBitmapType: if t.base_type.byte_count >= 3: return "Long" @@ -292,7 +295,10 @@ def boxed_java_signature(self): else: return "Ljava/lang/String;" elif type(t) == IdlEnumType: - return "Ljava/lang/Integer;" + if t.base_type.byte_count >= 3: + return "Ljava/lang/Long;" + else: + return "Ljava/lang/Integer;" elif type(t) == IdlBitmapType: if t.base_type.byte_count >= 3: return "Ljava/lang/Long;" From cdc59f31e82788df0ac55050fb029ef3eb1e3d16 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Tue, 21 Mar 2023 11:01:45 -0400 Subject: [PATCH 15/28] Integrate java-jni and java-class since build rules are different between cpp and java files --- build/chip/chip_codegen.gni | 8 ++-- scripts/codegen.py | 2 +- scripts/pregenerate/__init__.py | 6 ++- scripts/pregenerate/using_codegen.py | 18 +++++++- scripts/py_matter_idl/files.gni | 1 + .../matter_idl/generators/java/__init__.py | 44 ++++++++++++++----- .../matter_idl/generators/registry.py | 14 +++--- .../matter_idl/test_generators.py | 8 ++-- .../matter_idl/tests/available_tests.yaml | 2 +- src/controller/data_model/BUILD.gn | 2 +- 10 files changed, 74 insertions(+), 31 deletions(-) diff --git a/build/chip/chip_codegen.gni b/build/chip/chip_codegen.gni index 49ba661f679e38..88658bcf14eb5c 100644 --- a/build/chip/chip_codegen.gni +++ b/build/chip/chip_codegen.gni @@ -263,7 +263,7 @@ template("_chip_build_time_zapgen") { # The ".matter" file to use to start the code generation # # generator -# Name of the generator to use (e.g. java, cpp-app) +# Name of the generator to use (e.g. java-jni, java-class, cpp-app) # # outputs # Explicit names of the expected outputs. Enforced to validate that @@ -296,7 +296,7 @@ template("_chip_build_time_zapgen") { # # chip_codegen("java-jni-generate") { # input = "controller-clusters.matter" -# generator = "java" +# generator = "java-jni" # # outputs = [ # "jni/IdentifyClient-ReadImpl.cpp", @@ -358,7 +358,7 @@ template("chip_codegen") { # The ".matter" file to use to start the code generation # # generator -# Name of the generator to use (e.g. java, cpp-app) +# Name of the generator to use (e.g. java-jni, java-class, cpp-app) # # outputs # Explicit names of the expected outputs. Enforced to validate that @@ -391,7 +391,7 @@ template("chip_codegen") { # # chip_codegen("java-jni-generate") { # input = "controller-clusters.matter" -# generator = "java" +# generator = "java-jni" # # outputs = [ # "jni/IdentifyClient-ReadImpl.cpp", diff --git a/scripts/codegen.py b/scripts/codegen.py index 60c2ee8d9b6777..35ade3c6d9e29f 100755 --- a/scripts/codegen.py +++ b/scripts/codegen.py @@ -69,7 +69,7 @@ def write_new_data(self, relative_path: str, content: str): help='Determines the verbosity of script output') @click.option( '--generator', - default='JAVA', + default='JAVA_JNI', help='What code generator to run. The choices are: '+'|'.join(GENERATORS.keys())+'. ' + 'When using custom, provide the plugin path using `--generator custom::` syntax. ' + 'For example, `--generator custom:./my_plugin:my_plugin_module` will load `./my_plugin/my_plugin_module/__init.py__` ' + diff --git a/scripts/pregenerate/__init__.py b/scripts/pregenerate/__init__.py index c5033f406fdf7c..f664f5745b81dc 100644 --- a/scripts/pregenerate/__init__.py +++ b/scripts/pregenerate/__init__.py @@ -20,7 +20,8 @@ from typing import Iterator, List, Optional from .types import IdlFileType, InputIdlFile -from .using_codegen import CodegenBridgePregenerator, CodegenCppAppPregenerator, CodegenJavaPregenerator +from .using_codegen import (CodegenBridgePregenerator, CodegenCppAppPregenerator, CodegenJavaClassPregenerator, + CodegenJavaJNIPregenerator) from .using_zap import ZapApplicationPregenerator @@ -77,7 +78,8 @@ def FindPregenerationTargets(sdk_root: str, filter: TargetFilter, runner): generators = [ # Jinja-based codegen CodegenBridgePregenerator(sdk_root), - CodegenJavaPregenerator(sdk_root), + CodegenJavaJNIPregenerator(sdk_root), + CodegenJavaClassPregenerator(sdk_root), CodegenCppAppPregenerator(sdk_root), # ZAP codegen diff --git a/scripts/pregenerate/using_codegen.py b/scripts/pregenerate/using_codegen.py index 0ca159704b6f4a..334df7310ff308 100644 --- a/scripts/pregenerate/using_codegen.py +++ b/scripts/pregenerate/using_codegen.py @@ -73,7 +73,7 @@ def CreateTarget(self, idl: InputIdlFile, runner): return CodegenTarget(sdk_root=self.sdk_root, idl=idl, generator="bridge", runner=runner) -class CodegenJavaPregenerator: +class CodegenJavaJNIPregenerator: """Pregeneration logic for "java" codegen.py outputs""" def __init__(self, sdk_root): @@ -85,7 +85,21 @@ def Accept(self, idl: InputIdlFile): return idl.relative_path == "src/controller/data_model/controller-clusters.matter" def CreateTarget(self, idl: InputIdlFile, runner): - return CodegenTarget(sdk_root=self.sdk_root, idl=idl, generator="java", runner=runner) + return CodegenTarget(sdk_root=self.sdk_root, idl=idl, generator="java-jni", runner=runner) + +class CodegenJavaClassPregenerator: + """Pregeneration logic for "java" codegen.py outputs""" + + def __init__(self, sdk_root): + self.sdk_root = sdk_root + + def Accept(self, idl: InputIdlFile): + # Java is highly specific, a single path is acceptable for dynamic + # bridge codegen + return idl.relative_path == "src/controller/data_model/controller-clusters.matter" + + def CreateTarget(self, idl: InputIdlFile, runner): + return CodegenTarget(sdk_root=self.sdk_root, idl=idl, generator="java-class", runner=runner) class CodegenCppAppPregenerator: diff --git a/scripts/py_matter_idl/files.gni b/scripts/py_matter_idl/files.gni index aa22f705caff2d..23de251a13b698 100644 --- a/scripts/py_matter_idl/files.gni +++ b/scripts/py_matter_idl/files.gni @@ -8,6 +8,7 @@ matter_idl_generator_templates = [ "${chip_root}/scripts/py_matter_idl/matter_idl/generators/bridge/BridgeClustersGlobalStructs.jinja", "${chip_root}/scripts/py_matter_idl/matter_idl/generators/java/ChipClustersCpp.jinja", "${chip_root}/scripts/py_matter_idl/matter_idl/generators/java/ChipClustersRead.jinja", + "${chip_root}/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja", "${chip_root}/scripts/py_matter_idl/matter_idl/generators/cpp/application/CallbackStubSource.jinja", "${chip_root}/scripts/py_matter_idl/matter_idl/generators/cpp/application/PluginApplicationCallbacksHeader.jinja", ] diff --git a/scripts/py_matter_idl/matter_idl/generators/java/__init__.py b/scripts/py_matter_idl/matter_idl/generators/java/__init__.py index ac0002c7db8675..d5ac3519008b8e 100644 --- a/scripts/py_matter_idl/matter_idl/generators/java/__init__.py +++ b/scripts/py_matter_idl/matter_idl/generators/java/__init__.py @@ -356,9 +356,11 @@ def CanGenerateSubscribe(attr: Attribute, lookup: TypeLookupContext) -> bool: return not lookup.is_struct_type(attr.definition.data_type.name) -class JavaGenerator(CodeGenerator): +class __JavaCodeGenerator(CodeGenerator): """ - Generation of java code for matter. + Code generation for java-specific files. + + Registers filters used by all java generators. """ def __init__(self, storage: GeneratorStorage, idl: Idl, **kargs): @@ -378,21 +380,18 @@ def __init__(self, storage: GeneratorStorage, idl: Idl, **kargs): self.jinja_env.filters['createLookupContext'] = CreateLookupContext self.jinja_env.filters['canGenerateSubscribe'] = CanGenerateSubscribe + +class JavaJNIGenerator(__JavaCodeGenerator) + """Generates JNI java files (i.e. C++ source/headers).""" + + def __init__(self, *args, **kargs): + super().__init__(*args, **kargs) + def internal_render_all(self): """ Renders .CPP files required for JNI support. """ - # Java generated code - self.internal_render_one_output( - template_path="java/ClusterWriteMapping.jinja", - output_file_name="java/chip/devicecontroller/ClusterWriteMapping.java", - vars={ - 'idl': self.idl, - 'clientClusters': [c for c in self.idl.clusters if c.side == ClusterSide.CLIENT], - } - ) - # Every cluster has its own impl, to avoid # very large compilations (running out of RAM) for cluster in self.idl.clusters: @@ -416,3 +415,24 @@ def internal_render_all(self): 'typeLookup': TypeLookupContext(self.idl, cluster), } ) + + +class JavaClassGenerator(__JavaCodeGenerator) + """Generates .java files """ + + def __init__(self, *args, **kargs): + super().__init__(*args, **kargs) + + def internal_render_all(self): + """ + Renders .java files required for java matter support + """ + + self.internal_render_one_output( + template_path="java/ClusterWriteMapping.jinja", + output_file_name="java/chip/devicecontroller/ClusterWriteMapping.java", + vars={ + 'idl': self.idl, + 'clientClusters': [c for c in self.idl.clusters if c.side == ClusterSide.CLIENT], + } + ) diff --git a/scripts/py_matter_idl/matter_idl/generators/registry.py b/scripts/py_matter_idl/matter_idl/generators/registry.py index b3aab6df7b4cf0..66e413be66d142 100644 --- a/scripts/py_matter_idl/matter_idl/generators/registry.py +++ b/scripts/py_matter_idl/matter_idl/generators/registry.py @@ -17,7 +17,7 @@ from matter_idl.generators.bridge import BridgeGenerator from matter_idl.generators.cpp.application import CppApplicationGenerator -from matter_idl.generators.java import JavaGenerator +from matter_idl.generators.java import JavaJNIGenerator, JavaClassGenerator class CodeGenerator(enum.Enum): @@ -26,14 +26,17 @@ class CodeGenerator(enum.Enum): the simple enum value (user friendly and can be a command line input) into underlying generators. """ - JAVA = enum.auto() + JAVA_JNI = enum.auto() + JAVA_CLASS = enum.auto() BRIDGE = enum.auto() CPP_APPLICATION = enum.auto() CUSTOM = enum.auto() def Create(self, *args, **kargs): - if self == CodeGenerator.JAVA: - return JavaGenerator(*args, **kargs) + if self == CodeGenerator.JAVA_JNI: + return JavaJNIGenerator(*args, **kargs) + elif self == CodeGenerator.JAVA_CLASS: + return JavaClassGenerator(*args, **kargs) elif self == CodeGenerator.BRIDGE: return BridgeGenerator(*args, **kargs) elif self == CodeGenerator.CPP_APPLICATION: @@ -63,7 +66,8 @@ def FromString(name): # to uniquely identify them when running command line tools or # executing tests GENERATORS = { - 'java': CodeGenerator.JAVA, + 'java-jni': CodeGenerator.JAVA_JNI, + 'java-class': CodeGenerator.JAVA_CLASS, 'bridge': CodeGenerator.BRIDGE, 'cpp-app': CodeGenerator.CPP_APPLICATION, 'custom': CodeGenerator.CUSTOM, diff --git a/scripts/py_matter_idl/matter_idl/test_generators.py b/scripts/py_matter_idl/matter_idl/test_generators.py index 39a42dbe4a0786..3264a346283f3c 100755 --- a/scripts/py_matter_idl/matter_idl/test_generators.py +++ b/scripts/py_matter_idl/matter_idl/test_generators.py @@ -33,7 +33,7 @@ from matter_idl.generators import GeneratorStorage from matter_idl.generators.bridge import BridgeGenerator from matter_idl.generators.cpp.application import CppApplicationGenerator -from matter_idl.generators.java import JavaGenerator +from matter_idl.generators.java import JavaJNIGenerator, JavaClassGenerator from matter_idl.matter_idl_types import Idl TESTS_DIR = os.path.join(os.path.dirname(__file__), "tests") @@ -116,8 +116,10 @@ def add_test_cases(self, yaml_test_case_dict): self.test_cases.append(test_case) def _create_generator(self, storage: GeneratorStorage, idl: Idl): - if self.generator_name.lower() == 'java': - return JavaGenerator(storage, idl) + if self.generator_name.lower() == 'java-jni': + return JavaJNIGenerator(storage, idl) + if self.generator_name.lower() == 'java-class': + return JavaClassGenerator(storage, idl) if self.generator_name.lower() == 'bridge': return BridgeGenerator(storage, idl) if self.generator_name.lower() == 'cpp-app': diff --git a/scripts/py_matter_idl/matter_idl/tests/available_tests.yaml b/scripts/py_matter_idl/matter_idl/tests/available_tests.yaml index 1b5483588b9b52..944515314dfcf2 100644 --- a/scripts/py_matter_idl/matter_idl/tests/available_tests.yaml +++ b/scripts/py_matter_idl/matter_idl/tests/available_tests.yaml @@ -10,7 +10,7 @@ # - input_file is the input IDL # - output_file/golden_path are the expected output file names # and the expected content for those output files. -java: +java-jni: inputs/simple_attribute.matter: jni/MyClusterClient-ReadImpl.cpp: outputs/simple_attribute/jni/MyClusterClient-ReadImpl.cpp jni/MyClusterClient-InvokeSubscribeImpl.cpp: outputs/simple_attribute/jni/MyClusterClient-InvokeSubscribeImpl.cpp diff --git a/src/controller/data_model/BUILD.gn b/src/controller/data_model/BUILD.gn index af701eb6fd43f1..304bd7acea4942 100644 --- a/src/controller/data_model/BUILD.gn +++ b/src/controller/data_model/BUILD.gn @@ -39,7 +39,7 @@ if (current_os == "android" || build_java_matter_controller) { chip_codegen("java-jni-generate") { input = "controller-clusters.matter" - generator = "java" + generator = "java-jni" outputs = [ "jni/IdentifyClient-ReadImpl.cpp", From ad8d6d1552d965a1ace32a05588a2ff5e2644e69 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Tue, 21 Mar 2023 14:26:58 -0400 Subject: [PATCH 16/28] Fix python syntax --- scripts/py_matter_idl/matter_idl/generators/java/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/py_matter_idl/matter_idl/generators/java/__init__.py b/scripts/py_matter_idl/matter_idl/generators/java/__init__.py index d5ac3519008b8e..562f589301d010 100644 --- a/scripts/py_matter_idl/matter_idl/generators/java/__init__.py +++ b/scripts/py_matter_idl/matter_idl/generators/java/__init__.py @@ -381,7 +381,7 @@ def __init__(self, storage: GeneratorStorage, idl: Idl, **kargs): self.jinja_env.filters['canGenerateSubscribe'] = CanGenerateSubscribe -class JavaJNIGenerator(__JavaCodeGenerator) +class JavaJNIGenerator(__JavaCodeGenerator): """Generates JNI java files (i.e. C++ source/headers).""" def __init__(self, *args, **kargs): @@ -417,7 +417,7 @@ def internal_render_all(self): ) -class JavaClassGenerator(__JavaCodeGenerator) +class JavaClassGenerator(__JavaCodeGenerator): """Generates .java files """ def __init__(self, *args, **kargs): From 300c57ba3ccc58c0af141e6e7b92a38e11b08ba3 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Tue, 21 Mar 2023 16:32:37 -0400 Subject: [PATCH 17/28] Switch default to not have underscore --- scripts/codegen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/codegen.py b/scripts/codegen.py index 35ade3c6d9e29f..564b8eac3c3f19 100755 --- a/scripts/codegen.py +++ b/scripts/codegen.py @@ -69,7 +69,7 @@ def write_new_data(self, relative_path: str, content: str): help='Determines the verbosity of script output') @click.option( '--generator', - default='JAVA_JNI', + default='java-jni', help='What code generator to run. The choices are: '+'|'.join(GENERATORS.keys())+'. ' + 'When using custom, provide the plugin path using `--generator custom::` syntax. ' + 'For example, `--generator custom:./my_plugin:my_plugin_module` will load `./my_plugin/my_plugin_module/__init.py__` ' + From 6a6bc5def05215869b157a9e4779d7632a3a887a Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Tue, 21 Mar 2023 17:35:37 -0400 Subject: [PATCH 18/28] Add java codegen via jinja to zap_regen_all --- scripts/tools/zap_regen_all.py | 58 +- src/controller/java/BUILD.gn | 2 +- .../devicecontroller/ClusterWriteMapping.java | 3952 +++++++++++++++++ .../ClusterInfo-write-interaction.zapt | 49 - .../devicecontroller/ClusterWriteMapping.java | 3164 ------------- 5 files changed, 4009 insertions(+), 3216 deletions(-) create mode 100644 src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java delete mode 100644 src/controller/java/templates/ClusterInfo-write-interaction.zapt delete mode 100644 src/controller/java/zap-generated/chip/devicecontroller/ClusterWriteMapping.java diff --git a/scripts/tools/zap_regen_all.py b/scripts/tools/zap_regen_all.py index 0da0969086f4a6..fb3983a141357f 100755 --- a/scripts/tools/zap_regen_all.py +++ b/scripts/tools/zap_regen_all.py @@ -41,6 +41,10 @@ class TargetType(Flag): # Global templates: generally examples and chip controller GLOBAL = auto() + # codgen.py templates (generally java templates, which cannot be built + # at compile time currently) + IDL_CODEGEN = auto() + # App-specific templates (see getSpecificTemplatesTargets) SPECIFIC = auto() @@ -48,12 +52,13 @@ class TargetType(Flag): GOLDEN_TEST_IMAGES = auto() # All possible targets. Convenience constant - ALL = TESTS | GLOBAL | SPECIFIC | GOLDEN_TEST_IMAGES + ALL = TESTS | GLOBAL | IDL_CODEGEN | SPECIFIC | GOLDEN_TEST_IMAGES __TARGET_TYPES__ = { 'tests': TargetType.TESTS, 'global': TargetType.GLOBAL, + 'idl_codegen': TargetType.IDL_CODEGEN, 'specific': TargetType.SPECIFIC, 'golden_test_images': TargetType.GOLDEN_TEST_IMAGES, 'all': TargetType.ALL, @@ -196,6 +201,36 @@ def log_command(self): logging.info(" %s" % " ".join(self.command)) +class JinjaCodegenTarget(): + def __init__(self, generator: str, output_directory: str, idl_path: str): + # This runs a test, but the important bit is we pass `--regenerate` + # to it and this will cause it to OVERWRITE golden images. + self.idl_path = idl_path + self.generator = generator + self.output_directory = output_directory + self.command = ["./scripts/codegen.py", "--output-dir", output_directory, + "--generator", generator, idl_path] + + def generate(self) -> TargetRunStats: + generate_start = time.time() + subprocess.check_call(self.command) + generate_end = time.time() + + return TargetRunStats( + generate_time=generate_end - generate_start, + config=f'codegen:{self.generator}', + template=self.idl_path, + ) + + def distinct_output(self): + # Fake output - this is a single target that generates golden images + return ZapDistinctOutput(input_template=f'{self.generator}{self.idl_path}', output_directory=self.output_directory) + + def log_command(self): + logging.info(" %s" % " ".join(self.command)) + + + def checkPythonVersion(): if sys.version_info[0] < 3: print('Must use Python 3. Current version is ' + @@ -295,7 +330,23 @@ def getGlobalTemplatesTargets(): targets.append(ZAPGenerateTarget( 'src/controller/data_model/controller-clusters.zap', template="src/app/zap-templates/app-templates.json", - output_dir=os.path.join('zzz_generated/darwin/controller-clusters/zap-generated'))) + output_dir='zzz_generated/darwin/controller-clusters/zap-generated')) + + targets.append(JinjaCodegenTarget( + generator="java-class", + idl_path="src/controller/data_model/controller-clusters.matter", + output_directory="src/controller/java/generated")) + + return targets + + +def getCodegenTemplates(): + targets = [] + + targets.append(JinjaCodegenTarget( + generator="java-class", + idl_path="src/controller/data_model/controller-clusters.matter", + output_directory="src/controller/java/generated")) return targets @@ -364,6 +415,9 @@ def getTargets(type, test_target): if type & TargetType.SPECIFIC: targets.extend(getSpecificTemplatesTargets()) + if type & TargetType.IDL_CODEGEN: + targets.extend(getCodegenTemplates()) + if type & TargetType.GOLDEN_TEST_IMAGES: targets.extend(getGoldenTestImageTargets()) diff --git a/src/controller/java/BUILD.gn b/src/controller/java/BUILD.gn index 27d14372b9c959..9dc043fccc91a8 100644 --- a/src/controller/java/BUILD.gn +++ b/src/controller/java/BUILD.gn @@ -212,6 +212,7 @@ android_library("java") { data_deps = [ ":jni" ] sources = [ + "generated/java/chip/devicecontroller/ClusterWriteMapping.java", "src/chip/clusterinfo/ClusterCommandCallback.java", "src/chip/clusterinfo/ClusterInfo.java", "src/chip/clusterinfo/CommandParameterInfo.java", @@ -262,7 +263,6 @@ android_library("java") { "zap-generated/chip/devicecontroller/ChipStructs.java", "zap-generated/chip/devicecontroller/ClusterInfoMapping.java", "zap-generated/chip/devicecontroller/ClusterReadMapping.java", - "zap-generated/chip/devicecontroller/ClusterWriteMapping.java", ] if (build_java_matter_controller) { diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java new file mode 100644 index 00000000000000..1eee99c7cd6182 --- /dev/null +++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java @@ -0,0 +1,3952 @@ +package chip.devicecontroller; + +import chip.clusterinfo.CommandParameterInfo; +import chip.clusterinfo.InteractionInfo; +import chip.devicecontroller.ChipClusters.DefaultClusterCallback; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; + +public class ClusterWriteMapping { + public Map> getWriteAttributeMap() { + Map> writeAttributeMap = new HashMap<>(); + Map writeIdentifyInteractionInfo = new LinkedHashMap<>(); + Map writeIdentifyIdentifyTimeCommandParams = new LinkedHashMap(); + CommandParameterInfo identifyidentifyTimeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeIdentifyIdentifyTimeCommandParams.put( + "value", + identifyidentifyTimeCommandParameterInfo + ); + InteractionInfo writeIdentifyIdentifyTimeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.IdentifyCluster) cluster).writeIdentifyTimeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeIdentifyIdentifyTimeCommandParams + ); + writeIdentifyInteractionInfo.put("writeIdentifyTimeAttribute", writeIdentifyIdentifyTimeAttributeInteractionInfo); + writeAttributeMap.put("identify", writeIdentifyInteractionInfo); + Map writeGroupsInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("groups", writeGroupsInteractionInfo); + Map writeScenesInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("scenes", writeScenesInteractionInfo); + Map writeOnOffInteractionInfo = new LinkedHashMap<>(); + Map writeOnOffOnTimeCommandParams = new LinkedHashMap(); + CommandParameterInfo onOffonTimeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeOnOffOnTimeCommandParams.put( + "value", + onOffonTimeCommandParameterInfo + ); + InteractionInfo writeOnOffOnTimeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster).writeOnTimeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeOnOffOnTimeCommandParams + ); + writeOnOffInteractionInfo.put("writeOnTimeAttribute", writeOnOffOnTimeAttributeInteractionInfo); + Map writeOnOffOffWaitTimeCommandParams = new LinkedHashMap(); + CommandParameterInfo onOffoffWaitTimeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeOnOffOffWaitTimeCommandParams.put( + "value", + onOffoffWaitTimeCommandParameterInfo + ); + InteractionInfo writeOnOffOffWaitTimeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster).writeOffWaitTimeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeOnOffOffWaitTimeCommandParams + ); + writeOnOffInteractionInfo.put("writeOffWaitTimeAttribute", writeOnOffOffWaitTimeAttributeInteractionInfo); + Map writeOnOffStartUpOnOffCommandParams = new LinkedHashMap(); + CommandParameterInfo onOffstartUpOnOffCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeOnOffStartUpOnOffCommandParams.put( + "value", + onOffstartUpOnOffCommandParameterInfo + ); + InteractionInfo writeOnOffStartUpOnOffAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster).writeStartUpOnOffAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeOnOffStartUpOnOffCommandParams + ); + writeOnOffInteractionInfo.put("writeStartUpOnOffAttribute", writeOnOffStartUpOnOffAttributeInteractionInfo); + writeAttributeMap.put("onOff", writeOnOffInteractionInfo); + Map writeOnOffSwitchConfigurationInteractionInfo = new LinkedHashMap<>(); + Map writeOnOffSwitchConfigurationSwitchActionsCommandParams = new LinkedHashMap(); + CommandParameterInfo onOffSwitchConfigurationswitchActionsCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeOnOffSwitchConfigurationSwitchActionsCommandParams.put( + "value", + onOffSwitchConfigurationswitchActionsCommandParameterInfo + ); + InteractionInfo writeOnOffSwitchConfigurationSwitchActionsAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffSwitchConfigurationCluster) cluster).writeSwitchActionsAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeOnOffSwitchConfigurationSwitchActionsCommandParams + ); + writeOnOffSwitchConfigurationInteractionInfo.put("writeSwitchActionsAttribute", writeOnOffSwitchConfigurationSwitchActionsAttributeInteractionInfo); + writeAttributeMap.put("onOffSwitchConfiguration", writeOnOffSwitchConfigurationInteractionInfo); + Map writeLevelControlInteractionInfo = new LinkedHashMap<>(); + Map writeLevelControlOptionsCommandParams = new LinkedHashMap(); + CommandParameterInfo levelControloptionsCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeLevelControlOptionsCommandParams.put( + "value", + levelControloptionsCommandParameterInfo + ); + InteractionInfo writeLevelControlOptionsAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster).writeOptionsAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeLevelControlOptionsCommandParams + ); + writeLevelControlInteractionInfo.put("writeOptionsAttribute", writeLevelControlOptionsAttributeInteractionInfo); + Map writeLevelControlOnOffTransitionTimeCommandParams = new LinkedHashMap(); + CommandParameterInfo levelControlonOffTransitionTimeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeLevelControlOnOffTransitionTimeCommandParams.put( + "value", + levelControlonOffTransitionTimeCommandParameterInfo + ); + InteractionInfo writeLevelControlOnOffTransitionTimeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster).writeOnOffTransitionTimeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeLevelControlOnOffTransitionTimeCommandParams + ); + writeLevelControlInteractionInfo.put("writeOnOffTransitionTimeAttribute", writeLevelControlOnOffTransitionTimeAttributeInteractionInfo); + Map writeLevelControlOnLevelCommandParams = new LinkedHashMap(); + CommandParameterInfo levelControlonLevelCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeLevelControlOnLevelCommandParams.put( + "value", + levelControlonLevelCommandParameterInfo + ); + InteractionInfo writeLevelControlOnLevelAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster).writeOnLevelAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeLevelControlOnLevelCommandParams + ); + writeLevelControlInteractionInfo.put("writeOnLevelAttribute", writeLevelControlOnLevelAttributeInteractionInfo); + Map writeLevelControlOnTransitionTimeCommandParams = new LinkedHashMap(); + CommandParameterInfo levelControlonTransitionTimeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeLevelControlOnTransitionTimeCommandParams.put( + "value", + levelControlonTransitionTimeCommandParameterInfo + ); + InteractionInfo writeLevelControlOnTransitionTimeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster).writeOnTransitionTimeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeLevelControlOnTransitionTimeCommandParams + ); + writeLevelControlInteractionInfo.put("writeOnTransitionTimeAttribute", writeLevelControlOnTransitionTimeAttributeInteractionInfo); + Map writeLevelControlOffTransitionTimeCommandParams = new LinkedHashMap(); + CommandParameterInfo levelControloffTransitionTimeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeLevelControlOffTransitionTimeCommandParams.put( + "value", + levelControloffTransitionTimeCommandParameterInfo + ); + InteractionInfo writeLevelControlOffTransitionTimeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster).writeOffTransitionTimeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeLevelControlOffTransitionTimeCommandParams + ); + writeLevelControlInteractionInfo.put("writeOffTransitionTimeAttribute", writeLevelControlOffTransitionTimeAttributeInteractionInfo); + Map writeLevelControlDefaultMoveRateCommandParams = new LinkedHashMap(); + CommandParameterInfo levelControldefaultMoveRateCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeLevelControlDefaultMoveRateCommandParams.put( + "value", + levelControldefaultMoveRateCommandParameterInfo + ); + InteractionInfo writeLevelControlDefaultMoveRateAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster).writeDefaultMoveRateAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeLevelControlDefaultMoveRateCommandParams + ); + writeLevelControlInteractionInfo.put("writeDefaultMoveRateAttribute", writeLevelControlDefaultMoveRateAttributeInteractionInfo); + Map writeLevelControlStartUpCurrentLevelCommandParams = new LinkedHashMap(); + CommandParameterInfo levelControlstartUpCurrentLevelCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeLevelControlStartUpCurrentLevelCommandParams.put( + "value", + levelControlstartUpCurrentLevelCommandParameterInfo + ); + InteractionInfo writeLevelControlStartUpCurrentLevelAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster).writeStartUpCurrentLevelAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeLevelControlStartUpCurrentLevelCommandParams + ); + writeLevelControlInteractionInfo.put("writeStartUpCurrentLevelAttribute", writeLevelControlStartUpCurrentLevelAttributeInteractionInfo); + writeAttributeMap.put("levelControl", writeLevelControlInteractionInfo); + Map writeBinaryInputBasicInteractionInfo = new LinkedHashMap<>(); + Map writeBinaryInputBasicOutOfServiceCommandParams = new LinkedHashMap(); + CommandParameterInfo binaryInputBasicoutOfServiceCommandParameterInfo = + new CommandParameterInfo( + "value", + Boolean.class, + Boolean.class + ); + writeBinaryInputBasicOutOfServiceCommandParams.put( + "value", + binaryInputBasicoutOfServiceCommandParameterInfo + ); + InteractionInfo writeBinaryInputBasicOutOfServiceAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BinaryInputBasicCluster) cluster).writeOutOfServiceAttribute( + (DefaultClusterCallback) callback, + (Boolean) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBinaryInputBasicOutOfServiceCommandParams + ); + writeBinaryInputBasicInteractionInfo.put("writeOutOfServiceAttribute", writeBinaryInputBasicOutOfServiceAttributeInteractionInfo); + Map writeBinaryInputBasicPresentValueCommandParams = new LinkedHashMap(); + CommandParameterInfo binaryInputBasicpresentValueCommandParameterInfo = + new CommandParameterInfo( + "value", + Boolean.class, + Boolean.class + ); + writeBinaryInputBasicPresentValueCommandParams.put( + "value", + binaryInputBasicpresentValueCommandParameterInfo + ); + InteractionInfo writeBinaryInputBasicPresentValueAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BinaryInputBasicCluster) cluster).writePresentValueAttribute( + (DefaultClusterCallback) callback, + (Boolean) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBinaryInputBasicPresentValueCommandParams + ); + writeBinaryInputBasicInteractionInfo.put("writePresentValueAttribute", writeBinaryInputBasicPresentValueAttributeInteractionInfo); + writeAttributeMap.put("binaryInputBasic", writeBinaryInputBasicInteractionInfo); + Map writeDescriptorInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("descriptor", writeDescriptorInteractionInfo); + Map writeBindingInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("binding", writeBindingInteractionInfo); + Map writeAccessControlInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("accessControl", writeAccessControlInteractionInfo); + Map writeActionsInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("actions", writeActionsInteractionInfo); + Map writeBasicInformationInteractionInfo = new LinkedHashMap<>(); + Map writeBasicInformationNodeLabelCommandParams = new LinkedHashMap(); + CommandParameterInfo basicInformationnodeLabelCommandParameterInfo = + new CommandParameterInfo( + "value", + String.class, + String.class + ); + writeBasicInformationNodeLabelCommandParams.put( + "value", + basicInformationnodeLabelCommandParameterInfo + ); + InteractionInfo writeBasicInformationNodeLabelAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicInformationCluster) cluster).writeNodeLabelAttribute( + (DefaultClusterCallback) callback, + (String) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBasicInformationNodeLabelCommandParams + ); + writeBasicInformationInteractionInfo.put("writeNodeLabelAttribute", writeBasicInformationNodeLabelAttributeInteractionInfo); + Map writeBasicInformationLocationCommandParams = new LinkedHashMap(); + CommandParameterInfo basicInformationlocationCommandParameterInfo = + new CommandParameterInfo( + "value", + String.class, + String.class + ); + writeBasicInformationLocationCommandParams.put( + "value", + basicInformationlocationCommandParameterInfo + ); + InteractionInfo writeBasicInformationLocationAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicInformationCluster) cluster).writeLocationAttribute( + (DefaultClusterCallback) callback, + (String) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBasicInformationLocationCommandParams + ); + writeBasicInformationInteractionInfo.put("writeLocationAttribute", writeBasicInformationLocationAttributeInteractionInfo); + Map writeBasicInformationLocalConfigDisabledCommandParams = new LinkedHashMap(); + CommandParameterInfo basicInformationlocalConfigDisabledCommandParameterInfo = + new CommandParameterInfo( + "value", + Boolean.class, + Boolean.class + ); + writeBasicInformationLocalConfigDisabledCommandParams.put( + "value", + basicInformationlocalConfigDisabledCommandParameterInfo + ); + InteractionInfo writeBasicInformationLocalConfigDisabledAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicInformationCluster) cluster).writeLocalConfigDisabledAttribute( + (DefaultClusterCallback) callback, + (Boolean) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBasicInformationLocalConfigDisabledCommandParams + ); + writeBasicInformationInteractionInfo.put("writeLocalConfigDisabledAttribute", writeBasicInformationLocalConfigDisabledAttributeInteractionInfo); + writeAttributeMap.put("basicInformation", writeBasicInformationInteractionInfo); + Map writeOtaSoftwareUpdateProviderInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("otaSoftwareUpdateProvider", writeOtaSoftwareUpdateProviderInteractionInfo); + Map writeOtaSoftwareUpdateRequestorInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("otaSoftwareUpdateRequestor", writeOtaSoftwareUpdateRequestorInteractionInfo); + Map writeLocalizationConfigurationInteractionInfo = new LinkedHashMap<>(); + Map writeLocalizationConfigurationActiveLocaleCommandParams = new LinkedHashMap(); + CommandParameterInfo localizationConfigurationactiveLocaleCommandParameterInfo = + new CommandParameterInfo( + "value", + String.class, + String.class + ); + writeLocalizationConfigurationActiveLocaleCommandParams.put( + "value", + localizationConfigurationactiveLocaleCommandParameterInfo + ); + InteractionInfo writeLocalizationConfigurationActiveLocaleAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LocalizationConfigurationCluster) cluster).writeActiveLocaleAttribute( + (DefaultClusterCallback) callback, + (String) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeLocalizationConfigurationActiveLocaleCommandParams + ); + writeLocalizationConfigurationInteractionInfo.put("writeActiveLocaleAttribute", writeLocalizationConfigurationActiveLocaleAttributeInteractionInfo); + writeAttributeMap.put("localizationConfiguration", writeLocalizationConfigurationInteractionInfo); + Map writeTimeFormatLocalizationInteractionInfo = new LinkedHashMap<>(); + Map writeTimeFormatLocalizationHourFormatCommandParams = new LinkedHashMap(); + CommandParameterInfo timeFormatLocalizationhourFormatCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeTimeFormatLocalizationHourFormatCommandParams.put( + "value", + timeFormatLocalizationhourFormatCommandParameterInfo + ); + InteractionInfo writeTimeFormatLocalizationHourFormatAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TimeFormatLocalizationCluster) cluster).writeHourFormatAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeTimeFormatLocalizationHourFormatCommandParams + ); + writeTimeFormatLocalizationInteractionInfo.put("writeHourFormatAttribute", writeTimeFormatLocalizationHourFormatAttributeInteractionInfo); + Map writeTimeFormatLocalizationActiveCalendarTypeCommandParams = new LinkedHashMap(); + CommandParameterInfo timeFormatLocalizationactiveCalendarTypeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeTimeFormatLocalizationActiveCalendarTypeCommandParams.put( + "value", + timeFormatLocalizationactiveCalendarTypeCommandParameterInfo + ); + InteractionInfo writeTimeFormatLocalizationActiveCalendarTypeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TimeFormatLocalizationCluster) cluster).writeActiveCalendarTypeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeTimeFormatLocalizationActiveCalendarTypeCommandParams + ); + writeTimeFormatLocalizationInteractionInfo.put("writeActiveCalendarTypeAttribute", writeTimeFormatLocalizationActiveCalendarTypeAttributeInteractionInfo); + writeAttributeMap.put("timeFormatLocalization", writeTimeFormatLocalizationInteractionInfo); + Map writeUnitLocalizationInteractionInfo = new LinkedHashMap<>(); + Map writeUnitLocalizationTemperatureUnitCommandParams = new LinkedHashMap(); + CommandParameterInfo unitLocalizationtemperatureUnitCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitLocalizationTemperatureUnitCommandParams.put( + "value", + unitLocalizationtemperatureUnitCommandParameterInfo + ); + InteractionInfo writeUnitLocalizationTemperatureUnitAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitLocalizationCluster) cluster).writeTemperatureUnitAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitLocalizationTemperatureUnitCommandParams + ); + writeUnitLocalizationInteractionInfo.put("writeTemperatureUnitAttribute", writeUnitLocalizationTemperatureUnitAttributeInteractionInfo); + writeAttributeMap.put("unitLocalization", writeUnitLocalizationInteractionInfo); + Map writePowerSourceConfigurationInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("powerSourceConfiguration", writePowerSourceConfigurationInteractionInfo); + Map writePowerSourceInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("powerSource", writePowerSourceInteractionInfo); + Map writeGeneralCommissioningInteractionInfo = new LinkedHashMap<>(); + Map writeGeneralCommissioningBreadcrumbCommandParams = new LinkedHashMap(); + CommandParameterInfo generalCommissioningbreadcrumbCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeGeneralCommissioningBreadcrumbCommandParams.put( + "value", + generalCommissioningbreadcrumbCommandParameterInfo + ); + InteractionInfo writeGeneralCommissioningBreadcrumbAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GeneralCommissioningCluster) cluster).writeBreadcrumbAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeGeneralCommissioningBreadcrumbCommandParams + ); + writeGeneralCommissioningInteractionInfo.put("writeBreadcrumbAttribute", writeGeneralCommissioningBreadcrumbAttributeInteractionInfo); + writeAttributeMap.put("generalCommissioning", writeGeneralCommissioningInteractionInfo); + Map writeNetworkCommissioningInteractionInfo = new LinkedHashMap<>(); + Map writeNetworkCommissioningInterfaceEnabledCommandParams = new LinkedHashMap(); + CommandParameterInfo networkCommissioninginterfaceEnabledCommandParameterInfo = + new CommandParameterInfo( + "value", + Boolean.class, + Boolean.class + ); + writeNetworkCommissioningInterfaceEnabledCommandParams.put( + "value", + networkCommissioninginterfaceEnabledCommandParameterInfo + ); + InteractionInfo writeNetworkCommissioningInterfaceEnabledAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.NetworkCommissioningCluster) cluster).writeInterfaceEnabledAttribute( + (DefaultClusterCallback) callback, + (Boolean) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeNetworkCommissioningInterfaceEnabledCommandParams + ); + writeNetworkCommissioningInteractionInfo.put("writeInterfaceEnabledAttribute", writeNetworkCommissioningInterfaceEnabledAttributeInteractionInfo); + writeAttributeMap.put("networkCommissioning", writeNetworkCommissioningInteractionInfo); + Map writeDiagnosticLogsInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("diagnosticLogs", writeDiagnosticLogsInteractionInfo); + Map writeGeneralDiagnosticsInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("generalDiagnostics", writeGeneralDiagnosticsInteractionInfo); + Map writeSoftwareDiagnosticsInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("softwareDiagnostics", writeSoftwareDiagnosticsInteractionInfo); + Map writeThreadNetworkDiagnosticsInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("threadNetworkDiagnostics", writeThreadNetworkDiagnosticsInteractionInfo); + Map writeWiFiNetworkDiagnosticsInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("wiFiNetworkDiagnostics", writeWiFiNetworkDiagnosticsInteractionInfo); + Map writeEthernetNetworkDiagnosticsInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("ethernetNetworkDiagnostics", writeEthernetNetworkDiagnosticsInteractionInfo); + Map writeBridgedDeviceBasicInformationInteractionInfo = new LinkedHashMap<>(); + Map writeBridgedDeviceBasicInformationNodeLabelCommandParams = new LinkedHashMap(); + CommandParameterInfo bridgedDeviceBasicInformationnodeLabelCommandParameterInfo = + new CommandParameterInfo( + "value", + String.class, + String.class + ); + writeBridgedDeviceBasicInformationNodeLabelCommandParams.put( + "value", + bridgedDeviceBasicInformationnodeLabelCommandParameterInfo + ); + InteractionInfo writeBridgedDeviceBasicInformationNodeLabelAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedDeviceBasicInformationCluster) cluster).writeNodeLabelAttribute( + (DefaultClusterCallback) callback, + (String) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBridgedDeviceBasicInformationNodeLabelCommandParams + ); + writeBridgedDeviceBasicInformationInteractionInfo.put("writeNodeLabelAttribute", writeBridgedDeviceBasicInformationNodeLabelAttributeInteractionInfo); + writeAttributeMap.put("bridgedDeviceBasicInformation", writeBridgedDeviceBasicInformationInteractionInfo); + Map writeSwitchInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("switch", writeSwitchInteractionInfo); + Map writeAdministratorCommissioningInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("administratorCommissioning", writeAdministratorCommissioningInteractionInfo); + Map writeOperationalCredentialsInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("operationalCredentials", writeOperationalCredentialsInteractionInfo); + Map writeGroupKeyManagementInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("groupKeyManagement", writeGroupKeyManagementInteractionInfo); + Map writeFixedLabelInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("fixedLabel", writeFixedLabelInteractionInfo); + Map writeUserLabelInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("userLabel", writeUserLabelInteractionInfo); + Map writeBooleanStateInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("booleanState", writeBooleanStateInteractionInfo); + Map writeModeSelectInteractionInfo = new LinkedHashMap<>(); + Map writeModeSelectStartUpModeCommandParams = new LinkedHashMap(); + CommandParameterInfo modeSelectstartUpModeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeModeSelectStartUpModeCommandParams.put( + "value", + modeSelectstartUpModeCommandParameterInfo + ); + InteractionInfo writeModeSelectStartUpModeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ModeSelectCluster) cluster).writeStartUpModeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeModeSelectStartUpModeCommandParams + ); + writeModeSelectInteractionInfo.put("writeStartUpModeAttribute", writeModeSelectStartUpModeAttributeInteractionInfo); + Map writeModeSelectOnModeCommandParams = new LinkedHashMap(); + CommandParameterInfo modeSelectonModeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeModeSelectOnModeCommandParams.put( + "value", + modeSelectonModeCommandParameterInfo + ); + InteractionInfo writeModeSelectOnModeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ModeSelectCluster) cluster).writeOnModeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeModeSelectOnModeCommandParams + ); + writeModeSelectInteractionInfo.put("writeOnModeAttribute", writeModeSelectOnModeAttributeInteractionInfo); + writeAttributeMap.put("modeSelect", writeModeSelectInteractionInfo); + Map writeDoorLockInteractionInfo = new LinkedHashMap<>(); + Map writeDoorLockLanguageCommandParams = new LinkedHashMap(); + CommandParameterInfo doorLocklanguageCommandParameterInfo = + new CommandParameterInfo( + "value", + String.class, + String.class + ); + writeDoorLockLanguageCommandParams.put( + "value", + doorLocklanguageCommandParameterInfo + ); + InteractionInfo writeDoorLockLanguageAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster).writeLanguageAttribute( + (DefaultClusterCallback) callback, + (String) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockLanguageCommandParams + ); + writeDoorLockInteractionInfo.put("writeLanguageAttribute", writeDoorLockLanguageAttributeInteractionInfo); + Map writeDoorLockAutoRelockTimeCommandParams = new LinkedHashMap(); + CommandParameterInfo doorLockautoRelockTimeCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeDoorLockAutoRelockTimeCommandParams.put( + "value", + doorLockautoRelockTimeCommandParameterInfo + ); + InteractionInfo writeDoorLockAutoRelockTimeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster).writeAutoRelockTimeAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockAutoRelockTimeCommandParams + ); + writeDoorLockInteractionInfo.put("writeAutoRelockTimeAttribute", writeDoorLockAutoRelockTimeAttributeInteractionInfo); + Map writeDoorLockSoundVolumeCommandParams = new LinkedHashMap(); + CommandParameterInfo doorLocksoundVolumeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeDoorLockSoundVolumeCommandParams.put( + "value", + doorLocksoundVolumeCommandParameterInfo + ); + InteractionInfo writeDoorLockSoundVolumeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster).writeSoundVolumeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockSoundVolumeCommandParams + ); + writeDoorLockInteractionInfo.put("writeSoundVolumeAttribute", writeDoorLockSoundVolumeAttributeInteractionInfo); + Map writeDoorLockOperatingModeCommandParams = new LinkedHashMap(); + CommandParameterInfo doorLockoperatingModeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeDoorLockOperatingModeCommandParams.put( + "value", + doorLockoperatingModeCommandParameterInfo + ); + InteractionInfo writeDoorLockOperatingModeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster).writeOperatingModeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockOperatingModeCommandParams + ); + writeDoorLockInteractionInfo.put("writeOperatingModeAttribute", writeDoorLockOperatingModeAttributeInteractionInfo); + Map writeDoorLockEnableOneTouchLockingCommandParams = new LinkedHashMap(); + CommandParameterInfo doorLockenableOneTouchLockingCommandParameterInfo = + new CommandParameterInfo( + "value", + Boolean.class, + Boolean.class + ); + writeDoorLockEnableOneTouchLockingCommandParams.put( + "value", + doorLockenableOneTouchLockingCommandParameterInfo + ); + InteractionInfo writeDoorLockEnableOneTouchLockingAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster).writeEnableOneTouchLockingAttribute( + (DefaultClusterCallback) callback, + (Boolean) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockEnableOneTouchLockingCommandParams + ); + writeDoorLockInteractionInfo.put("writeEnableOneTouchLockingAttribute", writeDoorLockEnableOneTouchLockingAttributeInteractionInfo); + Map writeDoorLockEnablePrivacyModeButtonCommandParams = new LinkedHashMap(); + CommandParameterInfo doorLockenablePrivacyModeButtonCommandParameterInfo = + new CommandParameterInfo( + "value", + Boolean.class, + Boolean.class + ); + writeDoorLockEnablePrivacyModeButtonCommandParams.put( + "value", + doorLockenablePrivacyModeButtonCommandParameterInfo + ); + InteractionInfo writeDoorLockEnablePrivacyModeButtonAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster).writeEnablePrivacyModeButtonAttribute( + (DefaultClusterCallback) callback, + (Boolean) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockEnablePrivacyModeButtonCommandParams + ); + writeDoorLockInteractionInfo.put("writeEnablePrivacyModeButtonAttribute", writeDoorLockEnablePrivacyModeButtonAttributeInteractionInfo); + Map writeDoorLockWrongCodeEntryLimitCommandParams = new LinkedHashMap(); + CommandParameterInfo doorLockwrongCodeEntryLimitCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeDoorLockWrongCodeEntryLimitCommandParams.put( + "value", + doorLockwrongCodeEntryLimitCommandParameterInfo + ); + InteractionInfo writeDoorLockWrongCodeEntryLimitAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster).writeWrongCodeEntryLimitAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockWrongCodeEntryLimitCommandParams + ); + writeDoorLockInteractionInfo.put("writeWrongCodeEntryLimitAttribute", writeDoorLockWrongCodeEntryLimitAttributeInteractionInfo); + Map writeDoorLockUserCodeTemporaryDisableTimeCommandParams = new LinkedHashMap(); + CommandParameterInfo doorLockuserCodeTemporaryDisableTimeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeDoorLockUserCodeTemporaryDisableTimeCommandParams.put( + "value", + doorLockuserCodeTemporaryDisableTimeCommandParameterInfo + ); + InteractionInfo writeDoorLockUserCodeTemporaryDisableTimeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster).writeUserCodeTemporaryDisableTimeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockUserCodeTemporaryDisableTimeCommandParams + ); + writeDoorLockInteractionInfo.put("writeUserCodeTemporaryDisableTimeAttribute", writeDoorLockUserCodeTemporaryDisableTimeAttributeInteractionInfo); + Map writeDoorLockRequirePINforRemoteOperationCommandParams = new LinkedHashMap(); + CommandParameterInfo doorLockrequirePINforRemoteOperationCommandParameterInfo = + new CommandParameterInfo( + "value", + Boolean.class, + Boolean.class + ); + writeDoorLockRequirePINforRemoteOperationCommandParams.put( + "value", + doorLockrequirePINforRemoteOperationCommandParameterInfo + ); + InteractionInfo writeDoorLockRequirePINforRemoteOperationAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster).writeRequirePINforRemoteOperationAttribute( + (DefaultClusterCallback) callback, + (Boolean) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockRequirePINforRemoteOperationCommandParams + ); + writeDoorLockInteractionInfo.put("writeRequirePINforRemoteOperationAttribute", writeDoorLockRequirePINforRemoteOperationAttributeInteractionInfo); + writeAttributeMap.put("doorLock", writeDoorLockInteractionInfo); + Map writeWindowCoveringInteractionInfo = new LinkedHashMap<>(); + Map writeWindowCoveringModeCommandParams = new LinkedHashMap(); + CommandParameterInfo windowCoveringmodeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeWindowCoveringModeCommandParams.put( + "value", + windowCoveringmodeCommandParameterInfo + ); + InteractionInfo writeWindowCoveringModeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WindowCoveringCluster) cluster).writeModeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeWindowCoveringModeCommandParams + ); + writeWindowCoveringInteractionInfo.put("writeModeAttribute", writeWindowCoveringModeAttributeInteractionInfo); + writeAttributeMap.put("windowCovering", writeWindowCoveringInteractionInfo); + Map writeBarrierControlInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("barrierControl", writeBarrierControlInteractionInfo); + Map writePumpConfigurationAndControlInteractionInfo = new LinkedHashMap<>(); + Map writePumpConfigurationAndControlLifetimeRunningHoursCommandParams = new LinkedHashMap(); + CommandParameterInfo pumpConfigurationAndControllifetimeRunningHoursCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writePumpConfigurationAndControlLifetimeRunningHoursCommandParams.put( + "value", + pumpConfigurationAndControllifetimeRunningHoursCommandParameterInfo + ); + InteractionInfo writePumpConfigurationAndControlLifetimeRunningHoursAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PumpConfigurationAndControlCluster) cluster).writeLifetimeRunningHoursAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writePumpConfigurationAndControlLifetimeRunningHoursCommandParams + ); + writePumpConfigurationAndControlInteractionInfo.put("writeLifetimeRunningHoursAttribute", writePumpConfigurationAndControlLifetimeRunningHoursAttributeInteractionInfo); + Map writePumpConfigurationAndControlLifetimeEnergyConsumedCommandParams = new LinkedHashMap(); + CommandParameterInfo pumpConfigurationAndControllifetimeEnergyConsumedCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writePumpConfigurationAndControlLifetimeEnergyConsumedCommandParams.put( + "value", + pumpConfigurationAndControllifetimeEnergyConsumedCommandParameterInfo + ); + InteractionInfo writePumpConfigurationAndControlLifetimeEnergyConsumedAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PumpConfigurationAndControlCluster) cluster).writeLifetimeEnergyConsumedAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writePumpConfigurationAndControlLifetimeEnergyConsumedCommandParams + ); + writePumpConfigurationAndControlInteractionInfo.put("writeLifetimeEnergyConsumedAttribute", writePumpConfigurationAndControlLifetimeEnergyConsumedAttributeInteractionInfo); + Map writePumpConfigurationAndControlOperationModeCommandParams = new LinkedHashMap(); + CommandParameterInfo pumpConfigurationAndControloperationModeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writePumpConfigurationAndControlOperationModeCommandParams.put( + "value", + pumpConfigurationAndControloperationModeCommandParameterInfo + ); + InteractionInfo writePumpConfigurationAndControlOperationModeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PumpConfigurationAndControlCluster) cluster).writeOperationModeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writePumpConfigurationAndControlOperationModeCommandParams + ); + writePumpConfigurationAndControlInteractionInfo.put("writeOperationModeAttribute", writePumpConfigurationAndControlOperationModeAttributeInteractionInfo); + Map writePumpConfigurationAndControlControlModeCommandParams = new LinkedHashMap(); + CommandParameterInfo pumpConfigurationAndControlcontrolModeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writePumpConfigurationAndControlControlModeCommandParams.put( + "value", + pumpConfigurationAndControlcontrolModeCommandParameterInfo + ); + InteractionInfo writePumpConfigurationAndControlControlModeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PumpConfigurationAndControlCluster) cluster).writeControlModeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writePumpConfigurationAndControlControlModeCommandParams + ); + writePumpConfigurationAndControlInteractionInfo.put("writeControlModeAttribute", writePumpConfigurationAndControlControlModeAttributeInteractionInfo); + writeAttributeMap.put("pumpConfigurationAndControl", writePumpConfigurationAndControlInteractionInfo); + Map writeThermostatInteractionInfo = new LinkedHashMap<>(); + Map writeThermostatHVACSystemTypeConfigurationCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostathVACSystemTypeConfigurationCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatHVACSystemTypeConfigurationCommandParams.put( + "value", + thermostathVACSystemTypeConfigurationCommandParameterInfo + ); + InteractionInfo writeThermostatHVACSystemTypeConfigurationAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeHVACSystemTypeConfigurationAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatHVACSystemTypeConfigurationCommandParams + ); + writeThermostatInteractionInfo.put("writeHVACSystemTypeConfigurationAttribute", writeThermostatHVACSystemTypeConfigurationAttributeInteractionInfo); + Map writeThermostatLocalTemperatureCalibrationCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatlocalTemperatureCalibrationCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatLocalTemperatureCalibrationCommandParams.put( + "value", + thermostatlocalTemperatureCalibrationCommandParameterInfo + ); + InteractionInfo writeThermostatLocalTemperatureCalibrationAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeLocalTemperatureCalibrationAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatLocalTemperatureCalibrationCommandParams + ); + writeThermostatInteractionInfo.put("writeLocalTemperatureCalibrationAttribute", writeThermostatLocalTemperatureCalibrationAttributeInteractionInfo); + Map writeThermostatOccupiedCoolingSetpointCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatoccupiedCoolingSetpointCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatOccupiedCoolingSetpointCommandParams.put( + "value", + thermostatoccupiedCoolingSetpointCommandParameterInfo + ); + InteractionInfo writeThermostatOccupiedCoolingSetpointAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeOccupiedCoolingSetpointAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatOccupiedCoolingSetpointCommandParams + ); + writeThermostatInteractionInfo.put("writeOccupiedCoolingSetpointAttribute", writeThermostatOccupiedCoolingSetpointAttributeInteractionInfo); + Map writeThermostatOccupiedHeatingSetpointCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatoccupiedHeatingSetpointCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatOccupiedHeatingSetpointCommandParams.put( + "value", + thermostatoccupiedHeatingSetpointCommandParameterInfo + ); + InteractionInfo writeThermostatOccupiedHeatingSetpointAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeOccupiedHeatingSetpointAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatOccupiedHeatingSetpointCommandParams + ); + writeThermostatInteractionInfo.put("writeOccupiedHeatingSetpointAttribute", writeThermostatOccupiedHeatingSetpointAttributeInteractionInfo); + Map writeThermostatUnoccupiedCoolingSetpointCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatunoccupiedCoolingSetpointCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatUnoccupiedCoolingSetpointCommandParams.put( + "value", + thermostatunoccupiedCoolingSetpointCommandParameterInfo + ); + InteractionInfo writeThermostatUnoccupiedCoolingSetpointAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeUnoccupiedCoolingSetpointAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatUnoccupiedCoolingSetpointCommandParams + ); + writeThermostatInteractionInfo.put("writeUnoccupiedCoolingSetpointAttribute", writeThermostatUnoccupiedCoolingSetpointAttributeInteractionInfo); + Map writeThermostatUnoccupiedHeatingSetpointCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatunoccupiedHeatingSetpointCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatUnoccupiedHeatingSetpointCommandParams.put( + "value", + thermostatunoccupiedHeatingSetpointCommandParameterInfo + ); + InteractionInfo writeThermostatUnoccupiedHeatingSetpointAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeUnoccupiedHeatingSetpointAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatUnoccupiedHeatingSetpointCommandParams + ); + writeThermostatInteractionInfo.put("writeUnoccupiedHeatingSetpointAttribute", writeThermostatUnoccupiedHeatingSetpointAttributeInteractionInfo); + Map writeThermostatMinHeatSetpointLimitCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatminHeatSetpointLimitCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatMinHeatSetpointLimitCommandParams.put( + "value", + thermostatminHeatSetpointLimitCommandParameterInfo + ); + InteractionInfo writeThermostatMinHeatSetpointLimitAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeMinHeatSetpointLimitAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatMinHeatSetpointLimitCommandParams + ); + writeThermostatInteractionInfo.put("writeMinHeatSetpointLimitAttribute", writeThermostatMinHeatSetpointLimitAttributeInteractionInfo); + Map writeThermostatMaxHeatSetpointLimitCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatmaxHeatSetpointLimitCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatMaxHeatSetpointLimitCommandParams.put( + "value", + thermostatmaxHeatSetpointLimitCommandParameterInfo + ); + InteractionInfo writeThermostatMaxHeatSetpointLimitAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeMaxHeatSetpointLimitAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatMaxHeatSetpointLimitCommandParams + ); + writeThermostatInteractionInfo.put("writeMaxHeatSetpointLimitAttribute", writeThermostatMaxHeatSetpointLimitAttributeInteractionInfo); + Map writeThermostatMinCoolSetpointLimitCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatminCoolSetpointLimitCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatMinCoolSetpointLimitCommandParams.put( + "value", + thermostatminCoolSetpointLimitCommandParameterInfo + ); + InteractionInfo writeThermostatMinCoolSetpointLimitAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeMinCoolSetpointLimitAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatMinCoolSetpointLimitCommandParams + ); + writeThermostatInteractionInfo.put("writeMinCoolSetpointLimitAttribute", writeThermostatMinCoolSetpointLimitAttributeInteractionInfo); + Map writeThermostatMaxCoolSetpointLimitCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatmaxCoolSetpointLimitCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatMaxCoolSetpointLimitCommandParams.put( + "value", + thermostatmaxCoolSetpointLimitCommandParameterInfo + ); + InteractionInfo writeThermostatMaxCoolSetpointLimitAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeMaxCoolSetpointLimitAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatMaxCoolSetpointLimitCommandParams + ); + writeThermostatInteractionInfo.put("writeMaxCoolSetpointLimitAttribute", writeThermostatMaxCoolSetpointLimitAttributeInteractionInfo); + Map writeThermostatMinSetpointDeadBandCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatminSetpointDeadBandCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatMinSetpointDeadBandCommandParams.put( + "value", + thermostatminSetpointDeadBandCommandParameterInfo + ); + InteractionInfo writeThermostatMinSetpointDeadBandAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeMinSetpointDeadBandAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatMinSetpointDeadBandCommandParams + ); + writeThermostatInteractionInfo.put("writeMinSetpointDeadBandAttribute", writeThermostatMinSetpointDeadBandAttributeInteractionInfo); + Map writeThermostatRemoteSensingCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatremoteSensingCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatRemoteSensingCommandParams.put( + "value", + thermostatremoteSensingCommandParameterInfo + ); + InteractionInfo writeThermostatRemoteSensingAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeRemoteSensingAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatRemoteSensingCommandParams + ); + writeThermostatInteractionInfo.put("writeRemoteSensingAttribute", writeThermostatRemoteSensingAttributeInteractionInfo); + Map writeThermostatControlSequenceOfOperationCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatcontrolSequenceOfOperationCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatControlSequenceOfOperationCommandParams.put( + "value", + thermostatcontrolSequenceOfOperationCommandParameterInfo + ); + InteractionInfo writeThermostatControlSequenceOfOperationAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeControlSequenceOfOperationAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatControlSequenceOfOperationCommandParams + ); + writeThermostatInteractionInfo.put("writeControlSequenceOfOperationAttribute", writeThermostatControlSequenceOfOperationAttributeInteractionInfo); + Map writeThermostatSystemModeCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatsystemModeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatSystemModeCommandParams.put( + "value", + thermostatsystemModeCommandParameterInfo + ); + InteractionInfo writeThermostatSystemModeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeSystemModeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatSystemModeCommandParams + ); + writeThermostatInteractionInfo.put("writeSystemModeAttribute", writeThermostatSystemModeAttributeInteractionInfo); + Map writeThermostatTemperatureSetpointHoldCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostattemperatureSetpointHoldCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatTemperatureSetpointHoldCommandParams.put( + "value", + thermostattemperatureSetpointHoldCommandParameterInfo + ); + InteractionInfo writeThermostatTemperatureSetpointHoldAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeTemperatureSetpointHoldAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatTemperatureSetpointHoldCommandParams + ); + writeThermostatInteractionInfo.put("writeTemperatureSetpointHoldAttribute", writeThermostatTemperatureSetpointHoldAttributeInteractionInfo); + Map writeThermostatTemperatureSetpointHoldDurationCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostattemperatureSetpointHoldDurationCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatTemperatureSetpointHoldDurationCommandParams.put( + "value", + thermostattemperatureSetpointHoldDurationCommandParameterInfo + ); + InteractionInfo writeThermostatTemperatureSetpointHoldDurationAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeTemperatureSetpointHoldDurationAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatTemperatureSetpointHoldDurationCommandParams + ); + writeThermostatInteractionInfo.put("writeTemperatureSetpointHoldDurationAttribute", writeThermostatTemperatureSetpointHoldDurationAttributeInteractionInfo); + Map writeThermostatThermostatProgrammingOperationModeCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatthermostatProgrammingOperationModeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatThermostatProgrammingOperationModeCommandParams.put( + "value", + thermostatthermostatProgrammingOperationModeCommandParameterInfo + ); + InteractionInfo writeThermostatThermostatProgrammingOperationModeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeThermostatProgrammingOperationModeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatThermostatProgrammingOperationModeCommandParams + ); + writeThermostatInteractionInfo.put("writeThermostatProgrammingOperationModeAttribute", writeThermostatThermostatProgrammingOperationModeAttributeInteractionInfo); + Map writeThermostatOccupiedSetbackCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatoccupiedSetbackCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatOccupiedSetbackCommandParams.put( + "value", + thermostatoccupiedSetbackCommandParameterInfo + ); + InteractionInfo writeThermostatOccupiedSetbackAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeOccupiedSetbackAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatOccupiedSetbackCommandParams + ); + writeThermostatInteractionInfo.put("writeOccupiedSetbackAttribute", writeThermostatOccupiedSetbackAttributeInteractionInfo); + Map writeThermostatUnoccupiedSetbackCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatunoccupiedSetbackCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatUnoccupiedSetbackCommandParams.put( + "value", + thermostatunoccupiedSetbackCommandParameterInfo + ); + InteractionInfo writeThermostatUnoccupiedSetbackAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeUnoccupiedSetbackAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatUnoccupiedSetbackCommandParams + ); + writeThermostatInteractionInfo.put("writeUnoccupiedSetbackAttribute", writeThermostatUnoccupiedSetbackAttributeInteractionInfo); + Map writeThermostatEmergencyHeatDeltaCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatemergencyHeatDeltaCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatEmergencyHeatDeltaCommandParams.put( + "value", + thermostatemergencyHeatDeltaCommandParameterInfo + ); + InteractionInfo writeThermostatEmergencyHeatDeltaAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeEmergencyHeatDeltaAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatEmergencyHeatDeltaCommandParams + ); + writeThermostatInteractionInfo.put("writeEmergencyHeatDeltaAttribute", writeThermostatEmergencyHeatDeltaAttributeInteractionInfo); + Map writeThermostatACTypeCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostataCTypeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatACTypeCommandParams.put( + "value", + thermostataCTypeCommandParameterInfo + ); + InteractionInfo writeThermostatACTypeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeACTypeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatACTypeCommandParams + ); + writeThermostatInteractionInfo.put("writeACTypeAttribute", writeThermostatACTypeAttributeInteractionInfo); + Map writeThermostatACCapacityCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostataCCapacityCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatACCapacityCommandParams.put( + "value", + thermostataCCapacityCommandParameterInfo + ); + InteractionInfo writeThermostatACCapacityAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeACCapacityAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatACCapacityCommandParams + ); + writeThermostatInteractionInfo.put("writeACCapacityAttribute", writeThermostatACCapacityAttributeInteractionInfo); + Map writeThermostatACRefrigerantTypeCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostataCRefrigerantTypeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatACRefrigerantTypeCommandParams.put( + "value", + thermostataCRefrigerantTypeCommandParameterInfo + ); + InteractionInfo writeThermostatACRefrigerantTypeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeACRefrigerantTypeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatACRefrigerantTypeCommandParams + ); + writeThermostatInteractionInfo.put("writeACRefrigerantTypeAttribute", writeThermostatACRefrigerantTypeAttributeInteractionInfo); + Map writeThermostatACCompressorTypeCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostataCCompressorTypeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatACCompressorTypeCommandParams.put( + "value", + thermostataCCompressorTypeCommandParameterInfo + ); + InteractionInfo writeThermostatACCompressorTypeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeACCompressorTypeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatACCompressorTypeCommandParams + ); + writeThermostatInteractionInfo.put("writeACCompressorTypeAttribute", writeThermostatACCompressorTypeAttributeInteractionInfo); + Map writeThermostatACErrorCodeCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostataCErrorCodeCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeThermostatACErrorCodeCommandParams.put( + "value", + thermostataCErrorCodeCommandParameterInfo + ); + InteractionInfo writeThermostatACErrorCodeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeACErrorCodeAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatACErrorCodeCommandParams + ); + writeThermostatInteractionInfo.put("writeACErrorCodeAttribute", writeThermostatACErrorCodeAttributeInteractionInfo); + Map writeThermostatACLouverPositionCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostataCLouverPositionCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatACLouverPositionCommandParams.put( + "value", + thermostataCLouverPositionCommandParameterInfo + ); + InteractionInfo writeThermostatACLouverPositionAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeACLouverPositionAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatACLouverPositionCommandParams + ); + writeThermostatInteractionInfo.put("writeACLouverPositionAttribute", writeThermostatACLouverPositionAttributeInteractionInfo); + Map writeThermostatACCapacityformatCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostataCCapacityformatCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatACCapacityformatCommandParams.put( + "value", + thermostataCCapacityformatCommandParameterInfo + ); + InteractionInfo writeThermostatACCapacityformatAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).writeACCapacityformatAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatACCapacityformatCommandParams + ); + writeThermostatInteractionInfo.put("writeACCapacityformatAttribute", writeThermostatACCapacityformatAttributeInteractionInfo); + writeAttributeMap.put("thermostat", writeThermostatInteractionInfo); + Map writeFanControlInteractionInfo = new LinkedHashMap<>(); + Map writeFanControlFanModeCommandParams = new LinkedHashMap(); + CommandParameterInfo fanControlfanModeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeFanControlFanModeCommandParams.put( + "value", + fanControlfanModeCommandParameterInfo + ); + InteractionInfo writeFanControlFanModeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FanControlCluster) cluster).writeFanModeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeFanControlFanModeCommandParams + ); + writeFanControlInteractionInfo.put("writeFanModeAttribute", writeFanControlFanModeAttributeInteractionInfo); + Map writeFanControlFanModeSequenceCommandParams = new LinkedHashMap(); + CommandParameterInfo fanControlfanModeSequenceCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeFanControlFanModeSequenceCommandParams.put( + "value", + fanControlfanModeSequenceCommandParameterInfo + ); + InteractionInfo writeFanControlFanModeSequenceAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FanControlCluster) cluster).writeFanModeSequenceAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeFanControlFanModeSequenceCommandParams + ); + writeFanControlInteractionInfo.put("writeFanModeSequenceAttribute", writeFanControlFanModeSequenceAttributeInteractionInfo); + Map writeFanControlPercentSettingCommandParams = new LinkedHashMap(); + CommandParameterInfo fanControlpercentSettingCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeFanControlPercentSettingCommandParams.put( + "value", + fanControlpercentSettingCommandParameterInfo + ); + InteractionInfo writeFanControlPercentSettingAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FanControlCluster) cluster).writePercentSettingAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeFanControlPercentSettingCommandParams + ); + writeFanControlInteractionInfo.put("writePercentSettingAttribute", writeFanControlPercentSettingAttributeInteractionInfo); + Map writeFanControlSpeedSettingCommandParams = new LinkedHashMap(); + CommandParameterInfo fanControlspeedSettingCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeFanControlSpeedSettingCommandParams.put( + "value", + fanControlspeedSettingCommandParameterInfo + ); + InteractionInfo writeFanControlSpeedSettingAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FanControlCluster) cluster).writeSpeedSettingAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeFanControlSpeedSettingCommandParams + ); + writeFanControlInteractionInfo.put("writeSpeedSettingAttribute", writeFanControlSpeedSettingAttributeInteractionInfo); + Map writeFanControlRockSettingCommandParams = new LinkedHashMap(); + CommandParameterInfo fanControlrockSettingCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeFanControlRockSettingCommandParams.put( + "value", + fanControlrockSettingCommandParameterInfo + ); + InteractionInfo writeFanControlRockSettingAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FanControlCluster) cluster).writeRockSettingAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeFanControlRockSettingCommandParams + ); + writeFanControlInteractionInfo.put("writeRockSettingAttribute", writeFanControlRockSettingAttributeInteractionInfo); + Map writeFanControlWindSettingCommandParams = new LinkedHashMap(); + CommandParameterInfo fanControlwindSettingCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeFanControlWindSettingCommandParams.put( + "value", + fanControlwindSettingCommandParameterInfo + ); + InteractionInfo writeFanControlWindSettingAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FanControlCluster) cluster).writeWindSettingAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeFanControlWindSettingCommandParams + ); + writeFanControlInteractionInfo.put("writeWindSettingAttribute", writeFanControlWindSettingAttributeInteractionInfo); + writeAttributeMap.put("fanControl", writeFanControlInteractionInfo); + Map writeThermostatUserInterfaceConfigurationInteractionInfo = new LinkedHashMap<>(); + Map writeThermostatUserInterfaceConfigurationTemperatureDisplayModeCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatUserInterfaceConfigurationtemperatureDisplayModeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatUserInterfaceConfigurationTemperatureDisplayModeCommandParams.put( + "value", + thermostatUserInterfaceConfigurationtemperatureDisplayModeCommandParameterInfo + ); + InteractionInfo writeThermostatUserInterfaceConfigurationTemperatureDisplayModeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatUserInterfaceConfigurationCluster) cluster).writeTemperatureDisplayModeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatUserInterfaceConfigurationTemperatureDisplayModeCommandParams + ); + writeThermostatUserInterfaceConfigurationInteractionInfo.put("writeTemperatureDisplayModeAttribute", writeThermostatUserInterfaceConfigurationTemperatureDisplayModeAttributeInteractionInfo); + Map writeThermostatUserInterfaceConfigurationKeypadLockoutCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatUserInterfaceConfigurationkeypadLockoutCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatUserInterfaceConfigurationKeypadLockoutCommandParams.put( + "value", + thermostatUserInterfaceConfigurationkeypadLockoutCommandParameterInfo + ); + InteractionInfo writeThermostatUserInterfaceConfigurationKeypadLockoutAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatUserInterfaceConfigurationCluster) cluster).writeKeypadLockoutAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatUserInterfaceConfigurationKeypadLockoutCommandParams + ); + writeThermostatUserInterfaceConfigurationInteractionInfo.put("writeKeypadLockoutAttribute", writeThermostatUserInterfaceConfigurationKeypadLockoutAttributeInteractionInfo); + Map writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatUserInterfaceConfigurationscheduleProgrammingVisibilityCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCommandParams.put( + "value", + thermostatUserInterfaceConfigurationscheduleProgrammingVisibilityCommandParameterInfo + ); + InteractionInfo writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatUserInterfaceConfigurationCluster) cluster).writeScheduleProgrammingVisibilityAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCommandParams + ); + writeThermostatUserInterfaceConfigurationInteractionInfo.put("writeScheduleProgrammingVisibilityAttribute", writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityAttributeInteractionInfo); + writeAttributeMap.put("thermostatUserInterfaceConfiguration", writeThermostatUserInterfaceConfigurationInteractionInfo); + Map writeColorControlInteractionInfo = new LinkedHashMap<>(); + Map writeColorControlOptionsCommandParams = new LinkedHashMap(); + CommandParameterInfo colorControloptionsCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeColorControlOptionsCommandParams.put( + "value", + colorControloptionsCommandParameterInfo + ); + InteractionInfo writeColorControlOptionsAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster).writeOptionsAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlOptionsCommandParams + ); + writeColorControlInteractionInfo.put("writeOptionsAttribute", writeColorControlOptionsAttributeInteractionInfo); + Map writeColorControlWhitePointXCommandParams = new LinkedHashMap(); + CommandParameterInfo colorControlwhitePointXCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeColorControlWhitePointXCommandParams.put( + "value", + colorControlwhitePointXCommandParameterInfo + ); + InteractionInfo writeColorControlWhitePointXAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster).writeWhitePointXAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlWhitePointXCommandParams + ); + writeColorControlInteractionInfo.put("writeWhitePointXAttribute", writeColorControlWhitePointXAttributeInteractionInfo); + Map writeColorControlWhitePointYCommandParams = new LinkedHashMap(); + CommandParameterInfo colorControlwhitePointYCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeColorControlWhitePointYCommandParams.put( + "value", + colorControlwhitePointYCommandParameterInfo + ); + InteractionInfo writeColorControlWhitePointYAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster).writeWhitePointYAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlWhitePointYCommandParams + ); + writeColorControlInteractionInfo.put("writeWhitePointYAttribute", writeColorControlWhitePointYAttributeInteractionInfo); + Map writeColorControlColorPointRXCommandParams = new LinkedHashMap(); + CommandParameterInfo colorControlcolorPointRXCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeColorControlColorPointRXCommandParams.put( + "value", + colorControlcolorPointRXCommandParameterInfo + ); + InteractionInfo writeColorControlColorPointRXAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster).writeColorPointRXAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointRXCommandParams + ); + writeColorControlInteractionInfo.put("writeColorPointRXAttribute", writeColorControlColorPointRXAttributeInteractionInfo); + Map writeColorControlColorPointRYCommandParams = new LinkedHashMap(); + CommandParameterInfo colorControlcolorPointRYCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeColorControlColorPointRYCommandParams.put( + "value", + colorControlcolorPointRYCommandParameterInfo + ); + InteractionInfo writeColorControlColorPointRYAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster).writeColorPointRYAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointRYCommandParams + ); + writeColorControlInteractionInfo.put("writeColorPointRYAttribute", writeColorControlColorPointRYAttributeInteractionInfo); + Map writeColorControlColorPointRIntensityCommandParams = new LinkedHashMap(); + CommandParameterInfo colorControlcolorPointRIntensityCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeColorControlColorPointRIntensityCommandParams.put( + "value", + colorControlcolorPointRIntensityCommandParameterInfo + ); + InteractionInfo writeColorControlColorPointRIntensityAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster).writeColorPointRIntensityAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointRIntensityCommandParams + ); + writeColorControlInteractionInfo.put("writeColorPointRIntensityAttribute", writeColorControlColorPointRIntensityAttributeInteractionInfo); + Map writeColorControlColorPointGXCommandParams = new LinkedHashMap(); + CommandParameterInfo colorControlcolorPointGXCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeColorControlColorPointGXCommandParams.put( + "value", + colorControlcolorPointGXCommandParameterInfo + ); + InteractionInfo writeColorControlColorPointGXAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster).writeColorPointGXAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointGXCommandParams + ); + writeColorControlInteractionInfo.put("writeColorPointGXAttribute", writeColorControlColorPointGXAttributeInteractionInfo); + Map writeColorControlColorPointGYCommandParams = new LinkedHashMap(); + CommandParameterInfo colorControlcolorPointGYCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeColorControlColorPointGYCommandParams.put( + "value", + colorControlcolorPointGYCommandParameterInfo + ); + InteractionInfo writeColorControlColorPointGYAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster).writeColorPointGYAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointGYCommandParams + ); + writeColorControlInteractionInfo.put("writeColorPointGYAttribute", writeColorControlColorPointGYAttributeInteractionInfo); + Map writeColorControlColorPointGIntensityCommandParams = new LinkedHashMap(); + CommandParameterInfo colorControlcolorPointGIntensityCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeColorControlColorPointGIntensityCommandParams.put( + "value", + colorControlcolorPointGIntensityCommandParameterInfo + ); + InteractionInfo writeColorControlColorPointGIntensityAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster).writeColorPointGIntensityAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointGIntensityCommandParams + ); + writeColorControlInteractionInfo.put("writeColorPointGIntensityAttribute", writeColorControlColorPointGIntensityAttributeInteractionInfo); + Map writeColorControlColorPointBXCommandParams = new LinkedHashMap(); + CommandParameterInfo colorControlcolorPointBXCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeColorControlColorPointBXCommandParams.put( + "value", + colorControlcolorPointBXCommandParameterInfo + ); + InteractionInfo writeColorControlColorPointBXAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster).writeColorPointBXAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointBXCommandParams + ); + writeColorControlInteractionInfo.put("writeColorPointBXAttribute", writeColorControlColorPointBXAttributeInteractionInfo); + Map writeColorControlColorPointBYCommandParams = new LinkedHashMap(); + CommandParameterInfo colorControlcolorPointBYCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeColorControlColorPointBYCommandParams.put( + "value", + colorControlcolorPointBYCommandParameterInfo + ); + InteractionInfo writeColorControlColorPointBYAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster).writeColorPointBYAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointBYCommandParams + ); + writeColorControlInteractionInfo.put("writeColorPointBYAttribute", writeColorControlColorPointBYAttributeInteractionInfo); + Map writeColorControlColorPointBIntensityCommandParams = new LinkedHashMap(); + CommandParameterInfo colorControlcolorPointBIntensityCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeColorControlColorPointBIntensityCommandParams.put( + "value", + colorControlcolorPointBIntensityCommandParameterInfo + ); + InteractionInfo writeColorControlColorPointBIntensityAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster).writeColorPointBIntensityAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointBIntensityCommandParams + ); + writeColorControlInteractionInfo.put("writeColorPointBIntensityAttribute", writeColorControlColorPointBIntensityAttributeInteractionInfo); + Map writeColorControlStartUpColorTemperatureMiredsCommandParams = new LinkedHashMap(); + CommandParameterInfo colorControlstartUpColorTemperatureMiredsCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeColorControlStartUpColorTemperatureMiredsCommandParams.put( + "value", + colorControlstartUpColorTemperatureMiredsCommandParameterInfo + ); + InteractionInfo writeColorControlStartUpColorTemperatureMiredsAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster).writeStartUpColorTemperatureMiredsAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlStartUpColorTemperatureMiredsCommandParams + ); + writeColorControlInteractionInfo.put("writeStartUpColorTemperatureMiredsAttribute", writeColorControlStartUpColorTemperatureMiredsAttributeInteractionInfo); + writeAttributeMap.put("colorControl", writeColorControlInteractionInfo); + Map writeBallastConfigurationInteractionInfo = new LinkedHashMap<>(); + Map writeBallastConfigurationMinLevelCommandParams = new LinkedHashMap(); + CommandParameterInfo ballastConfigurationminLevelCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeBallastConfigurationMinLevelCommandParams.put( + "value", + ballastConfigurationminLevelCommandParameterInfo + ); + InteractionInfo writeBallastConfigurationMinLevelAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster).writeMinLevelAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationMinLevelCommandParams + ); + writeBallastConfigurationInteractionInfo.put("writeMinLevelAttribute", writeBallastConfigurationMinLevelAttributeInteractionInfo); + Map writeBallastConfigurationMaxLevelCommandParams = new LinkedHashMap(); + CommandParameterInfo ballastConfigurationmaxLevelCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeBallastConfigurationMaxLevelCommandParams.put( + "value", + ballastConfigurationmaxLevelCommandParameterInfo + ); + InteractionInfo writeBallastConfigurationMaxLevelAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster).writeMaxLevelAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationMaxLevelCommandParams + ); + writeBallastConfigurationInteractionInfo.put("writeMaxLevelAttribute", writeBallastConfigurationMaxLevelAttributeInteractionInfo); + Map writeBallastConfigurationIntrinsicBallastFactorCommandParams = new LinkedHashMap(); + CommandParameterInfo ballastConfigurationintrinsicBallastFactorCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeBallastConfigurationIntrinsicBallastFactorCommandParams.put( + "value", + ballastConfigurationintrinsicBallastFactorCommandParameterInfo + ); + InteractionInfo writeBallastConfigurationIntrinsicBallastFactorAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster).writeIntrinsicBallastFactorAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationIntrinsicBallastFactorCommandParams + ); + writeBallastConfigurationInteractionInfo.put("writeIntrinsicBallastFactorAttribute", writeBallastConfigurationIntrinsicBallastFactorAttributeInteractionInfo); + Map writeBallastConfigurationBallastFactorAdjustmentCommandParams = new LinkedHashMap(); + CommandParameterInfo ballastConfigurationballastFactorAdjustmentCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeBallastConfigurationBallastFactorAdjustmentCommandParams.put( + "value", + ballastConfigurationballastFactorAdjustmentCommandParameterInfo + ); + InteractionInfo writeBallastConfigurationBallastFactorAdjustmentAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster).writeBallastFactorAdjustmentAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationBallastFactorAdjustmentCommandParams + ); + writeBallastConfigurationInteractionInfo.put("writeBallastFactorAdjustmentAttribute", writeBallastConfigurationBallastFactorAdjustmentAttributeInteractionInfo); + Map writeBallastConfigurationLampTypeCommandParams = new LinkedHashMap(); + CommandParameterInfo ballastConfigurationlampTypeCommandParameterInfo = + new CommandParameterInfo( + "value", + String.class, + String.class + ); + writeBallastConfigurationLampTypeCommandParams.put( + "value", + ballastConfigurationlampTypeCommandParameterInfo + ); + InteractionInfo writeBallastConfigurationLampTypeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster).writeLampTypeAttribute( + (DefaultClusterCallback) callback, + (String) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationLampTypeCommandParams + ); + writeBallastConfigurationInteractionInfo.put("writeLampTypeAttribute", writeBallastConfigurationLampTypeAttributeInteractionInfo); + Map writeBallastConfigurationLampManufacturerCommandParams = new LinkedHashMap(); + CommandParameterInfo ballastConfigurationlampManufacturerCommandParameterInfo = + new CommandParameterInfo( + "value", + String.class, + String.class + ); + writeBallastConfigurationLampManufacturerCommandParams.put( + "value", + ballastConfigurationlampManufacturerCommandParameterInfo + ); + InteractionInfo writeBallastConfigurationLampManufacturerAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster).writeLampManufacturerAttribute( + (DefaultClusterCallback) callback, + (String) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationLampManufacturerCommandParams + ); + writeBallastConfigurationInteractionInfo.put("writeLampManufacturerAttribute", writeBallastConfigurationLampManufacturerAttributeInteractionInfo); + Map writeBallastConfigurationLampRatedHoursCommandParams = new LinkedHashMap(); + CommandParameterInfo ballastConfigurationlampRatedHoursCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeBallastConfigurationLampRatedHoursCommandParams.put( + "value", + ballastConfigurationlampRatedHoursCommandParameterInfo + ); + InteractionInfo writeBallastConfigurationLampRatedHoursAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster).writeLampRatedHoursAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationLampRatedHoursCommandParams + ); + writeBallastConfigurationInteractionInfo.put("writeLampRatedHoursAttribute", writeBallastConfigurationLampRatedHoursAttributeInteractionInfo); + Map writeBallastConfigurationLampBurnHoursCommandParams = new LinkedHashMap(); + CommandParameterInfo ballastConfigurationlampBurnHoursCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeBallastConfigurationLampBurnHoursCommandParams.put( + "value", + ballastConfigurationlampBurnHoursCommandParameterInfo + ); + InteractionInfo writeBallastConfigurationLampBurnHoursAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster).writeLampBurnHoursAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationLampBurnHoursCommandParams + ); + writeBallastConfigurationInteractionInfo.put("writeLampBurnHoursAttribute", writeBallastConfigurationLampBurnHoursAttributeInteractionInfo); + Map writeBallastConfigurationLampAlarmModeCommandParams = new LinkedHashMap(); + CommandParameterInfo ballastConfigurationlampAlarmModeCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeBallastConfigurationLampAlarmModeCommandParams.put( + "value", + ballastConfigurationlampAlarmModeCommandParameterInfo + ); + InteractionInfo writeBallastConfigurationLampAlarmModeAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster).writeLampAlarmModeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationLampAlarmModeCommandParams + ); + writeBallastConfigurationInteractionInfo.put("writeLampAlarmModeAttribute", writeBallastConfigurationLampAlarmModeAttributeInteractionInfo); + Map writeBallastConfigurationLampBurnHoursTripPointCommandParams = new LinkedHashMap(); + CommandParameterInfo ballastConfigurationlampBurnHoursTripPointCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeBallastConfigurationLampBurnHoursTripPointCommandParams.put( + "value", + ballastConfigurationlampBurnHoursTripPointCommandParameterInfo + ); + InteractionInfo writeBallastConfigurationLampBurnHoursTripPointAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster).writeLampBurnHoursTripPointAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationLampBurnHoursTripPointCommandParams + ); + writeBallastConfigurationInteractionInfo.put("writeLampBurnHoursTripPointAttribute", writeBallastConfigurationLampBurnHoursTripPointAttributeInteractionInfo); + writeAttributeMap.put("ballastConfiguration", writeBallastConfigurationInteractionInfo); + Map writeIlluminanceMeasurementInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("illuminanceMeasurement", writeIlluminanceMeasurementInteractionInfo); + Map writeTemperatureMeasurementInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("temperatureMeasurement", writeTemperatureMeasurementInteractionInfo); + Map writePressureMeasurementInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("pressureMeasurement", writePressureMeasurementInteractionInfo); + Map writeFlowMeasurementInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("flowMeasurement", writeFlowMeasurementInteractionInfo); + Map writeRelativeHumidityMeasurementInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("relativeHumidityMeasurement", writeRelativeHumidityMeasurementInteractionInfo); + Map writeOccupancySensingInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("occupancySensing", writeOccupancySensingInteractionInfo); + Map writeWakeOnLanInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("wakeOnLan", writeWakeOnLanInteractionInfo); + Map writeChannelInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("channel", writeChannelInteractionInfo); + Map writeTargetNavigatorInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("targetNavigator", writeTargetNavigatorInteractionInfo); + Map writeMediaPlaybackInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("mediaPlayback", writeMediaPlaybackInteractionInfo); + Map writeMediaInputInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("mediaInput", writeMediaInputInteractionInfo); + Map writeLowPowerInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("lowPower", writeLowPowerInteractionInfo); + Map writeKeypadInputInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("keypadInput", writeKeypadInputInteractionInfo); + Map writeContentLauncherInteractionInfo = new LinkedHashMap<>(); + Map writeContentLauncherSupportedStreamingProtocolsCommandParams = new LinkedHashMap(); + CommandParameterInfo contentLaunchersupportedStreamingProtocolsCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeContentLauncherSupportedStreamingProtocolsCommandParams.put( + "value", + contentLaunchersupportedStreamingProtocolsCommandParameterInfo + ); + InteractionInfo writeContentLauncherSupportedStreamingProtocolsAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ContentLauncherCluster) cluster).writeSupportedStreamingProtocolsAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeContentLauncherSupportedStreamingProtocolsCommandParams + ); + writeContentLauncherInteractionInfo.put("writeSupportedStreamingProtocolsAttribute", writeContentLauncherSupportedStreamingProtocolsAttributeInteractionInfo); + writeAttributeMap.put("contentLauncher", writeContentLauncherInteractionInfo); + Map writeAudioOutputInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("audioOutput", writeAudioOutputInteractionInfo); + Map writeApplicationLauncherInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("applicationLauncher", writeApplicationLauncherInteractionInfo); + Map writeApplicationBasicInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("applicationBasic", writeApplicationBasicInteractionInfo); + Map writeAccountLoginInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("accountLogin", writeAccountLoginInteractionInfo); + Map writeElectricalMeasurementInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("electricalMeasurement", writeElectricalMeasurementInteractionInfo); + Map writeClientMonitoringInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("clientMonitoring", writeClientMonitoringInteractionInfo); + Map writeUnitTestingInteractionInfo = new LinkedHashMap<>(); + Map writeUnitTestingBooleanCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingbooleanCommandParameterInfo = + new CommandParameterInfo( + "value", + Boolean.class, + Boolean.class + ); + writeUnitTestingBooleanCommandParams.put( + "value", + unitTestingbooleanCommandParameterInfo + ); + InteractionInfo writeUnitTestingBooleanAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeBooleanAttribute( + (DefaultClusterCallback) callback, + (Boolean) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingBooleanCommandParams + ); + writeUnitTestingInteractionInfo.put("writeBooleanAttribute", writeUnitTestingBooleanAttributeInteractionInfo); + Map writeUnitTestingBitmap8CommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingbitmap8CommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingBitmap8CommandParams.put( + "value", + unitTestingbitmap8CommandParameterInfo + ); + InteractionInfo writeUnitTestingBitmap8AttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeBitmap8Attribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingBitmap8CommandParams + ); + writeUnitTestingInteractionInfo.put("writeBitmap8Attribute", writeUnitTestingBitmap8AttributeInteractionInfo); + Map writeUnitTestingBitmap16CommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingbitmap16CommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingBitmap16CommandParams.put( + "value", + unitTestingbitmap16CommandParameterInfo + ); + InteractionInfo writeUnitTestingBitmap16AttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeBitmap16Attribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingBitmap16CommandParams + ); + writeUnitTestingInteractionInfo.put("writeBitmap16Attribute", writeUnitTestingBitmap16AttributeInteractionInfo); + Map writeUnitTestingBitmap32CommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingbitmap32CommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingBitmap32CommandParams.put( + "value", + unitTestingbitmap32CommandParameterInfo + ); + InteractionInfo writeUnitTestingBitmap32AttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeBitmap32Attribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingBitmap32CommandParams + ); + writeUnitTestingInteractionInfo.put("writeBitmap32Attribute", writeUnitTestingBitmap32AttributeInteractionInfo); + Map writeUnitTestingBitmap64CommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingbitmap64CommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingBitmap64CommandParams.put( + "value", + unitTestingbitmap64CommandParameterInfo + ); + InteractionInfo writeUnitTestingBitmap64AttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeBitmap64Attribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingBitmap64CommandParams + ); + writeUnitTestingInteractionInfo.put("writeBitmap64Attribute", writeUnitTestingBitmap64AttributeInteractionInfo); + Map writeUnitTestingInt8uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingint8uCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingInt8uCommandParams.put( + "value", + unitTestingint8uCommandParameterInfo + ); + InteractionInfo writeUnitTestingInt8uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeInt8uAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt8uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeInt8uAttribute", writeUnitTestingInt8uAttributeInteractionInfo); + Map writeUnitTestingInt16uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingint16uCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingInt16uCommandParams.put( + "value", + unitTestingint16uCommandParameterInfo + ); + InteractionInfo writeUnitTestingInt16uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeInt16uAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt16uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeInt16uAttribute", writeUnitTestingInt16uAttributeInteractionInfo); + Map writeUnitTestingInt24uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingint24uCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingInt24uCommandParams.put( + "value", + unitTestingint24uCommandParameterInfo + ); + InteractionInfo writeUnitTestingInt24uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeInt24uAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt24uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeInt24uAttribute", writeUnitTestingInt24uAttributeInteractionInfo); + Map writeUnitTestingInt32uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingint32uCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingInt32uCommandParams.put( + "value", + unitTestingint32uCommandParameterInfo + ); + InteractionInfo writeUnitTestingInt32uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeInt32uAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt32uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeInt32uAttribute", writeUnitTestingInt32uAttributeInteractionInfo); + Map writeUnitTestingInt40uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingint40uCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingInt40uCommandParams.put( + "value", + unitTestingint40uCommandParameterInfo + ); + InteractionInfo writeUnitTestingInt40uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeInt40uAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt40uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeInt40uAttribute", writeUnitTestingInt40uAttributeInteractionInfo); + Map writeUnitTestingInt48uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingint48uCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingInt48uCommandParams.put( + "value", + unitTestingint48uCommandParameterInfo + ); + InteractionInfo writeUnitTestingInt48uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeInt48uAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt48uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeInt48uAttribute", writeUnitTestingInt48uAttributeInteractionInfo); + Map writeUnitTestingInt56uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingint56uCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingInt56uCommandParams.put( + "value", + unitTestingint56uCommandParameterInfo + ); + InteractionInfo writeUnitTestingInt56uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeInt56uAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt56uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeInt56uAttribute", writeUnitTestingInt56uAttributeInteractionInfo); + Map writeUnitTestingInt64uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingint64uCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingInt64uCommandParams.put( + "value", + unitTestingint64uCommandParameterInfo + ); + InteractionInfo writeUnitTestingInt64uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeInt64uAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt64uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeInt64uAttribute", writeUnitTestingInt64uAttributeInteractionInfo); + Map writeUnitTestingInt8sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingint8sCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingInt8sCommandParams.put( + "value", + unitTestingint8sCommandParameterInfo + ); + InteractionInfo writeUnitTestingInt8sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeInt8sAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt8sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeInt8sAttribute", writeUnitTestingInt8sAttributeInteractionInfo); + Map writeUnitTestingInt16sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingint16sCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingInt16sCommandParams.put( + "value", + unitTestingint16sCommandParameterInfo + ); + InteractionInfo writeUnitTestingInt16sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeInt16sAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt16sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeInt16sAttribute", writeUnitTestingInt16sAttributeInteractionInfo); + Map writeUnitTestingInt24sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingint24sCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingInt24sCommandParams.put( + "value", + unitTestingint24sCommandParameterInfo + ); + InteractionInfo writeUnitTestingInt24sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeInt24sAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt24sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeInt24sAttribute", writeUnitTestingInt24sAttributeInteractionInfo); + Map writeUnitTestingInt32sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingint32sCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingInt32sCommandParams.put( + "value", + unitTestingint32sCommandParameterInfo + ); + InteractionInfo writeUnitTestingInt32sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeInt32sAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt32sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeInt32sAttribute", writeUnitTestingInt32sAttributeInteractionInfo); + Map writeUnitTestingInt40sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingint40sCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingInt40sCommandParams.put( + "value", + unitTestingint40sCommandParameterInfo + ); + InteractionInfo writeUnitTestingInt40sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeInt40sAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt40sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeInt40sAttribute", writeUnitTestingInt40sAttributeInteractionInfo); + Map writeUnitTestingInt48sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingint48sCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingInt48sCommandParams.put( + "value", + unitTestingint48sCommandParameterInfo + ); + InteractionInfo writeUnitTestingInt48sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeInt48sAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt48sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeInt48sAttribute", writeUnitTestingInt48sAttributeInteractionInfo); + Map writeUnitTestingInt56sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingint56sCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingInt56sCommandParams.put( + "value", + unitTestingint56sCommandParameterInfo + ); + InteractionInfo writeUnitTestingInt56sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeInt56sAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt56sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeInt56sAttribute", writeUnitTestingInt56sAttributeInteractionInfo); + Map writeUnitTestingInt64sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingint64sCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingInt64sCommandParams.put( + "value", + unitTestingint64sCommandParameterInfo + ); + InteractionInfo writeUnitTestingInt64sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeInt64sAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt64sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeInt64sAttribute", writeUnitTestingInt64sAttributeInteractionInfo); + Map writeUnitTestingEnum8CommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingenum8CommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingEnum8CommandParams.put( + "value", + unitTestingenum8CommandParameterInfo + ); + InteractionInfo writeUnitTestingEnum8AttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeEnum8Attribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingEnum8CommandParams + ); + writeUnitTestingInteractionInfo.put("writeEnum8Attribute", writeUnitTestingEnum8AttributeInteractionInfo); + Map writeUnitTestingEnum16CommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingenum16CommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingEnum16CommandParams.put( + "value", + unitTestingenum16CommandParameterInfo + ); + InteractionInfo writeUnitTestingEnum16AttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeEnum16Attribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingEnum16CommandParams + ); + writeUnitTestingInteractionInfo.put("writeEnum16Attribute", writeUnitTestingEnum16AttributeInteractionInfo); + Map writeUnitTestingFloatSingleCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingfloatSingleCommandParameterInfo = + new CommandParameterInfo( + "value", + Float.class, + Float.class + ); + writeUnitTestingFloatSingleCommandParams.put( + "value", + unitTestingfloatSingleCommandParameterInfo + ); + InteractionInfo writeUnitTestingFloatSingleAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeFloatSingleAttribute( + (DefaultClusterCallback) callback, + (Float) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingFloatSingleCommandParams + ); + writeUnitTestingInteractionInfo.put("writeFloatSingleAttribute", writeUnitTestingFloatSingleAttributeInteractionInfo); + Map writeUnitTestingFloatDoubleCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingfloatDoubleCommandParameterInfo = + new CommandParameterInfo( + "value", + Double.class, + Double.class + ); + writeUnitTestingFloatDoubleCommandParams.put( + "value", + unitTestingfloatDoubleCommandParameterInfo + ); + InteractionInfo writeUnitTestingFloatDoubleAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeFloatDoubleAttribute( + (DefaultClusterCallback) callback, + (Double) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingFloatDoubleCommandParams + ); + writeUnitTestingInteractionInfo.put("writeFloatDoubleAttribute", writeUnitTestingFloatDoubleAttributeInteractionInfo); + Map writeUnitTestingOctetStringCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingoctetStringCommandParameterInfo = + new CommandParameterInfo( + "value", + byte[].class, + byte[].class + ); + writeUnitTestingOctetStringCommandParams.put( + "value", + unitTestingoctetStringCommandParameterInfo + ); + InteractionInfo writeUnitTestingOctetStringAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeOctetStringAttribute( + (DefaultClusterCallback) callback, + (byte[]) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingOctetStringCommandParams + ); + writeUnitTestingInteractionInfo.put("writeOctetStringAttribute", writeUnitTestingOctetStringAttributeInteractionInfo); + Map writeUnitTestingLongOctetStringCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestinglongOctetStringCommandParameterInfo = + new CommandParameterInfo( + "value", + byte[].class, + byte[].class + ); + writeUnitTestingLongOctetStringCommandParams.put( + "value", + unitTestinglongOctetStringCommandParameterInfo + ); + InteractionInfo writeUnitTestingLongOctetStringAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeLongOctetStringAttribute( + (DefaultClusterCallback) callback, + (byte[]) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingLongOctetStringCommandParams + ); + writeUnitTestingInteractionInfo.put("writeLongOctetStringAttribute", writeUnitTestingLongOctetStringAttributeInteractionInfo); + Map writeUnitTestingCharStringCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingcharStringCommandParameterInfo = + new CommandParameterInfo( + "value", + String.class, + String.class + ); + writeUnitTestingCharStringCommandParams.put( + "value", + unitTestingcharStringCommandParameterInfo + ); + InteractionInfo writeUnitTestingCharStringAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeCharStringAttribute( + (DefaultClusterCallback) callback, + (String) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingCharStringCommandParams + ); + writeUnitTestingInteractionInfo.put("writeCharStringAttribute", writeUnitTestingCharStringAttributeInteractionInfo); + Map writeUnitTestingLongCharStringCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestinglongCharStringCommandParameterInfo = + new CommandParameterInfo( + "value", + String.class, + String.class + ); + writeUnitTestingLongCharStringCommandParams.put( + "value", + unitTestinglongCharStringCommandParameterInfo + ); + InteractionInfo writeUnitTestingLongCharStringAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeLongCharStringAttribute( + (DefaultClusterCallback) callback, + (String) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingLongCharStringCommandParams + ); + writeUnitTestingInteractionInfo.put("writeLongCharStringAttribute", writeUnitTestingLongCharStringAttributeInteractionInfo); + Map writeUnitTestingEpochUsCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingepochUsCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingEpochUsCommandParams.put( + "value", + unitTestingepochUsCommandParameterInfo + ); + InteractionInfo writeUnitTestingEpochUsAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeEpochUsAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingEpochUsCommandParams + ); + writeUnitTestingInteractionInfo.put("writeEpochUsAttribute", writeUnitTestingEpochUsAttributeInteractionInfo); + Map writeUnitTestingEpochSCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingepochSCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingEpochSCommandParams.put( + "value", + unitTestingepochSCommandParameterInfo + ); + InteractionInfo writeUnitTestingEpochSAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeEpochSAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingEpochSCommandParams + ); + writeUnitTestingInteractionInfo.put("writeEpochSAttribute", writeUnitTestingEpochSAttributeInteractionInfo); + Map writeUnitTestingVendorIdCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingvendorIdCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingVendorIdCommandParams.put( + "value", + unitTestingvendorIdCommandParameterInfo + ); + InteractionInfo writeUnitTestingVendorIdAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeVendorIdAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingVendorIdCommandParams + ); + writeUnitTestingInteractionInfo.put("writeVendorIdAttribute", writeUnitTestingVendorIdAttributeInteractionInfo); + Map writeUnitTestingEnumAttrCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingenumAttrCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingEnumAttrCommandParams.put( + "value", + unitTestingenumAttrCommandParameterInfo + ); + InteractionInfo writeUnitTestingEnumAttrAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeEnumAttrAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingEnumAttrCommandParams + ); + writeUnitTestingInteractionInfo.put("writeEnumAttrAttribute", writeUnitTestingEnumAttrAttributeInteractionInfo); + Map writeUnitTestingRangeRestrictedInt8uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingrangeRestrictedInt8uCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingRangeRestrictedInt8uCommandParams.put( + "value", + unitTestingrangeRestrictedInt8uCommandParameterInfo + ); + InteractionInfo writeUnitTestingRangeRestrictedInt8uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeRangeRestrictedInt8uAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingRangeRestrictedInt8uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeRangeRestrictedInt8uAttribute", writeUnitTestingRangeRestrictedInt8uAttributeInteractionInfo); + Map writeUnitTestingRangeRestrictedInt8sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingrangeRestrictedInt8sCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingRangeRestrictedInt8sCommandParams.put( + "value", + unitTestingrangeRestrictedInt8sCommandParameterInfo + ); + InteractionInfo writeUnitTestingRangeRestrictedInt8sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeRangeRestrictedInt8sAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingRangeRestrictedInt8sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeRangeRestrictedInt8sAttribute", writeUnitTestingRangeRestrictedInt8sAttributeInteractionInfo); + Map writeUnitTestingRangeRestrictedInt16uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingrangeRestrictedInt16uCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingRangeRestrictedInt16uCommandParams.put( + "value", + unitTestingrangeRestrictedInt16uCommandParameterInfo + ); + InteractionInfo writeUnitTestingRangeRestrictedInt16uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeRangeRestrictedInt16uAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingRangeRestrictedInt16uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeRangeRestrictedInt16uAttribute", writeUnitTestingRangeRestrictedInt16uAttributeInteractionInfo); + Map writeUnitTestingRangeRestrictedInt16sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingrangeRestrictedInt16sCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingRangeRestrictedInt16sCommandParams.put( + "value", + unitTestingrangeRestrictedInt16sCommandParameterInfo + ); + InteractionInfo writeUnitTestingRangeRestrictedInt16sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeRangeRestrictedInt16sAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingRangeRestrictedInt16sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeRangeRestrictedInt16sAttribute", writeUnitTestingRangeRestrictedInt16sAttributeInteractionInfo); + Map writeUnitTestingTimedWriteBooleanCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingtimedWriteBooleanCommandParameterInfo = + new CommandParameterInfo( + "value", + Boolean.class, + Boolean.class + ); + writeUnitTestingTimedWriteBooleanCommandParams.put( + "value", + unitTestingtimedWriteBooleanCommandParameterInfo + ); + InteractionInfo writeUnitTestingTimedWriteBooleanAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeTimedWriteBooleanAttribute( + (DefaultClusterCallback) callback, + (Boolean) commandArguments.get("value"), 10000 + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingTimedWriteBooleanCommandParams + ); + writeUnitTestingInteractionInfo.put("writeTimedWriteBooleanAttribute", writeUnitTestingTimedWriteBooleanAttributeInteractionInfo); + Map writeUnitTestingGeneralErrorBooleanCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestinggeneralErrorBooleanCommandParameterInfo = + new CommandParameterInfo( + "value", + Boolean.class, + Boolean.class + ); + writeUnitTestingGeneralErrorBooleanCommandParams.put( + "value", + unitTestinggeneralErrorBooleanCommandParameterInfo + ); + InteractionInfo writeUnitTestingGeneralErrorBooleanAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeGeneralErrorBooleanAttribute( + (DefaultClusterCallback) callback, + (Boolean) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingGeneralErrorBooleanCommandParams + ); + writeUnitTestingInteractionInfo.put("writeGeneralErrorBooleanAttribute", writeUnitTestingGeneralErrorBooleanAttributeInteractionInfo); + Map writeUnitTestingClusterErrorBooleanCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingclusterErrorBooleanCommandParameterInfo = + new CommandParameterInfo( + "value", + Boolean.class, + Boolean.class + ); + writeUnitTestingClusterErrorBooleanCommandParams.put( + "value", + unitTestingclusterErrorBooleanCommandParameterInfo + ); + InteractionInfo writeUnitTestingClusterErrorBooleanAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeClusterErrorBooleanAttribute( + (DefaultClusterCallback) callback, + (Boolean) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingClusterErrorBooleanCommandParams + ); + writeUnitTestingInteractionInfo.put("writeClusterErrorBooleanAttribute", writeUnitTestingClusterErrorBooleanAttributeInteractionInfo); + Map writeUnitTestingUnsupportedCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingunsupportedCommandParameterInfo = + new CommandParameterInfo( + "value", + Boolean.class, + Boolean.class + ); + writeUnitTestingUnsupportedCommandParams.put( + "value", + unitTestingunsupportedCommandParameterInfo + ); + InteractionInfo writeUnitTestingUnsupportedAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeUnsupportedAttribute( + (DefaultClusterCallback) callback, + (Boolean) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingUnsupportedCommandParams + ); + writeUnitTestingInteractionInfo.put("writeUnsupportedAttribute", writeUnitTestingUnsupportedAttributeInteractionInfo); + Map writeUnitTestingNullableBooleanCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableBooleanCommandParameterInfo = + new CommandParameterInfo( + "value", + Boolean.class, + Boolean.class + ); + writeUnitTestingNullableBooleanCommandParams.put( + "value", + unitTestingnullableBooleanCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableBooleanAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableBooleanAttribute( + (DefaultClusterCallback) callback, + (Boolean) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableBooleanCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableBooleanAttribute", writeUnitTestingNullableBooleanAttributeInteractionInfo); + Map writeUnitTestingNullableBitmap8CommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableBitmap8CommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingNullableBitmap8CommandParams.put( + "value", + unitTestingnullableBitmap8CommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableBitmap8AttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableBitmap8Attribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableBitmap8CommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableBitmap8Attribute", writeUnitTestingNullableBitmap8AttributeInteractionInfo); + Map writeUnitTestingNullableBitmap16CommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableBitmap16CommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingNullableBitmap16CommandParams.put( + "value", + unitTestingnullableBitmap16CommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableBitmap16AttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableBitmap16Attribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableBitmap16CommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableBitmap16Attribute", writeUnitTestingNullableBitmap16AttributeInteractionInfo); + Map writeUnitTestingNullableBitmap32CommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableBitmap32CommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingNullableBitmap32CommandParams.put( + "value", + unitTestingnullableBitmap32CommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableBitmap32AttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableBitmap32Attribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableBitmap32CommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableBitmap32Attribute", writeUnitTestingNullableBitmap32AttributeInteractionInfo); + Map writeUnitTestingNullableBitmap64CommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableBitmap64CommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingNullableBitmap64CommandParams.put( + "value", + unitTestingnullableBitmap64CommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableBitmap64AttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableBitmap64Attribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableBitmap64CommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableBitmap64Attribute", writeUnitTestingNullableBitmap64AttributeInteractionInfo); + Map writeUnitTestingNullableInt8uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableInt8uCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingNullableInt8uCommandParams.put( + "value", + unitTestingnullableInt8uCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableInt8uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt8uAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt8uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableInt8uAttribute", writeUnitTestingNullableInt8uAttributeInteractionInfo); + Map writeUnitTestingNullableInt16uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableInt16uCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingNullableInt16uCommandParams.put( + "value", + unitTestingnullableInt16uCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableInt16uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt16uAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt16uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableInt16uAttribute", writeUnitTestingNullableInt16uAttributeInteractionInfo); + Map writeUnitTestingNullableInt24uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableInt24uCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingNullableInt24uCommandParams.put( + "value", + unitTestingnullableInt24uCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableInt24uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt24uAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt24uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableInt24uAttribute", writeUnitTestingNullableInt24uAttributeInteractionInfo); + Map writeUnitTestingNullableInt32uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableInt32uCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingNullableInt32uCommandParams.put( + "value", + unitTestingnullableInt32uCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableInt32uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt32uAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt32uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableInt32uAttribute", writeUnitTestingNullableInt32uAttributeInteractionInfo); + Map writeUnitTestingNullableInt40uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableInt40uCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingNullableInt40uCommandParams.put( + "value", + unitTestingnullableInt40uCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableInt40uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt40uAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt40uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableInt40uAttribute", writeUnitTestingNullableInt40uAttributeInteractionInfo); + Map writeUnitTestingNullableInt48uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableInt48uCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingNullableInt48uCommandParams.put( + "value", + unitTestingnullableInt48uCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableInt48uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt48uAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt48uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableInt48uAttribute", writeUnitTestingNullableInt48uAttributeInteractionInfo); + Map writeUnitTestingNullableInt56uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableInt56uCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingNullableInt56uCommandParams.put( + "value", + unitTestingnullableInt56uCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableInt56uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt56uAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt56uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableInt56uAttribute", writeUnitTestingNullableInt56uAttributeInteractionInfo); + Map writeUnitTestingNullableInt64uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableInt64uCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingNullableInt64uCommandParams.put( + "value", + unitTestingnullableInt64uCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableInt64uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt64uAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt64uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableInt64uAttribute", writeUnitTestingNullableInt64uAttributeInteractionInfo); + Map writeUnitTestingNullableInt8sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableInt8sCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingNullableInt8sCommandParams.put( + "value", + unitTestingnullableInt8sCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableInt8sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt8sAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt8sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableInt8sAttribute", writeUnitTestingNullableInt8sAttributeInteractionInfo); + Map writeUnitTestingNullableInt16sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableInt16sCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingNullableInt16sCommandParams.put( + "value", + unitTestingnullableInt16sCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableInt16sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt16sAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt16sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableInt16sAttribute", writeUnitTestingNullableInt16sAttributeInteractionInfo); + Map writeUnitTestingNullableInt24sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableInt24sCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingNullableInt24sCommandParams.put( + "value", + unitTestingnullableInt24sCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableInt24sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt24sAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt24sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableInt24sAttribute", writeUnitTestingNullableInt24sAttributeInteractionInfo); + Map writeUnitTestingNullableInt32sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableInt32sCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingNullableInt32sCommandParams.put( + "value", + unitTestingnullableInt32sCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableInt32sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt32sAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt32sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableInt32sAttribute", writeUnitTestingNullableInt32sAttributeInteractionInfo); + Map writeUnitTestingNullableInt40sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableInt40sCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingNullableInt40sCommandParams.put( + "value", + unitTestingnullableInt40sCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableInt40sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt40sAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt40sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableInt40sAttribute", writeUnitTestingNullableInt40sAttributeInteractionInfo); + Map writeUnitTestingNullableInt48sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableInt48sCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingNullableInt48sCommandParams.put( + "value", + unitTestingnullableInt48sCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableInt48sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt48sAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt48sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableInt48sAttribute", writeUnitTestingNullableInt48sAttributeInteractionInfo); + Map writeUnitTestingNullableInt56sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableInt56sCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingNullableInt56sCommandParams.put( + "value", + unitTestingnullableInt56sCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableInt56sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt56sAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt56sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableInt56sAttribute", writeUnitTestingNullableInt56sAttributeInteractionInfo); + Map writeUnitTestingNullableInt64sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableInt64sCommandParameterInfo = + new CommandParameterInfo( + "value", + Long.class, + Long.class + ); + writeUnitTestingNullableInt64sCommandParams.put( + "value", + unitTestingnullableInt64sCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableInt64sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt64sAttribute( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt64sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableInt64sAttribute", writeUnitTestingNullableInt64sAttributeInteractionInfo); + Map writeUnitTestingNullableEnum8CommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableEnum8CommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingNullableEnum8CommandParams.put( + "value", + unitTestingnullableEnum8CommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableEnum8AttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableEnum8Attribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableEnum8CommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableEnum8Attribute", writeUnitTestingNullableEnum8AttributeInteractionInfo); + Map writeUnitTestingNullableEnum16CommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableEnum16CommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingNullableEnum16CommandParams.put( + "value", + unitTestingnullableEnum16CommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableEnum16AttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableEnum16Attribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableEnum16CommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableEnum16Attribute", writeUnitTestingNullableEnum16AttributeInteractionInfo); + Map writeUnitTestingNullableFloatSingleCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableFloatSingleCommandParameterInfo = + new CommandParameterInfo( + "value", + Float.class, + Float.class + ); + writeUnitTestingNullableFloatSingleCommandParams.put( + "value", + unitTestingnullableFloatSingleCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableFloatSingleAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableFloatSingleAttribute( + (DefaultClusterCallback) callback, + (Float) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableFloatSingleCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableFloatSingleAttribute", writeUnitTestingNullableFloatSingleAttributeInteractionInfo); + Map writeUnitTestingNullableFloatDoubleCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableFloatDoubleCommandParameterInfo = + new CommandParameterInfo( + "value", + Double.class, + Double.class + ); + writeUnitTestingNullableFloatDoubleCommandParams.put( + "value", + unitTestingnullableFloatDoubleCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableFloatDoubleAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableFloatDoubleAttribute( + (DefaultClusterCallback) callback, + (Double) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableFloatDoubleCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableFloatDoubleAttribute", writeUnitTestingNullableFloatDoubleAttributeInteractionInfo); + Map writeUnitTestingNullableOctetStringCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableOctetStringCommandParameterInfo = + new CommandParameterInfo( + "value", + byte[].class, + byte[].class + ); + writeUnitTestingNullableOctetStringCommandParams.put( + "value", + unitTestingnullableOctetStringCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableOctetStringAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableOctetStringAttribute( + (DefaultClusterCallback) callback, + (byte[]) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableOctetStringCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableOctetStringAttribute", writeUnitTestingNullableOctetStringAttributeInteractionInfo); + Map writeUnitTestingNullableCharStringCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableCharStringCommandParameterInfo = + new CommandParameterInfo( + "value", + String.class, + String.class + ); + writeUnitTestingNullableCharStringCommandParams.put( + "value", + unitTestingnullableCharStringCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableCharStringAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableCharStringAttribute( + (DefaultClusterCallback) callback, + (String) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableCharStringCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableCharStringAttribute", writeUnitTestingNullableCharStringAttributeInteractionInfo); + Map writeUnitTestingNullableEnumAttrCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableEnumAttrCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingNullableEnumAttrCommandParams.put( + "value", + unitTestingnullableEnumAttrCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableEnumAttrAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableEnumAttrAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableEnumAttrCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableEnumAttrAttribute", writeUnitTestingNullableEnumAttrAttributeInteractionInfo); + Map writeUnitTestingNullableRangeRestrictedInt8uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableRangeRestrictedInt8uCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingNullableRangeRestrictedInt8uCommandParams.put( + "value", + unitTestingnullableRangeRestrictedInt8uCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableRangeRestrictedInt8uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableRangeRestrictedInt8uAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableRangeRestrictedInt8uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableRangeRestrictedInt8uAttribute", writeUnitTestingNullableRangeRestrictedInt8uAttributeInteractionInfo); + Map writeUnitTestingNullableRangeRestrictedInt8sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableRangeRestrictedInt8sCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingNullableRangeRestrictedInt8sCommandParams.put( + "value", + unitTestingnullableRangeRestrictedInt8sCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableRangeRestrictedInt8sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableRangeRestrictedInt8sAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableRangeRestrictedInt8sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableRangeRestrictedInt8sAttribute", writeUnitTestingNullableRangeRestrictedInt8sAttributeInteractionInfo); + Map writeUnitTestingNullableRangeRestrictedInt16uCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableRangeRestrictedInt16uCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingNullableRangeRestrictedInt16uCommandParams.put( + "value", + unitTestingnullableRangeRestrictedInt16uCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableRangeRestrictedInt16uAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableRangeRestrictedInt16uAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableRangeRestrictedInt16uCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableRangeRestrictedInt16uAttribute", writeUnitTestingNullableRangeRestrictedInt16uAttributeInteractionInfo); + Map writeUnitTestingNullableRangeRestrictedInt16sCommandParams = new LinkedHashMap(); + CommandParameterInfo unitTestingnullableRangeRestrictedInt16sCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeUnitTestingNullableRangeRestrictedInt16sCommandParams.put( + "value", + unitTestingnullableRangeRestrictedInt16sCommandParameterInfo + ); + InteractionInfo writeUnitTestingNullableRangeRestrictedInt16sAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster).writeNullableRangeRestrictedInt16sAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableRangeRestrictedInt16sCommandParams + ); + writeUnitTestingInteractionInfo.put("writeNullableRangeRestrictedInt16sAttribute", writeUnitTestingNullableRangeRestrictedInt16sAttributeInteractionInfo); + writeAttributeMap.put("unitTesting", writeUnitTestingInteractionInfo);return writeAttributeMap; + } +} diff --git a/src/controller/java/templates/ClusterInfo-write-interaction.zapt b/src/controller/java/templates/ClusterInfo-write-interaction.zapt deleted file mode 100644 index 29e52ad07dde67..00000000000000 --- a/src/controller/java/templates/ClusterInfo-write-interaction.zapt +++ /dev/null @@ -1,49 +0,0 @@ -{{> header}} -{{#if (chip_has_client_clusters)}} - -package chip.devicecontroller; - -import chip.clusterinfo.CommandParameterInfo; -import chip.clusterinfo.InteractionInfo; -import chip.devicecontroller.ChipClusters.DefaultClusterCallback; -import java.util.HashMap; -import java.util.LinkedHashMap; -import java.util.Map; - -public class ClusterWriteMapping { - public Map> getWriteAttributeMap() { - Map> writeAttributeMap = new HashMap<>(); - {{#chip_client_clusters}} - Map write{{asUpperCamelCase name}}InteractionInfo = new LinkedHashMap<>(); - {{#chip_server_cluster_attributes}} - {{! TODO: Add support for struct-typed attributes }} - {{#unless (isStrEqual chipCallback.name "Unsupported")}} - {{#if isWritableAttribute}} - {{#unless isArray}} - Map write{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}CommandParams = new LinkedHashMap(); - CommandParameterInfo {{asLowerCamelCase ../name}}{{asLowerCamelCase name}}CommandParameterInfo = new CommandParameterInfo("value", {{asJavaType type null parent.parent.name removeGenericType=true}}.class, {{asJavaType type null parent.parent.name underlyingType=true}}.class); - write{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}CommandParams.put("value",{{asLowerCamelCase ../name}}{{asLowerCamelCase name}}CommandParameterInfo); - InteractionInfo write{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}AttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.{{asUpperCamelCase ../name}}Cluster) cluster).write{{asUpperCamelCase name}}Attribute( - (DefaultClusterCallback) callback, - ({{asJavaBoxedType type chipType}}) - commandArguments.get("value") - {{#if mustUseTimedWrite}}, 10000{{/if}} - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - write{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}CommandParams - ); - write{{asUpperCamelCase ../name}}InteractionInfo.put("write{{asUpperCamelCase name}}Attribute", write{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}AttributeInteractionInfo); - {{/unless}} - {{/if}} - {{/unless}} - {{/chip_server_cluster_attributes}} - writeAttributeMap.put("{{asLowerCamelCase name}}", write{{asUpperCamelCase name}}InteractionInfo); - {{/chip_client_clusters}} - return writeAttributeMap; - } -} - -{{/if}} \ No newline at end of file diff --git a/src/controller/java/zap-generated/chip/devicecontroller/ClusterWriteMapping.java b/src/controller/java/zap-generated/chip/devicecontroller/ClusterWriteMapping.java deleted file mode 100644 index 571d380673d247..00000000000000 --- a/src/controller/java/zap-generated/chip/devicecontroller/ClusterWriteMapping.java +++ /dev/null @@ -1,3164 +0,0 @@ -/* - * - * Copyright (c) 2022 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP - -package chip.devicecontroller; - -import chip.clusterinfo.CommandParameterInfo; -import chip.clusterinfo.InteractionInfo; -import chip.devicecontroller.ChipClusters.DefaultClusterCallback; -import java.util.HashMap; -import java.util.LinkedHashMap; -import java.util.Map; - -public class ClusterWriteMapping { - public Map> getWriteAttributeMap() { - Map> writeAttributeMap = new HashMap<>(); - Map writeIdentifyInteractionInfo = new LinkedHashMap<>(); - Map writeIdentifyIdentifyTimeCommandParams = - new LinkedHashMap(); - CommandParameterInfo identifyidentifyTimeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeIdentifyIdentifyTimeCommandParams.put("value", identifyidentifyTimeCommandParameterInfo); - InteractionInfo writeIdentifyIdentifyTimeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.IdentifyCluster) cluster) - .writeIdentifyTimeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeIdentifyIdentifyTimeCommandParams); - writeIdentifyInteractionInfo.put( - "writeIdentifyTimeAttribute", writeIdentifyIdentifyTimeAttributeInteractionInfo); - writeAttributeMap.put("identify", writeIdentifyInteractionInfo); - Map writeGroupsInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("groups", writeGroupsInteractionInfo); - Map writeScenesInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("scenes", writeScenesInteractionInfo); - Map writeOnOffInteractionInfo = new LinkedHashMap<>(); - Map writeOnOffOnTimeCommandParams = - new LinkedHashMap(); - CommandParameterInfo onOffonTimeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeOnOffOnTimeCommandParams.put("value", onOffonTimeCommandParameterInfo); - InteractionInfo writeOnOffOnTimeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.OnOffCluster) cluster) - .writeOnTimeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeOnOffOnTimeCommandParams); - writeOnOffInteractionInfo.put("writeOnTimeAttribute", writeOnOffOnTimeAttributeInteractionInfo); - Map writeOnOffOffWaitTimeCommandParams = - new LinkedHashMap(); - CommandParameterInfo onOffoffWaitTimeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeOnOffOffWaitTimeCommandParams.put("value", onOffoffWaitTimeCommandParameterInfo); - InteractionInfo writeOnOffOffWaitTimeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.OnOffCluster) cluster) - .writeOffWaitTimeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeOnOffOffWaitTimeCommandParams); - writeOnOffInteractionInfo.put( - "writeOffWaitTimeAttribute", writeOnOffOffWaitTimeAttributeInteractionInfo); - Map writeOnOffStartUpOnOffCommandParams = - new LinkedHashMap(); - CommandParameterInfo onOffstartUpOnOffCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeOnOffStartUpOnOffCommandParams.put("value", onOffstartUpOnOffCommandParameterInfo); - InteractionInfo writeOnOffStartUpOnOffAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.OnOffCluster) cluster) - .writeStartUpOnOffAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeOnOffStartUpOnOffCommandParams); - writeOnOffInteractionInfo.put( - "writeStartUpOnOffAttribute", writeOnOffStartUpOnOffAttributeInteractionInfo); - writeAttributeMap.put("onOff", writeOnOffInteractionInfo); - Map writeOnOffSwitchConfigurationInteractionInfo = - new LinkedHashMap<>(); - Map writeOnOffSwitchConfigurationSwitchActionsCommandParams = - new LinkedHashMap(); - CommandParameterInfo onOffSwitchConfigurationswitchActionsCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeOnOffSwitchConfigurationSwitchActionsCommandParams.put( - "value", onOffSwitchConfigurationswitchActionsCommandParameterInfo); - InteractionInfo writeOnOffSwitchConfigurationSwitchActionsAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.OnOffSwitchConfigurationCluster) cluster) - .writeSwitchActionsAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeOnOffSwitchConfigurationSwitchActionsCommandParams); - writeOnOffSwitchConfigurationInteractionInfo.put( - "writeSwitchActionsAttribute", - writeOnOffSwitchConfigurationSwitchActionsAttributeInteractionInfo); - writeAttributeMap.put("onOffSwitchConfiguration", writeOnOffSwitchConfigurationInteractionInfo); - Map writeLevelControlInteractionInfo = new LinkedHashMap<>(); - Map writeLevelControlOptionsCommandParams = - new LinkedHashMap(); - CommandParameterInfo levelControloptionsCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeLevelControlOptionsCommandParams.put("value", levelControloptionsCommandParameterInfo); - InteractionInfo writeLevelControlOptionsAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster) - .writeOptionsAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeLevelControlOptionsCommandParams); - writeLevelControlInteractionInfo.put( - "writeOptionsAttribute", writeLevelControlOptionsAttributeInteractionInfo); - Map writeLevelControlOnOffTransitionTimeCommandParams = - new LinkedHashMap(); - CommandParameterInfo levelControlonOffTransitionTimeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeLevelControlOnOffTransitionTimeCommandParams.put( - "value", levelControlonOffTransitionTimeCommandParameterInfo); - InteractionInfo writeLevelControlOnOffTransitionTimeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster) - .writeOnOffTransitionTimeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeLevelControlOnOffTransitionTimeCommandParams); - writeLevelControlInteractionInfo.put( - "writeOnOffTransitionTimeAttribute", - writeLevelControlOnOffTransitionTimeAttributeInteractionInfo); - Map writeLevelControlOnLevelCommandParams = - new LinkedHashMap(); - CommandParameterInfo levelControlonLevelCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeLevelControlOnLevelCommandParams.put("value", levelControlonLevelCommandParameterInfo); - InteractionInfo writeLevelControlOnLevelAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster) - .writeOnLevelAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeLevelControlOnLevelCommandParams); - writeLevelControlInteractionInfo.put( - "writeOnLevelAttribute", writeLevelControlOnLevelAttributeInteractionInfo); - Map writeLevelControlOnTransitionTimeCommandParams = - new LinkedHashMap(); - CommandParameterInfo levelControlonTransitionTimeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeLevelControlOnTransitionTimeCommandParams.put( - "value", levelControlonTransitionTimeCommandParameterInfo); - InteractionInfo writeLevelControlOnTransitionTimeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster) - .writeOnTransitionTimeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeLevelControlOnTransitionTimeCommandParams); - writeLevelControlInteractionInfo.put( - "writeOnTransitionTimeAttribute", - writeLevelControlOnTransitionTimeAttributeInteractionInfo); - Map writeLevelControlOffTransitionTimeCommandParams = - new LinkedHashMap(); - CommandParameterInfo levelControloffTransitionTimeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeLevelControlOffTransitionTimeCommandParams.put( - "value", levelControloffTransitionTimeCommandParameterInfo); - InteractionInfo writeLevelControlOffTransitionTimeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster) - .writeOffTransitionTimeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeLevelControlOffTransitionTimeCommandParams); - writeLevelControlInteractionInfo.put( - "writeOffTransitionTimeAttribute", - writeLevelControlOffTransitionTimeAttributeInteractionInfo); - Map writeLevelControlDefaultMoveRateCommandParams = - new LinkedHashMap(); - CommandParameterInfo levelControldefaultMoveRateCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeLevelControlDefaultMoveRateCommandParams.put( - "value", levelControldefaultMoveRateCommandParameterInfo); - InteractionInfo writeLevelControlDefaultMoveRateAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster) - .writeDefaultMoveRateAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeLevelControlDefaultMoveRateCommandParams); - writeLevelControlInteractionInfo.put( - "writeDefaultMoveRateAttribute", writeLevelControlDefaultMoveRateAttributeInteractionInfo); - Map writeLevelControlStartUpCurrentLevelCommandParams = - new LinkedHashMap(); - CommandParameterInfo levelControlstartUpCurrentLevelCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeLevelControlStartUpCurrentLevelCommandParams.put( - "value", levelControlstartUpCurrentLevelCommandParameterInfo); - InteractionInfo writeLevelControlStartUpCurrentLevelAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster) - .writeStartUpCurrentLevelAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeLevelControlStartUpCurrentLevelCommandParams); - writeLevelControlInteractionInfo.put( - "writeStartUpCurrentLevelAttribute", - writeLevelControlStartUpCurrentLevelAttributeInteractionInfo); - writeAttributeMap.put("levelControl", writeLevelControlInteractionInfo); - Map writeBinaryInputBasicInteractionInfo = new LinkedHashMap<>(); - Map writeBinaryInputBasicOutOfServiceCommandParams = - new LinkedHashMap(); - CommandParameterInfo binaryInputBasicoutOfServiceCommandParameterInfo = - new CommandParameterInfo("value", Boolean.class, Boolean.class); - writeBinaryInputBasicOutOfServiceCommandParams.put( - "value", binaryInputBasicoutOfServiceCommandParameterInfo); - InteractionInfo writeBinaryInputBasicOutOfServiceAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BinaryInputBasicCluster) cluster) - .writeOutOfServiceAttribute( - (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBinaryInputBasicOutOfServiceCommandParams); - writeBinaryInputBasicInteractionInfo.put( - "writeOutOfServiceAttribute", writeBinaryInputBasicOutOfServiceAttributeInteractionInfo); - Map writeBinaryInputBasicPresentValueCommandParams = - new LinkedHashMap(); - CommandParameterInfo binaryInputBasicpresentValueCommandParameterInfo = - new CommandParameterInfo("value", Boolean.class, Boolean.class); - writeBinaryInputBasicPresentValueCommandParams.put( - "value", binaryInputBasicpresentValueCommandParameterInfo); - InteractionInfo writeBinaryInputBasicPresentValueAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BinaryInputBasicCluster) cluster) - .writePresentValueAttribute( - (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBinaryInputBasicPresentValueCommandParams); - writeBinaryInputBasicInteractionInfo.put( - "writePresentValueAttribute", writeBinaryInputBasicPresentValueAttributeInteractionInfo); - writeAttributeMap.put("binaryInputBasic", writeBinaryInputBasicInteractionInfo); - Map writeDescriptorInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("descriptor", writeDescriptorInteractionInfo); - Map writeBindingInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("binding", writeBindingInteractionInfo); - Map writeAccessControlInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("accessControl", writeAccessControlInteractionInfo); - Map writeActionsInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("actions", writeActionsInteractionInfo); - Map writeBasicInformationInteractionInfo = new LinkedHashMap<>(); - Map writeBasicInformationNodeLabelCommandParams = - new LinkedHashMap(); - CommandParameterInfo basicInformationnodeLabelCommandParameterInfo = - new CommandParameterInfo("value", String.class, String.class); - writeBasicInformationNodeLabelCommandParams.put( - "value", basicInformationnodeLabelCommandParameterInfo); - InteractionInfo writeBasicInformationNodeLabelAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BasicInformationCluster) cluster) - .writeNodeLabelAttribute( - (DefaultClusterCallback) callback, (String) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBasicInformationNodeLabelCommandParams); - writeBasicInformationInteractionInfo.put( - "writeNodeLabelAttribute", writeBasicInformationNodeLabelAttributeInteractionInfo); - Map writeBasicInformationLocationCommandParams = - new LinkedHashMap(); - CommandParameterInfo basicInformationlocationCommandParameterInfo = - new CommandParameterInfo("value", String.class, String.class); - writeBasicInformationLocationCommandParams.put( - "value", basicInformationlocationCommandParameterInfo); - InteractionInfo writeBasicInformationLocationAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BasicInformationCluster) cluster) - .writeLocationAttribute( - (DefaultClusterCallback) callback, (String) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBasicInformationLocationCommandParams); - writeBasicInformationInteractionInfo.put( - "writeLocationAttribute", writeBasicInformationLocationAttributeInteractionInfo); - Map writeBasicInformationLocalConfigDisabledCommandParams = - new LinkedHashMap(); - CommandParameterInfo basicInformationlocalConfigDisabledCommandParameterInfo = - new CommandParameterInfo("value", Boolean.class, Boolean.class); - writeBasicInformationLocalConfigDisabledCommandParams.put( - "value", basicInformationlocalConfigDisabledCommandParameterInfo); - InteractionInfo writeBasicInformationLocalConfigDisabledAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BasicInformationCluster) cluster) - .writeLocalConfigDisabledAttribute( - (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBasicInformationLocalConfigDisabledCommandParams); - writeBasicInformationInteractionInfo.put( - "writeLocalConfigDisabledAttribute", - writeBasicInformationLocalConfigDisabledAttributeInteractionInfo); - writeAttributeMap.put("basicInformation", writeBasicInformationInteractionInfo); - Map writeOtaSoftwareUpdateProviderInteractionInfo = - new LinkedHashMap<>(); - writeAttributeMap.put( - "otaSoftwareUpdateProvider", writeOtaSoftwareUpdateProviderInteractionInfo); - Map writeOtaSoftwareUpdateRequestorInteractionInfo = - new LinkedHashMap<>(); - writeAttributeMap.put( - "otaSoftwareUpdateRequestor", writeOtaSoftwareUpdateRequestorInteractionInfo); - Map writeLocalizationConfigurationInteractionInfo = - new LinkedHashMap<>(); - Map writeLocalizationConfigurationActiveLocaleCommandParams = - new LinkedHashMap(); - CommandParameterInfo localizationConfigurationactiveLocaleCommandParameterInfo = - new CommandParameterInfo("value", String.class, String.class); - writeLocalizationConfigurationActiveLocaleCommandParams.put( - "value", localizationConfigurationactiveLocaleCommandParameterInfo); - InteractionInfo writeLocalizationConfigurationActiveLocaleAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.LocalizationConfigurationCluster) cluster) - .writeActiveLocaleAttribute( - (DefaultClusterCallback) callback, (String) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeLocalizationConfigurationActiveLocaleCommandParams); - writeLocalizationConfigurationInteractionInfo.put( - "writeActiveLocaleAttribute", - writeLocalizationConfigurationActiveLocaleAttributeInteractionInfo); - writeAttributeMap.put( - "localizationConfiguration", writeLocalizationConfigurationInteractionInfo); - Map writeTimeFormatLocalizationInteractionInfo = new LinkedHashMap<>(); - Map writeTimeFormatLocalizationHourFormatCommandParams = - new LinkedHashMap(); - CommandParameterInfo timeFormatLocalizationhourFormatCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeTimeFormatLocalizationHourFormatCommandParams.put( - "value", timeFormatLocalizationhourFormatCommandParameterInfo); - InteractionInfo writeTimeFormatLocalizationHourFormatAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.TimeFormatLocalizationCluster) cluster) - .writeHourFormatAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeTimeFormatLocalizationHourFormatCommandParams); - writeTimeFormatLocalizationInteractionInfo.put( - "writeHourFormatAttribute", writeTimeFormatLocalizationHourFormatAttributeInteractionInfo); - Map writeTimeFormatLocalizationActiveCalendarTypeCommandParams = - new LinkedHashMap(); - CommandParameterInfo timeFormatLocalizationactiveCalendarTypeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeTimeFormatLocalizationActiveCalendarTypeCommandParams.put( - "value", timeFormatLocalizationactiveCalendarTypeCommandParameterInfo); - InteractionInfo writeTimeFormatLocalizationActiveCalendarTypeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.TimeFormatLocalizationCluster) cluster) - .writeActiveCalendarTypeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeTimeFormatLocalizationActiveCalendarTypeCommandParams); - writeTimeFormatLocalizationInteractionInfo.put( - "writeActiveCalendarTypeAttribute", - writeTimeFormatLocalizationActiveCalendarTypeAttributeInteractionInfo); - writeAttributeMap.put("timeFormatLocalization", writeTimeFormatLocalizationInteractionInfo); - Map writeUnitLocalizationInteractionInfo = new LinkedHashMap<>(); - Map writeUnitLocalizationTemperatureUnitCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitLocalizationtemperatureUnitCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitLocalizationTemperatureUnitCommandParams.put( - "value", unitLocalizationtemperatureUnitCommandParameterInfo); - InteractionInfo writeUnitLocalizationTemperatureUnitAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitLocalizationCluster) cluster) - .writeTemperatureUnitAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitLocalizationTemperatureUnitCommandParams); - writeUnitLocalizationInteractionInfo.put( - "writeTemperatureUnitAttribute", - writeUnitLocalizationTemperatureUnitAttributeInteractionInfo); - writeAttributeMap.put("unitLocalization", writeUnitLocalizationInteractionInfo); - Map writePowerSourceConfigurationInteractionInfo = - new LinkedHashMap<>(); - writeAttributeMap.put("powerSourceConfiguration", writePowerSourceConfigurationInteractionInfo); - Map writePowerSourceInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("powerSource", writePowerSourceInteractionInfo); - Map writeGeneralCommissioningInteractionInfo = new LinkedHashMap<>(); - Map writeGeneralCommissioningBreadcrumbCommandParams = - new LinkedHashMap(); - CommandParameterInfo generalCommissioningbreadcrumbCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeGeneralCommissioningBreadcrumbCommandParams.put( - "value", generalCommissioningbreadcrumbCommandParameterInfo); - InteractionInfo writeGeneralCommissioningBreadcrumbAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.GeneralCommissioningCluster) cluster) - .writeBreadcrumbAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeGeneralCommissioningBreadcrumbCommandParams); - writeGeneralCommissioningInteractionInfo.put( - "writeBreadcrumbAttribute", writeGeneralCommissioningBreadcrumbAttributeInteractionInfo); - writeAttributeMap.put("generalCommissioning", writeGeneralCommissioningInteractionInfo); - Map writeNetworkCommissioningInteractionInfo = new LinkedHashMap<>(); - Map writeNetworkCommissioningInterfaceEnabledCommandParams = - new LinkedHashMap(); - CommandParameterInfo networkCommissioninginterfaceEnabledCommandParameterInfo = - new CommandParameterInfo("value", Boolean.class, Boolean.class); - writeNetworkCommissioningInterfaceEnabledCommandParams.put( - "value", networkCommissioninginterfaceEnabledCommandParameterInfo); - InteractionInfo writeNetworkCommissioningInterfaceEnabledAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.NetworkCommissioningCluster) cluster) - .writeInterfaceEnabledAttribute( - (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeNetworkCommissioningInterfaceEnabledCommandParams); - writeNetworkCommissioningInteractionInfo.put( - "writeInterfaceEnabledAttribute", - writeNetworkCommissioningInterfaceEnabledAttributeInteractionInfo); - writeAttributeMap.put("networkCommissioning", writeNetworkCommissioningInteractionInfo); - Map writeDiagnosticLogsInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("diagnosticLogs", writeDiagnosticLogsInteractionInfo); - Map writeGeneralDiagnosticsInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("generalDiagnostics", writeGeneralDiagnosticsInteractionInfo); - Map writeSoftwareDiagnosticsInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("softwareDiagnostics", writeSoftwareDiagnosticsInteractionInfo); - Map writeThreadNetworkDiagnosticsInteractionInfo = - new LinkedHashMap<>(); - writeAttributeMap.put("threadNetworkDiagnostics", writeThreadNetworkDiagnosticsInteractionInfo); - Map writeWiFiNetworkDiagnosticsInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("wiFiNetworkDiagnostics", writeWiFiNetworkDiagnosticsInteractionInfo); - Map writeEthernetNetworkDiagnosticsInteractionInfo = - new LinkedHashMap<>(); - writeAttributeMap.put( - "ethernetNetworkDiagnostics", writeEthernetNetworkDiagnosticsInteractionInfo); - Map writeBridgedDeviceBasicInformationInteractionInfo = - new LinkedHashMap<>(); - Map writeBridgedDeviceBasicInformationNodeLabelCommandParams = - new LinkedHashMap(); - CommandParameterInfo bridgedDeviceBasicInformationnodeLabelCommandParameterInfo = - new CommandParameterInfo("value", String.class, String.class); - writeBridgedDeviceBasicInformationNodeLabelCommandParams.put( - "value", bridgedDeviceBasicInformationnodeLabelCommandParameterInfo); - InteractionInfo writeBridgedDeviceBasicInformationNodeLabelAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BridgedDeviceBasicInformationCluster) cluster) - .writeNodeLabelAttribute( - (DefaultClusterCallback) callback, (String) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBridgedDeviceBasicInformationNodeLabelCommandParams); - writeBridgedDeviceBasicInformationInteractionInfo.put( - "writeNodeLabelAttribute", - writeBridgedDeviceBasicInformationNodeLabelAttributeInteractionInfo); - writeAttributeMap.put( - "bridgedDeviceBasicInformation", writeBridgedDeviceBasicInformationInteractionInfo); - Map writeSwitchInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("switch", writeSwitchInteractionInfo); - Map writeAdministratorCommissioningInteractionInfo = - new LinkedHashMap<>(); - writeAttributeMap.put( - "administratorCommissioning", writeAdministratorCommissioningInteractionInfo); - Map writeOperationalCredentialsInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("operationalCredentials", writeOperationalCredentialsInteractionInfo); - Map writeGroupKeyManagementInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("groupKeyManagement", writeGroupKeyManagementInteractionInfo); - Map writeFixedLabelInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("fixedLabel", writeFixedLabelInteractionInfo); - Map writeUserLabelInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("userLabel", writeUserLabelInteractionInfo); - Map writeBooleanStateInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("booleanState", writeBooleanStateInteractionInfo); - Map writeModeSelectInteractionInfo = new LinkedHashMap<>(); - Map writeModeSelectStartUpModeCommandParams = - new LinkedHashMap(); - CommandParameterInfo modeSelectstartUpModeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeModeSelectStartUpModeCommandParams.put("value", modeSelectstartUpModeCommandParameterInfo); - InteractionInfo writeModeSelectStartUpModeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ModeSelectCluster) cluster) - .writeStartUpModeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeModeSelectStartUpModeCommandParams); - writeModeSelectInteractionInfo.put( - "writeStartUpModeAttribute", writeModeSelectStartUpModeAttributeInteractionInfo); - Map writeModeSelectOnModeCommandParams = - new LinkedHashMap(); - CommandParameterInfo modeSelectonModeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeModeSelectOnModeCommandParams.put("value", modeSelectonModeCommandParameterInfo); - InteractionInfo writeModeSelectOnModeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ModeSelectCluster) cluster) - .writeOnModeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeModeSelectOnModeCommandParams); - writeModeSelectInteractionInfo.put( - "writeOnModeAttribute", writeModeSelectOnModeAttributeInteractionInfo); - writeAttributeMap.put("modeSelect", writeModeSelectInteractionInfo); - Map writeDoorLockInteractionInfo = new LinkedHashMap<>(); - Map writeDoorLockLanguageCommandParams = - new LinkedHashMap(); - CommandParameterInfo doorLocklanguageCommandParameterInfo = - new CommandParameterInfo("value", String.class, String.class); - writeDoorLockLanguageCommandParams.put("value", doorLocklanguageCommandParameterInfo); - InteractionInfo writeDoorLockLanguageAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .writeLanguageAttribute( - (DefaultClusterCallback) callback, (String) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockLanguageCommandParams); - writeDoorLockInteractionInfo.put( - "writeLanguageAttribute", writeDoorLockLanguageAttributeInteractionInfo); - Map writeDoorLockAutoRelockTimeCommandParams = - new LinkedHashMap(); - CommandParameterInfo doorLockautoRelockTimeCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeDoorLockAutoRelockTimeCommandParams.put( - "value", doorLockautoRelockTimeCommandParameterInfo); - InteractionInfo writeDoorLockAutoRelockTimeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .writeAutoRelockTimeAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockAutoRelockTimeCommandParams); - writeDoorLockInteractionInfo.put( - "writeAutoRelockTimeAttribute", writeDoorLockAutoRelockTimeAttributeInteractionInfo); - Map writeDoorLockSoundVolumeCommandParams = - new LinkedHashMap(); - CommandParameterInfo doorLocksoundVolumeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeDoorLockSoundVolumeCommandParams.put("value", doorLocksoundVolumeCommandParameterInfo); - InteractionInfo writeDoorLockSoundVolumeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .writeSoundVolumeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockSoundVolumeCommandParams); - writeDoorLockInteractionInfo.put( - "writeSoundVolumeAttribute", writeDoorLockSoundVolumeAttributeInteractionInfo); - Map writeDoorLockOperatingModeCommandParams = - new LinkedHashMap(); - CommandParameterInfo doorLockoperatingModeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeDoorLockOperatingModeCommandParams.put("value", doorLockoperatingModeCommandParameterInfo); - InteractionInfo writeDoorLockOperatingModeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .writeOperatingModeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockOperatingModeCommandParams); - writeDoorLockInteractionInfo.put( - "writeOperatingModeAttribute", writeDoorLockOperatingModeAttributeInteractionInfo); - Map writeDoorLockEnableOneTouchLockingCommandParams = - new LinkedHashMap(); - CommandParameterInfo doorLockenableOneTouchLockingCommandParameterInfo = - new CommandParameterInfo("value", Boolean.class, Boolean.class); - writeDoorLockEnableOneTouchLockingCommandParams.put( - "value", doorLockenableOneTouchLockingCommandParameterInfo); - InteractionInfo writeDoorLockEnableOneTouchLockingAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .writeEnableOneTouchLockingAttribute( - (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockEnableOneTouchLockingCommandParams); - writeDoorLockInteractionInfo.put( - "writeEnableOneTouchLockingAttribute", - writeDoorLockEnableOneTouchLockingAttributeInteractionInfo); - Map writeDoorLockEnablePrivacyModeButtonCommandParams = - new LinkedHashMap(); - CommandParameterInfo doorLockenablePrivacyModeButtonCommandParameterInfo = - new CommandParameterInfo("value", Boolean.class, Boolean.class); - writeDoorLockEnablePrivacyModeButtonCommandParams.put( - "value", doorLockenablePrivacyModeButtonCommandParameterInfo); - InteractionInfo writeDoorLockEnablePrivacyModeButtonAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .writeEnablePrivacyModeButtonAttribute( - (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockEnablePrivacyModeButtonCommandParams); - writeDoorLockInteractionInfo.put( - "writeEnablePrivacyModeButtonAttribute", - writeDoorLockEnablePrivacyModeButtonAttributeInteractionInfo); - Map writeDoorLockWrongCodeEntryLimitCommandParams = - new LinkedHashMap(); - CommandParameterInfo doorLockwrongCodeEntryLimitCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeDoorLockWrongCodeEntryLimitCommandParams.put( - "value", doorLockwrongCodeEntryLimitCommandParameterInfo); - InteractionInfo writeDoorLockWrongCodeEntryLimitAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .writeWrongCodeEntryLimitAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockWrongCodeEntryLimitCommandParams); - writeDoorLockInteractionInfo.put( - "writeWrongCodeEntryLimitAttribute", - writeDoorLockWrongCodeEntryLimitAttributeInteractionInfo); - Map writeDoorLockUserCodeTemporaryDisableTimeCommandParams = - new LinkedHashMap(); - CommandParameterInfo doorLockuserCodeTemporaryDisableTimeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeDoorLockUserCodeTemporaryDisableTimeCommandParams.put( - "value", doorLockuserCodeTemporaryDisableTimeCommandParameterInfo); - InteractionInfo writeDoorLockUserCodeTemporaryDisableTimeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .writeUserCodeTemporaryDisableTimeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockUserCodeTemporaryDisableTimeCommandParams); - writeDoorLockInteractionInfo.put( - "writeUserCodeTemporaryDisableTimeAttribute", - writeDoorLockUserCodeTemporaryDisableTimeAttributeInteractionInfo); - Map writeDoorLockRequirePINforRemoteOperationCommandParams = - new LinkedHashMap(); - CommandParameterInfo doorLockrequirePINforRemoteOperationCommandParameterInfo = - new CommandParameterInfo("value", Boolean.class, Boolean.class); - writeDoorLockRequirePINforRemoteOperationCommandParams.put( - "value", doorLockrequirePINforRemoteOperationCommandParameterInfo); - InteractionInfo writeDoorLockRequirePINforRemoteOperationAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .writeRequirePINforRemoteOperationAttribute( - (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockRequirePINforRemoteOperationCommandParams); - writeDoorLockInteractionInfo.put( - "writeRequirePINforRemoteOperationAttribute", - writeDoorLockRequirePINforRemoteOperationAttributeInteractionInfo); - writeAttributeMap.put("doorLock", writeDoorLockInteractionInfo); - Map writeWindowCoveringInteractionInfo = new LinkedHashMap<>(); - Map writeWindowCoveringModeCommandParams = - new LinkedHashMap(); - CommandParameterInfo windowCoveringmodeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeWindowCoveringModeCommandParams.put("value", windowCoveringmodeCommandParameterInfo); - InteractionInfo writeWindowCoveringModeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.WindowCoveringCluster) cluster) - .writeModeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeWindowCoveringModeCommandParams); - writeWindowCoveringInteractionInfo.put( - "writeModeAttribute", writeWindowCoveringModeAttributeInteractionInfo); - writeAttributeMap.put("windowCovering", writeWindowCoveringInteractionInfo); - Map writeBarrierControlInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("barrierControl", writeBarrierControlInteractionInfo); - Map writePumpConfigurationAndControlInteractionInfo = - new LinkedHashMap<>(); - Map - writePumpConfigurationAndControlLifetimeRunningHoursCommandParams = - new LinkedHashMap(); - CommandParameterInfo pumpConfigurationAndControllifetimeRunningHoursCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writePumpConfigurationAndControlLifetimeRunningHoursCommandParams.put( - "value", pumpConfigurationAndControllifetimeRunningHoursCommandParameterInfo); - InteractionInfo writePumpConfigurationAndControlLifetimeRunningHoursAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.PumpConfigurationAndControlCluster) cluster) - .writeLifetimeRunningHoursAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writePumpConfigurationAndControlLifetimeRunningHoursCommandParams); - writePumpConfigurationAndControlInteractionInfo.put( - "writeLifetimeRunningHoursAttribute", - writePumpConfigurationAndControlLifetimeRunningHoursAttributeInteractionInfo); - Map - writePumpConfigurationAndControlLifetimeEnergyConsumedCommandParams = - new LinkedHashMap(); - CommandParameterInfo pumpConfigurationAndControllifetimeEnergyConsumedCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writePumpConfigurationAndControlLifetimeEnergyConsumedCommandParams.put( - "value", pumpConfigurationAndControllifetimeEnergyConsumedCommandParameterInfo); - InteractionInfo writePumpConfigurationAndControlLifetimeEnergyConsumedAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.PumpConfigurationAndControlCluster) cluster) - .writeLifetimeEnergyConsumedAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writePumpConfigurationAndControlLifetimeEnergyConsumedCommandParams); - writePumpConfigurationAndControlInteractionInfo.put( - "writeLifetimeEnergyConsumedAttribute", - writePumpConfigurationAndControlLifetimeEnergyConsumedAttributeInteractionInfo); - Map writePumpConfigurationAndControlOperationModeCommandParams = - new LinkedHashMap(); - CommandParameterInfo pumpConfigurationAndControloperationModeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writePumpConfigurationAndControlOperationModeCommandParams.put( - "value", pumpConfigurationAndControloperationModeCommandParameterInfo); - InteractionInfo writePumpConfigurationAndControlOperationModeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.PumpConfigurationAndControlCluster) cluster) - .writeOperationModeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writePumpConfigurationAndControlOperationModeCommandParams); - writePumpConfigurationAndControlInteractionInfo.put( - "writeOperationModeAttribute", - writePumpConfigurationAndControlOperationModeAttributeInteractionInfo); - Map writePumpConfigurationAndControlControlModeCommandParams = - new LinkedHashMap(); - CommandParameterInfo pumpConfigurationAndControlcontrolModeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writePumpConfigurationAndControlControlModeCommandParams.put( - "value", pumpConfigurationAndControlcontrolModeCommandParameterInfo); - InteractionInfo writePumpConfigurationAndControlControlModeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.PumpConfigurationAndControlCluster) cluster) - .writeControlModeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writePumpConfigurationAndControlControlModeCommandParams); - writePumpConfigurationAndControlInteractionInfo.put( - "writeControlModeAttribute", - writePumpConfigurationAndControlControlModeAttributeInteractionInfo); - writeAttributeMap.put( - "pumpConfigurationAndControl", writePumpConfigurationAndControlInteractionInfo); - Map writeThermostatInteractionInfo = new LinkedHashMap<>(); - Map writeThermostatHVACSystemTypeConfigurationCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatHVACSystemTypeConfigurationCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatHVACSystemTypeConfigurationCommandParams.put( - "value", thermostatHVACSystemTypeConfigurationCommandParameterInfo); - InteractionInfo writeThermostatHVACSystemTypeConfigurationAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeHVACSystemTypeConfigurationAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatHVACSystemTypeConfigurationCommandParams); - writeThermostatInteractionInfo.put( - "writeHVACSystemTypeConfigurationAttribute", - writeThermostatHVACSystemTypeConfigurationAttributeInteractionInfo); - Map writeThermostatLocalTemperatureCalibrationCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatlocalTemperatureCalibrationCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatLocalTemperatureCalibrationCommandParams.put( - "value", thermostatlocalTemperatureCalibrationCommandParameterInfo); - InteractionInfo writeThermostatLocalTemperatureCalibrationAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeLocalTemperatureCalibrationAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatLocalTemperatureCalibrationCommandParams); - writeThermostatInteractionInfo.put( - "writeLocalTemperatureCalibrationAttribute", - writeThermostatLocalTemperatureCalibrationAttributeInteractionInfo); - Map writeThermostatOccupiedCoolingSetpointCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatoccupiedCoolingSetpointCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatOccupiedCoolingSetpointCommandParams.put( - "value", thermostatoccupiedCoolingSetpointCommandParameterInfo); - InteractionInfo writeThermostatOccupiedCoolingSetpointAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeOccupiedCoolingSetpointAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatOccupiedCoolingSetpointCommandParams); - writeThermostatInteractionInfo.put( - "writeOccupiedCoolingSetpointAttribute", - writeThermostatOccupiedCoolingSetpointAttributeInteractionInfo); - Map writeThermostatOccupiedHeatingSetpointCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatoccupiedHeatingSetpointCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatOccupiedHeatingSetpointCommandParams.put( - "value", thermostatoccupiedHeatingSetpointCommandParameterInfo); - InteractionInfo writeThermostatOccupiedHeatingSetpointAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeOccupiedHeatingSetpointAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatOccupiedHeatingSetpointCommandParams); - writeThermostatInteractionInfo.put( - "writeOccupiedHeatingSetpointAttribute", - writeThermostatOccupiedHeatingSetpointAttributeInteractionInfo); - Map writeThermostatUnoccupiedCoolingSetpointCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatunoccupiedCoolingSetpointCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatUnoccupiedCoolingSetpointCommandParams.put( - "value", thermostatunoccupiedCoolingSetpointCommandParameterInfo); - InteractionInfo writeThermostatUnoccupiedCoolingSetpointAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeUnoccupiedCoolingSetpointAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatUnoccupiedCoolingSetpointCommandParams); - writeThermostatInteractionInfo.put( - "writeUnoccupiedCoolingSetpointAttribute", - writeThermostatUnoccupiedCoolingSetpointAttributeInteractionInfo); - Map writeThermostatUnoccupiedHeatingSetpointCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatunoccupiedHeatingSetpointCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatUnoccupiedHeatingSetpointCommandParams.put( - "value", thermostatunoccupiedHeatingSetpointCommandParameterInfo); - InteractionInfo writeThermostatUnoccupiedHeatingSetpointAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeUnoccupiedHeatingSetpointAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatUnoccupiedHeatingSetpointCommandParams); - writeThermostatInteractionInfo.put( - "writeUnoccupiedHeatingSetpointAttribute", - writeThermostatUnoccupiedHeatingSetpointAttributeInteractionInfo); - Map writeThermostatMinHeatSetpointLimitCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatminHeatSetpointLimitCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatMinHeatSetpointLimitCommandParams.put( - "value", thermostatminHeatSetpointLimitCommandParameterInfo); - InteractionInfo writeThermostatMinHeatSetpointLimitAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeMinHeatSetpointLimitAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatMinHeatSetpointLimitCommandParams); - writeThermostatInteractionInfo.put( - "writeMinHeatSetpointLimitAttribute", - writeThermostatMinHeatSetpointLimitAttributeInteractionInfo); - Map writeThermostatMaxHeatSetpointLimitCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatmaxHeatSetpointLimitCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatMaxHeatSetpointLimitCommandParams.put( - "value", thermostatmaxHeatSetpointLimitCommandParameterInfo); - InteractionInfo writeThermostatMaxHeatSetpointLimitAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeMaxHeatSetpointLimitAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatMaxHeatSetpointLimitCommandParams); - writeThermostatInteractionInfo.put( - "writeMaxHeatSetpointLimitAttribute", - writeThermostatMaxHeatSetpointLimitAttributeInteractionInfo); - Map writeThermostatMinCoolSetpointLimitCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatminCoolSetpointLimitCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatMinCoolSetpointLimitCommandParams.put( - "value", thermostatminCoolSetpointLimitCommandParameterInfo); - InteractionInfo writeThermostatMinCoolSetpointLimitAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeMinCoolSetpointLimitAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatMinCoolSetpointLimitCommandParams); - writeThermostatInteractionInfo.put( - "writeMinCoolSetpointLimitAttribute", - writeThermostatMinCoolSetpointLimitAttributeInteractionInfo); - Map writeThermostatMaxCoolSetpointLimitCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatmaxCoolSetpointLimitCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatMaxCoolSetpointLimitCommandParams.put( - "value", thermostatmaxCoolSetpointLimitCommandParameterInfo); - InteractionInfo writeThermostatMaxCoolSetpointLimitAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeMaxCoolSetpointLimitAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatMaxCoolSetpointLimitCommandParams); - writeThermostatInteractionInfo.put( - "writeMaxCoolSetpointLimitAttribute", - writeThermostatMaxCoolSetpointLimitAttributeInteractionInfo); - Map writeThermostatMinSetpointDeadBandCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatminSetpointDeadBandCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatMinSetpointDeadBandCommandParams.put( - "value", thermostatminSetpointDeadBandCommandParameterInfo); - InteractionInfo writeThermostatMinSetpointDeadBandAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeMinSetpointDeadBandAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatMinSetpointDeadBandCommandParams); - writeThermostatInteractionInfo.put( - "writeMinSetpointDeadBandAttribute", - writeThermostatMinSetpointDeadBandAttributeInteractionInfo); - Map writeThermostatRemoteSensingCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatremoteSensingCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatRemoteSensingCommandParams.put( - "value", thermostatremoteSensingCommandParameterInfo); - InteractionInfo writeThermostatRemoteSensingAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeRemoteSensingAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatRemoteSensingCommandParams); - writeThermostatInteractionInfo.put( - "writeRemoteSensingAttribute", writeThermostatRemoteSensingAttributeInteractionInfo); - Map writeThermostatControlSequenceOfOperationCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatcontrolSequenceOfOperationCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatControlSequenceOfOperationCommandParams.put( - "value", thermostatcontrolSequenceOfOperationCommandParameterInfo); - InteractionInfo writeThermostatControlSequenceOfOperationAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeControlSequenceOfOperationAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatControlSequenceOfOperationCommandParams); - writeThermostatInteractionInfo.put( - "writeControlSequenceOfOperationAttribute", - writeThermostatControlSequenceOfOperationAttributeInteractionInfo); - Map writeThermostatSystemModeCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatsystemModeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatSystemModeCommandParams.put("value", thermostatsystemModeCommandParameterInfo); - InteractionInfo writeThermostatSystemModeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeSystemModeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatSystemModeCommandParams); - writeThermostatInteractionInfo.put( - "writeSystemModeAttribute", writeThermostatSystemModeAttributeInteractionInfo); - Map writeThermostatTemperatureSetpointHoldCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostattemperatureSetpointHoldCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatTemperatureSetpointHoldCommandParams.put( - "value", thermostattemperatureSetpointHoldCommandParameterInfo); - InteractionInfo writeThermostatTemperatureSetpointHoldAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeTemperatureSetpointHoldAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatTemperatureSetpointHoldCommandParams); - writeThermostatInteractionInfo.put( - "writeTemperatureSetpointHoldAttribute", - writeThermostatTemperatureSetpointHoldAttributeInteractionInfo); - Map writeThermostatTemperatureSetpointHoldDurationCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostattemperatureSetpointHoldDurationCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatTemperatureSetpointHoldDurationCommandParams.put( - "value", thermostattemperatureSetpointHoldDurationCommandParameterInfo); - InteractionInfo writeThermostatTemperatureSetpointHoldDurationAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeTemperatureSetpointHoldDurationAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatTemperatureSetpointHoldDurationCommandParams); - writeThermostatInteractionInfo.put( - "writeTemperatureSetpointHoldDurationAttribute", - writeThermostatTemperatureSetpointHoldDurationAttributeInteractionInfo); - Map - writeThermostatThermostatProgrammingOperationModeCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatthermostatProgrammingOperationModeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatThermostatProgrammingOperationModeCommandParams.put( - "value", thermostatthermostatProgrammingOperationModeCommandParameterInfo); - InteractionInfo writeThermostatThermostatProgrammingOperationModeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeThermostatProgrammingOperationModeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatThermostatProgrammingOperationModeCommandParams); - writeThermostatInteractionInfo.put( - "writeThermostatProgrammingOperationModeAttribute", - writeThermostatThermostatProgrammingOperationModeAttributeInteractionInfo); - Map writeThermostatOccupiedSetbackCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatoccupiedSetbackCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatOccupiedSetbackCommandParams.put( - "value", thermostatoccupiedSetbackCommandParameterInfo); - InteractionInfo writeThermostatOccupiedSetbackAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeOccupiedSetbackAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatOccupiedSetbackCommandParams); - writeThermostatInteractionInfo.put( - "writeOccupiedSetbackAttribute", writeThermostatOccupiedSetbackAttributeInteractionInfo); - Map writeThermostatUnoccupiedSetbackCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatunoccupiedSetbackCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatUnoccupiedSetbackCommandParams.put( - "value", thermostatunoccupiedSetbackCommandParameterInfo); - InteractionInfo writeThermostatUnoccupiedSetbackAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeUnoccupiedSetbackAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatUnoccupiedSetbackCommandParams); - writeThermostatInteractionInfo.put( - "writeUnoccupiedSetbackAttribute", - writeThermostatUnoccupiedSetbackAttributeInteractionInfo); - Map writeThermostatEmergencyHeatDeltaCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatemergencyHeatDeltaCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatEmergencyHeatDeltaCommandParams.put( - "value", thermostatemergencyHeatDeltaCommandParameterInfo); - InteractionInfo writeThermostatEmergencyHeatDeltaAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeEmergencyHeatDeltaAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatEmergencyHeatDeltaCommandParams); - writeThermostatInteractionInfo.put( - "writeEmergencyHeatDeltaAttribute", - writeThermostatEmergencyHeatDeltaAttributeInteractionInfo); - Map writeThermostatACTypeCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatACTypeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatACTypeCommandParams.put("value", thermostatACTypeCommandParameterInfo); - InteractionInfo writeThermostatACTypeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeACTypeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatACTypeCommandParams); - writeThermostatInteractionInfo.put( - "writeACTypeAttribute", writeThermostatACTypeAttributeInteractionInfo); - Map writeThermostatACCapacityCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatACCapacityCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatACCapacityCommandParams.put("value", thermostatACCapacityCommandParameterInfo); - InteractionInfo writeThermostatACCapacityAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeACCapacityAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatACCapacityCommandParams); - writeThermostatInteractionInfo.put( - "writeACCapacityAttribute", writeThermostatACCapacityAttributeInteractionInfo); - Map writeThermostatACRefrigerantTypeCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatACRefrigerantTypeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatACRefrigerantTypeCommandParams.put( - "value", thermostatACRefrigerantTypeCommandParameterInfo); - InteractionInfo writeThermostatACRefrigerantTypeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeACRefrigerantTypeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatACRefrigerantTypeCommandParams); - writeThermostatInteractionInfo.put( - "writeACRefrigerantTypeAttribute", - writeThermostatACRefrigerantTypeAttributeInteractionInfo); - Map writeThermostatACCompressorTypeCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatACCompressorTypeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatACCompressorTypeCommandParams.put( - "value", thermostatACCompressorTypeCommandParameterInfo); - InteractionInfo writeThermostatACCompressorTypeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeACCompressorTypeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatACCompressorTypeCommandParams); - writeThermostatInteractionInfo.put( - "writeACCompressorTypeAttribute", writeThermostatACCompressorTypeAttributeInteractionInfo); - Map writeThermostatACErrorCodeCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatACErrorCodeCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeThermostatACErrorCodeCommandParams.put("value", thermostatACErrorCodeCommandParameterInfo); - InteractionInfo writeThermostatACErrorCodeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeACErrorCodeAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatACErrorCodeCommandParams); - writeThermostatInteractionInfo.put( - "writeACErrorCodeAttribute", writeThermostatACErrorCodeAttributeInteractionInfo); - Map writeThermostatACLouverPositionCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatACLouverPositionCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatACLouverPositionCommandParams.put( - "value", thermostatACLouverPositionCommandParameterInfo); - InteractionInfo writeThermostatACLouverPositionAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeACLouverPositionAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatACLouverPositionCommandParams); - writeThermostatInteractionInfo.put( - "writeACLouverPositionAttribute", writeThermostatACLouverPositionAttributeInteractionInfo); - Map writeThermostatACCapacityformatCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatACCapacityformatCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatACCapacityformatCommandParams.put( - "value", thermostatACCapacityformatCommandParameterInfo); - InteractionInfo writeThermostatACCapacityformatAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .writeACCapacityformatAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatACCapacityformatCommandParams); - writeThermostatInteractionInfo.put( - "writeACCapacityformatAttribute", writeThermostatACCapacityformatAttributeInteractionInfo); - writeAttributeMap.put("thermostat", writeThermostatInteractionInfo); - Map writeFanControlInteractionInfo = new LinkedHashMap<>(); - Map writeFanControlFanModeCommandParams = - new LinkedHashMap(); - CommandParameterInfo fanControlfanModeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeFanControlFanModeCommandParams.put("value", fanControlfanModeCommandParameterInfo); - InteractionInfo writeFanControlFanModeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.FanControlCluster) cluster) - .writeFanModeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeFanControlFanModeCommandParams); - writeFanControlInteractionInfo.put( - "writeFanModeAttribute", writeFanControlFanModeAttributeInteractionInfo); - Map writeFanControlFanModeSequenceCommandParams = - new LinkedHashMap(); - CommandParameterInfo fanControlfanModeSequenceCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeFanControlFanModeSequenceCommandParams.put( - "value", fanControlfanModeSequenceCommandParameterInfo); - InteractionInfo writeFanControlFanModeSequenceAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.FanControlCluster) cluster) - .writeFanModeSequenceAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeFanControlFanModeSequenceCommandParams); - writeFanControlInteractionInfo.put( - "writeFanModeSequenceAttribute", writeFanControlFanModeSequenceAttributeInteractionInfo); - Map writeFanControlPercentSettingCommandParams = - new LinkedHashMap(); - CommandParameterInfo fanControlpercentSettingCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeFanControlPercentSettingCommandParams.put( - "value", fanControlpercentSettingCommandParameterInfo); - InteractionInfo writeFanControlPercentSettingAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.FanControlCluster) cluster) - .writePercentSettingAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeFanControlPercentSettingCommandParams); - writeFanControlInteractionInfo.put( - "writePercentSettingAttribute", writeFanControlPercentSettingAttributeInteractionInfo); - Map writeFanControlSpeedSettingCommandParams = - new LinkedHashMap(); - CommandParameterInfo fanControlspeedSettingCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeFanControlSpeedSettingCommandParams.put( - "value", fanControlspeedSettingCommandParameterInfo); - InteractionInfo writeFanControlSpeedSettingAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.FanControlCluster) cluster) - .writeSpeedSettingAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeFanControlSpeedSettingCommandParams); - writeFanControlInteractionInfo.put( - "writeSpeedSettingAttribute", writeFanControlSpeedSettingAttributeInteractionInfo); - Map writeFanControlRockSettingCommandParams = - new LinkedHashMap(); - CommandParameterInfo fanControlrockSettingCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeFanControlRockSettingCommandParams.put("value", fanControlrockSettingCommandParameterInfo); - InteractionInfo writeFanControlRockSettingAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.FanControlCluster) cluster) - .writeRockSettingAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeFanControlRockSettingCommandParams); - writeFanControlInteractionInfo.put( - "writeRockSettingAttribute", writeFanControlRockSettingAttributeInteractionInfo); - Map writeFanControlWindSettingCommandParams = - new LinkedHashMap(); - CommandParameterInfo fanControlwindSettingCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeFanControlWindSettingCommandParams.put("value", fanControlwindSettingCommandParameterInfo); - InteractionInfo writeFanControlWindSettingAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.FanControlCluster) cluster) - .writeWindSettingAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeFanControlWindSettingCommandParams); - writeFanControlInteractionInfo.put( - "writeWindSettingAttribute", writeFanControlWindSettingAttributeInteractionInfo); - writeAttributeMap.put("fanControl", writeFanControlInteractionInfo); - Map writeThermostatUserInterfaceConfigurationInteractionInfo = - new LinkedHashMap<>(); - Map - writeThermostatUserInterfaceConfigurationTemperatureDisplayModeCommandParams = - new LinkedHashMap(); - CommandParameterInfo - thermostatUserInterfaceConfigurationtemperatureDisplayModeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatUserInterfaceConfigurationTemperatureDisplayModeCommandParams.put( - "value", thermostatUserInterfaceConfigurationtemperatureDisplayModeCommandParameterInfo); - InteractionInfo - writeThermostatUserInterfaceConfigurationTemperatureDisplayModeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatUserInterfaceConfigurationCluster) cluster) - .writeTemperatureDisplayModeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatUserInterfaceConfigurationTemperatureDisplayModeCommandParams); - writeThermostatUserInterfaceConfigurationInteractionInfo.put( - "writeTemperatureDisplayModeAttribute", - writeThermostatUserInterfaceConfigurationTemperatureDisplayModeAttributeInteractionInfo); - Map - writeThermostatUserInterfaceConfigurationKeypadLockoutCommandParams = - new LinkedHashMap(); - CommandParameterInfo thermostatUserInterfaceConfigurationkeypadLockoutCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatUserInterfaceConfigurationKeypadLockoutCommandParams.put( - "value", thermostatUserInterfaceConfigurationkeypadLockoutCommandParameterInfo); - InteractionInfo writeThermostatUserInterfaceConfigurationKeypadLockoutAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatUserInterfaceConfigurationCluster) cluster) - .writeKeypadLockoutAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatUserInterfaceConfigurationKeypadLockoutCommandParams); - writeThermostatUserInterfaceConfigurationInteractionInfo.put( - "writeKeypadLockoutAttribute", - writeThermostatUserInterfaceConfigurationKeypadLockoutAttributeInteractionInfo); - Map - writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCommandParams = - new LinkedHashMap(); - CommandParameterInfo - thermostatUserInterfaceConfigurationscheduleProgrammingVisibilityCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCommandParams.put( - "value", - thermostatUserInterfaceConfigurationscheduleProgrammingVisibilityCommandParameterInfo); - InteractionInfo - writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatUserInterfaceConfigurationCluster) cluster) - .writeScheduleProgrammingVisibilityAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCommandParams); - writeThermostatUserInterfaceConfigurationInteractionInfo.put( - "writeScheduleProgrammingVisibilityAttribute", - writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityAttributeInteractionInfo); - writeAttributeMap.put( - "thermostatUserInterfaceConfiguration", - writeThermostatUserInterfaceConfigurationInteractionInfo); - Map writeColorControlInteractionInfo = new LinkedHashMap<>(); - Map writeColorControlOptionsCommandParams = - new LinkedHashMap(); - CommandParameterInfo colorControloptionsCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeColorControlOptionsCommandParams.put("value", colorControloptionsCommandParameterInfo); - InteractionInfo writeColorControlOptionsAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .writeOptionsAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlOptionsCommandParams); - writeColorControlInteractionInfo.put( - "writeOptionsAttribute", writeColorControlOptionsAttributeInteractionInfo); - Map writeColorControlWhitePointXCommandParams = - new LinkedHashMap(); - CommandParameterInfo colorControlwhitePointXCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeColorControlWhitePointXCommandParams.put( - "value", colorControlwhitePointXCommandParameterInfo); - InteractionInfo writeColorControlWhitePointXAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .writeWhitePointXAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlWhitePointXCommandParams); - writeColorControlInteractionInfo.put( - "writeWhitePointXAttribute", writeColorControlWhitePointXAttributeInteractionInfo); - Map writeColorControlWhitePointYCommandParams = - new LinkedHashMap(); - CommandParameterInfo colorControlwhitePointYCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeColorControlWhitePointYCommandParams.put( - "value", colorControlwhitePointYCommandParameterInfo); - InteractionInfo writeColorControlWhitePointYAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .writeWhitePointYAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlWhitePointYCommandParams); - writeColorControlInteractionInfo.put( - "writeWhitePointYAttribute", writeColorControlWhitePointYAttributeInteractionInfo); - Map writeColorControlColorPointRXCommandParams = - new LinkedHashMap(); - CommandParameterInfo colorControlcolorPointRXCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeColorControlColorPointRXCommandParams.put( - "value", colorControlcolorPointRXCommandParameterInfo); - InteractionInfo writeColorControlColorPointRXAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .writeColorPointRXAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointRXCommandParams); - writeColorControlInteractionInfo.put( - "writeColorPointRXAttribute", writeColorControlColorPointRXAttributeInteractionInfo); - Map writeColorControlColorPointRYCommandParams = - new LinkedHashMap(); - CommandParameterInfo colorControlcolorPointRYCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeColorControlColorPointRYCommandParams.put( - "value", colorControlcolorPointRYCommandParameterInfo); - InteractionInfo writeColorControlColorPointRYAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .writeColorPointRYAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointRYCommandParams); - writeColorControlInteractionInfo.put( - "writeColorPointRYAttribute", writeColorControlColorPointRYAttributeInteractionInfo); - Map writeColorControlColorPointRIntensityCommandParams = - new LinkedHashMap(); - CommandParameterInfo colorControlcolorPointRIntensityCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeColorControlColorPointRIntensityCommandParams.put( - "value", colorControlcolorPointRIntensityCommandParameterInfo); - InteractionInfo writeColorControlColorPointRIntensityAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .writeColorPointRIntensityAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointRIntensityCommandParams); - writeColorControlInteractionInfo.put( - "writeColorPointRIntensityAttribute", - writeColorControlColorPointRIntensityAttributeInteractionInfo); - Map writeColorControlColorPointGXCommandParams = - new LinkedHashMap(); - CommandParameterInfo colorControlcolorPointGXCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeColorControlColorPointGXCommandParams.put( - "value", colorControlcolorPointGXCommandParameterInfo); - InteractionInfo writeColorControlColorPointGXAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .writeColorPointGXAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointGXCommandParams); - writeColorControlInteractionInfo.put( - "writeColorPointGXAttribute", writeColorControlColorPointGXAttributeInteractionInfo); - Map writeColorControlColorPointGYCommandParams = - new LinkedHashMap(); - CommandParameterInfo colorControlcolorPointGYCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeColorControlColorPointGYCommandParams.put( - "value", colorControlcolorPointGYCommandParameterInfo); - InteractionInfo writeColorControlColorPointGYAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .writeColorPointGYAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointGYCommandParams); - writeColorControlInteractionInfo.put( - "writeColorPointGYAttribute", writeColorControlColorPointGYAttributeInteractionInfo); - Map writeColorControlColorPointGIntensityCommandParams = - new LinkedHashMap(); - CommandParameterInfo colorControlcolorPointGIntensityCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeColorControlColorPointGIntensityCommandParams.put( - "value", colorControlcolorPointGIntensityCommandParameterInfo); - InteractionInfo writeColorControlColorPointGIntensityAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .writeColorPointGIntensityAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointGIntensityCommandParams); - writeColorControlInteractionInfo.put( - "writeColorPointGIntensityAttribute", - writeColorControlColorPointGIntensityAttributeInteractionInfo); - Map writeColorControlColorPointBXCommandParams = - new LinkedHashMap(); - CommandParameterInfo colorControlcolorPointBXCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeColorControlColorPointBXCommandParams.put( - "value", colorControlcolorPointBXCommandParameterInfo); - InteractionInfo writeColorControlColorPointBXAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .writeColorPointBXAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointBXCommandParams); - writeColorControlInteractionInfo.put( - "writeColorPointBXAttribute", writeColorControlColorPointBXAttributeInteractionInfo); - Map writeColorControlColorPointBYCommandParams = - new LinkedHashMap(); - CommandParameterInfo colorControlcolorPointBYCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeColorControlColorPointBYCommandParams.put( - "value", colorControlcolorPointBYCommandParameterInfo); - InteractionInfo writeColorControlColorPointBYAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .writeColorPointBYAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointBYCommandParams); - writeColorControlInteractionInfo.put( - "writeColorPointBYAttribute", writeColorControlColorPointBYAttributeInteractionInfo); - Map writeColorControlColorPointBIntensityCommandParams = - new LinkedHashMap(); - CommandParameterInfo colorControlcolorPointBIntensityCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeColorControlColorPointBIntensityCommandParams.put( - "value", colorControlcolorPointBIntensityCommandParameterInfo); - InteractionInfo writeColorControlColorPointBIntensityAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .writeColorPointBIntensityAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointBIntensityCommandParams); - writeColorControlInteractionInfo.put( - "writeColorPointBIntensityAttribute", - writeColorControlColorPointBIntensityAttributeInteractionInfo); - Map writeColorControlStartUpColorTemperatureMiredsCommandParams = - new LinkedHashMap(); - CommandParameterInfo colorControlstartUpColorTemperatureMiredsCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeColorControlStartUpColorTemperatureMiredsCommandParams.put( - "value", colorControlstartUpColorTemperatureMiredsCommandParameterInfo); - InteractionInfo writeColorControlStartUpColorTemperatureMiredsAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .writeStartUpColorTemperatureMiredsAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlStartUpColorTemperatureMiredsCommandParams); - writeColorControlInteractionInfo.put( - "writeStartUpColorTemperatureMiredsAttribute", - writeColorControlStartUpColorTemperatureMiredsAttributeInteractionInfo); - writeAttributeMap.put("colorControl", writeColorControlInteractionInfo); - Map writeBallastConfigurationInteractionInfo = new LinkedHashMap<>(); - Map writeBallastConfigurationMinLevelCommandParams = - new LinkedHashMap(); - CommandParameterInfo ballastConfigurationminLevelCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeBallastConfigurationMinLevelCommandParams.put( - "value", ballastConfigurationminLevelCommandParameterInfo); - InteractionInfo writeBallastConfigurationMinLevelAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster) - .writeMinLevelAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationMinLevelCommandParams); - writeBallastConfigurationInteractionInfo.put( - "writeMinLevelAttribute", writeBallastConfigurationMinLevelAttributeInteractionInfo); - Map writeBallastConfigurationMaxLevelCommandParams = - new LinkedHashMap(); - CommandParameterInfo ballastConfigurationmaxLevelCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeBallastConfigurationMaxLevelCommandParams.put( - "value", ballastConfigurationmaxLevelCommandParameterInfo); - InteractionInfo writeBallastConfigurationMaxLevelAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster) - .writeMaxLevelAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationMaxLevelCommandParams); - writeBallastConfigurationInteractionInfo.put( - "writeMaxLevelAttribute", writeBallastConfigurationMaxLevelAttributeInteractionInfo); - Map writeBallastConfigurationIntrinsicBallastFactorCommandParams = - new LinkedHashMap(); - CommandParameterInfo ballastConfigurationintrinsicBallastFactorCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeBallastConfigurationIntrinsicBallastFactorCommandParams.put( - "value", ballastConfigurationintrinsicBallastFactorCommandParameterInfo); - InteractionInfo writeBallastConfigurationIntrinsicBallastFactorAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster) - .writeIntrinsicBallastFactorAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationIntrinsicBallastFactorCommandParams); - writeBallastConfigurationInteractionInfo.put( - "writeIntrinsicBallastFactorAttribute", - writeBallastConfigurationIntrinsicBallastFactorAttributeInteractionInfo); - Map - writeBallastConfigurationBallastFactorAdjustmentCommandParams = - new LinkedHashMap(); - CommandParameterInfo ballastConfigurationballastFactorAdjustmentCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeBallastConfigurationBallastFactorAdjustmentCommandParams.put( - "value", ballastConfigurationballastFactorAdjustmentCommandParameterInfo); - InteractionInfo writeBallastConfigurationBallastFactorAdjustmentAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster) - .writeBallastFactorAdjustmentAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationBallastFactorAdjustmentCommandParams); - writeBallastConfigurationInteractionInfo.put( - "writeBallastFactorAdjustmentAttribute", - writeBallastConfigurationBallastFactorAdjustmentAttributeInteractionInfo); - Map writeBallastConfigurationLampTypeCommandParams = - new LinkedHashMap(); - CommandParameterInfo ballastConfigurationlampTypeCommandParameterInfo = - new CommandParameterInfo("value", String.class, String.class); - writeBallastConfigurationLampTypeCommandParams.put( - "value", ballastConfigurationlampTypeCommandParameterInfo); - InteractionInfo writeBallastConfigurationLampTypeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster) - .writeLampTypeAttribute( - (DefaultClusterCallback) callback, (String) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationLampTypeCommandParams); - writeBallastConfigurationInteractionInfo.put( - "writeLampTypeAttribute", writeBallastConfigurationLampTypeAttributeInteractionInfo); - Map writeBallastConfigurationLampManufacturerCommandParams = - new LinkedHashMap(); - CommandParameterInfo ballastConfigurationlampManufacturerCommandParameterInfo = - new CommandParameterInfo("value", String.class, String.class); - writeBallastConfigurationLampManufacturerCommandParams.put( - "value", ballastConfigurationlampManufacturerCommandParameterInfo); - InteractionInfo writeBallastConfigurationLampManufacturerAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster) - .writeLampManufacturerAttribute( - (DefaultClusterCallback) callback, (String) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationLampManufacturerCommandParams); - writeBallastConfigurationInteractionInfo.put( - "writeLampManufacturerAttribute", - writeBallastConfigurationLampManufacturerAttributeInteractionInfo); - Map writeBallastConfigurationLampRatedHoursCommandParams = - new LinkedHashMap(); - CommandParameterInfo ballastConfigurationlampRatedHoursCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeBallastConfigurationLampRatedHoursCommandParams.put( - "value", ballastConfigurationlampRatedHoursCommandParameterInfo); - InteractionInfo writeBallastConfigurationLampRatedHoursAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster) - .writeLampRatedHoursAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationLampRatedHoursCommandParams); - writeBallastConfigurationInteractionInfo.put( - "writeLampRatedHoursAttribute", - writeBallastConfigurationLampRatedHoursAttributeInteractionInfo); - Map writeBallastConfigurationLampBurnHoursCommandParams = - new LinkedHashMap(); - CommandParameterInfo ballastConfigurationlampBurnHoursCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeBallastConfigurationLampBurnHoursCommandParams.put( - "value", ballastConfigurationlampBurnHoursCommandParameterInfo); - InteractionInfo writeBallastConfigurationLampBurnHoursAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster) - .writeLampBurnHoursAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationLampBurnHoursCommandParams); - writeBallastConfigurationInteractionInfo.put( - "writeLampBurnHoursAttribute", - writeBallastConfigurationLampBurnHoursAttributeInteractionInfo); - Map writeBallastConfigurationLampAlarmModeCommandParams = - new LinkedHashMap(); - CommandParameterInfo ballastConfigurationlampAlarmModeCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeBallastConfigurationLampAlarmModeCommandParams.put( - "value", ballastConfigurationlampAlarmModeCommandParameterInfo); - InteractionInfo writeBallastConfigurationLampAlarmModeAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster) - .writeLampAlarmModeAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationLampAlarmModeCommandParams); - writeBallastConfigurationInteractionInfo.put( - "writeLampAlarmModeAttribute", - writeBallastConfigurationLampAlarmModeAttributeInteractionInfo); - Map writeBallastConfigurationLampBurnHoursTripPointCommandParams = - new LinkedHashMap(); - CommandParameterInfo ballastConfigurationlampBurnHoursTripPointCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeBallastConfigurationLampBurnHoursTripPointCommandParams.put( - "value", ballastConfigurationlampBurnHoursTripPointCommandParameterInfo); - InteractionInfo writeBallastConfigurationLampBurnHoursTripPointAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster) - .writeLampBurnHoursTripPointAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationLampBurnHoursTripPointCommandParams); - writeBallastConfigurationInteractionInfo.put( - "writeLampBurnHoursTripPointAttribute", - writeBallastConfigurationLampBurnHoursTripPointAttributeInteractionInfo); - writeAttributeMap.put("ballastConfiguration", writeBallastConfigurationInteractionInfo); - Map writeIlluminanceMeasurementInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("illuminanceMeasurement", writeIlluminanceMeasurementInteractionInfo); - Map writeTemperatureMeasurementInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("temperatureMeasurement", writeTemperatureMeasurementInteractionInfo); - Map writePressureMeasurementInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("pressureMeasurement", writePressureMeasurementInteractionInfo); - Map writeFlowMeasurementInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("flowMeasurement", writeFlowMeasurementInteractionInfo); - Map writeRelativeHumidityMeasurementInteractionInfo = - new LinkedHashMap<>(); - writeAttributeMap.put( - "relativeHumidityMeasurement", writeRelativeHumidityMeasurementInteractionInfo); - Map writeOccupancySensingInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("occupancySensing", writeOccupancySensingInteractionInfo); - Map writeWakeOnLanInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("wakeOnLan", writeWakeOnLanInteractionInfo); - Map writeChannelInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("channel", writeChannelInteractionInfo); - Map writeTargetNavigatorInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("targetNavigator", writeTargetNavigatorInteractionInfo); - Map writeMediaPlaybackInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("mediaPlayback", writeMediaPlaybackInteractionInfo); - Map writeMediaInputInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("mediaInput", writeMediaInputInteractionInfo); - Map writeLowPowerInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("lowPower", writeLowPowerInteractionInfo); - Map writeKeypadInputInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("keypadInput", writeKeypadInputInteractionInfo); - Map writeContentLauncherInteractionInfo = new LinkedHashMap<>(); - Map writeContentLauncherSupportedStreamingProtocolsCommandParams = - new LinkedHashMap(); - CommandParameterInfo contentLaunchersupportedStreamingProtocolsCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeContentLauncherSupportedStreamingProtocolsCommandParams.put( - "value", contentLaunchersupportedStreamingProtocolsCommandParameterInfo); - InteractionInfo writeContentLauncherSupportedStreamingProtocolsAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ContentLauncherCluster) cluster) - .writeSupportedStreamingProtocolsAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeContentLauncherSupportedStreamingProtocolsCommandParams); - writeContentLauncherInteractionInfo.put( - "writeSupportedStreamingProtocolsAttribute", - writeContentLauncherSupportedStreamingProtocolsAttributeInteractionInfo); - writeAttributeMap.put("contentLauncher", writeContentLauncherInteractionInfo); - Map writeAudioOutputInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("audioOutput", writeAudioOutputInteractionInfo); - Map writeApplicationLauncherInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("applicationLauncher", writeApplicationLauncherInteractionInfo); - Map writeApplicationBasicInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("applicationBasic", writeApplicationBasicInteractionInfo); - Map writeAccountLoginInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("accountLogin", writeAccountLoginInteractionInfo); - Map writeElectricalMeasurementInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("electricalMeasurement", writeElectricalMeasurementInteractionInfo); - Map writeClientMonitoringInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("clientMonitoring", writeClientMonitoringInteractionInfo); - Map writeUnitTestingInteractionInfo = new LinkedHashMap<>(); - Map writeUnitTestingBooleanCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingbooleanCommandParameterInfo = - new CommandParameterInfo("value", Boolean.class, Boolean.class); - writeUnitTestingBooleanCommandParams.put("value", unitTestingbooleanCommandParameterInfo); - InteractionInfo writeUnitTestingBooleanAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeBooleanAttribute( - (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingBooleanCommandParams); - writeUnitTestingInteractionInfo.put( - "writeBooleanAttribute", writeUnitTestingBooleanAttributeInteractionInfo); - Map writeUnitTestingBitmap8CommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingbitmap8CommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingBitmap8CommandParams.put("value", unitTestingbitmap8CommandParameterInfo); - InteractionInfo writeUnitTestingBitmap8AttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeBitmap8Attribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingBitmap8CommandParams); - writeUnitTestingInteractionInfo.put( - "writeBitmap8Attribute", writeUnitTestingBitmap8AttributeInteractionInfo); - Map writeUnitTestingBitmap16CommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingbitmap16CommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingBitmap16CommandParams.put("value", unitTestingbitmap16CommandParameterInfo); - InteractionInfo writeUnitTestingBitmap16AttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeBitmap16Attribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingBitmap16CommandParams); - writeUnitTestingInteractionInfo.put( - "writeBitmap16Attribute", writeUnitTestingBitmap16AttributeInteractionInfo); - Map writeUnitTestingBitmap32CommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingbitmap32CommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingBitmap32CommandParams.put("value", unitTestingbitmap32CommandParameterInfo); - InteractionInfo writeUnitTestingBitmap32AttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeBitmap32Attribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingBitmap32CommandParams); - writeUnitTestingInteractionInfo.put( - "writeBitmap32Attribute", writeUnitTestingBitmap32AttributeInteractionInfo); - Map writeUnitTestingBitmap64CommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingbitmap64CommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingBitmap64CommandParams.put("value", unitTestingbitmap64CommandParameterInfo); - InteractionInfo writeUnitTestingBitmap64AttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeBitmap64Attribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingBitmap64CommandParams); - writeUnitTestingInteractionInfo.put( - "writeBitmap64Attribute", writeUnitTestingBitmap64AttributeInteractionInfo); - Map writeUnitTestingInt8uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingint8uCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingInt8uCommandParams.put("value", unitTestingint8uCommandParameterInfo); - InteractionInfo writeUnitTestingInt8uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeInt8uAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt8uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeInt8uAttribute", writeUnitTestingInt8uAttributeInteractionInfo); - Map writeUnitTestingInt16uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingint16uCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingInt16uCommandParams.put("value", unitTestingint16uCommandParameterInfo); - InteractionInfo writeUnitTestingInt16uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeInt16uAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt16uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeInt16uAttribute", writeUnitTestingInt16uAttributeInteractionInfo); - Map writeUnitTestingInt24uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingint24uCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingInt24uCommandParams.put("value", unitTestingint24uCommandParameterInfo); - InteractionInfo writeUnitTestingInt24uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeInt24uAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt24uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeInt24uAttribute", writeUnitTestingInt24uAttributeInteractionInfo); - Map writeUnitTestingInt32uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingint32uCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingInt32uCommandParams.put("value", unitTestingint32uCommandParameterInfo); - InteractionInfo writeUnitTestingInt32uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeInt32uAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt32uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeInt32uAttribute", writeUnitTestingInt32uAttributeInteractionInfo); - Map writeUnitTestingInt40uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingint40uCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingInt40uCommandParams.put("value", unitTestingint40uCommandParameterInfo); - InteractionInfo writeUnitTestingInt40uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeInt40uAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt40uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeInt40uAttribute", writeUnitTestingInt40uAttributeInteractionInfo); - Map writeUnitTestingInt48uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingint48uCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingInt48uCommandParams.put("value", unitTestingint48uCommandParameterInfo); - InteractionInfo writeUnitTestingInt48uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeInt48uAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt48uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeInt48uAttribute", writeUnitTestingInt48uAttributeInteractionInfo); - Map writeUnitTestingInt56uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingint56uCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingInt56uCommandParams.put("value", unitTestingint56uCommandParameterInfo); - InteractionInfo writeUnitTestingInt56uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeInt56uAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt56uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeInt56uAttribute", writeUnitTestingInt56uAttributeInteractionInfo); - Map writeUnitTestingInt64uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingint64uCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingInt64uCommandParams.put("value", unitTestingint64uCommandParameterInfo); - InteractionInfo writeUnitTestingInt64uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeInt64uAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt64uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeInt64uAttribute", writeUnitTestingInt64uAttributeInteractionInfo); - Map writeUnitTestingInt8sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingint8sCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingInt8sCommandParams.put("value", unitTestingint8sCommandParameterInfo); - InteractionInfo writeUnitTestingInt8sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeInt8sAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt8sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeInt8sAttribute", writeUnitTestingInt8sAttributeInteractionInfo); - Map writeUnitTestingInt16sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingint16sCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingInt16sCommandParams.put("value", unitTestingint16sCommandParameterInfo); - InteractionInfo writeUnitTestingInt16sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeInt16sAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt16sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeInt16sAttribute", writeUnitTestingInt16sAttributeInteractionInfo); - Map writeUnitTestingInt24sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingint24sCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingInt24sCommandParams.put("value", unitTestingint24sCommandParameterInfo); - InteractionInfo writeUnitTestingInt24sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeInt24sAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt24sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeInt24sAttribute", writeUnitTestingInt24sAttributeInteractionInfo); - Map writeUnitTestingInt32sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingint32sCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingInt32sCommandParams.put("value", unitTestingint32sCommandParameterInfo); - InteractionInfo writeUnitTestingInt32sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeInt32sAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt32sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeInt32sAttribute", writeUnitTestingInt32sAttributeInteractionInfo); - Map writeUnitTestingInt40sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingint40sCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingInt40sCommandParams.put("value", unitTestingint40sCommandParameterInfo); - InteractionInfo writeUnitTestingInt40sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeInt40sAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt40sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeInt40sAttribute", writeUnitTestingInt40sAttributeInteractionInfo); - Map writeUnitTestingInt48sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingint48sCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingInt48sCommandParams.put("value", unitTestingint48sCommandParameterInfo); - InteractionInfo writeUnitTestingInt48sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeInt48sAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt48sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeInt48sAttribute", writeUnitTestingInt48sAttributeInteractionInfo); - Map writeUnitTestingInt56sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingint56sCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingInt56sCommandParams.put("value", unitTestingint56sCommandParameterInfo); - InteractionInfo writeUnitTestingInt56sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeInt56sAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt56sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeInt56sAttribute", writeUnitTestingInt56sAttributeInteractionInfo); - Map writeUnitTestingInt64sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingint64sCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingInt64sCommandParams.put("value", unitTestingint64sCommandParameterInfo); - InteractionInfo writeUnitTestingInt64sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeInt64sAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt64sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeInt64sAttribute", writeUnitTestingInt64sAttributeInteractionInfo); - Map writeUnitTestingEnum8CommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingenum8CommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingEnum8CommandParams.put("value", unitTestingenum8CommandParameterInfo); - InteractionInfo writeUnitTestingEnum8AttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeEnum8Attribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingEnum8CommandParams); - writeUnitTestingInteractionInfo.put( - "writeEnum8Attribute", writeUnitTestingEnum8AttributeInteractionInfo); - Map writeUnitTestingEnum16CommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingenum16CommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingEnum16CommandParams.put("value", unitTestingenum16CommandParameterInfo); - InteractionInfo writeUnitTestingEnum16AttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeEnum16Attribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingEnum16CommandParams); - writeUnitTestingInteractionInfo.put( - "writeEnum16Attribute", writeUnitTestingEnum16AttributeInteractionInfo); - Map writeUnitTestingFloatSingleCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingfloatSingleCommandParameterInfo = - new CommandParameterInfo("value", Float.class, Float.class); - writeUnitTestingFloatSingleCommandParams.put( - "value", unitTestingfloatSingleCommandParameterInfo); - InteractionInfo writeUnitTestingFloatSingleAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeFloatSingleAttribute( - (DefaultClusterCallback) callback, (Float) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingFloatSingleCommandParams); - writeUnitTestingInteractionInfo.put( - "writeFloatSingleAttribute", writeUnitTestingFloatSingleAttributeInteractionInfo); - Map writeUnitTestingFloatDoubleCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingfloatDoubleCommandParameterInfo = - new CommandParameterInfo("value", Double.class, Double.class); - writeUnitTestingFloatDoubleCommandParams.put( - "value", unitTestingfloatDoubleCommandParameterInfo); - InteractionInfo writeUnitTestingFloatDoubleAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeFloatDoubleAttribute( - (DefaultClusterCallback) callback, (Double) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingFloatDoubleCommandParams); - writeUnitTestingInteractionInfo.put( - "writeFloatDoubleAttribute", writeUnitTestingFloatDoubleAttributeInteractionInfo); - Map writeUnitTestingOctetStringCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingoctetStringCommandParameterInfo = - new CommandParameterInfo("value", byte[].class, byte[].class); - writeUnitTestingOctetStringCommandParams.put( - "value", unitTestingoctetStringCommandParameterInfo); - InteractionInfo writeUnitTestingOctetStringAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeOctetStringAttribute( - (DefaultClusterCallback) callback, (byte[]) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingOctetStringCommandParams); - writeUnitTestingInteractionInfo.put( - "writeOctetStringAttribute", writeUnitTestingOctetStringAttributeInteractionInfo); - Map writeUnitTestingLongOctetStringCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestinglongOctetStringCommandParameterInfo = - new CommandParameterInfo("value", byte[].class, byte[].class); - writeUnitTestingLongOctetStringCommandParams.put( - "value", unitTestinglongOctetStringCommandParameterInfo); - InteractionInfo writeUnitTestingLongOctetStringAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeLongOctetStringAttribute( - (DefaultClusterCallback) callback, (byte[]) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingLongOctetStringCommandParams); - writeUnitTestingInteractionInfo.put( - "writeLongOctetStringAttribute", writeUnitTestingLongOctetStringAttributeInteractionInfo); - Map writeUnitTestingCharStringCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingcharStringCommandParameterInfo = - new CommandParameterInfo("value", String.class, String.class); - writeUnitTestingCharStringCommandParams.put("value", unitTestingcharStringCommandParameterInfo); - InteractionInfo writeUnitTestingCharStringAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeCharStringAttribute( - (DefaultClusterCallback) callback, (String) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingCharStringCommandParams); - writeUnitTestingInteractionInfo.put( - "writeCharStringAttribute", writeUnitTestingCharStringAttributeInteractionInfo); - Map writeUnitTestingLongCharStringCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestinglongCharStringCommandParameterInfo = - new CommandParameterInfo("value", String.class, String.class); - writeUnitTestingLongCharStringCommandParams.put( - "value", unitTestinglongCharStringCommandParameterInfo); - InteractionInfo writeUnitTestingLongCharStringAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeLongCharStringAttribute( - (DefaultClusterCallback) callback, (String) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingLongCharStringCommandParams); - writeUnitTestingInteractionInfo.put( - "writeLongCharStringAttribute", writeUnitTestingLongCharStringAttributeInteractionInfo); - Map writeUnitTestingEpochUsCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingepochUsCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingEpochUsCommandParams.put("value", unitTestingepochUsCommandParameterInfo); - InteractionInfo writeUnitTestingEpochUsAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeEpochUsAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingEpochUsCommandParams); - writeUnitTestingInteractionInfo.put( - "writeEpochUsAttribute", writeUnitTestingEpochUsAttributeInteractionInfo); - Map writeUnitTestingEpochSCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingepochSCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingEpochSCommandParams.put("value", unitTestingepochSCommandParameterInfo); - InteractionInfo writeUnitTestingEpochSAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeEpochSAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingEpochSCommandParams); - writeUnitTestingInteractionInfo.put( - "writeEpochSAttribute", writeUnitTestingEpochSAttributeInteractionInfo); - Map writeUnitTestingVendorIdCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingvendorIdCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingVendorIdCommandParams.put("value", unitTestingvendorIdCommandParameterInfo); - InteractionInfo writeUnitTestingVendorIdAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeVendorIdAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingVendorIdCommandParams); - writeUnitTestingInteractionInfo.put( - "writeVendorIdAttribute", writeUnitTestingVendorIdAttributeInteractionInfo); - Map writeUnitTestingEnumAttrCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingenumAttrCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingEnumAttrCommandParams.put("value", unitTestingenumAttrCommandParameterInfo); - InteractionInfo writeUnitTestingEnumAttrAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeEnumAttrAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingEnumAttrCommandParams); - writeUnitTestingInteractionInfo.put( - "writeEnumAttrAttribute", writeUnitTestingEnumAttrAttributeInteractionInfo); - Map writeUnitTestingRangeRestrictedInt8uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingrangeRestrictedInt8uCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingRangeRestrictedInt8uCommandParams.put( - "value", unitTestingrangeRestrictedInt8uCommandParameterInfo); - InteractionInfo writeUnitTestingRangeRestrictedInt8uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeRangeRestrictedInt8uAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingRangeRestrictedInt8uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeRangeRestrictedInt8uAttribute", - writeUnitTestingRangeRestrictedInt8uAttributeInteractionInfo); - Map writeUnitTestingRangeRestrictedInt8sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingrangeRestrictedInt8sCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingRangeRestrictedInt8sCommandParams.put( - "value", unitTestingrangeRestrictedInt8sCommandParameterInfo); - InteractionInfo writeUnitTestingRangeRestrictedInt8sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeRangeRestrictedInt8sAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingRangeRestrictedInt8sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeRangeRestrictedInt8sAttribute", - writeUnitTestingRangeRestrictedInt8sAttributeInteractionInfo); - Map writeUnitTestingRangeRestrictedInt16uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingrangeRestrictedInt16uCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingRangeRestrictedInt16uCommandParams.put( - "value", unitTestingrangeRestrictedInt16uCommandParameterInfo); - InteractionInfo writeUnitTestingRangeRestrictedInt16uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeRangeRestrictedInt16uAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingRangeRestrictedInt16uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeRangeRestrictedInt16uAttribute", - writeUnitTestingRangeRestrictedInt16uAttributeInteractionInfo); - Map writeUnitTestingRangeRestrictedInt16sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingrangeRestrictedInt16sCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingRangeRestrictedInt16sCommandParams.put( - "value", unitTestingrangeRestrictedInt16sCommandParameterInfo); - InteractionInfo writeUnitTestingRangeRestrictedInt16sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeRangeRestrictedInt16sAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingRangeRestrictedInt16sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeRangeRestrictedInt16sAttribute", - writeUnitTestingRangeRestrictedInt16sAttributeInteractionInfo); - Map writeUnitTestingTimedWriteBooleanCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingtimedWriteBooleanCommandParameterInfo = - new CommandParameterInfo("value", Boolean.class, Boolean.class); - writeUnitTestingTimedWriteBooleanCommandParams.put( - "value", unitTestingtimedWriteBooleanCommandParameterInfo); - InteractionInfo writeUnitTestingTimedWriteBooleanAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeTimedWriteBooleanAttribute( - (DefaultClusterCallback) callback, - (Boolean) commandArguments.get("value"), - 10000); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingTimedWriteBooleanCommandParams); - writeUnitTestingInteractionInfo.put( - "writeTimedWriteBooleanAttribute", - writeUnitTestingTimedWriteBooleanAttributeInteractionInfo); - Map writeUnitTestingGeneralErrorBooleanCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestinggeneralErrorBooleanCommandParameterInfo = - new CommandParameterInfo("value", Boolean.class, Boolean.class); - writeUnitTestingGeneralErrorBooleanCommandParams.put( - "value", unitTestinggeneralErrorBooleanCommandParameterInfo); - InteractionInfo writeUnitTestingGeneralErrorBooleanAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeGeneralErrorBooleanAttribute( - (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingGeneralErrorBooleanCommandParams); - writeUnitTestingInteractionInfo.put( - "writeGeneralErrorBooleanAttribute", - writeUnitTestingGeneralErrorBooleanAttributeInteractionInfo); - Map writeUnitTestingClusterErrorBooleanCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingclusterErrorBooleanCommandParameterInfo = - new CommandParameterInfo("value", Boolean.class, Boolean.class); - writeUnitTestingClusterErrorBooleanCommandParams.put( - "value", unitTestingclusterErrorBooleanCommandParameterInfo); - InteractionInfo writeUnitTestingClusterErrorBooleanAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeClusterErrorBooleanAttribute( - (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingClusterErrorBooleanCommandParams); - writeUnitTestingInteractionInfo.put( - "writeClusterErrorBooleanAttribute", - writeUnitTestingClusterErrorBooleanAttributeInteractionInfo); - Map writeUnitTestingUnsupportedCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingunsupportedCommandParameterInfo = - new CommandParameterInfo("value", Boolean.class, Boolean.class); - writeUnitTestingUnsupportedCommandParams.put( - "value", unitTestingunsupportedCommandParameterInfo); - InteractionInfo writeUnitTestingUnsupportedAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeUnsupportedAttribute( - (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingUnsupportedCommandParams); - writeUnitTestingInteractionInfo.put( - "writeUnsupportedAttribute", writeUnitTestingUnsupportedAttributeInteractionInfo); - Map writeUnitTestingNullableBooleanCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableBooleanCommandParameterInfo = - new CommandParameterInfo("value", Boolean.class, Boolean.class); - writeUnitTestingNullableBooleanCommandParams.put( - "value", unitTestingnullableBooleanCommandParameterInfo); - InteractionInfo writeUnitTestingNullableBooleanAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableBooleanAttribute( - (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableBooleanCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableBooleanAttribute", writeUnitTestingNullableBooleanAttributeInteractionInfo); - Map writeUnitTestingNullableBitmap8CommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableBitmap8CommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingNullableBitmap8CommandParams.put( - "value", unitTestingnullableBitmap8CommandParameterInfo); - InteractionInfo writeUnitTestingNullableBitmap8AttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableBitmap8Attribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableBitmap8CommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableBitmap8Attribute", writeUnitTestingNullableBitmap8AttributeInteractionInfo); - Map writeUnitTestingNullableBitmap16CommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableBitmap16CommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingNullableBitmap16CommandParams.put( - "value", unitTestingnullableBitmap16CommandParameterInfo); - InteractionInfo writeUnitTestingNullableBitmap16AttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableBitmap16Attribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableBitmap16CommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableBitmap16Attribute", writeUnitTestingNullableBitmap16AttributeInteractionInfo); - Map writeUnitTestingNullableBitmap32CommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableBitmap32CommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingNullableBitmap32CommandParams.put( - "value", unitTestingnullableBitmap32CommandParameterInfo); - InteractionInfo writeUnitTestingNullableBitmap32AttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableBitmap32Attribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableBitmap32CommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableBitmap32Attribute", writeUnitTestingNullableBitmap32AttributeInteractionInfo); - Map writeUnitTestingNullableBitmap64CommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableBitmap64CommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingNullableBitmap64CommandParams.put( - "value", unitTestingnullableBitmap64CommandParameterInfo); - InteractionInfo writeUnitTestingNullableBitmap64AttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableBitmap64Attribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableBitmap64CommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableBitmap64Attribute", writeUnitTestingNullableBitmap64AttributeInteractionInfo); - Map writeUnitTestingNullableInt8uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableInt8uCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingNullableInt8uCommandParams.put( - "value", unitTestingnullableInt8uCommandParameterInfo); - InteractionInfo writeUnitTestingNullableInt8uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableInt8uAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt8uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableInt8uAttribute", writeUnitTestingNullableInt8uAttributeInteractionInfo); - Map writeUnitTestingNullableInt16uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableInt16uCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingNullableInt16uCommandParams.put( - "value", unitTestingnullableInt16uCommandParameterInfo); - InteractionInfo writeUnitTestingNullableInt16uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableInt16uAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt16uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableInt16uAttribute", writeUnitTestingNullableInt16uAttributeInteractionInfo); - Map writeUnitTestingNullableInt24uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableInt24uCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingNullableInt24uCommandParams.put( - "value", unitTestingnullableInt24uCommandParameterInfo); - InteractionInfo writeUnitTestingNullableInt24uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableInt24uAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt24uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableInt24uAttribute", writeUnitTestingNullableInt24uAttributeInteractionInfo); - Map writeUnitTestingNullableInt32uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableInt32uCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingNullableInt32uCommandParams.put( - "value", unitTestingnullableInt32uCommandParameterInfo); - InteractionInfo writeUnitTestingNullableInt32uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableInt32uAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt32uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableInt32uAttribute", writeUnitTestingNullableInt32uAttributeInteractionInfo); - Map writeUnitTestingNullableInt40uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableInt40uCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingNullableInt40uCommandParams.put( - "value", unitTestingnullableInt40uCommandParameterInfo); - InteractionInfo writeUnitTestingNullableInt40uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableInt40uAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt40uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableInt40uAttribute", writeUnitTestingNullableInt40uAttributeInteractionInfo); - Map writeUnitTestingNullableInt48uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableInt48uCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingNullableInt48uCommandParams.put( - "value", unitTestingnullableInt48uCommandParameterInfo); - InteractionInfo writeUnitTestingNullableInt48uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableInt48uAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt48uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableInt48uAttribute", writeUnitTestingNullableInt48uAttributeInteractionInfo); - Map writeUnitTestingNullableInt56uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableInt56uCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingNullableInt56uCommandParams.put( - "value", unitTestingnullableInt56uCommandParameterInfo); - InteractionInfo writeUnitTestingNullableInt56uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableInt56uAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt56uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableInt56uAttribute", writeUnitTestingNullableInt56uAttributeInteractionInfo); - Map writeUnitTestingNullableInt64uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableInt64uCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingNullableInt64uCommandParams.put( - "value", unitTestingnullableInt64uCommandParameterInfo); - InteractionInfo writeUnitTestingNullableInt64uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableInt64uAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt64uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableInt64uAttribute", writeUnitTestingNullableInt64uAttributeInteractionInfo); - Map writeUnitTestingNullableInt8sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableInt8sCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingNullableInt8sCommandParams.put( - "value", unitTestingnullableInt8sCommandParameterInfo); - InteractionInfo writeUnitTestingNullableInt8sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableInt8sAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt8sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableInt8sAttribute", writeUnitTestingNullableInt8sAttributeInteractionInfo); - Map writeUnitTestingNullableInt16sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableInt16sCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingNullableInt16sCommandParams.put( - "value", unitTestingnullableInt16sCommandParameterInfo); - InteractionInfo writeUnitTestingNullableInt16sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableInt16sAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt16sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableInt16sAttribute", writeUnitTestingNullableInt16sAttributeInteractionInfo); - Map writeUnitTestingNullableInt24sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableInt24sCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingNullableInt24sCommandParams.put( - "value", unitTestingnullableInt24sCommandParameterInfo); - InteractionInfo writeUnitTestingNullableInt24sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableInt24sAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt24sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableInt24sAttribute", writeUnitTestingNullableInt24sAttributeInteractionInfo); - Map writeUnitTestingNullableInt32sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableInt32sCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingNullableInt32sCommandParams.put( - "value", unitTestingnullableInt32sCommandParameterInfo); - InteractionInfo writeUnitTestingNullableInt32sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableInt32sAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt32sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableInt32sAttribute", writeUnitTestingNullableInt32sAttributeInteractionInfo); - Map writeUnitTestingNullableInt40sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableInt40sCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingNullableInt40sCommandParams.put( - "value", unitTestingnullableInt40sCommandParameterInfo); - InteractionInfo writeUnitTestingNullableInt40sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableInt40sAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt40sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableInt40sAttribute", writeUnitTestingNullableInt40sAttributeInteractionInfo); - Map writeUnitTestingNullableInt48sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableInt48sCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingNullableInt48sCommandParams.put( - "value", unitTestingnullableInt48sCommandParameterInfo); - InteractionInfo writeUnitTestingNullableInt48sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableInt48sAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt48sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableInt48sAttribute", writeUnitTestingNullableInt48sAttributeInteractionInfo); - Map writeUnitTestingNullableInt56sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableInt56sCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingNullableInt56sCommandParams.put( - "value", unitTestingnullableInt56sCommandParameterInfo); - InteractionInfo writeUnitTestingNullableInt56sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableInt56sAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt56sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableInt56sAttribute", writeUnitTestingNullableInt56sAttributeInteractionInfo); - Map writeUnitTestingNullableInt64sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableInt64sCommandParameterInfo = - new CommandParameterInfo("value", Long.class, Long.class); - writeUnitTestingNullableInt64sCommandParams.put( - "value", unitTestingnullableInt64sCommandParameterInfo); - InteractionInfo writeUnitTestingNullableInt64sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableInt64sAttribute( - (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt64sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableInt64sAttribute", writeUnitTestingNullableInt64sAttributeInteractionInfo); - Map writeUnitTestingNullableEnum8CommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableEnum8CommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingNullableEnum8CommandParams.put( - "value", unitTestingnullableEnum8CommandParameterInfo); - InteractionInfo writeUnitTestingNullableEnum8AttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableEnum8Attribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableEnum8CommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableEnum8Attribute", writeUnitTestingNullableEnum8AttributeInteractionInfo); - Map writeUnitTestingNullableEnum16CommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableEnum16CommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingNullableEnum16CommandParams.put( - "value", unitTestingnullableEnum16CommandParameterInfo); - InteractionInfo writeUnitTestingNullableEnum16AttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableEnum16Attribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableEnum16CommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableEnum16Attribute", writeUnitTestingNullableEnum16AttributeInteractionInfo); - Map writeUnitTestingNullableFloatSingleCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableFloatSingleCommandParameterInfo = - new CommandParameterInfo("value", Float.class, Float.class); - writeUnitTestingNullableFloatSingleCommandParams.put( - "value", unitTestingnullableFloatSingleCommandParameterInfo); - InteractionInfo writeUnitTestingNullableFloatSingleAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableFloatSingleAttribute( - (DefaultClusterCallback) callback, (Float) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableFloatSingleCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableFloatSingleAttribute", - writeUnitTestingNullableFloatSingleAttributeInteractionInfo); - Map writeUnitTestingNullableFloatDoubleCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableFloatDoubleCommandParameterInfo = - new CommandParameterInfo("value", Double.class, Double.class); - writeUnitTestingNullableFloatDoubleCommandParams.put( - "value", unitTestingnullableFloatDoubleCommandParameterInfo); - InteractionInfo writeUnitTestingNullableFloatDoubleAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableFloatDoubleAttribute( - (DefaultClusterCallback) callback, (Double) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableFloatDoubleCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableFloatDoubleAttribute", - writeUnitTestingNullableFloatDoubleAttributeInteractionInfo); - Map writeUnitTestingNullableOctetStringCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableOctetStringCommandParameterInfo = - new CommandParameterInfo("value", byte[].class, byte[].class); - writeUnitTestingNullableOctetStringCommandParams.put( - "value", unitTestingnullableOctetStringCommandParameterInfo); - InteractionInfo writeUnitTestingNullableOctetStringAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableOctetStringAttribute( - (DefaultClusterCallback) callback, (byte[]) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableOctetStringCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableOctetStringAttribute", - writeUnitTestingNullableOctetStringAttributeInteractionInfo); - Map writeUnitTestingNullableCharStringCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableCharStringCommandParameterInfo = - new CommandParameterInfo("value", String.class, String.class); - writeUnitTestingNullableCharStringCommandParams.put( - "value", unitTestingnullableCharStringCommandParameterInfo); - InteractionInfo writeUnitTestingNullableCharStringAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableCharStringAttribute( - (DefaultClusterCallback) callback, (String) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableCharStringCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableCharStringAttribute", - writeUnitTestingNullableCharStringAttributeInteractionInfo); - Map writeUnitTestingNullableEnumAttrCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableEnumAttrCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingNullableEnumAttrCommandParams.put( - "value", unitTestingnullableEnumAttrCommandParameterInfo); - InteractionInfo writeUnitTestingNullableEnumAttrAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableEnumAttrAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableEnumAttrCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableEnumAttrAttribute", writeUnitTestingNullableEnumAttrAttributeInteractionInfo); - Map writeUnitTestingNullableRangeRestrictedInt8uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableRangeRestrictedInt8uCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingNullableRangeRestrictedInt8uCommandParams.put( - "value", unitTestingnullableRangeRestrictedInt8uCommandParameterInfo); - InteractionInfo writeUnitTestingNullableRangeRestrictedInt8uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableRangeRestrictedInt8uAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableRangeRestrictedInt8uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableRangeRestrictedInt8uAttribute", - writeUnitTestingNullableRangeRestrictedInt8uAttributeInteractionInfo); - Map writeUnitTestingNullableRangeRestrictedInt8sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableRangeRestrictedInt8sCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingNullableRangeRestrictedInt8sCommandParams.put( - "value", unitTestingnullableRangeRestrictedInt8sCommandParameterInfo); - InteractionInfo writeUnitTestingNullableRangeRestrictedInt8sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableRangeRestrictedInt8sAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableRangeRestrictedInt8sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableRangeRestrictedInt8sAttribute", - writeUnitTestingNullableRangeRestrictedInt8sAttributeInteractionInfo); - Map writeUnitTestingNullableRangeRestrictedInt16uCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableRangeRestrictedInt16uCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingNullableRangeRestrictedInt16uCommandParams.put( - "value", unitTestingnullableRangeRestrictedInt16uCommandParameterInfo); - InteractionInfo writeUnitTestingNullableRangeRestrictedInt16uAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableRangeRestrictedInt16uAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableRangeRestrictedInt16uCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableRangeRestrictedInt16uAttribute", - writeUnitTestingNullableRangeRestrictedInt16uAttributeInteractionInfo); - Map writeUnitTestingNullableRangeRestrictedInt16sCommandParams = - new LinkedHashMap(); - CommandParameterInfo unitTestingnullableRangeRestrictedInt16sCommandParameterInfo = - new CommandParameterInfo("value", Integer.class, Integer.class); - writeUnitTestingNullableRangeRestrictedInt16sCommandParams.put( - "value", unitTestingnullableRangeRestrictedInt16sCommandParameterInfo); - InteractionInfo writeUnitTestingNullableRangeRestrictedInt16sAttributeInteractionInfo = - new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster) - .writeNullableRangeRestrictedInt16sAttribute( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableRangeRestrictedInt16sCommandParams); - writeUnitTestingInteractionInfo.put( - "writeNullableRangeRestrictedInt16sAttribute", - writeUnitTestingNullableRangeRestrictedInt16sAttributeInteractionInfo); - writeAttributeMap.put("unitTesting", writeUnitTestingInteractionInfo); - return writeAttributeMap; - } -} From 58712aeaa50fe3940845daa00073ced8460a8f44 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Tue, 21 Mar 2023 17:39:05 -0400 Subject: [PATCH 19/28] Restyle, fix restyle logic --- .restyled.yaml | 1 + scripts/pregenerate/using_codegen.py | 1 + scripts/py_matter_idl/matter_idl/generators/registry.py | 2 +- scripts/py_matter_idl/matter_idl/test_generators.py | 2 +- scripts/tools/zap_regen_all.py | 1 - 5 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.restyled.yaml b/.restyled.yaml index 8c77704457a15d..33db552694c1f3 100644 --- a/.restyled.yaml +++ b/.restyled.yaml @@ -78,6 +78,7 @@ exclude: - "scripts/run_codegen_targets.sh" # shellharden breaks for loops over command outputs - "src/darwin/Framework/CHIP/zap-generated/*" # already clang-formatted by our zap tooling - "zzz_generated/**/*" # already clang-formatted by our zap tooling + - "src/controller/java/generated/java/**/*" # not formatted: generated files changed_paths: diff --git a/scripts/pregenerate/using_codegen.py b/scripts/pregenerate/using_codegen.py index 334df7310ff308..1040bb7ac1ae58 100644 --- a/scripts/pregenerate/using_codegen.py +++ b/scripts/pregenerate/using_codegen.py @@ -87,6 +87,7 @@ def Accept(self, idl: InputIdlFile): def CreateTarget(self, idl: InputIdlFile, runner): return CodegenTarget(sdk_root=self.sdk_root, idl=idl, generator="java-jni", runner=runner) + class CodegenJavaClassPregenerator: """Pregeneration logic for "java" codegen.py outputs""" diff --git a/scripts/py_matter_idl/matter_idl/generators/registry.py b/scripts/py_matter_idl/matter_idl/generators/registry.py index 66e413be66d142..8caf84c8fded9f 100644 --- a/scripts/py_matter_idl/matter_idl/generators/registry.py +++ b/scripts/py_matter_idl/matter_idl/generators/registry.py @@ -17,7 +17,7 @@ from matter_idl.generators.bridge import BridgeGenerator from matter_idl.generators.cpp.application import CppApplicationGenerator -from matter_idl.generators.java import JavaJNIGenerator, JavaClassGenerator +from matter_idl.generators.java import JavaClassGenerator, JavaJNIGenerator class CodeGenerator(enum.Enum): diff --git a/scripts/py_matter_idl/matter_idl/test_generators.py b/scripts/py_matter_idl/matter_idl/test_generators.py index 3264a346283f3c..3a8d1f472fbe2b 100755 --- a/scripts/py_matter_idl/matter_idl/test_generators.py +++ b/scripts/py_matter_idl/matter_idl/test_generators.py @@ -33,7 +33,7 @@ from matter_idl.generators import GeneratorStorage from matter_idl.generators.bridge import BridgeGenerator from matter_idl.generators.cpp.application import CppApplicationGenerator -from matter_idl.generators.java import JavaJNIGenerator, JavaClassGenerator +from matter_idl.generators.java import JavaClassGenerator, JavaJNIGenerator from matter_idl.matter_idl_types import Idl TESTS_DIR = os.path.join(os.path.dirname(__file__), "tests") diff --git a/scripts/tools/zap_regen_all.py b/scripts/tools/zap_regen_all.py index fb3983a141357f..76ce67e17100bd 100755 --- a/scripts/tools/zap_regen_all.py +++ b/scripts/tools/zap_regen_all.py @@ -230,7 +230,6 @@ def log_command(self): logging.info(" %s" % " ".join(self.command)) - def checkPythonVersion(): if sys.version_info[0] < 3: print('Must use Python 3. Current version is ' + From 7a89a5c72286b1c080402d6de1d0a28c3e5ce7a8 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Tue, 21 Mar 2023 17:55:43 -0400 Subject: [PATCH 20/28] Fix duplicated generation target --- scripts/tools/zap_regen_all.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scripts/tools/zap_regen_all.py b/scripts/tools/zap_regen_all.py index 76ce67e17100bd..1269ca78f3d49f 100755 --- a/scripts/tools/zap_regen_all.py +++ b/scripts/tools/zap_regen_all.py @@ -331,11 +331,6 @@ def getGlobalTemplatesTargets(): template="src/app/zap-templates/app-templates.json", output_dir='zzz_generated/darwin/controller-clusters/zap-generated')) - targets.append(JinjaCodegenTarget( - generator="java-class", - idl_path="src/controller/data_model/controller-clusters.matter", - output_directory="src/controller/java/generated")) - return targets From 80baf11ec29956cdb4e2a2f41911fcb6ca728c16 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Tue, 21 Mar 2023 18:05:00 -0400 Subject: [PATCH 21/28] Do not attempt to zap-generate Cluster write mapping --- src/controller/java/templates/templates.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/controller/java/templates/templates.json b/src/controller/java/templates/templates.json index d839cc4f211a33..744573fa9ca6cd 100644 --- a/src/controller/java/templates/templates.json +++ b/src/controller/java/templates/templates.json @@ -103,11 +103,6 @@ "path": "ClusterInfo-read-interaction.zapt", "name": "Generate read interaction for cluster information map", "output": "src/controller/java/zap-generated/chip/devicecontroller/ClusterReadMapping.java" - }, - { - "path": "ClusterInfo-write-interaction.zapt", - "name": "Generate write interaction for cluster information map", - "output": "src/controller/java/zap-generated/chip/devicecontroller/ClusterWriteMapping.java" } ] } From a9e2f2b93e744e44746e5df6b1a826615170013b Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Tue, 21 Mar 2023 19:22:50 -0400 Subject: [PATCH 22/28] Add golden image unit test for java codegen --- scripts/py_matter_idl/BUILD.gn | 1 + .../matter_idl/tests/available_tests.yaml | 4 + .../java/ClusterWriteMapping.java | 86 +++++++++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 scripts/py_matter_idl/matter_idl/tests/outputs/several_clusters/java/ClusterWriteMapping.java diff --git a/scripts/py_matter_idl/BUILD.gn b/scripts/py_matter_idl/BUILD.gn index 7e3254573e9cac..aa0ba2f7899288 100644 --- a/scripts/py_matter_idl/BUILD.gn +++ b/scripts/py_matter_idl/BUILD.gn @@ -56,6 +56,7 @@ pw_python_package("matter_idl") { "matter_idl/tests/outputs/several_clusters/bridge/SecondServer.h", "matter_idl/tests/outputs/several_clusters/bridge/Third.h", "matter_idl/tests/outputs/several_clusters/bridge/ThirdServer.h", + "matter_idl/tests/outputs/several_clusters/java/ClusterWriteMapping.java", "matter_idl/tests/outputs/several_clusters/jni/FirstClient-ReadImpl.cpp", "matter_idl/tests/outputs/several_clusters/jni/SecondClient-ReadImpl.cpp", "matter_idl/tests/outputs/several_clusters/jni/ThirdClient-ReadImpl.cpp", diff --git a/scripts/py_matter_idl/matter_idl/tests/available_tests.yaml b/scripts/py_matter_idl/matter_idl/tests/available_tests.yaml index 944515314dfcf2..c1b253ec23f0f9 100644 --- a/scripts/py_matter_idl/matter_idl/tests/available_tests.yaml +++ b/scripts/py_matter_idl/matter_idl/tests/available_tests.yaml @@ -35,6 +35,10 @@ java-jni: jni/MyClusterClient-ReadImpl.cpp: outputs/optional_argument/jni/MyClusterClient-ReadImpl.cpp jni/MyClusterClient-InvokeSubscribeImpl.cpp: outputs/optional_argument/jni/MyClusterClient-InvokeSubscribeImpl.cpp +java-class: + inputs/several_clusters.matter: + java/chip/devicecontroller/ClusterWriteMapping.java: outputs/several_clusters/java/ClusterWriteMapping.java + bridge: inputs/simple_attribute.matter: bridge/BridgeClustersImpl.h: outputs/simple_attribute/bridge/BridgeClustersImpl.h diff --git a/scripts/py_matter_idl/matter_idl/tests/outputs/several_clusters/java/ClusterWriteMapping.java b/scripts/py_matter_idl/matter_idl/tests/outputs/several_clusters/java/ClusterWriteMapping.java new file mode 100644 index 00000000000000..adae9aae1da991 --- /dev/null +++ b/scripts/py_matter_idl/matter_idl/tests/outputs/several_clusters/java/ClusterWriteMapping.java @@ -0,0 +1,86 @@ +package chip.devicecontroller; + +import chip.clusterinfo.CommandParameterInfo; +import chip.clusterinfo.InteractionInfo; +import chip.devicecontroller.ChipClusters.DefaultClusterCallback; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; + +public class ClusterWriteMapping { + public Map> getWriteAttributeMap() { + Map> writeAttributeMap = new HashMap<>(); + Map writeFirstInteractionInfo = new LinkedHashMap<>(); + Map writeFirstSomeIntegerCommandParams = new LinkedHashMap(); + CommandParameterInfo firstsomeIntegerCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeFirstSomeIntegerCommandParams.put( + "value", + firstsomeIntegerCommandParameterInfo + ); + InteractionInfo writeFirstSomeIntegerAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FirstCluster) cluster).writeSomeIntegerAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeFirstSomeIntegerCommandParams + ); + writeFirstInteractionInfo.put("writeSomeIntegerAttribute", writeFirstSomeIntegerAttributeInteractionInfo); + writeAttributeMap.put("first", writeFirstInteractionInfo); + Map writeSecondInteractionInfo = new LinkedHashMap<>(); + writeAttributeMap.put("second", writeSecondInteractionInfo); + Map writeThirdInteractionInfo = new LinkedHashMap<>(); + Map writeThirdSomeEnumCommandParams = new LinkedHashMap(); + CommandParameterInfo thirdsomeEnumCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThirdSomeEnumCommandParams.put( + "value", + thirdsomeEnumCommandParameterInfo + ); + InteractionInfo writeThirdSomeEnumAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThirdCluster) cluster).writeSomeEnumAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThirdSomeEnumCommandParams + ); + writeThirdInteractionInfo.put("writeSomeEnumAttribute", writeThirdSomeEnumAttributeInteractionInfo); + Map writeThirdOptionsCommandParams = new LinkedHashMap(); + CommandParameterInfo thirdoptionsCommandParameterInfo = + new CommandParameterInfo( + "value", + Integer.class, + Integer.class + ); + writeThirdOptionsCommandParams.put( + "value", + thirdoptionsCommandParameterInfo + ); + InteractionInfo writeThirdOptionsAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThirdCluster) cluster).writeOptionsAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value") + ); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThirdOptionsCommandParams + ); + writeThirdInteractionInfo.put("writeOptionsAttribute", writeThirdOptionsAttributeInteractionInfo); + writeAttributeMap.put("third", writeThirdInteractionInfo);return writeAttributeMap; + } +} From ad4aa7c37848962d9b168bb58dec33cfb100b033 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Tue, 21 Mar 2023 19:41:41 -0400 Subject: [PATCH 23/28] Add prettyfy for java output ... makes the input/output files more obviously identical --- scripts/tools/zap_regen_all.py | 29 + .../devicecontroller/ClusterWriteMapping.java | 6253 +++++++---------- 2 files changed, 2752 insertions(+), 3530 deletions(-) diff --git a/scripts/tools/zap_regen_all.py b/scripts/tools/zap_regen_all.py index 1269ca78f3d49f..4ca6b6fdda6199 100755 --- a/scripts/tools/zap_regen_all.py +++ b/scripts/tools/zap_regen_all.py @@ -24,6 +24,8 @@ import sys import tempfile import time +import traceback +import urllib.request from dataclasses import dataclass from enum import Flag, auto from pathlib import Path @@ -211,9 +213,36 @@ def __init__(self, generator: str, output_directory: str, idl_path: str): self.command = ["./scripts/codegen.py", "--output-dir", output_directory, "--generator", generator, idl_path] + def runJavaPrettifier(self): + try: + java_outputs = subprocess.check_output(["./scripts/codegen.py", "--name-only", "--generator", + self.generator, "--log-level", "fatal", self.idl_path]).decode("utf8").split("\n") + java_outputs = [os.path.join(self.output_directory, name) for name in java_outputs if name] + + logging.info("Prettifying %d java files:", len(java_outputs)) + for name in java_outputs: + logging.info(" %s" % name) + + # Keep this version in sync with what restyler uses (https://github.com/project-chip/connectedhomeip/blob/master/.restyled.yaml). + FORMAT_VERSION = "1.6" + URL_PREFIX = 'https://github.com/google/google-java-format/releases/download/google-java-format' + JAR_NAME = f"google-java-format-{FORMAT_VERSION}-all-deps.jar" + jar_url = f"{URL_PREFIX}-{FORMAT_VERSION}/{JAR_NAME}" + + home = str(Path.home()) + path, http_message = urllib.request.urlretrieve(jar_url, Path.home().joinpath(JAR_NAME).as_posix()) + + subprocess.check_call(['java', '-jar', path, '--replace'] + java_outputs) + except Exception as err: + traceback.print_exception(err) + print('google-java-format error:', err) + def generate(self) -> TargetRunStats: generate_start = time.time() + subprocess.check_call(self.command) + self.runJavaPrettifier() + generate_end = time.time() return TargetRunStats( diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java index 1eee99c7cd6182..badbfd0503386b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java +++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java @@ -11,326 +11,255 @@ public class ClusterWriteMapping { public Map> getWriteAttributeMap() { Map> writeAttributeMap = new HashMap<>(); Map writeIdentifyInteractionInfo = new LinkedHashMap<>(); - Map writeIdentifyIdentifyTimeCommandParams = new LinkedHashMap(); + Map writeIdentifyIdentifyTimeCommandParams = + new LinkedHashMap(); CommandParameterInfo identifyidentifyTimeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeIdentifyIdentifyTimeCommandParams.put( - "value", - identifyidentifyTimeCommandParameterInfo - ); - InteractionInfo writeIdentifyIdentifyTimeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.IdentifyCluster) cluster).writeIdentifyTimeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeIdentifyIdentifyTimeCommandParams - ); - writeIdentifyInteractionInfo.put("writeIdentifyTimeAttribute", writeIdentifyIdentifyTimeAttributeInteractionInfo); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeIdentifyIdentifyTimeCommandParams.put("value", identifyidentifyTimeCommandParameterInfo); + InteractionInfo writeIdentifyIdentifyTimeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.IdentifyCluster) cluster) + .writeIdentifyTimeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeIdentifyIdentifyTimeCommandParams); + writeIdentifyInteractionInfo.put( + "writeIdentifyTimeAttribute", writeIdentifyIdentifyTimeAttributeInteractionInfo); writeAttributeMap.put("identify", writeIdentifyInteractionInfo); Map writeGroupsInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("groups", writeGroupsInteractionInfo); Map writeScenesInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("scenes", writeScenesInteractionInfo); Map writeOnOffInteractionInfo = new LinkedHashMap<>(); - Map writeOnOffOnTimeCommandParams = new LinkedHashMap(); + Map writeOnOffOnTimeCommandParams = + new LinkedHashMap(); CommandParameterInfo onOffonTimeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeOnOffOnTimeCommandParams.put( - "value", - onOffonTimeCommandParameterInfo - ); - InteractionInfo writeOnOffOnTimeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.OnOffCluster) cluster).writeOnTimeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeOnOffOnTimeCommandParams - ); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeOnOffOnTimeCommandParams.put("value", onOffonTimeCommandParameterInfo); + InteractionInfo writeOnOffOnTimeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster) + .writeOnTimeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeOnOffOnTimeCommandParams); writeOnOffInteractionInfo.put("writeOnTimeAttribute", writeOnOffOnTimeAttributeInteractionInfo); - Map writeOnOffOffWaitTimeCommandParams = new LinkedHashMap(); + Map writeOnOffOffWaitTimeCommandParams = + new LinkedHashMap(); CommandParameterInfo onOffoffWaitTimeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeOnOffOffWaitTimeCommandParams.put( - "value", - onOffoffWaitTimeCommandParameterInfo - ); - InteractionInfo writeOnOffOffWaitTimeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.OnOffCluster) cluster).writeOffWaitTimeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeOnOffOffWaitTimeCommandParams - ); - writeOnOffInteractionInfo.put("writeOffWaitTimeAttribute", writeOnOffOffWaitTimeAttributeInteractionInfo); - Map writeOnOffStartUpOnOffCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeOnOffOffWaitTimeCommandParams.put("value", onOffoffWaitTimeCommandParameterInfo); + InteractionInfo writeOnOffOffWaitTimeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster) + .writeOffWaitTimeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeOnOffOffWaitTimeCommandParams); + writeOnOffInteractionInfo.put( + "writeOffWaitTimeAttribute", writeOnOffOffWaitTimeAttributeInteractionInfo); + Map writeOnOffStartUpOnOffCommandParams = + new LinkedHashMap(); CommandParameterInfo onOffstartUpOnOffCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeOnOffStartUpOnOffCommandParams.put( - "value", - onOffstartUpOnOffCommandParameterInfo - ); - InteractionInfo writeOnOffStartUpOnOffAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.OnOffCluster) cluster).writeStartUpOnOffAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeOnOffStartUpOnOffCommandParams - ); - writeOnOffInteractionInfo.put("writeStartUpOnOffAttribute", writeOnOffStartUpOnOffAttributeInteractionInfo); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeOnOffStartUpOnOffCommandParams.put("value", onOffstartUpOnOffCommandParameterInfo); + InteractionInfo writeOnOffStartUpOnOffAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster) + .writeStartUpOnOffAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeOnOffStartUpOnOffCommandParams); + writeOnOffInteractionInfo.put( + "writeStartUpOnOffAttribute", writeOnOffStartUpOnOffAttributeInteractionInfo); writeAttributeMap.put("onOff", writeOnOffInteractionInfo); - Map writeOnOffSwitchConfigurationInteractionInfo = new LinkedHashMap<>(); - Map writeOnOffSwitchConfigurationSwitchActionsCommandParams = new LinkedHashMap(); + Map writeOnOffSwitchConfigurationInteractionInfo = + new LinkedHashMap<>(); + Map writeOnOffSwitchConfigurationSwitchActionsCommandParams = + new LinkedHashMap(); CommandParameterInfo onOffSwitchConfigurationswitchActionsCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeOnOffSwitchConfigurationSwitchActionsCommandParams.put( - "value", - onOffSwitchConfigurationswitchActionsCommandParameterInfo - ); - InteractionInfo writeOnOffSwitchConfigurationSwitchActionsAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.OnOffSwitchConfigurationCluster) cluster).writeSwitchActionsAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeOnOffSwitchConfigurationSwitchActionsCommandParams - ); - writeOnOffSwitchConfigurationInteractionInfo.put("writeSwitchActionsAttribute", writeOnOffSwitchConfigurationSwitchActionsAttributeInteractionInfo); + "value", onOffSwitchConfigurationswitchActionsCommandParameterInfo); + InteractionInfo writeOnOffSwitchConfigurationSwitchActionsAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffSwitchConfigurationCluster) cluster) + .writeSwitchActionsAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeOnOffSwitchConfigurationSwitchActionsCommandParams); + writeOnOffSwitchConfigurationInteractionInfo.put( + "writeSwitchActionsAttribute", + writeOnOffSwitchConfigurationSwitchActionsAttributeInteractionInfo); writeAttributeMap.put("onOffSwitchConfiguration", writeOnOffSwitchConfigurationInteractionInfo); Map writeLevelControlInteractionInfo = new LinkedHashMap<>(); - Map writeLevelControlOptionsCommandParams = new LinkedHashMap(); + Map writeLevelControlOptionsCommandParams = + new LinkedHashMap(); CommandParameterInfo levelControloptionsCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeLevelControlOptionsCommandParams.put( - "value", - levelControloptionsCommandParameterInfo - ); - InteractionInfo writeLevelControlOptionsAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster).writeOptionsAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeLevelControlOptionsCommandParams - ); - writeLevelControlInteractionInfo.put("writeOptionsAttribute", writeLevelControlOptionsAttributeInteractionInfo); - Map writeLevelControlOnOffTransitionTimeCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeLevelControlOptionsCommandParams.put("value", levelControloptionsCommandParameterInfo); + InteractionInfo writeLevelControlOptionsAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .writeOptionsAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeLevelControlOptionsCommandParams); + writeLevelControlInteractionInfo.put( + "writeOptionsAttribute", writeLevelControlOptionsAttributeInteractionInfo); + Map writeLevelControlOnOffTransitionTimeCommandParams = + new LinkedHashMap(); CommandParameterInfo levelControlonOffTransitionTimeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeLevelControlOnOffTransitionTimeCommandParams.put( - "value", - levelControlonOffTransitionTimeCommandParameterInfo - ); - InteractionInfo writeLevelControlOnOffTransitionTimeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster).writeOnOffTransitionTimeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeLevelControlOnOffTransitionTimeCommandParams - ); - writeLevelControlInteractionInfo.put("writeOnOffTransitionTimeAttribute", writeLevelControlOnOffTransitionTimeAttributeInteractionInfo); - Map writeLevelControlOnLevelCommandParams = new LinkedHashMap(); + "value", levelControlonOffTransitionTimeCommandParameterInfo); + InteractionInfo writeLevelControlOnOffTransitionTimeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .writeOnOffTransitionTimeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeLevelControlOnOffTransitionTimeCommandParams); + writeLevelControlInteractionInfo.put( + "writeOnOffTransitionTimeAttribute", + writeLevelControlOnOffTransitionTimeAttributeInteractionInfo); + Map writeLevelControlOnLevelCommandParams = + new LinkedHashMap(); CommandParameterInfo levelControlonLevelCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeLevelControlOnLevelCommandParams.put( - "value", - levelControlonLevelCommandParameterInfo - ); - InteractionInfo writeLevelControlOnLevelAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster).writeOnLevelAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeLevelControlOnLevelCommandParams - ); - writeLevelControlInteractionInfo.put("writeOnLevelAttribute", writeLevelControlOnLevelAttributeInteractionInfo); - Map writeLevelControlOnTransitionTimeCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeLevelControlOnLevelCommandParams.put("value", levelControlonLevelCommandParameterInfo); + InteractionInfo writeLevelControlOnLevelAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .writeOnLevelAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeLevelControlOnLevelCommandParams); + writeLevelControlInteractionInfo.put( + "writeOnLevelAttribute", writeLevelControlOnLevelAttributeInteractionInfo); + Map writeLevelControlOnTransitionTimeCommandParams = + new LinkedHashMap(); CommandParameterInfo levelControlonTransitionTimeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeLevelControlOnTransitionTimeCommandParams.put( - "value", - levelControlonTransitionTimeCommandParameterInfo - ); - InteractionInfo writeLevelControlOnTransitionTimeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster).writeOnTransitionTimeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeLevelControlOnTransitionTimeCommandParams - ); - writeLevelControlInteractionInfo.put("writeOnTransitionTimeAttribute", writeLevelControlOnTransitionTimeAttributeInteractionInfo); - Map writeLevelControlOffTransitionTimeCommandParams = new LinkedHashMap(); + "value", levelControlonTransitionTimeCommandParameterInfo); + InteractionInfo writeLevelControlOnTransitionTimeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .writeOnTransitionTimeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeLevelControlOnTransitionTimeCommandParams); + writeLevelControlInteractionInfo.put( + "writeOnTransitionTimeAttribute", + writeLevelControlOnTransitionTimeAttributeInteractionInfo); + Map writeLevelControlOffTransitionTimeCommandParams = + new LinkedHashMap(); CommandParameterInfo levelControloffTransitionTimeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeLevelControlOffTransitionTimeCommandParams.put( - "value", - levelControloffTransitionTimeCommandParameterInfo - ); - InteractionInfo writeLevelControlOffTransitionTimeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster).writeOffTransitionTimeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeLevelControlOffTransitionTimeCommandParams - ); - writeLevelControlInteractionInfo.put("writeOffTransitionTimeAttribute", writeLevelControlOffTransitionTimeAttributeInteractionInfo); - Map writeLevelControlDefaultMoveRateCommandParams = new LinkedHashMap(); + "value", levelControloffTransitionTimeCommandParameterInfo); + InteractionInfo writeLevelControlOffTransitionTimeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .writeOffTransitionTimeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeLevelControlOffTransitionTimeCommandParams); + writeLevelControlInteractionInfo.put( + "writeOffTransitionTimeAttribute", + writeLevelControlOffTransitionTimeAttributeInteractionInfo); + Map writeLevelControlDefaultMoveRateCommandParams = + new LinkedHashMap(); CommandParameterInfo levelControldefaultMoveRateCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeLevelControlDefaultMoveRateCommandParams.put( - "value", - levelControldefaultMoveRateCommandParameterInfo - ); - InteractionInfo writeLevelControlDefaultMoveRateAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster).writeDefaultMoveRateAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeLevelControlDefaultMoveRateCommandParams - ); - writeLevelControlInteractionInfo.put("writeDefaultMoveRateAttribute", writeLevelControlDefaultMoveRateAttributeInteractionInfo); - Map writeLevelControlStartUpCurrentLevelCommandParams = new LinkedHashMap(); + "value", levelControldefaultMoveRateCommandParameterInfo); + InteractionInfo writeLevelControlDefaultMoveRateAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .writeDefaultMoveRateAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeLevelControlDefaultMoveRateCommandParams); + writeLevelControlInteractionInfo.put( + "writeDefaultMoveRateAttribute", writeLevelControlDefaultMoveRateAttributeInteractionInfo); + Map writeLevelControlStartUpCurrentLevelCommandParams = + new LinkedHashMap(); CommandParameterInfo levelControlstartUpCurrentLevelCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeLevelControlStartUpCurrentLevelCommandParams.put( - "value", - levelControlstartUpCurrentLevelCommandParameterInfo - ); - InteractionInfo writeLevelControlStartUpCurrentLevelAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster).writeStartUpCurrentLevelAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeLevelControlStartUpCurrentLevelCommandParams - ); - writeLevelControlInteractionInfo.put("writeStartUpCurrentLevelAttribute", writeLevelControlStartUpCurrentLevelAttributeInteractionInfo); + "value", levelControlstartUpCurrentLevelCommandParameterInfo); + InteractionInfo writeLevelControlStartUpCurrentLevelAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .writeStartUpCurrentLevelAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeLevelControlStartUpCurrentLevelCommandParams); + writeLevelControlInteractionInfo.put( + "writeStartUpCurrentLevelAttribute", + writeLevelControlStartUpCurrentLevelAttributeInteractionInfo); writeAttributeMap.put("levelControl", writeLevelControlInteractionInfo); Map writeBinaryInputBasicInteractionInfo = new LinkedHashMap<>(); - Map writeBinaryInputBasicOutOfServiceCommandParams = new LinkedHashMap(); + Map writeBinaryInputBasicOutOfServiceCommandParams = + new LinkedHashMap(); CommandParameterInfo binaryInputBasicoutOfServiceCommandParameterInfo = - new CommandParameterInfo( - "value", - Boolean.class, - Boolean.class - ); + new CommandParameterInfo("value", Boolean.class, Boolean.class); writeBinaryInputBasicOutOfServiceCommandParams.put( - "value", - binaryInputBasicoutOfServiceCommandParameterInfo - ); - InteractionInfo writeBinaryInputBasicOutOfServiceAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BinaryInputBasicCluster) cluster).writeOutOfServiceAttribute( - (DefaultClusterCallback) callback, - (Boolean) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBinaryInputBasicOutOfServiceCommandParams - ); - writeBinaryInputBasicInteractionInfo.put("writeOutOfServiceAttribute", writeBinaryInputBasicOutOfServiceAttributeInteractionInfo); - Map writeBinaryInputBasicPresentValueCommandParams = new LinkedHashMap(); + "value", binaryInputBasicoutOfServiceCommandParameterInfo); + InteractionInfo writeBinaryInputBasicOutOfServiceAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BinaryInputBasicCluster) cluster) + .writeOutOfServiceAttribute( + (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBinaryInputBasicOutOfServiceCommandParams); + writeBinaryInputBasicInteractionInfo.put( + "writeOutOfServiceAttribute", writeBinaryInputBasicOutOfServiceAttributeInteractionInfo); + Map writeBinaryInputBasicPresentValueCommandParams = + new LinkedHashMap(); CommandParameterInfo binaryInputBasicpresentValueCommandParameterInfo = - new CommandParameterInfo( - "value", - Boolean.class, - Boolean.class - ); + new CommandParameterInfo("value", Boolean.class, Boolean.class); writeBinaryInputBasicPresentValueCommandParams.put( - "value", - binaryInputBasicpresentValueCommandParameterInfo - ); - InteractionInfo writeBinaryInputBasicPresentValueAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BinaryInputBasicCluster) cluster).writePresentValueAttribute( - (DefaultClusterCallback) callback, - (Boolean) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBinaryInputBasicPresentValueCommandParams - ); - writeBinaryInputBasicInteractionInfo.put("writePresentValueAttribute", writeBinaryInputBasicPresentValueAttributeInteractionInfo); + "value", binaryInputBasicpresentValueCommandParameterInfo); + InteractionInfo writeBinaryInputBasicPresentValueAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BinaryInputBasicCluster) cluster) + .writePresentValueAttribute( + (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBinaryInputBasicPresentValueCommandParams); + writeBinaryInputBasicInteractionInfo.put( + "writePresentValueAttribute", writeBinaryInputBasicPresentValueAttributeInteractionInfo); writeAttributeMap.put("binaryInputBasic", writeBinaryInputBasicInteractionInfo); Map writeDescriptorInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("descriptor", writeDescriptorInteractionInfo); @@ -341,222 +270,189 @@ public Map> getWriteAttributeMap() { Map writeActionsInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("actions", writeActionsInteractionInfo); Map writeBasicInformationInteractionInfo = new LinkedHashMap<>(); - Map writeBasicInformationNodeLabelCommandParams = new LinkedHashMap(); + Map writeBasicInformationNodeLabelCommandParams = + new LinkedHashMap(); CommandParameterInfo basicInformationnodeLabelCommandParameterInfo = - new CommandParameterInfo( - "value", - String.class, - String.class - ); + new CommandParameterInfo("value", String.class, String.class); writeBasicInformationNodeLabelCommandParams.put( - "value", - basicInformationnodeLabelCommandParameterInfo - ); - InteractionInfo writeBasicInformationNodeLabelAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BasicInformationCluster) cluster).writeNodeLabelAttribute( - (DefaultClusterCallback) callback, - (String) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBasicInformationNodeLabelCommandParams - ); - writeBasicInformationInteractionInfo.put("writeNodeLabelAttribute", writeBasicInformationNodeLabelAttributeInteractionInfo); - Map writeBasicInformationLocationCommandParams = new LinkedHashMap(); + "value", basicInformationnodeLabelCommandParameterInfo); + InteractionInfo writeBasicInformationNodeLabelAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicInformationCluster) cluster) + .writeNodeLabelAttribute( + (DefaultClusterCallback) callback, (String) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBasicInformationNodeLabelCommandParams); + writeBasicInformationInteractionInfo.put( + "writeNodeLabelAttribute", writeBasicInformationNodeLabelAttributeInteractionInfo); + Map writeBasicInformationLocationCommandParams = + new LinkedHashMap(); CommandParameterInfo basicInformationlocationCommandParameterInfo = - new CommandParameterInfo( - "value", - String.class, - String.class - ); + new CommandParameterInfo("value", String.class, String.class); writeBasicInformationLocationCommandParams.put( - "value", - basicInformationlocationCommandParameterInfo - ); - InteractionInfo writeBasicInformationLocationAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BasicInformationCluster) cluster).writeLocationAttribute( - (DefaultClusterCallback) callback, - (String) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBasicInformationLocationCommandParams - ); - writeBasicInformationInteractionInfo.put("writeLocationAttribute", writeBasicInformationLocationAttributeInteractionInfo); - Map writeBasicInformationLocalConfigDisabledCommandParams = new LinkedHashMap(); + "value", basicInformationlocationCommandParameterInfo); + InteractionInfo writeBasicInformationLocationAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicInformationCluster) cluster) + .writeLocationAttribute( + (DefaultClusterCallback) callback, (String) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBasicInformationLocationCommandParams); + writeBasicInformationInteractionInfo.put( + "writeLocationAttribute", writeBasicInformationLocationAttributeInteractionInfo); + Map writeBasicInformationLocalConfigDisabledCommandParams = + new LinkedHashMap(); CommandParameterInfo basicInformationlocalConfigDisabledCommandParameterInfo = - new CommandParameterInfo( - "value", - Boolean.class, - Boolean.class - ); + new CommandParameterInfo("value", Boolean.class, Boolean.class); writeBasicInformationLocalConfigDisabledCommandParams.put( - "value", - basicInformationlocalConfigDisabledCommandParameterInfo - ); - InteractionInfo writeBasicInformationLocalConfigDisabledAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BasicInformationCluster) cluster).writeLocalConfigDisabledAttribute( - (DefaultClusterCallback) callback, - (Boolean) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBasicInformationLocalConfigDisabledCommandParams - ); - writeBasicInformationInteractionInfo.put("writeLocalConfigDisabledAttribute", writeBasicInformationLocalConfigDisabledAttributeInteractionInfo); + "value", basicInformationlocalConfigDisabledCommandParameterInfo); + InteractionInfo writeBasicInformationLocalConfigDisabledAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicInformationCluster) cluster) + .writeLocalConfigDisabledAttribute( + (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBasicInformationLocalConfigDisabledCommandParams); + writeBasicInformationInteractionInfo.put( + "writeLocalConfigDisabledAttribute", + writeBasicInformationLocalConfigDisabledAttributeInteractionInfo); writeAttributeMap.put("basicInformation", writeBasicInformationInteractionInfo); - Map writeOtaSoftwareUpdateProviderInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("otaSoftwareUpdateProvider", writeOtaSoftwareUpdateProviderInteractionInfo); - Map writeOtaSoftwareUpdateRequestorInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("otaSoftwareUpdateRequestor", writeOtaSoftwareUpdateRequestorInteractionInfo); - Map writeLocalizationConfigurationInteractionInfo = new LinkedHashMap<>(); - Map writeLocalizationConfigurationActiveLocaleCommandParams = new LinkedHashMap(); + Map writeOtaSoftwareUpdateProviderInteractionInfo = + new LinkedHashMap<>(); + writeAttributeMap.put( + "otaSoftwareUpdateProvider", writeOtaSoftwareUpdateProviderInteractionInfo); + Map writeOtaSoftwareUpdateRequestorInteractionInfo = + new LinkedHashMap<>(); + writeAttributeMap.put( + "otaSoftwareUpdateRequestor", writeOtaSoftwareUpdateRequestorInteractionInfo); + Map writeLocalizationConfigurationInteractionInfo = + new LinkedHashMap<>(); + Map writeLocalizationConfigurationActiveLocaleCommandParams = + new LinkedHashMap(); CommandParameterInfo localizationConfigurationactiveLocaleCommandParameterInfo = - new CommandParameterInfo( - "value", - String.class, - String.class - ); + new CommandParameterInfo("value", String.class, String.class); writeLocalizationConfigurationActiveLocaleCommandParams.put( - "value", - localizationConfigurationactiveLocaleCommandParameterInfo - ); - InteractionInfo writeLocalizationConfigurationActiveLocaleAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.LocalizationConfigurationCluster) cluster).writeActiveLocaleAttribute( - (DefaultClusterCallback) callback, - (String) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeLocalizationConfigurationActiveLocaleCommandParams - ); - writeLocalizationConfigurationInteractionInfo.put("writeActiveLocaleAttribute", writeLocalizationConfigurationActiveLocaleAttributeInteractionInfo); - writeAttributeMap.put("localizationConfiguration", writeLocalizationConfigurationInteractionInfo); + "value", localizationConfigurationactiveLocaleCommandParameterInfo); + InteractionInfo writeLocalizationConfigurationActiveLocaleAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LocalizationConfigurationCluster) cluster) + .writeActiveLocaleAttribute( + (DefaultClusterCallback) callback, (String) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeLocalizationConfigurationActiveLocaleCommandParams); + writeLocalizationConfigurationInteractionInfo.put( + "writeActiveLocaleAttribute", + writeLocalizationConfigurationActiveLocaleAttributeInteractionInfo); + writeAttributeMap.put( + "localizationConfiguration", writeLocalizationConfigurationInteractionInfo); Map writeTimeFormatLocalizationInteractionInfo = new LinkedHashMap<>(); - Map writeTimeFormatLocalizationHourFormatCommandParams = new LinkedHashMap(); + Map writeTimeFormatLocalizationHourFormatCommandParams = + new LinkedHashMap(); CommandParameterInfo timeFormatLocalizationhourFormatCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeTimeFormatLocalizationHourFormatCommandParams.put( - "value", - timeFormatLocalizationhourFormatCommandParameterInfo - ); - InteractionInfo writeTimeFormatLocalizationHourFormatAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.TimeFormatLocalizationCluster) cluster).writeHourFormatAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeTimeFormatLocalizationHourFormatCommandParams - ); - writeTimeFormatLocalizationInteractionInfo.put("writeHourFormatAttribute", writeTimeFormatLocalizationHourFormatAttributeInteractionInfo); - Map writeTimeFormatLocalizationActiveCalendarTypeCommandParams = new LinkedHashMap(); + "value", timeFormatLocalizationhourFormatCommandParameterInfo); + InteractionInfo writeTimeFormatLocalizationHourFormatAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TimeFormatLocalizationCluster) cluster) + .writeHourFormatAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeTimeFormatLocalizationHourFormatCommandParams); + writeTimeFormatLocalizationInteractionInfo.put( + "writeHourFormatAttribute", writeTimeFormatLocalizationHourFormatAttributeInteractionInfo); + Map writeTimeFormatLocalizationActiveCalendarTypeCommandParams = + new LinkedHashMap(); CommandParameterInfo timeFormatLocalizationactiveCalendarTypeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeTimeFormatLocalizationActiveCalendarTypeCommandParams.put( - "value", - timeFormatLocalizationactiveCalendarTypeCommandParameterInfo - ); - InteractionInfo writeTimeFormatLocalizationActiveCalendarTypeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.TimeFormatLocalizationCluster) cluster).writeActiveCalendarTypeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeTimeFormatLocalizationActiveCalendarTypeCommandParams - ); - writeTimeFormatLocalizationInteractionInfo.put("writeActiveCalendarTypeAttribute", writeTimeFormatLocalizationActiveCalendarTypeAttributeInteractionInfo); + "value", timeFormatLocalizationactiveCalendarTypeCommandParameterInfo); + InteractionInfo writeTimeFormatLocalizationActiveCalendarTypeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TimeFormatLocalizationCluster) cluster) + .writeActiveCalendarTypeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeTimeFormatLocalizationActiveCalendarTypeCommandParams); + writeTimeFormatLocalizationInteractionInfo.put( + "writeActiveCalendarTypeAttribute", + writeTimeFormatLocalizationActiveCalendarTypeAttributeInteractionInfo); writeAttributeMap.put("timeFormatLocalization", writeTimeFormatLocalizationInteractionInfo); Map writeUnitLocalizationInteractionInfo = new LinkedHashMap<>(); - Map writeUnitLocalizationTemperatureUnitCommandParams = new LinkedHashMap(); + Map writeUnitLocalizationTemperatureUnitCommandParams = + new LinkedHashMap(); CommandParameterInfo unitLocalizationtemperatureUnitCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitLocalizationTemperatureUnitCommandParams.put( - "value", - unitLocalizationtemperatureUnitCommandParameterInfo - ); - InteractionInfo writeUnitLocalizationTemperatureUnitAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitLocalizationCluster) cluster).writeTemperatureUnitAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitLocalizationTemperatureUnitCommandParams - ); - writeUnitLocalizationInteractionInfo.put("writeTemperatureUnitAttribute", writeUnitLocalizationTemperatureUnitAttributeInteractionInfo); + "value", unitLocalizationtemperatureUnitCommandParameterInfo); + InteractionInfo writeUnitLocalizationTemperatureUnitAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitLocalizationCluster) cluster) + .writeTemperatureUnitAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitLocalizationTemperatureUnitCommandParams); + writeUnitLocalizationInteractionInfo.put( + "writeTemperatureUnitAttribute", + writeUnitLocalizationTemperatureUnitAttributeInteractionInfo); writeAttributeMap.put("unitLocalization", writeUnitLocalizationInteractionInfo); - Map writePowerSourceConfigurationInteractionInfo = new LinkedHashMap<>(); + Map writePowerSourceConfigurationInteractionInfo = + new LinkedHashMap<>(); writeAttributeMap.put("powerSourceConfiguration", writePowerSourceConfigurationInteractionInfo); Map writePowerSourceInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("powerSource", writePowerSourceInteractionInfo); Map writeGeneralCommissioningInteractionInfo = new LinkedHashMap<>(); - Map writeGeneralCommissioningBreadcrumbCommandParams = new LinkedHashMap(); + Map writeGeneralCommissioningBreadcrumbCommandParams = + new LinkedHashMap(); CommandParameterInfo generalCommissioningbreadcrumbCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeGeneralCommissioningBreadcrumbCommandParams.put( - "value", - generalCommissioningbreadcrumbCommandParameterInfo - ); - InteractionInfo writeGeneralCommissioningBreadcrumbAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.GeneralCommissioningCluster) cluster).writeBreadcrumbAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeGeneralCommissioningBreadcrumbCommandParams - ); - writeGeneralCommissioningInteractionInfo.put("writeBreadcrumbAttribute", writeGeneralCommissioningBreadcrumbAttributeInteractionInfo); + "value", generalCommissioningbreadcrumbCommandParameterInfo); + InteractionInfo writeGeneralCommissioningBreadcrumbAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GeneralCommissioningCluster) cluster) + .writeBreadcrumbAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeGeneralCommissioningBreadcrumbCommandParams); + writeGeneralCommissioningInteractionInfo.put( + "writeBreadcrumbAttribute", writeGeneralCommissioningBreadcrumbAttributeInteractionInfo); writeAttributeMap.put("generalCommissioning", writeGeneralCommissioningInteractionInfo); Map writeNetworkCommissioningInteractionInfo = new LinkedHashMap<>(); - Map writeNetworkCommissioningInterfaceEnabledCommandParams = new LinkedHashMap(); + Map writeNetworkCommissioningInterfaceEnabledCommandParams = + new LinkedHashMap(); CommandParameterInfo networkCommissioninginterfaceEnabledCommandParameterInfo = - new CommandParameterInfo( - "value", - Boolean.class, - Boolean.class - ); + new CommandParameterInfo("value", Boolean.class, Boolean.class); writeNetworkCommissioningInterfaceEnabledCommandParams.put( - "value", - networkCommissioninginterfaceEnabledCommandParameterInfo - ); - InteractionInfo writeNetworkCommissioningInterfaceEnabledAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.NetworkCommissioningCluster) cluster).writeInterfaceEnabledAttribute( - (DefaultClusterCallback) callback, - (Boolean) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeNetworkCommissioningInterfaceEnabledCommandParams - ); - writeNetworkCommissioningInteractionInfo.put("writeInterfaceEnabledAttribute", writeNetworkCommissioningInterfaceEnabledAttributeInteractionInfo); + "value", networkCommissioninginterfaceEnabledCommandParameterInfo); + InteractionInfo writeNetworkCommissioningInterfaceEnabledAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.NetworkCommissioningCluster) cluster) + .writeInterfaceEnabledAttribute( + (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeNetworkCommissioningInterfaceEnabledCommandParams); + writeNetworkCommissioningInteractionInfo.put( + "writeInterfaceEnabledAttribute", + writeNetworkCommissioningInterfaceEnabledAttributeInteractionInfo); writeAttributeMap.put("networkCommissioning", writeNetworkCommissioningInteractionInfo); Map writeDiagnosticLogsInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("diagnosticLogs", writeDiagnosticLogsInteractionInfo); @@ -564,40 +460,43 @@ public Map> getWriteAttributeMap() { writeAttributeMap.put("generalDiagnostics", writeGeneralDiagnosticsInteractionInfo); Map writeSoftwareDiagnosticsInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("softwareDiagnostics", writeSoftwareDiagnosticsInteractionInfo); - Map writeThreadNetworkDiagnosticsInteractionInfo = new LinkedHashMap<>(); + Map writeThreadNetworkDiagnosticsInteractionInfo = + new LinkedHashMap<>(); writeAttributeMap.put("threadNetworkDiagnostics", writeThreadNetworkDiagnosticsInteractionInfo); Map writeWiFiNetworkDiagnosticsInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("wiFiNetworkDiagnostics", writeWiFiNetworkDiagnosticsInteractionInfo); - Map writeEthernetNetworkDiagnosticsInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("ethernetNetworkDiagnostics", writeEthernetNetworkDiagnosticsInteractionInfo); - Map writeBridgedDeviceBasicInformationInteractionInfo = new LinkedHashMap<>(); - Map writeBridgedDeviceBasicInformationNodeLabelCommandParams = new LinkedHashMap(); + Map writeEthernetNetworkDiagnosticsInteractionInfo = + new LinkedHashMap<>(); + writeAttributeMap.put( + "ethernetNetworkDiagnostics", writeEthernetNetworkDiagnosticsInteractionInfo); + Map writeBridgedDeviceBasicInformationInteractionInfo = + new LinkedHashMap<>(); + Map writeBridgedDeviceBasicInformationNodeLabelCommandParams = + new LinkedHashMap(); CommandParameterInfo bridgedDeviceBasicInformationnodeLabelCommandParameterInfo = - new CommandParameterInfo( - "value", - String.class, - String.class - ); + new CommandParameterInfo("value", String.class, String.class); writeBridgedDeviceBasicInformationNodeLabelCommandParams.put( - "value", - bridgedDeviceBasicInformationnodeLabelCommandParameterInfo - ); - InteractionInfo writeBridgedDeviceBasicInformationNodeLabelAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BridgedDeviceBasicInformationCluster) cluster).writeNodeLabelAttribute( - (DefaultClusterCallback) callback, - (String) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBridgedDeviceBasicInformationNodeLabelCommandParams - ); - writeBridgedDeviceBasicInformationInteractionInfo.put("writeNodeLabelAttribute", writeBridgedDeviceBasicInformationNodeLabelAttributeInteractionInfo); - writeAttributeMap.put("bridgedDeviceBasicInformation", writeBridgedDeviceBasicInformationInteractionInfo); + "value", bridgedDeviceBasicInformationnodeLabelCommandParameterInfo); + InteractionInfo writeBridgedDeviceBasicInformationNodeLabelAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedDeviceBasicInformationCluster) cluster) + .writeNodeLabelAttribute( + (DefaultClusterCallback) callback, (String) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBridgedDeviceBasicInformationNodeLabelCommandParams); + writeBridgedDeviceBasicInformationInteractionInfo.put( + "writeNodeLabelAttribute", + writeBridgedDeviceBasicInformationNodeLabelAttributeInteractionInfo); + writeAttributeMap.put( + "bridgedDeviceBasicInformation", writeBridgedDeviceBasicInformationInteractionInfo); Map writeSwitchInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("switch", writeSwitchInteractionInfo); - Map writeAdministratorCommissioningInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("administratorCommissioning", writeAdministratorCommissioningInteractionInfo); + Map writeAdministratorCommissioningInteractionInfo = + new LinkedHashMap<>(); + writeAttributeMap.put( + "administratorCommissioning", writeAdministratorCommissioningInteractionInfo); Map writeOperationalCredentialsInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("operationalCredentials", writeOperationalCredentialsInteractionInfo); Map writeGroupKeyManagementInteractionInfo = new LinkedHashMap<>(); @@ -609,1674 +508,1345 @@ public Map> getWriteAttributeMap() { Map writeBooleanStateInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("booleanState", writeBooleanStateInteractionInfo); Map writeModeSelectInteractionInfo = new LinkedHashMap<>(); - Map writeModeSelectStartUpModeCommandParams = new LinkedHashMap(); + Map writeModeSelectStartUpModeCommandParams = + new LinkedHashMap(); CommandParameterInfo modeSelectstartUpModeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeModeSelectStartUpModeCommandParams.put( - "value", - modeSelectstartUpModeCommandParameterInfo - ); - InteractionInfo writeModeSelectStartUpModeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ModeSelectCluster) cluster).writeStartUpModeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeModeSelectStartUpModeCommandParams - ); - writeModeSelectInteractionInfo.put("writeStartUpModeAttribute", writeModeSelectStartUpModeAttributeInteractionInfo); - Map writeModeSelectOnModeCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeModeSelectStartUpModeCommandParams.put("value", modeSelectstartUpModeCommandParameterInfo); + InteractionInfo writeModeSelectStartUpModeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ModeSelectCluster) cluster) + .writeStartUpModeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeModeSelectStartUpModeCommandParams); + writeModeSelectInteractionInfo.put( + "writeStartUpModeAttribute", writeModeSelectStartUpModeAttributeInteractionInfo); + Map writeModeSelectOnModeCommandParams = + new LinkedHashMap(); CommandParameterInfo modeSelectonModeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeModeSelectOnModeCommandParams.put( - "value", - modeSelectonModeCommandParameterInfo - ); - InteractionInfo writeModeSelectOnModeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ModeSelectCluster) cluster).writeOnModeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeModeSelectOnModeCommandParams - ); - writeModeSelectInteractionInfo.put("writeOnModeAttribute", writeModeSelectOnModeAttributeInteractionInfo); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeModeSelectOnModeCommandParams.put("value", modeSelectonModeCommandParameterInfo); + InteractionInfo writeModeSelectOnModeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ModeSelectCluster) cluster) + .writeOnModeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeModeSelectOnModeCommandParams); + writeModeSelectInteractionInfo.put( + "writeOnModeAttribute", writeModeSelectOnModeAttributeInteractionInfo); writeAttributeMap.put("modeSelect", writeModeSelectInteractionInfo); Map writeDoorLockInteractionInfo = new LinkedHashMap<>(); - Map writeDoorLockLanguageCommandParams = new LinkedHashMap(); + Map writeDoorLockLanguageCommandParams = + new LinkedHashMap(); CommandParameterInfo doorLocklanguageCommandParameterInfo = - new CommandParameterInfo( - "value", - String.class, - String.class - ); - writeDoorLockLanguageCommandParams.put( - "value", - doorLocklanguageCommandParameterInfo - ); - InteractionInfo writeDoorLockLanguageAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster).writeLanguageAttribute( - (DefaultClusterCallback) callback, - (String) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockLanguageCommandParams - ); - writeDoorLockInteractionInfo.put("writeLanguageAttribute", writeDoorLockLanguageAttributeInteractionInfo); - Map writeDoorLockAutoRelockTimeCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", String.class, String.class); + writeDoorLockLanguageCommandParams.put("value", doorLocklanguageCommandParameterInfo); + InteractionInfo writeDoorLockLanguageAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .writeLanguageAttribute( + (DefaultClusterCallback) callback, (String) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockLanguageCommandParams); + writeDoorLockInteractionInfo.put( + "writeLanguageAttribute", writeDoorLockLanguageAttributeInteractionInfo); + Map writeDoorLockAutoRelockTimeCommandParams = + new LinkedHashMap(); CommandParameterInfo doorLockautoRelockTimeCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeDoorLockAutoRelockTimeCommandParams.put( - "value", - doorLockautoRelockTimeCommandParameterInfo - ); - InteractionInfo writeDoorLockAutoRelockTimeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster).writeAutoRelockTimeAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockAutoRelockTimeCommandParams - ); - writeDoorLockInteractionInfo.put("writeAutoRelockTimeAttribute", writeDoorLockAutoRelockTimeAttributeInteractionInfo); - Map writeDoorLockSoundVolumeCommandParams = new LinkedHashMap(); + "value", doorLockautoRelockTimeCommandParameterInfo); + InteractionInfo writeDoorLockAutoRelockTimeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .writeAutoRelockTimeAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockAutoRelockTimeCommandParams); + writeDoorLockInteractionInfo.put( + "writeAutoRelockTimeAttribute", writeDoorLockAutoRelockTimeAttributeInteractionInfo); + Map writeDoorLockSoundVolumeCommandParams = + new LinkedHashMap(); CommandParameterInfo doorLocksoundVolumeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeDoorLockSoundVolumeCommandParams.put( - "value", - doorLocksoundVolumeCommandParameterInfo - ); - InteractionInfo writeDoorLockSoundVolumeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster).writeSoundVolumeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockSoundVolumeCommandParams - ); - writeDoorLockInteractionInfo.put("writeSoundVolumeAttribute", writeDoorLockSoundVolumeAttributeInteractionInfo); - Map writeDoorLockOperatingModeCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeDoorLockSoundVolumeCommandParams.put("value", doorLocksoundVolumeCommandParameterInfo); + InteractionInfo writeDoorLockSoundVolumeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .writeSoundVolumeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockSoundVolumeCommandParams); + writeDoorLockInteractionInfo.put( + "writeSoundVolumeAttribute", writeDoorLockSoundVolumeAttributeInteractionInfo); + Map writeDoorLockOperatingModeCommandParams = + new LinkedHashMap(); CommandParameterInfo doorLockoperatingModeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeDoorLockOperatingModeCommandParams.put( - "value", - doorLockoperatingModeCommandParameterInfo - ); - InteractionInfo writeDoorLockOperatingModeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster).writeOperatingModeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockOperatingModeCommandParams - ); - writeDoorLockInteractionInfo.put("writeOperatingModeAttribute", writeDoorLockOperatingModeAttributeInteractionInfo); - Map writeDoorLockEnableOneTouchLockingCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeDoorLockOperatingModeCommandParams.put("value", doorLockoperatingModeCommandParameterInfo); + InteractionInfo writeDoorLockOperatingModeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .writeOperatingModeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockOperatingModeCommandParams); + writeDoorLockInteractionInfo.put( + "writeOperatingModeAttribute", writeDoorLockOperatingModeAttributeInteractionInfo); + Map writeDoorLockEnableOneTouchLockingCommandParams = + new LinkedHashMap(); CommandParameterInfo doorLockenableOneTouchLockingCommandParameterInfo = - new CommandParameterInfo( - "value", - Boolean.class, - Boolean.class - ); + new CommandParameterInfo("value", Boolean.class, Boolean.class); writeDoorLockEnableOneTouchLockingCommandParams.put( - "value", - doorLockenableOneTouchLockingCommandParameterInfo - ); - InteractionInfo writeDoorLockEnableOneTouchLockingAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster).writeEnableOneTouchLockingAttribute( - (DefaultClusterCallback) callback, - (Boolean) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockEnableOneTouchLockingCommandParams - ); - writeDoorLockInteractionInfo.put("writeEnableOneTouchLockingAttribute", writeDoorLockEnableOneTouchLockingAttributeInteractionInfo); - Map writeDoorLockEnablePrivacyModeButtonCommandParams = new LinkedHashMap(); + "value", doorLockenableOneTouchLockingCommandParameterInfo); + InteractionInfo writeDoorLockEnableOneTouchLockingAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .writeEnableOneTouchLockingAttribute( + (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockEnableOneTouchLockingCommandParams); + writeDoorLockInteractionInfo.put( + "writeEnableOneTouchLockingAttribute", + writeDoorLockEnableOneTouchLockingAttributeInteractionInfo); + Map writeDoorLockEnablePrivacyModeButtonCommandParams = + new LinkedHashMap(); CommandParameterInfo doorLockenablePrivacyModeButtonCommandParameterInfo = - new CommandParameterInfo( - "value", - Boolean.class, - Boolean.class - ); + new CommandParameterInfo("value", Boolean.class, Boolean.class); writeDoorLockEnablePrivacyModeButtonCommandParams.put( - "value", - doorLockenablePrivacyModeButtonCommandParameterInfo - ); - InteractionInfo writeDoorLockEnablePrivacyModeButtonAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster).writeEnablePrivacyModeButtonAttribute( - (DefaultClusterCallback) callback, - (Boolean) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockEnablePrivacyModeButtonCommandParams - ); - writeDoorLockInteractionInfo.put("writeEnablePrivacyModeButtonAttribute", writeDoorLockEnablePrivacyModeButtonAttributeInteractionInfo); - Map writeDoorLockWrongCodeEntryLimitCommandParams = new LinkedHashMap(); + "value", doorLockenablePrivacyModeButtonCommandParameterInfo); + InteractionInfo writeDoorLockEnablePrivacyModeButtonAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .writeEnablePrivacyModeButtonAttribute( + (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockEnablePrivacyModeButtonCommandParams); + writeDoorLockInteractionInfo.put( + "writeEnablePrivacyModeButtonAttribute", + writeDoorLockEnablePrivacyModeButtonAttributeInteractionInfo); + Map writeDoorLockWrongCodeEntryLimitCommandParams = + new LinkedHashMap(); CommandParameterInfo doorLockwrongCodeEntryLimitCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeDoorLockWrongCodeEntryLimitCommandParams.put( - "value", - doorLockwrongCodeEntryLimitCommandParameterInfo - ); - InteractionInfo writeDoorLockWrongCodeEntryLimitAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster).writeWrongCodeEntryLimitAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockWrongCodeEntryLimitCommandParams - ); - writeDoorLockInteractionInfo.put("writeWrongCodeEntryLimitAttribute", writeDoorLockWrongCodeEntryLimitAttributeInteractionInfo); - Map writeDoorLockUserCodeTemporaryDisableTimeCommandParams = new LinkedHashMap(); + "value", doorLockwrongCodeEntryLimitCommandParameterInfo); + InteractionInfo writeDoorLockWrongCodeEntryLimitAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .writeWrongCodeEntryLimitAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockWrongCodeEntryLimitCommandParams); + writeDoorLockInteractionInfo.put( + "writeWrongCodeEntryLimitAttribute", + writeDoorLockWrongCodeEntryLimitAttributeInteractionInfo); + Map writeDoorLockUserCodeTemporaryDisableTimeCommandParams = + new LinkedHashMap(); CommandParameterInfo doorLockuserCodeTemporaryDisableTimeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeDoorLockUserCodeTemporaryDisableTimeCommandParams.put( - "value", - doorLockuserCodeTemporaryDisableTimeCommandParameterInfo - ); - InteractionInfo writeDoorLockUserCodeTemporaryDisableTimeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster).writeUserCodeTemporaryDisableTimeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockUserCodeTemporaryDisableTimeCommandParams - ); - writeDoorLockInteractionInfo.put("writeUserCodeTemporaryDisableTimeAttribute", writeDoorLockUserCodeTemporaryDisableTimeAttributeInteractionInfo); - Map writeDoorLockRequirePINforRemoteOperationCommandParams = new LinkedHashMap(); + "value", doorLockuserCodeTemporaryDisableTimeCommandParameterInfo); + InteractionInfo writeDoorLockUserCodeTemporaryDisableTimeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .writeUserCodeTemporaryDisableTimeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockUserCodeTemporaryDisableTimeCommandParams); + writeDoorLockInteractionInfo.put( + "writeUserCodeTemporaryDisableTimeAttribute", + writeDoorLockUserCodeTemporaryDisableTimeAttributeInteractionInfo); + Map writeDoorLockRequirePINforRemoteOperationCommandParams = + new LinkedHashMap(); CommandParameterInfo doorLockrequirePINforRemoteOperationCommandParameterInfo = - new CommandParameterInfo( - "value", - Boolean.class, - Boolean.class - ); + new CommandParameterInfo("value", Boolean.class, Boolean.class); writeDoorLockRequirePINforRemoteOperationCommandParams.put( - "value", - doorLockrequirePINforRemoteOperationCommandParameterInfo - ); - InteractionInfo writeDoorLockRequirePINforRemoteOperationAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster).writeRequirePINforRemoteOperationAttribute( - (DefaultClusterCallback) callback, - (Boolean) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeDoorLockRequirePINforRemoteOperationCommandParams - ); - writeDoorLockInteractionInfo.put("writeRequirePINforRemoteOperationAttribute", writeDoorLockRequirePINforRemoteOperationAttributeInteractionInfo); + "value", doorLockrequirePINforRemoteOperationCommandParameterInfo); + InteractionInfo writeDoorLockRequirePINforRemoteOperationAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .writeRequirePINforRemoteOperationAttribute( + (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeDoorLockRequirePINforRemoteOperationCommandParams); + writeDoorLockInteractionInfo.put( + "writeRequirePINforRemoteOperationAttribute", + writeDoorLockRequirePINforRemoteOperationAttributeInteractionInfo); writeAttributeMap.put("doorLock", writeDoorLockInteractionInfo); Map writeWindowCoveringInteractionInfo = new LinkedHashMap<>(); - Map writeWindowCoveringModeCommandParams = new LinkedHashMap(); + Map writeWindowCoveringModeCommandParams = + new LinkedHashMap(); CommandParameterInfo windowCoveringmodeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeWindowCoveringModeCommandParams.put( - "value", - windowCoveringmodeCommandParameterInfo - ); - InteractionInfo writeWindowCoveringModeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.WindowCoveringCluster) cluster).writeModeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeWindowCoveringModeCommandParams - ); - writeWindowCoveringInteractionInfo.put("writeModeAttribute", writeWindowCoveringModeAttributeInteractionInfo); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeWindowCoveringModeCommandParams.put("value", windowCoveringmodeCommandParameterInfo); + InteractionInfo writeWindowCoveringModeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WindowCoveringCluster) cluster) + .writeModeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeWindowCoveringModeCommandParams); + writeWindowCoveringInteractionInfo.put( + "writeModeAttribute", writeWindowCoveringModeAttributeInteractionInfo); writeAttributeMap.put("windowCovering", writeWindowCoveringInteractionInfo); Map writeBarrierControlInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("barrierControl", writeBarrierControlInteractionInfo); - Map writePumpConfigurationAndControlInteractionInfo = new LinkedHashMap<>(); - Map writePumpConfigurationAndControlLifetimeRunningHoursCommandParams = new LinkedHashMap(); + Map writePumpConfigurationAndControlInteractionInfo = + new LinkedHashMap<>(); + Map + writePumpConfigurationAndControlLifetimeRunningHoursCommandParams = + new LinkedHashMap(); CommandParameterInfo pumpConfigurationAndControllifetimeRunningHoursCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writePumpConfigurationAndControlLifetimeRunningHoursCommandParams.put( - "value", - pumpConfigurationAndControllifetimeRunningHoursCommandParameterInfo - ); - InteractionInfo writePumpConfigurationAndControlLifetimeRunningHoursAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.PumpConfigurationAndControlCluster) cluster).writeLifetimeRunningHoursAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writePumpConfigurationAndControlLifetimeRunningHoursCommandParams - ); - writePumpConfigurationAndControlInteractionInfo.put("writeLifetimeRunningHoursAttribute", writePumpConfigurationAndControlLifetimeRunningHoursAttributeInteractionInfo); - Map writePumpConfigurationAndControlLifetimeEnergyConsumedCommandParams = new LinkedHashMap(); + "value", pumpConfigurationAndControllifetimeRunningHoursCommandParameterInfo); + InteractionInfo writePumpConfigurationAndControlLifetimeRunningHoursAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .writeLifetimeRunningHoursAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writePumpConfigurationAndControlLifetimeRunningHoursCommandParams); + writePumpConfigurationAndControlInteractionInfo.put( + "writeLifetimeRunningHoursAttribute", + writePumpConfigurationAndControlLifetimeRunningHoursAttributeInteractionInfo); + Map + writePumpConfigurationAndControlLifetimeEnergyConsumedCommandParams = + new LinkedHashMap(); CommandParameterInfo pumpConfigurationAndControllifetimeEnergyConsumedCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writePumpConfigurationAndControlLifetimeEnergyConsumedCommandParams.put( - "value", - pumpConfigurationAndControllifetimeEnergyConsumedCommandParameterInfo - ); - InteractionInfo writePumpConfigurationAndControlLifetimeEnergyConsumedAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.PumpConfigurationAndControlCluster) cluster).writeLifetimeEnergyConsumedAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writePumpConfigurationAndControlLifetimeEnergyConsumedCommandParams - ); - writePumpConfigurationAndControlInteractionInfo.put("writeLifetimeEnergyConsumedAttribute", writePumpConfigurationAndControlLifetimeEnergyConsumedAttributeInteractionInfo); - Map writePumpConfigurationAndControlOperationModeCommandParams = new LinkedHashMap(); + "value", pumpConfigurationAndControllifetimeEnergyConsumedCommandParameterInfo); + InteractionInfo writePumpConfigurationAndControlLifetimeEnergyConsumedAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .writeLifetimeEnergyConsumedAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writePumpConfigurationAndControlLifetimeEnergyConsumedCommandParams); + writePumpConfigurationAndControlInteractionInfo.put( + "writeLifetimeEnergyConsumedAttribute", + writePumpConfigurationAndControlLifetimeEnergyConsumedAttributeInteractionInfo); + Map writePumpConfigurationAndControlOperationModeCommandParams = + new LinkedHashMap(); CommandParameterInfo pumpConfigurationAndControloperationModeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writePumpConfigurationAndControlOperationModeCommandParams.put( - "value", - pumpConfigurationAndControloperationModeCommandParameterInfo - ); - InteractionInfo writePumpConfigurationAndControlOperationModeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.PumpConfigurationAndControlCluster) cluster).writeOperationModeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writePumpConfigurationAndControlOperationModeCommandParams - ); - writePumpConfigurationAndControlInteractionInfo.put("writeOperationModeAttribute", writePumpConfigurationAndControlOperationModeAttributeInteractionInfo); - Map writePumpConfigurationAndControlControlModeCommandParams = new LinkedHashMap(); + "value", pumpConfigurationAndControloperationModeCommandParameterInfo); + InteractionInfo writePumpConfigurationAndControlOperationModeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .writeOperationModeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writePumpConfigurationAndControlOperationModeCommandParams); + writePumpConfigurationAndControlInteractionInfo.put( + "writeOperationModeAttribute", + writePumpConfigurationAndControlOperationModeAttributeInteractionInfo); + Map writePumpConfigurationAndControlControlModeCommandParams = + new LinkedHashMap(); CommandParameterInfo pumpConfigurationAndControlcontrolModeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writePumpConfigurationAndControlControlModeCommandParams.put( - "value", - pumpConfigurationAndControlcontrolModeCommandParameterInfo - ); - InteractionInfo writePumpConfigurationAndControlControlModeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.PumpConfigurationAndControlCluster) cluster).writeControlModeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writePumpConfigurationAndControlControlModeCommandParams - ); - writePumpConfigurationAndControlInteractionInfo.put("writeControlModeAttribute", writePumpConfigurationAndControlControlModeAttributeInteractionInfo); - writeAttributeMap.put("pumpConfigurationAndControl", writePumpConfigurationAndControlInteractionInfo); + "value", pumpConfigurationAndControlcontrolModeCommandParameterInfo); + InteractionInfo writePumpConfigurationAndControlControlModeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .writeControlModeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writePumpConfigurationAndControlControlModeCommandParams); + writePumpConfigurationAndControlInteractionInfo.put( + "writeControlModeAttribute", + writePumpConfigurationAndControlControlModeAttributeInteractionInfo); + writeAttributeMap.put( + "pumpConfigurationAndControl", writePumpConfigurationAndControlInteractionInfo); Map writeThermostatInteractionInfo = new LinkedHashMap<>(); - Map writeThermostatHVACSystemTypeConfigurationCommandParams = new LinkedHashMap(); + Map writeThermostatHVACSystemTypeConfigurationCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostathVACSystemTypeConfigurationCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatHVACSystemTypeConfigurationCommandParams.put( - "value", - thermostathVACSystemTypeConfigurationCommandParameterInfo - ); - InteractionInfo writeThermostatHVACSystemTypeConfigurationAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeHVACSystemTypeConfigurationAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatHVACSystemTypeConfigurationCommandParams - ); - writeThermostatInteractionInfo.put("writeHVACSystemTypeConfigurationAttribute", writeThermostatHVACSystemTypeConfigurationAttributeInteractionInfo); - Map writeThermostatLocalTemperatureCalibrationCommandParams = new LinkedHashMap(); + "value", thermostathVACSystemTypeConfigurationCommandParameterInfo); + InteractionInfo writeThermostatHVACSystemTypeConfigurationAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeHVACSystemTypeConfigurationAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatHVACSystemTypeConfigurationCommandParams); + writeThermostatInteractionInfo.put( + "writeHVACSystemTypeConfigurationAttribute", + writeThermostatHVACSystemTypeConfigurationAttributeInteractionInfo); + Map writeThermostatLocalTemperatureCalibrationCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatlocalTemperatureCalibrationCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatLocalTemperatureCalibrationCommandParams.put( - "value", - thermostatlocalTemperatureCalibrationCommandParameterInfo - ); - InteractionInfo writeThermostatLocalTemperatureCalibrationAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeLocalTemperatureCalibrationAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatLocalTemperatureCalibrationCommandParams - ); - writeThermostatInteractionInfo.put("writeLocalTemperatureCalibrationAttribute", writeThermostatLocalTemperatureCalibrationAttributeInteractionInfo); - Map writeThermostatOccupiedCoolingSetpointCommandParams = new LinkedHashMap(); + "value", thermostatlocalTemperatureCalibrationCommandParameterInfo); + InteractionInfo writeThermostatLocalTemperatureCalibrationAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeLocalTemperatureCalibrationAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatLocalTemperatureCalibrationCommandParams); + writeThermostatInteractionInfo.put( + "writeLocalTemperatureCalibrationAttribute", + writeThermostatLocalTemperatureCalibrationAttributeInteractionInfo); + Map writeThermostatOccupiedCoolingSetpointCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatoccupiedCoolingSetpointCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatOccupiedCoolingSetpointCommandParams.put( - "value", - thermostatoccupiedCoolingSetpointCommandParameterInfo - ); - InteractionInfo writeThermostatOccupiedCoolingSetpointAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeOccupiedCoolingSetpointAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatOccupiedCoolingSetpointCommandParams - ); - writeThermostatInteractionInfo.put("writeOccupiedCoolingSetpointAttribute", writeThermostatOccupiedCoolingSetpointAttributeInteractionInfo); - Map writeThermostatOccupiedHeatingSetpointCommandParams = new LinkedHashMap(); + "value", thermostatoccupiedCoolingSetpointCommandParameterInfo); + InteractionInfo writeThermostatOccupiedCoolingSetpointAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeOccupiedCoolingSetpointAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatOccupiedCoolingSetpointCommandParams); + writeThermostatInteractionInfo.put( + "writeOccupiedCoolingSetpointAttribute", + writeThermostatOccupiedCoolingSetpointAttributeInteractionInfo); + Map writeThermostatOccupiedHeatingSetpointCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatoccupiedHeatingSetpointCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatOccupiedHeatingSetpointCommandParams.put( - "value", - thermostatoccupiedHeatingSetpointCommandParameterInfo - ); - InteractionInfo writeThermostatOccupiedHeatingSetpointAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeOccupiedHeatingSetpointAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatOccupiedHeatingSetpointCommandParams - ); - writeThermostatInteractionInfo.put("writeOccupiedHeatingSetpointAttribute", writeThermostatOccupiedHeatingSetpointAttributeInteractionInfo); - Map writeThermostatUnoccupiedCoolingSetpointCommandParams = new LinkedHashMap(); + "value", thermostatoccupiedHeatingSetpointCommandParameterInfo); + InteractionInfo writeThermostatOccupiedHeatingSetpointAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeOccupiedHeatingSetpointAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatOccupiedHeatingSetpointCommandParams); + writeThermostatInteractionInfo.put( + "writeOccupiedHeatingSetpointAttribute", + writeThermostatOccupiedHeatingSetpointAttributeInteractionInfo); + Map writeThermostatUnoccupiedCoolingSetpointCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatunoccupiedCoolingSetpointCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatUnoccupiedCoolingSetpointCommandParams.put( - "value", - thermostatunoccupiedCoolingSetpointCommandParameterInfo - ); - InteractionInfo writeThermostatUnoccupiedCoolingSetpointAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeUnoccupiedCoolingSetpointAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatUnoccupiedCoolingSetpointCommandParams - ); - writeThermostatInteractionInfo.put("writeUnoccupiedCoolingSetpointAttribute", writeThermostatUnoccupiedCoolingSetpointAttributeInteractionInfo); - Map writeThermostatUnoccupiedHeatingSetpointCommandParams = new LinkedHashMap(); + "value", thermostatunoccupiedCoolingSetpointCommandParameterInfo); + InteractionInfo writeThermostatUnoccupiedCoolingSetpointAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeUnoccupiedCoolingSetpointAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatUnoccupiedCoolingSetpointCommandParams); + writeThermostatInteractionInfo.put( + "writeUnoccupiedCoolingSetpointAttribute", + writeThermostatUnoccupiedCoolingSetpointAttributeInteractionInfo); + Map writeThermostatUnoccupiedHeatingSetpointCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatunoccupiedHeatingSetpointCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatUnoccupiedHeatingSetpointCommandParams.put( - "value", - thermostatunoccupiedHeatingSetpointCommandParameterInfo - ); - InteractionInfo writeThermostatUnoccupiedHeatingSetpointAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeUnoccupiedHeatingSetpointAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatUnoccupiedHeatingSetpointCommandParams - ); - writeThermostatInteractionInfo.put("writeUnoccupiedHeatingSetpointAttribute", writeThermostatUnoccupiedHeatingSetpointAttributeInteractionInfo); - Map writeThermostatMinHeatSetpointLimitCommandParams = new LinkedHashMap(); + "value", thermostatunoccupiedHeatingSetpointCommandParameterInfo); + InteractionInfo writeThermostatUnoccupiedHeatingSetpointAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeUnoccupiedHeatingSetpointAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatUnoccupiedHeatingSetpointCommandParams); + writeThermostatInteractionInfo.put( + "writeUnoccupiedHeatingSetpointAttribute", + writeThermostatUnoccupiedHeatingSetpointAttributeInteractionInfo); + Map writeThermostatMinHeatSetpointLimitCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatminHeatSetpointLimitCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatMinHeatSetpointLimitCommandParams.put( - "value", - thermostatminHeatSetpointLimitCommandParameterInfo - ); - InteractionInfo writeThermostatMinHeatSetpointLimitAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeMinHeatSetpointLimitAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatMinHeatSetpointLimitCommandParams - ); - writeThermostatInteractionInfo.put("writeMinHeatSetpointLimitAttribute", writeThermostatMinHeatSetpointLimitAttributeInteractionInfo); - Map writeThermostatMaxHeatSetpointLimitCommandParams = new LinkedHashMap(); + "value", thermostatminHeatSetpointLimitCommandParameterInfo); + InteractionInfo writeThermostatMinHeatSetpointLimitAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeMinHeatSetpointLimitAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatMinHeatSetpointLimitCommandParams); + writeThermostatInteractionInfo.put( + "writeMinHeatSetpointLimitAttribute", + writeThermostatMinHeatSetpointLimitAttributeInteractionInfo); + Map writeThermostatMaxHeatSetpointLimitCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatmaxHeatSetpointLimitCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatMaxHeatSetpointLimitCommandParams.put( - "value", - thermostatmaxHeatSetpointLimitCommandParameterInfo - ); - InteractionInfo writeThermostatMaxHeatSetpointLimitAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeMaxHeatSetpointLimitAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatMaxHeatSetpointLimitCommandParams - ); - writeThermostatInteractionInfo.put("writeMaxHeatSetpointLimitAttribute", writeThermostatMaxHeatSetpointLimitAttributeInteractionInfo); - Map writeThermostatMinCoolSetpointLimitCommandParams = new LinkedHashMap(); + "value", thermostatmaxHeatSetpointLimitCommandParameterInfo); + InteractionInfo writeThermostatMaxHeatSetpointLimitAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeMaxHeatSetpointLimitAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatMaxHeatSetpointLimitCommandParams); + writeThermostatInteractionInfo.put( + "writeMaxHeatSetpointLimitAttribute", + writeThermostatMaxHeatSetpointLimitAttributeInteractionInfo); + Map writeThermostatMinCoolSetpointLimitCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatminCoolSetpointLimitCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatMinCoolSetpointLimitCommandParams.put( - "value", - thermostatminCoolSetpointLimitCommandParameterInfo - ); - InteractionInfo writeThermostatMinCoolSetpointLimitAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeMinCoolSetpointLimitAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatMinCoolSetpointLimitCommandParams - ); - writeThermostatInteractionInfo.put("writeMinCoolSetpointLimitAttribute", writeThermostatMinCoolSetpointLimitAttributeInteractionInfo); - Map writeThermostatMaxCoolSetpointLimitCommandParams = new LinkedHashMap(); + "value", thermostatminCoolSetpointLimitCommandParameterInfo); + InteractionInfo writeThermostatMinCoolSetpointLimitAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeMinCoolSetpointLimitAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatMinCoolSetpointLimitCommandParams); + writeThermostatInteractionInfo.put( + "writeMinCoolSetpointLimitAttribute", + writeThermostatMinCoolSetpointLimitAttributeInteractionInfo); + Map writeThermostatMaxCoolSetpointLimitCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatmaxCoolSetpointLimitCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatMaxCoolSetpointLimitCommandParams.put( - "value", - thermostatmaxCoolSetpointLimitCommandParameterInfo - ); - InteractionInfo writeThermostatMaxCoolSetpointLimitAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeMaxCoolSetpointLimitAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatMaxCoolSetpointLimitCommandParams - ); - writeThermostatInteractionInfo.put("writeMaxCoolSetpointLimitAttribute", writeThermostatMaxCoolSetpointLimitAttributeInteractionInfo); - Map writeThermostatMinSetpointDeadBandCommandParams = new LinkedHashMap(); + "value", thermostatmaxCoolSetpointLimitCommandParameterInfo); + InteractionInfo writeThermostatMaxCoolSetpointLimitAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeMaxCoolSetpointLimitAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatMaxCoolSetpointLimitCommandParams); + writeThermostatInteractionInfo.put( + "writeMaxCoolSetpointLimitAttribute", + writeThermostatMaxCoolSetpointLimitAttributeInteractionInfo); + Map writeThermostatMinSetpointDeadBandCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatminSetpointDeadBandCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatMinSetpointDeadBandCommandParams.put( - "value", - thermostatminSetpointDeadBandCommandParameterInfo - ); - InteractionInfo writeThermostatMinSetpointDeadBandAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeMinSetpointDeadBandAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatMinSetpointDeadBandCommandParams - ); - writeThermostatInteractionInfo.put("writeMinSetpointDeadBandAttribute", writeThermostatMinSetpointDeadBandAttributeInteractionInfo); - Map writeThermostatRemoteSensingCommandParams = new LinkedHashMap(); + "value", thermostatminSetpointDeadBandCommandParameterInfo); + InteractionInfo writeThermostatMinSetpointDeadBandAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeMinSetpointDeadBandAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatMinSetpointDeadBandCommandParams); + writeThermostatInteractionInfo.put( + "writeMinSetpointDeadBandAttribute", + writeThermostatMinSetpointDeadBandAttributeInteractionInfo); + Map writeThermostatRemoteSensingCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatremoteSensingCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatRemoteSensingCommandParams.put( - "value", - thermostatremoteSensingCommandParameterInfo - ); - InteractionInfo writeThermostatRemoteSensingAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeRemoteSensingAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatRemoteSensingCommandParams - ); - writeThermostatInteractionInfo.put("writeRemoteSensingAttribute", writeThermostatRemoteSensingAttributeInteractionInfo); - Map writeThermostatControlSequenceOfOperationCommandParams = new LinkedHashMap(); + "value", thermostatremoteSensingCommandParameterInfo); + InteractionInfo writeThermostatRemoteSensingAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeRemoteSensingAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatRemoteSensingCommandParams); + writeThermostatInteractionInfo.put( + "writeRemoteSensingAttribute", writeThermostatRemoteSensingAttributeInteractionInfo); + Map writeThermostatControlSequenceOfOperationCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatcontrolSequenceOfOperationCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatControlSequenceOfOperationCommandParams.put( - "value", - thermostatcontrolSequenceOfOperationCommandParameterInfo - ); - InteractionInfo writeThermostatControlSequenceOfOperationAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeControlSequenceOfOperationAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatControlSequenceOfOperationCommandParams - ); - writeThermostatInteractionInfo.put("writeControlSequenceOfOperationAttribute", writeThermostatControlSequenceOfOperationAttributeInteractionInfo); - Map writeThermostatSystemModeCommandParams = new LinkedHashMap(); + "value", thermostatcontrolSequenceOfOperationCommandParameterInfo); + InteractionInfo writeThermostatControlSequenceOfOperationAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeControlSequenceOfOperationAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatControlSequenceOfOperationCommandParams); + writeThermostatInteractionInfo.put( + "writeControlSequenceOfOperationAttribute", + writeThermostatControlSequenceOfOperationAttributeInteractionInfo); + Map writeThermostatSystemModeCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatsystemModeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeThermostatSystemModeCommandParams.put( - "value", - thermostatsystemModeCommandParameterInfo - ); - InteractionInfo writeThermostatSystemModeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeSystemModeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatSystemModeCommandParams - ); - writeThermostatInteractionInfo.put("writeSystemModeAttribute", writeThermostatSystemModeAttributeInteractionInfo); - Map writeThermostatTemperatureSetpointHoldCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeThermostatSystemModeCommandParams.put("value", thermostatsystemModeCommandParameterInfo); + InteractionInfo writeThermostatSystemModeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeSystemModeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatSystemModeCommandParams); + writeThermostatInteractionInfo.put( + "writeSystemModeAttribute", writeThermostatSystemModeAttributeInteractionInfo); + Map writeThermostatTemperatureSetpointHoldCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostattemperatureSetpointHoldCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatTemperatureSetpointHoldCommandParams.put( - "value", - thermostattemperatureSetpointHoldCommandParameterInfo - ); - InteractionInfo writeThermostatTemperatureSetpointHoldAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeTemperatureSetpointHoldAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatTemperatureSetpointHoldCommandParams - ); - writeThermostatInteractionInfo.put("writeTemperatureSetpointHoldAttribute", writeThermostatTemperatureSetpointHoldAttributeInteractionInfo); - Map writeThermostatTemperatureSetpointHoldDurationCommandParams = new LinkedHashMap(); + "value", thermostattemperatureSetpointHoldCommandParameterInfo); + InteractionInfo writeThermostatTemperatureSetpointHoldAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeTemperatureSetpointHoldAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatTemperatureSetpointHoldCommandParams); + writeThermostatInteractionInfo.put( + "writeTemperatureSetpointHoldAttribute", + writeThermostatTemperatureSetpointHoldAttributeInteractionInfo); + Map writeThermostatTemperatureSetpointHoldDurationCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostattemperatureSetpointHoldDurationCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatTemperatureSetpointHoldDurationCommandParams.put( - "value", - thermostattemperatureSetpointHoldDurationCommandParameterInfo - ); - InteractionInfo writeThermostatTemperatureSetpointHoldDurationAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeTemperatureSetpointHoldDurationAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatTemperatureSetpointHoldDurationCommandParams - ); - writeThermostatInteractionInfo.put("writeTemperatureSetpointHoldDurationAttribute", writeThermostatTemperatureSetpointHoldDurationAttributeInteractionInfo); - Map writeThermostatThermostatProgrammingOperationModeCommandParams = new LinkedHashMap(); + "value", thermostattemperatureSetpointHoldDurationCommandParameterInfo); + InteractionInfo writeThermostatTemperatureSetpointHoldDurationAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeTemperatureSetpointHoldDurationAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatTemperatureSetpointHoldDurationCommandParams); + writeThermostatInteractionInfo.put( + "writeTemperatureSetpointHoldDurationAttribute", + writeThermostatTemperatureSetpointHoldDurationAttributeInteractionInfo); + Map + writeThermostatThermostatProgrammingOperationModeCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatthermostatProgrammingOperationModeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatThermostatProgrammingOperationModeCommandParams.put( - "value", - thermostatthermostatProgrammingOperationModeCommandParameterInfo - ); - InteractionInfo writeThermostatThermostatProgrammingOperationModeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeThermostatProgrammingOperationModeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatThermostatProgrammingOperationModeCommandParams - ); - writeThermostatInteractionInfo.put("writeThermostatProgrammingOperationModeAttribute", writeThermostatThermostatProgrammingOperationModeAttributeInteractionInfo); - Map writeThermostatOccupiedSetbackCommandParams = new LinkedHashMap(); + "value", thermostatthermostatProgrammingOperationModeCommandParameterInfo); + InteractionInfo writeThermostatThermostatProgrammingOperationModeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeThermostatProgrammingOperationModeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatThermostatProgrammingOperationModeCommandParams); + writeThermostatInteractionInfo.put( + "writeThermostatProgrammingOperationModeAttribute", + writeThermostatThermostatProgrammingOperationModeAttributeInteractionInfo); + Map writeThermostatOccupiedSetbackCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatoccupiedSetbackCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatOccupiedSetbackCommandParams.put( - "value", - thermostatoccupiedSetbackCommandParameterInfo - ); - InteractionInfo writeThermostatOccupiedSetbackAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeOccupiedSetbackAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatOccupiedSetbackCommandParams - ); - writeThermostatInteractionInfo.put("writeOccupiedSetbackAttribute", writeThermostatOccupiedSetbackAttributeInteractionInfo); - Map writeThermostatUnoccupiedSetbackCommandParams = new LinkedHashMap(); + "value", thermostatoccupiedSetbackCommandParameterInfo); + InteractionInfo writeThermostatOccupiedSetbackAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeOccupiedSetbackAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatOccupiedSetbackCommandParams); + writeThermostatInteractionInfo.put( + "writeOccupiedSetbackAttribute", writeThermostatOccupiedSetbackAttributeInteractionInfo); + Map writeThermostatUnoccupiedSetbackCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatunoccupiedSetbackCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatUnoccupiedSetbackCommandParams.put( - "value", - thermostatunoccupiedSetbackCommandParameterInfo - ); - InteractionInfo writeThermostatUnoccupiedSetbackAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeUnoccupiedSetbackAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatUnoccupiedSetbackCommandParams - ); - writeThermostatInteractionInfo.put("writeUnoccupiedSetbackAttribute", writeThermostatUnoccupiedSetbackAttributeInteractionInfo); - Map writeThermostatEmergencyHeatDeltaCommandParams = new LinkedHashMap(); + "value", thermostatunoccupiedSetbackCommandParameterInfo); + InteractionInfo writeThermostatUnoccupiedSetbackAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeUnoccupiedSetbackAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatUnoccupiedSetbackCommandParams); + writeThermostatInteractionInfo.put( + "writeUnoccupiedSetbackAttribute", + writeThermostatUnoccupiedSetbackAttributeInteractionInfo); + Map writeThermostatEmergencyHeatDeltaCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatemergencyHeatDeltaCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatEmergencyHeatDeltaCommandParams.put( - "value", - thermostatemergencyHeatDeltaCommandParameterInfo - ); - InteractionInfo writeThermostatEmergencyHeatDeltaAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeEmergencyHeatDeltaAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatEmergencyHeatDeltaCommandParams - ); - writeThermostatInteractionInfo.put("writeEmergencyHeatDeltaAttribute", writeThermostatEmergencyHeatDeltaAttributeInteractionInfo); - Map writeThermostatACTypeCommandParams = new LinkedHashMap(); + "value", thermostatemergencyHeatDeltaCommandParameterInfo); + InteractionInfo writeThermostatEmergencyHeatDeltaAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeEmergencyHeatDeltaAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatEmergencyHeatDeltaCommandParams); + writeThermostatInteractionInfo.put( + "writeEmergencyHeatDeltaAttribute", + writeThermostatEmergencyHeatDeltaAttributeInteractionInfo); + Map writeThermostatACTypeCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostataCTypeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeThermostatACTypeCommandParams.put( - "value", - thermostataCTypeCommandParameterInfo - ); - InteractionInfo writeThermostatACTypeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeACTypeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatACTypeCommandParams - ); - writeThermostatInteractionInfo.put("writeACTypeAttribute", writeThermostatACTypeAttributeInteractionInfo); - Map writeThermostatACCapacityCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeThermostatACTypeCommandParams.put("value", thermostataCTypeCommandParameterInfo); + InteractionInfo writeThermostatACTypeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeACTypeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatACTypeCommandParams); + writeThermostatInteractionInfo.put( + "writeACTypeAttribute", writeThermostatACTypeAttributeInteractionInfo); + Map writeThermostatACCapacityCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostataCCapacityCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeThermostatACCapacityCommandParams.put( - "value", - thermostataCCapacityCommandParameterInfo - ); - InteractionInfo writeThermostatACCapacityAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeACCapacityAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatACCapacityCommandParams - ); - writeThermostatInteractionInfo.put("writeACCapacityAttribute", writeThermostatACCapacityAttributeInteractionInfo); - Map writeThermostatACRefrigerantTypeCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeThermostatACCapacityCommandParams.put("value", thermostataCCapacityCommandParameterInfo); + InteractionInfo writeThermostatACCapacityAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeACCapacityAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatACCapacityCommandParams); + writeThermostatInteractionInfo.put( + "writeACCapacityAttribute", writeThermostatACCapacityAttributeInteractionInfo); + Map writeThermostatACRefrigerantTypeCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostataCRefrigerantTypeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatACRefrigerantTypeCommandParams.put( - "value", - thermostataCRefrigerantTypeCommandParameterInfo - ); - InteractionInfo writeThermostatACRefrigerantTypeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeACRefrigerantTypeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatACRefrigerantTypeCommandParams - ); - writeThermostatInteractionInfo.put("writeACRefrigerantTypeAttribute", writeThermostatACRefrigerantTypeAttributeInteractionInfo); - Map writeThermostatACCompressorTypeCommandParams = new LinkedHashMap(); + "value", thermostataCRefrigerantTypeCommandParameterInfo); + InteractionInfo writeThermostatACRefrigerantTypeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeACRefrigerantTypeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatACRefrigerantTypeCommandParams); + writeThermostatInteractionInfo.put( + "writeACRefrigerantTypeAttribute", + writeThermostatACRefrigerantTypeAttributeInteractionInfo); + Map writeThermostatACCompressorTypeCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostataCCompressorTypeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatACCompressorTypeCommandParams.put( - "value", - thermostataCCompressorTypeCommandParameterInfo - ); - InteractionInfo writeThermostatACCompressorTypeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeACCompressorTypeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatACCompressorTypeCommandParams - ); - writeThermostatInteractionInfo.put("writeACCompressorTypeAttribute", writeThermostatACCompressorTypeAttributeInteractionInfo); - Map writeThermostatACErrorCodeCommandParams = new LinkedHashMap(); + "value", thermostataCCompressorTypeCommandParameterInfo); + InteractionInfo writeThermostatACCompressorTypeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeACCompressorTypeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatACCompressorTypeCommandParams); + writeThermostatInteractionInfo.put( + "writeACCompressorTypeAttribute", writeThermostatACCompressorTypeAttributeInteractionInfo); + Map writeThermostatACErrorCodeCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostataCErrorCodeCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); - writeThermostatACErrorCodeCommandParams.put( - "value", - thermostataCErrorCodeCommandParameterInfo - ); - InteractionInfo writeThermostatACErrorCodeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeACErrorCodeAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatACErrorCodeCommandParams - ); - writeThermostatInteractionInfo.put("writeACErrorCodeAttribute", writeThermostatACErrorCodeAttributeInteractionInfo); - Map writeThermostatACLouverPositionCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Long.class, Long.class); + writeThermostatACErrorCodeCommandParams.put("value", thermostataCErrorCodeCommandParameterInfo); + InteractionInfo writeThermostatACErrorCodeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeACErrorCodeAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatACErrorCodeCommandParams); + writeThermostatInteractionInfo.put( + "writeACErrorCodeAttribute", writeThermostatACErrorCodeAttributeInteractionInfo); + Map writeThermostatACLouverPositionCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostataCLouverPositionCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatACLouverPositionCommandParams.put( - "value", - thermostataCLouverPositionCommandParameterInfo - ); - InteractionInfo writeThermostatACLouverPositionAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeACLouverPositionAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatACLouverPositionCommandParams - ); - writeThermostatInteractionInfo.put("writeACLouverPositionAttribute", writeThermostatACLouverPositionAttributeInteractionInfo); - Map writeThermostatACCapacityformatCommandParams = new LinkedHashMap(); + "value", thermostataCLouverPositionCommandParameterInfo); + InteractionInfo writeThermostatACLouverPositionAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeACLouverPositionAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatACLouverPositionCommandParams); + writeThermostatInteractionInfo.put( + "writeACLouverPositionAttribute", writeThermostatACLouverPositionAttributeInteractionInfo); + Map writeThermostatACCapacityformatCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostataCCapacityformatCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatACCapacityformatCommandParams.put( - "value", - thermostataCCapacityformatCommandParameterInfo - ); - InteractionInfo writeThermostatACCapacityformatAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeACCapacityformatAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatACCapacityformatCommandParams - ); - writeThermostatInteractionInfo.put("writeACCapacityformatAttribute", writeThermostatACCapacityformatAttributeInteractionInfo); + "value", thermostataCCapacityformatCommandParameterInfo); + InteractionInfo writeThermostatACCapacityformatAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .writeACCapacityformatAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatACCapacityformatCommandParams); + writeThermostatInteractionInfo.put( + "writeACCapacityformatAttribute", writeThermostatACCapacityformatAttributeInteractionInfo); writeAttributeMap.put("thermostat", writeThermostatInteractionInfo); Map writeFanControlInteractionInfo = new LinkedHashMap<>(); - Map writeFanControlFanModeCommandParams = new LinkedHashMap(); + Map writeFanControlFanModeCommandParams = + new LinkedHashMap(); CommandParameterInfo fanControlfanModeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeFanControlFanModeCommandParams.put( - "value", - fanControlfanModeCommandParameterInfo - ); - InteractionInfo writeFanControlFanModeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.FanControlCluster) cluster).writeFanModeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeFanControlFanModeCommandParams - ); - writeFanControlInteractionInfo.put("writeFanModeAttribute", writeFanControlFanModeAttributeInteractionInfo); - Map writeFanControlFanModeSequenceCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeFanControlFanModeCommandParams.put("value", fanControlfanModeCommandParameterInfo); + InteractionInfo writeFanControlFanModeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FanControlCluster) cluster) + .writeFanModeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeFanControlFanModeCommandParams); + writeFanControlInteractionInfo.put( + "writeFanModeAttribute", writeFanControlFanModeAttributeInteractionInfo); + Map writeFanControlFanModeSequenceCommandParams = + new LinkedHashMap(); CommandParameterInfo fanControlfanModeSequenceCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeFanControlFanModeSequenceCommandParams.put( - "value", - fanControlfanModeSequenceCommandParameterInfo - ); - InteractionInfo writeFanControlFanModeSequenceAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.FanControlCluster) cluster).writeFanModeSequenceAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeFanControlFanModeSequenceCommandParams - ); - writeFanControlInteractionInfo.put("writeFanModeSequenceAttribute", writeFanControlFanModeSequenceAttributeInteractionInfo); - Map writeFanControlPercentSettingCommandParams = new LinkedHashMap(); + "value", fanControlfanModeSequenceCommandParameterInfo); + InteractionInfo writeFanControlFanModeSequenceAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FanControlCluster) cluster) + .writeFanModeSequenceAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeFanControlFanModeSequenceCommandParams); + writeFanControlInteractionInfo.put( + "writeFanModeSequenceAttribute", writeFanControlFanModeSequenceAttributeInteractionInfo); + Map writeFanControlPercentSettingCommandParams = + new LinkedHashMap(); CommandParameterInfo fanControlpercentSettingCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeFanControlPercentSettingCommandParams.put( - "value", - fanControlpercentSettingCommandParameterInfo - ); - InteractionInfo writeFanControlPercentSettingAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.FanControlCluster) cluster).writePercentSettingAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeFanControlPercentSettingCommandParams - ); - writeFanControlInteractionInfo.put("writePercentSettingAttribute", writeFanControlPercentSettingAttributeInteractionInfo); - Map writeFanControlSpeedSettingCommandParams = new LinkedHashMap(); + "value", fanControlpercentSettingCommandParameterInfo); + InteractionInfo writeFanControlPercentSettingAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FanControlCluster) cluster) + .writePercentSettingAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeFanControlPercentSettingCommandParams); + writeFanControlInteractionInfo.put( + "writePercentSettingAttribute", writeFanControlPercentSettingAttributeInteractionInfo); + Map writeFanControlSpeedSettingCommandParams = + new LinkedHashMap(); CommandParameterInfo fanControlspeedSettingCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeFanControlSpeedSettingCommandParams.put( - "value", - fanControlspeedSettingCommandParameterInfo - ); - InteractionInfo writeFanControlSpeedSettingAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.FanControlCluster) cluster).writeSpeedSettingAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeFanControlSpeedSettingCommandParams - ); - writeFanControlInteractionInfo.put("writeSpeedSettingAttribute", writeFanControlSpeedSettingAttributeInteractionInfo); - Map writeFanControlRockSettingCommandParams = new LinkedHashMap(); + "value", fanControlspeedSettingCommandParameterInfo); + InteractionInfo writeFanControlSpeedSettingAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FanControlCluster) cluster) + .writeSpeedSettingAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeFanControlSpeedSettingCommandParams); + writeFanControlInteractionInfo.put( + "writeSpeedSettingAttribute", writeFanControlSpeedSettingAttributeInteractionInfo); + Map writeFanControlRockSettingCommandParams = + new LinkedHashMap(); CommandParameterInfo fanControlrockSettingCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeFanControlRockSettingCommandParams.put( - "value", - fanControlrockSettingCommandParameterInfo - ); - InteractionInfo writeFanControlRockSettingAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.FanControlCluster) cluster).writeRockSettingAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeFanControlRockSettingCommandParams - ); - writeFanControlInteractionInfo.put("writeRockSettingAttribute", writeFanControlRockSettingAttributeInteractionInfo); - Map writeFanControlWindSettingCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeFanControlRockSettingCommandParams.put("value", fanControlrockSettingCommandParameterInfo); + InteractionInfo writeFanControlRockSettingAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FanControlCluster) cluster) + .writeRockSettingAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeFanControlRockSettingCommandParams); + writeFanControlInteractionInfo.put( + "writeRockSettingAttribute", writeFanControlRockSettingAttributeInteractionInfo); + Map writeFanControlWindSettingCommandParams = + new LinkedHashMap(); CommandParameterInfo fanControlwindSettingCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeFanControlWindSettingCommandParams.put( - "value", - fanControlwindSettingCommandParameterInfo - ); - InteractionInfo writeFanControlWindSettingAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.FanControlCluster) cluster).writeWindSettingAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeFanControlWindSettingCommandParams - ); - writeFanControlInteractionInfo.put("writeWindSettingAttribute", writeFanControlWindSettingAttributeInteractionInfo); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeFanControlWindSettingCommandParams.put("value", fanControlwindSettingCommandParameterInfo); + InteractionInfo writeFanControlWindSettingAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FanControlCluster) cluster) + .writeWindSettingAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeFanControlWindSettingCommandParams); + writeFanControlInteractionInfo.put( + "writeWindSettingAttribute", writeFanControlWindSettingAttributeInteractionInfo); writeAttributeMap.put("fanControl", writeFanControlInteractionInfo); - Map writeThermostatUserInterfaceConfigurationInteractionInfo = new LinkedHashMap<>(); - Map writeThermostatUserInterfaceConfigurationTemperatureDisplayModeCommandParams = new LinkedHashMap(); - CommandParameterInfo thermostatUserInterfaceConfigurationtemperatureDisplayModeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + Map writeThermostatUserInterfaceConfigurationInteractionInfo = + new LinkedHashMap<>(); + Map + writeThermostatUserInterfaceConfigurationTemperatureDisplayModeCommandParams = + new LinkedHashMap(); + CommandParameterInfo + thermostatUserInterfaceConfigurationtemperatureDisplayModeCommandParameterInfo = + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatUserInterfaceConfigurationTemperatureDisplayModeCommandParams.put( - "value", - thermostatUserInterfaceConfigurationtemperatureDisplayModeCommandParameterInfo - ); - InteractionInfo writeThermostatUserInterfaceConfigurationTemperatureDisplayModeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatUserInterfaceConfigurationCluster) cluster).writeTemperatureDisplayModeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatUserInterfaceConfigurationTemperatureDisplayModeCommandParams - ); - writeThermostatUserInterfaceConfigurationInteractionInfo.put("writeTemperatureDisplayModeAttribute", writeThermostatUserInterfaceConfigurationTemperatureDisplayModeAttributeInteractionInfo); - Map writeThermostatUserInterfaceConfigurationKeypadLockoutCommandParams = new LinkedHashMap(); + "value", thermostatUserInterfaceConfigurationtemperatureDisplayModeCommandParameterInfo); + InteractionInfo + writeThermostatUserInterfaceConfigurationTemperatureDisplayModeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatUserInterfaceConfigurationCluster) cluster) + .writeTemperatureDisplayModeAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatUserInterfaceConfigurationTemperatureDisplayModeCommandParams); + writeThermostatUserInterfaceConfigurationInteractionInfo.put( + "writeTemperatureDisplayModeAttribute", + writeThermostatUserInterfaceConfigurationTemperatureDisplayModeAttributeInteractionInfo); + Map + writeThermostatUserInterfaceConfigurationKeypadLockoutCommandParams = + new LinkedHashMap(); CommandParameterInfo thermostatUserInterfaceConfigurationkeypadLockoutCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatUserInterfaceConfigurationKeypadLockoutCommandParams.put( - "value", - thermostatUserInterfaceConfigurationkeypadLockoutCommandParameterInfo - ); - InteractionInfo writeThermostatUserInterfaceConfigurationKeypadLockoutAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatUserInterfaceConfigurationCluster) cluster).writeKeypadLockoutAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatUserInterfaceConfigurationKeypadLockoutCommandParams - ); - writeThermostatUserInterfaceConfigurationInteractionInfo.put("writeKeypadLockoutAttribute", writeThermostatUserInterfaceConfigurationKeypadLockoutAttributeInteractionInfo); - Map writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCommandParams = new LinkedHashMap(); - CommandParameterInfo thermostatUserInterfaceConfigurationscheduleProgrammingVisibilityCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + "value", thermostatUserInterfaceConfigurationkeypadLockoutCommandParameterInfo); + InteractionInfo writeThermostatUserInterfaceConfigurationKeypadLockoutAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatUserInterfaceConfigurationCluster) cluster) + .writeKeypadLockoutAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatUserInterfaceConfigurationKeypadLockoutCommandParams); + writeThermostatUserInterfaceConfigurationInteractionInfo.put( + "writeKeypadLockoutAttribute", + writeThermostatUserInterfaceConfigurationKeypadLockoutAttributeInteractionInfo); + Map + writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCommandParams = + new LinkedHashMap(); + CommandParameterInfo + thermostatUserInterfaceConfigurationscheduleProgrammingVisibilityCommandParameterInfo = + new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCommandParams.put( "value", - thermostatUserInterfaceConfigurationscheduleProgrammingVisibilityCommandParameterInfo - ); - InteractionInfo writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatUserInterfaceConfigurationCluster) cluster).writeScheduleProgrammingVisibilityAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCommandParams - ); - writeThermostatUserInterfaceConfigurationInteractionInfo.put("writeScheduleProgrammingVisibilityAttribute", writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityAttributeInteractionInfo); - writeAttributeMap.put("thermostatUserInterfaceConfiguration", writeThermostatUserInterfaceConfigurationInteractionInfo); + thermostatUserInterfaceConfigurationscheduleProgrammingVisibilityCommandParameterInfo); + InteractionInfo + writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatUserInterfaceConfigurationCluster) cluster) + .writeScheduleProgrammingVisibilityAttribute( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCommandParams); + writeThermostatUserInterfaceConfigurationInteractionInfo.put( + "writeScheduleProgrammingVisibilityAttribute", + writeThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityAttributeInteractionInfo); + writeAttributeMap.put( + "thermostatUserInterfaceConfiguration", + writeThermostatUserInterfaceConfigurationInteractionInfo); Map writeColorControlInteractionInfo = new LinkedHashMap<>(); - Map writeColorControlOptionsCommandParams = new LinkedHashMap(); + Map writeColorControlOptionsCommandParams = + new LinkedHashMap(); CommandParameterInfo colorControloptionsCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeColorControlOptionsCommandParams.put( - "value", - colorControloptionsCommandParameterInfo - ); - InteractionInfo writeColorControlOptionsAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster).writeOptionsAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlOptionsCommandParams - ); - writeColorControlInteractionInfo.put("writeOptionsAttribute", writeColorControlOptionsAttributeInteractionInfo); - Map writeColorControlWhitePointXCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeColorControlOptionsCommandParams.put("value", colorControloptionsCommandParameterInfo); + InteractionInfo writeColorControlOptionsAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .writeOptionsAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlOptionsCommandParams); + writeColorControlInteractionInfo.put( + "writeOptionsAttribute", writeColorControlOptionsAttributeInteractionInfo); + Map writeColorControlWhitePointXCommandParams = + new LinkedHashMap(); CommandParameterInfo colorControlwhitePointXCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeColorControlWhitePointXCommandParams.put( - "value", - colorControlwhitePointXCommandParameterInfo - ); - InteractionInfo writeColorControlWhitePointXAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster).writeWhitePointXAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlWhitePointXCommandParams - ); - writeColorControlInteractionInfo.put("writeWhitePointXAttribute", writeColorControlWhitePointXAttributeInteractionInfo); - Map writeColorControlWhitePointYCommandParams = new LinkedHashMap(); + "value", colorControlwhitePointXCommandParameterInfo); + InteractionInfo writeColorControlWhitePointXAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .writeWhitePointXAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlWhitePointXCommandParams); + writeColorControlInteractionInfo.put( + "writeWhitePointXAttribute", writeColorControlWhitePointXAttributeInteractionInfo); + Map writeColorControlWhitePointYCommandParams = + new LinkedHashMap(); CommandParameterInfo colorControlwhitePointYCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeColorControlWhitePointYCommandParams.put( - "value", - colorControlwhitePointYCommandParameterInfo - ); - InteractionInfo writeColorControlWhitePointYAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster).writeWhitePointYAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlWhitePointYCommandParams - ); - writeColorControlInteractionInfo.put("writeWhitePointYAttribute", writeColorControlWhitePointYAttributeInteractionInfo); - Map writeColorControlColorPointRXCommandParams = new LinkedHashMap(); + "value", colorControlwhitePointYCommandParameterInfo); + InteractionInfo writeColorControlWhitePointYAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .writeWhitePointYAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlWhitePointYCommandParams); + writeColorControlInteractionInfo.put( + "writeWhitePointYAttribute", writeColorControlWhitePointYAttributeInteractionInfo); + Map writeColorControlColorPointRXCommandParams = + new LinkedHashMap(); CommandParameterInfo colorControlcolorPointRXCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeColorControlColorPointRXCommandParams.put( - "value", - colorControlcolorPointRXCommandParameterInfo - ); - InteractionInfo writeColorControlColorPointRXAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster).writeColorPointRXAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointRXCommandParams - ); - writeColorControlInteractionInfo.put("writeColorPointRXAttribute", writeColorControlColorPointRXAttributeInteractionInfo); - Map writeColorControlColorPointRYCommandParams = new LinkedHashMap(); + "value", colorControlcolorPointRXCommandParameterInfo); + InteractionInfo writeColorControlColorPointRXAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .writeColorPointRXAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointRXCommandParams); + writeColorControlInteractionInfo.put( + "writeColorPointRXAttribute", writeColorControlColorPointRXAttributeInteractionInfo); + Map writeColorControlColorPointRYCommandParams = + new LinkedHashMap(); CommandParameterInfo colorControlcolorPointRYCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeColorControlColorPointRYCommandParams.put( - "value", - colorControlcolorPointRYCommandParameterInfo - ); - InteractionInfo writeColorControlColorPointRYAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster).writeColorPointRYAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointRYCommandParams - ); - writeColorControlInteractionInfo.put("writeColorPointRYAttribute", writeColorControlColorPointRYAttributeInteractionInfo); - Map writeColorControlColorPointRIntensityCommandParams = new LinkedHashMap(); + "value", colorControlcolorPointRYCommandParameterInfo); + InteractionInfo writeColorControlColorPointRYAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .writeColorPointRYAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointRYCommandParams); + writeColorControlInteractionInfo.put( + "writeColorPointRYAttribute", writeColorControlColorPointRYAttributeInteractionInfo); + Map writeColorControlColorPointRIntensityCommandParams = + new LinkedHashMap(); CommandParameterInfo colorControlcolorPointRIntensityCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeColorControlColorPointRIntensityCommandParams.put( - "value", - colorControlcolorPointRIntensityCommandParameterInfo - ); - InteractionInfo writeColorControlColorPointRIntensityAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster).writeColorPointRIntensityAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointRIntensityCommandParams - ); - writeColorControlInteractionInfo.put("writeColorPointRIntensityAttribute", writeColorControlColorPointRIntensityAttributeInteractionInfo); - Map writeColorControlColorPointGXCommandParams = new LinkedHashMap(); + "value", colorControlcolorPointRIntensityCommandParameterInfo); + InteractionInfo writeColorControlColorPointRIntensityAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .writeColorPointRIntensityAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointRIntensityCommandParams); + writeColorControlInteractionInfo.put( + "writeColorPointRIntensityAttribute", + writeColorControlColorPointRIntensityAttributeInteractionInfo); + Map writeColorControlColorPointGXCommandParams = + new LinkedHashMap(); CommandParameterInfo colorControlcolorPointGXCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeColorControlColorPointGXCommandParams.put( - "value", - colorControlcolorPointGXCommandParameterInfo - ); - InteractionInfo writeColorControlColorPointGXAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster).writeColorPointGXAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointGXCommandParams - ); - writeColorControlInteractionInfo.put("writeColorPointGXAttribute", writeColorControlColorPointGXAttributeInteractionInfo); - Map writeColorControlColorPointGYCommandParams = new LinkedHashMap(); + "value", colorControlcolorPointGXCommandParameterInfo); + InteractionInfo writeColorControlColorPointGXAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .writeColorPointGXAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointGXCommandParams); + writeColorControlInteractionInfo.put( + "writeColorPointGXAttribute", writeColorControlColorPointGXAttributeInteractionInfo); + Map writeColorControlColorPointGYCommandParams = + new LinkedHashMap(); CommandParameterInfo colorControlcolorPointGYCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeColorControlColorPointGYCommandParams.put( - "value", - colorControlcolorPointGYCommandParameterInfo - ); - InteractionInfo writeColorControlColorPointGYAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster).writeColorPointGYAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointGYCommandParams - ); - writeColorControlInteractionInfo.put("writeColorPointGYAttribute", writeColorControlColorPointGYAttributeInteractionInfo); - Map writeColorControlColorPointGIntensityCommandParams = new LinkedHashMap(); + "value", colorControlcolorPointGYCommandParameterInfo); + InteractionInfo writeColorControlColorPointGYAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .writeColorPointGYAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointGYCommandParams); + writeColorControlInteractionInfo.put( + "writeColorPointGYAttribute", writeColorControlColorPointGYAttributeInteractionInfo); + Map writeColorControlColorPointGIntensityCommandParams = + new LinkedHashMap(); CommandParameterInfo colorControlcolorPointGIntensityCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeColorControlColorPointGIntensityCommandParams.put( - "value", - colorControlcolorPointGIntensityCommandParameterInfo - ); - InteractionInfo writeColorControlColorPointGIntensityAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster).writeColorPointGIntensityAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointGIntensityCommandParams - ); - writeColorControlInteractionInfo.put("writeColorPointGIntensityAttribute", writeColorControlColorPointGIntensityAttributeInteractionInfo); - Map writeColorControlColorPointBXCommandParams = new LinkedHashMap(); + "value", colorControlcolorPointGIntensityCommandParameterInfo); + InteractionInfo writeColorControlColorPointGIntensityAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .writeColorPointGIntensityAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointGIntensityCommandParams); + writeColorControlInteractionInfo.put( + "writeColorPointGIntensityAttribute", + writeColorControlColorPointGIntensityAttributeInteractionInfo); + Map writeColorControlColorPointBXCommandParams = + new LinkedHashMap(); CommandParameterInfo colorControlcolorPointBXCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeColorControlColorPointBXCommandParams.put( - "value", - colorControlcolorPointBXCommandParameterInfo - ); - InteractionInfo writeColorControlColorPointBXAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster).writeColorPointBXAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointBXCommandParams - ); - writeColorControlInteractionInfo.put("writeColorPointBXAttribute", writeColorControlColorPointBXAttributeInteractionInfo); - Map writeColorControlColorPointBYCommandParams = new LinkedHashMap(); + "value", colorControlcolorPointBXCommandParameterInfo); + InteractionInfo writeColorControlColorPointBXAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .writeColorPointBXAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointBXCommandParams); + writeColorControlInteractionInfo.put( + "writeColorPointBXAttribute", writeColorControlColorPointBXAttributeInteractionInfo); + Map writeColorControlColorPointBYCommandParams = + new LinkedHashMap(); CommandParameterInfo colorControlcolorPointBYCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeColorControlColorPointBYCommandParams.put( - "value", - colorControlcolorPointBYCommandParameterInfo - ); - InteractionInfo writeColorControlColorPointBYAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster).writeColorPointBYAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointBYCommandParams - ); - writeColorControlInteractionInfo.put("writeColorPointBYAttribute", writeColorControlColorPointBYAttributeInteractionInfo); - Map writeColorControlColorPointBIntensityCommandParams = new LinkedHashMap(); + "value", colorControlcolorPointBYCommandParameterInfo); + InteractionInfo writeColorControlColorPointBYAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .writeColorPointBYAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointBYCommandParams); + writeColorControlInteractionInfo.put( + "writeColorPointBYAttribute", writeColorControlColorPointBYAttributeInteractionInfo); + Map writeColorControlColorPointBIntensityCommandParams = + new LinkedHashMap(); CommandParameterInfo colorControlcolorPointBIntensityCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeColorControlColorPointBIntensityCommandParams.put( - "value", - colorControlcolorPointBIntensityCommandParameterInfo - ); - InteractionInfo writeColorControlColorPointBIntensityAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster).writeColorPointBIntensityAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlColorPointBIntensityCommandParams - ); - writeColorControlInteractionInfo.put("writeColorPointBIntensityAttribute", writeColorControlColorPointBIntensityAttributeInteractionInfo); - Map writeColorControlStartUpColorTemperatureMiredsCommandParams = new LinkedHashMap(); + "value", colorControlcolorPointBIntensityCommandParameterInfo); + InteractionInfo writeColorControlColorPointBIntensityAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .writeColorPointBIntensityAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlColorPointBIntensityCommandParams); + writeColorControlInteractionInfo.put( + "writeColorPointBIntensityAttribute", + writeColorControlColorPointBIntensityAttributeInteractionInfo); + Map writeColorControlStartUpColorTemperatureMiredsCommandParams = + new LinkedHashMap(); CommandParameterInfo colorControlstartUpColorTemperatureMiredsCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeColorControlStartUpColorTemperatureMiredsCommandParams.put( - "value", - colorControlstartUpColorTemperatureMiredsCommandParameterInfo - ); - InteractionInfo writeColorControlStartUpColorTemperatureMiredsAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster).writeStartUpColorTemperatureMiredsAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeColorControlStartUpColorTemperatureMiredsCommandParams - ); - writeColorControlInteractionInfo.put("writeStartUpColorTemperatureMiredsAttribute", writeColorControlStartUpColorTemperatureMiredsAttributeInteractionInfo); + "value", colorControlstartUpColorTemperatureMiredsCommandParameterInfo); + InteractionInfo writeColorControlStartUpColorTemperatureMiredsAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .writeStartUpColorTemperatureMiredsAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeColorControlStartUpColorTemperatureMiredsCommandParams); + writeColorControlInteractionInfo.put( + "writeStartUpColorTemperatureMiredsAttribute", + writeColorControlStartUpColorTemperatureMiredsAttributeInteractionInfo); writeAttributeMap.put("colorControl", writeColorControlInteractionInfo); Map writeBallastConfigurationInteractionInfo = new LinkedHashMap<>(); - Map writeBallastConfigurationMinLevelCommandParams = new LinkedHashMap(); + Map writeBallastConfigurationMinLevelCommandParams = + new LinkedHashMap(); CommandParameterInfo ballastConfigurationminLevelCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeBallastConfigurationMinLevelCommandParams.put( - "value", - ballastConfigurationminLevelCommandParameterInfo - ); - InteractionInfo writeBallastConfigurationMinLevelAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster).writeMinLevelAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationMinLevelCommandParams - ); - writeBallastConfigurationInteractionInfo.put("writeMinLevelAttribute", writeBallastConfigurationMinLevelAttributeInteractionInfo); - Map writeBallastConfigurationMaxLevelCommandParams = new LinkedHashMap(); + "value", ballastConfigurationminLevelCommandParameterInfo); + InteractionInfo writeBallastConfigurationMinLevelAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster) + .writeMinLevelAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationMinLevelCommandParams); + writeBallastConfigurationInteractionInfo.put( + "writeMinLevelAttribute", writeBallastConfigurationMinLevelAttributeInteractionInfo); + Map writeBallastConfigurationMaxLevelCommandParams = + new LinkedHashMap(); CommandParameterInfo ballastConfigurationmaxLevelCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeBallastConfigurationMaxLevelCommandParams.put( - "value", - ballastConfigurationmaxLevelCommandParameterInfo - ); - InteractionInfo writeBallastConfigurationMaxLevelAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster).writeMaxLevelAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationMaxLevelCommandParams - ); - writeBallastConfigurationInteractionInfo.put("writeMaxLevelAttribute", writeBallastConfigurationMaxLevelAttributeInteractionInfo); - Map writeBallastConfigurationIntrinsicBallastFactorCommandParams = new LinkedHashMap(); + "value", ballastConfigurationmaxLevelCommandParameterInfo); + InteractionInfo writeBallastConfigurationMaxLevelAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster) + .writeMaxLevelAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationMaxLevelCommandParams); + writeBallastConfigurationInteractionInfo.put( + "writeMaxLevelAttribute", writeBallastConfigurationMaxLevelAttributeInteractionInfo); + Map writeBallastConfigurationIntrinsicBallastFactorCommandParams = + new LinkedHashMap(); CommandParameterInfo ballastConfigurationintrinsicBallastFactorCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeBallastConfigurationIntrinsicBallastFactorCommandParams.put( - "value", - ballastConfigurationintrinsicBallastFactorCommandParameterInfo - ); - InteractionInfo writeBallastConfigurationIntrinsicBallastFactorAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster).writeIntrinsicBallastFactorAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationIntrinsicBallastFactorCommandParams - ); - writeBallastConfigurationInteractionInfo.put("writeIntrinsicBallastFactorAttribute", writeBallastConfigurationIntrinsicBallastFactorAttributeInteractionInfo); - Map writeBallastConfigurationBallastFactorAdjustmentCommandParams = new LinkedHashMap(); + "value", ballastConfigurationintrinsicBallastFactorCommandParameterInfo); + InteractionInfo writeBallastConfigurationIntrinsicBallastFactorAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster) + .writeIntrinsicBallastFactorAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationIntrinsicBallastFactorCommandParams); + writeBallastConfigurationInteractionInfo.put( + "writeIntrinsicBallastFactorAttribute", + writeBallastConfigurationIntrinsicBallastFactorAttributeInteractionInfo); + Map + writeBallastConfigurationBallastFactorAdjustmentCommandParams = + new LinkedHashMap(); CommandParameterInfo ballastConfigurationballastFactorAdjustmentCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeBallastConfigurationBallastFactorAdjustmentCommandParams.put( - "value", - ballastConfigurationballastFactorAdjustmentCommandParameterInfo - ); - InteractionInfo writeBallastConfigurationBallastFactorAdjustmentAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster).writeBallastFactorAdjustmentAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationBallastFactorAdjustmentCommandParams - ); - writeBallastConfigurationInteractionInfo.put("writeBallastFactorAdjustmentAttribute", writeBallastConfigurationBallastFactorAdjustmentAttributeInteractionInfo); - Map writeBallastConfigurationLampTypeCommandParams = new LinkedHashMap(); + "value", ballastConfigurationballastFactorAdjustmentCommandParameterInfo); + InteractionInfo writeBallastConfigurationBallastFactorAdjustmentAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster) + .writeBallastFactorAdjustmentAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationBallastFactorAdjustmentCommandParams); + writeBallastConfigurationInteractionInfo.put( + "writeBallastFactorAdjustmentAttribute", + writeBallastConfigurationBallastFactorAdjustmentAttributeInteractionInfo); + Map writeBallastConfigurationLampTypeCommandParams = + new LinkedHashMap(); CommandParameterInfo ballastConfigurationlampTypeCommandParameterInfo = - new CommandParameterInfo( - "value", - String.class, - String.class - ); + new CommandParameterInfo("value", String.class, String.class); writeBallastConfigurationLampTypeCommandParams.put( - "value", - ballastConfigurationlampTypeCommandParameterInfo - ); - InteractionInfo writeBallastConfigurationLampTypeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster).writeLampTypeAttribute( - (DefaultClusterCallback) callback, - (String) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationLampTypeCommandParams - ); - writeBallastConfigurationInteractionInfo.put("writeLampTypeAttribute", writeBallastConfigurationLampTypeAttributeInteractionInfo); - Map writeBallastConfigurationLampManufacturerCommandParams = new LinkedHashMap(); + "value", ballastConfigurationlampTypeCommandParameterInfo); + InteractionInfo writeBallastConfigurationLampTypeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster) + .writeLampTypeAttribute( + (DefaultClusterCallback) callback, (String) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationLampTypeCommandParams); + writeBallastConfigurationInteractionInfo.put( + "writeLampTypeAttribute", writeBallastConfigurationLampTypeAttributeInteractionInfo); + Map writeBallastConfigurationLampManufacturerCommandParams = + new LinkedHashMap(); CommandParameterInfo ballastConfigurationlampManufacturerCommandParameterInfo = - new CommandParameterInfo( - "value", - String.class, - String.class - ); + new CommandParameterInfo("value", String.class, String.class); writeBallastConfigurationLampManufacturerCommandParams.put( - "value", - ballastConfigurationlampManufacturerCommandParameterInfo - ); - InteractionInfo writeBallastConfigurationLampManufacturerAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster).writeLampManufacturerAttribute( - (DefaultClusterCallback) callback, - (String) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationLampManufacturerCommandParams - ); - writeBallastConfigurationInteractionInfo.put("writeLampManufacturerAttribute", writeBallastConfigurationLampManufacturerAttributeInteractionInfo); - Map writeBallastConfigurationLampRatedHoursCommandParams = new LinkedHashMap(); + "value", ballastConfigurationlampManufacturerCommandParameterInfo); + InteractionInfo writeBallastConfigurationLampManufacturerAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster) + .writeLampManufacturerAttribute( + (DefaultClusterCallback) callback, (String) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationLampManufacturerCommandParams); + writeBallastConfigurationInteractionInfo.put( + "writeLampManufacturerAttribute", + writeBallastConfigurationLampManufacturerAttributeInteractionInfo); + Map writeBallastConfigurationLampRatedHoursCommandParams = + new LinkedHashMap(); CommandParameterInfo ballastConfigurationlampRatedHoursCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeBallastConfigurationLampRatedHoursCommandParams.put( - "value", - ballastConfigurationlampRatedHoursCommandParameterInfo - ); - InteractionInfo writeBallastConfigurationLampRatedHoursAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster).writeLampRatedHoursAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationLampRatedHoursCommandParams - ); - writeBallastConfigurationInteractionInfo.put("writeLampRatedHoursAttribute", writeBallastConfigurationLampRatedHoursAttributeInteractionInfo); - Map writeBallastConfigurationLampBurnHoursCommandParams = new LinkedHashMap(); + "value", ballastConfigurationlampRatedHoursCommandParameterInfo); + InteractionInfo writeBallastConfigurationLampRatedHoursAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster) + .writeLampRatedHoursAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationLampRatedHoursCommandParams); + writeBallastConfigurationInteractionInfo.put( + "writeLampRatedHoursAttribute", + writeBallastConfigurationLampRatedHoursAttributeInteractionInfo); + Map writeBallastConfigurationLampBurnHoursCommandParams = + new LinkedHashMap(); CommandParameterInfo ballastConfigurationlampBurnHoursCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeBallastConfigurationLampBurnHoursCommandParams.put( - "value", - ballastConfigurationlampBurnHoursCommandParameterInfo - ); - InteractionInfo writeBallastConfigurationLampBurnHoursAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster).writeLampBurnHoursAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationLampBurnHoursCommandParams - ); - writeBallastConfigurationInteractionInfo.put("writeLampBurnHoursAttribute", writeBallastConfigurationLampBurnHoursAttributeInteractionInfo); - Map writeBallastConfigurationLampAlarmModeCommandParams = new LinkedHashMap(); + "value", ballastConfigurationlampBurnHoursCommandParameterInfo); + InteractionInfo writeBallastConfigurationLampBurnHoursAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster) + .writeLampBurnHoursAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationLampBurnHoursCommandParams); + writeBallastConfigurationInteractionInfo.put( + "writeLampBurnHoursAttribute", + writeBallastConfigurationLampBurnHoursAttributeInteractionInfo); + Map writeBallastConfigurationLampAlarmModeCommandParams = + new LinkedHashMap(); CommandParameterInfo ballastConfigurationlampAlarmModeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeBallastConfigurationLampAlarmModeCommandParams.put( - "value", - ballastConfigurationlampAlarmModeCommandParameterInfo - ); - InteractionInfo writeBallastConfigurationLampAlarmModeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster).writeLampAlarmModeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationLampAlarmModeCommandParams - ); - writeBallastConfigurationInteractionInfo.put("writeLampAlarmModeAttribute", writeBallastConfigurationLampAlarmModeAttributeInteractionInfo); - Map writeBallastConfigurationLampBurnHoursTripPointCommandParams = new LinkedHashMap(); + "value", ballastConfigurationlampAlarmModeCommandParameterInfo); + InteractionInfo writeBallastConfigurationLampAlarmModeAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster) + .writeLampAlarmModeAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationLampAlarmModeCommandParams); + writeBallastConfigurationInteractionInfo.put( + "writeLampAlarmModeAttribute", + writeBallastConfigurationLampAlarmModeAttributeInteractionInfo); + Map writeBallastConfigurationLampBurnHoursTripPointCommandParams = + new LinkedHashMap(); CommandParameterInfo ballastConfigurationlampBurnHoursTripPointCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeBallastConfigurationLampBurnHoursTripPointCommandParams.put( - "value", - ballastConfigurationlampBurnHoursTripPointCommandParameterInfo - ); - InteractionInfo writeBallastConfigurationLampBurnHoursTripPointAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.BallastConfigurationCluster) cluster).writeLampBurnHoursTripPointAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeBallastConfigurationLampBurnHoursTripPointCommandParams - ); - writeBallastConfigurationInteractionInfo.put("writeLampBurnHoursTripPointAttribute", writeBallastConfigurationLampBurnHoursTripPointAttributeInteractionInfo); + "value", ballastConfigurationlampBurnHoursTripPointCommandParameterInfo); + InteractionInfo writeBallastConfigurationLampBurnHoursTripPointAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BallastConfigurationCluster) cluster) + .writeLampBurnHoursTripPointAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeBallastConfigurationLampBurnHoursTripPointCommandParams); + writeBallastConfigurationInteractionInfo.put( + "writeLampBurnHoursTripPointAttribute", + writeBallastConfigurationLampBurnHoursTripPointAttributeInteractionInfo); writeAttributeMap.put("ballastConfiguration", writeBallastConfigurationInteractionInfo); Map writeIlluminanceMeasurementInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("illuminanceMeasurement", writeIlluminanceMeasurementInteractionInfo); @@ -2286,8 +1856,10 @@ public Map> getWriteAttributeMap() { writeAttributeMap.put("pressureMeasurement", writePressureMeasurementInteractionInfo); Map writeFlowMeasurementInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("flowMeasurement", writeFlowMeasurementInteractionInfo); - Map writeRelativeHumidityMeasurementInteractionInfo = new LinkedHashMap<>(); - writeAttributeMap.put("relativeHumidityMeasurement", writeRelativeHumidityMeasurementInteractionInfo); + Map writeRelativeHumidityMeasurementInteractionInfo = + new LinkedHashMap<>(); + writeAttributeMap.put( + "relativeHumidityMeasurement", writeRelativeHumidityMeasurementInteractionInfo); Map writeOccupancySensingInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("occupancySensing", writeOccupancySensingInteractionInfo); Map writeWakeOnLanInteractionInfo = new LinkedHashMap<>(); @@ -2305,28 +1877,24 @@ public Map> getWriteAttributeMap() { Map writeKeypadInputInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("keypadInput", writeKeypadInputInteractionInfo); Map writeContentLauncherInteractionInfo = new LinkedHashMap<>(); - Map writeContentLauncherSupportedStreamingProtocolsCommandParams = new LinkedHashMap(); + Map writeContentLauncherSupportedStreamingProtocolsCommandParams = + new LinkedHashMap(); CommandParameterInfo contentLaunchersupportedStreamingProtocolsCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeContentLauncherSupportedStreamingProtocolsCommandParams.put( - "value", - contentLaunchersupportedStreamingProtocolsCommandParameterInfo - ); - InteractionInfo writeContentLauncherSupportedStreamingProtocolsAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ContentLauncherCluster) cluster).writeSupportedStreamingProtocolsAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeContentLauncherSupportedStreamingProtocolsCommandParams - ); - writeContentLauncherInteractionInfo.put("writeSupportedStreamingProtocolsAttribute", writeContentLauncherSupportedStreamingProtocolsAttributeInteractionInfo); + "value", contentLaunchersupportedStreamingProtocolsCommandParameterInfo); + InteractionInfo writeContentLauncherSupportedStreamingProtocolsAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ContentLauncherCluster) cluster) + .writeSupportedStreamingProtocolsAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeContentLauncherSupportedStreamingProtocolsCommandParams); + writeContentLauncherInteractionInfo.put( + "writeSupportedStreamingProtocolsAttribute", + writeContentLauncherSupportedStreamingProtocolsAttributeInteractionInfo); writeAttributeMap.put("contentLauncher", writeContentLauncherInteractionInfo); Map writeAudioOutputInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("audioOutput", writeAudioOutputInteractionInfo); @@ -2341,1612 +1909,1237 @@ public Map> getWriteAttributeMap() { Map writeClientMonitoringInteractionInfo = new LinkedHashMap<>(); writeAttributeMap.put("clientMonitoring", writeClientMonitoringInteractionInfo); Map writeUnitTestingInteractionInfo = new LinkedHashMap<>(); - Map writeUnitTestingBooleanCommandParams = new LinkedHashMap(); + Map writeUnitTestingBooleanCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingbooleanCommandParameterInfo = - new CommandParameterInfo( - "value", - Boolean.class, - Boolean.class - ); - writeUnitTestingBooleanCommandParams.put( - "value", - unitTestingbooleanCommandParameterInfo - ); - InteractionInfo writeUnitTestingBooleanAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeBooleanAttribute( - (DefaultClusterCallback) callback, - (Boolean) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingBooleanCommandParams - ); - writeUnitTestingInteractionInfo.put("writeBooleanAttribute", writeUnitTestingBooleanAttributeInteractionInfo); - Map writeUnitTestingBitmap8CommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Boolean.class, Boolean.class); + writeUnitTestingBooleanCommandParams.put("value", unitTestingbooleanCommandParameterInfo); + InteractionInfo writeUnitTestingBooleanAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeBooleanAttribute( + (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingBooleanCommandParams); + writeUnitTestingInteractionInfo.put( + "writeBooleanAttribute", writeUnitTestingBooleanAttributeInteractionInfo); + Map writeUnitTestingBitmap8CommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingbitmap8CommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeUnitTestingBitmap8CommandParams.put( - "value", - unitTestingbitmap8CommandParameterInfo - ); - InteractionInfo writeUnitTestingBitmap8AttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeBitmap8Attribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingBitmap8CommandParams - ); - writeUnitTestingInteractionInfo.put("writeBitmap8Attribute", writeUnitTestingBitmap8AttributeInteractionInfo); - Map writeUnitTestingBitmap16CommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeUnitTestingBitmap8CommandParams.put("value", unitTestingbitmap8CommandParameterInfo); + InteractionInfo writeUnitTestingBitmap8AttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeBitmap8Attribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingBitmap8CommandParams); + writeUnitTestingInteractionInfo.put( + "writeBitmap8Attribute", writeUnitTestingBitmap8AttributeInteractionInfo); + Map writeUnitTestingBitmap16CommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingbitmap16CommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeUnitTestingBitmap16CommandParams.put( - "value", - unitTestingbitmap16CommandParameterInfo - ); - InteractionInfo writeUnitTestingBitmap16AttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeBitmap16Attribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingBitmap16CommandParams - ); - writeUnitTestingInteractionInfo.put("writeBitmap16Attribute", writeUnitTestingBitmap16AttributeInteractionInfo); - Map writeUnitTestingBitmap32CommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeUnitTestingBitmap16CommandParams.put("value", unitTestingbitmap16CommandParameterInfo); + InteractionInfo writeUnitTestingBitmap16AttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeBitmap16Attribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingBitmap16CommandParams); + writeUnitTestingInteractionInfo.put( + "writeBitmap16Attribute", writeUnitTestingBitmap16AttributeInteractionInfo); + Map writeUnitTestingBitmap32CommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingbitmap32CommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); - writeUnitTestingBitmap32CommandParams.put( - "value", - unitTestingbitmap32CommandParameterInfo - ); - InteractionInfo writeUnitTestingBitmap32AttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeBitmap32Attribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingBitmap32CommandParams - ); - writeUnitTestingInteractionInfo.put("writeBitmap32Attribute", writeUnitTestingBitmap32AttributeInteractionInfo); - Map writeUnitTestingBitmap64CommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Long.class, Long.class); + writeUnitTestingBitmap32CommandParams.put("value", unitTestingbitmap32CommandParameterInfo); + InteractionInfo writeUnitTestingBitmap32AttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeBitmap32Attribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingBitmap32CommandParams); + writeUnitTestingInteractionInfo.put( + "writeBitmap32Attribute", writeUnitTestingBitmap32AttributeInteractionInfo); + Map writeUnitTestingBitmap64CommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingbitmap64CommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); - writeUnitTestingBitmap64CommandParams.put( - "value", - unitTestingbitmap64CommandParameterInfo - ); - InteractionInfo writeUnitTestingBitmap64AttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeBitmap64Attribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingBitmap64CommandParams - ); - writeUnitTestingInteractionInfo.put("writeBitmap64Attribute", writeUnitTestingBitmap64AttributeInteractionInfo); - Map writeUnitTestingInt8uCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Long.class, Long.class); + writeUnitTestingBitmap64CommandParams.put("value", unitTestingbitmap64CommandParameterInfo); + InteractionInfo writeUnitTestingBitmap64AttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeBitmap64Attribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingBitmap64CommandParams); + writeUnitTestingInteractionInfo.put( + "writeBitmap64Attribute", writeUnitTestingBitmap64AttributeInteractionInfo); + Map writeUnitTestingInt8uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingint8uCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeUnitTestingInt8uCommandParams.put( - "value", - unitTestingint8uCommandParameterInfo - ); - InteractionInfo writeUnitTestingInt8uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeInt8uAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt8uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeInt8uAttribute", writeUnitTestingInt8uAttributeInteractionInfo); - Map writeUnitTestingInt16uCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeUnitTestingInt8uCommandParams.put("value", unitTestingint8uCommandParameterInfo); + InteractionInfo writeUnitTestingInt8uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeInt8uAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt8uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeInt8uAttribute", writeUnitTestingInt8uAttributeInteractionInfo); + Map writeUnitTestingInt16uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingint16uCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeUnitTestingInt16uCommandParams.put( - "value", - unitTestingint16uCommandParameterInfo - ); - InteractionInfo writeUnitTestingInt16uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeInt16uAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt16uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeInt16uAttribute", writeUnitTestingInt16uAttributeInteractionInfo); - Map writeUnitTestingInt24uCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeUnitTestingInt16uCommandParams.put("value", unitTestingint16uCommandParameterInfo); + InteractionInfo writeUnitTestingInt16uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeInt16uAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt16uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeInt16uAttribute", writeUnitTestingInt16uAttributeInteractionInfo); + Map writeUnitTestingInt24uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingint24uCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); - writeUnitTestingInt24uCommandParams.put( - "value", - unitTestingint24uCommandParameterInfo - ); - InteractionInfo writeUnitTestingInt24uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeInt24uAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt24uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeInt24uAttribute", writeUnitTestingInt24uAttributeInteractionInfo); - Map writeUnitTestingInt32uCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Long.class, Long.class); + writeUnitTestingInt24uCommandParams.put("value", unitTestingint24uCommandParameterInfo); + InteractionInfo writeUnitTestingInt24uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeInt24uAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt24uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeInt24uAttribute", writeUnitTestingInt24uAttributeInteractionInfo); + Map writeUnitTestingInt32uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingint32uCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); - writeUnitTestingInt32uCommandParams.put( - "value", - unitTestingint32uCommandParameterInfo - ); - InteractionInfo writeUnitTestingInt32uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeInt32uAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt32uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeInt32uAttribute", writeUnitTestingInt32uAttributeInteractionInfo); - Map writeUnitTestingInt40uCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Long.class, Long.class); + writeUnitTestingInt32uCommandParams.put("value", unitTestingint32uCommandParameterInfo); + InteractionInfo writeUnitTestingInt32uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeInt32uAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt32uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeInt32uAttribute", writeUnitTestingInt32uAttributeInteractionInfo); + Map writeUnitTestingInt40uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingint40uCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); - writeUnitTestingInt40uCommandParams.put( - "value", - unitTestingint40uCommandParameterInfo - ); - InteractionInfo writeUnitTestingInt40uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeInt40uAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt40uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeInt40uAttribute", writeUnitTestingInt40uAttributeInteractionInfo); - Map writeUnitTestingInt48uCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Long.class, Long.class); + writeUnitTestingInt40uCommandParams.put("value", unitTestingint40uCommandParameterInfo); + InteractionInfo writeUnitTestingInt40uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeInt40uAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt40uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeInt40uAttribute", writeUnitTestingInt40uAttributeInteractionInfo); + Map writeUnitTestingInt48uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingint48uCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); - writeUnitTestingInt48uCommandParams.put( - "value", - unitTestingint48uCommandParameterInfo - ); - InteractionInfo writeUnitTestingInt48uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeInt48uAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt48uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeInt48uAttribute", writeUnitTestingInt48uAttributeInteractionInfo); - Map writeUnitTestingInt56uCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Long.class, Long.class); + writeUnitTestingInt48uCommandParams.put("value", unitTestingint48uCommandParameterInfo); + InteractionInfo writeUnitTestingInt48uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeInt48uAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt48uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeInt48uAttribute", writeUnitTestingInt48uAttributeInteractionInfo); + Map writeUnitTestingInt56uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingint56uCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); - writeUnitTestingInt56uCommandParams.put( - "value", - unitTestingint56uCommandParameterInfo - ); - InteractionInfo writeUnitTestingInt56uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeInt56uAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt56uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeInt56uAttribute", writeUnitTestingInt56uAttributeInteractionInfo); - Map writeUnitTestingInt64uCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Long.class, Long.class); + writeUnitTestingInt56uCommandParams.put("value", unitTestingint56uCommandParameterInfo); + InteractionInfo writeUnitTestingInt56uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeInt56uAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt56uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeInt56uAttribute", writeUnitTestingInt56uAttributeInteractionInfo); + Map writeUnitTestingInt64uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingint64uCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); - writeUnitTestingInt64uCommandParams.put( - "value", - unitTestingint64uCommandParameterInfo - ); - InteractionInfo writeUnitTestingInt64uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeInt64uAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt64uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeInt64uAttribute", writeUnitTestingInt64uAttributeInteractionInfo); - Map writeUnitTestingInt8sCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Long.class, Long.class); + writeUnitTestingInt64uCommandParams.put("value", unitTestingint64uCommandParameterInfo); + InteractionInfo writeUnitTestingInt64uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeInt64uAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt64uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeInt64uAttribute", writeUnitTestingInt64uAttributeInteractionInfo); + Map writeUnitTestingInt8sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingint8sCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeUnitTestingInt8sCommandParams.put( - "value", - unitTestingint8sCommandParameterInfo - ); - InteractionInfo writeUnitTestingInt8sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeInt8sAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt8sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeInt8sAttribute", writeUnitTestingInt8sAttributeInteractionInfo); - Map writeUnitTestingInt16sCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeUnitTestingInt8sCommandParams.put("value", unitTestingint8sCommandParameterInfo); + InteractionInfo writeUnitTestingInt8sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeInt8sAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt8sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeInt8sAttribute", writeUnitTestingInt8sAttributeInteractionInfo); + Map writeUnitTestingInt16sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingint16sCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeUnitTestingInt16sCommandParams.put( - "value", - unitTestingint16sCommandParameterInfo - ); - InteractionInfo writeUnitTestingInt16sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeInt16sAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt16sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeInt16sAttribute", writeUnitTestingInt16sAttributeInteractionInfo); - Map writeUnitTestingInt24sCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeUnitTestingInt16sCommandParams.put("value", unitTestingint16sCommandParameterInfo); + InteractionInfo writeUnitTestingInt16sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeInt16sAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt16sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeInt16sAttribute", writeUnitTestingInt16sAttributeInteractionInfo); + Map writeUnitTestingInt24sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingint24sCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); - writeUnitTestingInt24sCommandParams.put( - "value", - unitTestingint24sCommandParameterInfo - ); - InteractionInfo writeUnitTestingInt24sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeInt24sAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt24sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeInt24sAttribute", writeUnitTestingInt24sAttributeInteractionInfo); - Map writeUnitTestingInt32sCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Long.class, Long.class); + writeUnitTestingInt24sCommandParams.put("value", unitTestingint24sCommandParameterInfo); + InteractionInfo writeUnitTestingInt24sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeInt24sAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt24sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeInt24sAttribute", writeUnitTestingInt24sAttributeInteractionInfo); + Map writeUnitTestingInt32sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingint32sCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); - writeUnitTestingInt32sCommandParams.put( - "value", - unitTestingint32sCommandParameterInfo - ); - InteractionInfo writeUnitTestingInt32sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeInt32sAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt32sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeInt32sAttribute", writeUnitTestingInt32sAttributeInteractionInfo); - Map writeUnitTestingInt40sCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Long.class, Long.class); + writeUnitTestingInt32sCommandParams.put("value", unitTestingint32sCommandParameterInfo); + InteractionInfo writeUnitTestingInt32sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeInt32sAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt32sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeInt32sAttribute", writeUnitTestingInt32sAttributeInteractionInfo); + Map writeUnitTestingInt40sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingint40sCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); - writeUnitTestingInt40sCommandParams.put( - "value", - unitTestingint40sCommandParameterInfo - ); - InteractionInfo writeUnitTestingInt40sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeInt40sAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt40sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeInt40sAttribute", writeUnitTestingInt40sAttributeInteractionInfo); - Map writeUnitTestingInt48sCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Long.class, Long.class); + writeUnitTestingInt40sCommandParams.put("value", unitTestingint40sCommandParameterInfo); + InteractionInfo writeUnitTestingInt40sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeInt40sAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt40sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeInt40sAttribute", writeUnitTestingInt40sAttributeInteractionInfo); + Map writeUnitTestingInt48sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingint48sCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); - writeUnitTestingInt48sCommandParams.put( - "value", - unitTestingint48sCommandParameterInfo - ); - InteractionInfo writeUnitTestingInt48sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeInt48sAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt48sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeInt48sAttribute", writeUnitTestingInt48sAttributeInteractionInfo); - Map writeUnitTestingInt56sCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Long.class, Long.class); + writeUnitTestingInt48sCommandParams.put("value", unitTestingint48sCommandParameterInfo); + InteractionInfo writeUnitTestingInt48sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeInt48sAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt48sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeInt48sAttribute", writeUnitTestingInt48sAttributeInteractionInfo); + Map writeUnitTestingInt56sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingint56sCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); - writeUnitTestingInt56sCommandParams.put( - "value", - unitTestingint56sCommandParameterInfo - ); - InteractionInfo writeUnitTestingInt56sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeInt56sAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt56sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeInt56sAttribute", writeUnitTestingInt56sAttributeInteractionInfo); - Map writeUnitTestingInt64sCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Long.class, Long.class); + writeUnitTestingInt56sCommandParams.put("value", unitTestingint56sCommandParameterInfo); + InteractionInfo writeUnitTestingInt56sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeInt56sAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt56sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeInt56sAttribute", writeUnitTestingInt56sAttributeInteractionInfo); + Map writeUnitTestingInt64sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingint64sCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); - writeUnitTestingInt64sCommandParams.put( - "value", - unitTestingint64sCommandParameterInfo - ); - InteractionInfo writeUnitTestingInt64sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeInt64sAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingInt64sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeInt64sAttribute", writeUnitTestingInt64sAttributeInteractionInfo); - Map writeUnitTestingEnum8CommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Long.class, Long.class); + writeUnitTestingInt64sCommandParams.put("value", unitTestingint64sCommandParameterInfo); + InteractionInfo writeUnitTestingInt64sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeInt64sAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingInt64sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeInt64sAttribute", writeUnitTestingInt64sAttributeInteractionInfo); + Map writeUnitTestingEnum8CommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingenum8CommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeUnitTestingEnum8CommandParams.put( - "value", - unitTestingenum8CommandParameterInfo - ); - InteractionInfo writeUnitTestingEnum8AttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeEnum8Attribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingEnum8CommandParams - ); - writeUnitTestingInteractionInfo.put("writeEnum8Attribute", writeUnitTestingEnum8AttributeInteractionInfo); - Map writeUnitTestingEnum16CommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeUnitTestingEnum8CommandParams.put("value", unitTestingenum8CommandParameterInfo); + InteractionInfo writeUnitTestingEnum8AttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeEnum8Attribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingEnum8CommandParams); + writeUnitTestingInteractionInfo.put( + "writeEnum8Attribute", writeUnitTestingEnum8AttributeInteractionInfo); + Map writeUnitTestingEnum16CommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingenum16CommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeUnitTestingEnum16CommandParams.put( - "value", - unitTestingenum16CommandParameterInfo - ); - InteractionInfo writeUnitTestingEnum16AttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeEnum16Attribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingEnum16CommandParams - ); - writeUnitTestingInteractionInfo.put("writeEnum16Attribute", writeUnitTestingEnum16AttributeInteractionInfo); - Map writeUnitTestingFloatSingleCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeUnitTestingEnum16CommandParams.put("value", unitTestingenum16CommandParameterInfo); + InteractionInfo writeUnitTestingEnum16AttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeEnum16Attribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingEnum16CommandParams); + writeUnitTestingInteractionInfo.put( + "writeEnum16Attribute", writeUnitTestingEnum16AttributeInteractionInfo); + Map writeUnitTestingFloatSingleCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingfloatSingleCommandParameterInfo = - new CommandParameterInfo( - "value", - Float.class, - Float.class - ); + new CommandParameterInfo("value", Float.class, Float.class); writeUnitTestingFloatSingleCommandParams.put( - "value", - unitTestingfloatSingleCommandParameterInfo - ); - InteractionInfo writeUnitTestingFloatSingleAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeFloatSingleAttribute( - (DefaultClusterCallback) callback, - (Float) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingFloatSingleCommandParams - ); - writeUnitTestingInteractionInfo.put("writeFloatSingleAttribute", writeUnitTestingFloatSingleAttributeInteractionInfo); - Map writeUnitTestingFloatDoubleCommandParams = new LinkedHashMap(); + "value", unitTestingfloatSingleCommandParameterInfo); + InteractionInfo writeUnitTestingFloatSingleAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeFloatSingleAttribute( + (DefaultClusterCallback) callback, (Float) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingFloatSingleCommandParams); + writeUnitTestingInteractionInfo.put( + "writeFloatSingleAttribute", writeUnitTestingFloatSingleAttributeInteractionInfo); + Map writeUnitTestingFloatDoubleCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingfloatDoubleCommandParameterInfo = - new CommandParameterInfo( - "value", - Double.class, - Double.class - ); + new CommandParameterInfo("value", Double.class, Double.class); writeUnitTestingFloatDoubleCommandParams.put( - "value", - unitTestingfloatDoubleCommandParameterInfo - ); - InteractionInfo writeUnitTestingFloatDoubleAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeFloatDoubleAttribute( - (DefaultClusterCallback) callback, - (Double) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingFloatDoubleCommandParams - ); - writeUnitTestingInteractionInfo.put("writeFloatDoubleAttribute", writeUnitTestingFloatDoubleAttributeInteractionInfo); - Map writeUnitTestingOctetStringCommandParams = new LinkedHashMap(); + "value", unitTestingfloatDoubleCommandParameterInfo); + InteractionInfo writeUnitTestingFloatDoubleAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeFloatDoubleAttribute( + (DefaultClusterCallback) callback, (Double) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingFloatDoubleCommandParams); + writeUnitTestingInteractionInfo.put( + "writeFloatDoubleAttribute", writeUnitTestingFloatDoubleAttributeInteractionInfo); + Map writeUnitTestingOctetStringCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingoctetStringCommandParameterInfo = - new CommandParameterInfo( - "value", - byte[].class, - byte[].class - ); + new CommandParameterInfo("value", byte[].class, byte[].class); writeUnitTestingOctetStringCommandParams.put( - "value", - unitTestingoctetStringCommandParameterInfo - ); - InteractionInfo writeUnitTestingOctetStringAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeOctetStringAttribute( - (DefaultClusterCallback) callback, - (byte[]) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingOctetStringCommandParams - ); - writeUnitTestingInteractionInfo.put("writeOctetStringAttribute", writeUnitTestingOctetStringAttributeInteractionInfo); - Map writeUnitTestingLongOctetStringCommandParams = new LinkedHashMap(); + "value", unitTestingoctetStringCommandParameterInfo); + InteractionInfo writeUnitTestingOctetStringAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeOctetStringAttribute( + (DefaultClusterCallback) callback, (byte[]) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingOctetStringCommandParams); + writeUnitTestingInteractionInfo.put( + "writeOctetStringAttribute", writeUnitTestingOctetStringAttributeInteractionInfo); + Map writeUnitTestingLongOctetStringCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestinglongOctetStringCommandParameterInfo = - new CommandParameterInfo( - "value", - byte[].class, - byte[].class - ); + new CommandParameterInfo("value", byte[].class, byte[].class); writeUnitTestingLongOctetStringCommandParams.put( - "value", - unitTestinglongOctetStringCommandParameterInfo - ); - InteractionInfo writeUnitTestingLongOctetStringAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeLongOctetStringAttribute( - (DefaultClusterCallback) callback, - (byte[]) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingLongOctetStringCommandParams - ); - writeUnitTestingInteractionInfo.put("writeLongOctetStringAttribute", writeUnitTestingLongOctetStringAttributeInteractionInfo); - Map writeUnitTestingCharStringCommandParams = new LinkedHashMap(); + "value", unitTestinglongOctetStringCommandParameterInfo); + InteractionInfo writeUnitTestingLongOctetStringAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeLongOctetStringAttribute( + (DefaultClusterCallback) callback, (byte[]) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingLongOctetStringCommandParams); + writeUnitTestingInteractionInfo.put( + "writeLongOctetStringAttribute", writeUnitTestingLongOctetStringAttributeInteractionInfo); + Map writeUnitTestingCharStringCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingcharStringCommandParameterInfo = - new CommandParameterInfo( - "value", - String.class, - String.class - ); - writeUnitTestingCharStringCommandParams.put( - "value", - unitTestingcharStringCommandParameterInfo - ); - InteractionInfo writeUnitTestingCharStringAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeCharStringAttribute( - (DefaultClusterCallback) callback, - (String) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingCharStringCommandParams - ); - writeUnitTestingInteractionInfo.put("writeCharStringAttribute", writeUnitTestingCharStringAttributeInteractionInfo); - Map writeUnitTestingLongCharStringCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", String.class, String.class); + writeUnitTestingCharStringCommandParams.put("value", unitTestingcharStringCommandParameterInfo); + InteractionInfo writeUnitTestingCharStringAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeCharStringAttribute( + (DefaultClusterCallback) callback, (String) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingCharStringCommandParams); + writeUnitTestingInteractionInfo.put( + "writeCharStringAttribute", writeUnitTestingCharStringAttributeInteractionInfo); + Map writeUnitTestingLongCharStringCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestinglongCharStringCommandParameterInfo = - new CommandParameterInfo( - "value", - String.class, - String.class - ); + new CommandParameterInfo("value", String.class, String.class); writeUnitTestingLongCharStringCommandParams.put( - "value", - unitTestinglongCharStringCommandParameterInfo - ); - InteractionInfo writeUnitTestingLongCharStringAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeLongCharStringAttribute( - (DefaultClusterCallback) callback, - (String) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingLongCharStringCommandParams - ); - writeUnitTestingInteractionInfo.put("writeLongCharStringAttribute", writeUnitTestingLongCharStringAttributeInteractionInfo); - Map writeUnitTestingEpochUsCommandParams = new LinkedHashMap(); + "value", unitTestinglongCharStringCommandParameterInfo); + InteractionInfo writeUnitTestingLongCharStringAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeLongCharStringAttribute( + (DefaultClusterCallback) callback, (String) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingLongCharStringCommandParams); + writeUnitTestingInteractionInfo.put( + "writeLongCharStringAttribute", writeUnitTestingLongCharStringAttributeInteractionInfo); + Map writeUnitTestingEpochUsCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingepochUsCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); - writeUnitTestingEpochUsCommandParams.put( - "value", - unitTestingepochUsCommandParameterInfo - ); - InteractionInfo writeUnitTestingEpochUsAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeEpochUsAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingEpochUsCommandParams - ); - writeUnitTestingInteractionInfo.put("writeEpochUsAttribute", writeUnitTestingEpochUsAttributeInteractionInfo); - Map writeUnitTestingEpochSCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Long.class, Long.class); + writeUnitTestingEpochUsCommandParams.put("value", unitTestingepochUsCommandParameterInfo); + InteractionInfo writeUnitTestingEpochUsAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeEpochUsAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingEpochUsCommandParams); + writeUnitTestingInteractionInfo.put( + "writeEpochUsAttribute", writeUnitTestingEpochUsAttributeInteractionInfo); + Map writeUnitTestingEpochSCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingepochSCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); - writeUnitTestingEpochSCommandParams.put( - "value", - unitTestingepochSCommandParameterInfo - ); - InteractionInfo writeUnitTestingEpochSAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeEpochSAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingEpochSCommandParams - ); - writeUnitTestingInteractionInfo.put("writeEpochSAttribute", writeUnitTestingEpochSAttributeInteractionInfo); - Map writeUnitTestingVendorIdCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Long.class, Long.class); + writeUnitTestingEpochSCommandParams.put("value", unitTestingepochSCommandParameterInfo); + InteractionInfo writeUnitTestingEpochSAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeEpochSAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingEpochSCommandParams); + writeUnitTestingInteractionInfo.put( + "writeEpochSAttribute", writeUnitTestingEpochSAttributeInteractionInfo); + Map writeUnitTestingVendorIdCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingvendorIdCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeUnitTestingVendorIdCommandParams.put( - "value", - unitTestingvendorIdCommandParameterInfo - ); - InteractionInfo writeUnitTestingVendorIdAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeVendorIdAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingVendorIdCommandParams - ); - writeUnitTestingInteractionInfo.put("writeVendorIdAttribute", writeUnitTestingVendorIdAttributeInteractionInfo); - Map writeUnitTestingEnumAttrCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeUnitTestingVendorIdCommandParams.put("value", unitTestingvendorIdCommandParameterInfo); + InteractionInfo writeUnitTestingVendorIdAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeVendorIdAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingVendorIdCommandParams); + writeUnitTestingInteractionInfo.put( + "writeVendorIdAttribute", writeUnitTestingVendorIdAttributeInteractionInfo); + Map writeUnitTestingEnumAttrCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingenumAttrCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeUnitTestingEnumAttrCommandParams.put( - "value", - unitTestingenumAttrCommandParameterInfo - ); - InteractionInfo writeUnitTestingEnumAttrAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeEnumAttrAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingEnumAttrCommandParams - ); - writeUnitTestingInteractionInfo.put("writeEnumAttrAttribute", writeUnitTestingEnumAttrAttributeInteractionInfo); - Map writeUnitTestingRangeRestrictedInt8uCommandParams = new LinkedHashMap(); + new CommandParameterInfo("value", Integer.class, Integer.class); + writeUnitTestingEnumAttrCommandParams.put("value", unitTestingenumAttrCommandParameterInfo); + InteractionInfo writeUnitTestingEnumAttrAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeEnumAttrAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingEnumAttrCommandParams); + writeUnitTestingInteractionInfo.put( + "writeEnumAttrAttribute", writeUnitTestingEnumAttrAttributeInteractionInfo); + Map writeUnitTestingRangeRestrictedInt8uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingrangeRestrictedInt8uCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitTestingRangeRestrictedInt8uCommandParams.put( - "value", - unitTestingrangeRestrictedInt8uCommandParameterInfo - ); - InteractionInfo writeUnitTestingRangeRestrictedInt8uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeRangeRestrictedInt8uAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingRangeRestrictedInt8uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeRangeRestrictedInt8uAttribute", writeUnitTestingRangeRestrictedInt8uAttributeInteractionInfo); - Map writeUnitTestingRangeRestrictedInt8sCommandParams = new LinkedHashMap(); + "value", unitTestingrangeRestrictedInt8uCommandParameterInfo); + InteractionInfo writeUnitTestingRangeRestrictedInt8uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeRangeRestrictedInt8uAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingRangeRestrictedInt8uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeRangeRestrictedInt8uAttribute", + writeUnitTestingRangeRestrictedInt8uAttributeInteractionInfo); + Map writeUnitTestingRangeRestrictedInt8sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingrangeRestrictedInt8sCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitTestingRangeRestrictedInt8sCommandParams.put( - "value", - unitTestingrangeRestrictedInt8sCommandParameterInfo - ); - InteractionInfo writeUnitTestingRangeRestrictedInt8sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeRangeRestrictedInt8sAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingRangeRestrictedInt8sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeRangeRestrictedInt8sAttribute", writeUnitTestingRangeRestrictedInt8sAttributeInteractionInfo); - Map writeUnitTestingRangeRestrictedInt16uCommandParams = new LinkedHashMap(); + "value", unitTestingrangeRestrictedInt8sCommandParameterInfo); + InteractionInfo writeUnitTestingRangeRestrictedInt8sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeRangeRestrictedInt8sAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingRangeRestrictedInt8sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeRangeRestrictedInt8sAttribute", + writeUnitTestingRangeRestrictedInt8sAttributeInteractionInfo); + Map writeUnitTestingRangeRestrictedInt16uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingrangeRestrictedInt16uCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitTestingRangeRestrictedInt16uCommandParams.put( - "value", - unitTestingrangeRestrictedInt16uCommandParameterInfo - ); - InteractionInfo writeUnitTestingRangeRestrictedInt16uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeRangeRestrictedInt16uAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingRangeRestrictedInt16uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeRangeRestrictedInt16uAttribute", writeUnitTestingRangeRestrictedInt16uAttributeInteractionInfo); - Map writeUnitTestingRangeRestrictedInt16sCommandParams = new LinkedHashMap(); + "value", unitTestingrangeRestrictedInt16uCommandParameterInfo); + InteractionInfo writeUnitTestingRangeRestrictedInt16uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeRangeRestrictedInt16uAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingRangeRestrictedInt16uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeRangeRestrictedInt16uAttribute", + writeUnitTestingRangeRestrictedInt16uAttributeInteractionInfo); + Map writeUnitTestingRangeRestrictedInt16sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingrangeRestrictedInt16sCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitTestingRangeRestrictedInt16sCommandParams.put( - "value", - unitTestingrangeRestrictedInt16sCommandParameterInfo - ); - InteractionInfo writeUnitTestingRangeRestrictedInt16sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeRangeRestrictedInt16sAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingRangeRestrictedInt16sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeRangeRestrictedInt16sAttribute", writeUnitTestingRangeRestrictedInt16sAttributeInteractionInfo); - Map writeUnitTestingTimedWriteBooleanCommandParams = new LinkedHashMap(); + "value", unitTestingrangeRestrictedInt16sCommandParameterInfo); + InteractionInfo writeUnitTestingRangeRestrictedInt16sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeRangeRestrictedInt16sAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingRangeRestrictedInt16sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeRangeRestrictedInt16sAttribute", + writeUnitTestingRangeRestrictedInt16sAttributeInteractionInfo); + Map writeUnitTestingTimedWriteBooleanCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingtimedWriteBooleanCommandParameterInfo = - new CommandParameterInfo( - "value", - Boolean.class, - Boolean.class - ); + new CommandParameterInfo("value", Boolean.class, Boolean.class); writeUnitTestingTimedWriteBooleanCommandParams.put( - "value", - unitTestingtimedWriteBooleanCommandParameterInfo - ); - InteractionInfo writeUnitTestingTimedWriteBooleanAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeTimedWriteBooleanAttribute( - (DefaultClusterCallback) callback, - (Boolean) commandArguments.get("value"), 10000 - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingTimedWriteBooleanCommandParams - ); - writeUnitTestingInteractionInfo.put("writeTimedWriteBooleanAttribute", writeUnitTestingTimedWriteBooleanAttributeInteractionInfo); - Map writeUnitTestingGeneralErrorBooleanCommandParams = new LinkedHashMap(); + "value", unitTestingtimedWriteBooleanCommandParameterInfo); + InteractionInfo writeUnitTestingTimedWriteBooleanAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeTimedWriteBooleanAttribute( + (DefaultClusterCallback) callback, + (Boolean) commandArguments.get("value"), + 10000); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingTimedWriteBooleanCommandParams); + writeUnitTestingInteractionInfo.put( + "writeTimedWriteBooleanAttribute", + writeUnitTestingTimedWriteBooleanAttributeInteractionInfo); + Map writeUnitTestingGeneralErrorBooleanCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestinggeneralErrorBooleanCommandParameterInfo = - new CommandParameterInfo( - "value", - Boolean.class, - Boolean.class - ); + new CommandParameterInfo("value", Boolean.class, Boolean.class); writeUnitTestingGeneralErrorBooleanCommandParams.put( - "value", - unitTestinggeneralErrorBooleanCommandParameterInfo - ); - InteractionInfo writeUnitTestingGeneralErrorBooleanAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeGeneralErrorBooleanAttribute( - (DefaultClusterCallback) callback, - (Boolean) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingGeneralErrorBooleanCommandParams - ); - writeUnitTestingInteractionInfo.put("writeGeneralErrorBooleanAttribute", writeUnitTestingGeneralErrorBooleanAttributeInteractionInfo); - Map writeUnitTestingClusterErrorBooleanCommandParams = new LinkedHashMap(); + "value", unitTestinggeneralErrorBooleanCommandParameterInfo); + InteractionInfo writeUnitTestingGeneralErrorBooleanAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeGeneralErrorBooleanAttribute( + (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingGeneralErrorBooleanCommandParams); + writeUnitTestingInteractionInfo.put( + "writeGeneralErrorBooleanAttribute", + writeUnitTestingGeneralErrorBooleanAttributeInteractionInfo); + Map writeUnitTestingClusterErrorBooleanCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingclusterErrorBooleanCommandParameterInfo = - new CommandParameterInfo( - "value", - Boolean.class, - Boolean.class - ); + new CommandParameterInfo("value", Boolean.class, Boolean.class); writeUnitTestingClusterErrorBooleanCommandParams.put( - "value", - unitTestingclusterErrorBooleanCommandParameterInfo - ); - InteractionInfo writeUnitTestingClusterErrorBooleanAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeClusterErrorBooleanAttribute( - (DefaultClusterCallback) callback, - (Boolean) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingClusterErrorBooleanCommandParams - ); - writeUnitTestingInteractionInfo.put("writeClusterErrorBooleanAttribute", writeUnitTestingClusterErrorBooleanAttributeInteractionInfo); - Map writeUnitTestingUnsupportedCommandParams = new LinkedHashMap(); + "value", unitTestingclusterErrorBooleanCommandParameterInfo); + InteractionInfo writeUnitTestingClusterErrorBooleanAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeClusterErrorBooleanAttribute( + (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingClusterErrorBooleanCommandParams); + writeUnitTestingInteractionInfo.put( + "writeClusterErrorBooleanAttribute", + writeUnitTestingClusterErrorBooleanAttributeInteractionInfo); + Map writeUnitTestingUnsupportedCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingunsupportedCommandParameterInfo = - new CommandParameterInfo( - "value", - Boolean.class, - Boolean.class - ); + new CommandParameterInfo("value", Boolean.class, Boolean.class); writeUnitTestingUnsupportedCommandParams.put( - "value", - unitTestingunsupportedCommandParameterInfo - ); - InteractionInfo writeUnitTestingUnsupportedAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeUnsupportedAttribute( - (DefaultClusterCallback) callback, - (Boolean) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingUnsupportedCommandParams - ); - writeUnitTestingInteractionInfo.put("writeUnsupportedAttribute", writeUnitTestingUnsupportedAttributeInteractionInfo); - Map writeUnitTestingNullableBooleanCommandParams = new LinkedHashMap(); + "value", unitTestingunsupportedCommandParameterInfo); + InteractionInfo writeUnitTestingUnsupportedAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeUnsupportedAttribute( + (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingUnsupportedCommandParams); + writeUnitTestingInteractionInfo.put( + "writeUnsupportedAttribute", writeUnitTestingUnsupportedAttributeInteractionInfo); + Map writeUnitTestingNullableBooleanCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableBooleanCommandParameterInfo = - new CommandParameterInfo( - "value", - Boolean.class, - Boolean.class - ); + new CommandParameterInfo("value", Boolean.class, Boolean.class); writeUnitTestingNullableBooleanCommandParams.put( - "value", - unitTestingnullableBooleanCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableBooleanAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableBooleanAttribute( - (DefaultClusterCallback) callback, - (Boolean) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableBooleanCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableBooleanAttribute", writeUnitTestingNullableBooleanAttributeInteractionInfo); - Map writeUnitTestingNullableBitmap8CommandParams = new LinkedHashMap(); + "value", unitTestingnullableBooleanCommandParameterInfo); + InteractionInfo writeUnitTestingNullableBooleanAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableBooleanAttribute( + (DefaultClusterCallback) callback, (Boolean) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableBooleanCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableBooleanAttribute", writeUnitTestingNullableBooleanAttributeInteractionInfo); + Map writeUnitTestingNullableBitmap8CommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableBitmap8CommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitTestingNullableBitmap8CommandParams.put( - "value", - unitTestingnullableBitmap8CommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableBitmap8AttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableBitmap8Attribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableBitmap8CommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableBitmap8Attribute", writeUnitTestingNullableBitmap8AttributeInteractionInfo); - Map writeUnitTestingNullableBitmap16CommandParams = new LinkedHashMap(); + "value", unitTestingnullableBitmap8CommandParameterInfo); + InteractionInfo writeUnitTestingNullableBitmap8AttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableBitmap8Attribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableBitmap8CommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableBitmap8Attribute", writeUnitTestingNullableBitmap8AttributeInteractionInfo); + Map writeUnitTestingNullableBitmap16CommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableBitmap16CommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitTestingNullableBitmap16CommandParams.put( - "value", - unitTestingnullableBitmap16CommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableBitmap16AttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableBitmap16Attribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableBitmap16CommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableBitmap16Attribute", writeUnitTestingNullableBitmap16AttributeInteractionInfo); - Map writeUnitTestingNullableBitmap32CommandParams = new LinkedHashMap(); + "value", unitTestingnullableBitmap16CommandParameterInfo); + InteractionInfo writeUnitTestingNullableBitmap16AttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableBitmap16Attribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableBitmap16CommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableBitmap16Attribute", writeUnitTestingNullableBitmap16AttributeInteractionInfo); + Map writeUnitTestingNullableBitmap32CommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableBitmap32CommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeUnitTestingNullableBitmap32CommandParams.put( - "value", - unitTestingnullableBitmap32CommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableBitmap32AttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableBitmap32Attribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableBitmap32CommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableBitmap32Attribute", writeUnitTestingNullableBitmap32AttributeInteractionInfo); - Map writeUnitTestingNullableBitmap64CommandParams = new LinkedHashMap(); + "value", unitTestingnullableBitmap32CommandParameterInfo); + InteractionInfo writeUnitTestingNullableBitmap32AttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableBitmap32Attribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableBitmap32CommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableBitmap32Attribute", writeUnitTestingNullableBitmap32AttributeInteractionInfo); + Map writeUnitTestingNullableBitmap64CommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableBitmap64CommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeUnitTestingNullableBitmap64CommandParams.put( - "value", - unitTestingnullableBitmap64CommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableBitmap64AttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableBitmap64Attribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableBitmap64CommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableBitmap64Attribute", writeUnitTestingNullableBitmap64AttributeInteractionInfo); - Map writeUnitTestingNullableInt8uCommandParams = new LinkedHashMap(); + "value", unitTestingnullableBitmap64CommandParameterInfo); + InteractionInfo writeUnitTestingNullableBitmap64AttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableBitmap64Attribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableBitmap64CommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableBitmap64Attribute", writeUnitTestingNullableBitmap64AttributeInteractionInfo); + Map writeUnitTestingNullableInt8uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableInt8uCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitTestingNullableInt8uCommandParams.put( - "value", - unitTestingnullableInt8uCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableInt8uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt8uAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt8uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableInt8uAttribute", writeUnitTestingNullableInt8uAttributeInteractionInfo); - Map writeUnitTestingNullableInt16uCommandParams = new LinkedHashMap(); + "value", unitTestingnullableInt8uCommandParameterInfo); + InteractionInfo writeUnitTestingNullableInt8uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableInt8uAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt8uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableInt8uAttribute", writeUnitTestingNullableInt8uAttributeInteractionInfo); + Map writeUnitTestingNullableInt16uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableInt16uCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitTestingNullableInt16uCommandParams.put( - "value", - unitTestingnullableInt16uCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableInt16uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt16uAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt16uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableInt16uAttribute", writeUnitTestingNullableInt16uAttributeInteractionInfo); - Map writeUnitTestingNullableInt24uCommandParams = new LinkedHashMap(); + "value", unitTestingnullableInt16uCommandParameterInfo); + InteractionInfo writeUnitTestingNullableInt16uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableInt16uAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt16uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableInt16uAttribute", writeUnitTestingNullableInt16uAttributeInteractionInfo); + Map writeUnitTestingNullableInt24uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableInt24uCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeUnitTestingNullableInt24uCommandParams.put( - "value", - unitTestingnullableInt24uCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableInt24uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt24uAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt24uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableInt24uAttribute", writeUnitTestingNullableInt24uAttributeInteractionInfo); - Map writeUnitTestingNullableInt32uCommandParams = new LinkedHashMap(); + "value", unitTestingnullableInt24uCommandParameterInfo); + InteractionInfo writeUnitTestingNullableInt24uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableInt24uAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt24uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableInt24uAttribute", writeUnitTestingNullableInt24uAttributeInteractionInfo); + Map writeUnitTestingNullableInt32uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableInt32uCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeUnitTestingNullableInt32uCommandParams.put( - "value", - unitTestingnullableInt32uCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableInt32uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt32uAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt32uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableInt32uAttribute", writeUnitTestingNullableInt32uAttributeInteractionInfo); - Map writeUnitTestingNullableInt40uCommandParams = new LinkedHashMap(); + "value", unitTestingnullableInt32uCommandParameterInfo); + InteractionInfo writeUnitTestingNullableInt32uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableInt32uAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt32uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableInt32uAttribute", writeUnitTestingNullableInt32uAttributeInteractionInfo); + Map writeUnitTestingNullableInt40uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableInt40uCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeUnitTestingNullableInt40uCommandParams.put( - "value", - unitTestingnullableInt40uCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableInt40uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt40uAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt40uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableInt40uAttribute", writeUnitTestingNullableInt40uAttributeInteractionInfo); - Map writeUnitTestingNullableInt48uCommandParams = new LinkedHashMap(); + "value", unitTestingnullableInt40uCommandParameterInfo); + InteractionInfo writeUnitTestingNullableInt40uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableInt40uAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt40uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableInt40uAttribute", writeUnitTestingNullableInt40uAttributeInteractionInfo); + Map writeUnitTestingNullableInt48uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableInt48uCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeUnitTestingNullableInt48uCommandParams.put( - "value", - unitTestingnullableInt48uCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableInt48uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt48uAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt48uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableInt48uAttribute", writeUnitTestingNullableInt48uAttributeInteractionInfo); - Map writeUnitTestingNullableInt56uCommandParams = new LinkedHashMap(); + "value", unitTestingnullableInt48uCommandParameterInfo); + InteractionInfo writeUnitTestingNullableInt48uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableInt48uAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt48uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableInt48uAttribute", writeUnitTestingNullableInt48uAttributeInteractionInfo); + Map writeUnitTestingNullableInt56uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableInt56uCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeUnitTestingNullableInt56uCommandParams.put( - "value", - unitTestingnullableInt56uCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableInt56uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt56uAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt56uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableInt56uAttribute", writeUnitTestingNullableInt56uAttributeInteractionInfo); - Map writeUnitTestingNullableInt64uCommandParams = new LinkedHashMap(); + "value", unitTestingnullableInt56uCommandParameterInfo); + InteractionInfo writeUnitTestingNullableInt56uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableInt56uAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt56uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableInt56uAttribute", writeUnitTestingNullableInt56uAttributeInteractionInfo); + Map writeUnitTestingNullableInt64uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableInt64uCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeUnitTestingNullableInt64uCommandParams.put( - "value", - unitTestingnullableInt64uCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableInt64uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt64uAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt64uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableInt64uAttribute", writeUnitTestingNullableInt64uAttributeInteractionInfo); - Map writeUnitTestingNullableInt8sCommandParams = new LinkedHashMap(); + "value", unitTestingnullableInt64uCommandParameterInfo); + InteractionInfo writeUnitTestingNullableInt64uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableInt64uAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt64uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableInt64uAttribute", writeUnitTestingNullableInt64uAttributeInteractionInfo); + Map writeUnitTestingNullableInt8sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableInt8sCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitTestingNullableInt8sCommandParams.put( - "value", - unitTestingnullableInt8sCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableInt8sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt8sAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt8sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableInt8sAttribute", writeUnitTestingNullableInt8sAttributeInteractionInfo); - Map writeUnitTestingNullableInt16sCommandParams = new LinkedHashMap(); + "value", unitTestingnullableInt8sCommandParameterInfo); + InteractionInfo writeUnitTestingNullableInt8sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableInt8sAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt8sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableInt8sAttribute", writeUnitTestingNullableInt8sAttributeInteractionInfo); + Map writeUnitTestingNullableInt16sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableInt16sCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitTestingNullableInt16sCommandParams.put( - "value", - unitTestingnullableInt16sCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableInt16sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt16sAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt16sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableInt16sAttribute", writeUnitTestingNullableInt16sAttributeInteractionInfo); - Map writeUnitTestingNullableInt24sCommandParams = new LinkedHashMap(); + "value", unitTestingnullableInt16sCommandParameterInfo); + InteractionInfo writeUnitTestingNullableInt16sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableInt16sAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt16sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableInt16sAttribute", writeUnitTestingNullableInt16sAttributeInteractionInfo); + Map writeUnitTestingNullableInt24sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableInt24sCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeUnitTestingNullableInt24sCommandParams.put( - "value", - unitTestingnullableInt24sCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableInt24sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt24sAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt24sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableInt24sAttribute", writeUnitTestingNullableInt24sAttributeInteractionInfo); - Map writeUnitTestingNullableInt32sCommandParams = new LinkedHashMap(); + "value", unitTestingnullableInt24sCommandParameterInfo); + InteractionInfo writeUnitTestingNullableInt24sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableInt24sAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt24sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableInt24sAttribute", writeUnitTestingNullableInt24sAttributeInteractionInfo); + Map writeUnitTestingNullableInt32sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableInt32sCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeUnitTestingNullableInt32sCommandParams.put( - "value", - unitTestingnullableInt32sCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableInt32sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt32sAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt32sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableInt32sAttribute", writeUnitTestingNullableInt32sAttributeInteractionInfo); - Map writeUnitTestingNullableInt40sCommandParams = new LinkedHashMap(); + "value", unitTestingnullableInt32sCommandParameterInfo); + InteractionInfo writeUnitTestingNullableInt32sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableInt32sAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt32sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableInt32sAttribute", writeUnitTestingNullableInt32sAttributeInteractionInfo); + Map writeUnitTestingNullableInt40sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableInt40sCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeUnitTestingNullableInt40sCommandParams.put( - "value", - unitTestingnullableInt40sCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableInt40sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt40sAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt40sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableInt40sAttribute", writeUnitTestingNullableInt40sAttributeInteractionInfo); - Map writeUnitTestingNullableInt48sCommandParams = new LinkedHashMap(); + "value", unitTestingnullableInt40sCommandParameterInfo); + InteractionInfo writeUnitTestingNullableInt40sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableInt40sAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt40sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableInt40sAttribute", writeUnitTestingNullableInt40sAttributeInteractionInfo); + Map writeUnitTestingNullableInt48sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableInt48sCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeUnitTestingNullableInt48sCommandParams.put( - "value", - unitTestingnullableInt48sCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableInt48sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt48sAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt48sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableInt48sAttribute", writeUnitTestingNullableInt48sAttributeInteractionInfo); - Map writeUnitTestingNullableInt56sCommandParams = new LinkedHashMap(); + "value", unitTestingnullableInt48sCommandParameterInfo); + InteractionInfo writeUnitTestingNullableInt48sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableInt48sAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt48sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableInt48sAttribute", writeUnitTestingNullableInt48sAttributeInteractionInfo); + Map writeUnitTestingNullableInt56sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableInt56sCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeUnitTestingNullableInt56sCommandParams.put( - "value", - unitTestingnullableInt56sCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableInt56sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt56sAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt56sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableInt56sAttribute", writeUnitTestingNullableInt56sAttributeInteractionInfo); - Map writeUnitTestingNullableInt64sCommandParams = new LinkedHashMap(); + "value", unitTestingnullableInt56sCommandParameterInfo); + InteractionInfo writeUnitTestingNullableInt56sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableInt56sAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt56sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableInt56sAttribute", writeUnitTestingNullableInt56sAttributeInteractionInfo); + Map writeUnitTestingNullableInt64sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableInt64sCommandParameterInfo = - new CommandParameterInfo( - "value", - Long.class, - Long.class - ); + new CommandParameterInfo("value", Long.class, Long.class); writeUnitTestingNullableInt64sCommandParams.put( - "value", - unitTestingnullableInt64sCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableInt64sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableInt64sAttribute( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableInt64sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableInt64sAttribute", writeUnitTestingNullableInt64sAttributeInteractionInfo); - Map writeUnitTestingNullableEnum8CommandParams = new LinkedHashMap(); + "value", unitTestingnullableInt64sCommandParameterInfo); + InteractionInfo writeUnitTestingNullableInt64sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableInt64sAttribute( + (DefaultClusterCallback) callback, (Long) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableInt64sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableInt64sAttribute", writeUnitTestingNullableInt64sAttributeInteractionInfo); + Map writeUnitTestingNullableEnum8CommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableEnum8CommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitTestingNullableEnum8CommandParams.put( - "value", - unitTestingnullableEnum8CommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableEnum8AttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableEnum8Attribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableEnum8CommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableEnum8Attribute", writeUnitTestingNullableEnum8AttributeInteractionInfo); - Map writeUnitTestingNullableEnum16CommandParams = new LinkedHashMap(); + "value", unitTestingnullableEnum8CommandParameterInfo); + InteractionInfo writeUnitTestingNullableEnum8AttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableEnum8Attribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableEnum8CommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableEnum8Attribute", writeUnitTestingNullableEnum8AttributeInteractionInfo); + Map writeUnitTestingNullableEnum16CommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableEnum16CommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitTestingNullableEnum16CommandParams.put( - "value", - unitTestingnullableEnum16CommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableEnum16AttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableEnum16Attribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableEnum16CommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableEnum16Attribute", writeUnitTestingNullableEnum16AttributeInteractionInfo); - Map writeUnitTestingNullableFloatSingleCommandParams = new LinkedHashMap(); + "value", unitTestingnullableEnum16CommandParameterInfo); + InteractionInfo writeUnitTestingNullableEnum16AttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableEnum16Attribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableEnum16CommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableEnum16Attribute", writeUnitTestingNullableEnum16AttributeInteractionInfo); + Map writeUnitTestingNullableFloatSingleCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableFloatSingleCommandParameterInfo = - new CommandParameterInfo( - "value", - Float.class, - Float.class - ); + new CommandParameterInfo("value", Float.class, Float.class); writeUnitTestingNullableFloatSingleCommandParams.put( - "value", - unitTestingnullableFloatSingleCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableFloatSingleAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableFloatSingleAttribute( - (DefaultClusterCallback) callback, - (Float) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableFloatSingleCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableFloatSingleAttribute", writeUnitTestingNullableFloatSingleAttributeInteractionInfo); - Map writeUnitTestingNullableFloatDoubleCommandParams = new LinkedHashMap(); + "value", unitTestingnullableFloatSingleCommandParameterInfo); + InteractionInfo writeUnitTestingNullableFloatSingleAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableFloatSingleAttribute( + (DefaultClusterCallback) callback, (Float) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableFloatSingleCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableFloatSingleAttribute", + writeUnitTestingNullableFloatSingleAttributeInteractionInfo); + Map writeUnitTestingNullableFloatDoubleCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableFloatDoubleCommandParameterInfo = - new CommandParameterInfo( - "value", - Double.class, - Double.class - ); + new CommandParameterInfo("value", Double.class, Double.class); writeUnitTestingNullableFloatDoubleCommandParams.put( - "value", - unitTestingnullableFloatDoubleCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableFloatDoubleAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableFloatDoubleAttribute( - (DefaultClusterCallback) callback, - (Double) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableFloatDoubleCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableFloatDoubleAttribute", writeUnitTestingNullableFloatDoubleAttributeInteractionInfo); - Map writeUnitTestingNullableOctetStringCommandParams = new LinkedHashMap(); + "value", unitTestingnullableFloatDoubleCommandParameterInfo); + InteractionInfo writeUnitTestingNullableFloatDoubleAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableFloatDoubleAttribute( + (DefaultClusterCallback) callback, (Double) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableFloatDoubleCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableFloatDoubleAttribute", + writeUnitTestingNullableFloatDoubleAttributeInteractionInfo); + Map writeUnitTestingNullableOctetStringCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableOctetStringCommandParameterInfo = - new CommandParameterInfo( - "value", - byte[].class, - byte[].class - ); + new CommandParameterInfo("value", byte[].class, byte[].class); writeUnitTestingNullableOctetStringCommandParams.put( - "value", - unitTestingnullableOctetStringCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableOctetStringAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableOctetStringAttribute( - (DefaultClusterCallback) callback, - (byte[]) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableOctetStringCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableOctetStringAttribute", writeUnitTestingNullableOctetStringAttributeInteractionInfo); - Map writeUnitTestingNullableCharStringCommandParams = new LinkedHashMap(); + "value", unitTestingnullableOctetStringCommandParameterInfo); + InteractionInfo writeUnitTestingNullableOctetStringAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableOctetStringAttribute( + (DefaultClusterCallback) callback, (byte[]) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableOctetStringCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableOctetStringAttribute", + writeUnitTestingNullableOctetStringAttributeInteractionInfo); + Map writeUnitTestingNullableCharStringCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableCharStringCommandParameterInfo = - new CommandParameterInfo( - "value", - String.class, - String.class - ); + new CommandParameterInfo("value", String.class, String.class); writeUnitTestingNullableCharStringCommandParams.put( - "value", - unitTestingnullableCharStringCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableCharStringAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableCharStringAttribute( - (DefaultClusterCallback) callback, - (String) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableCharStringCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableCharStringAttribute", writeUnitTestingNullableCharStringAttributeInteractionInfo); - Map writeUnitTestingNullableEnumAttrCommandParams = new LinkedHashMap(); + "value", unitTestingnullableCharStringCommandParameterInfo); + InteractionInfo writeUnitTestingNullableCharStringAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableCharStringAttribute( + (DefaultClusterCallback) callback, (String) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableCharStringCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableCharStringAttribute", + writeUnitTestingNullableCharStringAttributeInteractionInfo); + Map writeUnitTestingNullableEnumAttrCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableEnumAttrCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitTestingNullableEnumAttrCommandParams.put( - "value", - unitTestingnullableEnumAttrCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableEnumAttrAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableEnumAttrAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableEnumAttrCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableEnumAttrAttribute", writeUnitTestingNullableEnumAttrAttributeInteractionInfo); - Map writeUnitTestingNullableRangeRestrictedInt8uCommandParams = new LinkedHashMap(); + "value", unitTestingnullableEnumAttrCommandParameterInfo); + InteractionInfo writeUnitTestingNullableEnumAttrAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableEnumAttrAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableEnumAttrCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableEnumAttrAttribute", writeUnitTestingNullableEnumAttrAttributeInteractionInfo); + Map writeUnitTestingNullableRangeRestrictedInt8uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableRangeRestrictedInt8uCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitTestingNullableRangeRestrictedInt8uCommandParams.put( - "value", - unitTestingnullableRangeRestrictedInt8uCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableRangeRestrictedInt8uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableRangeRestrictedInt8uAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableRangeRestrictedInt8uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableRangeRestrictedInt8uAttribute", writeUnitTestingNullableRangeRestrictedInt8uAttributeInteractionInfo); - Map writeUnitTestingNullableRangeRestrictedInt8sCommandParams = new LinkedHashMap(); + "value", unitTestingnullableRangeRestrictedInt8uCommandParameterInfo); + InteractionInfo writeUnitTestingNullableRangeRestrictedInt8uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableRangeRestrictedInt8uAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableRangeRestrictedInt8uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableRangeRestrictedInt8uAttribute", + writeUnitTestingNullableRangeRestrictedInt8uAttributeInteractionInfo); + Map writeUnitTestingNullableRangeRestrictedInt8sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableRangeRestrictedInt8sCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitTestingNullableRangeRestrictedInt8sCommandParams.put( - "value", - unitTestingnullableRangeRestrictedInt8sCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableRangeRestrictedInt8sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableRangeRestrictedInt8sAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableRangeRestrictedInt8sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableRangeRestrictedInt8sAttribute", writeUnitTestingNullableRangeRestrictedInt8sAttributeInteractionInfo); - Map writeUnitTestingNullableRangeRestrictedInt16uCommandParams = new LinkedHashMap(); + "value", unitTestingnullableRangeRestrictedInt8sCommandParameterInfo); + InteractionInfo writeUnitTestingNullableRangeRestrictedInt8sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableRangeRestrictedInt8sAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableRangeRestrictedInt8sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableRangeRestrictedInt8sAttribute", + writeUnitTestingNullableRangeRestrictedInt8sAttributeInteractionInfo); + Map writeUnitTestingNullableRangeRestrictedInt16uCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableRangeRestrictedInt16uCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitTestingNullableRangeRestrictedInt16uCommandParams.put( - "value", - unitTestingnullableRangeRestrictedInt16uCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableRangeRestrictedInt16uAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableRangeRestrictedInt16uAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableRangeRestrictedInt16uCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableRangeRestrictedInt16uAttribute", writeUnitTestingNullableRangeRestrictedInt16uAttributeInteractionInfo); - Map writeUnitTestingNullableRangeRestrictedInt16sCommandParams = new LinkedHashMap(); + "value", unitTestingnullableRangeRestrictedInt16uCommandParameterInfo); + InteractionInfo writeUnitTestingNullableRangeRestrictedInt16uAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableRangeRestrictedInt16uAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableRangeRestrictedInt16uCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableRangeRestrictedInt16uAttribute", + writeUnitTestingNullableRangeRestrictedInt16uAttributeInteractionInfo); + Map writeUnitTestingNullableRangeRestrictedInt16sCommandParams = + new LinkedHashMap(); CommandParameterInfo unitTestingnullableRangeRestrictedInt16sCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); + new CommandParameterInfo("value", Integer.class, Integer.class); writeUnitTestingNullableRangeRestrictedInt16sCommandParams.put( - "value", - unitTestingnullableRangeRestrictedInt16sCommandParameterInfo - ); - InteractionInfo writeUnitTestingNullableRangeRestrictedInt16sAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.UnitTestingCluster) cluster).writeNullableRangeRestrictedInt16sAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeUnitTestingNullableRangeRestrictedInt16sCommandParams - ); - writeUnitTestingInteractionInfo.put("writeNullableRangeRestrictedInt16sAttribute", writeUnitTestingNullableRangeRestrictedInt16sAttributeInteractionInfo); - writeAttributeMap.put("unitTesting", writeUnitTestingInteractionInfo);return writeAttributeMap; + "value", unitTestingnullableRangeRestrictedInt16sCommandParameterInfo); + InteractionInfo writeUnitTestingNullableRangeRestrictedInt16sAttributeInteractionInfo = + new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.UnitTestingCluster) cluster) + .writeNullableRangeRestrictedInt16sAttribute( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("value")); + }, + () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), + writeUnitTestingNullableRangeRestrictedInt16sCommandParams); + writeUnitTestingInteractionInfo.put( + "writeNullableRangeRestrictedInt16sAttribute", + writeUnitTestingNullableRangeRestrictedInt16sAttributeInteractionInfo); + writeAttributeMap.put("unitTesting", writeUnitTestingInteractionInfo); + return writeAttributeMap; } } From 46380e34fe8bcd4f575a56276d85f9d76f334a3a Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Tue, 21 Mar 2023 21:37:33 -0400 Subject: [PATCH 24/28] Remove unused variable --- scripts/tools/zap_regen_all.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/tools/zap_regen_all.py b/scripts/tools/zap_regen_all.py index 4ca6b6fdda6199..94407cae55b634 100755 --- a/scripts/tools/zap_regen_all.py +++ b/scripts/tools/zap_regen_all.py @@ -229,7 +229,6 @@ def runJavaPrettifier(self): JAR_NAME = f"google-java-format-{FORMAT_VERSION}-all-deps.jar" jar_url = f"{URL_PREFIX}-{FORMAT_VERSION}/{JAR_NAME}" - home = str(Path.home()) path, http_message = urllib.request.urlretrieve(jar_url, Path.home().joinpath(JAR_NAME).as_posix()) subprocess.check_call(['java', '-jar', path, '--replace'] + java_outputs) From be4088e712a0171c63c0d4339f0e552cbee40941 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 22 Mar 2023 08:21:38 -0400 Subject: [PATCH 25/28] Fix upper/lowercase of acronyms, to be fully backwards compatible --- .../matter_idl/generators/filters.py | 15 +++++++++ .../generators/java/ClusterWriteMapping.jinja | 6 ++-- .../devicecontroller/ClusterWriteMapping.java | 32 +++++++++---------- 3 files changed, 34 insertions(+), 19 deletions(-) diff --git a/scripts/py_matter_idl/matter_idl/generators/filters.py b/scripts/py_matter_idl/matter_idl/generators/filters.py index f0847e559036d9..773440096b7523 100644 --- a/scripts/py_matter_idl/matter_idl/generators/filters.py +++ b/scripts/py_matter_idl/matter_idl/generators/filters.py @@ -33,6 +33,20 @@ def upfirst(s: str) -> str: """Make the first letter uppercase """ return s[0].upper() + s[1:] +def lowfirst_except_acronym(s: str) -> str: + """Make the first letter lowercase assuming the string is already in + CamelCase. + + Differs from lowfirst because it checks the string for starting with + several uppercase, which is the case for acronyms (HVAC, ACL, WIFI), + in which case it will NOT lowercase first + """ + if len(s) >= 2: + if s[1].isupper(): + return s + + return lowfirst(s) + def RegisterCommonFilters(filtermap): """ @@ -53,4 +67,5 @@ def RegisterCommonFilters(filtermap): filtermap['normalize_acronyms'] = normalize_acronyms filtermap['lowfirst'] = lowfirst + filtermap['lowfirst_except_acronym'] = lowfirst_except_acronym filtermap['upfirst'] = upfirst diff --git a/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja b/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja index bda9196a3ea22b..f96ad42fc36cb5 100644 --- a/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja +++ b/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja @@ -19,7 +19,7 @@ public class ClusterWriteMapping { {% if not attribute.definition.is_list and attribute.is_writable %} Map write{{cluster.name}}{{attribute.definition.name | upfirst}}CommandParams = new LinkedHashMap(); {%- set encodable = attribute.definition | asEncodable(typeLookup) %} - CommandParameterInfo {{cluster.name | lowfirst}}{{attribute.definition.name | lowfirst}}CommandParameterInfo = + CommandParameterInfo {{cluster.name | lowfirst_except_acronym}}{{attribute.definition.name | lowfirst_except_acronym}}CommandParameterInfo = new CommandParameterInfo( "value", {{ encodable.boxed_java_type }}.class, {# {{asJavaType type null parent.parent.name removeGenericType=true}}.class, #} @@ -27,7 +27,7 @@ public class ClusterWriteMapping { ); write{{cluster.name}}{{attribute.definition.name | upfirst}}CommandParams.put( "value", - {{cluster.name | lowfirst}}{{attribute.definition.name | lowfirst}}CommandParameterInfo + {{cluster.name | lowfirst_except_acronym}}{{attribute.definition.name | lowfirst_except_acronym}}CommandParameterInfo ); InteractionInfo write{{cluster.name}}{{attribute.definition.name | upfirst}}AttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { @@ -43,7 +43,7 @@ public class ClusterWriteMapping { write{{cluster.name}}InteractionInfo.put("write{{attribute.definition.name | upfirst}}Attribute", write{{cluster.name}}{{attribute.definition.name | upfirst}}AttributeInteractionInfo); {%- endif %} {%- endfor %} - writeAttributeMap.put("{{cluster.name | lowfirst}}", write{{cluster.name}}InteractionInfo); + writeAttributeMap.put("{{cluster.name | lowfirst_except_acronym}}", write{{cluster.name}}InteractionInfo); {%- endfor -%} return writeAttributeMap; diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java index badbfd0503386b..90c76196cf407a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java +++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java @@ -799,10 +799,10 @@ public Map> getWriteAttributeMap() { Map writeThermostatInteractionInfo = new LinkedHashMap<>(); Map writeThermostatHVACSystemTypeConfigurationCommandParams = new LinkedHashMap(); - CommandParameterInfo thermostathVACSystemTypeConfigurationCommandParameterInfo = + CommandParameterInfo thermostatHVACSystemTypeConfigurationCommandParameterInfo = new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatHVACSystemTypeConfigurationCommandParams.put( - "value", thermostathVACSystemTypeConfigurationCommandParameterInfo); + "value", thermostatHVACSystemTypeConfigurationCommandParameterInfo); InteractionInfo writeThermostatHVACSystemTypeConfigurationAttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { @@ -1156,9 +1156,9 @@ public Map> getWriteAttributeMap() { writeThermostatEmergencyHeatDeltaAttributeInteractionInfo); Map writeThermostatACTypeCommandParams = new LinkedHashMap(); - CommandParameterInfo thermostataCTypeCommandParameterInfo = + CommandParameterInfo thermostatACTypeCommandParameterInfo = new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatACTypeCommandParams.put("value", thermostataCTypeCommandParameterInfo); + writeThermostatACTypeCommandParams.put("value", thermostatACTypeCommandParameterInfo); InteractionInfo writeThermostatACTypeAttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { @@ -1172,9 +1172,9 @@ public Map> getWriteAttributeMap() { "writeACTypeAttribute", writeThermostatACTypeAttributeInteractionInfo); Map writeThermostatACCapacityCommandParams = new LinkedHashMap(); - CommandParameterInfo thermostataCCapacityCommandParameterInfo = + CommandParameterInfo thermostatACCapacityCommandParameterInfo = new CommandParameterInfo("value", Integer.class, Integer.class); - writeThermostatACCapacityCommandParams.put("value", thermostataCCapacityCommandParameterInfo); + writeThermostatACCapacityCommandParams.put("value", thermostatACCapacityCommandParameterInfo); InteractionInfo writeThermostatACCapacityAttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { @@ -1188,10 +1188,10 @@ public Map> getWriteAttributeMap() { "writeACCapacityAttribute", writeThermostatACCapacityAttributeInteractionInfo); Map writeThermostatACRefrigerantTypeCommandParams = new LinkedHashMap(); - CommandParameterInfo thermostataCRefrigerantTypeCommandParameterInfo = + CommandParameterInfo thermostatACRefrigerantTypeCommandParameterInfo = new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatACRefrigerantTypeCommandParams.put( - "value", thermostataCRefrigerantTypeCommandParameterInfo); + "value", thermostatACRefrigerantTypeCommandParameterInfo); InteractionInfo writeThermostatACRefrigerantTypeAttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { @@ -1206,10 +1206,10 @@ public Map> getWriteAttributeMap() { writeThermostatACRefrigerantTypeAttributeInteractionInfo); Map writeThermostatACCompressorTypeCommandParams = new LinkedHashMap(); - CommandParameterInfo thermostataCCompressorTypeCommandParameterInfo = + CommandParameterInfo thermostatACCompressorTypeCommandParameterInfo = new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatACCompressorTypeCommandParams.put( - "value", thermostataCCompressorTypeCommandParameterInfo); + "value", thermostatACCompressorTypeCommandParameterInfo); InteractionInfo writeThermostatACCompressorTypeAttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { @@ -1223,9 +1223,9 @@ public Map> getWriteAttributeMap() { "writeACCompressorTypeAttribute", writeThermostatACCompressorTypeAttributeInteractionInfo); Map writeThermostatACErrorCodeCommandParams = new LinkedHashMap(); - CommandParameterInfo thermostataCErrorCodeCommandParameterInfo = + CommandParameterInfo thermostatACErrorCodeCommandParameterInfo = new CommandParameterInfo("value", Long.class, Long.class); - writeThermostatACErrorCodeCommandParams.put("value", thermostataCErrorCodeCommandParameterInfo); + writeThermostatACErrorCodeCommandParams.put("value", thermostatACErrorCodeCommandParameterInfo); InteractionInfo writeThermostatACErrorCodeAttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { @@ -1239,10 +1239,10 @@ public Map> getWriteAttributeMap() { "writeACErrorCodeAttribute", writeThermostatACErrorCodeAttributeInteractionInfo); Map writeThermostatACLouverPositionCommandParams = new LinkedHashMap(); - CommandParameterInfo thermostataCLouverPositionCommandParameterInfo = + CommandParameterInfo thermostatACLouverPositionCommandParameterInfo = new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatACLouverPositionCommandParams.put( - "value", thermostataCLouverPositionCommandParameterInfo); + "value", thermostatACLouverPositionCommandParameterInfo); InteractionInfo writeThermostatACLouverPositionAttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { @@ -1256,10 +1256,10 @@ public Map> getWriteAttributeMap() { "writeACLouverPositionAttribute", writeThermostatACLouverPositionAttributeInteractionInfo); Map writeThermostatACCapacityformatCommandParams = new LinkedHashMap(); - CommandParameterInfo thermostataCCapacityformatCommandParameterInfo = + CommandParameterInfo thermostatACCapacityformatCommandParameterInfo = new CommandParameterInfo("value", Integer.class, Integer.class); writeThermostatACCapacityformatCommandParams.put( - "value", thermostataCCapacityformatCommandParameterInfo); + "value", thermostatACCapacityformatCommandParameterInfo); InteractionInfo writeThermostatACCapacityformatAttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { From 5ce0b71db2f2afd3ccb613dc95f3655892e90d86 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 22 Mar 2023 08:23:10 -0400 Subject: [PATCH 26/28] Add license blurb since we checkin generated file (and maybe jinja files should also have licenses --- .../generators/java/ClusterWriteMapping.jinja | 16 ++++++++++++++++ .../devicecontroller/ClusterWriteMapping.java | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja b/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja index f96ad42fc36cb5..836267e835d965 100644 --- a/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja +++ b/scripts/py_matter_idl/matter_idl/generators/java/ClusterWriteMapping.jinja @@ -1,3 +1,19 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package chip.devicecontroller; import chip.clusterinfo.CommandParameterInfo; diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java index 90c76196cf407a..23a9b397567695 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java +++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java @@ -1,3 +1,19 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package chip.devicecontroller; import chip.clusterinfo.CommandParameterInfo; From a47038ff6eefcb144858e14fd2ceb79dde494d15 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 22 Mar 2023 08:46:23 -0400 Subject: [PATCH 27/28] Restyle --- scripts/py_matter_idl/matter_idl/generators/filters.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/py_matter_idl/matter_idl/generators/filters.py b/scripts/py_matter_idl/matter_idl/generators/filters.py index 773440096b7523..b1ea94a7cd36c6 100644 --- a/scripts/py_matter_idl/matter_idl/generators/filters.py +++ b/scripts/py_matter_idl/matter_idl/generators/filters.py @@ -33,6 +33,7 @@ def upfirst(s: str) -> str: """Make the first letter uppercase """ return s[0].upper() + s[1:] + def lowfirst_except_acronym(s: str) -> str: """Make the first letter lowercase assuming the string is already in CamelCase. @@ -43,7 +44,7 @@ def lowfirst_except_acronym(s: str) -> str: """ if len(s) >= 2: if s[1].isupper(): - return s + return s return lowfirst(s) From 6fc9632a3eb450ac1567cb4f9584c7dadfd900bb Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 22 Mar 2023 08:47:30 -0400 Subject: [PATCH 28/28] Fix unit test --- .../java/ClusterWriteMapping.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scripts/py_matter_idl/matter_idl/tests/outputs/several_clusters/java/ClusterWriteMapping.java b/scripts/py_matter_idl/matter_idl/tests/outputs/several_clusters/java/ClusterWriteMapping.java index adae9aae1da991..ff07bb30e4ccff 100644 --- a/scripts/py_matter_idl/matter_idl/tests/outputs/several_clusters/java/ClusterWriteMapping.java +++ b/scripts/py_matter_idl/matter_idl/tests/outputs/several_clusters/java/ClusterWriteMapping.java @@ -1,3 +1,19 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package chip.devicecontroller; import chip.clusterinfo.CommandParameterInfo;