diff --git a/src/android/CHIPTool/.idea/runConfigurations.xml b/src/android/CHIPTool/.idea/runConfigurations.xml deleted file mode 100644 index 7f68460d8b38ac..00000000000000 --- a/src/android/CHIPTool/.idea/runConfigurations.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterDetailFragment.kt b/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterDetailFragment.kt index 72f0c0e33ab319..bb8def19a7e2c0 100644 --- a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterDetailFragment.kt +++ b/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterDetailFragment.kt @@ -9,6 +9,7 @@ import android.widget.ArrayAdapter import android.widget.AutoCompleteTextView import android.widget.LinearLayout import android.widget.Toast +import androidx.appcompat.app.AlertDialog import androidx.constraintlayout.widget.ConstraintLayout import androidx.core.view.forEach import androidx.fragment.app.Fragment @@ -67,9 +68,15 @@ class ClusterDetailFragment : Fragment() { return inflater.inflate(R.layout.cluster_detail_fragment, container, false).apply { deviceController.setCompletionListener(GenericChipDeviceListener()) commandAutoCompleteTv.visibility = View.GONE - clusterAutoCompleteSetup(clusterAutoCompleteTv, commandAutoCompleteTv, parameterList) + clusterAutoCompleteSetup( + clusterAutoCompleteTv, + commandAutoCompleteTv, + parameterList, + callbackList + ) commandAutoCompleteSetup(commandAutoCompleteTv, inflater, parameterList, callbackList) invokeCommand.setOnClickListener { + callbackList.removeAllViews() val commandArguments = HashMap() parameterList.forEach { val type = @@ -89,7 +96,7 @@ class ClusterDetailFragment : Fragment() { Int::class.java -> data.toInt() String::class.java -> data Boolean::class.java -> data.toBoolean() - else -> null + else -> data } } @@ -102,7 +109,8 @@ class ClusterDetailFragment : Fragment() { private fun clusterAutoCompleteSetup( clusterAutoComplete: AutoCompleteTextView, commandAutoComplete: AutoCompleteTextView, - parameterList: LinearLayout + parameterList: LinearLayout, + callbackList: LinearLayout ) { val clusterNameList = constructHint(clusterMap) val clusterAdapter = @@ -113,6 +121,7 @@ class ClusterDetailFragment : Fragment() { // when new cluster is selected, clear the command text and possible parameterList commandAutoComplete.setText("", false) parameterList.removeAllViews() + callbackList.removeAllViews() // populate all the commands that belong to the selected cluster val selectedCluster: String = clusterAutoComplete.adapter.getItem(position).toString() val commandAdapter = getCommandOptions(selectedCluster) @@ -127,8 +136,9 @@ class ClusterDetailFragment : Fragment() { callbackList: LinearLayout ) { commandAutoComplete.setOnItemClickListener { parent, view, position, id -> - // when new command is selected, clear all the parameterList + // when new command is selected, clear all the parameterList and callbackList parameterList.removeAllViews() + callbackList.removeAllViews() selectedCluster = selectedClusterInfo.createClusterFunction.create(devicePtr, endpointId) val selectedCommand: String = commandAutoComplete.adapter.getItem(position).toString() selectedCommandInfo = selectedClusterInfo.commands[selectedCommand]!! @@ -171,12 +181,39 @@ class ClusterDetailFragment : Fragment() { callbackList: LinearLayout ) { responseValues.forEach { (variableNameType, response) -> - val callback = - inflater.inflate(R.layout.cluster_callback_item, null, false) as ConstraintLayout - callback.clusterCallbackNameTv.text = variableNameType.name - callback.clusterCallbackDataTv.text = response.toString() - callback.clusterCallbackTypeTv.text = variableNameType.type - callbackList.addView(callback) + if (response is List<*>) { + if (response.size == 0) { + val emptyCallback = + inflater.inflate(R.layout.cluster_callback_item, null, false) as ConstraintLayout + emptyCallback.clusterCallbackNameTv.text = "Result is empty" + callbackList.addView(emptyCallback) + } else { + response.forEachIndexed { index, it -> + val objectCallback = + inflater.inflate(R.layout.cluster_callback_item, null, false) as ConstraintLayout + objectCallback.clusterCallbackNameTv.text = variableNameType.name + "[$index]" + val objectDeserializationString = it.toString() + val callbackClassName = it!!.javaClass.toString().split('$').last() + objectCallback.clusterCallbackDataTv.text = callbackClassName + objectCallback.clusterCallbackDataTv.setOnClickListener { + AlertDialog.Builder(requireContext()) + .setTitle(callbackClassName) + .setMessage(objectDeserializationString) + .create() + .show() + } + objectCallback.clusterCallbackTypeTv.text = "List<$callbackClassName>" + callbackList.addView(objectCallback) + } + } + } else { + val callback = + inflater.inflate(R.layout.cluster_callback_item, null, false) as ConstraintLayout + callback.clusterCallbackNameTv.text = variableNameType.name + callback.clusterCallbackDataTv.text = response.toString() + callback.clusterCallbackTypeTv.text = variableNameType.type + callbackList.addView(callback) + } } } diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt b/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt index 27c1b14f5d43cd..1c3555009644de 100644 --- a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt +++ b/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt @@ -13,8 +13,6 @@ import com.google.chip.chiptool.ChipClient import com.google.chip.chiptool.GenericChipDeviceListener import com.google.chip.chiptool.R import kotlinx.coroutines.CoroutineScope -import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.Job import kotlinx.coroutines.cancel import com.google.chip.chiptool.clusterclient.AddressUpdateFragment import kotlinx.android.synthetic.main.cluster_interaction_fragment.view.endpointList @@ -94,4 +92,4 @@ class ClusterInteractionFragment : Fragment() { showFragment(ClusterDetailFragment.newInstance(devicePtr, position)) } } -} \ No newline at end of file +} diff --git a/src/android/CHIPTool/app/src/main/res/layout/cluster_callback_item.xml b/src/android/CHIPTool/app/src/main/res/layout/cluster_callback_item.xml index 13844ffaa80d12..91e8edfb4fa09c 100644 --- a/src/android/CHIPTool/app/src/main/res/layout/cluster_callback_item.xml +++ b/src/android/CHIPTool/app/src/main/res/layout/cluster_callback_item.xml @@ -6,16 +6,17 @@ + - - - - - + + + \ No newline at end of file diff --git a/src/controller/java/src/chip/clusterinfo/ClusterInfo.java b/src/controller/java/src/chip/clusterinfo/ClusterInfo.java index f90a9b8e409b1b..cb4dee857cceb8 100644 --- a/src/controller/java/src/chip/clusterinfo/ClusterInfo.java +++ b/src/controller/java/src/chip/clusterinfo/ClusterInfo.java @@ -21,6 +21,10 @@ public Map getCommands() { return commands; } + public void combineCommands(Map newCommands) { + this.commands.putAll(newCommands); + } + /** * The functional interface provides a uniform way to create cluster through create function. In * ClusterInfoMapping, each ClusterConstructor was generated using the intended function. Using diff --git a/src/controller/java/templates/ChipClusters-java.zapt b/src/controller/java/templates/ChipClusters-java.zapt index 34dc0805c40266..ac79f513f4a74b 100644 --- a/src/controller/java/templates/ChipClusters-java.zapt +++ b/src/controller/java/templates/ChipClusters-java.zapt @@ -160,6 +160,45 @@ public class ChipClusters { {{/if}} {{/chip_attribute_list_entryTypes}} } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + {{#chip_attribute_list_entryTypes}} + {{#if isOptional}} + {{! TODO: Add support for optional types here }} + {{else if isNullable}} + {{! TODO: Add support for nullable types here }} + {{else if isArray}} + {{! TODO: Add support for lists here }} + {{else if isStruct}} + {{! TODO: Add support for structs here }} + {{else if (isOctetString type)}} + output.append("byte[] {{asLowerCamelCase name}}: ["); + for (int i = 0; i < {{asLowerCamelCase name}}.length; i++) { + if (i != {{asLowerCamelCase name}}.length - 1) { + output.append({{asLowerCamelCase name}}[i]); + output.append(", "); + } + else { + output.append({{asLowerCamelCase name}}[i]); + output.append("]"); + output.append("\n"); + } + } + {{else if (isCharString type)}} + output.append("String {{asLowerCamelCase name}}: "); + output.append(this.{{asLowerCamelCase name}}); + output.append("\n"); + {{else}} + output.append("{{asJavaBasicType label type}} {{asLowerCamelCase name}}: "); + output.append(this.{{asLowerCamelCase name}}); + output.append("\n"); + {{/if}} + + {{/chip_attribute_list_entryTypes}} + return output.toString(); + } } {{/if}} diff --git a/src/controller/java/templates/ClusterInfo-java.zapt b/src/controller/java/templates/ClusterInfo-java.zapt index c1a8f924dade44..0270c88a27217f 100644 --- a/src/controller/java/templates/ClusterInfo-java.zapt +++ b/src/controller/java/templates/ClusterInfo-java.zapt @@ -19,6 +19,118 @@ import chip.devicecontroller.ChipClusters.DefaultClusterCallback; public class ClusterInfoMapping { + public class DelegatedCharStringAttributeCallback implements ChipClusters.CharStringAttributeCallback, DelegatedClusterCallback { + /** Indicates a successful read for a CHAR_STRING attribute. */ + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(String value) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "String"); + responseValues.put(setupPINResponseValue, value); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedOctetStringAttributeCallback implements ChipClusters.OctetStringAttributeCallback, DelegatedClusterCallback { + /** Indicates a successful read for an OCTET_STRING attribute. */ + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(byte[] value) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "byte[]"); + responseValues.put(setupPINResponseValue, value); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedIntegerAttributeCallback implements ChipClusters.IntegerAttributeCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(int value) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "int"); + responseValues.put(setupPINResponseValue, value); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedLongAttributeCallback implements ChipClusters.LongAttributeCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(long value) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "long"); + responseValues.put(setupPINResponseValue, value); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedBooleanAttributeCallback implements ChipClusters.BooleanAttributeCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(boolean value) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "boolean"); + responseValues.put(setupPINResponseValue, value); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + class DelegatedDefaultClusterCallback implements DefaultClusterCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -83,32 +195,78 @@ public class ClusterInfoMapping { } {{/chip_cluster_responses}} + {{#chip_server_cluster_attributes}} + {{#if isList}} + {{#if isStruct}} + + {{/if}} + + public class Delegated{{asUpperCamelCase name}}AttributeCallback implements ChipClusters.{{asUpperCamelCase ../name}}Cluster.{{asUpperCamelCase name}}AttributeCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + @Override + public void onSuccess(List< + {{#if isStruct}} + ChipClusters.{{asUpperCamelCase ../name}}Cluster.{{asUpperCamelCase name}}Attribute + {{else}} + {{#if (isOctetString type)}} + byte[] + {{else if (isCharString type)}} + // Add String field here after ByteSpan is properly emitted in C++ layer + {{else}} + {{asJavaBasicTypeForZclType type true}} + {{/if}} + {{/if}} + > valueList) { + Map responseValues = new LinkedHashMap<>(); + {{#if isStruct}} + CommandResponseInfo commandResponseInfo = new CommandResponseInfo("valueList", "List"); + {{else}} + {{#if (isOctetString type)}} + CommandResponseInfo commandResponseInfo = new CommandResponseInfo("valueList", "List"); + {{else if (isCharString type)}} + // Add String field here after ByteSpan is properly emitted in C++ layer + {{else}} + CommandResponseInfo commandResponseInfo = new CommandResponseInfo("valueList", "List<{{asJavaBasicTypeForZclType type true}}>"); + {{/if}} + {{/if}} + + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + {{/if}} + {{/chip_server_cluster_attributes}} + {{/chip_client_clusters}} public Map getClusterMap() { - Map clusterMap = new HashMap<>(); + Map clusterMap = new HashMap<>(); + getCommandMap(clusterMap); + getReadAttributeMap(clusterMap); + return clusterMap; + } + + public Map getCommandMap(Map clusterMap) { {{#chip_client_clusters}} Map {{asLowerCamelCase name}}ClusterCommandInfoMap = new LinkedHashMap<>(); {{#chip_cluster_commands}} Map {{asLowerCamelCase ../name}}{{asLowerCamelCase name}}CommandParams = new LinkedHashMap(); {{! TODO: fill out parameter types }} {{#if (zcl_command_arguments_count this.id)}} - {{#if hasSpecificResponse}} - CommandParameterInfo {{asLowerCamelCase ../name}}{{asLowerCamelCase name}}CommandParameterInfo = new CommandParameterInfo("{{asUpperCamelCase ../name}}", ChipClusters.{{asUpperCamelCase ../name}}Cluster.{{asUpperCamelCase responseName}}Callback.class); - {{else}} - CommandParameterInfo {{asLowerCamelCase ../name}}{{asLowerCamelCase name}}CommandParameterInfo = new CommandParameterInfo("{{asUpperCamelCase ../name}}", ChipClusters.DefaultClusterCallback.class); - {{/if}} {{#chip_cluster_command_arguments_with_structs_expanded}} CommandParameterInfo {{asLowerCamelCase ../../name}}{{asLowerCamelCase ../name}}{{asLowerCamelCase label}}CommandParameterInfo = new CommandParameterInfo("{{asLowerCamelCase label}}", {{asJavaBasicType type}}.class); {{asLowerCamelCase ../../name}}{{asLowerCamelCase ../name}}CommandParams.put("{{asLowerCamelCase label}}",{{asLowerCamelCase ../../name}}{{asLowerCamelCase ../name}}{{asLowerCamelCase label}}CommandParameterInfo); {{#not_last}} {{/not_last}} {{/chip_cluster_command_arguments_with_structs_expanded}} {{else}} - {{#if hasSpecificResponse}} - CommandParameterInfo {{asLowerCamelCase ../name}}{{asLowerCamelCase name}}CommandParameterInfo = new CommandParameterInfo("{{asUpperCamelCase ../name}}", ChipClusters.{{asUpperCamelCase ../name}}Cluster.{{asUpperCamelCase responseName}}Callback.class); - {{else}} - CommandParameterInfo {{asLowerCamelCase ../name}}{{asLowerCamelCase name}}CommandParameterInfo = new CommandParameterInfo("{{asUpperCamelCase ../name}}", ChipClusters.DefaultClusterCallback.class); - {{/if}} {{/if}} // Populate commands {{#if hasSpecificResponse}} @@ -149,6 +307,37 @@ public class ClusterInfoMapping { {{/chip_client_clusters}} return clusterMap; } + + public Map getReadAttributeMap(Map clusterMap) { + {{#chip_client_clusters}} + Map read{{asUpperCamelCase name}}CommandInfo = new LinkedHashMap<>(); + // read attribute + {{#chip_server_cluster_attributes}} + Map read{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}CommandParams = new LinkedHashMap(); + CommandInfo read{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}AttributeCommandInfo = new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.{{asUpperCamelCase ../name}}Cluster) cluster).read{{asUpperCamelCase name}}Attribute( + {{#if isList}} + (ChipClusters.{{asUpperCamelCase ../name}}Cluster.{{asUpperCamelCase name}}AttributeCallback) callback + {{else}} + (ChipClusters.{{convertAttributeCallbackTypeToJavaName chipCallback.type}}AttributeCallback) callback + {{/if}} + ); + }, + {{#if isList}} + () -> new Delegated{{asUpperCamelCase name}}AttributeCallback(), + {{else}} + () -> new Delegated{{convertAttributeCallbackTypeToJavaName chipCallback.type}}AttributeCallback(), + {{/if}} + read{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}CommandParams + ); + read{{asUpperCamelCase ../name}}CommandInfo.put("read{{asUpperCamelCase name}}Attribute", read{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}AttributeCommandInfo); + {{/chip_server_cluster_attributes}} + // combine the read Attribute into the original commands + clusterMap.get("{{asLowerCamelCase name}}").combineCommands(read{{asUpperCamelCase name}}CommandInfo); + {{/chip_client_clusters}} + return clusterMap; + } } {{/if}} \ No newline at end of file diff --git a/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java b/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java index 6f5df3b2596994..188eab50f8b1c2 100644 --- a/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java +++ b/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java @@ -371,6 +371,24 @@ public AudioOutputListAttribute(int index, int outputType, String name) { this.outputType = outputType; this.name = name; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("int index: "); + output.append(this.index); + output.append("\n"); + + output.append("int outputType: "); + output.append(this.outputType); + output.append("\n"); + + output.append("String name: "); + output.append(this.name); + output.append("\n"); + + return output.toString(); + } } public interface AudioOutputListAttributeCallback { @@ -951,6 +969,36 @@ public ActionListAttribute( this.supportedCommands = supportedCommands; this.status = status; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("int actionID: "); + output.append(this.actionID); + output.append("\n"); + + output.append("String name: "); + output.append(this.name); + output.append("\n"); + + output.append("int type: "); + output.append(this.type); + output.append("\n"); + + output.append("int endpointListID: "); + output.append(this.endpointListID); + output.append("\n"); + + output.append("int supportedCommands: "); + output.append(this.supportedCommands); + output.append("\n"); + + output.append("int status: "); + output.append(this.status); + output.append("\n"); + + return output.toString(); + } } public interface ActionListAttributeCallback { @@ -971,6 +1019,36 @@ public EndpointListAttribute(int endpointListID, String name, int type, byte[] e this.type = type; this.endpoints = endpoints; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("int endpointListID: "); + output.append(this.endpointListID); + output.append("\n"); + + output.append("String name: "); + output.append(this.name); + output.append("\n"); + + output.append("int type: "); + output.append(this.type); + output.append("\n"); + + output.append("byte[] endpoints: ["); + for (int i = 0; i < endpoints.length; i++) { + if (i != endpoints.length - 1) { + output.append(endpoints[i]); + output.append(", "); + } else { + output.append(endpoints[i]); + output.append("]"); + output.append("\n"); + } + } + + return output.toString(); + } } public interface EndpointListAttributeCallback { @@ -2197,6 +2275,20 @@ public DeviceListAttribute(long type, int revision) { this.type = type; this.revision = revision; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("long type: "); + output.append(this.type); + output.append("\n"); + + output.append("int revision: "); + output.append(this.revision); + output.append("\n"); + + return output.toString(); + } } public interface DeviceListAttributeCallback { @@ -2957,6 +3049,20 @@ public LabelListAttribute(String label, String value) { this.label = label; this.value = value; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("String label: "); + output.append(this.label); + output.append("\n"); + + output.append("String value: "); + output.append(this.value); + output.append("\n"); + + return output.toString(); + } } public interface LabelListAttributeCallback { @@ -3103,6 +3209,16 @@ public static class BasicCommissioningInfoListAttribute { public BasicCommissioningInfoListAttribute(long failSafeExpiryLengthMs) { this.failSafeExpiryLengthMs = failSafeExpiryLengthMs; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("long failSafeExpiryLengthMs: "); + output.append(this.failSafeExpiryLengthMs); + output.append("\n"); + + return output.toString(); + } } public interface BasicCommissioningInfoListAttributeCallback { @@ -3175,6 +3291,44 @@ public NetworkInterfacesAttribute( this.hardwareAddress = hardwareAddress; this.type = type; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("String name: "); + output.append(this.name); + output.append("\n"); + + output.append("boolean fabricConnected: "); + output.append(this.fabricConnected); + output.append("\n"); + + output.append("boolean offPremiseServicesReachableIPv4: "); + output.append(this.offPremiseServicesReachableIPv4); + output.append("\n"); + + output.append("boolean offPremiseServicesReachableIPv6: "); + output.append(this.offPremiseServicesReachableIPv6); + output.append("\n"); + + output.append("byte[] hardwareAddress: ["); + for (int i = 0; i < hardwareAddress.length; i++) { + if (i != hardwareAddress.length - 1) { + output.append(hardwareAddress[i]); + output.append(", "); + } else { + output.append(hardwareAddress[i]); + output.append("]"); + output.append("\n"); + } + } + + output.append("int type: "); + output.append(this.type); + output.append("\n"); + + return output.toString(); + } } public interface NetworkInterfacesAttributeCallback { @@ -3247,6 +3401,24 @@ public GroupsAttribute(int vendorId, int vendorGroupId, int groupKeySetIndex) { this.vendorGroupId = vendorGroupId; this.groupKeySetIndex = groupKeySetIndex; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("int vendorId: "); + output.append(this.vendorId); + output.append("\n"); + + output.append("int vendorGroupId: "); + output.append(this.vendorGroupId); + output.append("\n"); + + output.append("int groupKeySetIndex: "); + output.append(this.groupKeySetIndex); + output.append("\n"); + + return output.toString(); + } } public interface GroupsAttributeCallback { @@ -3274,6 +3446,40 @@ public GroupKeysAttribute( this.groupKeyEpochStartTime = groupKeyEpochStartTime; this.groupKeySecurityPolicy = groupKeySecurityPolicy; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("int vendorId: "); + output.append(this.vendorId); + output.append("\n"); + + output.append("int groupKeyIndex: "); + output.append(this.groupKeyIndex); + output.append("\n"); + + output.append("byte[] groupKeyRoot: ["); + for (int i = 0; i < groupKeyRoot.length; i++) { + if (i != groupKeyRoot.length - 1) { + output.append(groupKeyRoot[i]); + output.append(", "); + } else { + output.append(groupKeyRoot[i]); + output.append("]"); + output.append("\n"); + } + } + + output.append("long groupKeyEpochStartTime: "); + output.append(this.groupKeyEpochStartTime); + output.append("\n"); + + output.append("int groupKeySecurityPolicy: "); + output.append(this.groupKeySecurityPolicy); + output.append("\n"); + + return output.toString(); + } } public interface GroupKeysAttributeCallback { @@ -3928,6 +4134,28 @@ public MediaInputListAttribute(int index, int inputType, String name, String des this.name = name; this.description = description; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("int index: "); + output.append(this.index); + output.append("\n"); + + output.append("int inputType: "); + output.append(this.inputType); + output.append("\n"); + + output.append("String name: "); + output.append(this.name); + output.append("\n"); + + output.append("String description: "); + output.append(this.description); + output.append("\n"); + + return output.toString(); + } } public interface MediaInputListAttributeCallback { @@ -4203,6 +4431,24 @@ public SupportedModesAttribute(String label, int mode, long semanticTag) { this.mode = mode; this.semanticTag = semanticTag; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("String label: "); + output.append(this.label); + output.append("\n"); + + output.append("int mode: "); + output.append(this.mode); + output.append("\n"); + + output.append("long semanticTag: "); + output.append(this.semanticTag); + output.append("\n"); + + return output.toString(); + } } public interface SupportedModesAttributeCallback { @@ -5003,6 +5249,44 @@ public FabricsListAttribute( this.nodeId = nodeId; this.label = label; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("int fabricIndex: "); + output.append(this.fabricIndex); + output.append("\n"); + + output.append("byte[] rootPublicKey: ["); + for (int i = 0; i < rootPublicKey.length; i++) { + if (i != rootPublicKey.length - 1) { + output.append(rootPublicKey[i]); + output.append(", "); + } else { + output.append(rootPublicKey[i]); + output.append("]"); + output.append("\n"); + } + } + + output.append("int vendorId: "); + output.append(this.vendorId); + output.append("\n"); + + output.append("long fabricId: "); + output.append(this.fabricId); + output.append("\n"); + + output.append("long nodeId: "); + output.append(this.nodeId); + output.append("\n"); + + output.append("String label: "); + output.append(this.label); + output.append("\n"); + + return output.toString(); + } } public interface FabricsListAttributeCallback { @@ -5861,6 +6145,32 @@ public TvChannelListAttribute( this.callSign = callSign; this.affiliateCallSign = affiliateCallSign; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("int majorNumber: "); + output.append(this.majorNumber); + output.append("\n"); + + output.append("int minorNumber: "); + output.append(this.minorNumber); + output.append("\n"); + + output.append("String name: "); + output.append(this.name); + output.append("\n"); + + output.append("String callSign: "); + output.append(this.callSign); + output.append("\n"); + + output.append("String affiliateCallSign: "); + output.append(this.affiliateCallSign); + output.append("\n"); + + return output.toString(); + } } public interface TvChannelListAttributeCallback { @@ -5931,6 +6241,20 @@ public TargetNavigatorListAttribute(int identifier, String name) { this.identifier = identifier; this.name = name; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("int identifier: "); + output.append(this.identifier); + output.append("\n"); + + output.append("String name: "); + output.append(this.name); + output.append("\n"); + + return output.toString(); + } } public interface TargetNavigatorListAttributeCallback { @@ -6194,6 +6518,28 @@ public ListStructOctetStringAttribute(long fabricIndex, byte[] operationalCert) this.fabricIndex = fabricIndex; this.operationalCert = operationalCert; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("long fabricIndex: "); + output.append(this.fabricIndex); + output.append("\n"); + + output.append("byte[] operationalCert: ["); + for (int i = 0; i < operationalCert.length; i++) { + if (i != operationalCert.length - 1) { + output.append(operationalCert[i]); + output.append(", "); + } else { + output.append(operationalCert[i]); + output.append("]"); + output.append("\n"); + } + } + + return output.toString(); + } } public interface ListStructOctetStringAttributeCallback { @@ -6205,6 +6551,13 @@ public interface ListStructOctetStringAttributeCallback { public static class ListNullablesAndOptionalsStructAttribute { public ListNullablesAndOptionalsStructAttribute() {} + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + + return output.toString(); + } } public interface ListNullablesAndOptionalsStructAttributeCallback { @@ -6961,6 +7314,68 @@ public NeighborTableListAttribute( this.fullNetworkData = fullNetworkData; this.isChild = isChild; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("long extAddress: "); + output.append(this.extAddress); + output.append("\n"); + + output.append("long age: "); + output.append(this.age); + output.append("\n"); + + output.append("int rloc16: "); + output.append(this.rloc16); + output.append("\n"); + + output.append("long linkFrameCounter: "); + output.append(this.linkFrameCounter); + output.append("\n"); + + output.append("long mleFrameCounter: "); + output.append(this.mleFrameCounter); + output.append("\n"); + + output.append("int lqi: "); + output.append(this.lqi); + output.append("\n"); + + output.append("int averageRssi: "); + output.append(this.averageRssi); + output.append("\n"); + + output.append("int lastRssi: "); + output.append(this.lastRssi); + output.append("\n"); + + output.append("int frameErrorRate: "); + output.append(this.frameErrorRate); + output.append("\n"); + + output.append("int messageErrorRate: "); + output.append(this.messageErrorRate); + output.append("\n"); + + output.append("boolean rxOnWhenIdle: "); + output.append(this.rxOnWhenIdle); + output.append("\n"); + + output.append("boolean fullThreadDevice: "); + output.append(this.fullThreadDevice); + output.append("\n"); + + output.append("boolean fullNetworkData: "); + output.append(this.fullNetworkData); + output.append("\n"); + + output.append("boolean isChild: "); + output.append(this.isChild); + output.append("\n"); + + return output.toString(); + } } public interface NeighborTableListAttributeCallback { @@ -7003,6 +7418,52 @@ public RouteTableListAttribute( this.allocated = allocated; this.linkEstablished = linkEstablished; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("long extAddress: "); + output.append(this.extAddress); + output.append("\n"); + + output.append("int rloc16: "); + output.append(this.rloc16); + output.append("\n"); + + output.append("int routerId: "); + output.append(this.routerId); + output.append("\n"); + + output.append("int nextHop: "); + output.append(this.nextHop); + output.append("\n"); + + output.append("int pathCost: "); + output.append(this.pathCost); + output.append("\n"); + + output.append("int LQIIn: "); + output.append(this.LQIIn); + output.append("\n"); + + output.append("int LQIOut: "); + output.append(this.LQIOut); + output.append("\n"); + + output.append("int age: "); + output.append(this.age); + output.append("\n"); + + output.append("boolean allocated: "); + output.append(this.allocated); + output.append("\n"); + + output.append("boolean linkEstablished: "); + output.append(this.linkEstablished); + output.append("\n"); + + return output.toString(); + } } public interface RouteTableListAttributeCallback { @@ -7019,6 +7480,20 @@ public SecurityPolicyAttribute(int rotationTime, int flags) { this.rotationTime = rotationTime; this.flags = flags; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("int rotationTime: "); + output.append(this.rotationTime); + output.append("\n"); + + output.append("int flags: "); + output.append(this.flags); + output.append("\n"); + + return output.toString(); + } } public interface SecurityPolicyAttributeCallback { @@ -7067,6 +7542,60 @@ public OperationalDatasetComponentsAttribute( this.securityPolicyPresent = securityPolicyPresent; this.channelMaskPresent = channelMaskPresent; } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(""); + output.append("boolean activeTimestampPresent: "); + output.append(this.activeTimestampPresent); + output.append("\n"); + + output.append("boolean pendingTimestampPresent: "); + output.append(this.pendingTimestampPresent); + output.append("\n"); + + output.append("boolean masterKeyPresent: "); + output.append(this.masterKeyPresent); + output.append("\n"); + + output.append("boolean networkNamePresent: "); + output.append(this.networkNamePresent); + output.append("\n"); + + output.append("boolean extendedPanIdPresent: "); + output.append(this.extendedPanIdPresent); + output.append("\n"); + + output.append("boolean meshLocalPrefixPresent: "); + output.append(this.meshLocalPrefixPresent); + output.append("\n"); + + output.append("boolean delayPresent: "); + output.append(this.delayPresent); + output.append("\n"); + + output.append("boolean panIdPresent: "); + output.append(this.panIdPresent); + output.append("\n"); + + output.append("boolean channelPresent: "); + output.append(this.channelPresent); + output.append("\n"); + + output.append("boolean pskcPresent: "); + output.append(this.pskcPresent); + output.append("\n"); + + output.append("boolean securityPolicyPresent: "); + output.append(this.securityPolicyPresent); + output.append("\n"); + + output.append("boolean channelMaskPresent: "); + output.append(this.channelMaskPresent); + output.append("\n"); + + return output.toString(); + } } public interface OperationalDatasetComponentsAttributeCallback { diff --git a/src/controller/java/zap-generated/chip/devicecontroller/ClusterInfoMapping.java b/src/controller/java/zap-generated/chip/devicecontroller/ClusterInfoMapping.java index 6ae483c8862550..e545384a82e601 100644 --- a/src/controller/java/zap-generated/chip/devicecontroller/ClusterInfoMapping.java +++ b/src/controller/java/zap-generated/chip/devicecontroller/ClusterInfoMapping.java @@ -28,12 +28,14 @@ import chip.devicecontroller.ChipClusters.DefaultClusterCallback; import java.util.HashMap; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; public class ClusterInfoMapping { - class DelegatedDefaultClusterCallback - implements DefaultClusterCallback, DelegatedClusterCallback { + public class DelegatedCharStringAttributeCallback + implements ChipClusters.CharStringAttributeCallback, DelegatedClusterCallback { + /** Indicates a successful read for a CHAR_STRING attribute. */ private ClusterCommandCallback callback; @Override @@ -41,23 +43,23 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { this.callback = callback; } - // Parameters and list-adds here should be generated - refer to the template code that creates - // each callback interface. @Override - public void onSuccess() { + public void onSuccess(String value) { Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "String"); + responseValues.put(setupPINResponseValue, value); callback.onSuccess(responseValues); } @Override - public void onError(Exception e) { - callback.onFailure(e); + public void onError(Exception error) { + callback.onFailure(error); } } - public class DelegatedGetSetupPINResponseCallback - implements ChipClusters.AccountLoginCluster.GetSetupPINResponseCallback, - DelegatedClusterCallback { + public class DelegatedOctetStringAttributeCallback + implements ChipClusters.OctetStringAttributeCallback, DelegatedClusterCallback { + /** Indicates a successful read for an OCTET_STRING attribute. */ private ClusterCommandCallback callback; @Override @@ -66,10 +68,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(String setupPIN) { + public void onSuccess(byte[] value) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("setupPIN", "String"); - responseValues.put(setupPINResponseValue, setupPIN); + CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "byte[]"); + responseValues.put(setupPINResponseValue, value); callback.onSuccess(responseValues); } @@ -79,9 +81,8 @@ public void onError(Exception error) { } } - public class DelegatedLaunchAppResponseCallback - implements ChipClusters.ApplicationLauncherCluster.LaunchAppResponseCallback, - DelegatedClusterCallback { + public class DelegatedIntegerAttributeCallback + implements ChipClusters.IntegerAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -90,12 +91,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status, String data) { + public void onSuccess(int value) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); - CommandResponseInfo dataResponseValue = new CommandResponseInfo("data", "String"); - responseValues.put(dataResponseValue, data); + CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "int"); + responseValues.put(setupPINResponseValue, value); callback.onSuccess(responseValues); } @@ -105,9 +104,8 @@ public void onError(Exception error) { } } - public class DelegatedLaunchContentResponseCallback - implements ChipClusters.ContentLauncherCluster.LaunchContentResponseCallback, - DelegatedClusterCallback { + public class DelegatedLongAttributeCallback + implements ChipClusters.LongAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -116,13 +114,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(String data, int contentLaunchStatus) { + public void onSuccess(long value) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo dataResponseValue = new CommandResponseInfo("data", "String"); - responseValues.put(dataResponseValue, data); - CommandResponseInfo contentLaunchStatusResponseValue = - new CommandResponseInfo("contentLaunchStatus", "int"); - responseValues.put(contentLaunchStatusResponseValue, contentLaunchStatus); + CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "long"); + responseValues.put(setupPINResponseValue, value); callback.onSuccess(responseValues); } @@ -132,9 +127,8 @@ public void onError(Exception error) { } } - public class DelegatedLaunchURLResponseCallback - implements ChipClusters.ContentLauncherCluster.LaunchURLResponseCallback, - DelegatedClusterCallback { + public class DelegatedBooleanAttributeCallback + implements ChipClusters.BooleanAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -143,13 +137,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(String data, int contentLaunchStatus) { + public void onSuccess(boolean value) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo dataResponseValue = new CommandResponseInfo("data", "String"); - responseValues.put(dataResponseValue, data); - CommandResponseInfo contentLaunchStatusResponseValue = - new CommandResponseInfo("contentLaunchStatus", "int"); - responseValues.put(contentLaunchStatusResponseValue, contentLaunchStatus); + CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "boolean"); + responseValues.put(setupPINResponseValue, value); callback.onSuccess(responseValues); } @@ -159,9 +150,8 @@ public void onError(Exception error) { } } - public class DelegatedRetrieveLogsResponseCallback - implements ChipClusters.DiagnosticLogsCluster.RetrieveLogsResponseCallback, - DelegatedClusterCallback { + class DelegatedDefaultClusterCallback + implements DefaultClusterCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -169,29 +159,22 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { this.callback = callback; } + // Parameters and list-adds here should be generated - refer to the template code that creates + // each callback interface. @Override - public void onSuccess(int status, byte[] content, long timeStamp, long timeSinceBoot) { + public void onSuccess() { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); - CommandResponseInfo contentResponseValue = new CommandResponseInfo("content", "byte[]"); - responseValues.put(contentResponseValue, content); - CommandResponseInfo timeStampResponseValue = new CommandResponseInfo("timeStamp", "long"); - responseValues.put(timeStampResponseValue, timeStamp); - CommandResponseInfo timeSinceBootResponseValue = - new CommandResponseInfo("timeSinceBoot", "long"); - responseValues.put(timeSinceBootResponseValue, timeSinceBoot); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception e) { + callback.onFailure(e); } } - public class DelegatedClearAllPinsResponseCallback - implements ChipClusters.DoorLockCluster.ClearAllPinsResponseCallback, + public class DelegatedGetSetupPINResponseCallback + implements ChipClusters.AccountLoginCluster.GetSetupPINResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -201,10 +184,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status) { + public void onSuccess(String setupPIN) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); + CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("setupPIN", "String"); + responseValues.put(setupPINResponseValue, setupPIN); callback.onSuccess(responseValues); } @@ -214,8 +197,8 @@ public void onError(Exception error) { } } - public class DelegatedClearAllRfidsResponseCallback - implements ChipClusters.DoorLockCluster.ClearAllRfidsResponseCallback, + public class DelegatedLaunchAppResponseCallback + implements ChipClusters.ApplicationLauncherCluster.LaunchAppResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -225,10 +208,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status) { + public void onSuccess(int status, String data) { Map responseValues = new LinkedHashMap<>(); CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); responseValues.put(statusResponseValue, status); + CommandResponseInfo dataResponseValue = new CommandResponseInfo("data", "String"); + responseValues.put(dataResponseValue, data); callback.onSuccess(responseValues); } @@ -238,8 +223,8 @@ public void onError(Exception error) { } } - public class DelegatedClearHolidayScheduleResponseCallback - implements ChipClusters.DoorLockCluster.ClearHolidayScheduleResponseCallback, + public class DelegatedApplicationLauncherListAttributeCallback + implements ChipClusters.ApplicationLauncherCluster.ApplicationLauncherListAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -249,21 +234,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status) { + public void onSuccess(List valueList) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo("valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception ex) { + callback.onFailure(ex); } } - public class DelegatedClearPinResponseCallback - implements ChipClusters.DoorLockCluster.ClearPinResponseCallback, DelegatedClusterCallback { + public class DelegatedAudioOutputListAttributeCallback + implements ChipClusters.AudioOutputCluster.AudioOutputListAttributeCallback, + DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -272,21 +260,26 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status) { + public void onSuccess( + List valueList) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception ex) { + callback.onFailure(ex); } } - public class DelegatedClearRfidResponseCallback - implements ChipClusters.DoorLockCluster.ClearRfidResponseCallback, DelegatedClusterCallback { + public class DelegatedActionListAttributeCallback + implements ChipClusters.BridgedActionsCluster.ActionListAttributeCallback, + DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -295,21 +288,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status) { + public void onSuccess(List valueList) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception ex) { + callback.onFailure(ex); } } - public class DelegatedClearWeekdayScheduleResponseCallback - implements ChipClusters.DoorLockCluster.ClearWeekdayScheduleResponseCallback, + public class DelegatedEndpointListAttributeCallback + implements ChipClusters.BridgedActionsCluster.EndpointListAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -319,21 +315,25 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status) { + public void onSuccess( + List valueList) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception ex) { + callback.onFailure(ex); } } - public class DelegatedClearYeardayScheduleResponseCallback - implements ChipClusters.DoorLockCluster.ClearYeardayScheduleResponseCallback, + public class DelegatedLaunchContentResponseCallback + implements ChipClusters.ContentLauncherCluster.LaunchContentResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -343,10 +343,13 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status) { + public void onSuccess(String data, int contentLaunchStatus) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); + CommandResponseInfo dataResponseValue = new CommandResponseInfo("data", "String"); + responseValues.put(dataResponseValue, data); + CommandResponseInfo contentLaunchStatusResponseValue = + new CommandResponseInfo("contentLaunchStatus", "int"); + responseValues.put(contentLaunchStatusResponseValue, contentLaunchStatus); callback.onSuccess(responseValues); } @@ -356,8 +359,8 @@ public void onError(Exception error) { } } - public class DelegatedGetHolidayScheduleResponseCallback - implements ChipClusters.DoorLockCluster.GetHolidayScheduleResponseCallback, + public class DelegatedLaunchURLResponseCallback + implements ChipClusters.ContentLauncherCluster.LaunchURLResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -367,26 +370,13 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess( - int scheduleId, - int status, - long localStartTime, - long localEndTime, - int operatingModeDuringHoliday) { + public void onSuccess(String data, int contentLaunchStatus) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo scheduleIdResponseValue = new CommandResponseInfo("scheduleId", "int"); - responseValues.put(scheduleIdResponseValue, scheduleId); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); - CommandResponseInfo localStartTimeResponseValue = - new CommandResponseInfo("localStartTime", "long"); - responseValues.put(localStartTimeResponseValue, localStartTime); - CommandResponseInfo localEndTimeResponseValue = - new CommandResponseInfo("localEndTime", "long"); - responseValues.put(localEndTimeResponseValue, localEndTime); - CommandResponseInfo operatingModeDuringHolidayResponseValue = - new CommandResponseInfo("operatingModeDuringHoliday", "int"); - responseValues.put(operatingModeDuringHolidayResponseValue, operatingModeDuringHoliday); + CommandResponseInfo dataResponseValue = new CommandResponseInfo("data", "String"); + responseValues.put(dataResponseValue, data); + CommandResponseInfo contentLaunchStatusResponseValue = + new CommandResponseInfo("contentLaunchStatus", "int"); + responseValues.put(contentLaunchStatusResponseValue, contentLaunchStatus); callback.onSuccess(responseValues); } @@ -396,8 +386,8 @@ public void onError(Exception error) { } } - public class DelegatedGetLogRecordResponseCallback - implements ChipClusters.DoorLockCluster.GetLogRecordResponseCallback, + public class DelegatedAcceptsHeaderListAttributeCallback + implements ChipClusters.ContentLauncherCluster.AcceptsHeaderListAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -407,41 +397,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess( - int logEntryId, - long timestamp, - int eventType, - int source, - int eventIdOrAlarmCode, - int userId, - byte[] pin) { + public void onSuccess(List valueList) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo logEntryIdResponseValue = new CommandResponseInfo("logEntryId", "int"); - responseValues.put(logEntryIdResponseValue, logEntryId); - CommandResponseInfo timestampResponseValue = new CommandResponseInfo("timestamp", "long"); - responseValues.put(timestampResponseValue, timestamp); - CommandResponseInfo eventTypeResponseValue = new CommandResponseInfo("eventType", "int"); - responseValues.put(eventTypeResponseValue, eventType); - CommandResponseInfo sourceResponseValue = new CommandResponseInfo("source", "int"); - responseValues.put(sourceResponseValue, source); - CommandResponseInfo eventIdOrAlarmCodeResponseValue = - new CommandResponseInfo("eventIdOrAlarmCode", "int"); - responseValues.put(eventIdOrAlarmCodeResponseValue, eventIdOrAlarmCode); - CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int"); - responseValues.put(userIdResponseValue, userId); - CommandResponseInfo pinResponseValue = new CommandResponseInfo("pin", "byte[]"); - responseValues.put(pinResponseValue, pin); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo("valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception ex) { + callback.onFailure(ex); } } - public class DelegatedGetPinResponseCallback - implements ChipClusters.DoorLockCluster.GetPinResponseCallback, DelegatedClusterCallback { + public class DelegatedSupportedStreamingTypesAttributeCallback + implements ChipClusters.ContentLauncherCluster.SupportedStreamingTypesAttributeCallback, + DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -450,27 +423,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int userId, int userStatus, int userType, byte[] pin) { + public void onSuccess(List valueList) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int"); - responseValues.put(userIdResponseValue, userId); - CommandResponseInfo userStatusResponseValue = new CommandResponseInfo("userStatus", "int"); - responseValues.put(userStatusResponseValue, userStatus); - CommandResponseInfo userTypeResponseValue = new CommandResponseInfo("userType", "int"); - responseValues.put(userTypeResponseValue, userType); - CommandResponseInfo pinResponseValue = new CommandResponseInfo("pin", "byte[]"); - responseValues.put(pinResponseValue, pin); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo("valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception ex) { + callback.onFailure(ex); } } - public class DelegatedGetRfidResponseCallback - implements ChipClusters.DoorLockCluster.GetRfidResponseCallback, DelegatedClusterCallback { + public class DelegatedDeviceListAttributeCallback + implements ChipClusters.DescriptorCluster.DeviceListAttributeCallback, + DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -479,27 +449,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int userId, int userStatus, int userType, byte[] rfid) { + public void onSuccess(List valueList) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int"); - responseValues.put(userIdResponseValue, userId); - CommandResponseInfo userStatusResponseValue = new CommandResponseInfo("userStatus", "int"); - responseValues.put(userStatusResponseValue, userStatus); - CommandResponseInfo userTypeResponseValue = new CommandResponseInfo("userType", "int"); - responseValues.put(userTypeResponseValue, userType); - CommandResponseInfo rfidResponseValue = new CommandResponseInfo("rfid", "byte[]"); - responseValues.put(rfidResponseValue, rfid); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception ex) { + callback.onFailure(ex); } } - public class DelegatedGetUserTypeResponseCallback - implements ChipClusters.DoorLockCluster.GetUserTypeResponseCallback, + public class DelegatedServerListAttributeCallback + implements ChipClusters.DescriptorCluster.ServerListAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -509,23 +476,22 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int userId, int userType) { + public void onSuccess(List valueList) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int"); - responseValues.put(userIdResponseValue, userId); - CommandResponseInfo userTypeResponseValue = new CommandResponseInfo("userType", "int"); - responseValues.put(userTypeResponseValue, userType); + CommandResponseInfo commandResponseInfo = new CommandResponseInfo("valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception ex) { + callback.onFailure(ex); } } - public class DelegatedGetWeekdayScheduleResponseCallback - implements ChipClusters.DoorLockCluster.GetWeekdayScheduleResponseCallback, + public class DelegatedClientListAttributeCallback + implements ChipClusters.DescriptorCluster.ClientListAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -535,43 +501,22 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess( - int scheduleId, - int userId, - int status, - int daysMask, - int startHour, - int startMinute, - int endHour, - int endMinute) { + public void onSuccess(List valueList) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo scheduleIdResponseValue = new CommandResponseInfo("scheduleId", "int"); - responseValues.put(scheduleIdResponseValue, scheduleId); - CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int"); - responseValues.put(userIdResponseValue, userId); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); - CommandResponseInfo daysMaskResponseValue = new CommandResponseInfo("daysMask", "int"); - responseValues.put(daysMaskResponseValue, daysMask); - CommandResponseInfo startHourResponseValue = new CommandResponseInfo("startHour", "int"); - responseValues.put(startHourResponseValue, startHour); - CommandResponseInfo startMinuteResponseValue = new CommandResponseInfo("startMinute", "int"); - responseValues.put(startMinuteResponseValue, startMinute); - CommandResponseInfo endHourResponseValue = new CommandResponseInfo("endHour", "int"); - responseValues.put(endHourResponseValue, endHour); - CommandResponseInfo endMinuteResponseValue = new CommandResponseInfo("endMinute", "int"); - responseValues.put(endMinuteResponseValue, endMinute); + CommandResponseInfo commandResponseInfo = new CommandResponseInfo("valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception ex) { + callback.onFailure(ex); } } - public class DelegatedGetYeardayScheduleResponseCallback - implements ChipClusters.DoorLockCluster.GetYeardayScheduleResponseCallback, + public class DelegatedPartsListAttributeCallback + implements ChipClusters.DescriptorCluster.PartsListAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -581,32 +526,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess( - int scheduleId, int userId, int status, long localStartTime, long localEndTime) { + public void onSuccess(List valueList) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo scheduleIdResponseValue = new CommandResponseInfo("scheduleId", "int"); - responseValues.put(scheduleIdResponseValue, scheduleId); - CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int"); - responseValues.put(userIdResponseValue, userId); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); - CommandResponseInfo localStartTimeResponseValue = - new CommandResponseInfo("localStartTime", "long"); - responseValues.put(localStartTimeResponseValue, localStartTime); - CommandResponseInfo localEndTimeResponseValue = - new CommandResponseInfo("localEndTime", "long"); - responseValues.put(localEndTimeResponseValue, localEndTime); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo("valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception ex) { + callback.onFailure(ex); } } - public class DelegatedLockDoorResponseCallback - implements ChipClusters.DoorLockCluster.LockDoorResponseCallback, DelegatedClusterCallback { + public class DelegatedRetrieveLogsResponseCallback + implements ChipClusters.DiagnosticLogsCluster.RetrieveLogsResponseCallback, + DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -615,10 +552,17 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status) { + public void onSuccess(int status, byte[] content, long timeStamp, long timeSinceBoot) { Map responseValues = new LinkedHashMap<>(); CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); responseValues.put(statusResponseValue, status); + CommandResponseInfo contentResponseValue = new CommandResponseInfo("content", "byte[]"); + responseValues.put(contentResponseValue, content); + CommandResponseInfo timeStampResponseValue = new CommandResponseInfo("timeStamp", "long"); + responseValues.put(timeStampResponseValue, timeStamp); + CommandResponseInfo timeSinceBootResponseValue = + new CommandResponseInfo("timeSinceBoot", "long"); + responseValues.put(timeSinceBootResponseValue, timeSinceBoot); callback.onSuccess(responseValues); } @@ -628,8 +572,8 @@ public void onError(Exception error) { } } - public class DelegatedSetHolidayScheduleResponseCallback - implements ChipClusters.DoorLockCluster.SetHolidayScheduleResponseCallback, + public class DelegatedClearAllPinsResponseCallback + implements ChipClusters.DoorLockCluster.ClearAllPinsResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -652,8 +596,9 @@ public void onError(Exception error) { } } - public class DelegatedSetPinResponseCallback - implements ChipClusters.DoorLockCluster.SetPinResponseCallback, DelegatedClusterCallback { + public class DelegatedClearAllRfidsResponseCallback + implements ChipClusters.DoorLockCluster.ClearAllRfidsResponseCallback, + DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -675,8 +620,9 @@ public void onError(Exception error) { } } - public class DelegatedSetRfidResponseCallback - implements ChipClusters.DoorLockCluster.SetRfidResponseCallback, DelegatedClusterCallback { + public class DelegatedClearHolidayScheduleResponseCallback + implements ChipClusters.DoorLockCluster.ClearHolidayScheduleResponseCallback, + DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -698,9 +644,8 @@ public void onError(Exception error) { } } - public class DelegatedSetUserTypeResponseCallback - implements ChipClusters.DoorLockCluster.SetUserTypeResponseCallback, - DelegatedClusterCallback { + public class DelegatedClearPinResponseCallback + implements ChipClusters.DoorLockCluster.ClearPinResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -722,9 +667,8 @@ public void onError(Exception error) { } } - public class DelegatedSetWeekdayScheduleResponseCallback - implements ChipClusters.DoorLockCluster.SetWeekdayScheduleResponseCallback, - DelegatedClusterCallback { + public class DelegatedClearRfidResponseCallback + implements ChipClusters.DoorLockCluster.ClearRfidResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -746,8 +690,8 @@ public void onError(Exception error) { } } - public class DelegatedSetYeardayScheduleResponseCallback - implements ChipClusters.DoorLockCluster.SetYeardayScheduleResponseCallback, + public class DelegatedClearWeekdayScheduleResponseCallback + implements ChipClusters.DoorLockCluster.ClearWeekdayScheduleResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -770,8 +714,9 @@ public void onError(Exception error) { } } - public class DelegatedUnlockDoorResponseCallback - implements ChipClusters.DoorLockCluster.UnlockDoorResponseCallback, DelegatedClusterCallback { + public class DelegatedClearYeardayScheduleResponseCallback + implements ChipClusters.DoorLockCluster.ClearYeardayScheduleResponseCallback, + DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -793,8 +738,8 @@ public void onError(Exception error) { } } - public class DelegatedUnlockWithTimeoutResponseCallback - implements ChipClusters.DoorLockCluster.UnlockWithTimeoutResponseCallback, + public class DelegatedGetHolidayScheduleResponseCallback + implements ChipClusters.DoorLockCluster.GetHolidayScheduleResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -804,10 +749,26 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status) { + public void onSuccess( + int scheduleId, + int status, + long localStartTime, + long localEndTime, + int operatingModeDuringHoliday) { Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo scheduleIdResponseValue = new CommandResponseInfo("scheduleId", "int"); + responseValues.put(scheduleIdResponseValue, scheduleId); CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); responseValues.put(statusResponseValue, status); + CommandResponseInfo localStartTimeResponseValue = + new CommandResponseInfo("localStartTime", "long"); + responseValues.put(localStartTimeResponseValue, localStartTime); + CommandResponseInfo localEndTimeResponseValue = + new CommandResponseInfo("localEndTime", "long"); + responseValues.put(localEndTimeResponseValue, localEndTime); + CommandResponseInfo operatingModeDuringHolidayResponseValue = + new CommandResponseInfo("operatingModeDuringHoliday", "int"); + responseValues.put(operatingModeDuringHolidayResponseValue, operatingModeDuringHoliday); callback.onSuccess(responseValues); } @@ -817,8 +778,8 @@ public void onError(Exception error) { } } - public class DelegatedArmFailSafeResponseCallback - implements ChipClusters.GeneralCommissioningCluster.ArmFailSafeResponseCallback, + public class DelegatedGetLogRecordResponseCallback + implements ChipClusters.DoorLockCluster.GetLogRecordResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -828,12 +789,30 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int errorCode, String debugText) { + public void onSuccess( + int logEntryId, + long timestamp, + int eventType, + int source, + int eventIdOrAlarmCode, + int userId, + byte[] pin) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); - responseValues.put(errorCodeResponseValue, errorCode); - CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); - responseValues.put(debugTextResponseValue, debugText); + CommandResponseInfo logEntryIdResponseValue = new CommandResponseInfo("logEntryId", "int"); + responseValues.put(logEntryIdResponseValue, logEntryId); + CommandResponseInfo timestampResponseValue = new CommandResponseInfo("timestamp", "long"); + responseValues.put(timestampResponseValue, timestamp); + CommandResponseInfo eventTypeResponseValue = new CommandResponseInfo("eventType", "int"); + responseValues.put(eventTypeResponseValue, eventType); + CommandResponseInfo sourceResponseValue = new CommandResponseInfo("source", "int"); + responseValues.put(sourceResponseValue, source); + CommandResponseInfo eventIdOrAlarmCodeResponseValue = + new CommandResponseInfo("eventIdOrAlarmCode", "int"); + responseValues.put(eventIdOrAlarmCodeResponseValue, eventIdOrAlarmCode); + CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int"); + responseValues.put(userIdResponseValue, userId); + CommandResponseInfo pinResponseValue = new CommandResponseInfo("pin", "byte[]"); + responseValues.put(pinResponseValue, pin); callback.onSuccess(responseValues); } @@ -843,9 +822,8 @@ public void onError(Exception error) { } } - public class DelegatedCommissioningCompleteResponseCallback - implements ChipClusters.GeneralCommissioningCluster.CommissioningCompleteResponseCallback, - DelegatedClusterCallback { + public class DelegatedGetPinResponseCallback + implements ChipClusters.DoorLockCluster.GetPinResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -854,12 +832,16 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int errorCode, String debugText) { + public void onSuccess(int userId, int userStatus, int userType, byte[] pin) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); - responseValues.put(errorCodeResponseValue, errorCode); - CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); - responseValues.put(debugTextResponseValue, debugText); + CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int"); + responseValues.put(userIdResponseValue, userId); + CommandResponseInfo userStatusResponseValue = new CommandResponseInfo("userStatus", "int"); + responseValues.put(userStatusResponseValue, userStatus); + CommandResponseInfo userTypeResponseValue = new CommandResponseInfo("userType", "int"); + responseValues.put(userTypeResponseValue, userType); + CommandResponseInfo pinResponseValue = new CommandResponseInfo("pin", "byte[]"); + responseValues.put(pinResponseValue, pin); callback.onSuccess(responseValues); } @@ -869,9 +851,8 @@ public void onError(Exception error) { } } - public class DelegatedSetRegulatoryConfigResponseCallback - implements ChipClusters.GeneralCommissioningCluster.SetRegulatoryConfigResponseCallback, - DelegatedClusterCallback { + public class DelegatedGetRfidResponseCallback + implements ChipClusters.DoorLockCluster.GetRfidResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -880,12 +861,16 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int errorCode, String debugText) { + public void onSuccess(int userId, int userStatus, int userType, byte[] rfid) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); - responseValues.put(errorCodeResponseValue, errorCode); - CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); - responseValues.put(debugTextResponseValue, debugText); + CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int"); + responseValues.put(userIdResponseValue, userId); + CommandResponseInfo userStatusResponseValue = new CommandResponseInfo("userStatus", "int"); + responseValues.put(userStatusResponseValue, userStatus); + CommandResponseInfo userTypeResponseValue = new CommandResponseInfo("userType", "int"); + responseValues.put(userTypeResponseValue, userType); + CommandResponseInfo rfidResponseValue = new CommandResponseInfo("rfid", "byte[]"); + responseValues.put(rfidResponseValue, rfid); callback.onSuccess(responseValues); } @@ -895,8 +880,9 @@ public void onError(Exception error) { } } - public class DelegatedAddGroupResponseCallback - implements ChipClusters.GroupsCluster.AddGroupResponseCallback, DelegatedClusterCallback { + public class DelegatedGetUserTypeResponseCallback + implements ChipClusters.DoorLockCluster.GetUserTypeResponseCallback, + DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -905,12 +891,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status, int groupId) { + public void onSuccess(int userId, int userType) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); - CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); - responseValues.put(groupIdResponseValue, groupId); + CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int"); + responseValues.put(userIdResponseValue, userId); + CommandResponseInfo userTypeResponseValue = new CommandResponseInfo("userType", "int"); + responseValues.put(userTypeResponseValue, userType); callback.onSuccess(responseValues); } @@ -920,8 +906,8 @@ public void onError(Exception error) { } } - public class DelegatedGetGroupMembershipResponseCallback - implements ChipClusters.GroupsCluster.GetGroupMembershipResponseCallback, + public class DelegatedGetWeekdayScheduleResponseCallback + implements ChipClusters.DoorLockCluster.GetWeekdayScheduleResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -931,17 +917,32 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int capacity, int groupCount - // groupList: /* TYPE WARNING: array array defaults to */ uint8_t * - // Conversion from this type to Java is not properly implemented yet - ) { + public void onSuccess( + int scheduleId, + int userId, + int status, + int daysMask, + int startHour, + int startMinute, + int endHour, + int endMinute) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo capacityResponseValue = new CommandResponseInfo("capacity", "int"); - responseValues.put(capacityResponseValue, capacity); - CommandResponseInfo groupCountResponseValue = new CommandResponseInfo("groupCount", "int"); - responseValues.put(groupCountResponseValue, groupCount); - // groupList: /* TYPE WARNING: array array defaults to */ uint8_t * - // Conversion from this type to Java is not properly implemented yet + CommandResponseInfo scheduleIdResponseValue = new CommandResponseInfo("scheduleId", "int"); + responseValues.put(scheduleIdResponseValue, scheduleId); + CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int"); + responseValues.put(userIdResponseValue, userId); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); + CommandResponseInfo daysMaskResponseValue = new CommandResponseInfo("daysMask", "int"); + responseValues.put(daysMaskResponseValue, daysMask); + CommandResponseInfo startHourResponseValue = new CommandResponseInfo("startHour", "int"); + responseValues.put(startHourResponseValue, startHour); + CommandResponseInfo startMinuteResponseValue = new CommandResponseInfo("startMinute", "int"); + responseValues.put(startMinuteResponseValue, startMinute); + CommandResponseInfo endHourResponseValue = new CommandResponseInfo("endHour", "int"); + responseValues.put(endHourResponseValue, endHour); + CommandResponseInfo endMinuteResponseValue = new CommandResponseInfo("endMinute", "int"); + responseValues.put(endMinuteResponseValue, endMinute); callback.onSuccess(responseValues); } @@ -951,8 +952,9 @@ public void onError(Exception error) { } } - public class DelegatedRemoveGroupResponseCallback - implements ChipClusters.GroupsCluster.RemoveGroupResponseCallback, DelegatedClusterCallback { + public class DelegatedGetYeardayScheduleResponseCallback + implements ChipClusters.DoorLockCluster.GetYeardayScheduleResponseCallback, + DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -961,12 +963,21 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status, int groupId) { + public void onSuccess( + int scheduleId, int userId, int status, long localStartTime, long localEndTime) { Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo scheduleIdResponseValue = new CommandResponseInfo("scheduleId", "int"); + responseValues.put(scheduleIdResponseValue, scheduleId); + CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int"); + responseValues.put(userIdResponseValue, userId); CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); responseValues.put(statusResponseValue, status); - CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); - responseValues.put(groupIdResponseValue, groupId); + CommandResponseInfo localStartTimeResponseValue = + new CommandResponseInfo("localStartTime", "long"); + responseValues.put(localStartTimeResponseValue, localStartTime); + CommandResponseInfo localEndTimeResponseValue = + new CommandResponseInfo("localEndTime", "long"); + responseValues.put(localEndTimeResponseValue, localEndTime); callback.onSuccess(responseValues); } @@ -976,8 +987,8 @@ public void onError(Exception error) { } } - public class DelegatedViewGroupResponseCallback - implements ChipClusters.GroupsCluster.ViewGroupResponseCallback, DelegatedClusterCallback { + public class DelegatedLockDoorResponseCallback + implements ChipClusters.DoorLockCluster.LockDoorResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -986,14 +997,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status, int groupId, String groupName) { + public void onSuccess(int status) { Map responseValues = new LinkedHashMap<>(); CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); responseValues.put(statusResponseValue, status); - CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); - responseValues.put(groupIdResponseValue, groupId); - CommandResponseInfo groupNameResponseValue = new CommandResponseInfo("groupName", "String"); - responseValues.put(groupNameResponseValue, groupName); callback.onSuccess(responseValues); } @@ -1003,8 +1010,8 @@ public void onError(Exception error) { } } - public class DelegatedIdentifyQueryResponseCallback - implements ChipClusters.IdentifyCluster.IdentifyQueryResponseCallback, + public class DelegatedSetHolidayScheduleResponseCallback + implements ChipClusters.DoorLockCluster.SetHolidayScheduleResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1014,10 +1021,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int timeout) { + public void onSuccess(int status) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo timeoutResponseValue = new CommandResponseInfo("timeout", "int"); - responseValues.put(timeoutResponseValue, timeout); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); callback.onSuccess(responseValues); } @@ -1027,8 +1034,8 @@ public void onError(Exception error) { } } - public class DelegatedSendKeyResponseCallback - implements ChipClusters.KeypadInputCluster.SendKeyResponseCallback, DelegatedClusterCallback { + public class DelegatedSetPinResponseCallback + implements ChipClusters.DoorLockCluster.SetPinResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -1050,9 +1057,8 @@ public void onError(Exception error) { } } - public class DelegatedMediaFastForwardResponseCallback - implements ChipClusters.MediaPlaybackCluster.MediaFastForwardResponseCallback, - DelegatedClusterCallback { + public class DelegatedSetRfidResponseCallback + implements ChipClusters.DoorLockCluster.SetRfidResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -1061,11 +1067,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int mediaPlaybackStatus) { + public void onSuccess(int status) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo mediaPlaybackStatusResponseValue = - new CommandResponseInfo("mediaPlaybackStatus", "int"); - responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); callback.onSuccess(responseValues); } @@ -1075,8 +1080,8 @@ public void onError(Exception error) { } } - public class DelegatedMediaNextResponseCallback - implements ChipClusters.MediaPlaybackCluster.MediaNextResponseCallback, + public class DelegatedSetUserTypeResponseCallback + implements ChipClusters.DoorLockCluster.SetUserTypeResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1086,11 +1091,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int mediaPlaybackStatus) { + public void onSuccess(int status) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo mediaPlaybackStatusResponseValue = - new CommandResponseInfo("mediaPlaybackStatus", "int"); - responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); callback.onSuccess(responseValues); } @@ -1100,8 +1104,8 @@ public void onError(Exception error) { } } - public class DelegatedMediaPauseResponseCallback - implements ChipClusters.MediaPlaybackCluster.MediaPauseResponseCallback, + public class DelegatedSetWeekdayScheduleResponseCallback + implements ChipClusters.DoorLockCluster.SetWeekdayScheduleResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1111,11 +1115,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int mediaPlaybackStatus) { + public void onSuccess(int status) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo mediaPlaybackStatusResponseValue = - new CommandResponseInfo("mediaPlaybackStatus", "int"); - responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); callback.onSuccess(responseValues); } @@ -1125,8 +1128,8 @@ public void onError(Exception error) { } } - public class DelegatedMediaPlayResponseCallback - implements ChipClusters.MediaPlaybackCluster.MediaPlayResponseCallback, + public class DelegatedSetYeardayScheduleResponseCallback + implements ChipClusters.DoorLockCluster.SetYeardayScheduleResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1136,11 +1139,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int mediaPlaybackStatus) { + public void onSuccess(int status) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo mediaPlaybackStatusResponseValue = - new CommandResponseInfo("mediaPlaybackStatus", "int"); - responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); callback.onSuccess(responseValues); } @@ -1150,9 +1152,8 @@ public void onError(Exception error) { } } - public class DelegatedMediaPreviousResponseCallback - implements ChipClusters.MediaPlaybackCluster.MediaPreviousResponseCallback, - DelegatedClusterCallback { + public class DelegatedUnlockDoorResponseCallback + implements ChipClusters.DoorLockCluster.UnlockDoorResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -1161,11 +1162,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int mediaPlaybackStatus) { + public void onSuccess(int status) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo mediaPlaybackStatusResponseValue = - new CommandResponseInfo("mediaPlaybackStatus", "int"); - responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); callback.onSuccess(responseValues); } @@ -1175,8 +1175,8 @@ public void onError(Exception error) { } } - public class DelegatedMediaRewindResponseCallback - implements ChipClusters.MediaPlaybackCluster.MediaRewindResponseCallback, + public class DelegatedUnlockWithTimeoutResponseCallback + implements ChipClusters.DoorLockCluster.UnlockWithTimeoutResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1186,11 +1186,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int mediaPlaybackStatus) { + public void onSuccess(int status) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo mediaPlaybackStatusResponseValue = - new CommandResponseInfo("mediaPlaybackStatus", "int"); - responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); callback.onSuccess(responseValues); } @@ -1200,8 +1199,8 @@ public void onError(Exception error) { } } - public class DelegatedMediaSeekResponseCallback - implements ChipClusters.MediaPlaybackCluster.MediaSeekResponseCallback, + public class DelegatedLabelListAttributeCallback + implements ChipClusters.FixedLabelCluster.LabelListAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1211,22 +1210,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int mediaPlaybackStatus) { + public void onSuccess(List valueList) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo mediaPlaybackStatusResponseValue = - new CommandResponseInfo("mediaPlaybackStatus", "int"); - responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception ex) { + callback.onFailure(ex); } } - public class DelegatedMediaSkipBackwardResponseCallback - implements ChipClusters.MediaPlaybackCluster.MediaSkipBackwardResponseCallback, + public class DelegatedArmFailSafeResponseCallback + implements ChipClusters.GeneralCommissioningCluster.ArmFailSafeResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1236,11 +1237,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int mediaPlaybackStatus) { + public void onSuccess(int errorCode, String debugText) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo mediaPlaybackStatusResponseValue = - new CommandResponseInfo("mediaPlaybackStatus", "int"); - responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); + CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); + responseValues.put(errorCodeResponseValue, errorCode); + CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); + responseValues.put(debugTextResponseValue, debugText); callback.onSuccess(responseValues); } @@ -1250,8 +1252,8 @@ public void onError(Exception error) { } } - public class DelegatedMediaSkipForwardResponseCallback - implements ChipClusters.MediaPlaybackCluster.MediaSkipForwardResponseCallback, + public class DelegatedCommissioningCompleteResponseCallback + implements ChipClusters.GeneralCommissioningCluster.CommissioningCompleteResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1261,11 +1263,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int mediaPlaybackStatus) { + public void onSuccess(int errorCode, String debugText) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo mediaPlaybackStatusResponseValue = - new CommandResponseInfo("mediaPlaybackStatus", "int"); - responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); + CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); + responseValues.put(errorCodeResponseValue, errorCode); + CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); + responseValues.put(debugTextResponseValue, debugText); callback.onSuccess(responseValues); } @@ -1275,8 +1278,8 @@ public void onError(Exception error) { } } - public class DelegatedMediaStartOverResponseCallback - implements ChipClusters.MediaPlaybackCluster.MediaStartOverResponseCallback, + public class DelegatedSetRegulatoryConfigResponseCallback + implements ChipClusters.GeneralCommissioningCluster.SetRegulatoryConfigResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1286,11 +1289,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int mediaPlaybackStatus) { + public void onSuccess(int errorCode, String debugText) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo mediaPlaybackStatusResponseValue = - new CommandResponseInfo("mediaPlaybackStatus", "int"); - responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); + CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); + responseValues.put(errorCodeResponseValue, errorCode); + CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); + responseValues.put(debugTextResponseValue, debugText); callback.onSuccess(responseValues); } @@ -1300,8 +1304,9 @@ public void onError(Exception error) { } } - public class DelegatedMediaStopResponseCallback - implements ChipClusters.MediaPlaybackCluster.MediaStopResponseCallback, + public class DelegatedBasicCommissioningInfoListAttributeCallback + implements ChipClusters.GeneralCommissioningCluster + .BasicCommissioningInfoListAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1311,22 +1316,27 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int mediaPlaybackStatus) { + public void onSuccess( + List + valueList) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo mediaPlaybackStatusResponseValue = - new CommandResponseInfo("mediaPlaybackStatus", "int"); - responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", + "List"); + + responseValues.put(commandResponseInfo, valueList); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception ex) { + callback.onFailure(ex); } } - public class DelegatedAddThreadNetworkResponseCallback - implements ChipClusters.NetworkCommissioningCluster.AddThreadNetworkResponseCallback, + public class DelegatedNetworkInterfacesAttributeCallback + implements ChipClusters.GeneralDiagnosticsCluster.NetworkInterfacesAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1336,23 +1346,26 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int errorCode, String debugText) { + public void onSuccess( + List valueList) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); - responseValues.put(errorCodeResponseValue, errorCode); - CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); - responseValues.put(debugTextResponseValue, debugText); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", + "List"); + + responseValues.put(commandResponseInfo, valueList); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception ex) { + callback.onFailure(ex); } } - public class DelegatedAddWiFiNetworkResponseCallback - implements ChipClusters.NetworkCommissioningCluster.AddWiFiNetworkResponseCallback, + public class DelegatedGroupsAttributeCallback + implements ChipClusters.GroupKeyManagementCluster.GroupsAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1362,23 +1375,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int errorCode, String debugText) { + public void onSuccess(List valueList) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); - responseValues.put(errorCodeResponseValue, errorCode); - CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); - responseValues.put(debugTextResponseValue, debugText); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception ex) { + callback.onFailure(ex); } } - public class DelegatedDisableNetworkResponseCallback - implements ChipClusters.NetworkCommissioningCluster.DisableNetworkResponseCallback, + public class DelegatedGroupKeysAttributeCallback + implements ChipClusters.GroupKeyManagementCluster.GroupKeysAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1388,24 +1402,25 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int errorCode, String debugText) { + public void onSuccess( + List valueList) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); - responseValues.put(errorCodeResponseValue, errorCode); - CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); - responseValues.put(debugTextResponseValue, debugText); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception ex) { + callback.onFailure(ex); } } - public class DelegatedEnableNetworkResponseCallback - implements ChipClusters.NetworkCommissioningCluster.EnableNetworkResponseCallback, - DelegatedClusterCallback { + public class DelegatedAddGroupResponseCallback + implements ChipClusters.GroupsCluster.AddGroupResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -1414,12 +1429,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int errorCode, String debugText) { + public void onSuccess(int status, int groupId) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); - responseValues.put(errorCodeResponseValue, errorCode); - CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); - responseValues.put(debugTextResponseValue, debugText); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); + CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); + responseValues.put(groupIdResponseValue, groupId); callback.onSuccess(responseValues); } @@ -1429,8 +1444,8 @@ public void onError(Exception error) { } } - public class DelegatedRemoveNetworkResponseCallback - implements ChipClusters.NetworkCommissioningCluster.RemoveNetworkResponseCallback, + public class DelegatedGetGroupMembershipResponseCallback + implements ChipClusters.GroupsCluster.GetGroupMembershipResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1440,12 +1455,17 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int errorCode, String debugText) { + public void onSuccess(int capacity, int groupCount + // groupList: /* TYPE WARNING: array array defaults to */ uint8_t * + // Conversion from this type to Java is not properly implemented yet + ) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); - responseValues.put(errorCodeResponseValue, errorCode); - CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); - responseValues.put(debugTextResponseValue, debugText); + CommandResponseInfo capacityResponseValue = new CommandResponseInfo("capacity", "int"); + responseValues.put(capacityResponseValue, capacity); + CommandResponseInfo groupCountResponseValue = new CommandResponseInfo("groupCount", "int"); + responseValues.put(groupCountResponseValue, groupCount); + // groupList: /* TYPE WARNING: array array defaults to */ uint8_t * + // Conversion from this type to Java is not properly implemented yet callback.onSuccess(responseValues); } @@ -1455,9 +1475,8 @@ public void onError(Exception error) { } } - public class DelegatedScanNetworksResponseCallback - implements ChipClusters.NetworkCommissioningCluster.ScanNetworksResponseCallback, - DelegatedClusterCallback { + public class DelegatedRemoveGroupResponseCallback + implements ChipClusters.GroupsCluster.RemoveGroupResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -1466,21 +1485,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int errorCode, String debugText - // wifiScanResults: /* TYPE WARNING: array array defaults to */ uint8_t * - // Conversion from this type to Java is not properly implemented yet - // threadScanResults: /* TYPE WARNING: array array defaults to */ uint8_t * - // Conversion from this type to Java is not properly implemented yet - ) { + public void onSuccess(int status, int groupId) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); - responseValues.put(errorCodeResponseValue, errorCode); - CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); - responseValues.put(debugTextResponseValue, debugText); - // wifiScanResults: /* TYPE WARNING: array array defaults to */ uint8_t * - // Conversion from this type to Java is not properly implemented yet - // threadScanResults: /* TYPE WARNING: array array defaults to */ uint8_t * - // Conversion from this type to Java is not properly implemented yet + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); + CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); + responseValues.put(groupIdResponseValue, groupId); callback.onSuccess(responseValues); } @@ -1490,9 +1500,8 @@ public void onError(Exception error) { } } - public class DelegatedUpdateThreadNetworkResponseCallback - implements ChipClusters.NetworkCommissioningCluster.UpdateThreadNetworkResponseCallback, - DelegatedClusterCallback { + public class DelegatedViewGroupResponseCallback + implements ChipClusters.GroupsCluster.ViewGroupResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -1501,12 +1510,14 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int errorCode, String debugText) { + public void onSuccess(int status, int groupId, String groupName) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); - responseValues.put(errorCodeResponseValue, errorCode); - CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); - responseValues.put(debugTextResponseValue, debugText); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); + CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); + responseValues.put(groupIdResponseValue, groupId); + CommandResponseInfo groupNameResponseValue = new CommandResponseInfo("groupName", "String"); + responseValues.put(groupNameResponseValue, groupName); callback.onSuccess(responseValues); } @@ -1516,8 +1527,8 @@ public void onError(Exception error) { } } - public class DelegatedUpdateWiFiNetworkResponseCallback - implements ChipClusters.NetworkCommissioningCluster.UpdateWiFiNetworkResponseCallback, + public class DelegatedIdentifyQueryResponseCallback + implements ChipClusters.IdentifyCluster.IdentifyQueryResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1527,12 +1538,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int errorCode, String debugText) { + public void onSuccess(int timeout) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); - responseValues.put(errorCodeResponseValue, errorCode); - CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); - responseValues.put(debugTextResponseValue, debugText); + CommandResponseInfo timeoutResponseValue = new CommandResponseInfo("timeout", "int"); + responseValues.put(timeoutResponseValue, timeout); callback.onSuccess(responseValues); } @@ -1542,9 +1551,8 @@ public void onError(Exception error) { } } - public class DelegatedApplyUpdateResponseCallback - implements ChipClusters.OtaSoftwareUpdateProviderCluster.ApplyUpdateResponseCallback, - DelegatedClusterCallback { + public class DelegatedSendKeyResponseCallback + implements ChipClusters.KeypadInputCluster.SendKeyResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -1553,13 +1561,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int action, long delayedActionTime) { + public void onSuccess(int status) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo actionResponseValue = new CommandResponseInfo("action", "int"); - responseValues.put(actionResponseValue, action); - CommandResponseInfo delayedActionTimeResponseValue = - new CommandResponseInfo("delayedActionTime", "long"); - responseValues.put(delayedActionTimeResponseValue, delayedActionTime); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); callback.onSuccess(responseValues); } @@ -1569,8 +1574,8 @@ public void onError(Exception error) { } } - public class DelegatedQueryImageResponseCallback - implements ChipClusters.OtaSoftwareUpdateProviderCluster.QueryImageResponseCallback, + public class DelegatedMediaInputListAttributeCallback + implements ChipClusters.MediaInputCluster.MediaInputListAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1580,49 +1585,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess( - int status, - long delayedActionTime, - String imageURI, - long softwareVersion, - String softwareVersionString, - byte[] updateToken, - boolean userConsentNeeded, - byte[] metadataForRequestor) { + public void onSuccess(List valueList) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); - CommandResponseInfo delayedActionTimeResponseValue = - new CommandResponseInfo("delayedActionTime", "long"); - responseValues.put(delayedActionTimeResponseValue, delayedActionTime); - CommandResponseInfo imageURIResponseValue = new CommandResponseInfo("imageURI", "String"); - responseValues.put(imageURIResponseValue, imageURI); - CommandResponseInfo softwareVersionResponseValue = - new CommandResponseInfo("softwareVersion", "long"); - responseValues.put(softwareVersionResponseValue, softwareVersion); - CommandResponseInfo softwareVersionStringResponseValue = - new CommandResponseInfo("softwareVersionString", "String"); - responseValues.put(softwareVersionStringResponseValue, softwareVersionString); - CommandResponseInfo updateTokenResponseValue = - new CommandResponseInfo("updateToken", "byte[]"); - responseValues.put(updateTokenResponseValue, updateToken); - CommandResponseInfo userConsentNeededResponseValue = - new CommandResponseInfo("userConsentNeeded", "boolean"); - responseValues.put(userConsentNeededResponseValue, userConsentNeeded); - CommandResponseInfo metadataForRequestorResponseValue = - new CommandResponseInfo("metadataForRequestor", "byte[]"); - responseValues.put(metadataForRequestorResponseValue, metadataForRequestor); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception ex) { + callback.onFailure(ex); } } - public class DelegatedAttestationResponseCallback - implements ChipClusters.OperationalCredentialsCluster.AttestationResponseCallback, + public class DelegatedMediaFastForwardResponseCallback + implements ChipClusters.MediaPlaybackCluster.MediaFastForwardResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1632,13 +1612,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(byte[] AttestationElements, byte[] Signature) { + public void onSuccess(int mediaPlaybackStatus) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo AttestationElementsResponseValue = - new CommandResponseInfo("AttestationElements", "byte[]"); - responseValues.put(AttestationElementsResponseValue, AttestationElements); - CommandResponseInfo SignatureResponseValue = new CommandResponseInfo("Signature", "byte[]"); - responseValues.put(SignatureResponseValue, Signature); + CommandResponseInfo mediaPlaybackStatusResponseValue = + new CommandResponseInfo("mediaPlaybackStatus", "int"); + responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); callback.onSuccess(responseValues); } @@ -1648,8 +1626,8 @@ public void onError(Exception error) { } } - public class DelegatedCertificateChainResponseCallback - implements ChipClusters.OperationalCredentialsCluster.CertificateChainResponseCallback, + public class DelegatedMediaNextResponseCallback + implements ChipClusters.MediaPlaybackCluster.MediaNextResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1659,11 +1637,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(byte[] Certificate) { + public void onSuccess(int mediaPlaybackStatus) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo CertificateResponseValue = - new CommandResponseInfo("Certificate", "byte[]"); - responseValues.put(CertificateResponseValue, Certificate); + CommandResponseInfo mediaPlaybackStatusResponseValue = + new CommandResponseInfo("mediaPlaybackStatus", "int"); + responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); callback.onSuccess(responseValues); } @@ -1673,8 +1651,8 @@ public void onError(Exception error) { } } - public class DelegatedNOCResponseCallback - implements ChipClusters.OperationalCredentialsCluster.NOCResponseCallback, + public class DelegatedMediaPauseResponseCallback + implements ChipClusters.MediaPlaybackCluster.MediaPauseResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1684,14 +1662,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int StatusCode, int FabricIndex, String DebugText) { + public void onSuccess(int mediaPlaybackStatus) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo StatusCodeResponseValue = new CommandResponseInfo("StatusCode", "int"); - responseValues.put(StatusCodeResponseValue, StatusCode); - CommandResponseInfo FabricIndexResponseValue = new CommandResponseInfo("FabricIndex", "int"); - responseValues.put(FabricIndexResponseValue, FabricIndex); - CommandResponseInfo DebugTextResponseValue = new CommandResponseInfo("DebugText", "String"); - responseValues.put(DebugTextResponseValue, DebugText); + CommandResponseInfo mediaPlaybackStatusResponseValue = + new CommandResponseInfo("mediaPlaybackStatus", "int"); + responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); callback.onSuccess(responseValues); } @@ -1701,8 +1676,8 @@ public void onError(Exception error) { } } - public class DelegatedOpCSRResponseCallback - implements ChipClusters.OperationalCredentialsCluster.OpCSRResponseCallback, + public class DelegatedMediaPlayResponseCallback + implements ChipClusters.MediaPlaybackCluster.MediaPlayResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1712,14 +1687,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(byte[] NOCSRElements, byte[] AttestationSignature) { + public void onSuccess(int mediaPlaybackStatus) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo NOCSRElementsResponseValue = - new CommandResponseInfo("NOCSRElements", "byte[]"); - responseValues.put(NOCSRElementsResponseValue, NOCSRElements); - CommandResponseInfo AttestationSignatureResponseValue = - new CommandResponseInfo("AttestationSignature", "byte[]"); - responseValues.put(AttestationSignatureResponseValue, AttestationSignature); + CommandResponseInfo mediaPlaybackStatusResponseValue = + new CommandResponseInfo("mediaPlaybackStatus", "int"); + responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); callback.onSuccess(responseValues); } @@ -1729,8 +1701,9 @@ public void onError(Exception error) { } } - public class DelegatedAddSceneResponseCallback - implements ChipClusters.ScenesCluster.AddSceneResponseCallback, DelegatedClusterCallback { + public class DelegatedMediaPreviousResponseCallback + implements ChipClusters.MediaPlaybackCluster.MediaPreviousResponseCallback, + DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -1739,14 +1712,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status, int groupId, int sceneId) { + public void onSuccess(int mediaPlaybackStatus) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); - CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); - responseValues.put(groupIdResponseValue, groupId); - CommandResponseInfo sceneIdResponseValue = new CommandResponseInfo("sceneId", "int"); - responseValues.put(sceneIdResponseValue, sceneId); + CommandResponseInfo mediaPlaybackStatusResponseValue = + new CommandResponseInfo("mediaPlaybackStatus", "int"); + responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); callback.onSuccess(responseValues); } @@ -1756,8 +1726,8 @@ public void onError(Exception error) { } } - public class DelegatedGetSceneMembershipResponseCallback - implements ChipClusters.ScenesCluster.GetSceneMembershipResponseCallback, + public class DelegatedMediaRewindResponseCallback + implements ChipClusters.MediaPlaybackCluster.MediaRewindResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1767,21 +1737,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status, int capacity, int groupId, int sceneCount - // sceneList: /* TYPE WARNING: array array defaults to */ uint8_t * - // Conversion from this type to Java is not properly implemented yet - ) { + public void onSuccess(int mediaPlaybackStatus) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); - CommandResponseInfo capacityResponseValue = new CommandResponseInfo("capacity", "int"); - responseValues.put(capacityResponseValue, capacity); - CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); - responseValues.put(groupIdResponseValue, groupId); - CommandResponseInfo sceneCountResponseValue = new CommandResponseInfo("sceneCount", "int"); - responseValues.put(sceneCountResponseValue, sceneCount); - // sceneList: /* TYPE WARNING: array array defaults to */ uint8_t * - // Conversion from this type to Java is not properly implemented yet + CommandResponseInfo mediaPlaybackStatusResponseValue = + new CommandResponseInfo("mediaPlaybackStatus", "int"); + responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); callback.onSuccess(responseValues); } @@ -1791,8 +1751,8 @@ public void onError(Exception error) { } } - public class DelegatedRemoveAllScenesResponseCallback - implements ChipClusters.ScenesCluster.RemoveAllScenesResponseCallback, + public class DelegatedMediaSeekResponseCallback + implements ChipClusters.MediaPlaybackCluster.MediaSeekResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1802,12 +1762,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status, int groupId) { + public void onSuccess(int mediaPlaybackStatus) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); - CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); - responseValues.put(groupIdResponseValue, groupId); + CommandResponseInfo mediaPlaybackStatusResponseValue = + new CommandResponseInfo("mediaPlaybackStatus", "int"); + responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); callback.onSuccess(responseValues); } @@ -1817,8 +1776,9 @@ public void onError(Exception error) { } } - public class DelegatedRemoveSceneResponseCallback - implements ChipClusters.ScenesCluster.RemoveSceneResponseCallback, DelegatedClusterCallback { + public class DelegatedMediaSkipBackwardResponseCallback + implements ChipClusters.MediaPlaybackCluster.MediaSkipBackwardResponseCallback, + DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -1827,14 +1787,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status, int groupId, int sceneId) { + public void onSuccess(int mediaPlaybackStatus) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); - CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); - responseValues.put(groupIdResponseValue, groupId); - CommandResponseInfo sceneIdResponseValue = new CommandResponseInfo("sceneId", "int"); - responseValues.put(sceneIdResponseValue, sceneId); + CommandResponseInfo mediaPlaybackStatusResponseValue = + new CommandResponseInfo("mediaPlaybackStatus", "int"); + responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); callback.onSuccess(responseValues); } @@ -1844,8 +1801,9 @@ public void onError(Exception error) { } } - public class DelegatedStoreSceneResponseCallback - implements ChipClusters.ScenesCluster.StoreSceneResponseCallback, DelegatedClusterCallback { + public class DelegatedMediaSkipForwardResponseCallback + implements ChipClusters.MediaPlaybackCluster.MediaSkipForwardResponseCallback, + DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -1854,14 +1812,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status, int groupId, int sceneId) { + public void onSuccess(int mediaPlaybackStatus) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); - CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); - responseValues.put(groupIdResponseValue, groupId); - CommandResponseInfo sceneIdResponseValue = new CommandResponseInfo("sceneId", "int"); - responseValues.put(sceneIdResponseValue, sceneId); + CommandResponseInfo mediaPlaybackStatusResponseValue = + new CommandResponseInfo("mediaPlaybackStatus", "int"); + responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); callback.onSuccess(responseValues); } @@ -1871,8 +1826,9 @@ public void onError(Exception error) { } } - public class DelegatedViewSceneResponseCallback - implements ChipClusters.ScenesCluster.ViewSceneResponseCallback, DelegatedClusterCallback { + public class DelegatedMediaStartOverResponseCallback + implements ChipClusters.MediaPlaybackCluster.MediaStartOverResponseCallback, + DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -1881,24 +1837,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status, int groupId, int sceneId, int transitionTime, String sceneName - // extensionFieldSets: /* TYPE WARNING: array array defaults to */ uint8_t * - // Conversion from this type to Java is not properly implemented yet - ) { + public void onSuccess(int mediaPlaybackStatus) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); - CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); - responseValues.put(groupIdResponseValue, groupId); - CommandResponseInfo sceneIdResponseValue = new CommandResponseInfo("sceneId", "int"); - responseValues.put(sceneIdResponseValue, sceneId); - CommandResponseInfo transitionTimeResponseValue = - new CommandResponseInfo("transitionTime", "int"); - responseValues.put(transitionTimeResponseValue, transitionTime); - CommandResponseInfo sceneNameResponseValue = new CommandResponseInfo("sceneName", "String"); - responseValues.put(sceneNameResponseValue, sceneName); - // extensionFieldSets: /* TYPE WARNING: array array defaults to */ uint8_t * - // Conversion from this type to Java is not properly implemented yet + CommandResponseInfo mediaPlaybackStatusResponseValue = + new CommandResponseInfo("mediaPlaybackStatus", "int"); + responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); callback.onSuccess(responseValues); } @@ -1908,8 +1851,8 @@ public void onError(Exception error) { } } - public class DelegatedChangeChannelResponseCallback - implements ChipClusters.TvChannelCluster.ChangeChannelResponseCallback, + public class DelegatedMediaStopResponseCallback + implements ChipClusters.MediaPlaybackCluster.MediaStopResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1919,15 +1862,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess( - // ChannelMatch: /* TYPE WARNING: array array defaults to */ uint8_t * - // Conversion from this type to Java is not properly implemented yet - int ErrorType) { + public void onSuccess(int mediaPlaybackStatus) { Map responseValues = new LinkedHashMap<>(); - // ChannelMatch: /* TYPE WARNING: array array defaults to */ uint8_t * - // Conversion from this type to Java is not properly implemented yet - CommandResponseInfo ErrorTypeResponseValue = new CommandResponseInfo("ErrorType", "int"); - responseValues.put(ErrorTypeResponseValue, ErrorType); + CommandResponseInfo mediaPlaybackStatusResponseValue = + new CommandResponseInfo("mediaPlaybackStatus", "int"); + responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus); callback.onSuccess(responseValues); } @@ -1937,8 +1876,8 @@ public void onError(Exception error) { } } - public class DelegatedNavigateTargetResponseCallback - implements ChipClusters.TargetNavigatorCluster.NavigateTargetResponseCallback, + public class DelegatedSupportedModesAttributeCallback + implements ChipClusters.ModeSelectCluster.SupportedModesAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1948,23 +1887,25 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int status, String data) { + public void onSuccess(List valueList) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); - responseValues.put(statusResponseValue, status); - CommandResponseInfo dataResponseValue = new CommandResponseInfo("data", "String"); - responseValues.put(dataResponseValue, data); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); callback.onSuccess(responseValues); } @Override - public void onError(Exception error) { - callback.onFailure(error); + public void onError(Exception ex) { + callback.onFailure(ex); } } - public class DelegatedBooleanResponseCallback - implements ChipClusters.TestClusterCluster.BooleanResponseCallback, DelegatedClusterCallback { + public class DelegatedAddThreadNetworkResponseCallback + implements ChipClusters.NetworkCommissioningCluster.AddThreadNetworkResponseCallback, + DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -1973,10 +1914,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(boolean value) { + public void onSuccess(int errorCode, String debugText) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo valueResponseValue = new CommandResponseInfo("value", "boolean"); - responseValues.put(valueResponseValue, value); + CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); + responseValues.put(errorCodeResponseValue, errorCode); + CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); + responseValues.put(debugTextResponseValue, debugText); callback.onSuccess(responseValues); } @@ -1986,8 +1929,8 @@ public void onError(Exception error) { } } - public class DelegatedTestAddArgumentsResponseCallback - implements ChipClusters.TestClusterCluster.TestAddArgumentsResponseCallback, + public class DelegatedAddWiFiNetworkResponseCallback + implements ChipClusters.NetworkCommissioningCluster.AddWiFiNetworkResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -1997,21 +1940,23 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int returnValue) { + public void onSuccess(int errorCode, String debugText) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo returnValueResponseValue = new CommandResponseInfo("returnValue", "int"); - responseValues.put(returnValueResponseValue, returnValue); - callback.onSuccess(responseValues); - } - + CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); + responseValues.put(errorCodeResponseValue, errorCode); + CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); + responseValues.put(debugTextResponseValue, debugText); + callback.onSuccess(responseValues); + } + @Override public void onError(Exception error) { callback.onFailure(error); } } - public class DelegatedTestEnumsResponseCallback - implements ChipClusters.TestClusterCluster.TestEnumsResponseCallback, + public class DelegatedDisableNetworkResponseCallback + implements ChipClusters.NetworkCommissioningCluster.DisableNetworkResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -2021,12 +1966,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int arg1, int arg2) { + public void onSuccess(int errorCode, String debugText) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo arg1ResponseValue = new CommandResponseInfo("arg1", "int"); - responseValues.put(arg1ResponseValue, arg1); - CommandResponseInfo arg2ResponseValue = new CommandResponseInfo("arg2", "int"); - responseValues.put(arg2ResponseValue, arg2); + CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); + responseValues.put(errorCodeResponseValue, errorCode); + CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); + responseValues.put(debugTextResponseValue, debugText); callback.onSuccess(responseValues); } @@ -2036,8 +1981,8 @@ public void onError(Exception error) { } } - public class DelegatedTestListInt8UReverseResponseCallback - implements ChipClusters.TestClusterCluster.TestListInt8UReverseResponseCallback, + public class DelegatedEnableNetworkResponseCallback + implements ChipClusters.NetworkCommissioningCluster.EnableNetworkResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -2047,13 +1992,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess( - // arg1: /* TYPE WARNING: array array defaults to */ uint8_t * - // Conversion from this type to Java is not properly implemented yet - ) { + public void onSuccess(int errorCode, String debugText) { Map responseValues = new LinkedHashMap<>(); - // arg1: /* TYPE WARNING: array array defaults to */ uint8_t * - // Conversion from this type to Java is not properly implemented yet + CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); + responseValues.put(errorCodeResponseValue, errorCode); + CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); + responseValues.put(debugTextResponseValue, debugText); callback.onSuccess(responseValues); } @@ -2063,8 +2007,8 @@ public void onError(Exception error) { } } - public class DelegatedTestNullableOptionalResponseCallback - implements ChipClusters.TestClusterCluster.TestNullableOptionalResponseCallback, + public class DelegatedRemoveNetworkResponseCallback + implements ChipClusters.NetworkCommissioningCluster.RemoveNetworkResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -2074,18 +2018,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(boolean wasPresent, boolean wasNull, int value, int originalValue) { + public void onSuccess(int errorCode, String debugText) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo wasPresentResponseValue = - new CommandResponseInfo("wasPresent", "boolean"); - responseValues.put(wasPresentResponseValue, wasPresent); - CommandResponseInfo wasNullResponseValue = new CommandResponseInfo("wasNull", "boolean"); - responseValues.put(wasNullResponseValue, wasNull); - CommandResponseInfo valueResponseValue = new CommandResponseInfo("value", "int"); - responseValues.put(valueResponseValue, value); - CommandResponseInfo originalValueResponseValue = - new CommandResponseInfo("originalValue", "int"); - responseValues.put(originalValueResponseValue, originalValue); + CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); + responseValues.put(errorCodeResponseValue, errorCode); + CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); + responseValues.put(debugTextResponseValue, debugText); callback.onSuccess(responseValues); } @@ -2095,8 +2033,8 @@ public void onError(Exception error) { } } - public class DelegatedTestSpecificResponseCallback - implements ChipClusters.TestClusterCluster.TestSpecificResponseCallback, + public class DelegatedScanNetworksResponseCallback + implements ChipClusters.NetworkCommissioningCluster.ScanNetworksResponseCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @@ -2106,10 +2044,21 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(int returnValue) { + public void onSuccess(int errorCode, String debugText + // wifiScanResults: /* TYPE WARNING: array array defaults to */ uint8_t * + // Conversion from this type to Java is not properly implemented yet + // threadScanResults: /* TYPE WARNING: array array defaults to */ uint8_t * + // Conversion from this type to Java is not properly implemented yet + ) { Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo returnValueResponseValue = new CommandResponseInfo("returnValue", "int"); - responseValues.put(returnValueResponseValue, returnValue); + CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); + responseValues.put(errorCodeResponseValue, errorCode); + CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); + responseValues.put(debugTextResponseValue, debugText); + // wifiScanResults: /* TYPE WARNING: array array defaults to */ uint8_t * + // Conversion from this type to Java is not properly implemented yet + // threadScanResults: /* TYPE WARNING: array array defaults to */ uint8_t * + // Conversion from this type to Java is not properly implemented yet callback.onSuccess(responseValues); } @@ -2119,5417 +2068,12134 @@ public void onError(Exception error) { } } - public Map getClusterMap() { - Map clusterMap = new HashMap<>(); - Map accountLoginClusterCommandInfoMap = new LinkedHashMap<>(); - Map accountLogingetSetupPINCommandParams = - new LinkedHashMap(); - CommandParameterInfo accountLogingetSetupPINCommandParameterInfo = - new CommandParameterInfo( - "AccountLogin", ChipClusters.AccountLoginCluster.GetSetupPINResponseCallback.class); - CommandParameterInfo accountLogingetSetupPINtempAccountIdentifierCommandParameterInfo = - new CommandParameterInfo("tempAccountIdentifier", String.class); - accountLogingetSetupPINCommandParams.put( - "tempAccountIdentifier", accountLogingetSetupPINtempAccountIdentifierCommandParameterInfo); + public class DelegatedUpdateThreadNetworkResponseCallback + implements ChipClusters.NetworkCommissioningCluster.UpdateThreadNetworkResponseCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; - // Populate commands - CommandInfo accountLogingetSetupPINCommandInfo = - new CommandInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.AccountLoginCluster) cluster) - .getSetupPIN( - (ChipClusters.AccountLoginCluster.GetSetupPINResponseCallback) callback, - (String) commandArguments.get("tempAccountIdentifier")); - }, - () -> new DelegatedGetSetupPINResponseCallback(), - accountLogingetSetupPINCommandParams); - accountLoginClusterCommandInfoMap.put("getSetupPIN", accountLogingetSetupPINCommandInfo); - Map accountLoginloginCommandParams = - new LinkedHashMap(); - CommandParameterInfo accountLoginloginCommandParameterInfo = - new CommandParameterInfo("AccountLogin", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo accountLoginlogintempAccountIdentifierCommandParameterInfo = - new CommandParameterInfo("tempAccountIdentifier", String.class); - accountLoginloginCommandParams.put( - "tempAccountIdentifier", accountLoginlogintempAccountIdentifierCommandParameterInfo); + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } - CommandParameterInfo accountLoginloginsetupPINCommandParameterInfo = - new CommandParameterInfo("setupPIN", String.class); - accountLoginloginCommandParams.put("setupPIN", accountLoginloginsetupPINCommandParameterInfo); + @Override + public void onSuccess(int errorCode, String debugText) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); + responseValues.put(errorCodeResponseValue, errorCode); + CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); + responseValues.put(debugTextResponseValue, debugText); + callback.onSuccess(responseValues); + } - // Populate commands - CommandInfo accountLoginloginCommandInfo = - new CommandInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.AccountLoginCluster) cluster) - .login( - (DefaultClusterCallback) callback, - (String) commandArguments.get("tempAccountIdentifier"), - (String) commandArguments.get("setupPIN")); - }, - () -> new DelegatedDefaultClusterCallback(), - accountLoginloginCommandParams); - accountLoginClusterCommandInfoMap.put("login", accountLoginloginCommandInfo); - // Populate cluster - ClusterInfo accountLoginClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.AccountLoginCluster(ptr, endpointId), - accountLoginClusterCommandInfoMap); - clusterMap.put("accountLogin", accountLoginClusterInfo); - Map administratorCommissioningClusterCommandInfoMap = - new LinkedHashMap<>(); - Map - administratorCommissioningopenBasicCommissioningWindowCommandParams = - new LinkedHashMap(); - CommandParameterInfo - administratorCommissioningopenBasicCommissioningWindowCommandParameterInfo = - new CommandParameterInfo( - "AdministratorCommissioning", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo - administratorCommissioningopenBasicCommissioningWindowcommissioningTimeoutCommandParameterInfo = - new CommandParameterInfo("commissioningTimeout", int.class); - administratorCommissioningopenBasicCommissioningWindowCommandParams.put( - "commissioningTimeout", - administratorCommissioningopenBasicCommissioningWindowcommissioningTimeoutCommandParameterInfo); + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } - // Populate commands - CommandInfo administratorCommissioningopenBasicCommissioningWindowCommandInfo = - new CommandInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.AdministratorCommissioningCluster) cluster) - .openBasicCommissioningWindow( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("commissioningTimeout")); - }, - () -> new DelegatedDefaultClusterCallback(), - administratorCommissioningopenBasicCommissioningWindowCommandParams); - administratorCommissioningClusterCommandInfoMap.put( - "openBasicCommissioningWindow", - administratorCommissioningopenBasicCommissioningWindowCommandInfo); - Map - administratorCommissioningopenCommissioningWindowCommandParams = - new LinkedHashMap(); - CommandParameterInfo administratorCommissioningopenCommissioningWindowCommandParameterInfo = - new CommandParameterInfo( - "AdministratorCommissioning", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo - administratorCommissioningopenCommissioningWindowcommissioningTimeoutCommandParameterInfo = - new CommandParameterInfo("commissioningTimeout", int.class); - administratorCommissioningopenCommissioningWindowCommandParams.put( - "commissioningTimeout", - administratorCommissioningopenCommissioningWindowcommissioningTimeoutCommandParameterInfo); + public class DelegatedUpdateWiFiNetworkResponseCallback + implements ChipClusters.NetworkCommissioningCluster.UpdateWiFiNetworkResponseCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; - CommandParameterInfo - administratorCommissioningopenCommissioningWindowPAKEVerifierCommandParameterInfo = - new CommandParameterInfo("PAKEVerifier", byte[].class); - administratorCommissioningopenCommissioningWindowCommandParams.put( - "PAKEVerifier", - administratorCommissioningopenCommissioningWindowPAKEVerifierCommandParameterInfo); + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } - CommandParameterInfo - administratorCommissioningopenCommissioningWindowdiscriminatorCommandParameterInfo = - new CommandParameterInfo("discriminator", int.class); - administratorCommissioningopenCommissioningWindowCommandParams.put( - "discriminator", - administratorCommissioningopenCommissioningWindowdiscriminatorCommandParameterInfo); + @Override + public void onSuccess(int errorCode, String debugText) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int"); + responseValues.put(errorCodeResponseValue, errorCode); + CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String"); + responseValues.put(debugTextResponseValue, debugText); + callback.onSuccess(responseValues); + } - CommandParameterInfo - administratorCommissioningopenCommissioningWindowiterationsCommandParameterInfo = - new CommandParameterInfo("iterations", long.class); - administratorCommissioningopenCommissioningWindowCommandParams.put( - "iterations", - administratorCommissioningopenCommissioningWindowiterationsCommandParameterInfo); + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } - CommandParameterInfo administratorCommissioningopenCommissioningWindowsaltCommandParameterInfo = - new CommandParameterInfo("salt", byte[].class); - administratorCommissioningopenCommissioningWindowCommandParams.put( - "salt", administratorCommissioningopenCommissioningWindowsaltCommandParameterInfo); + public class DelegatedApplyUpdateResponseCallback + implements ChipClusters.OtaSoftwareUpdateProviderCluster.ApplyUpdateResponseCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; - CommandParameterInfo - administratorCommissioningopenCommissioningWindowpasscodeIDCommandParameterInfo = - new CommandParameterInfo("passcodeID", int.class); - administratorCommissioningopenCommissioningWindowCommandParams.put( - "passcodeID", - administratorCommissioningopenCommissioningWindowpasscodeIDCommandParameterInfo); + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } - // Populate commands - CommandInfo administratorCommissioningopenCommissioningWindowCommandInfo = - new CommandInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.AdministratorCommissioningCluster) cluster) - .openCommissioningWindow( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("commissioningTimeout"), - (byte[]) commandArguments.get("PAKEVerifier"), - (Integer) commandArguments.get("discriminator"), - (Long) commandArguments.get("iterations"), - (byte[]) commandArguments.get("salt"), - (Integer) commandArguments.get("passcodeID")); - }, - () -> new DelegatedDefaultClusterCallback(), + @Override + public void onSuccess(int action, long delayedActionTime) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo actionResponseValue = new CommandResponseInfo("action", "int"); + responseValues.put(actionResponseValue, action); + CommandResponseInfo delayedActionTimeResponseValue = + new CommandResponseInfo("delayedActionTime", "long"); + responseValues.put(delayedActionTimeResponseValue, delayedActionTime); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedQueryImageResponseCallback + implements ChipClusters.OtaSoftwareUpdateProviderCluster.QueryImageResponseCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess( + int status, + long delayedActionTime, + String imageURI, + long softwareVersion, + String softwareVersionString, + byte[] updateToken, + boolean userConsentNeeded, + byte[] metadataForRequestor) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); + CommandResponseInfo delayedActionTimeResponseValue = + new CommandResponseInfo("delayedActionTime", "long"); + responseValues.put(delayedActionTimeResponseValue, delayedActionTime); + CommandResponseInfo imageURIResponseValue = new CommandResponseInfo("imageURI", "String"); + responseValues.put(imageURIResponseValue, imageURI); + CommandResponseInfo softwareVersionResponseValue = + new CommandResponseInfo("softwareVersion", "long"); + responseValues.put(softwareVersionResponseValue, softwareVersion); + CommandResponseInfo softwareVersionStringResponseValue = + new CommandResponseInfo("softwareVersionString", "String"); + responseValues.put(softwareVersionStringResponseValue, softwareVersionString); + CommandResponseInfo updateTokenResponseValue = + new CommandResponseInfo("updateToken", "byte[]"); + responseValues.put(updateTokenResponseValue, updateToken); + CommandResponseInfo userConsentNeededResponseValue = + new CommandResponseInfo("userConsentNeeded", "boolean"); + responseValues.put(userConsentNeededResponseValue, userConsentNeeded); + CommandResponseInfo metadataForRequestorResponseValue = + new CommandResponseInfo("metadataForRequestor", "byte[]"); + responseValues.put(metadataForRequestorResponseValue, metadataForRequestor); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedAttestationResponseCallback + implements ChipClusters.OperationalCredentialsCluster.AttestationResponseCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(byte[] AttestationElements, byte[] Signature) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo AttestationElementsResponseValue = + new CommandResponseInfo("AttestationElements", "byte[]"); + responseValues.put(AttestationElementsResponseValue, AttestationElements); + CommandResponseInfo SignatureResponseValue = new CommandResponseInfo("Signature", "byte[]"); + responseValues.put(SignatureResponseValue, Signature); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedCertificateChainResponseCallback + implements ChipClusters.OperationalCredentialsCluster.CertificateChainResponseCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(byte[] Certificate) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo CertificateResponseValue = + new CommandResponseInfo("Certificate", "byte[]"); + responseValues.put(CertificateResponseValue, Certificate); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedNOCResponseCallback + implements ChipClusters.OperationalCredentialsCluster.NOCResponseCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(int StatusCode, int FabricIndex, String DebugText) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo StatusCodeResponseValue = new CommandResponseInfo("StatusCode", "int"); + responseValues.put(StatusCodeResponseValue, StatusCode); + CommandResponseInfo FabricIndexResponseValue = new CommandResponseInfo("FabricIndex", "int"); + responseValues.put(FabricIndexResponseValue, FabricIndex); + CommandResponseInfo DebugTextResponseValue = new CommandResponseInfo("DebugText", "String"); + responseValues.put(DebugTextResponseValue, DebugText); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedOpCSRResponseCallback + implements ChipClusters.OperationalCredentialsCluster.OpCSRResponseCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(byte[] NOCSRElements, byte[] AttestationSignature) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo NOCSRElementsResponseValue = + new CommandResponseInfo("NOCSRElements", "byte[]"); + responseValues.put(NOCSRElementsResponseValue, NOCSRElements); + CommandResponseInfo AttestationSignatureResponseValue = + new CommandResponseInfo("AttestationSignature", "byte[]"); + responseValues.put(AttestationSignatureResponseValue, AttestationSignature); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedFabricsListAttributeCallback + implements ChipClusters.OperationalCredentialsCluster.FabricsListAttributeCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess( + List valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public class DelegatedTrustedRootCertificatesAttributeCallback + implements ChipClusters.OperationalCredentialsCluster + .TrustedRootCertificatesAttributeCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(List valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo("valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public class DelegatedActiveBatteryFaultsAttributeCallback + implements ChipClusters.PowerSourceCluster.ActiveBatteryFaultsAttributeCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(List valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo("valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public class DelegatedAddSceneResponseCallback + implements ChipClusters.ScenesCluster.AddSceneResponseCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(int status, int groupId, int sceneId) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); + CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); + responseValues.put(groupIdResponseValue, groupId); + CommandResponseInfo sceneIdResponseValue = new CommandResponseInfo("sceneId", "int"); + responseValues.put(sceneIdResponseValue, sceneId); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedGetSceneMembershipResponseCallback + implements ChipClusters.ScenesCluster.GetSceneMembershipResponseCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(int status, int capacity, int groupId, int sceneCount + // sceneList: /* TYPE WARNING: array array defaults to */ uint8_t * + // Conversion from this type to Java is not properly implemented yet + ) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); + CommandResponseInfo capacityResponseValue = new CommandResponseInfo("capacity", "int"); + responseValues.put(capacityResponseValue, capacity); + CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); + responseValues.put(groupIdResponseValue, groupId); + CommandResponseInfo sceneCountResponseValue = new CommandResponseInfo("sceneCount", "int"); + responseValues.put(sceneCountResponseValue, sceneCount); + // sceneList: /* TYPE WARNING: array array defaults to */ uint8_t * + // Conversion from this type to Java is not properly implemented yet + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedRemoveAllScenesResponseCallback + implements ChipClusters.ScenesCluster.RemoveAllScenesResponseCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(int status, int groupId) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); + CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); + responseValues.put(groupIdResponseValue, groupId); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedRemoveSceneResponseCallback + implements ChipClusters.ScenesCluster.RemoveSceneResponseCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(int status, int groupId, int sceneId) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); + CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); + responseValues.put(groupIdResponseValue, groupId); + CommandResponseInfo sceneIdResponseValue = new CommandResponseInfo("sceneId", "int"); + responseValues.put(sceneIdResponseValue, sceneId); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedStoreSceneResponseCallback + implements ChipClusters.ScenesCluster.StoreSceneResponseCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(int status, int groupId, int sceneId) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); + CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); + responseValues.put(groupIdResponseValue, groupId); + CommandResponseInfo sceneIdResponseValue = new CommandResponseInfo("sceneId", "int"); + responseValues.put(sceneIdResponseValue, sceneId); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedViewSceneResponseCallback + implements ChipClusters.ScenesCluster.ViewSceneResponseCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(int status, int groupId, int sceneId, int transitionTime, String sceneName + // extensionFieldSets: /* TYPE WARNING: array array defaults to */ uint8_t * + // Conversion from this type to Java is not properly implemented yet + ) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); + CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int"); + responseValues.put(groupIdResponseValue, groupId); + CommandResponseInfo sceneIdResponseValue = new CommandResponseInfo("sceneId", "int"); + responseValues.put(sceneIdResponseValue, sceneId); + CommandResponseInfo transitionTimeResponseValue = + new CommandResponseInfo("transitionTime", "int"); + responseValues.put(transitionTimeResponseValue, transitionTime); + CommandResponseInfo sceneNameResponseValue = new CommandResponseInfo("sceneName", "String"); + responseValues.put(sceneNameResponseValue, sceneName); + // extensionFieldSets: /* TYPE WARNING: array array defaults to */ uint8_t * + // Conversion from this type to Java is not properly implemented yet + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedChangeChannelResponseCallback + implements ChipClusters.TvChannelCluster.ChangeChannelResponseCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess( + // ChannelMatch: /* TYPE WARNING: array array defaults to */ uint8_t * + // Conversion from this type to Java is not properly implemented yet + int ErrorType) { + Map responseValues = new LinkedHashMap<>(); + // ChannelMatch: /* TYPE WARNING: array array defaults to */ uint8_t * + // Conversion from this type to Java is not properly implemented yet + CommandResponseInfo ErrorTypeResponseValue = new CommandResponseInfo("ErrorType", "int"); + responseValues.put(ErrorTypeResponseValue, ErrorType); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedTvChannelListAttributeCallback + implements ChipClusters.TvChannelCluster.TvChannelListAttributeCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(List valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public class DelegatedNavigateTargetResponseCallback + implements ChipClusters.TargetNavigatorCluster.NavigateTargetResponseCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(int status, String data) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int"); + responseValues.put(statusResponseValue, status); + CommandResponseInfo dataResponseValue = new CommandResponseInfo("data", "String"); + responseValues.put(dataResponseValue, data); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedTargetNavigatorListAttributeCallback + implements ChipClusters.TargetNavigatorCluster.TargetNavigatorListAttributeCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess( + List valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", + "List"); + + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public class DelegatedBooleanResponseCallback + implements ChipClusters.TestClusterCluster.BooleanResponseCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(boolean value) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo valueResponseValue = new CommandResponseInfo("value", "boolean"); + responseValues.put(valueResponseValue, value); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedTestAddArgumentsResponseCallback + implements ChipClusters.TestClusterCluster.TestAddArgumentsResponseCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(int returnValue) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo returnValueResponseValue = new CommandResponseInfo("returnValue", "int"); + responseValues.put(returnValueResponseValue, returnValue); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedTestEnumsResponseCallback + implements ChipClusters.TestClusterCluster.TestEnumsResponseCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(int arg1, int arg2) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo arg1ResponseValue = new CommandResponseInfo("arg1", "int"); + responseValues.put(arg1ResponseValue, arg1); + CommandResponseInfo arg2ResponseValue = new CommandResponseInfo("arg2", "int"); + responseValues.put(arg2ResponseValue, arg2); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedTestListInt8UReverseResponseCallback + implements ChipClusters.TestClusterCluster.TestListInt8UReverseResponseCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess( + // arg1: /* TYPE WARNING: array array defaults to */ uint8_t * + // Conversion from this type to Java is not properly implemented yet + ) { + Map responseValues = new LinkedHashMap<>(); + // arg1: /* TYPE WARNING: array array defaults to */ uint8_t * + // Conversion from this type to Java is not properly implemented yet + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedTestNullableOptionalResponseCallback + implements ChipClusters.TestClusterCluster.TestNullableOptionalResponseCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(boolean wasPresent, boolean wasNull, int value, int originalValue) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo wasPresentResponseValue = + new CommandResponseInfo("wasPresent", "boolean"); + responseValues.put(wasPresentResponseValue, wasPresent); + CommandResponseInfo wasNullResponseValue = new CommandResponseInfo("wasNull", "boolean"); + responseValues.put(wasNullResponseValue, wasNull); + CommandResponseInfo valueResponseValue = new CommandResponseInfo("value", "int"); + responseValues.put(valueResponseValue, value); + CommandResponseInfo originalValueResponseValue = + new CommandResponseInfo("originalValue", "int"); + responseValues.put(originalValueResponseValue, originalValue); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedTestSpecificResponseCallback + implements ChipClusters.TestClusterCluster.TestSpecificResponseCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(int returnValue) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo returnValueResponseValue = new CommandResponseInfo("returnValue", "int"); + responseValues.put(returnValueResponseValue, returnValue); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } + + public class DelegatedListInt8uAttributeCallback + implements ChipClusters.TestClusterCluster.ListInt8uAttributeCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(List valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo("valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public class DelegatedListOctetStringAttributeCallback + implements ChipClusters.TestClusterCluster.ListOctetStringAttributeCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(List valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo("valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public class DelegatedListStructOctetStringAttributeCallback + implements ChipClusters.TestClusterCluster.ListStructOctetStringAttributeCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess( + List valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public class DelegatedListNullablesAndOptionalsStructAttributeCallback + implements ChipClusters.TestClusterCluster.ListNullablesAndOptionalsStructAttributeCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess( + List valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", + "List"); + + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public class DelegatedNeighborTableListAttributeCallback + implements ChipClusters.ThreadNetworkDiagnosticsCluster.NeighborTableListAttributeCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess( + List valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", + "List"); + + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public class DelegatedRouteTableListAttributeCallback + implements ChipClusters.ThreadNetworkDiagnosticsCluster.RouteTableListAttributeCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess( + List valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", + "List"); + + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public class DelegatedSecurityPolicyAttributeCallback + implements ChipClusters.ThreadNetworkDiagnosticsCluster.SecurityPolicyAttributeCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess( + List valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", + "List"); + + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public class DelegatedOperationalDatasetComponentsAttributeCallback + implements ChipClusters.ThreadNetworkDiagnosticsCluster + .OperationalDatasetComponentsAttributeCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess( + List + valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo( + "valueList", + "List"); + + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public class DelegatedActiveNetworkFaultsListAttributeCallback + implements ChipClusters.ThreadNetworkDiagnosticsCluster + .ActiveNetworkFaultsListAttributeCallback, + DelegatedClusterCallback { + private ClusterCommandCallback callback; + + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(List valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = + new CommandResponseInfo("valueList", "List"); + + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public Map getClusterMap() { + Map clusterMap = new HashMap<>(); + getCommandMap(clusterMap); + getReadAttributeMap(clusterMap); + return clusterMap; + } + + public Map getCommandMap(Map clusterMap) { + Map accountLoginClusterCommandInfoMap = new LinkedHashMap<>(); + Map accountLogingetSetupPINCommandParams = + new LinkedHashMap(); + CommandParameterInfo accountLogingetSetupPINtempAccountIdentifierCommandParameterInfo = + new CommandParameterInfo("tempAccountIdentifier", String.class); + accountLogingetSetupPINCommandParams.put( + "tempAccountIdentifier", accountLogingetSetupPINtempAccountIdentifierCommandParameterInfo); + + // Populate commands + CommandInfo accountLogingetSetupPINCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.AccountLoginCluster) cluster) + .getSetupPIN( + (ChipClusters.AccountLoginCluster.GetSetupPINResponseCallback) callback, + (String) commandArguments.get("tempAccountIdentifier")); + }, + () -> new DelegatedGetSetupPINResponseCallback(), + accountLogingetSetupPINCommandParams); + accountLoginClusterCommandInfoMap.put("getSetupPIN", accountLogingetSetupPINCommandInfo); + Map accountLoginloginCommandParams = + new LinkedHashMap(); + CommandParameterInfo accountLoginlogintempAccountIdentifierCommandParameterInfo = + new CommandParameterInfo("tempAccountIdentifier", String.class); + accountLoginloginCommandParams.put( + "tempAccountIdentifier", accountLoginlogintempAccountIdentifierCommandParameterInfo); + + CommandParameterInfo accountLoginloginsetupPINCommandParameterInfo = + new CommandParameterInfo("setupPIN", String.class); + accountLoginloginCommandParams.put("setupPIN", accountLoginloginsetupPINCommandParameterInfo); + + // Populate commands + CommandInfo accountLoginloginCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.AccountLoginCluster) cluster) + .login( + (DefaultClusterCallback) callback, + (String) commandArguments.get("tempAccountIdentifier"), + (String) commandArguments.get("setupPIN")); + }, + () -> new DelegatedDefaultClusterCallback(), + accountLoginloginCommandParams); + accountLoginClusterCommandInfoMap.put("login", accountLoginloginCommandInfo); + // Populate cluster + ClusterInfo accountLoginClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.AccountLoginCluster(ptr, endpointId), + accountLoginClusterCommandInfoMap); + clusterMap.put("accountLogin", accountLoginClusterInfo); + Map administratorCommissioningClusterCommandInfoMap = + new LinkedHashMap<>(); + Map + administratorCommissioningopenBasicCommissioningWindowCommandParams = + new LinkedHashMap(); + CommandParameterInfo + administratorCommissioningopenBasicCommissioningWindowcommissioningTimeoutCommandParameterInfo = + new CommandParameterInfo("commissioningTimeout", int.class); + administratorCommissioningopenBasicCommissioningWindowCommandParams.put( + "commissioningTimeout", + administratorCommissioningopenBasicCommissioningWindowcommissioningTimeoutCommandParameterInfo); + + // Populate commands + CommandInfo administratorCommissioningopenBasicCommissioningWindowCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.AdministratorCommissioningCluster) cluster) + .openBasicCommissioningWindow( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("commissioningTimeout")); + }, + () -> new DelegatedDefaultClusterCallback(), + administratorCommissioningopenBasicCommissioningWindowCommandParams); + administratorCommissioningClusterCommandInfoMap.put( + "openBasicCommissioningWindow", + administratorCommissioningopenBasicCommissioningWindowCommandInfo); + Map + administratorCommissioningopenCommissioningWindowCommandParams = + new LinkedHashMap(); + CommandParameterInfo + administratorCommissioningopenCommissioningWindowcommissioningTimeoutCommandParameterInfo = + new CommandParameterInfo("commissioningTimeout", int.class); + administratorCommissioningopenCommissioningWindowCommandParams.put( + "commissioningTimeout", + administratorCommissioningopenCommissioningWindowcommissioningTimeoutCommandParameterInfo); + + CommandParameterInfo + administratorCommissioningopenCommissioningWindowPAKEVerifierCommandParameterInfo = + new CommandParameterInfo("PAKEVerifier", byte[].class); + administratorCommissioningopenCommissioningWindowCommandParams.put( + "PAKEVerifier", + administratorCommissioningopenCommissioningWindowPAKEVerifierCommandParameterInfo); + + CommandParameterInfo + administratorCommissioningopenCommissioningWindowdiscriminatorCommandParameterInfo = + new CommandParameterInfo("discriminator", int.class); + administratorCommissioningopenCommissioningWindowCommandParams.put( + "discriminator", + administratorCommissioningopenCommissioningWindowdiscriminatorCommandParameterInfo); + + CommandParameterInfo + administratorCommissioningopenCommissioningWindowiterationsCommandParameterInfo = + new CommandParameterInfo("iterations", long.class); + administratorCommissioningopenCommissioningWindowCommandParams.put( + "iterations", + administratorCommissioningopenCommissioningWindowiterationsCommandParameterInfo); + + CommandParameterInfo administratorCommissioningopenCommissioningWindowsaltCommandParameterInfo = + new CommandParameterInfo("salt", byte[].class); + administratorCommissioningopenCommissioningWindowCommandParams.put( + "salt", administratorCommissioningopenCommissioningWindowsaltCommandParameterInfo); + + CommandParameterInfo + administratorCommissioningopenCommissioningWindowpasscodeIDCommandParameterInfo = + new CommandParameterInfo("passcodeID", int.class); + administratorCommissioningopenCommissioningWindowCommandParams.put( + "passcodeID", + administratorCommissioningopenCommissioningWindowpasscodeIDCommandParameterInfo); + + // Populate commands + CommandInfo administratorCommissioningopenCommissioningWindowCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.AdministratorCommissioningCluster) cluster) + .openCommissioningWindow( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("commissioningTimeout"), + (byte[]) commandArguments.get("PAKEVerifier"), + (Integer) commandArguments.get("discriminator"), + (Long) commandArguments.get("iterations"), + (byte[]) commandArguments.get("salt"), + (Integer) commandArguments.get("passcodeID")); + }, + () -> new DelegatedDefaultClusterCallback(), administratorCommissioningopenCommissioningWindowCommandParams); administratorCommissioningClusterCommandInfoMap.put( "openCommissioningWindow", administratorCommissioningopenCommissioningWindowCommandInfo); Map administratorCommissioningrevokeCommissioningCommandParams = new LinkedHashMap(); - CommandParameterInfo administratorCommissioningrevokeCommissioningCommandParameterInfo = - new CommandParameterInfo( - "AdministratorCommissioning", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo administratorCommissioningrevokeCommissioningCommandInfo = + // Populate commands + CommandInfo administratorCommissioningrevokeCommissioningCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.AdministratorCommissioningCluster) cluster) + .revokeCommissioning((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + administratorCommissioningrevokeCommissioningCommandParams); + administratorCommissioningClusterCommandInfoMap.put( + "revokeCommissioning", administratorCommissioningrevokeCommissioningCommandInfo); + // Populate cluster + ClusterInfo administratorCommissioningClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> + new ChipClusters.AdministratorCommissioningCluster(ptr, endpointId), + administratorCommissioningClusterCommandInfoMap); + clusterMap.put("administratorCommissioning", administratorCommissioningClusterInfo); + Map applicationBasicClusterCommandInfoMap = new LinkedHashMap<>(); + Map applicationBasicchangeStatusCommandParams = + new LinkedHashMap(); + CommandParameterInfo applicationBasicchangeStatusstatusCommandParameterInfo = + new CommandParameterInfo("status", int.class); + applicationBasicchangeStatusCommandParams.put( + "status", applicationBasicchangeStatusstatusCommandParameterInfo); + + // Populate commands + CommandInfo applicationBasicchangeStatusCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ApplicationBasicCluster) cluster) + .changeStatus( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("status")); + }, + () -> new DelegatedDefaultClusterCallback(), + applicationBasicchangeStatusCommandParams); + applicationBasicClusterCommandInfoMap.put( + "changeStatus", applicationBasicchangeStatusCommandInfo); + // Populate cluster + ClusterInfo applicationBasicClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.ApplicationBasicCluster(ptr, endpointId), + applicationBasicClusterCommandInfoMap); + clusterMap.put("applicationBasic", applicationBasicClusterInfo); + Map applicationLauncherClusterCommandInfoMap = new LinkedHashMap<>(); + Map applicationLauncherlaunchAppCommandParams = + new LinkedHashMap(); + CommandParameterInfo applicationLauncherlaunchAppdataCommandParameterInfo = + new CommandParameterInfo("data", String.class); + applicationLauncherlaunchAppCommandParams.put( + "data", applicationLauncherlaunchAppdataCommandParameterInfo); + + CommandParameterInfo applicationLauncherlaunchAppcatalogVendorIdCommandParameterInfo = + new CommandParameterInfo("catalogVendorId", int.class); + applicationLauncherlaunchAppCommandParams.put( + "catalogVendorId", applicationLauncherlaunchAppcatalogVendorIdCommandParameterInfo); + + CommandParameterInfo applicationLauncherlaunchAppapplicationIdCommandParameterInfo = + new CommandParameterInfo("applicationId", String.class); + applicationLauncherlaunchAppCommandParams.put( + "applicationId", applicationLauncherlaunchAppapplicationIdCommandParameterInfo); + + // Populate commands + CommandInfo applicationLauncherlaunchAppCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ApplicationLauncherCluster) cluster) + .launchApp( + (ChipClusters.ApplicationLauncherCluster.LaunchAppResponseCallback) callback, + (String) commandArguments.get("data"), + (Integer) commandArguments.get("catalogVendorId"), + (String) commandArguments.get("applicationId")); + }, + () -> new DelegatedLaunchAppResponseCallback(), + applicationLauncherlaunchAppCommandParams); + applicationLauncherClusterCommandInfoMap.put( + "launchApp", applicationLauncherlaunchAppCommandInfo); + // Populate cluster + ClusterInfo applicationLauncherClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.ApplicationLauncherCluster(ptr, endpointId), + applicationLauncherClusterCommandInfoMap); + clusterMap.put("applicationLauncher", applicationLauncherClusterInfo); + Map audioOutputClusterCommandInfoMap = new LinkedHashMap<>(); + Map audioOutputrenameOutputCommandParams = + new LinkedHashMap(); + CommandParameterInfo audioOutputrenameOutputindexCommandParameterInfo = + new CommandParameterInfo("index", int.class); + audioOutputrenameOutputCommandParams.put( + "index", audioOutputrenameOutputindexCommandParameterInfo); + + CommandParameterInfo audioOutputrenameOutputnameCommandParameterInfo = + new CommandParameterInfo("name", String.class); + audioOutputrenameOutputCommandParams.put( + "name", audioOutputrenameOutputnameCommandParameterInfo); + + // Populate commands + CommandInfo audioOutputrenameOutputCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.AudioOutputCluster) cluster) + .renameOutput( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("index"), + (String) commandArguments.get("name")); + }, + () -> new DelegatedDefaultClusterCallback(), + audioOutputrenameOutputCommandParams); + audioOutputClusterCommandInfoMap.put("renameOutput", audioOutputrenameOutputCommandInfo); + Map audioOutputselectOutputCommandParams = + new LinkedHashMap(); + CommandParameterInfo audioOutputselectOutputindexCommandParameterInfo = + new CommandParameterInfo("index", int.class); + audioOutputselectOutputCommandParams.put( + "index", audioOutputselectOutputindexCommandParameterInfo); + + // Populate commands + CommandInfo audioOutputselectOutputCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.AudioOutputCluster) cluster) + .selectOutput( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("index")); + }, + () -> new DelegatedDefaultClusterCallback(), + audioOutputselectOutputCommandParams); + audioOutputClusterCommandInfoMap.put("selectOutput", audioOutputselectOutputCommandInfo); + // Populate cluster + ClusterInfo audioOutputClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.AudioOutputCluster(ptr, endpointId), + audioOutputClusterCommandInfoMap); + clusterMap.put("audioOutput", audioOutputClusterInfo); + Map barrierControlClusterCommandInfoMap = new LinkedHashMap<>(); + Map barrierControlbarrierControlGoToPercentCommandParams = + new LinkedHashMap(); + CommandParameterInfo barrierControlbarrierControlGoToPercentpercentOpenCommandParameterInfo = + new CommandParameterInfo("percentOpen", int.class); + barrierControlbarrierControlGoToPercentCommandParams.put( + "percentOpen", barrierControlbarrierControlGoToPercentpercentOpenCommandParameterInfo); + + // Populate commands + CommandInfo barrierControlbarrierControlGoToPercentCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BarrierControlCluster) cluster) + .barrierControlGoToPercent( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("percentOpen")); + }, + () -> new DelegatedDefaultClusterCallback(), + barrierControlbarrierControlGoToPercentCommandParams); + barrierControlClusterCommandInfoMap.put( + "barrierControlGoToPercent", barrierControlbarrierControlGoToPercentCommandInfo); + Map barrierControlbarrierControlStopCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo barrierControlbarrierControlStopCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BarrierControlCluster) cluster) + .barrierControlStop((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + barrierControlbarrierControlStopCommandParams); + barrierControlClusterCommandInfoMap.put( + "barrierControlStop", barrierControlbarrierControlStopCommandInfo); + // Populate cluster + ClusterInfo barrierControlClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.BarrierControlCluster(ptr, endpointId), + barrierControlClusterCommandInfoMap); + clusterMap.put("barrierControl", barrierControlClusterInfo); + Map basicClusterCommandInfoMap = new LinkedHashMap<>(); + Map basicmfgSpecificPingCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo basicmfgSpecificPingCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .mfgSpecificPing((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + basicmfgSpecificPingCommandParams); + basicClusterCommandInfoMap.put("mfgSpecificPing", basicmfgSpecificPingCommandInfo); + // Populate cluster + ClusterInfo basicClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.BasicCluster(ptr, endpointId), + basicClusterCommandInfoMap); + clusterMap.put("basic", basicClusterInfo); + Map binaryInputBasicClusterCommandInfoMap = new LinkedHashMap<>(); + // Populate cluster + ClusterInfo binaryInputBasicClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.BinaryInputBasicCluster(ptr, endpointId), + binaryInputBasicClusterCommandInfoMap); + clusterMap.put("binaryInputBasic", binaryInputBasicClusterInfo); + Map bindingClusterCommandInfoMap = new LinkedHashMap<>(); + Map bindingbindCommandParams = + new LinkedHashMap(); + CommandParameterInfo bindingbindnodeIdCommandParameterInfo = + new CommandParameterInfo("nodeId", long.class); + bindingbindCommandParams.put("nodeId", bindingbindnodeIdCommandParameterInfo); + + CommandParameterInfo bindingbindgroupIdCommandParameterInfo = + new CommandParameterInfo("groupId", int.class); + bindingbindCommandParams.put("groupId", bindingbindgroupIdCommandParameterInfo); + + CommandParameterInfo bindingbindendpointIdCommandParameterInfo = + new CommandParameterInfo("endpointId", int.class); + bindingbindCommandParams.put("endpointId", bindingbindendpointIdCommandParameterInfo); + + CommandParameterInfo bindingbindclusterIdCommandParameterInfo = + new CommandParameterInfo("clusterId", long.class); + bindingbindCommandParams.put("clusterId", bindingbindclusterIdCommandParameterInfo); + + // Populate commands + CommandInfo bindingbindCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BindingCluster) cluster) + .bind( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("nodeId"), + (Integer) commandArguments.get("groupId"), + (Integer) commandArguments.get("endpointId"), + (Long) commandArguments.get("clusterId")); + }, + () -> new DelegatedDefaultClusterCallback(), + bindingbindCommandParams); + bindingClusterCommandInfoMap.put("bind", bindingbindCommandInfo); + Map bindingunbindCommandParams = + new LinkedHashMap(); + CommandParameterInfo bindingunbindnodeIdCommandParameterInfo = + new CommandParameterInfo("nodeId", long.class); + bindingunbindCommandParams.put("nodeId", bindingunbindnodeIdCommandParameterInfo); + + CommandParameterInfo bindingunbindgroupIdCommandParameterInfo = + new CommandParameterInfo("groupId", int.class); + bindingunbindCommandParams.put("groupId", bindingunbindgroupIdCommandParameterInfo); + + CommandParameterInfo bindingunbindendpointIdCommandParameterInfo = + new CommandParameterInfo("endpointId", int.class); + bindingunbindCommandParams.put("endpointId", bindingunbindendpointIdCommandParameterInfo); + + CommandParameterInfo bindingunbindclusterIdCommandParameterInfo = + new CommandParameterInfo("clusterId", long.class); + bindingunbindCommandParams.put("clusterId", bindingunbindclusterIdCommandParameterInfo); + + // Populate commands + CommandInfo bindingunbindCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BindingCluster) cluster) + .unbind( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("nodeId"), + (Integer) commandArguments.get("groupId"), + (Integer) commandArguments.get("endpointId"), + (Long) commandArguments.get("clusterId")); + }, + () -> new DelegatedDefaultClusterCallback(), + bindingunbindCommandParams); + bindingClusterCommandInfoMap.put("unbind", bindingunbindCommandInfo); + // Populate cluster + ClusterInfo bindingClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.BindingCluster(ptr, endpointId), + bindingClusterCommandInfoMap); + clusterMap.put("binding", bindingClusterInfo); + Map booleanStateClusterCommandInfoMap = new LinkedHashMap<>(); + // Populate cluster + ClusterInfo booleanStateClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.BooleanStateCluster(ptr, endpointId), + booleanStateClusterCommandInfoMap); + clusterMap.put("booleanState", booleanStateClusterInfo); + Map bridgedActionsClusterCommandInfoMap = new LinkedHashMap<>(); + Map bridgedActionsdisableActionCommandParams = + new LinkedHashMap(); + CommandParameterInfo bridgedActionsdisableActionactionIDCommandParameterInfo = + new CommandParameterInfo("actionID", int.class); + bridgedActionsdisableActionCommandParams.put( + "actionID", bridgedActionsdisableActionactionIDCommandParameterInfo); + + CommandParameterInfo bridgedActionsdisableActioninvokeIDCommandParameterInfo = + new CommandParameterInfo("invokeID", long.class); + bridgedActionsdisableActionCommandParams.put( + "invokeID", bridgedActionsdisableActioninvokeIDCommandParameterInfo); + + // Populate commands + CommandInfo bridgedActionsdisableActionCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedActionsCluster) cluster) + .disableAction( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("actionID"), + (Long) commandArguments.get("invokeID")); + }, + () -> new DelegatedDefaultClusterCallback(), + bridgedActionsdisableActionCommandParams); + bridgedActionsClusterCommandInfoMap.put( + "disableAction", bridgedActionsdisableActionCommandInfo); + Map bridgedActionsdisableActionWithDurationCommandParams = + new LinkedHashMap(); + CommandParameterInfo bridgedActionsdisableActionWithDurationactionIDCommandParameterInfo = + new CommandParameterInfo("actionID", int.class); + bridgedActionsdisableActionWithDurationCommandParams.put( + "actionID", bridgedActionsdisableActionWithDurationactionIDCommandParameterInfo); + + CommandParameterInfo bridgedActionsdisableActionWithDurationinvokeIDCommandParameterInfo = + new CommandParameterInfo("invokeID", long.class); + bridgedActionsdisableActionWithDurationCommandParams.put( + "invokeID", bridgedActionsdisableActionWithDurationinvokeIDCommandParameterInfo); + + CommandParameterInfo bridgedActionsdisableActionWithDurationdurationCommandParameterInfo = + new CommandParameterInfo("duration", long.class); + bridgedActionsdisableActionWithDurationCommandParams.put( + "duration", bridgedActionsdisableActionWithDurationdurationCommandParameterInfo); + + // Populate commands + CommandInfo bridgedActionsdisableActionWithDurationCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedActionsCluster) cluster) + .disableActionWithDuration( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("actionID"), + (Long) commandArguments.get("invokeID"), + (Long) commandArguments.get("duration")); + }, + () -> new DelegatedDefaultClusterCallback(), + bridgedActionsdisableActionWithDurationCommandParams); + bridgedActionsClusterCommandInfoMap.put( + "disableActionWithDuration", bridgedActionsdisableActionWithDurationCommandInfo); + Map bridgedActionsenableActionCommandParams = + new LinkedHashMap(); + CommandParameterInfo bridgedActionsenableActionactionIDCommandParameterInfo = + new CommandParameterInfo("actionID", int.class); + bridgedActionsenableActionCommandParams.put( + "actionID", bridgedActionsenableActionactionIDCommandParameterInfo); + + CommandParameterInfo bridgedActionsenableActioninvokeIDCommandParameterInfo = + new CommandParameterInfo("invokeID", long.class); + bridgedActionsenableActionCommandParams.put( + "invokeID", bridgedActionsenableActioninvokeIDCommandParameterInfo); + + // Populate commands + CommandInfo bridgedActionsenableActionCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedActionsCluster) cluster) + .enableAction( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("actionID"), + (Long) commandArguments.get("invokeID")); + }, + () -> new DelegatedDefaultClusterCallback(), + bridgedActionsenableActionCommandParams); + bridgedActionsClusterCommandInfoMap.put("enableAction", bridgedActionsenableActionCommandInfo); + Map bridgedActionsenableActionWithDurationCommandParams = + new LinkedHashMap(); + CommandParameterInfo bridgedActionsenableActionWithDurationactionIDCommandParameterInfo = + new CommandParameterInfo("actionID", int.class); + bridgedActionsenableActionWithDurationCommandParams.put( + "actionID", bridgedActionsenableActionWithDurationactionIDCommandParameterInfo); + + CommandParameterInfo bridgedActionsenableActionWithDurationinvokeIDCommandParameterInfo = + new CommandParameterInfo("invokeID", long.class); + bridgedActionsenableActionWithDurationCommandParams.put( + "invokeID", bridgedActionsenableActionWithDurationinvokeIDCommandParameterInfo); + + CommandParameterInfo bridgedActionsenableActionWithDurationdurationCommandParameterInfo = + new CommandParameterInfo("duration", long.class); + bridgedActionsenableActionWithDurationCommandParams.put( + "duration", bridgedActionsenableActionWithDurationdurationCommandParameterInfo); + + // Populate commands + CommandInfo bridgedActionsenableActionWithDurationCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedActionsCluster) cluster) + .enableActionWithDuration( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("actionID"), + (Long) commandArguments.get("invokeID"), + (Long) commandArguments.get("duration")); + }, + () -> new DelegatedDefaultClusterCallback(), + bridgedActionsenableActionWithDurationCommandParams); + bridgedActionsClusterCommandInfoMap.put( + "enableActionWithDuration", bridgedActionsenableActionWithDurationCommandInfo); + Map bridgedActionsinstantActionCommandParams = + new LinkedHashMap(); + CommandParameterInfo bridgedActionsinstantActionactionIDCommandParameterInfo = + new CommandParameterInfo("actionID", int.class); + bridgedActionsinstantActionCommandParams.put( + "actionID", bridgedActionsinstantActionactionIDCommandParameterInfo); + + CommandParameterInfo bridgedActionsinstantActioninvokeIDCommandParameterInfo = + new CommandParameterInfo("invokeID", long.class); + bridgedActionsinstantActionCommandParams.put( + "invokeID", bridgedActionsinstantActioninvokeIDCommandParameterInfo); + + // Populate commands + CommandInfo bridgedActionsinstantActionCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedActionsCluster) cluster) + .instantAction( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("actionID"), + (Long) commandArguments.get("invokeID")); + }, + () -> new DelegatedDefaultClusterCallback(), + bridgedActionsinstantActionCommandParams); + bridgedActionsClusterCommandInfoMap.put( + "instantAction", bridgedActionsinstantActionCommandInfo); + Map bridgedActionsinstantActionWithTransitionCommandParams = + new LinkedHashMap(); + CommandParameterInfo bridgedActionsinstantActionWithTransitionactionIDCommandParameterInfo = + new CommandParameterInfo("actionID", int.class); + bridgedActionsinstantActionWithTransitionCommandParams.put( + "actionID", bridgedActionsinstantActionWithTransitionactionIDCommandParameterInfo); + + CommandParameterInfo bridgedActionsinstantActionWithTransitioninvokeIDCommandParameterInfo = + new CommandParameterInfo("invokeID", long.class); + bridgedActionsinstantActionWithTransitionCommandParams.put( + "invokeID", bridgedActionsinstantActionWithTransitioninvokeIDCommandParameterInfo); + + CommandParameterInfo + bridgedActionsinstantActionWithTransitiontransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + bridgedActionsinstantActionWithTransitionCommandParams.put( + "transitionTime", + bridgedActionsinstantActionWithTransitiontransitionTimeCommandParameterInfo); + + // Populate commands + CommandInfo bridgedActionsinstantActionWithTransitionCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedActionsCluster) cluster) + .instantActionWithTransition( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("actionID"), + (Long) commandArguments.get("invokeID"), + (Integer) commandArguments.get("transitionTime")); + }, + () -> new DelegatedDefaultClusterCallback(), + bridgedActionsinstantActionWithTransitionCommandParams); + bridgedActionsClusterCommandInfoMap.put( + "instantActionWithTransition", bridgedActionsinstantActionWithTransitionCommandInfo); + Map bridgedActionspauseActionCommandParams = + new LinkedHashMap(); + CommandParameterInfo bridgedActionspauseActionactionIDCommandParameterInfo = + new CommandParameterInfo("actionID", int.class); + bridgedActionspauseActionCommandParams.put( + "actionID", bridgedActionspauseActionactionIDCommandParameterInfo); + + CommandParameterInfo bridgedActionspauseActioninvokeIDCommandParameterInfo = + new CommandParameterInfo("invokeID", long.class); + bridgedActionspauseActionCommandParams.put( + "invokeID", bridgedActionspauseActioninvokeIDCommandParameterInfo); + + // Populate commands + CommandInfo bridgedActionspauseActionCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedActionsCluster) cluster) + .pauseAction( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("actionID"), + (Long) commandArguments.get("invokeID")); + }, + () -> new DelegatedDefaultClusterCallback(), + bridgedActionspauseActionCommandParams); + bridgedActionsClusterCommandInfoMap.put("pauseAction", bridgedActionspauseActionCommandInfo); + Map bridgedActionspauseActionWithDurationCommandParams = + new LinkedHashMap(); + CommandParameterInfo bridgedActionspauseActionWithDurationactionIDCommandParameterInfo = + new CommandParameterInfo("actionID", int.class); + bridgedActionspauseActionWithDurationCommandParams.put( + "actionID", bridgedActionspauseActionWithDurationactionIDCommandParameterInfo); + + CommandParameterInfo bridgedActionspauseActionWithDurationinvokeIDCommandParameterInfo = + new CommandParameterInfo("invokeID", long.class); + bridgedActionspauseActionWithDurationCommandParams.put( + "invokeID", bridgedActionspauseActionWithDurationinvokeIDCommandParameterInfo); + + CommandParameterInfo bridgedActionspauseActionWithDurationdurationCommandParameterInfo = + new CommandParameterInfo("duration", long.class); + bridgedActionspauseActionWithDurationCommandParams.put( + "duration", bridgedActionspauseActionWithDurationdurationCommandParameterInfo); + + // Populate commands + CommandInfo bridgedActionspauseActionWithDurationCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedActionsCluster) cluster) + .pauseActionWithDuration( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("actionID"), + (Long) commandArguments.get("invokeID"), + (Long) commandArguments.get("duration")); + }, + () -> new DelegatedDefaultClusterCallback(), + bridgedActionspauseActionWithDurationCommandParams); + bridgedActionsClusterCommandInfoMap.put( + "pauseActionWithDuration", bridgedActionspauseActionWithDurationCommandInfo); + Map bridgedActionsresumeActionCommandParams = + new LinkedHashMap(); + CommandParameterInfo bridgedActionsresumeActionactionIDCommandParameterInfo = + new CommandParameterInfo("actionID", int.class); + bridgedActionsresumeActionCommandParams.put( + "actionID", bridgedActionsresumeActionactionIDCommandParameterInfo); + + CommandParameterInfo bridgedActionsresumeActioninvokeIDCommandParameterInfo = + new CommandParameterInfo("invokeID", long.class); + bridgedActionsresumeActionCommandParams.put( + "invokeID", bridgedActionsresumeActioninvokeIDCommandParameterInfo); + + // Populate commands + CommandInfo bridgedActionsresumeActionCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedActionsCluster) cluster) + .resumeAction( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("actionID"), + (Long) commandArguments.get("invokeID")); + }, + () -> new DelegatedDefaultClusterCallback(), + bridgedActionsresumeActionCommandParams); + bridgedActionsClusterCommandInfoMap.put("resumeAction", bridgedActionsresumeActionCommandInfo); + Map bridgedActionsstartActionCommandParams = + new LinkedHashMap(); + CommandParameterInfo bridgedActionsstartActionactionIDCommandParameterInfo = + new CommandParameterInfo("actionID", int.class); + bridgedActionsstartActionCommandParams.put( + "actionID", bridgedActionsstartActionactionIDCommandParameterInfo); + + CommandParameterInfo bridgedActionsstartActioninvokeIDCommandParameterInfo = + new CommandParameterInfo("invokeID", long.class); + bridgedActionsstartActionCommandParams.put( + "invokeID", bridgedActionsstartActioninvokeIDCommandParameterInfo); + + // Populate commands + CommandInfo bridgedActionsstartActionCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedActionsCluster) cluster) + .startAction( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("actionID"), + (Long) commandArguments.get("invokeID")); + }, + () -> new DelegatedDefaultClusterCallback(), + bridgedActionsstartActionCommandParams); + bridgedActionsClusterCommandInfoMap.put("startAction", bridgedActionsstartActionCommandInfo); + Map bridgedActionsstartActionWithDurationCommandParams = + new LinkedHashMap(); + CommandParameterInfo bridgedActionsstartActionWithDurationactionIDCommandParameterInfo = + new CommandParameterInfo("actionID", int.class); + bridgedActionsstartActionWithDurationCommandParams.put( + "actionID", bridgedActionsstartActionWithDurationactionIDCommandParameterInfo); + + CommandParameterInfo bridgedActionsstartActionWithDurationinvokeIDCommandParameterInfo = + new CommandParameterInfo("invokeID", long.class); + bridgedActionsstartActionWithDurationCommandParams.put( + "invokeID", bridgedActionsstartActionWithDurationinvokeIDCommandParameterInfo); + + CommandParameterInfo bridgedActionsstartActionWithDurationdurationCommandParameterInfo = + new CommandParameterInfo("duration", long.class); + bridgedActionsstartActionWithDurationCommandParams.put( + "duration", bridgedActionsstartActionWithDurationdurationCommandParameterInfo); + + // Populate commands + CommandInfo bridgedActionsstartActionWithDurationCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedActionsCluster) cluster) + .startActionWithDuration( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("actionID"), + (Long) commandArguments.get("invokeID"), + (Long) commandArguments.get("duration")); + }, + () -> new DelegatedDefaultClusterCallback(), + bridgedActionsstartActionWithDurationCommandParams); + bridgedActionsClusterCommandInfoMap.put( + "startActionWithDuration", bridgedActionsstartActionWithDurationCommandInfo); + Map bridgedActionsstopActionCommandParams = + new LinkedHashMap(); + CommandParameterInfo bridgedActionsstopActionactionIDCommandParameterInfo = + new CommandParameterInfo("actionID", int.class); + bridgedActionsstopActionCommandParams.put( + "actionID", bridgedActionsstopActionactionIDCommandParameterInfo); + + CommandParameterInfo bridgedActionsstopActioninvokeIDCommandParameterInfo = + new CommandParameterInfo("invokeID", long.class); + bridgedActionsstopActionCommandParams.put( + "invokeID", bridgedActionsstopActioninvokeIDCommandParameterInfo); + + // Populate commands + CommandInfo bridgedActionsstopActionCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedActionsCluster) cluster) + .stopAction( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("actionID"), + (Long) commandArguments.get("invokeID")); + }, + () -> new DelegatedDefaultClusterCallback(), + bridgedActionsstopActionCommandParams); + bridgedActionsClusterCommandInfoMap.put("stopAction", bridgedActionsstopActionCommandInfo); + // Populate cluster + ClusterInfo bridgedActionsClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.BridgedActionsCluster(ptr, endpointId), + bridgedActionsClusterCommandInfoMap); + clusterMap.put("bridgedActions", bridgedActionsClusterInfo); + Map bridgedDeviceBasicClusterCommandInfoMap = new LinkedHashMap<>(); + // Populate cluster + ClusterInfo bridgedDeviceBasicClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.BridgedDeviceBasicCluster(ptr, endpointId), + bridgedDeviceBasicClusterCommandInfoMap); + clusterMap.put("bridgedDeviceBasic", bridgedDeviceBasicClusterInfo); + Map colorControlClusterCommandInfoMap = new LinkedHashMap<>(); + Map colorControlcolorLoopSetCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlcolorLoopSetupdateFlagsCommandParameterInfo = + new CommandParameterInfo("updateFlags", int.class); + colorControlcolorLoopSetCommandParams.put( + "updateFlags", colorControlcolorLoopSetupdateFlagsCommandParameterInfo); + + CommandParameterInfo colorControlcolorLoopSetactionCommandParameterInfo = + new CommandParameterInfo("action", int.class); + colorControlcolorLoopSetCommandParams.put( + "action", colorControlcolorLoopSetactionCommandParameterInfo); + + CommandParameterInfo colorControlcolorLoopSetdirectionCommandParameterInfo = + new CommandParameterInfo("direction", int.class); + colorControlcolorLoopSetCommandParams.put( + "direction", colorControlcolorLoopSetdirectionCommandParameterInfo); + + CommandParameterInfo colorControlcolorLoopSettimeCommandParameterInfo = + new CommandParameterInfo("time", int.class); + colorControlcolorLoopSetCommandParams.put( + "time", colorControlcolorLoopSettimeCommandParameterInfo); + + CommandParameterInfo colorControlcolorLoopSetstartHueCommandParameterInfo = + new CommandParameterInfo("startHue", int.class); + colorControlcolorLoopSetCommandParams.put( + "startHue", colorControlcolorLoopSetstartHueCommandParameterInfo); + + CommandParameterInfo colorControlcolorLoopSetoptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlcolorLoopSetCommandParams.put( + "optionsMask", colorControlcolorLoopSetoptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlcolorLoopSetoptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlcolorLoopSetCommandParams.put( + "optionsOverride", colorControlcolorLoopSetoptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlcolorLoopSetCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .colorLoopSet( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("updateFlags"), + (Integer) commandArguments.get("action"), + (Integer) commandArguments.get("direction"), + (Integer) commandArguments.get("time"), + (Integer) commandArguments.get("startHue"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlcolorLoopSetCommandParams); + colorControlClusterCommandInfoMap.put("colorLoopSet", colorControlcolorLoopSetCommandInfo); + Map colorControlenhancedMoveHueCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlenhancedMoveHuemoveModeCommandParameterInfo = + new CommandParameterInfo("moveMode", int.class); + colorControlenhancedMoveHueCommandParams.put( + "moveMode", colorControlenhancedMoveHuemoveModeCommandParameterInfo); + + CommandParameterInfo colorControlenhancedMoveHuerateCommandParameterInfo = + new CommandParameterInfo("rate", int.class); + colorControlenhancedMoveHueCommandParams.put( + "rate", colorControlenhancedMoveHuerateCommandParameterInfo); + + CommandParameterInfo colorControlenhancedMoveHueoptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlenhancedMoveHueCommandParams.put( + "optionsMask", colorControlenhancedMoveHueoptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlenhancedMoveHueoptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlenhancedMoveHueCommandParams.put( + "optionsOverride", colorControlenhancedMoveHueoptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlenhancedMoveHueCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .enhancedMoveHue( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("moveMode"), + (Integer) commandArguments.get("rate"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlenhancedMoveHueCommandParams); + colorControlClusterCommandInfoMap.put( + "enhancedMoveHue", colorControlenhancedMoveHueCommandInfo); + Map colorControlenhancedMoveToHueCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlenhancedMoveToHueenhancedHueCommandParameterInfo = + new CommandParameterInfo("enhancedHue", int.class); + colorControlenhancedMoveToHueCommandParams.put( + "enhancedHue", colorControlenhancedMoveToHueenhancedHueCommandParameterInfo); + + CommandParameterInfo colorControlenhancedMoveToHuedirectionCommandParameterInfo = + new CommandParameterInfo("direction", int.class); + colorControlenhancedMoveToHueCommandParams.put( + "direction", colorControlenhancedMoveToHuedirectionCommandParameterInfo); + + CommandParameterInfo colorControlenhancedMoveToHuetransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + colorControlenhancedMoveToHueCommandParams.put( + "transitionTime", colorControlenhancedMoveToHuetransitionTimeCommandParameterInfo); + + CommandParameterInfo colorControlenhancedMoveToHueoptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlenhancedMoveToHueCommandParams.put( + "optionsMask", colorControlenhancedMoveToHueoptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlenhancedMoveToHueoptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlenhancedMoveToHueCommandParams.put( + "optionsOverride", colorControlenhancedMoveToHueoptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlenhancedMoveToHueCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .enhancedMoveToHue( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("enhancedHue"), + (Integer) commandArguments.get("direction"), + (Integer) commandArguments.get("transitionTime"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlenhancedMoveToHueCommandParams); + colorControlClusterCommandInfoMap.put( + "enhancedMoveToHue", colorControlenhancedMoveToHueCommandInfo); + Map colorControlenhancedMoveToHueAndSaturationCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlenhancedMoveToHueAndSaturationenhancedHueCommandParameterInfo = + new CommandParameterInfo("enhancedHue", int.class); + colorControlenhancedMoveToHueAndSaturationCommandParams.put( + "enhancedHue", colorControlenhancedMoveToHueAndSaturationenhancedHueCommandParameterInfo); + + CommandParameterInfo colorControlenhancedMoveToHueAndSaturationsaturationCommandParameterInfo = + new CommandParameterInfo("saturation", int.class); + colorControlenhancedMoveToHueAndSaturationCommandParams.put( + "saturation", colorControlenhancedMoveToHueAndSaturationsaturationCommandParameterInfo); + + CommandParameterInfo + colorControlenhancedMoveToHueAndSaturationtransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + colorControlenhancedMoveToHueAndSaturationCommandParams.put( + "transitionTime", + colorControlenhancedMoveToHueAndSaturationtransitionTimeCommandParameterInfo); + + CommandParameterInfo colorControlenhancedMoveToHueAndSaturationoptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlenhancedMoveToHueAndSaturationCommandParams.put( + "optionsMask", colorControlenhancedMoveToHueAndSaturationoptionsMaskCommandParameterInfo); + + CommandParameterInfo + colorControlenhancedMoveToHueAndSaturationoptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlenhancedMoveToHueAndSaturationCommandParams.put( + "optionsOverride", + colorControlenhancedMoveToHueAndSaturationoptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlenhancedMoveToHueAndSaturationCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .enhancedMoveToHueAndSaturation( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("enhancedHue"), + (Integer) commandArguments.get("saturation"), + (Integer) commandArguments.get("transitionTime"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlenhancedMoveToHueAndSaturationCommandParams); + colorControlClusterCommandInfoMap.put( + "enhancedMoveToHueAndSaturation", colorControlenhancedMoveToHueAndSaturationCommandInfo); + Map colorControlenhancedStepHueCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlenhancedStepHuestepModeCommandParameterInfo = + new CommandParameterInfo("stepMode", int.class); + colorControlenhancedStepHueCommandParams.put( + "stepMode", colorControlenhancedStepHuestepModeCommandParameterInfo); + + CommandParameterInfo colorControlenhancedStepHuestepSizeCommandParameterInfo = + new CommandParameterInfo("stepSize", int.class); + colorControlenhancedStepHueCommandParams.put( + "stepSize", colorControlenhancedStepHuestepSizeCommandParameterInfo); + + CommandParameterInfo colorControlenhancedStepHuetransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + colorControlenhancedStepHueCommandParams.put( + "transitionTime", colorControlenhancedStepHuetransitionTimeCommandParameterInfo); + + CommandParameterInfo colorControlenhancedStepHueoptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlenhancedStepHueCommandParams.put( + "optionsMask", colorControlenhancedStepHueoptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlenhancedStepHueoptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlenhancedStepHueCommandParams.put( + "optionsOverride", colorControlenhancedStepHueoptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlenhancedStepHueCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .enhancedStepHue( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("stepMode"), + (Integer) commandArguments.get("stepSize"), + (Integer) commandArguments.get("transitionTime"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlenhancedStepHueCommandParams); + colorControlClusterCommandInfoMap.put( + "enhancedStepHue", colorControlenhancedStepHueCommandInfo); + Map colorControlmoveColorCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlmoveColorrateXCommandParameterInfo = + new CommandParameterInfo("rateX", int.class); + colorControlmoveColorCommandParams.put("rateX", colorControlmoveColorrateXCommandParameterInfo); + + CommandParameterInfo colorControlmoveColorrateYCommandParameterInfo = + new CommandParameterInfo("rateY", int.class); + colorControlmoveColorCommandParams.put("rateY", colorControlmoveColorrateYCommandParameterInfo); + + CommandParameterInfo colorControlmoveColoroptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlmoveColorCommandParams.put( + "optionsMask", colorControlmoveColoroptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlmoveColoroptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlmoveColorCommandParams.put( + "optionsOverride", colorControlmoveColoroptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlmoveColorCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .moveColor( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("rateX"), + (Integer) commandArguments.get("rateY"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlmoveColorCommandParams); + colorControlClusterCommandInfoMap.put("moveColor", colorControlmoveColorCommandInfo); + Map colorControlmoveColorTemperatureCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlmoveColorTemperaturemoveModeCommandParameterInfo = + new CommandParameterInfo("moveMode", int.class); + colorControlmoveColorTemperatureCommandParams.put( + "moveMode", colorControlmoveColorTemperaturemoveModeCommandParameterInfo); + + CommandParameterInfo colorControlmoveColorTemperaturerateCommandParameterInfo = + new CommandParameterInfo("rate", int.class); + colorControlmoveColorTemperatureCommandParams.put( + "rate", colorControlmoveColorTemperaturerateCommandParameterInfo); + + CommandParameterInfo + colorControlmoveColorTemperaturecolorTemperatureMinimumCommandParameterInfo = + new CommandParameterInfo("colorTemperatureMinimum", int.class); + colorControlmoveColorTemperatureCommandParams.put( + "colorTemperatureMinimum", + colorControlmoveColorTemperaturecolorTemperatureMinimumCommandParameterInfo); + + CommandParameterInfo + colorControlmoveColorTemperaturecolorTemperatureMaximumCommandParameterInfo = + new CommandParameterInfo("colorTemperatureMaximum", int.class); + colorControlmoveColorTemperatureCommandParams.put( + "colorTemperatureMaximum", + colorControlmoveColorTemperaturecolorTemperatureMaximumCommandParameterInfo); + + CommandParameterInfo colorControlmoveColorTemperatureoptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlmoveColorTemperatureCommandParams.put( + "optionsMask", colorControlmoveColorTemperatureoptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlmoveColorTemperatureoptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlmoveColorTemperatureCommandParams.put( + "optionsOverride", colorControlmoveColorTemperatureoptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlmoveColorTemperatureCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .moveColorTemperature( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("moveMode"), + (Integer) commandArguments.get("rate"), + (Integer) commandArguments.get("colorTemperatureMinimum"), + (Integer) commandArguments.get("colorTemperatureMaximum"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlmoveColorTemperatureCommandParams); + colorControlClusterCommandInfoMap.put( + "moveColorTemperature", colorControlmoveColorTemperatureCommandInfo); + Map colorControlmoveHueCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlmoveHuemoveModeCommandParameterInfo = + new CommandParameterInfo("moveMode", int.class); + colorControlmoveHueCommandParams.put( + "moveMode", colorControlmoveHuemoveModeCommandParameterInfo); + + CommandParameterInfo colorControlmoveHuerateCommandParameterInfo = + new CommandParameterInfo("rate", int.class); + colorControlmoveHueCommandParams.put("rate", colorControlmoveHuerateCommandParameterInfo); + + CommandParameterInfo colorControlmoveHueoptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlmoveHueCommandParams.put( + "optionsMask", colorControlmoveHueoptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlmoveHueoptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlmoveHueCommandParams.put( + "optionsOverride", colorControlmoveHueoptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlmoveHueCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .moveHue( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("moveMode"), + (Integer) commandArguments.get("rate"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlmoveHueCommandParams); + colorControlClusterCommandInfoMap.put("moveHue", colorControlmoveHueCommandInfo); + Map colorControlmoveSaturationCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlmoveSaturationmoveModeCommandParameterInfo = + new CommandParameterInfo("moveMode", int.class); + colorControlmoveSaturationCommandParams.put( + "moveMode", colorControlmoveSaturationmoveModeCommandParameterInfo); + + CommandParameterInfo colorControlmoveSaturationrateCommandParameterInfo = + new CommandParameterInfo("rate", int.class); + colorControlmoveSaturationCommandParams.put( + "rate", colorControlmoveSaturationrateCommandParameterInfo); + + CommandParameterInfo colorControlmoveSaturationoptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlmoveSaturationCommandParams.put( + "optionsMask", colorControlmoveSaturationoptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlmoveSaturationoptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlmoveSaturationCommandParams.put( + "optionsOverride", colorControlmoveSaturationoptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlmoveSaturationCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .moveSaturation( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("moveMode"), + (Integer) commandArguments.get("rate"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlmoveSaturationCommandParams); + colorControlClusterCommandInfoMap.put("moveSaturation", colorControlmoveSaturationCommandInfo); + Map colorControlmoveToColorCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlmoveToColorcolorXCommandParameterInfo = + new CommandParameterInfo("colorX", int.class); + colorControlmoveToColorCommandParams.put( + "colorX", colorControlmoveToColorcolorXCommandParameterInfo); + + CommandParameterInfo colorControlmoveToColorcolorYCommandParameterInfo = + new CommandParameterInfo("colorY", int.class); + colorControlmoveToColorCommandParams.put( + "colorY", colorControlmoveToColorcolorYCommandParameterInfo); + + CommandParameterInfo colorControlmoveToColortransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + colorControlmoveToColorCommandParams.put( + "transitionTime", colorControlmoveToColortransitionTimeCommandParameterInfo); + + CommandParameterInfo colorControlmoveToColoroptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlmoveToColorCommandParams.put( + "optionsMask", colorControlmoveToColoroptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlmoveToColoroptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlmoveToColorCommandParams.put( + "optionsOverride", colorControlmoveToColoroptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlmoveToColorCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .moveToColor( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("colorX"), + (Integer) commandArguments.get("colorY"), + (Integer) commandArguments.get("transitionTime"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlmoveToColorCommandParams); + colorControlClusterCommandInfoMap.put("moveToColor", colorControlmoveToColorCommandInfo); + Map colorControlmoveToColorTemperatureCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlmoveToColorTemperaturecolorTemperatureCommandParameterInfo = + new CommandParameterInfo("colorTemperature", int.class); + colorControlmoveToColorTemperatureCommandParams.put( + "colorTemperature", colorControlmoveToColorTemperaturecolorTemperatureCommandParameterInfo); + + CommandParameterInfo colorControlmoveToColorTemperaturetransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + colorControlmoveToColorTemperatureCommandParams.put( + "transitionTime", colorControlmoveToColorTemperaturetransitionTimeCommandParameterInfo); + + CommandParameterInfo colorControlmoveToColorTemperatureoptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlmoveToColorTemperatureCommandParams.put( + "optionsMask", colorControlmoveToColorTemperatureoptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlmoveToColorTemperatureoptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlmoveToColorTemperatureCommandParams.put( + "optionsOverride", colorControlmoveToColorTemperatureoptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlmoveToColorTemperatureCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .moveToColorTemperature( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("colorTemperature"), + (Integer) commandArguments.get("transitionTime"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlmoveToColorTemperatureCommandParams); + colorControlClusterCommandInfoMap.put( + "moveToColorTemperature", colorControlmoveToColorTemperatureCommandInfo); + Map colorControlmoveToHueCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlmoveToHuehueCommandParameterInfo = + new CommandParameterInfo("hue", int.class); + colorControlmoveToHueCommandParams.put("hue", colorControlmoveToHuehueCommandParameterInfo); + + CommandParameterInfo colorControlmoveToHuedirectionCommandParameterInfo = + new CommandParameterInfo("direction", int.class); + colorControlmoveToHueCommandParams.put( + "direction", colorControlmoveToHuedirectionCommandParameterInfo); + + CommandParameterInfo colorControlmoveToHuetransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + colorControlmoveToHueCommandParams.put( + "transitionTime", colorControlmoveToHuetransitionTimeCommandParameterInfo); + + CommandParameterInfo colorControlmoveToHueoptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlmoveToHueCommandParams.put( + "optionsMask", colorControlmoveToHueoptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlmoveToHueoptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlmoveToHueCommandParams.put( + "optionsOverride", colorControlmoveToHueoptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlmoveToHueCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .moveToHue( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("hue"), + (Integer) commandArguments.get("direction"), + (Integer) commandArguments.get("transitionTime"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlmoveToHueCommandParams); + colorControlClusterCommandInfoMap.put("moveToHue", colorControlmoveToHueCommandInfo); + Map colorControlmoveToHueAndSaturationCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlmoveToHueAndSaturationhueCommandParameterInfo = + new CommandParameterInfo("hue", int.class); + colorControlmoveToHueAndSaturationCommandParams.put( + "hue", colorControlmoveToHueAndSaturationhueCommandParameterInfo); + + CommandParameterInfo colorControlmoveToHueAndSaturationsaturationCommandParameterInfo = + new CommandParameterInfo("saturation", int.class); + colorControlmoveToHueAndSaturationCommandParams.put( + "saturation", colorControlmoveToHueAndSaturationsaturationCommandParameterInfo); + + CommandParameterInfo colorControlmoveToHueAndSaturationtransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + colorControlmoveToHueAndSaturationCommandParams.put( + "transitionTime", colorControlmoveToHueAndSaturationtransitionTimeCommandParameterInfo); + + CommandParameterInfo colorControlmoveToHueAndSaturationoptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlmoveToHueAndSaturationCommandParams.put( + "optionsMask", colorControlmoveToHueAndSaturationoptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlmoveToHueAndSaturationoptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlmoveToHueAndSaturationCommandParams.put( + "optionsOverride", colorControlmoveToHueAndSaturationoptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlmoveToHueAndSaturationCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .moveToHueAndSaturation( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("hue"), + (Integer) commandArguments.get("saturation"), + (Integer) commandArguments.get("transitionTime"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlmoveToHueAndSaturationCommandParams); + colorControlClusterCommandInfoMap.put( + "moveToHueAndSaturation", colorControlmoveToHueAndSaturationCommandInfo); + Map colorControlmoveToSaturationCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlmoveToSaturationsaturationCommandParameterInfo = + new CommandParameterInfo("saturation", int.class); + colorControlmoveToSaturationCommandParams.put( + "saturation", colorControlmoveToSaturationsaturationCommandParameterInfo); + + CommandParameterInfo colorControlmoveToSaturationtransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + colorControlmoveToSaturationCommandParams.put( + "transitionTime", colorControlmoveToSaturationtransitionTimeCommandParameterInfo); + + CommandParameterInfo colorControlmoveToSaturationoptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlmoveToSaturationCommandParams.put( + "optionsMask", colorControlmoveToSaturationoptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlmoveToSaturationoptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlmoveToSaturationCommandParams.put( + "optionsOverride", colorControlmoveToSaturationoptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlmoveToSaturationCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .moveToSaturation( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("saturation"), + (Integer) commandArguments.get("transitionTime"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlmoveToSaturationCommandParams); + colorControlClusterCommandInfoMap.put( + "moveToSaturation", colorControlmoveToSaturationCommandInfo); + Map colorControlstepColorCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlstepColorstepXCommandParameterInfo = + new CommandParameterInfo("stepX", int.class); + colorControlstepColorCommandParams.put("stepX", colorControlstepColorstepXCommandParameterInfo); + + CommandParameterInfo colorControlstepColorstepYCommandParameterInfo = + new CommandParameterInfo("stepY", int.class); + colorControlstepColorCommandParams.put("stepY", colorControlstepColorstepYCommandParameterInfo); + + CommandParameterInfo colorControlstepColortransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + colorControlstepColorCommandParams.put( + "transitionTime", colorControlstepColortransitionTimeCommandParameterInfo); + + CommandParameterInfo colorControlstepColoroptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlstepColorCommandParams.put( + "optionsMask", colorControlstepColoroptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlstepColoroptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlstepColorCommandParams.put( + "optionsOverride", colorControlstepColoroptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlstepColorCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .stepColor( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("stepX"), + (Integer) commandArguments.get("stepY"), + (Integer) commandArguments.get("transitionTime"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlstepColorCommandParams); + colorControlClusterCommandInfoMap.put("stepColor", colorControlstepColorCommandInfo); + Map colorControlstepColorTemperatureCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlstepColorTemperaturestepModeCommandParameterInfo = + new CommandParameterInfo("stepMode", int.class); + colorControlstepColorTemperatureCommandParams.put( + "stepMode", colorControlstepColorTemperaturestepModeCommandParameterInfo); + + CommandParameterInfo colorControlstepColorTemperaturestepSizeCommandParameterInfo = + new CommandParameterInfo("stepSize", int.class); + colorControlstepColorTemperatureCommandParams.put( + "stepSize", colorControlstepColorTemperaturestepSizeCommandParameterInfo); + + CommandParameterInfo colorControlstepColorTemperaturetransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + colorControlstepColorTemperatureCommandParams.put( + "transitionTime", colorControlstepColorTemperaturetransitionTimeCommandParameterInfo); + + CommandParameterInfo + colorControlstepColorTemperaturecolorTemperatureMinimumCommandParameterInfo = + new CommandParameterInfo("colorTemperatureMinimum", int.class); + colorControlstepColorTemperatureCommandParams.put( + "colorTemperatureMinimum", + colorControlstepColorTemperaturecolorTemperatureMinimumCommandParameterInfo); + + CommandParameterInfo + colorControlstepColorTemperaturecolorTemperatureMaximumCommandParameterInfo = + new CommandParameterInfo("colorTemperatureMaximum", int.class); + colorControlstepColorTemperatureCommandParams.put( + "colorTemperatureMaximum", + colorControlstepColorTemperaturecolorTemperatureMaximumCommandParameterInfo); + + CommandParameterInfo colorControlstepColorTemperatureoptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlstepColorTemperatureCommandParams.put( + "optionsMask", colorControlstepColorTemperatureoptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlstepColorTemperatureoptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlstepColorTemperatureCommandParams.put( + "optionsOverride", colorControlstepColorTemperatureoptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlstepColorTemperatureCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .stepColorTemperature( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("stepMode"), + (Integer) commandArguments.get("stepSize"), + (Integer) commandArguments.get("transitionTime"), + (Integer) commandArguments.get("colorTemperatureMinimum"), + (Integer) commandArguments.get("colorTemperatureMaximum"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlstepColorTemperatureCommandParams); + colorControlClusterCommandInfoMap.put( + "stepColorTemperature", colorControlstepColorTemperatureCommandInfo); + Map colorControlstepHueCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlstepHuestepModeCommandParameterInfo = + new CommandParameterInfo("stepMode", int.class); + colorControlstepHueCommandParams.put( + "stepMode", colorControlstepHuestepModeCommandParameterInfo); + + CommandParameterInfo colorControlstepHuestepSizeCommandParameterInfo = + new CommandParameterInfo("stepSize", int.class); + colorControlstepHueCommandParams.put( + "stepSize", colorControlstepHuestepSizeCommandParameterInfo); + + CommandParameterInfo colorControlstepHuetransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + colorControlstepHueCommandParams.put( + "transitionTime", colorControlstepHuetransitionTimeCommandParameterInfo); + + CommandParameterInfo colorControlstepHueoptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlstepHueCommandParams.put( + "optionsMask", colorControlstepHueoptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlstepHueoptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlstepHueCommandParams.put( + "optionsOverride", colorControlstepHueoptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlstepHueCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .stepHue( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("stepMode"), + (Integer) commandArguments.get("stepSize"), + (Integer) commandArguments.get("transitionTime"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlstepHueCommandParams); + colorControlClusterCommandInfoMap.put("stepHue", colorControlstepHueCommandInfo); + Map colorControlstepSaturationCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlstepSaturationstepModeCommandParameterInfo = + new CommandParameterInfo("stepMode", int.class); + colorControlstepSaturationCommandParams.put( + "stepMode", colorControlstepSaturationstepModeCommandParameterInfo); + + CommandParameterInfo colorControlstepSaturationstepSizeCommandParameterInfo = + new CommandParameterInfo("stepSize", int.class); + colorControlstepSaturationCommandParams.put( + "stepSize", colorControlstepSaturationstepSizeCommandParameterInfo); + + CommandParameterInfo colorControlstepSaturationtransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + colorControlstepSaturationCommandParams.put( + "transitionTime", colorControlstepSaturationtransitionTimeCommandParameterInfo); + + CommandParameterInfo colorControlstepSaturationoptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlstepSaturationCommandParams.put( + "optionsMask", colorControlstepSaturationoptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlstepSaturationoptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlstepSaturationCommandParams.put( + "optionsOverride", colorControlstepSaturationoptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlstepSaturationCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .stepSaturation( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("stepMode"), + (Integer) commandArguments.get("stepSize"), + (Integer) commandArguments.get("transitionTime"), + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlstepSaturationCommandParams); + colorControlClusterCommandInfoMap.put("stepSaturation", colorControlstepSaturationCommandInfo); + Map colorControlstopMoveStepCommandParams = + new LinkedHashMap(); + CommandParameterInfo colorControlstopMoveStepoptionsMaskCommandParameterInfo = + new CommandParameterInfo("optionsMask", int.class); + colorControlstopMoveStepCommandParams.put( + "optionsMask", colorControlstopMoveStepoptionsMaskCommandParameterInfo); + + CommandParameterInfo colorControlstopMoveStepoptionsOverrideCommandParameterInfo = + new CommandParameterInfo("optionsOverride", int.class); + colorControlstopMoveStepCommandParams.put( + "optionsOverride", colorControlstopMoveStepoptionsOverrideCommandParameterInfo); + + // Populate commands + CommandInfo colorControlstopMoveStepCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .stopMoveStep( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("optionsMask"), + (Integer) commandArguments.get("optionsOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + colorControlstopMoveStepCommandParams); + colorControlClusterCommandInfoMap.put("stopMoveStep", colorControlstopMoveStepCommandInfo); + // Populate cluster + ClusterInfo colorControlClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.ColorControlCluster(ptr, endpointId), + colorControlClusterCommandInfoMap); + clusterMap.put("colorControl", colorControlClusterInfo); + Map contentLauncherClusterCommandInfoMap = new LinkedHashMap<>(); + Map contentLauncherlaunchContentCommandParams = + new LinkedHashMap(); + CommandParameterInfo contentLauncherlaunchContentautoPlayCommandParameterInfo = + new CommandParameterInfo("autoPlay", boolean.class); + contentLauncherlaunchContentCommandParams.put( + "autoPlay", contentLauncherlaunchContentautoPlayCommandParameterInfo); + + CommandParameterInfo contentLauncherlaunchContentdataCommandParameterInfo = + new CommandParameterInfo("data", String.class); + contentLauncherlaunchContentCommandParams.put( + "data", contentLauncherlaunchContentdataCommandParameterInfo); + + // Populate commands + CommandInfo contentLauncherlaunchContentCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ContentLauncherCluster) cluster) + .launchContent( + (ChipClusters.ContentLauncherCluster.LaunchContentResponseCallback) callback, + (Boolean) commandArguments.get("autoPlay"), + (String) commandArguments.get("data")); + }, + () -> new DelegatedLaunchContentResponseCallback(), + contentLauncherlaunchContentCommandParams); + contentLauncherClusterCommandInfoMap.put( + "launchContent", contentLauncherlaunchContentCommandInfo); + Map contentLauncherlaunchURLCommandParams = + new LinkedHashMap(); + CommandParameterInfo contentLauncherlaunchURLcontentURLCommandParameterInfo = + new CommandParameterInfo("contentURL", String.class); + contentLauncherlaunchURLCommandParams.put( + "contentURL", contentLauncherlaunchURLcontentURLCommandParameterInfo); + + CommandParameterInfo contentLauncherlaunchURLdisplayStringCommandParameterInfo = + new CommandParameterInfo("displayString", String.class); + contentLauncherlaunchURLCommandParams.put( + "displayString", contentLauncherlaunchURLdisplayStringCommandParameterInfo); + + // Populate commands + CommandInfo contentLauncherlaunchURLCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ContentLauncherCluster) cluster) + .launchURL( + (ChipClusters.ContentLauncherCluster.LaunchURLResponseCallback) callback, + (String) commandArguments.get("contentURL"), + (String) commandArguments.get("displayString")); + }, + () -> new DelegatedLaunchURLResponseCallback(), + contentLauncherlaunchURLCommandParams); + contentLauncherClusterCommandInfoMap.put("launchURL", contentLauncherlaunchURLCommandInfo); + // Populate cluster + ClusterInfo contentLauncherClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.ContentLauncherCluster(ptr, endpointId), + contentLauncherClusterCommandInfoMap); + clusterMap.put("contentLauncher", contentLauncherClusterInfo); + Map descriptorClusterCommandInfoMap = new LinkedHashMap<>(); + // Populate cluster + ClusterInfo descriptorClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.DescriptorCluster(ptr, endpointId), + descriptorClusterCommandInfoMap); + clusterMap.put("descriptor", descriptorClusterInfo); + Map diagnosticLogsClusterCommandInfoMap = new LinkedHashMap<>(); + Map diagnosticLogsretrieveLogsRequestCommandParams = + new LinkedHashMap(); + CommandParameterInfo diagnosticLogsretrieveLogsRequestintentCommandParameterInfo = + new CommandParameterInfo("intent", int.class); + diagnosticLogsretrieveLogsRequestCommandParams.put( + "intent", diagnosticLogsretrieveLogsRequestintentCommandParameterInfo); + + CommandParameterInfo diagnosticLogsretrieveLogsRequestrequestedProtocolCommandParameterInfo = + new CommandParameterInfo("requestedProtocol", int.class); + diagnosticLogsretrieveLogsRequestCommandParams.put( + "requestedProtocol", + diagnosticLogsretrieveLogsRequestrequestedProtocolCommandParameterInfo); + + CommandParameterInfo + diagnosticLogsretrieveLogsRequesttransferFileDesignatorCommandParameterInfo = + new CommandParameterInfo("transferFileDesignator", byte[].class); + diagnosticLogsretrieveLogsRequestCommandParams.put( + "transferFileDesignator", + diagnosticLogsretrieveLogsRequesttransferFileDesignatorCommandParameterInfo); + + // Populate commands + CommandInfo diagnosticLogsretrieveLogsRequestCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DiagnosticLogsCluster) cluster) + .retrieveLogsRequest( + (ChipClusters.DiagnosticLogsCluster.RetrieveLogsResponseCallback) callback, + (Integer) commandArguments.get("intent"), + (Integer) commandArguments.get("requestedProtocol"), + (byte[]) commandArguments.get("transferFileDesignator")); + }, + () -> new DelegatedRetrieveLogsResponseCallback(), + diagnosticLogsretrieveLogsRequestCommandParams); + diagnosticLogsClusterCommandInfoMap.put( + "retrieveLogsRequest", diagnosticLogsretrieveLogsRequestCommandInfo); + // Populate cluster + ClusterInfo diagnosticLogsClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.DiagnosticLogsCluster(ptr, endpointId), + diagnosticLogsClusterCommandInfoMap); + clusterMap.put("diagnosticLogs", diagnosticLogsClusterInfo); + Map doorLockClusterCommandInfoMap = new LinkedHashMap<>(); + Map doorLockclearAllPinsCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo doorLockclearAllPinsCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .clearAllPins( + (ChipClusters.DoorLockCluster.ClearAllPinsResponseCallback) callback); + }, + () -> new DelegatedClearAllPinsResponseCallback(), + doorLockclearAllPinsCommandParams); + doorLockClusterCommandInfoMap.put("clearAllPins", doorLockclearAllPinsCommandInfo); + Map doorLockclearAllRfidsCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo doorLockclearAllRfidsCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .clearAllRfids( + (ChipClusters.DoorLockCluster.ClearAllRfidsResponseCallback) callback); + }, + () -> new DelegatedClearAllRfidsResponseCallback(), + doorLockclearAllRfidsCommandParams); + doorLockClusterCommandInfoMap.put("clearAllRfids", doorLockclearAllRfidsCommandInfo); + Map doorLockclearHolidayScheduleCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLockclearHolidaySchedulescheduleIdCommandParameterInfo = + new CommandParameterInfo("scheduleId", int.class); + doorLockclearHolidayScheduleCommandParams.put( + "scheduleId", doorLockclearHolidaySchedulescheduleIdCommandParameterInfo); + + // Populate commands + CommandInfo doorLockclearHolidayScheduleCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .clearHolidaySchedule( + (ChipClusters.DoorLockCluster.ClearHolidayScheduleResponseCallback) callback, + (Integer) commandArguments.get("scheduleId")); + }, + () -> new DelegatedClearHolidayScheduleResponseCallback(), + doorLockclearHolidayScheduleCommandParams); + doorLockClusterCommandInfoMap.put( + "clearHolidaySchedule", doorLockclearHolidayScheduleCommandInfo); + Map doorLockclearPinCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLockclearPinuserIdCommandParameterInfo = + new CommandParameterInfo("userId", int.class); + doorLockclearPinCommandParams.put("userId", doorLockclearPinuserIdCommandParameterInfo); + + // Populate commands + CommandInfo doorLockclearPinCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .clearPin( + (ChipClusters.DoorLockCluster.ClearPinResponseCallback) callback, + (Integer) commandArguments.get("userId")); + }, + () -> new DelegatedClearPinResponseCallback(), + doorLockclearPinCommandParams); + doorLockClusterCommandInfoMap.put("clearPin", doorLockclearPinCommandInfo); + Map doorLockclearRfidCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLockclearRfiduserIdCommandParameterInfo = + new CommandParameterInfo("userId", int.class); + doorLockclearRfidCommandParams.put("userId", doorLockclearRfiduserIdCommandParameterInfo); + + // Populate commands + CommandInfo doorLockclearRfidCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .clearRfid( + (ChipClusters.DoorLockCluster.ClearRfidResponseCallback) callback, + (Integer) commandArguments.get("userId")); + }, + () -> new DelegatedClearRfidResponseCallback(), + doorLockclearRfidCommandParams); + doorLockClusterCommandInfoMap.put("clearRfid", doorLockclearRfidCommandInfo); + Map doorLockclearWeekdayScheduleCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLockclearWeekdaySchedulescheduleIdCommandParameterInfo = + new CommandParameterInfo("scheduleId", int.class); + doorLockclearWeekdayScheduleCommandParams.put( + "scheduleId", doorLockclearWeekdaySchedulescheduleIdCommandParameterInfo); + + CommandParameterInfo doorLockclearWeekdayScheduleuserIdCommandParameterInfo = + new CommandParameterInfo("userId", int.class); + doorLockclearWeekdayScheduleCommandParams.put( + "userId", doorLockclearWeekdayScheduleuserIdCommandParameterInfo); + + // Populate commands + CommandInfo doorLockclearWeekdayScheduleCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .clearWeekdaySchedule( + (ChipClusters.DoorLockCluster.ClearWeekdayScheduleResponseCallback) callback, + (Integer) commandArguments.get("scheduleId"), + (Integer) commandArguments.get("userId")); + }, + () -> new DelegatedClearWeekdayScheduleResponseCallback(), + doorLockclearWeekdayScheduleCommandParams); + doorLockClusterCommandInfoMap.put( + "clearWeekdaySchedule", doorLockclearWeekdayScheduleCommandInfo); + Map doorLockclearYeardayScheduleCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLockclearYeardaySchedulescheduleIdCommandParameterInfo = + new CommandParameterInfo("scheduleId", int.class); + doorLockclearYeardayScheduleCommandParams.put( + "scheduleId", doorLockclearYeardaySchedulescheduleIdCommandParameterInfo); + + CommandParameterInfo doorLockclearYeardayScheduleuserIdCommandParameterInfo = + new CommandParameterInfo("userId", int.class); + doorLockclearYeardayScheduleCommandParams.put( + "userId", doorLockclearYeardayScheduleuserIdCommandParameterInfo); + + // Populate commands + CommandInfo doorLockclearYeardayScheduleCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .clearYeardaySchedule( + (ChipClusters.DoorLockCluster.ClearYeardayScheduleResponseCallback) callback, + (Integer) commandArguments.get("scheduleId"), + (Integer) commandArguments.get("userId")); + }, + () -> new DelegatedClearYeardayScheduleResponseCallback(), + doorLockclearYeardayScheduleCommandParams); + doorLockClusterCommandInfoMap.put( + "clearYeardaySchedule", doorLockclearYeardayScheduleCommandInfo); + Map doorLockgetHolidayScheduleCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLockgetHolidaySchedulescheduleIdCommandParameterInfo = + new CommandParameterInfo("scheduleId", int.class); + doorLockgetHolidayScheduleCommandParams.put( + "scheduleId", doorLockgetHolidaySchedulescheduleIdCommandParameterInfo); + + // Populate commands + CommandInfo doorLockgetHolidayScheduleCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .getHolidaySchedule( + (ChipClusters.DoorLockCluster.GetHolidayScheduleResponseCallback) callback, + (Integer) commandArguments.get("scheduleId")); + }, + () -> new DelegatedGetHolidayScheduleResponseCallback(), + doorLockgetHolidayScheduleCommandParams); + doorLockClusterCommandInfoMap.put("getHolidaySchedule", doorLockgetHolidayScheduleCommandInfo); + Map doorLockgetLogRecordCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLockgetLogRecordlogIndexCommandParameterInfo = + new CommandParameterInfo("logIndex", int.class); + doorLockgetLogRecordCommandParams.put( + "logIndex", doorLockgetLogRecordlogIndexCommandParameterInfo); + + // Populate commands + CommandInfo doorLockgetLogRecordCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .getLogRecord( + (ChipClusters.DoorLockCluster.GetLogRecordResponseCallback) callback, + (Integer) commandArguments.get("logIndex")); + }, + () -> new DelegatedGetLogRecordResponseCallback(), + doorLockgetLogRecordCommandParams); + doorLockClusterCommandInfoMap.put("getLogRecord", doorLockgetLogRecordCommandInfo); + Map doorLockgetPinCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLockgetPinuserIdCommandParameterInfo = + new CommandParameterInfo("userId", int.class); + doorLockgetPinCommandParams.put("userId", doorLockgetPinuserIdCommandParameterInfo); + + // Populate commands + CommandInfo doorLockgetPinCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .getPin( + (ChipClusters.DoorLockCluster.GetPinResponseCallback) callback, + (Integer) commandArguments.get("userId")); + }, + () -> new DelegatedGetPinResponseCallback(), + doorLockgetPinCommandParams); + doorLockClusterCommandInfoMap.put("getPin", doorLockgetPinCommandInfo); + Map doorLockgetRfidCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLockgetRfiduserIdCommandParameterInfo = + new CommandParameterInfo("userId", int.class); + doorLockgetRfidCommandParams.put("userId", doorLockgetRfiduserIdCommandParameterInfo); + + // Populate commands + CommandInfo doorLockgetRfidCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .getRfid( + (ChipClusters.DoorLockCluster.GetRfidResponseCallback) callback, + (Integer) commandArguments.get("userId")); + }, + () -> new DelegatedGetRfidResponseCallback(), + doorLockgetRfidCommandParams); + doorLockClusterCommandInfoMap.put("getRfid", doorLockgetRfidCommandInfo); + Map doorLockgetUserTypeCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLockgetUserTypeuserIdCommandParameterInfo = + new CommandParameterInfo("userId", int.class); + doorLockgetUserTypeCommandParams.put("userId", doorLockgetUserTypeuserIdCommandParameterInfo); + + // Populate commands + CommandInfo doorLockgetUserTypeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .getUserType( + (ChipClusters.DoorLockCluster.GetUserTypeResponseCallback) callback, + (Integer) commandArguments.get("userId")); + }, + () -> new DelegatedGetUserTypeResponseCallback(), + doorLockgetUserTypeCommandParams); + doorLockClusterCommandInfoMap.put("getUserType", doorLockgetUserTypeCommandInfo); + Map doorLockgetWeekdayScheduleCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLockgetWeekdaySchedulescheduleIdCommandParameterInfo = + new CommandParameterInfo("scheduleId", int.class); + doorLockgetWeekdayScheduleCommandParams.put( + "scheduleId", doorLockgetWeekdaySchedulescheduleIdCommandParameterInfo); + + CommandParameterInfo doorLockgetWeekdayScheduleuserIdCommandParameterInfo = + new CommandParameterInfo("userId", int.class); + doorLockgetWeekdayScheduleCommandParams.put( + "userId", doorLockgetWeekdayScheduleuserIdCommandParameterInfo); + + // Populate commands + CommandInfo doorLockgetWeekdayScheduleCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .getWeekdaySchedule( + (ChipClusters.DoorLockCluster.GetWeekdayScheduleResponseCallback) callback, + (Integer) commandArguments.get("scheduleId"), + (Integer) commandArguments.get("userId")); + }, + () -> new DelegatedGetWeekdayScheduleResponseCallback(), + doorLockgetWeekdayScheduleCommandParams); + doorLockClusterCommandInfoMap.put("getWeekdaySchedule", doorLockgetWeekdayScheduleCommandInfo); + Map doorLockgetYeardayScheduleCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLockgetYeardaySchedulescheduleIdCommandParameterInfo = + new CommandParameterInfo("scheduleId", int.class); + doorLockgetYeardayScheduleCommandParams.put( + "scheduleId", doorLockgetYeardaySchedulescheduleIdCommandParameterInfo); + + CommandParameterInfo doorLockgetYeardayScheduleuserIdCommandParameterInfo = + new CommandParameterInfo("userId", int.class); + doorLockgetYeardayScheduleCommandParams.put( + "userId", doorLockgetYeardayScheduleuserIdCommandParameterInfo); + + // Populate commands + CommandInfo doorLockgetYeardayScheduleCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .getYeardaySchedule( + (ChipClusters.DoorLockCluster.GetYeardayScheduleResponseCallback) callback, + (Integer) commandArguments.get("scheduleId"), + (Integer) commandArguments.get("userId")); + }, + () -> new DelegatedGetYeardayScheduleResponseCallback(), + doorLockgetYeardayScheduleCommandParams); + doorLockClusterCommandInfoMap.put("getYeardaySchedule", doorLockgetYeardayScheduleCommandInfo); + Map doorLocklockDoorCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLocklockDoorpinCommandParameterInfo = + new CommandParameterInfo("pin", byte[].class); + doorLocklockDoorCommandParams.put("pin", doorLocklockDoorpinCommandParameterInfo); + + // Populate commands + CommandInfo doorLocklockDoorCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .lockDoor( + (ChipClusters.DoorLockCluster.LockDoorResponseCallback) callback, + (byte[]) commandArguments.get("pin")); + }, + () -> new DelegatedLockDoorResponseCallback(), + doorLocklockDoorCommandParams); + doorLockClusterCommandInfoMap.put("lockDoor", doorLocklockDoorCommandInfo); + Map doorLocksetHolidayScheduleCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLocksetHolidaySchedulescheduleIdCommandParameterInfo = + new CommandParameterInfo("scheduleId", int.class); + doorLocksetHolidayScheduleCommandParams.put( + "scheduleId", doorLocksetHolidaySchedulescheduleIdCommandParameterInfo); + + CommandParameterInfo doorLocksetHolidaySchedulelocalStartTimeCommandParameterInfo = + new CommandParameterInfo("localStartTime", long.class); + doorLocksetHolidayScheduleCommandParams.put( + "localStartTime", doorLocksetHolidaySchedulelocalStartTimeCommandParameterInfo); + + CommandParameterInfo doorLocksetHolidaySchedulelocalEndTimeCommandParameterInfo = + new CommandParameterInfo("localEndTime", long.class); + doorLocksetHolidayScheduleCommandParams.put( + "localEndTime", doorLocksetHolidaySchedulelocalEndTimeCommandParameterInfo); + + CommandParameterInfo doorLocksetHolidayScheduleoperatingModeDuringHolidayCommandParameterInfo = + new CommandParameterInfo("operatingModeDuringHoliday", int.class); + doorLocksetHolidayScheduleCommandParams.put( + "operatingModeDuringHoliday", + doorLocksetHolidayScheduleoperatingModeDuringHolidayCommandParameterInfo); + + // Populate commands + CommandInfo doorLocksetHolidayScheduleCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .setHolidaySchedule( + (ChipClusters.DoorLockCluster.SetHolidayScheduleResponseCallback) callback, + (Integer) commandArguments.get("scheduleId"), + (Long) commandArguments.get("localStartTime"), + (Long) commandArguments.get("localEndTime"), + (Integer) commandArguments.get("operatingModeDuringHoliday")); + }, + () -> new DelegatedSetHolidayScheduleResponseCallback(), + doorLocksetHolidayScheduleCommandParams); + doorLockClusterCommandInfoMap.put("setHolidaySchedule", doorLocksetHolidayScheduleCommandInfo); + Map doorLocksetPinCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLocksetPinuserIdCommandParameterInfo = + new CommandParameterInfo("userId", int.class); + doorLocksetPinCommandParams.put("userId", doorLocksetPinuserIdCommandParameterInfo); + + CommandParameterInfo doorLocksetPinuserStatusCommandParameterInfo = + new CommandParameterInfo("userStatus", int.class); + doorLocksetPinCommandParams.put("userStatus", doorLocksetPinuserStatusCommandParameterInfo); + + CommandParameterInfo doorLocksetPinuserTypeCommandParameterInfo = + new CommandParameterInfo("userType", int.class); + doorLocksetPinCommandParams.put("userType", doorLocksetPinuserTypeCommandParameterInfo); + + CommandParameterInfo doorLocksetPinpinCommandParameterInfo = + new CommandParameterInfo("pin", byte[].class); + doorLocksetPinCommandParams.put("pin", doorLocksetPinpinCommandParameterInfo); + + // Populate commands + CommandInfo doorLocksetPinCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .setPin( + (ChipClusters.DoorLockCluster.SetPinResponseCallback) callback, + (Integer) commandArguments.get("userId"), + (Integer) commandArguments.get("userStatus"), + (Integer) commandArguments.get("userType"), + (byte[]) commandArguments.get("pin")); + }, + () -> new DelegatedSetPinResponseCallback(), + doorLocksetPinCommandParams); + doorLockClusterCommandInfoMap.put("setPin", doorLocksetPinCommandInfo); + Map doorLocksetRfidCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLocksetRfiduserIdCommandParameterInfo = + new CommandParameterInfo("userId", int.class); + doorLocksetRfidCommandParams.put("userId", doorLocksetRfiduserIdCommandParameterInfo); + + CommandParameterInfo doorLocksetRfiduserStatusCommandParameterInfo = + new CommandParameterInfo("userStatus", int.class); + doorLocksetRfidCommandParams.put("userStatus", doorLocksetRfiduserStatusCommandParameterInfo); + + CommandParameterInfo doorLocksetRfiduserTypeCommandParameterInfo = + new CommandParameterInfo("userType", int.class); + doorLocksetRfidCommandParams.put("userType", doorLocksetRfiduserTypeCommandParameterInfo); + + CommandParameterInfo doorLocksetRfididCommandParameterInfo = + new CommandParameterInfo("id", byte[].class); + doorLocksetRfidCommandParams.put("id", doorLocksetRfididCommandParameterInfo); + + // Populate commands + CommandInfo doorLocksetRfidCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .setRfid( + (ChipClusters.DoorLockCluster.SetRfidResponseCallback) callback, + (Integer) commandArguments.get("userId"), + (Integer) commandArguments.get("userStatus"), + (Integer) commandArguments.get("userType"), + (byte[]) commandArguments.get("id")); + }, + () -> new DelegatedSetRfidResponseCallback(), + doorLocksetRfidCommandParams); + doorLockClusterCommandInfoMap.put("setRfid", doorLocksetRfidCommandInfo); + Map doorLocksetUserTypeCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLocksetUserTypeuserIdCommandParameterInfo = + new CommandParameterInfo("userId", int.class); + doorLocksetUserTypeCommandParams.put("userId", doorLocksetUserTypeuserIdCommandParameterInfo); + + CommandParameterInfo doorLocksetUserTypeuserTypeCommandParameterInfo = + new CommandParameterInfo("userType", int.class); + doorLocksetUserTypeCommandParams.put( + "userType", doorLocksetUserTypeuserTypeCommandParameterInfo); + + // Populate commands + CommandInfo doorLocksetUserTypeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .setUserType( + (ChipClusters.DoorLockCluster.SetUserTypeResponseCallback) callback, + (Integer) commandArguments.get("userId"), + (Integer) commandArguments.get("userType")); + }, + () -> new DelegatedSetUserTypeResponseCallback(), + doorLocksetUserTypeCommandParams); + doorLockClusterCommandInfoMap.put("setUserType", doorLocksetUserTypeCommandInfo); + Map doorLocksetWeekdayScheduleCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLocksetWeekdaySchedulescheduleIdCommandParameterInfo = + new CommandParameterInfo("scheduleId", int.class); + doorLocksetWeekdayScheduleCommandParams.put( + "scheduleId", doorLocksetWeekdaySchedulescheduleIdCommandParameterInfo); + + CommandParameterInfo doorLocksetWeekdayScheduleuserIdCommandParameterInfo = + new CommandParameterInfo("userId", int.class); + doorLocksetWeekdayScheduleCommandParams.put( + "userId", doorLocksetWeekdayScheduleuserIdCommandParameterInfo); + + CommandParameterInfo doorLocksetWeekdayScheduledaysMaskCommandParameterInfo = + new CommandParameterInfo("daysMask", int.class); + doorLocksetWeekdayScheduleCommandParams.put( + "daysMask", doorLocksetWeekdayScheduledaysMaskCommandParameterInfo); + + CommandParameterInfo doorLocksetWeekdaySchedulestartHourCommandParameterInfo = + new CommandParameterInfo("startHour", int.class); + doorLocksetWeekdayScheduleCommandParams.put( + "startHour", doorLocksetWeekdaySchedulestartHourCommandParameterInfo); + + CommandParameterInfo doorLocksetWeekdaySchedulestartMinuteCommandParameterInfo = + new CommandParameterInfo("startMinute", int.class); + doorLocksetWeekdayScheduleCommandParams.put( + "startMinute", doorLocksetWeekdaySchedulestartMinuteCommandParameterInfo); + + CommandParameterInfo doorLocksetWeekdayScheduleendHourCommandParameterInfo = + new CommandParameterInfo("endHour", int.class); + doorLocksetWeekdayScheduleCommandParams.put( + "endHour", doorLocksetWeekdayScheduleendHourCommandParameterInfo); + + CommandParameterInfo doorLocksetWeekdayScheduleendMinuteCommandParameterInfo = + new CommandParameterInfo("endMinute", int.class); + doorLocksetWeekdayScheduleCommandParams.put( + "endMinute", doorLocksetWeekdayScheduleendMinuteCommandParameterInfo); + + // Populate commands + CommandInfo doorLocksetWeekdayScheduleCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .setWeekdaySchedule( + (ChipClusters.DoorLockCluster.SetWeekdayScheduleResponseCallback) callback, + (Integer) commandArguments.get("scheduleId"), + (Integer) commandArguments.get("userId"), + (Integer) commandArguments.get("daysMask"), + (Integer) commandArguments.get("startHour"), + (Integer) commandArguments.get("startMinute"), + (Integer) commandArguments.get("endHour"), + (Integer) commandArguments.get("endMinute")); + }, + () -> new DelegatedSetWeekdayScheduleResponseCallback(), + doorLocksetWeekdayScheduleCommandParams); + doorLockClusterCommandInfoMap.put("setWeekdaySchedule", doorLocksetWeekdayScheduleCommandInfo); + Map doorLocksetYeardayScheduleCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLocksetYeardaySchedulescheduleIdCommandParameterInfo = + new CommandParameterInfo("scheduleId", int.class); + doorLocksetYeardayScheduleCommandParams.put( + "scheduleId", doorLocksetYeardaySchedulescheduleIdCommandParameterInfo); + + CommandParameterInfo doorLocksetYeardayScheduleuserIdCommandParameterInfo = + new CommandParameterInfo("userId", int.class); + doorLocksetYeardayScheduleCommandParams.put( + "userId", doorLocksetYeardayScheduleuserIdCommandParameterInfo); + + CommandParameterInfo doorLocksetYeardaySchedulelocalStartTimeCommandParameterInfo = + new CommandParameterInfo("localStartTime", long.class); + doorLocksetYeardayScheduleCommandParams.put( + "localStartTime", doorLocksetYeardaySchedulelocalStartTimeCommandParameterInfo); + + CommandParameterInfo doorLocksetYeardaySchedulelocalEndTimeCommandParameterInfo = + new CommandParameterInfo("localEndTime", long.class); + doorLocksetYeardayScheduleCommandParams.put( + "localEndTime", doorLocksetYeardaySchedulelocalEndTimeCommandParameterInfo); + + // Populate commands + CommandInfo doorLocksetYeardayScheduleCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .setYeardaySchedule( + (ChipClusters.DoorLockCluster.SetYeardayScheduleResponseCallback) callback, + (Integer) commandArguments.get("scheduleId"), + (Integer) commandArguments.get("userId"), + (Long) commandArguments.get("localStartTime"), + (Long) commandArguments.get("localEndTime")); + }, + () -> new DelegatedSetYeardayScheduleResponseCallback(), + doorLocksetYeardayScheduleCommandParams); + doorLockClusterCommandInfoMap.put("setYeardaySchedule", doorLocksetYeardayScheduleCommandInfo); + Map doorLockunlockDoorCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLockunlockDoorpinCommandParameterInfo = + new CommandParameterInfo("pin", byte[].class); + doorLockunlockDoorCommandParams.put("pin", doorLockunlockDoorpinCommandParameterInfo); + + // Populate commands + CommandInfo doorLockunlockDoorCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .unlockDoor( + (ChipClusters.DoorLockCluster.UnlockDoorResponseCallback) callback, + (byte[]) commandArguments.get("pin")); + }, + () -> new DelegatedUnlockDoorResponseCallback(), + doorLockunlockDoorCommandParams); + doorLockClusterCommandInfoMap.put("unlockDoor", doorLockunlockDoorCommandInfo); + Map doorLockunlockWithTimeoutCommandParams = + new LinkedHashMap(); + CommandParameterInfo doorLockunlockWithTimeouttimeoutInSecondsCommandParameterInfo = + new CommandParameterInfo("timeoutInSeconds", int.class); + doorLockunlockWithTimeoutCommandParams.put( + "timeoutInSeconds", doorLockunlockWithTimeouttimeoutInSecondsCommandParameterInfo); + + CommandParameterInfo doorLockunlockWithTimeoutpinCommandParameterInfo = + new CommandParameterInfo("pin", byte[].class); + doorLockunlockWithTimeoutCommandParams.put( + "pin", doorLockunlockWithTimeoutpinCommandParameterInfo); + + // Populate commands + CommandInfo doorLockunlockWithTimeoutCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .unlockWithTimeout( + (ChipClusters.DoorLockCluster.UnlockWithTimeoutResponseCallback) callback, + (Integer) commandArguments.get("timeoutInSeconds"), + (byte[]) commandArguments.get("pin")); + }, + () -> new DelegatedUnlockWithTimeoutResponseCallback(), + doorLockunlockWithTimeoutCommandParams); + doorLockClusterCommandInfoMap.put("unlockWithTimeout", doorLockunlockWithTimeoutCommandInfo); + // Populate cluster + ClusterInfo doorLockClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.DoorLockCluster(ptr, endpointId), + doorLockClusterCommandInfoMap); + clusterMap.put("doorLock", doorLockClusterInfo); + Map electricalMeasurementClusterCommandInfoMap = new LinkedHashMap<>(); + // Populate cluster + ClusterInfo electricalMeasurementClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.ElectricalMeasurementCluster(ptr, endpointId), + electricalMeasurementClusterCommandInfoMap); + clusterMap.put("electricalMeasurement", electricalMeasurementClusterInfo); + Map ethernetNetworkDiagnosticsClusterCommandInfoMap = + new LinkedHashMap<>(); + Map ethernetNetworkDiagnosticsresetCountsCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo ethernetNetworkDiagnosticsresetCountsCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.EthernetNetworkDiagnosticsCluster) cluster) + .resetCounts((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + ethernetNetworkDiagnosticsresetCountsCommandParams); + ethernetNetworkDiagnosticsClusterCommandInfoMap.put( + "resetCounts", ethernetNetworkDiagnosticsresetCountsCommandInfo); + // Populate cluster + ClusterInfo ethernetNetworkDiagnosticsClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> + new ChipClusters.EthernetNetworkDiagnosticsCluster(ptr, endpointId), + ethernetNetworkDiagnosticsClusterCommandInfoMap); + clusterMap.put("ethernetNetworkDiagnostics", ethernetNetworkDiagnosticsClusterInfo); + Map fixedLabelClusterCommandInfoMap = new LinkedHashMap<>(); + // Populate cluster + ClusterInfo fixedLabelClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.FixedLabelCluster(ptr, endpointId), + fixedLabelClusterCommandInfoMap); + clusterMap.put("fixedLabel", fixedLabelClusterInfo); + Map flowMeasurementClusterCommandInfoMap = new LinkedHashMap<>(); + // Populate cluster + ClusterInfo flowMeasurementClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.FlowMeasurementCluster(ptr, endpointId), + flowMeasurementClusterCommandInfoMap); + clusterMap.put("flowMeasurement", flowMeasurementClusterInfo); + Map generalCommissioningClusterCommandInfoMap = new LinkedHashMap<>(); + Map generalCommissioningarmFailSafeCommandParams = + new LinkedHashMap(); + CommandParameterInfo generalCommissioningarmFailSafeexpiryLengthSecondsCommandParameterInfo = + new CommandParameterInfo("expiryLengthSeconds", int.class); + generalCommissioningarmFailSafeCommandParams.put( + "expiryLengthSeconds", + generalCommissioningarmFailSafeexpiryLengthSecondsCommandParameterInfo); + + CommandParameterInfo generalCommissioningarmFailSafebreadcrumbCommandParameterInfo = + new CommandParameterInfo("breadcrumb", long.class); + generalCommissioningarmFailSafeCommandParams.put( + "breadcrumb", generalCommissioningarmFailSafebreadcrumbCommandParameterInfo); + + CommandParameterInfo generalCommissioningarmFailSafetimeoutMsCommandParameterInfo = + new CommandParameterInfo("timeoutMs", long.class); + generalCommissioningarmFailSafeCommandParams.put( + "timeoutMs", generalCommissioningarmFailSafetimeoutMsCommandParameterInfo); + + // Populate commands + CommandInfo generalCommissioningarmFailSafeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GeneralCommissioningCluster) cluster) + .armFailSafe( + (ChipClusters.GeneralCommissioningCluster.ArmFailSafeResponseCallback) + callback, + (Integer) commandArguments.get("expiryLengthSeconds"), + (Long) commandArguments.get("breadcrumb"), + (Long) commandArguments.get("timeoutMs")); + }, + () -> new DelegatedArmFailSafeResponseCallback(), + generalCommissioningarmFailSafeCommandParams); + generalCommissioningClusterCommandInfoMap.put( + "armFailSafe", generalCommissioningarmFailSafeCommandInfo); + Map generalCommissioningcommissioningCompleteCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo generalCommissioningcommissioningCompleteCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GeneralCommissioningCluster) cluster) + .commissioningComplete( + (ChipClusters.GeneralCommissioningCluster + .CommissioningCompleteResponseCallback) + callback); + }, + () -> new DelegatedCommissioningCompleteResponseCallback(), + generalCommissioningcommissioningCompleteCommandParams); + generalCommissioningClusterCommandInfoMap.put( + "commissioningComplete", generalCommissioningcommissioningCompleteCommandInfo); + Map generalCommissioningsetRegulatoryConfigCommandParams = + new LinkedHashMap(); + CommandParameterInfo generalCommissioningsetRegulatoryConfiglocationCommandParameterInfo = + new CommandParameterInfo("location", int.class); + generalCommissioningsetRegulatoryConfigCommandParams.put( + "location", generalCommissioningsetRegulatoryConfiglocationCommandParameterInfo); + + CommandParameterInfo generalCommissioningsetRegulatoryConfigcountryCodeCommandParameterInfo = + new CommandParameterInfo("countryCode", String.class); + generalCommissioningsetRegulatoryConfigCommandParams.put( + "countryCode", generalCommissioningsetRegulatoryConfigcountryCodeCommandParameterInfo); + + CommandParameterInfo generalCommissioningsetRegulatoryConfigbreadcrumbCommandParameterInfo = + new CommandParameterInfo("breadcrumb", long.class); + generalCommissioningsetRegulatoryConfigCommandParams.put( + "breadcrumb", generalCommissioningsetRegulatoryConfigbreadcrumbCommandParameterInfo); + + CommandParameterInfo generalCommissioningsetRegulatoryConfigtimeoutMsCommandParameterInfo = + new CommandParameterInfo("timeoutMs", long.class); + generalCommissioningsetRegulatoryConfigCommandParams.put( + "timeoutMs", generalCommissioningsetRegulatoryConfigtimeoutMsCommandParameterInfo); + + // Populate commands + CommandInfo generalCommissioningsetRegulatoryConfigCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GeneralCommissioningCluster) cluster) + .setRegulatoryConfig( + (ChipClusters.GeneralCommissioningCluster.SetRegulatoryConfigResponseCallback) + callback, + (Integer) commandArguments.get("location"), + (String) commandArguments.get("countryCode"), + (Long) commandArguments.get("breadcrumb"), + (Long) commandArguments.get("timeoutMs")); + }, + () -> new DelegatedSetRegulatoryConfigResponseCallback(), + generalCommissioningsetRegulatoryConfigCommandParams); + generalCommissioningClusterCommandInfoMap.put( + "setRegulatoryConfig", generalCommissioningsetRegulatoryConfigCommandInfo); + // Populate cluster + ClusterInfo generalCommissioningClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.GeneralCommissioningCluster(ptr, endpointId), + generalCommissioningClusterCommandInfoMap); + clusterMap.put("generalCommissioning", generalCommissioningClusterInfo); + Map generalDiagnosticsClusterCommandInfoMap = new LinkedHashMap<>(); + // Populate cluster + ClusterInfo generalDiagnosticsClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.GeneralDiagnosticsCluster(ptr, endpointId), + generalDiagnosticsClusterCommandInfoMap); + clusterMap.put("generalDiagnostics", generalDiagnosticsClusterInfo); + Map groupKeyManagementClusterCommandInfoMap = new LinkedHashMap<>(); + // Populate cluster + ClusterInfo groupKeyManagementClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.GroupKeyManagementCluster(ptr, endpointId), + groupKeyManagementClusterCommandInfoMap); + clusterMap.put("groupKeyManagement", groupKeyManagementClusterInfo); + Map groupsClusterCommandInfoMap = new LinkedHashMap<>(); + Map groupsaddGroupCommandParams = + new LinkedHashMap(); + CommandParameterInfo groupsaddGroupgroupIdCommandParameterInfo = + new CommandParameterInfo("groupId", int.class); + groupsaddGroupCommandParams.put("groupId", groupsaddGroupgroupIdCommandParameterInfo); + + CommandParameterInfo groupsaddGroupgroupNameCommandParameterInfo = + new CommandParameterInfo("groupName", String.class); + groupsaddGroupCommandParams.put("groupName", groupsaddGroupgroupNameCommandParameterInfo); + + // Populate commands + CommandInfo groupsaddGroupCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GroupsCluster) cluster) + .addGroup( + (ChipClusters.GroupsCluster.AddGroupResponseCallback) callback, + (Integer) commandArguments.get("groupId"), + (String) commandArguments.get("groupName")); + }, + () -> new DelegatedAddGroupResponseCallback(), + groupsaddGroupCommandParams); + groupsClusterCommandInfoMap.put("addGroup", groupsaddGroupCommandInfo); + Map groupsaddGroupIfIdentifyingCommandParams = + new LinkedHashMap(); + CommandParameterInfo groupsaddGroupIfIdentifyinggroupIdCommandParameterInfo = + new CommandParameterInfo("groupId", int.class); + groupsaddGroupIfIdentifyingCommandParams.put( + "groupId", groupsaddGroupIfIdentifyinggroupIdCommandParameterInfo); + + CommandParameterInfo groupsaddGroupIfIdentifyinggroupNameCommandParameterInfo = + new CommandParameterInfo("groupName", String.class); + groupsaddGroupIfIdentifyingCommandParams.put( + "groupName", groupsaddGroupIfIdentifyinggroupNameCommandParameterInfo); + + // Populate commands + CommandInfo groupsaddGroupIfIdentifyingCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GroupsCluster) cluster) + .addGroupIfIdentifying( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("groupId"), + (String) commandArguments.get("groupName")); + }, + () -> new DelegatedDefaultClusterCallback(), + groupsaddGroupIfIdentifyingCommandParams); + groupsClusterCommandInfoMap.put( + "addGroupIfIdentifying", groupsaddGroupIfIdentifyingCommandInfo); + Map groupsgetGroupMembershipCommandParams = + new LinkedHashMap(); + CommandParameterInfo groupsgetGroupMembershipgroupCountCommandParameterInfo = + new CommandParameterInfo("groupCount", int.class); + groupsgetGroupMembershipCommandParams.put( + "groupCount", groupsgetGroupMembershipgroupCountCommandParameterInfo); + + CommandParameterInfo groupsgetGroupMembershipgroupListCommandParameterInfo = + new CommandParameterInfo("groupList", int.class); + groupsgetGroupMembershipCommandParams.put( + "groupList", groupsgetGroupMembershipgroupListCommandParameterInfo); + + // Populate commands + CommandInfo groupsgetGroupMembershipCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GroupsCluster) cluster) + .getGroupMembership( + (ChipClusters.GroupsCluster.GetGroupMembershipResponseCallback) callback, + (Integer) commandArguments.get("groupCount"), + (Integer) commandArguments.get("groupList")); + }, + () -> new DelegatedGetGroupMembershipResponseCallback(), + groupsgetGroupMembershipCommandParams); + groupsClusterCommandInfoMap.put("getGroupMembership", groupsgetGroupMembershipCommandInfo); + Map groupsremoveAllGroupsCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo groupsremoveAllGroupsCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GroupsCluster) cluster) + .removeAllGroups((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + groupsremoveAllGroupsCommandParams); + groupsClusterCommandInfoMap.put("removeAllGroups", groupsremoveAllGroupsCommandInfo); + Map groupsremoveGroupCommandParams = + new LinkedHashMap(); + CommandParameterInfo groupsremoveGroupgroupIdCommandParameterInfo = + new CommandParameterInfo("groupId", int.class); + groupsremoveGroupCommandParams.put("groupId", groupsremoveGroupgroupIdCommandParameterInfo); + + // Populate commands + CommandInfo groupsremoveGroupCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GroupsCluster) cluster) + .removeGroup( + (ChipClusters.GroupsCluster.RemoveGroupResponseCallback) callback, + (Integer) commandArguments.get("groupId")); + }, + () -> new DelegatedRemoveGroupResponseCallback(), + groupsremoveGroupCommandParams); + groupsClusterCommandInfoMap.put("removeGroup", groupsremoveGroupCommandInfo); + Map groupsviewGroupCommandParams = + new LinkedHashMap(); + CommandParameterInfo groupsviewGroupgroupIdCommandParameterInfo = + new CommandParameterInfo("groupId", int.class); + groupsviewGroupCommandParams.put("groupId", groupsviewGroupgroupIdCommandParameterInfo); + + // Populate commands + CommandInfo groupsviewGroupCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GroupsCluster) cluster) + .viewGroup( + (ChipClusters.GroupsCluster.ViewGroupResponseCallback) callback, + (Integer) commandArguments.get("groupId")); + }, + () -> new DelegatedViewGroupResponseCallback(), + groupsviewGroupCommandParams); + groupsClusterCommandInfoMap.put("viewGroup", groupsviewGroupCommandInfo); + // Populate cluster + ClusterInfo groupsClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.GroupsCluster(ptr, endpointId), + groupsClusterCommandInfoMap); + clusterMap.put("groups", groupsClusterInfo); + Map identifyClusterCommandInfoMap = new LinkedHashMap<>(); + Map identifyidentifyCommandParams = + new LinkedHashMap(); + CommandParameterInfo identifyidentifyidentifyTimeCommandParameterInfo = + new CommandParameterInfo("identifyTime", int.class); + identifyidentifyCommandParams.put( + "identifyTime", identifyidentifyidentifyTimeCommandParameterInfo); + + // Populate commands + CommandInfo identifyidentifyCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.IdentifyCluster) cluster) + .identify( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("identifyTime")); + }, + () -> new DelegatedDefaultClusterCallback(), + identifyidentifyCommandParams); + identifyClusterCommandInfoMap.put("identify", identifyidentifyCommandInfo); + Map identifyidentifyQueryCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo identifyidentifyQueryCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.IdentifyCluster) cluster) + .identifyQuery( + (ChipClusters.IdentifyCluster.IdentifyQueryResponseCallback) callback); + }, + () -> new DelegatedIdentifyQueryResponseCallback(), + identifyidentifyQueryCommandParams); + identifyClusterCommandInfoMap.put("identifyQuery", identifyidentifyQueryCommandInfo); + Map identifytriggerEffectCommandParams = + new LinkedHashMap(); + CommandParameterInfo identifytriggerEffecteffectIdentifierCommandParameterInfo = + new CommandParameterInfo("effectIdentifier", int.class); + identifytriggerEffectCommandParams.put( + "effectIdentifier", identifytriggerEffecteffectIdentifierCommandParameterInfo); + + CommandParameterInfo identifytriggerEffecteffectVariantCommandParameterInfo = + new CommandParameterInfo("effectVariant", int.class); + identifytriggerEffectCommandParams.put( + "effectVariant", identifytriggerEffecteffectVariantCommandParameterInfo); + + // Populate commands + CommandInfo identifytriggerEffectCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.IdentifyCluster) cluster) + .triggerEffect( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("effectIdentifier"), + (Integer) commandArguments.get("effectVariant")); + }, + () -> new DelegatedDefaultClusterCallback(), + identifytriggerEffectCommandParams); + identifyClusterCommandInfoMap.put("triggerEffect", identifytriggerEffectCommandInfo); + // Populate cluster + ClusterInfo identifyClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.IdentifyCluster(ptr, endpointId), + identifyClusterCommandInfoMap); + clusterMap.put("identify", identifyClusterInfo); + Map illuminanceMeasurementClusterCommandInfoMap = new LinkedHashMap<>(); + // Populate cluster + ClusterInfo illuminanceMeasurementClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.IlluminanceMeasurementCluster(ptr, endpointId), + illuminanceMeasurementClusterCommandInfoMap); + clusterMap.put("illuminanceMeasurement", illuminanceMeasurementClusterInfo); + Map keypadInputClusterCommandInfoMap = new LinkedHashMap<>(); + Map keypadInputsendKeyCommandParams = + new LinkedHashMap(); + CommandParameterInfo keypadInputsendKeykeyCodeCommandParameterInfo = + new CommandParameterInfo("keyCode", int.class); + keypadInputsendKeyCommandParams.put("keyCode", keypadInputsendKeykeyCodeCommandParameterInfo); + + // Populate commands + CommandInfo keypadInputsendKeyCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.KeypadInputCluster) cluster) + .sendKey( + (ChipClusters.KeypadInputCluster.SendKeyResponseCallback) callback, + (Integer) commandArguments.get("keyCode")); + }, + () -> new DelegatedSendKeyResponseCallback(), + keypadInputsendKeyCommandParams); + keypadInputClusterCommandInfoMap.put("sendKey", keypadInputsendKeyCommandInfo); + // Populate cluster + ClusterInfo keypadInputClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.KeypadInputCluster(ptr, endpointId), + keypadInputClusterCommandInfoMap); + clusterMap.put("keypadInput", keypadInputClusterInfo); + Map levelControlClusterCommandInfoMap = new LinkedHashMap<>(); + Map levelControlmoveCommandParams = + new LinkedHashMap(); + CommandParameterInfo levelControlmovemoveModeCommandParameterInfo = + new CommandParameterInfo("moveMode", int.class); + levelControlmoveCommandParams.put("moveMode", levelControlmovemoveModeCommandParameterInfo); + + CommandParameterInfo levelControlmoverateCommandParameterInfo = + new CommandParameterInfo("rate", int.class); + levelControlmoveCommandParams.put("rate", levelControlmoverateCommandParameterInfo); + + CommandParameterInfo levelControlmoveoptionMaskCommandParameterInfo = + new CommandParameterInfo("optionMask", int.class); + levelControlmoveCommandParams.put("optionMask", levelControlmoveoptionMaskCommandParameterInfo); + + CommandParameterInfo levelControlmoveoptionOverrideCommandParameterInfo = + new CommandParameterInfo("optionOverride", int.class); + levelControlmoveCommandParams.put( + "optionOverride", levelControlmoveoptionOverrideCommandParameterInfo); + + // Populate commands + CommandInfo levelControlmoveCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .move( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("moveMode"), + (Integer) commandArguments.get("rate"), + (Integer) commandArguments.get("optionMask"), + (Integer) commandArguments.get("optionOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + levelControlmoveCommandParams); + levelControlClusterCommandInfoMap.put("move", levelControlmoveCommandInfo); + Map levelControlmoveToLevelCommandParams = + new LinkedHashMap(); + CommandParameterInfo levelControlmoveToLevellevelCommandParameterInfo = + new CommandParameterInfo("level", int.class); + levelControlmoveToLevelCommandParams.put( + "level", levelControlmoveToLevellevelCommandParameterInfo); + + CommandParameterInfo levelControlmoveToLeveltransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + levelControlmoveToLevelCommandParams.put( + "transitionTime", levelControlmoveToLeveltransitionTimeCommandParameterInfo); + + CommandParameterInfo levelControlmoveToLeveloptionMaskCommandParameterInfo = + new CommandParameterInfo("optionMask", int.class); + levelControlmoveToLevelCommandParams.put( + "optionMask", levelControlmoveToLeveloptionMaskCommandParameterInfo); + + CommandParameterInfo levelControlmoveToLeveloptionOverrideCommandParameterInfo = + new CommandParameterInfo("optionOverride", int.class); + levelControlmoveToLevelCommandParams.put( + "optionOverride", levelControlmoveToLeveloptionOverrideCommandParameterInfo); + + // Populate commands + CommandInfo levelControlmoveToLevelCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .moveToLevel( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("level"), + (Integer) commandArguments.get("transitionTime"), + (Integer) commandArguments.get("optionMask"), + (Integer) commandArguments.get("optionOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + levelControlmoveToLevelCommandParams); + levelControlClusterCommandInfoMap.put("moveToLevel", levelControlmoveToLevelCommandInfo); + Map levelControlmoveToLevelWithOnOffCommandParams = + new LinkedHashMap(); + CommandParameterInfo levelControlmoveToLevelWithOnOfflevelCommandParameterInfo = + new CommandParameterInfo("level", int.class); + levelControlmoveToLevelWithOnOffCommandParams.put( + "level", levelControlmoveToLevelWithOnOfflevelCommandParameterInfo); + + CommandParameterInfo levelControlmoveToLevelWithOnOfftransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + levelControlmoveToLevelWithOnOffCommandParams.put( + "transitionTime", levelControlmoveToLevelWithOnOfftransitionTimeCommandParameterInfo); + + // Populate commands + CommandInfo levelControlmoveToLevelWithOnOffCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .moveToLevelWithOnOff( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("level"), + (Integer) commandArguments.get("transitionTime")); + }, + () -> new DelegatedDefaultClusterCallback(), + levelControlmoveToLevelWithOnOffCommandParams); + levelControlClusterCommandInfoMap.put( + "moveToLevelWithOnOff", levelControlmoveToLevelWithOnOffCommandInfo); + Map levelControlmoveWithOnOffCommandParams = + new LinkedHashMap(); + CommandParameterInfo levelControlmoveWithOnOffmoveModeCommandParameterInfo = + new CommandParameterInfo("moveMode", int.class); + levelControlmoveWithOnOffCommandParams.put( + "moveMode", levelControlmoveWithOnOffmoveModeCommandParameterInfo); + + CommandParameterInfo levelControlmoveWithOnOffrateCommandParameterInfo = + new CommandParameterInfo("rate", int.class); + levelControlmoveWithOnOffCommandParams.put( + "rate", levelControlmoveWithOnOffrateCommandParameterInfo); + + // Populate commands + CommandInfo levelControlmoveWithOnOffCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .moveWithOnOff( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("moveMode"), + (Integer) commandArguments.get("rate")); + }, + () -> new DelegatedDefaultClusterCallback(), + levelControlmoveWithOnOffCommandParams); + levelControlClusterCommandInfoMap.put("moveWithOnOff", levelControlmoveWithOnOffCommandInfo); + Map levelControlstepCommandParams = + new LinkedHashMap(); + CommandParameterInfo levelControlstepstepModeCommandParameterInfo = + new CommandParameterInfo("stepMode", int.class); + levelControlstepCommandParams.put("stepMode", levelControlstepstepModeCommandParameterInfo); + + CommandParameterInfo levelControlstepstepSizeCommandParameterInfo = + new CommandParameterInfo("stepSize", int.class); + levelControlstepCommandParams.put("stepSize", levelControlstepstepSizeCommandParameterInfo); + + CommandParameterInfo levelControlsteptransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + levelControlstepCommandParams.put( + "transitionTime", levelControlsteptransitionTimeCommandParameterInfo); + + CommandParameterInfo levelControlstepoptionMaskCommandParameterInfo = + new CommandParameterInfo("optionMask", int.class); + levelControlstepCommandParams.put("optionMask", levelControlstepoptionMaskCommandParameterInfo); + + CommandParameterInfo levelControlstepoptionOverrideCommandParameterInfo = + new CommandParameterInfo("optionOverride", int.class); + levelControlstepCommandParams.put( + "optionOverride", levelControlstepoptionOverrideCommandParameterInfo); + + // Populate commands + CommandInfo levelControlstepCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .step( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("stepMode"), + (Integer) commandArguments.get("stepSize"), + (Integer) commandArguments.get("transitionTime"), + (Integer) commandArguments.get("optionMask"), + (Integer) commandArguments.get("optionOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + levelControlstepCommandParams); + levelControlClusterCommandInfoMap.put("step", levelControlstepCommandInfo); + Map levelControlstepWithOnOffCommandParams = + new LinkedHashMap(); + CommandParameterInfo levelControlstepWithOnOffstepModeCommandParameterInfo = + new CommandParameterInfo("stepMode", int.class); + levelControlstepWithOnOffCommandParams.put( + "stepMode", levelControlstepWithOnOffstepModeCommandParameterInfo); + + CommandParameterInfo levelControlstepWithOnOffstepSizeCommandParameterInfo = + new CommandParameterInfo("stepSize", int.class); + levelControlstepWithOnOffCommandParams.put( + "stepSize", levelControlstepWithOnOffstepSizeCommandParameterInfo); + + CommandParameterInfo levelControlstepWithOnOfftransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + levelControlstepWithOnOffCommandParams.put( + "transitionTime", levelControlstepWithOnOfftransitionTimeCommandParameterInfo); + + // Populate commands + CommandInfo levelControlstepWithOnOffCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .stepWithOnOff( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("stepMode"), + (Integer) commandArguments.get("stepSize"), + (Integer) commandArguments.get("transitionTime")); + }, + () -> new DelegatedDefaultClusterCallback(), + levelControlstepWithOnOffCommandParams); + levelControlClusterCommandInfoMap.put("stepWithOnOff", levelControlstepWithOnOffCommandInfo); + Map levelControlstopCommandParams = + new LinkedHashMap(); + CommandParameterInfo levelControlstopoptionMaskCommandParameterInfo = + new CommandParameterInfo("optionMask", int.class); + levelControlstopCommandParams.put("optionMask", levelControlstopoptionMaskCommandParameterInfo); + + CommandParameterInfo levelControlstopoptionOverrideCommandParameterInfo = + new CommandParameterInfo("optionOverride", int.class); + levelControlstopCommandParams.put( + "optionOverride", levelControlstopoptionOverrideCommandParameterInfo); + + // Populate commands + CommandInfo levelControlstopCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .stop( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("optionMask"), + (Integer) commandArguments.get("optionOverride")); + }, + () -> new DelegatedDefaultClusterCallback(), + levelControlstopCommandParams); + levelControlClusterCommandInfoMap.put("stop", levelControlstopCommandInfo); + Map levelControlstopWithOnOffCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo levelControlstopWithOnOffCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .stopWithOnOff((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + levelControlstopWithOnOffCommandParams); + levelControlClusterCommandInfoMap.put("stopWithOnOff", levelControlstopWithOnOffCommandInfo); + // Populate cluster + ClusterInfo levelControlClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.LevelControlCluster(ptr, endpointId), + levelControlClusterCommandInfoMap); + clusterMap.put("levelControl", levelControlClusterInfo); + Map lowPowerClusterCommandInfoMap = new LinkedHashMap<>(); + Map lowPowersleepCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo lowPowersleepCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LowPowerCluster) cluster).sleep((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + lowPowersleepCommandParams); + lowPowerClusterCommandInfoMap.put("sleep", lowPowersleepCommandInfo); + // Populate cluster + ClusterInfo lowPowerClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.LowPowerCluster(ptr, endpointId), + lowPowerClusterCommandInfoMap); + clusterMap.put("lowPower", lowPowerClusterInfo); + Map mediaInputClusterCommandInfoMap = new LinkedHashMap<>(); + Map mediaInputhideInputStatusCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo mediaInputhideInputStatusCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaInputCluster) cluster) + .hideInputStatus((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + mediaInputhideInputStatusCommandParams); + mediaInputClusterCommandInfoMap.put("hideInputStatus", mediaInputhideInputStatusCommandInfo); + Map mediaInputrenameInputCommandParams = + new LinkedHashMap(); + CommandParameterInfo mediaInputrenameInputindexCommandParameterInfo = + new CommandParameterInfo("index", int.class); + mediaInputrenameInputCommandParams.put("index", mediaInputrenameInputindexCommandParameterInfo); + + CommandParameterInfo mediaInputrenameInputnameCommandParameterInfo = + new CommandParameterInfo("name", String.class); + mediaInputrenameInputCommandParams.put("name", mediaInputrenameInputnameCommandParameterInfo); + + // Populate commands + CommandInfo mediaInputrenameInputCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaInputCluster) cluster) + .renameInput( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("index"), + (String) commandArguments.get("name")); + }, + () -> new DelegatedDefaultClusterCallback(), + mediaInputrenameInputCommandParams); + mediaInputClusterCommandInfoMap.put("renameInput", mediaInputrenameInputCommandInfo); + Map mediaInputselectInputCommandParams = + new LinkedHashMap(); + CommandParameterInfo mediaInputselectInputindexCommandParameterInfo = + new CommandParameterInfo("index", int.class); + mediaInputselectInputCommandParams.put("index", mediaInputselectInputindexCommandParameterInfo); + + // Populate commands + CommandInfo mediaInputselectInputCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaInputCluster) cluster) + .selectInput( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("index")); + }, + () -> new DelegatedDefaultClusterCallback(), + mediaInputselectInputCommandParams); + mediaInputClusterCommandInfoMap.put("selectInput", mediaInputselectInputCommandInfo); + Map mediaInputshowInputStatusCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo mediaInputshowInputStatusCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaInputCluster) cluster) + .showInputStatus((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + mediaInputshowInputStatusCommandParams); + mediaInputClusterCommandInfoMap.put("showInputStatus", mediaInputshowInputStatusCommandInfo); + // Populate cluster + ClusterInfo mediaInputClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.MediaInputCluster(ptr, endpointId), + mediaInputClusterCommandInfoMap); + clusterMap.put("mediaInput", mediaInputClusterInfo); + Map mediaPlaybackClusterCommandInfoMap = new LinkedHashMap<>(); + Map mediaPlaybackmediaFastForwardCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo mediaPlaybackmediaFastForwardCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .mediaFastForward( + (ChipClusters.MediaPlaybackCluster.MediaFastForwardResponseCallback) + callback); + }, + () -> new DelegatedMediaFastForwardResponseCallback(), + mediaPlaybackmediaFastForwardCommandParams); + mediaPlaybackClusterCommandInfoMap.put( + "mediaFastForward", mediaPlaybackmediaFastForwardCommandInfo); + Map mediaPlaybackmediaNextCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo mediaPlaybackmediaNextCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .mediaNext( + (ChipClusters.MediaPlaybackCluster.MediaNextResponseCallback) callback); + }, + () -> new DelegatedMediaNextResponseCallback(), + mediaPlaybackmediaNextCommandParams); + mediaPlaybackClusterCommandInfoMap.put("mediaNext", mediaPlaybackmediaNextCommandInfo); + Map mediaPlaybackmediaPauseCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo mediaPlaybackmediaPauseCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .mediaPause( + (ChipClusters.MediaPlaybackCluster.MediaPauseResponseCallback) callback); + }, + () -> new DelegatedMediaPauseResponseCallback(), + mediaPlaybackmediaPauseCommandParams); + mediaPlaybackClusterCommandInfoMap.put("mediaPause", mediaPlaybackmediaPauseCommandInfo); + Map mediaPlaybackmediaPlayCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo mediaPlaybackmediaPlayCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .mediaPlay( + (ChipClusters.MediaPlaybackCluster.MediaPlayResponseCallback) callback); + }, + () -> new DelegatedMediaPlayResponseCallback(), + mediaPlaybackmediaPlayCommandParams); + mediaPlaybackClusterCommandInfoMap.put("mediaPlay", mediaPlaybackmediaPlayCommandInfo); + Map mediaPlaybackmediaPreviousCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo mediaPlaybackmediaPreviousCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .mediaPrevious( + (ChipClusters.MediaPlaybackCluster.MediaPreviousResponseCallback) callback); + }, + () -> new DelegatedMediaPreviousResponseCallback(), + mediaPlaybackmediaPreviousCommandParams); + mediaPlaybackClusterCommandInfoMap.put("mediaPrevious", mediaPlaybackmediaPreviousCommandInfo); + Map mediaPlaybackmediaRewindCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo mediaPlaybackmediaRewindCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .mediaRewind( + (ChipClusters.MediaPlaybackCluster.MediaRewindResponseCallback) callback); + }, + () -> new DelegatedMediaRewindResponseCallback(), + mediaPlaybackmediaRewindCommandParams); + mediaPlaybackClusterCommandInfoMap.put("mediaRewind", mediaPlaybackmediaRewindCommandInfo); + Map mediaPlaybackmediaSeekCommandParams = + new LinkedHashMap(); + CommandParameterInfo mediaPlaybackmediaSeekpositionCommandParameterInfo = + new CommandParameterInfo("position", long.class); + mediaPlaybackmediaSeekCommandParams.put( + "position", mediaPlaybackmediaSeekpositionCommandParameterInfo); + + // Populate commands + CommandInfo mediaPlaybackmediaSeekCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .mediaSeek( + (ChipClusters.MediaPlaybackCluster.MediaSeekResponseCallback) callback, + (Long) commandArguments.get("position")); + }, + () -> new DelegatedMediaSeekResponseCallback(), + mediaPlaybackmediaSeekCommandParams); + mediaPlaybackClusterCommandInfoMap.put("mediaSeek", mediaPlaybackmediaSeekCommandInfo); + Map mediaPlaybackmediaSkipBackwardCommandParams = + new LinkedHashMap(); + CommandParameterInfo + mediaPlaybackmediaSkipBackwarddeltaPositionMillisecondsCommandParameterInfo = + new CommandParameterInfo("deltaPositionMilliseconds", long.class); + mediaPlaybackmediaSkipBackwardCommandParams.put( + "deltaPositionMilliseconds", + mediaPlaybackmediaSkipBackwarddeltaPositionMillisecondsCommandParameterInfo); + + // Populate commands + CommandInfo mediaPlaybackmediaSkipBackwardCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .mediaSkipBackward( + (ChipClusters.MediaPlaybackCluster.MediaSkipBackwardResponseCallback) + callback, + (Long) commandArguments.get("deltaPositionMilliseconds")); + }, + () -> new DelegatedMediaSkipBackwardResponseCallback(), + mediaPlaybackmediaSkipBackwardCommandParams); + mediaPlaybackClusterCommandInfoMap.put( + "mediaSkipBackward", mediaPlaybackmediaSkipBackwardCommandInfo); + Map mediaPlaybackmediaSkipForwardCommandParams = + new LinkedHashMap(); + CommandParameterInfo + mediaPlaybackmediaSkipForwarddeltaPositionMillisecondsCommandParameterInfo = + new CommandParameterInfo("deltaPositionMilliseconds", long.class); + mediaPlaybackmediaSkipForwardCommandParams.put( + "deltaPositionMilliseconds", + mediaPlaybackmediaSkipForwarddeltaPositionMillisecondsCommandParameterInfo); + + // Populate commands + CommandInfo mediaPlaybackmediaSkipForwardCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .mediaSkipForward( + (ChipClusters.MediaPlaybackCluster.MediaSkipForwardResponseCallback) callback, + (Long) commandArguments.get("deltaPositionMilliseconds")); + }, + () -> new DelegatedMediaSkipForwardResponseCallback(), + mediaPlaybackmediaSkipForwardCommandParams); + mediaPlaybackClusterCommandInfoMap.put( + "mediaSkipForward", mediaPlaybackmediaSkipForwardCommandInfo); + Map mediaPlaybackmediaStartOverCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo mediaPlaybackmediaStartOverCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .mediaStartOver( + (ChipClusters.MediaPlaybackCluster.MediaStartOverResponseCallback) callback); + }, + () -> new DelegatedMediaStartOverResponseCallback(), + mediaPlaybackmediaStartOverCommandParams); + mediaPlaybackClusterCommandInfoMap.put( + "mediaStartOver", mediaPlaybackmediaStartOverCommandInfo); + Map mediaPlaybackmediaStopCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo mediaPlaybackmediaStopCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .mediaStop( + (ChipClusters.MediaPlaybackCluster.MediaStopResponseCallback) callback); + }, + () -> new DelegatedMediaStopResponseCallback(), + mediaPlaybackmediaStopCommandParams); + mediaPlaybackClusterCommandInfoMap.put("mediaStop", mediaPlaybackmediaStopCommandInfo); + // Populate cluster + ClusterInfo mediaPlaybackClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.MediaPlaybackCluster(ptr, endpointId), + mediaPlaybackClusterCommandInfoMap); + clusterMap.put("mediaPlayback", mediaPlaybackClusterInfo); + Map modeSelectClusterCommandInfoMap = new LinkedHashMap<>(); + Map modeSelectchangeToModeCommandParams = + new LinkedHashMap(); + CommandParameterInfo modeSelectchangeToModenewModeCommandParameterInfo = + new CommandParameterInfo("newMode", int.class); + modeSelectchangeToModeCommandParams.put( + "newMode", modeSelectchangeToModenewModeCommandParameterInfo); + + // Populate commands + CommandInfo modeSelectchangeToModeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ModeSelectCluster) cluster) + .changeToMode( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("newMode")); + }, + () -> new DelegatedDefaultClusterCallback(), + modeSelectchangeToModeCommandParams); + modeSelectClusterCommandInfoMap.put("changeToMode", modeSelectchangeToModeCommandInfo); + // Populate cluster + ClusterInfo modeSelectClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.ModeSelectCluster(ptr, endpointId), + modeSelectClusterCommandInfoMap); + clusterMap.put("modeSelect", modeSelectClusterInfo); + Map networkCommissioningClusterCommandInfoMap = new LinkedHashMap<>(); + Map networkCommissioningaddThreadNetworkCommandParams = + new LinkedHashMap(); + CommandParameterInfo + networkCommissioningaddThreadNetworkoperationalDatasetCommandParameterInfo = + new CommandParameterInfo("operationalDataset", byte[].class); + networkCommissioningaddThreadNetworkCommandParams.put( + "operationalDataset", + networkCommissioningaddThreadNetworkoperationalDatasetCommandParameterInfo); + + CommandParameterInfo networkCommissioningaddThreadNetworkbreadcrumbCommandParameterInfo = + new CommandParameterInfo("breadcrumb", long.class); + networkCommissioningaddThreadNetworkCommandParams.put( + "breadcrumb", networkCommissioningaddThreadNetworkbreadcrumbCommandParameterInfo); + + CommandParameterInfo networkCommissioningaddThreadNetworktimeoutMsCommandParameterInfo = + new CommandParameterInfo("timeoutMs", long.class); + networkCommissioningaddThreadNetworkCommandParams.put( + "timeoutMs", networkCommissioningaddThreadNetworktimeoutMsCommandParameterInfo); + + // Populate commands + CommandInfo networkCommissioningaddThreadNetworkCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.NetworkCommissioningCluster) cluster) + .addThreadNetwork( + (ChipClusters.NetworkCommissioningCluster.AddThreadNetworkResponseCallback) + callback, + (byte[]) commandArguments.get("operationalDataset"), + (Long) commandArguments.get("breadcrumb"), + (Long) commandArguments.get("timeoutMs")); + }, + () -> new DelegatedAddThreadNetworkResponseCallback(), + networkCommissioningaddThreadNetworkCommandParams); + networkCommissioningClusterCommandInfoMap.put( + "addThreadNetwork", networkCommissioningaddThreadNetworkCommandInfo); + Map networkCommissioningaddWiFiNetworkCommandParams = + new LinkedHashMap(); + CommandParameterInfo networkCommissioningaddWiFiNetworkssidCommandParameterInfo = + new CommandParameterInfo("ssid", byte[].class); + networkCommissioningaddWiFiNetworkCommandParams.put( + "ssid", networkCommissioningaddWiFiNetworkssidCommandParameterInfo); + + CommandParameterInfo networkCommissioningaddWiFiNetworkcredentialsCommandParameterInfo = + new CommandParameterInfo("credentials", byte[].class); + networkCommissioningaddWiFiNetworkCommandParams.put( + "credentials", networkCommissioningaddWiFiNetworkcredentialsCommandParameterInfo); + + CommandParameterInfo networkCommissioningaddWiFiNetworkbreadcrumbCommandParameterInfo = + new CommandParameterInfo("breadcrumb", long.class); + networkCommissioningaddWiFiNetworkCommandParams.put( + "breadcrumb", networkCommissioningaddWiFiNetworkbreadcrumbCommandParameterInfo); + + CommandParameterInfo networkCommissioningaddWiFiNetworktimeoutMsCommandParameterInfo = + new CommandParameterInfo("timeoutMs", long.class); + networkCommissioningaddWiFiNetworkCommandParams.put( + "timeoutMs", networkCommissioningaddWiFiNetworktimeoutMsCommandParameterInfo); + + // Populate commands + CommandInfo networkCommissioningaddWiFiNetworkCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.NetworkCommissioningCluster) cluster) + .addWiFiNetwork( + (ChipClusters.NetworkCommissioningCluster.AddWiFiNetworkResponseCallback) + callback, + (byte[]) commandArguments.get("ssid"), + (byte[]) commandArguments.get("credentials"), + (Long) commandArguments.get("breadcrumb"), + (Long) commandArguments.get("timeoutMs")); + }, + () -> new DelegatedAddWiFiNetworkResponseCallback(), + networkCommissioningaddWiFiNetworkCommandParams); + networkCommissioningClusterCommandInfoMap.put( + "addWiFiNetwork", networkCommissioningaddWiFiNetworkCommandInfo); + Map networkCommissioningdisableNetworkCommandParams = + new LinkedHashMap(); + CommandParameterInfo networkCommissioningdisableNetworknetworkIDCommandParameterInfo = + new CommandParameterInfo("networkID", byte[].class); + networkCommissioningdisableNetworkCommandParams.put( + "networkID", networkCommissioningdisableNetworknetworkIDCommandParameterInfo); + + CommandParameterInfo networkCommissioningdisableNetworkbreadcrumbCommandParameterInfo = + new CommandParameterInfo("breadcrumb", long.class); + networkCommissioningdisableNetworkCommandParams.put( + "breadcrumb", networkCommissioningdisableNetworkbreadcrumbCommandParameterInfo); + + CommandParameterInfo networkCommissioningdisableNetworktimeoutMsCommandParameterInfo = + new CommandParameterInfo("timeoutMs", long.class); + networkCommissioningdisableNetworkCommandParams.put( + "timeoutMs", networkCommissioningdisableNetworktimeoutMsCommandParameterInfo); + + // Populate commands + CommandInfo networkCommissioningdisableNetworkCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.NetworkCommissioningCluster) cluster) + .disableNetwork( + (ChipClusters.NetworkCommissioningCluster.DisableNetworkResponseCallback) + callback, + (byte[]) commandArguments.get("networkID"), + (Long) commandArguments.get("breadcrumb"), + (Long) commandArguments.get("timeoutMs")); + }, + () -> new DelegatedDisableNetworkResponseCallback(), + networkCommissioningdisableNetworkCommandParams); + networkCommissioningClusterCommandInfoMap.put( + "disableNetwork", networkCommissioningdisableNetworkCommandInfo); + Map networkCommissioningenableNetworkCommandParams = + new LinkedHashMap(); + CommandParameterInfo networkCommissioningenableNetworknetworkIDCommandParameterInfo = + new CommandParameterInfo("networkID", byte[].class); + networkCommissioningenableNetworkCommandParams.put( + "networkID", networkCommissioningenableNetworknetworkIDCommandParameterInfo); + + CommandParameterInfo networkCommissioningenableNetworkbreadcrumbCommandParameterInfo = + new CommandParameterInfo("breadcrumb", long.class); + networkCommissioningenableNetworkCommandParams.put( + "breadcrumb", networkCommissioningenableNetworkbreadcrumbCommandParameterInfo); + + CommandParameterInfo networkCommissioningenableNetworktimeoutMsCommandParameterInfo = + new CommandParameterInfo("timeoutMs", long.class); + networkCommissioningenableNetworkCommandParams.put( + "timeoutMs", networkCommissioningenableNetworktimeoutMsCommandParameterInfo); + + // Populate commands + CommandInfo networkCommissioningenableNetworkCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.NetworkCommissioningCluster) cluster) + .enableNetwork( + (ChipClusters.NetworkCommissioningCluster.EnableNetworkResponseCallback) + callback, + (byte[]) commandArguments.get("networkID"), + (Long) commandArguments.get("breadcrumb"), + (Long) commandArguments.get("timeoutMs")); + }, + () -> new DelegatedEnableNetworkResponseCallback(), + networkCommissioningenableNetworkCommandParams); + networkCommissioningClusterCommandInfoMap.put( + "enableNetwork", networkCommissioningenableNetworkCommandInfo); + Map networkCommissioningremoveNetworkCommandParams = + new LinkedHashMap(); + CommandParameterInfo networkCommissioningremoveNetworknetworkIDCommandParameterInfo = + new CommandParameterInfo("networkID", byte[].class); + networkCommissioningremoveNetworkCommandParams.put( + "networkID", networkCommissioningremoveNetworknetworkIDCommandParameterInfo); + + CommandParameterInfo networkCommissioningremoveNetworkbreadcrumbCommandParameterInfo = + new CommandParameterInfo("breadcrumb", long.class); + networkCommissioningremoveNetworkCommandParams.put( + "breadcrumb", networkCommissioningremoveNetworkbreadcrumbCommandParameterInfo); + + CommandParameterInfo networkCommissioningremoveNetworktimeoutMsCommandParameterInfo = + new CommandParameterInfo("timeoutMs", long.class); + networkCommissioningremoveNetworkCommandParams.put( + "timeoutMs", networkCommissioningremoveNetworktimeoutMsCommandParameterInfo); + + // Populate commands + CommandInfo networkCommissioningremoveNetworkCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.NetworkCommissioningCluster) cluster) + .removeNetwork( + (ChipClusters.NetworkCommissioningCluster.RemoveNetworkResponseCallback) + callback, + (byte[]) commandArguments.get("networkID"), + (Long) commandArguments.get("breadcrumb"), + (Long) commandArguments.get("timeoutMs")); + }, + () -> new DelegatedRemoveNetworkResponseCallback(), + networkCommissioningremoveNetworkCommandParams); + networkCommissioningClusterCommandInfoMap.put( + "removeNetwork", networkCommissioningremoveNetworkCommandInfo); + Map networkCommissioningscanNetworksCommandParams = + new LinkedHashMap(); + CommandParameterInfo networkCommissioningscanNetworksssidCommandParameterInfo = + new CommandParameterInfo("ssid", byte[].class); + networkCommissioningscanNetworksCommandParams.put( + "ssid", networkCommissioningscanNetworksssidCommandParameterInfo); + + CommandParameterInfo networkCommissioningscanNetworksbreadcrumbCommandParameterInfo = + new CommandParameterInfo("breadcrumb", long.class); + networkCommissioningscanNetworksCommandParams.put( + "breadcrumb", networkCommissioningscanNetworksbreadcrumbCommandParameterInfo); + + CommandParameterInfo networkCommissioningscanNetworkstimeoutMsCommandParameterInfo = + new CommandParameterInfo("timeoutMs", long.class); + networkCommissioningscanNetworksCommandParams.put( + "timeoutMs", networkCommissioningscanNetworkstimeoutMsCommandParameterInfo); + + // Populate commands + CommandInfo networkCommissioningscanNetworksCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.NetworkCommissioningCluster) cluster) + .scanNetworks( + (ChipClusters.NetworkCommissioningCluster.ScanNetworksResponseCallback) + callback, + (byte[]) commandArguments.get("ssid"), + (Long) commandArguments.get("breadcrumb"), + (Long) commandArguments.get("timeoutMs")); + }, + () -> new DelegatedScanNetworksResponseCallback(), + networkCommissioningscanNetworksCommandParams); + networkCommissioningClusterCommandInfoMap.put( + "scanNetworks", networkCommissioningscanNetworksCommandInfo); + Map networkCommissioningupdateThreadNetworkCommandParams = + new LinkedHashMap(); + CommandParameterInfo + networkCommissioningupdateThreadNetworkoperationalDatasetCommandParameterInfo = + new CommandParameterInfo("operationalDataset", byte[].class); + networkCommissioningupdateThreadNetworkCommandParams.put( + "operationalDataset", + networkCommissioningupdateThreadNetworkoperationalDatasetCommandParameterInfo); + + CommandParameterInfo networkCommissioningupdateThreadNetworkbreadcrumbCommandParameterInfo = + new CommandParameterInfo("breadcrumb", long.class); + networkCommissioningupdateThreadNetworkCommandParams.put( + "breadcrumb", networkCommissioningupdateThreadNetworkbreadcrumbCommandParameterInfo); + + CommandParameterInfo networkCommissioningupdateThreadNetworktimeoutMsCommandParameterInfo = + new CommandParameterInfo("timeoutMs", long.class); + networkCommissioningupdateThreadNetworkCommandParams.put( + "timeoutMs", networkCommissioningupdateThreadNetworktimeoutMsCommandParameterInfo); + + // Populate commands + CommandInfo networkCommissioningupdateThreadNetworkCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.NetworkCommissioningCluster) cluster) + .updateThreadNetwork( + (ChipClusters.NetworkCommissioningCluster.UpdateThreadNetworkResponseCallback) + callback, + (byte[]) commandArguments.get("operationalDataset"), + (Long) commandArguments.get("breadcrumb"), + (Long) commandArguments.get("timeoutMs")); + }, + () -> new DelegatedUpdateThreadNetworkResponseCallback(), + networkCommissioningupdateThreadNetworkCommandParams); + networkCommissioningClusterCommandInfoMap.put( + "updateThreadNetwork", networkCommissioningupdateThreadNetworkCommandInfo); + Map networkCommissioningupdateWiFiNetworkCommandParams = + new LinkedHashMap(); + CommandParameterInfo networkCommissioningupdateWiFiNetworkssidCommandParameterInfo = + new CommandParameterInfo("ssid", byte[].class); + networkCommissioningupdateWiFiNetworkCommandParams.put( + "ssid", networkCommissioningupdateWiFiNetworkssidCommandParameterInfo); + + CommandParameterInfo networkCommissioningupdateWiFiNetworkcredentialsCommandParameterInfo = + new CommandParameterInfo("credentials", byte[].class); + networkCommissioningupdateWiFiNetworkCommandParams.put( + "credentials", networkCommissioningupdateWiFiNetworkcredentialsCommandParameterInfo); + + CommandParameterInfo networkCommissioningupdateWiFiNetworkbreadcrumbCommandParameterInfo = + new CommandParameterInfo("breadcrumb", long.class); + networkCommissioningupdateWiFiNetworkCommandParams.put( + "breadcrumb", networkCommissioningupdateWiFiNetworkbreadcrumbCommandParameterInfo); + + CommandParameterInfo networkCommissioningupdateWiFiNetworktimeoutMsCommandParameterInfo = + new CommandParameterInfo("timeoutMs", long.class); + networkCommissioningupdateWiFiNetworkCommandParams.put( + "timeoutMs", networkCommissioningupdateWiFiNetworktimeoutMsCommandParameterInfo); + + // Populate commands + CommandInfo networkCommissioningupdateWiFiNetworkCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.NetworkCommissioningCluster) cluster) + .updateWiFiNetwork( + (ChipClusters.NetworkCommissioningCluster.UpdateWiFiNetworkResponseCallback) + callback, + (byte[]) commandArguments.get("ssid"), + (byte[]) commandArguments.get("credentials"), + (Long) commandArguments.get("breadcrumb"), + (Long) commandArguments.get("timeoutMs")); + }, + () -> new DelegatedUpdateWiFiNetworkResponseCallback(), + networkCommissioningupdateWiFiNetworkCommandParams); + networkCommissioningClusterCommandInfoMap.put( + "updateWiFiNetwork", networkCommissioningupdateWiFiNetworkCommandInfo); + // Populate cluster + ClusterInfo networkCommissioningClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.NetworkCommissioningCluster(ptr, endpointId), + networkCommissioningClusterCommandInfoMap); + clusterMap.put("networkCommissioning", networkCommissioningClusterInfo); + Map otaSoftwareUpdateProviderClusterCommandInfoMap = new LinkedHashMap<>(); + Map otaSoftwareUpdateProviderapplyUpdateRequestCommandParams = + new LinkedHashMap(); + CommandParameterInfo + otaSoftwareUpdateProviderapplyUpdateRequestupdateTokenCommandParameterInfo = + new CommandParameterInfo("updateToken", byte[].class); + otaSoftwareUpdateProviderapplyUpdateRequestCommandParams.put( + "updateToken", otaSoftwareUpdateProviderapplyUpdateRequestupdateTokenCommandParameterInfo); + + CommandParameterInfo otaSoftwareUpdateProviderapplyUpdateRequestnewVersionCommandParameterInfo = + new CommandParameterInfo("newVersion", long.class); + otaSoftwareUpdateProviderapplyUpdateRequestCommandParams.put( + "newVersion", otaSoftwareUpdateProviderapplyUpdateRequestnewVersionCommandParameterInfo); + + // Populate commands + CommandInfo otaSoftwareUpdateProviderapplyUpdateRequestCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OtaSoftwareUpdateProviderCluster) cluster) + .applyUpdateRequest( + (ChipClusters.OtaSoftwareUpdateProviderCluster.ApplyUpdateResponseCallback) + callback, + (byte[]) commandArguments.get("updateToken"), + (Long) commandArguments.get("newVersion")); + }, + () -> new DelegatedApplyUpdateResponseCallback(), + otaSoftwareUpdateProviderapplyUpdateRequestCommandParams); + otaSoftwareUpdateProviderClusterCommandInfoMap.put( + "applyUpdateRequest", otaSoftwareUpdateProviderapplyUpdateRequestCommandInfo); + Map otaSoftwareUpdateProvidernotifyUpdateAppliedCommandParams = + new LinkedHashMap(); + CommandParameterInfo + otaSoftwareUpdateProvidernotifyUpdateAppliedupdateTokenCommandParameterInfo = + new CommandParameterInfo("updateToken", byte[].class); + otaSoftwareUpdateProvidernotifyUpdateAppliedCommandParams.put( + "updateToken", otaSoftwareUpdateProvidernotifyUpdateAppliedupdateTokenCommandParameterInfo); + + CommandParameterInfo + otaSoftwareUpdateProvidernotifyUpdateAppliedsoftwareVersionCommandParameterInfo = + new CommandParameterInfo("softwareVersion", long.class); + otaSoftwareUpdateProvidernotifyUpdateAppliedCommandParams.put( + "softwareVersion", + otaSoftwareUpdateProvidernotifyUpdateAppliedsoftwareVersionCommandParameterInfo); + + // Populate commands + CommandInfo otaSoftwareUpdateProvidernotifyUpdateAppliedCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OtaSoftwareUpdateProviderCluster) cluster) + .notifyUpdateApplied( + (DefaultClusterCallback) callback, + (byte[]) commandArguments.get("updateToken"), + (Long) commandArguments.get("softwareVersion")); + }, + () -> new DelegatedDefaultClusterCallback(), + otaSoftwareUpdateProvidernotifyUpdateAppliedCommandParams); + otaSoftwareUpdateProviderClusterCommandInfoMap.put( + "notifyUpdateApplied", otaSoftwareUpdateProvidernotifyUpdateAppliedCommandInfo); + Map otaSoftwareUpdateProviderqueryImageCommandParams = + new LinkedHashMap(); + CommandParameterInfo otaSoftwareUpdateProviderqueryImagevendorIdCommandParameterInfo = + new CommandParameterInfo("vendorId", int.class); + otaSoftwareUpdateProviderqueryImageCommandParams.put( + "vendorId", otaSoftwareUpdateProviderqueryImagevendorIdCommandParameterInfo); + + CommandParameterInfo otaSoftwareUpdateProviderqueryImageproductIdCommandParameterInfo = + new CommandParameterInfo("productId", int.class); + otaSoftwareUpdateProviderqueryImageCommandParams.put( + "productId", otaSoftwareUpdateProviderqueryImageproductIdCommandParameterInfo); + + CommandParameterInfo otaSoftwareUpdateProviderqueryImagesoftwareVersionCommandParameterInfo = + new CommandParameterInfo("softwareVersion", long.class); + otaSoftwareUpdateProviderqueryImageCommandParams.put( + "softwareVersion", otaSoftwareUpdateProviderqueryImagesoftwareVersionCommandParameterInfo); + + CommandParameterInfo otaSoftwareUpdateProviderqueryImageprotocolsSupportedCommandParameterInfo = + new CommandParameterInfo("protocolsSupported", int.class); + otaSoftwareUpdateProviderqueryImageCommandParams.put( + "protocolsSupported", + otaSoftwareUpdateProviderqueryImageprotocolsSupportedCommandParameterInfo); + + CommandParameterInfo otaSoftwareUpdateProviderqueryImagehardwareVersionCommandParameterInfo = + new CommandParameterInfo("hardwareVersion", int.class); + otaSoftwareUpdateProviderqueryImageCommandParams.put( + "hardwareVersion", otaSoftwareUpdateProviderqueryImagehardwareVersionCommandParameterInfo); + + CommandParameterInfo otaSoftwareUpdateProviderqueryImagelocationCommandParameterInfo = + new CommandParameterInfo("location", String.class); + otaSoftwareUpdateProviderqueryImageCommandParams.put( + "location", otaSoftwareUpdateProviderqueryImagelocationCommandParameterInfo); + + CommandParameterInfo + otaSoftwareUpdateProviderqueryImagerequestorCanConsentCommandParameterInfo = + new CommandParameterInfo("requestorCanConsent", boolean.class); + otaSoftwareUpdateProviderqueryImageCommandParams.put( + "requestorCanConsent", + otaSoftwareUpdateProviderqueryImagerequestorCanConsentCommandParameterInfo); + + CommandParameterInfo + otaSoftwareUpdateProviderqueryImagemetadataForProviderCommandParameterInfo = + new CommandParameterInfo("metadataForProvider", byte[].class); + otaSoftwareUpdateProviderqueryImageCommandParams.put( + "metadataForProvider", + otaSoftwareUpdateProviderqueryImagemetadataForProviderCommandParameterInfo); + + // Populate commands + CommandInfo otaSoftwareUpdateProviderqueryImageCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OtaSoftwareUpdateProviderCluster) cluster) + .queryImage( + (ChipClusters.OtaSoftwareUpdateProviderCluster.QueryImageResponseCallback) + callback, + (Integer) commandArguments.get("vendorId"), + (Integer) commandArguments.get("productId"), + (Long) commandArguments.get("softwareVersion"), + (Integer) commandArguments.get("protocolsSupported"), + (Integer) commandArguments.get("hardwareVersion"), + (String) commandArguments.get("location"), + (Boolean) commandArguments.get("requestorCanConsent"), + (byte[]) commandArguments.get("metadataForProvider")); + }, + () -> new DelegatedQueryImageResponseCallback(), + otaSoftwareUpdateProviderqueryImageCommandParams); + otaSoftwareUpdateProviderClusterCommandInfoMap.put( + "queryImage", otaSoftwareUpdateProviderqueryImageCommandInfo); + // Populate cluster + ClusterInfo otaSoftwareUpdateProviderClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.OtaSoftwareUpdateProviderCluster(ptr, endpointId), + otaSoftwareUpdateProviderClusterCommandInfoMap); + clusterMap.put("otaSoftwareUpdateProvider", otaSoftwareUpdateProviderClusterInfo); + Map otaSoftwareUpdateRequestorClusterCommandInfoMap = + new LinkedHashMap<>(); + Map otaSoftwareUpdateRequestorannounceOtaProviderCommandParams = + new LinkedHashMap(); + CommandParameterInfo + otaSoftwareUpdateRequestorannounceOtaProviderproviderLocationCommandParameterInfo = + new CommandParameterInfo("providerLocation", long.class); + otaSoftwareUpdateRequestorannounceOtaProviderCommandParams.put( + "providerLocation", + otaSoftwareUpdateRequestorannounceOtaProviderproviderLocationCommandParameterInfo); + + CommandParameterInfo otaSoftwareUpdateRequestorannounceOtaProvidervendorIdCommandParameterInfo = + new CommandParameterInfo("vendorId", int.class); + otaSoftwareUpdateRequestorannounceOtaProviderCommandParams.put( + "vendorId", otaSoftwareUpdateRequestorannounceOtaProvidervendorIdCommandParameterInfo); + + CommandParameterInfo + otaSoftwareUpdateRequestorannounceOtaProviderannouncementReasonCommandParameterInfo = + new CommandParameterInfo("announcementReason", int.class); + otaSoftwareUpdateRequestorannounceOtaProviderCommandParams.put( + "announcementReason", + otaSoftwareUpdateRequestorannounceOtaProviderannouncementReasonCommandParameterInfo); + + CommandParameterInfo + otaSoftwareUpdateRequestorannounceOtaProvidermetadataForNodeCommandParameterInfo = + new CommandParameterInfo("metadataForNode", byte[].class); + otaSoftwareUpdateRequestorannounceOtaProviderCommandParams.put( + "metadataForNode", + otaSoftwareUpdateRequestorannounceOtaProvidermetadataForNodeCommandParameterInfo); + + // Populate commands + CommandInfo otaSoftwareUpdateRequestorannounceOtaProviderCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OtaSoftwareUpdateRequestorCluster) cluster) + .announceOtaProvider( + (DefaultClusterCallback) callback, + (Long) commandArguments.get("providerLocation"), + (Integer) commandArguments.get("vendorId"), + (Integer) commandArguments.get("announcementReason"), + (byte[]) commandArguments.get("metadataForNode")); + }, + () -> new DelegatedDefaultClusterCallback(), + otaSoftwareUpdateRequestorannounceOtaProviderCommandParams); + otaSoftwareUpdateRequestorClusterCommandInfoMap.put( + "announceOtaProvider", otaSoftwareUpdateRequestorannounceOtaProviderCommandInfo); + // Populate cluster + ClusterInfo otaSoftwareUpdateRequestorClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> + new ChipClusters.OtaSoftwareUpdateRequestorCluster(ptr, endpointId), + otaSoftwareUpdateRequestorClusterCommandInfoMap); + clusterMap.put("otaSoftwareUpdateRequestor", otaSoftwareUpdateRequestorClusterInfo); + Map occupancySensingClusterCommandInfoMap = new LinkedHashMap<>(); + // Populate cluster + ClusterInfo occupancySensingClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.OccupancySensingCluster(ptr, endpointId), + occupancySensingClusterCommandInfoMap); + clusterMap.put("occupancySensing", occupancySensingClusterInfo); + Map onOffClusterCommandInfoMap = new LinkedHashMap<>(); + Map onOffoffCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo onOffoffCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster).off((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + onOffoffCommandParams); + onOffClusterCommandInfoMap.put("off", onOffoffCommandInfo); + Map onOffoffWithEffectCommandParams = + new LinkedHashMap(); + CommandParameterInfo onOffoffWithEffecteffectIdCommandParameterInfo = + new CommandParameterInfo("effectId", int.class); + onOffoffWithEffectCommandParams.put("effectId", onOffoffWithEffecteffectIdCommandParameterInfo); + + CommandParameterInfo onOffoffWithEffecteffectVariantCommandParameterInfo = + new CommandParameterInfo("effectVariant", int.class); + onOffoffWithEffectCommandParams.put( + "effectVariant", onOffoffWithEffecteffectVariantCommandParameterInfo); + + // Populate commands + CommandInfo onOffoffWithEffectCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster) + .offWithEffect( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("effectId"), + (Integer) commandArguments.get("effectVariant")); + }, + () -> new DelegatedDefaultClusterCallback(), + onOffoffWithEffectCommandParams); + onOffClusterCommandInfoMap.put("offWithEffect", onOffoffWithEffectCommandInfo); + Map onOffonCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo onOffonCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster).on((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + onOffonCommandParams); + onOffClusterCommandInfoMap.put("on", onOffonCommandInfo); + Map onOffonWithRecallGlobalSceneCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo onOffonWithRecallGlobalSceneCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster) + .onWithRecallGlobalScene((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + onOffonWithRecallGlobalSceneCommandParams); + onOffClusterCommandInfoMap.put( + "onWithRecallGlobalScene", onOffonWithRecallGlobalSceneCommandInfo); + Map onOffonWithTimedOffCommandParams = + new LinkedHashMap(); + CommandParameterInfo onOffonWithTimedOffonOffControlCommandParameterInfo = + new CommandParameterInfo("onOffControl", int.class); + onOffonWithTimedOffCommandParams.put( + "onOffControl", onOffonWithTimedOffonOffControlCommandParameterInfo); + + CommandParameterInfo onOffonWithTimedOffonTimeCommandParameterInfo = + new CommandParameterInfo("onTime", int.class); + onOffonWithTimedOffCommandParams.put("onTime", onOffonWithTimedOffonTimeCommandParameterInfo); + + CommandParameterInfo onOffonWithTimedOffoffWaitTimeCommandParameterInfo = + new CommandParameterInfo("offWaitTime", int.class); + onOffonWithTimedOffCommandParams.put( + "offWaitTime", onOffonWithTimedOffoffWaitTimeCommandParameterInfo); + + // Populate commands + CommandInfo onOffonWithTimedOffCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster) + .onWithTimedOff( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("onOffControl"), + (Integer) commandArguments.get("onTime"), + (Integer) commandArguments.get("offWaitTime")); + }, + () -> new DelegatedDefaultClusterCallback(), + onOffonWithTimedOffCommandParams); + onOffClusterCommandInfoMap.put("onWithTimedOff", onOffonWithTimedOffCommandInfo); + Map onOfftoggleCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo onOfftoggleCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster).toggle((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + onOfftoggleCommandParams); + onOffClusterCommandInfoMap.put("toggle", onOfftoggleCommandInfo); + // Populate cluster + ClusterInfo onOffClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.OnOffCluster(ptr, endpointId), + onOffClusterCommandInfoMap); + clusterMap.put("onOff", onOffClusterInfo); + Map onOffSwitchConfigurationClusterCommandInfoMap = new LinkedHashMap<>(); + // Populate cluster + ClusterInfo onOffSwitchConfigurationClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.OnOffSwitchConfigurationCluster(ptr, endpointId), + onOffSwitchConfigurationClusterCommandInfoMap); + clusterMap.put("onOffSwitchConfiguration", onOffSwitchConfigurationClusterInfo); + Map operationalCredentialsClusterCommandInfoMap = new LinkedHashMap<>(); + Map operationalCredentialsaddNOCCommandParams = + new LinkedHashMap(); + CommandParameterInfo operationalCredentialsaddNOCNOCValueCommandParameterInfo = + new CommandParameterInfo("NOCValue", byte[].class); + operationalCredentialsaddNOCCommandParams.put( + "NOCValue", operationalCredentialsaddNOCNOCValueCommandParameterInfo); + + CommandParameterInfo operationalCredentialsaddNOCICACValueCommandParameterInfo = + new CommandParameterInfo("ICACValue", byte[].class); + operationalCredentialsaddNOCCommandParams.put( + "ICACValue", operationalCredentialsaddNOCICACValueCommandParameterInfo); + + CommandParameterInfo operationalCredentialsaddNOCIPKValueCommandParameterInfo = + new CommandParameterInfo("IPKValue", byte[].class); + operationalCredentialsaddNOCCommandParams.put( + "IPKValue", operationalCredentialsaddNOCIPKValueCommandParameterInfo); + + CommandParameterInfo operationalCredentialsaddNOCcaseAdminNodeCommandParameterInfo = + new CommandParameterInfo("caseAdminNode", long.class); + operationalCredentialsaddNOCCommandParams.put( + "caseAdminNode", operationalCredentialsaddNOCcaseAdminNodeCommandParameterInfo); + + CommandParameterInfo operationalCredentialsaddNOCadminVendorIdCommandParameterInfo = + new CommandParameterInfo("adminVendorId", int.class); + operationalCredentialsaddNOCCommandParams.put( + "adminVendorId", operationalCredentialsaddNOCadminVendorIdCommandParameterInfo); + + // Populate commands + CommandInfo operationalCredentialsaddNOCCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OperationalCredentialsCluster) cluster) + .addNOC( + (ChipClusters.OperationalCredentialsCluster.NOCResponseCallback) callback, + (byte[]) commandArguments.get("NOCValue"), + (byte[]) commandArguments.get("ICACValue"), + (byte[]) commandArguments.get("IPKValue"), + (Long) commandArguments.get("caseAdminNode"), + (Integer) commandArguments.get("adminVendorId")); + }, + () -> new DelegatedNOCResponseCallback(), + operationalCredentialsaddNOCCommandParams); + operationalCredentialsClusterCommandInfoMap.put( + "addNOC", operationalCredentialsaddNOCCommandInfo); + Map operationalCredentialsaddTrustedRootCertificateCommandParams = + new LinkedHashMap(); + CommandParameterInfo + operationalCredentialsaddTrustedRootCertificaterootCertificateCommandParameterInfo = + new CommandParameterInfo("rootCertificate", byte[].class); + operationalCredentialsaddTrustedRootCertificateCommandParams.put( + "rootCertificate", + operationalCredentialsaddTrustedRootCertificaterootCertificateCommandParameterInfo); + + // Populate commands + CommandInfo operationalCredentialsaddTrustedRootCertificateCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OperationalCredentialsCluster) cluster) + .addTrustedRootCertificate( + (DefaultClusterCallback) callback, + (byte[]) commandArguments.get("rootCertificate")); + }, + () -> new DelegatedDefaultClusterCallback(), + operationalCredentialsaddTrustedRootCertificateCommandParams); + operationalCredentialsClusterCommandInfoMap.put( + "addTrustedRootCertificate", operationalCredentialsaddTrustedRootCertificateCommandInfo); + Map operationalCredentialsattestationRequestCommandParams = + new LinkedHashMap(); + CommandParameterInfo + operationalCredentialsattestationRequestattestationNonceCommandParameterInfo = + new CommandParameterInfo("attestationNonce", byte[].class); + operationalCredentialsattestationRequestCommandParams.put( + "attestationNonce", + operationalCredentialsattestationRequestattestationNonceCommandParameterInfo); + + // Populate commands + CommandInfo operationalCredentialsattestationRequestCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OperationalCredentialsCluster) cluster) + .attestationRequest( + (ChipClusters.OperationalCredentialsCluster.AttestationResponseCallback) + callback, + (byte[]) commandArguments.get("attestationNonce")); + }, + () -> new DelegatedAttestationResponseCallback(), + operationalCredentialsattestationRequestCommandParams); + operationalCredentialsClusterCommandInfoMap.put( + "attestationRequest", operationalCredentialsattestationRequestCommandInfo); + Map operationalCredentialscertificateChainRequestCommandParams = + new LinkedHashMap(); + CommandParameterInfo + operationalCredentialscertificateChainRequestcertificateTypeCommandParameterInfo = + new CommandParameterInfo("certificateType", int.class); + operationalCredentialscertificateChainRequestCommandParams.put( + "certificateType", + operationalCredentialscertificateChainRequestcertificateTypeCommandParameterInfo); + + // Populate commands + CommandInfo operationalCredentialscertificateChainRequestCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OperationalCredentialsCluster) cluster) + .certificateChainRequest( + (ChipClusters.OperationalCredentialsCluster.CertificateChainResponseCallback) + callback, + (Integer) commandArguments.get("certificateType")); + }, + () -> new DelegatedCertificateChainResponseCallback(), + operationalCredentialscertificateChainRequestCommandParams); + operationalCredentialsClusterCommandInfoMap.put( + "certificateChainRequest", operationalCredentialscertificateChainRequestCommandInfo); + Map operationalCredentialsopCSRRequestCommandParams = + new LinkedHashMap(); + CommandParameterInfo operationalCredentialsopCSRRequestCSRNonceCommandParameterInfo = + new CommandParameterInfo("CSRNonce", byte[].class); + operationalCredentialsopCSRRequestCommandParams.put( + "CSRNonce", operationalCredentialsopCSRRequestCSRNonceCommandParameterInfo); + + // Populate commands + CommandInfo operationalCredentialsopCSRRequestCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OperationalCredentialsCluster) cluster) + .opCSRRequest( + (ChipClusters.OperationalCredentialsCluster.OpCSRResponseCallback) callback, + (byte[]) commandArguments.get("CSRNonce")); + }, + () -> new DelegatedOpCSRResponseCallback(), + operationalCredentialsopCSRRequestCommandParams); + operationalCredentialsClusterCommandInfoMap.put( + "opCSRRequest", operationalCredentialsopCSRRequestCommandInfo); + Map operationalCredentialsremoveFabricCommandParams = + new LinkedHashMap(); + CommandParameterInfo operationalCredentialsremoveFabricfabricIndexCommandParameterInfo = + new CommandParameterInfo("fabricIndex", int.class); + operationalCredentialsremoveFabricCommandParams.put( + "fabricIndex", operationalCredentialsremoveFabricfabricIndexCommandParameterInfo); + + // Populate commands + CommandInfo operationalCredentialsremoveFabricCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OperationalCredentialsCluster) cluster) + .removeFabric( + (ChipClusters.OperationalCredentialsCluster.NOCResponseCallback) callback, + (Integer) commandArguments.get("fabricIndex")); + }, + () -> new DelegatedNOCResponseCallback(), + operationalCredentialsremoveFabricCommandParams); + operationalCredentialsClusterCommandInfoMap.put( + "removeFabric", operationalCredentialsremoveFabricCommandInfo); + Map + operationalCredentialsremoveTrustedRootCertificateCommandParams = + new LinkedHashMap(); + CommandParameterInfo + operationalCredentialsremoveTrustedRootCertificatetrustedRootIdentifierCommandParameterInfo = + new CommandParameterInfo("trustedRootIdentifier", byte[].class); + operationalCredentialsremoveTrustedRootCertificateCommandParams.put( + "trustedRootIdentifier", + operationalCredentialsremoveTrustedRootCertificatetrustedRootIdentifierCommandParameterInfo); + + // Populate commands + CommandInfo operationalCredentialsremoveTrustedRootCertificateCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OperationalCredentialsCluster) cluster) + .removeTrustedRootCertificate( + (DefaultClusterCallback) callback, + (byte[]) commandArguments.get("trustedRootIdentifier")); + }, + () -> new DelegatedDefaultClusterCallback(), + operationalCredentialsremoveTrustedRootCertificateCommandParams); + operationalCredentialsClusterCommandInfoMap.put( + "removeTrustedRootCertificate", + operationalCredentialsremoveTrustedRootCertificateCommandInfo); + Map operationalCredentialsupdateFabricLabelCommandParams = + new LinkedHashMap(); + CommandParameterInfo operationalCredentialsupdateFabricLabellabelCommandParameterInfo = + new CommandParameterInfo("label", String.class); + operationalCredentialsupdateFabricLabelCommandParams.put( + "label", operationalCredentialsupdateFabricLabellabelCommandParameterInfo); + + // Populate commands + CommandInfo operationalCredentialsupdateFabricLabelCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OperationalCredentialsCluster) cluster) + .updateFabricLabel( + (ChipClusters.OperationalCredentialsCluster.NOCResponseCallback) callback, + (String) commandArguments.get("label")); + }, + () -> new DelegatedNOCResponseCallback(), + operationalCredentialsupdateFabricLabelCommandParams); + operationalCredentialsClusterCommandInfoMap.put( + "updateFabricLabel", operationalCredentialsupdateFabricLabelCommandInfo); + Map operationalCredentialsupdateNOCCommandParams = + new LinkedHashMap(); + CommandParameterInfo operationalCredentialsupdateNOCNOCValueCommandParameterInfo = + new CommandParameterInfo("NOCValue", byte[].class); + operationalCredentialsupdateNOCCommandParams.put( + "NOCValue", operationalCredentialsupdateNOCNOCValueCommandParameterInfo); + + CommandParameterInfo operationalCredentialsupdateNOCICACValueCommandParameterInfo = + new CommandParameterInfo("ICACValue", byte[].class); + operationalCredentialsupdateNOCCommandParams.put( + "ICACValue", operationalCredentialsupdateNOCICACValueCommandParameterInfo); + + // Populate commands + CommandInfo operationalCredentialsupdateNOCCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OperationalCredentialsCluster) cluster) + .updateNOC( + (ChipClusters.OperationalCredentialsCluster.NOCResponseCallback) callback, + (byte[]) commandArguments.get("NOCValue"), + (byte[]) commandArguments.get("ICACValue")); + }, + () -> new DelegatedNOCResponseCallback(), + operationalCredentialsupdateNOCCommandParams); + operationalCredentialsClusterCommandInfoMap.put( + "updateNOC", operationalCredentialsupdateNOCCommandInfo); + // Populate cluster + ClusterInfo operationalCredentialsClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.OperationalCredentialsCluster(ptr, endpointId), + operationalCredentialsClusterCommandInfoMap); + clusterMap.put("operationalCredentials", operationalCredentialsClusterInfo); + Map powerSourceClusterCommandInfoMap = new LinkedHashMap<>(); + // Populate cluster + ClusterInfo powerSourceClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.PowerSourceCluster(ptr, endpointId), + powerSourceClusterCommandInfoMap); + clusterMap.put("powerSource", powerSourceClusterInfo); + Map pressureMeasurementClusterCommandInfoMap = new LinkedHashMap<>(); + // Populate cluster + ClusterInfo pressureMeasurementClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.PressureMeasurementCluster(ptr, endpointId), + pressureMeasurementClusterCommandInfoMap); + clusterMap.put("pressureMeasurement", pressureMeasurementClusterInfo); + Map pumpConfigurationAndControlClusterCommandInfoMap = + new LinkedHashMap<>(); + // Populate cluster + ClusterInfo pumpConfigurationAndControlClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> + new ChipClusters.PumpConfigurationAndControlCluster(ptr, endpointId), + pumpConfigurationAndControlClusterCommandInfoMap); + clusterMap.put("pumpConfigurationAndControl", pumpConfigurationAndControlClusterInfo); + Map relativeHumidityMeasurementClusterCommandInfoMap = + new LinkedHashMap<>(); + // Populate cluster + ClusterInfo relativeHumidityMeasurementClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> + new ChipClusters.RelativeHumidityMeasurementCluster(ptr, endpointId), + relativeHumidityMeasurementClusterCommandInfoMap); + clusterMap.put("relativeHumidityMeasurement", relativeHumidityMeasurementClusterInfo); + Map scenesClusterCommandInfoMap = new LinkedHashMap<>(); + Map scenesaddSceneCommandParams = + new LinkedHashMap(); + CommandParameterInfo scenesaddScenegroupIdCommandParameterInfo = + new CommandParameterInfo("groupId", int.class); + scenesaddSceneCommandParams.put("groupId", scenesaddScenegroupIdCommandParameterInfo); + + CommandParameterInfo scenesaddScenesceneIdCommandParameterInfo = + new CommandParameterInfo("sceneId", int.class); + scenesaddSceneCommandParams.put("sceneId", scenesaddScenesceneIdCommandParameterInfo); + + CommandParameterInfo scenesaddScenetransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + scenesaddSceneCommandParams.put( + "transitionTime", scenesaddScenetransitionTimeCommandParameterInfo); + + CommandParameterInfo scenesaddScenesceneNameCommandParameterInfo = + new CommandParameterInfo("sceneName", String.class); + scenesaddSceneCommandParams.put("sceneName", scenesaddScenesceneNameCommandParameterInfo); + + CommandParameterInfo scenesaddSceneclusterIdCommandParameterInfo = + new CommandParameterInfo("clusterId", long.class); + scenesaddSceneCommandParams.put("clusterId", scenesaddSceneclusterIdCommandParameterInfo); + + CommandParameterInfo scenesaddScenelengthCommandParameterInfo = + new CommandParameterInfo("length", int.class); + scenesaddSceneCommandParams.put("length", scenesaddScenelengthCommandParameterInfo); + + CommandParameterInfo scenesaddScenevalueCommandParameterInfo = + new CommandParameterInfo("value", int.class); + scenesaddSceneCommandParams.put("value", scenesaddScenevalueCommandParameterInfo); + + // Populate commands + CommandInfo scenesaddSceneCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ScenesCluster) cluster) + .addScene( + (ChipClusters.ScenesCluster.AddSceneResponseCallback) callback, + (Integer) commandArguments.get("groupId"), + (Integer) commandArguments.get("sceneId"), + (Integer) commandArguments.get("transitionTime"), + (String) commandArguments.get("sceneName"), + (Long) commandArguments.get("clusterId"), + (Integer) commandArguments.get("length"), + (Integer) commandArguments.get("value")); + }, + () -> new DelegatedAddSceneResponseCallback(), + scenesaddSceneCommandParams); + scenesClusterCommandInfoMap.put("addScene", scenesaddSceneCommandInfo); + Map scenesgetSceneMembershipCommandParams = + new LinkedHashMap(); + CommandParameterInfo scenesgetSceneMembershipgroupIdCommandParameterInfo = + new CommandParameterInfo("groupId", int.class); + scenesgetSceneMembershipCommandParams.put( + "groupId", scenesgetSceneMembershipgroupIdCommandParameterInfo); + + // Populate commands + CommandInfo scenesgetSceneMembershipCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ScenesCluster) cluster) + .getSceneMembership( + (ChipClusters.ScenesCluster.GetSceneMembershipResponseCallback) callback, + (Integer) commandArguments.get("groupId")); + }, + () -> new DelegatedGetSceneMembershipResponseCallback(), + scenesgetSceneMembershipCommandParams); + scenesClusterCommandInfoMap.put("getSceneMembership", scenesgetSceneMembershipCommandInfo); + Map scenesrecallSceneCommandParams = + new LinkedHashMap(); + CommandParameterInfo scenesrecallScenegroupIdCommandParameterInfo = + new CommandParameterInfo("groupId", int.class); + scenesrecallSceneCommandParams.put("groupId", scenesrecallScenegroupIdCommandParameterInfo); + + CommandParameterInfo scenesrecallScenesceneIdCommandParameterInfo = + new CommandParameterInfo("sceneId", int.class); + scenesrecallSceneCommandParams.put("sceneId", scenesrecallScenesceneIdCommandParameterInfo); + + CommandParameterInfo scenesrecallScenetransitionTimeCommandParameterInfo = + new CommandParameterInfo("transitionTime", int.class); + scenesrecallSceneCommandParams.put( + "transitionTime", scenesrecallScenetransitionTimeCommandParameterInfo); + + // Populate commands + CommandInfo scenesrecallSceneCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ScenesCluster) cluster) + .recallScene( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("groupId"), + (Integer) commandArguments.get("sceneId"), + (Integer) commandArguments.get("transitionTime")); + }, + () -> new DelegatedDefaultClusterCallback(), + scenesrecallSceneCommandParams); + scenesClusterCommandInfoMap.put("recallScene", scenesrecallSceneCommandInfo); + Map scenesremoveAllScenesCommandParams = + new LinkedHashMap(); + CommandParameterInfo scenesremoveAllScenesgroupIdCommandParameterInfo = + new CommandParameterInfo("groupId", int.class); + scenesremoveAllScenesCommandParams.put( + "groupId", scenesremoveAllScenesgroupIdCommandParameterInfo); + + // Populate commands + CommandInfo scenesremoveAllScenesCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ScenesCluster) cluster) + .removeAllScenes( + (ChipClusters.ScenesCluster.RemoveAllScenesResponseCallback) callback, + (Integer) commandArguments.get("groupId")); + }, + () -> new DelegatedRemoveAllScenesResponseCallback(), + scenesremoveAllScenesCommandParams); + scenesClusterCommandInfoMap.put("removeAllScenes", scenesremoveAllScenesCommandInfo); + Map scenesremoveSceneCommandParams = + new LinkedHashMap(); + CommandParameterInfo scenesremoveScenegroupIdCommandParameterInfo = + new CommandParameterInfo("groupId", int.class); + scenesremoveSceneCommandParams.put("groupId", scenesremoveScenegroupIdCommandParameterInfo); + + CommandParameterInfo scenesremoveScenesceneIdCommandParameterInfo = + new CommandParameterInfo("sceneId", int.class); + scenesremoveSceneCommandParams.put("sceneId", scenesremoveScenesceneIdCommandParameterInfo); + + // Populate commands + CommandInfo scenesremoveSceneCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ScenesCluster) cluster) + .removeScene( + (ChipClusters.ScenesCluster.RemoveSceneResponseCallback) callback, + (Integer) commandArguments.get("groupId"), + (Integer) commandArguments.get("sceneId")); + }, + () -> new DelegatedRemoveSceneResponseCallback(), + scenesremoveSceneCommandParams); + scenesClusterCommandInfoMap.put("removeScene", scenesremoveSceneCommandInfo); + Map scenesstoreSceneCommandParams = + new LinkedHashMap(); + CommandParameterInfo scenesstoreScenegroupIdCommandParameterInfo = + new CommandParameterInfo("groupId", int.class); + scenesstoreSceneCommandParams.put("groupId", scenesstoreScenegroupIdCommandParameterInfo); + + CommandParameterInfo scenesstoreScenesceneIdCommandParameterInfo = + new CommandParameterInfo("sceneId", int.class); + scenesstoreSceneCommandParams.put("sceneId", scenesstoreScenesceneIdCommandParameterInfo); + + // Populate commands + CommandInfo scenesstoreSceneCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ScenesCluster) cluster) + .storeScene( + (ChipClusters.ScenesCluster.StoreSceneResponseCallback) callback, + (Integer) commandArguments.get("groupId"), + (Integer) commandArguments.get("sceneId")); + }, + () -> new DelegatedStoreSceneResponseCallback(), + scenesstoreSceneCommandParams); + scenesClusterCommandInfoMap.put("storeScene", scenesstoreSceneCommandInfo); + Map scenesviewSceneCommandParams = + new LinkedHashMap(); + CommandParameterInfo scenesviewScenegroupIdCommandParameterInfo = + new CommandParameterInfo("groupId", int.class); + scenesviewSceneCommandParams.put("groupId", scenesviewScenegroupIdCommandParameterInfo); + + CommandParameterInfo scenesviewScenesceneIdCommandParameterInfo = + new CommandParameterInfo("sceneId", int.class); + scenesviewSceneCommandParams.put("sceneId", scenesviewScenesceneIdCommandParameterInfo); + + // Populate commands + CommandInfo scenesviewSceneCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ScenesCluster) cluster) + .viewScene( + (ChipClusters.ScenesCluster.ViewSceneResponseCallback) callback, + (Integer) commandArguments.get("groupId"), + (Integer) commandArguments.get("sceneId")); + }, + () -> new DelegatedViewSceneResponseCallback(), + scenesviewSceneCommandParams); + scenesClusterCommandInfoMap.put("viewScene", scenesviewSceneCommandInfo); + // Populate cluster + ClusterInfo scenesClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.ScenesCluster(ptr, endpointId), + scenesClusterCommandInfoMap); + clusterMap.put("scenes", scenesClusterInfo); + Map softwareDiagnosticsClusterCommandInfoMap = new LinkedHashMap<>(); + Map softwareDiagnosticsresetWatermarksCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo softwareDiagnosticsresetWatermarksCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.SoftwareDiagnosticsCluster) cluster) + .resetWatermarks((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + softwareDiagnosticsresetWatermarksCommandParams); + softwareDiagnosticsClusterCommandInfoMap.put( + "resetWatermarks", softwareDiagnosticsresetWatermarksCommandInfo); + // Populate cluster + ClusterInfo softwareDiagnosticsClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.SoftwareDiagnosticsCluster(ptr, endpointId), + softwareDiagnosticsClusterCommandInfoMap); + clusterMap.put("softwareDiagnostics", softwareDiagnosticsClusterInfo); + Map switchClusterCommandInfoMap = new LinkedHashMap<>(); + // Populate cluster + ClusterInfo switchClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.SwitchCluster(ptr, endpointId), + switchClusterCommandInfoMap); + clusterMap.put("switch", switchClusterInfo); + Map tvChannelClusterCommandInfoMap = new LinkedHashMap<>(); + Map tvChannelchangeChannelCommandParams = + new LinkedHashMap(); + CommandParameterInfo tvChannelchangeChannelmatchCommandParameterInfo = + new CommandParameterInfo("match", String.class); + tvChannelchangeChannelCommandParams.put( + "match", tvChannelchangeChannelmatchCommandParameterInfo); + + // Populate commands + CommandInfo tvChannelchangeChannelCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TvChannelCluster) cluster) + .changeChannel( + (ChipClusters.TvChannelCluster.ChangeChannelResponseCallback) callback, + (String) commandArguments.get("match")); + }, + () -> new DelegatedChangeChannelResponseCallback(), + tvChannelchangeChannelCommandParams); + tvChannelClusterCommandInfoMap.put("changeChannel", tvChannelchangeChannelCommandInfo); + Map tvChannelchangeChannelByNumberCommandParams = + new LinkedHashMap(); + CommandParameterInfo tvChannelchangeChannelByNumbermajorNumberCommandParameterInfo = + new CommandParameterInfo("majorNumber", int.class); + tvChannelchangeChannelByNumberCommandParams.put( + "majorNumber", tvChannelchangeChannelByNumbermajorNumberCommandParameterInfo); + + CommandParameterInfo tvChannelchangeChannelByNumberminorNumberCommandParameterInfo = + new CommandParameterInfo("minorNumber", int.class); + tvChannelchangeChannelByNumberCommandParams.put( + "minorNumber", tvChannelchangeChannelByNumberminorNumberCommandParameterInfo); + + // Populate commands + CommandInfo tvChannelchangeChannelByNumberCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TvChannelCluster) cluster) + .changeChannelByNumber( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("majorNumber"), + (Integer) commandArguments.get("minorNumber")); + }, + () -> new DelegatedDefaultClusterCallback(), + tvChannelchangeChannelByNumberCommandParams); + tvChannelClusterCommandInfoMap.put( + "changeChannelByNumber", tvChannelchangeChannelByNumberCommandInfo); + Map tvChannelskipChannelCommandParams = + new LinkedHashMap(); + CommandParameterInfo tvChannelskipChannelcountCommandParameterInfo = + new CommandParameterInfo("count", int.class); + tvChannelskipChannelCommandParams.put("count", tvChannelskipChannelcountCommandParameterInfo); + + // Populate commands + CommandInfo tvChannelskipChannelCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TvChannelCluster) cluster) + .skipChannel( + (DefaultClusterCallback) callback, (Integer) commandArguments.get("count")); + }, + () -> new DelegatedDefaultClusterCallback(), + tvChannelskipChannelCommandParams); + tvChannelClusterCommandInfoMap.put("skipChannel", tvChannelskipChannelCommandInfo); + // Populate cluster + ClusterInfo tvChannelClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.TvChannelCluster(ptr, endpointId), + tvChannelClusterCommandInfoMap); + clusterMap.put("tvChannel", tvChannelClusterInfo); + Map targetNavigatorClusterCommandInfoMap = new LinkedHashMap<>(); + Map targetNavigatornavigateTargetCommandParams = + new LinkedHashMap(); + CommandParameterInfo targetNavigatornavigateTargettargetCommandParameterInfo = + new CommandParameterInfo("target", int.class); + targetNavigatornavigateTargetCommandParams.put( + "target", targetNavigatornavigateTargettargetCommandParameterInfo); + + CommandParameterInfo targetNavigatornavigateTargetdataCommandParameterInfo = + new CommandParameterInfo("data", String.class); + targetNavigatornavigateTargetCommandParams.put( + "data", targetNavigatornavigateTargetdataCommandParameterInfo); + + // Populate commands + CommandInfo targetNavigatornavigateTargetCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TargetNavigatorCluster) cluster) + .navigateTarget( + (ChipClusters.TargetNavigatorCluster.NavigateTargetResponseCallback) callback, + (Integer) commandArguments.get("target"), + (String) commandArguments.get("data")); + }, + () -> new DelegatedNavigateTargetResponseCallback(), + targetNavigatornavigateTargetCommandParams); + targetNavigatorClusterCommandInfoMap.put( + "navigateTarget", targetNavigatornavigateTargetCommandInfo); + // Populate cluster + ClusterInfo targetNavigatorClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.TargetNavigatorCluster(ptr, endpointId), + targetNavigatorClusterCommandInfoMap); + clusterMap.put("targetNavigator", targetNavigatorClusterInfo); + Map temperatureMeasurementClusterCommandInfoMap = new LinkedHashMap<>(); + // Populate cluster + ClusterInfo temperatureMeasurementClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.TemperatureMeasurementCluster(ptr, endpointId), + temperatureMeasurementClusterCommandInfoMap); + clusterMap.put("temperatureMeasurement", temperatureMeasurementClusterInfo); + Map testClusterClusterCommandInfoMap = new LinkedHashMap<>(); + Map testClustertestCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo testClustertestCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TestClusterCluster) cluster).test((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + testClustertestCommandParams); + testClusterClusterCommandInfoMap.put("test", testClustertestCommandInfo); + Map testClustertestAddArgumentsCommandParams = + new LinkedHashMap(); + CommandParameterInfo testClustertestAddArgumentsarg1CommandParameterInfo = + new CommandParameterInfo("arg1", int.class); + testClustertestAddArgumentsCommandParams.put( + "arg1", testClustertestAddArgumentsarg1CommandParameterInfo); + + CommandParameterInfo testClustertestAddArgumentsarg2CommandParameterInfo = + new CommandParameterInfo("arg2", int.class); + testClustertestAddArgumentsCommandParams.put( + "arg2", testClustertestAddArgumentsarg2CommandParameterInfo); + + // Populate commands + CommandInfo testClustertestAddArgumentsCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TestClusterCluster) cluster) + .testAddArguments( + (ChipClusters.TestClusterCluster.TestAddArgumentsResponseCallback) callback, + (Integer) commandArguments.get("arg1"), + (Integer) commandArguments.get("arg2")); + }, + () -> new DelegatedTestAddArgumentsResponseCallback(), + testClustertestAddArgumentsCommandParams); + testClusterClusterCommandInfoMap.put( + "testAddArguments", testClustertestAddArgumentsCommandInfo); + Map testClustertestEnumsRequestCommandParams = + new LinkedHashMap(); + CommandParameterInfo testClustertestEnumsRequestarg1CommandParameterInfo = + new CommandParameterInfo("arg1", int.class); + testClustertestEnumsRequestCommandParams.put( + "arg1", testClustertestEnumsRequestarg1CommandParameterInfo); + + CommandParameterInfo testClustertestEnumsRequestarg2CommandParameterInfo = + new CommandParameterInfo("arg2", int.class); + testClustertestEnumsRequestCommandParams.put( + "arg2", testClustertestEnumsRequestarg2CommandParameterInfo); + + // Populate commands + CommandInfo testClustertestEnumsRequestCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TestClusterCluster) cluster) + .testEnumsRequest( + (ChipClusters.TestClusterCluster.TestEnumsResponseCallback) callback, + (Integer) commandArguments.get("arg1"), + (Integer) commandArguments.get("arg2")); + }, + () -> new DelegatedTestEnumsResponseCallback(), + testClustertestEnumsRequestCommandParams); + testClusterClusterCommandInfoMap.put( + "testEnumsRequest", testClustertestEnumsRequestCommandInfo); + Map testClustertestListInt8UArgumentRequestCommandParams = + new LinkedHashMap(); + CommandParameterInfo testClustertestListInt8UArgumentRequestarg1CommandParameterInfo = + new CommandParameterInfo("arg1", int.class); + testClustertestListInt8UArgumentRequestCommandParams.put( + "arg1", testClustertestListInt8UArgumentRequestarg1CommandParameterInfo); + + // Populate commands + CommandInfo testClustertestListInt8UArgumentRequestCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TestClusterCluster) cluster) + .testListInt8UArgumentRequest( + (ChipClusters.TestClusterCluster.BooleanResponseCallback) callback, + (Integer) commandArguments.get("arg1")); + }, + () -> new DelegatedBooleanResponseCallback(), + testClustertestListInt8UArgumentRequestCommandParams); + testClusterClusterCommandInfoMap.put( + "testListInt8UArgumentRequest", testClustertestListInt8UArgumentRequestCommandInfo); + Map testClustertestListInt8UReverseRequestCommandParams = + new LinkedHashMap(); + CommandParameterInfo testClustertestListInt8UReverseRequestarg1CommandParameterInfo = + new CommandParameterInfo("arg1", int.class); + testClustertestListInt8UReverseRequestCommandParams.put( + "arg1", testClustertestListInt8UReverseRequestarg1CommandParameterInfo); + + // Populate commands + CommandInfo testClustertestListInt8UReverseRequestCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TestClusterCluster) cluster) + .testListInt8UReverseRequest( + (ChipClusters.TestClusterCluster.TestListInt8UReverseResponseCallback) + callback, + (Integer) commandArguments.get("arg1")); + }, + () -> new DelegatedTestListInt8UReverseResponseCallback(), + testClustertestListInt8UReverseRequestCommandParams); + testClusterClusterCommandInfoMap.put( + "testListInt8UReverseRequest", testClustertestListInt8UReverseRequestCommandInfo); + Map testClustertestListStructArgumentRequestCommandParams = + new LinkedHashMap(); + CommandParameterInfo testClustertestListStructArgumentRequestaCommandParameterInfo = + new CommandParameterInfo("a", int.class); + testClustertestListStructArgumentRequestCommandParams.put( + "a", testClustertestListStructArgumentRequestaCommandParameterInfo); + + CommandParameterInfo testClustertestListStructArgumentRequestbCommandParameterInfo = + new CommandParameterInfo("b", boolean.class); + testClustertestListStructArgumentRequestCommandParams.put( + "b", testClustertestListStructArgumentRequestbCommandParameterInfo); + + CommandParameterInfo testClustertestListStructArgumentRequestcCommandParameterInfo = + new CommandParameterInfo("c", int.class); + testClustertestListStructArgumentRequestCommandParams.put( + "c", testClustertestListStructArgumentRequestcCommandParameterInfo); + + CommandParameterInfo testClustertestListStructArgumentRequestdCommandParameterInfo = + new CommandParameterInfo("d", byte[].class); + testClustertestListStructArgumentRequestCommandParams.put( + "d", testClustertestListStructArgumentRequestdCommandParameterInfo); + + CommandParameterInfo testClustertestListStructArgumentRequesteCommandParameterInfo = + new CommandParameterInfo("e", String.class); + testClustertestListStructArgumentRequestCommandParams.put( + "e", testClustertestListStructArgumentRequesteCommandParameterInfo); + + CommandParameterInfo testClustertestListStructArgumentRequestfCommandParameterInfo = + new CommandParameterInfo("f", int.class); + testClustertestListStructArgumentRequestCommandParams.put( + "f", testClustertestListStructArgumentRequestfCommandParameterInfo); + + // Populate commands + CommandInfo testClustertestListStructArgumentRequestCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TestClusterCluster) cluster) + .testListStructArgumentRequest( + (ChipClusters.TestClusterCluster.BooleanResponseCallback) callback, + (Integer) commandArguments.get("a"), + (Boolean) commandArguments.get("b"), + (Integer) commandArguments.get("c"), + (byte[]) commandArguments.get("d"), + (String) commandArguments.get("e"), + (Integer) commandArguments.get("f")); + }, + () -> new DelegatedBooleanResponseCallback(), + testClustertestListStructArgumentRequestCommandParams); + testClusterClusterCommandInfoMap.put( + "testListStructArgumentRequest", testClustertestListStructArgumentRequestCommandInfo); + Map testClustertestNotHandledCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo testClustertestNotHandledCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TestClusterCluster) cluster) + .testNotHandled((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + testClustertestNotHandledCommandParams); + testClusterClusterCommandInfoMap.put("testNotHandled", testClustertestNotHandledCommandInfo); + Map testClustertestNullableOptionalRequestCommandParams = + new LinkedHashMap(); + CommandParameterInfo testClustertestNullableOptionalRequestarg1CommandParameterInfo = + new CommandParameterInfo("arg1", int.class); + testClustertestNullableOptionalRequestCommandParams.put( + "arg1", testClustertestNullableOptionalRequestarg1CommandParameterInfo); + + // Populate commands + CommandInfo testClustertestNullableOptionalRequestCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TestClusterCluster) cluster) + .testNullableOptionalRequest( + (ChipClusters.TestClusterCluster.TestNullableOptionalResponseCallback) + callback, + (Integer) commandArguments.get("arg1")); + }, + () -> new DelegatedTestNullableOptionalResponseCallback(), + testClustertestNullableOptionalRequestCommandParams); + testClusterClusterCommandInfoMap.put( + "testNullableOptionalRequest", testClustertestNullableOptionalRequestCommandInfo); + Map testClustertestSpecificCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo testClustertestSpecificCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TestClusterCluster) cluster) + .testSpecific( + (ChipClusters.TestClusterCluster.TestSpecificResponseCallback) callback); + }, + () -> new DelegatedTestSpecificResponseCallback(), + testClustertestSpecificCommandParams); + testClusterClusterCommandInfoMap.put("testSpecific", testClustertestSpecificCommandInfo); + Map testClustertestStructArgumentRequestCommandParams = + new LinkedHashMap(); + CommandParameterInfo testClustertestStructArgumentRequestaCommandParameterInfo = + new CommandParameterInfo("a", int.class); + testClustertestStructArgumentRequestCommandParams.put( + "a", testClustertestStructArgumentRequestaCommandParameterInfo); + + CommandParameterInfo testClustertestStructArgumentRequestbCommandParameterInfo = + new CommandParameterInfo("b", boolean.class); + testClustertestStructArgumentRequestCommandParams.put( + "b", testClustertestStructArgumentRequestbCommandParameterInfo); + + CommandParameterInfo testClustertestStructArgumentRequestcCommandParameterInfo = + new CommandParameterInfo("c", int.class); + testClustertestStructArgumentRequestCommandParams.put( + "c", testClustertestStructArgumentRequestcCommandParameterInfo); + + CommandParameterInfo testClustertestStructArgumentRequestdCommandParameterInfo = + new CommandParameterInfo("d", byte[].class); + testClustertestStructArgumentRequestCommandParams.put( + "d", testClustertestStructArgumentRequestdCommandParameterInfo); + + CommandParameterInfo testClustertestStructArgumentRequesteCommandParameterInfo = + new CommandParameterInfo("e", String.class); + testClustertestStructArgumentRequestCommandParams.put( + "e", testClustertestStructArgumentRequesteCommandParameterInfo); + + CommandParameterInfo testClustertestStructArgumentRequestfCommandParameterInfo = + new CommandParameterInfo("f", int.class); + testClustertestStructArgumentRequestCommandParams.put( + "f", testClustertestStructArgumentRequestfCommandParameterInfo); + + // Populate commands + CommandInfo testClustertestStructArgumentRequestCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TestClusterCluster) cluster) + .testStructArgumentRequest( + (ChipClusters.TestClusterCluster.BooleanResponseCallback) callback, + (Integer) commandArguments.get("a"), + (Boolean) commandArguments.get("b"), + (Integer) commandArguments.get("c"), + (byte[]) commandArguments.get("d"), + (String) commandArguments.get("e"), + (Integer) commandArguments.get("f")); + }, + () -> new DelegatedBooleanResponseCallback(), + testClustertestStructArgumentRequestCommandParams); + testClusterClusterCommandInfoMap.put( + "testStructArgumentRequest", testClustertestStructArgumentRequestCommandInfo); + Map testClustertestUnknownCommandCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo testClustertestUnknownCommandCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TestClusterCluster) cluster) + .testUnknownCommand((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + testClustertestUnknownCommandCommandParams); + testClusterClusterCommandInfoMap.put( + "testUnknownCommand", testClustertestUnknownCommandCommandInfo); + // Populate cluster + ClusterInfo testClusterClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.TestClusterCluster(ptr, endpointId), + testClusterClusterCommandInfoMap); + clusterMap.put("testCluster", testClusterClusterInfo); + Map thermostatClusterCommandInfoMap = new LinkedHashMap<>(); + Map thermostatclearWeeklyScheduleCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo thermostatclearWeeklyScheduleCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .clearWeeklySchedule((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + thermostatclearWeeklyScheduleCommandParams); + thermostatClusterCommandInfoMap.put( + "clearWeeklySchedule", thermostatclearWeeklyScheduleCommandInfo); + Map thermostatgetRelayStatusLogCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo thermostatgetRelayStatusLogCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .getRelayStatusLog((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + thermostatgetRelayStatusLogCommandParams); + thermostatClusterCommandInfoMap.put( + "getRelayStatusLog", thermostatgetRelayStatusLogCommandInfo); + Map thermostatgetWeeklyScheduleCommandParams = + new LinkedHashMap(); + CommandParameterInfo thermostatgetWeeklyScheduledaysToReturnCommandParameterInfo = + new CommandParameterInfo("daysToReturn", int.class); + thermostatgetWeeklyScheduleCommandParams.put( + "daysToReturn", thermostatgetWeeklyScheduledaysToReturnCommandParameterInfo); + + CommandParameterInfo thermostatgetWeeklySchedulemodeToReturnCommandParameterInfo = + new CommandParameterInfo("modeToReturn", int.class); + thermostatgetWeeklyScheduleCommandParams.put( + "modeToReturn", thermostatgetWeeklySchedulemodeToReturnCommandParameterInfo); + + // Populate commands + CommandInfo thermostatgetWeeklyScheduleCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .getWeeklySchedule( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("daysToReturn"), + (Integer) commandArguments.get("modeToReturn")); + }, + () -> new DelegatedDefaultClusterCallback(), + thermostatgetWeeklyScheduleCommandParams); + thermostatClusterCommandInfoMap.put( + "getWeeklySchedule", thermostatgetWeeklyScheduleCommandInfo); + Map thermostatsetWeeklyScheduleCommandParams = + new LinkedHashMap(); + CommandParameterInfo + thermostatsetWeeklySchedulenumberOfTransitionsForSequenceCommandParameterInfo = + new CommandParameterInfo("numberOfTransitionsForSequence", int.class); + thermostatsetWeeklyScheduleCommandParams.put( + "numberOfTransitionsForSequence", + thermostatsetWeeklySchedulenumberOfTransitionsForSequenceCommandParameterInfo); + + CommandParameterInfo thermostatsetWeeklyScheduledayOfWeekForSequenceCommandParameterInfo = + new CommandParameterInfo("dayOfWeekForSequence", int.class); + thermostatsetWeeklyScheduleCommandParams.put( + "dayOfWeekForSequence", + thermostatsetWeeklyScheduledayOfWeekForSequenceCommandParameterInfo); + + CommandParameterInfo thermostatsetWeeklySchedulemodeForSequenceCommandParameterInfo = + new CommandParameterInfo("modeForSequence", int.class); + thermostatsetWeeklyScheduleCommandParams.put( + "modeForSequence", thermostatsetWeeklySchedulemodeForSequenceCommandParameterInfo); + + CommandParameterInfo thermostatsetWeeklySchedulepayloadCommandParameterInfo = + new CommandParameterInfo("payload", int.class); + thermostatsetWeeklyScheduleCommandParams.put( + "payload", thermostatsetWeeklySchedulepayloadCommandParameterInfo); + + // Populate commands + CommandInfo thermostatsetWeeklyScheduleCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .setWeeklySchedule( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("numberOfTransitionsForSequence"), + (Integer) commandArguments.get("dayOfWeekForSequence"), + (Integer) commandArguments.get("modeForSequence"), + (Integer) commandArguments.get("payload")); + }, + () -> new DelegatedDefaultClusterCallback(), + thermostatsetWeeklyScheduleCommandParams); + thermostatClusterCommandInfoMap.put( + "setWeeklySchedule", thermostatsetWeeklyScheduleCommandInfo); + Map thermostatsetpointRaiseLowerCommandParams = + new LinkedHashMap(); + CommandParameterInfo thermostatsetpointRaiseLowermodeCommandParameterInfo = + new CommandParameterInfo("mode", int.class); + thermostatsetpointRaiseLowerCommandParams.put( + "mode", thermostatsetpointRaiseLowermodeCommandParameterInfo); + + CommandParameterInfo thermostatsetpointRaiseLoweramountCommandParameterInfo = + new CommandParameterInfo("amount", int.class); + thermostatsetpointRaiseLowerCommandParams.put( + "amount", thermostatsetpointRaiseLoweramountCommandParameterInfo); + + // Populate commands + CommandInfo thermostatsetpointRaiseLowerCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .setpointRaiseLower( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("mode"), + (Integer) commandArguments.get("amount")); + }, + () -> new DelegatedDefaultClusterCallback(), + thermostatsetpointRaiseLowerCommandParams); + thermostatClusterCommandInfoMap.put( + "setpointRaiseLower", thermostatsetpointRaiseLowerCommandInfo); + // Populate cluster + ClusterInfo thermostatClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.ThermostatCluster(ptr, endpointId), + thermostatClusterCommandInfoMap); + clusterMap.put("thermostat", thermostatClusterInfo); + Map thermostatUserInterfaceConfigurationClusterCommandInfoMap = + new LinkedHashMap<>(); + // Populate cluster + ClusterInfo thermostatUserInterfaceConfigurationClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> + new ChipClusters.ThermostatUserInterfaceConfigurationCluster(ptr, endpointId), + thermostatUserInterfaceConfigurationClusterCommandInfoMap); + clusterMap.put( + "thermostatUserInterfaceConfiguration", thermostatUserInterfaceConfigurationClusterInfo); + Map threadNetworkDiagnosticsClusterCommandInfoMap = new LinkedHashMap<>(); + Map threadNetworkDiagnosticsresetCountsCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo threadNetworkDiagnosticsresetCountsCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .resetCounts((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + threadNetworkDiagnosticsresetCountsCommandParams); + threadNetworkDiagnosticsClusterCommandInfoMap.put( + "resetCounts", threadNetworkDiagnosticsresetCountsCommandInfo); + // Populate cluster + ClusterInfo threadNetworkDiagnosticsClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.ThreadNetworkDiagnosticsCluster(ptr, endpointId), + threadNetworkDiagnosticsClusterCommandInfoMap); + clusterMap.put("threadNetworkDiagnostics", threadNetworkDiagnosticsClusterInfo); + Map wakeOnLanClusterCommandInfoMap = new LinkedHashMap<>(); + // Populate cluster + ClusterInfo wakeOnLanClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.WakeOnLanCluster(ptr, endpointId), + wakeOnLanClusterCommandInfoMap); + clusterMap.put("wakeOnLan", wakeOnLanClusterInfo); + Map wiFiNetworkDiagnosticsClusterCommandInfoMap = new LinkedHashMap<>(); + Map wiFiNetworkDiagnosticsresetCountsCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo wiFiNetworkDiagnosticsresetCountsCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WiFiNetworkDiagnosticsCluster) cluster) + .resetCounts((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + wiFiNetworkDiagnosticsresetCountsCommandParams); + wiFiNetworkDiagnosticsClusterCommandInfoMap.put( + "resetCounts", wiFiNetworkDiagnosticsresetCountsCommandInfo); + // Populate cluster + ClusterInfo wiFiNetworkDiagnosticsClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.WiFiNetworkDiagnosticsCluster(ptr, endpointId), + wiFiNetworkDiagnosticsClusterCommandInfoMap); + clusterMap.put("wiFiNetworkDiagnostics", wiFiNetworkDiagnosticsClusterInfo); + Map windowCoveringClusterCommandInfoMap = new LinkedHashMap<>(); + Map windowCoveringdownOrCloseCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo windowCoveringdownOrCloseCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WindowCoveringCluster) cluster) + .downOrClose((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + windowCoveringdownOrCloseCommandParams); + windowCoveringClusterCommandInfoMap.put("downOrClose", windowCoveringdownOrCloseCommandInfo); + Map windowCoveringgoToLiftPercentageCommandParams = + new LinkedHashMap(); + CommandParameterInfo windowCoveringgoToLiftPercentageliftPercentageValueCommandParameterInfo = + new CommandParameterInfo("liftPercentageValue", int.class); + windowCoveringgoToLiftPercentageCommandParams.put( + "liftPercentageValue", + windowCoveringgoToLiftPercentageliftPercentageValueCommandParameterInfo); + + CommandParameterInfo + windowCoveringgoToLiftPercentageliftPercent100thsValueCommandParameterInfo = + new CommandParameterInfo("liftPercent100thsValue", int.class); + windowCoveringgoToLiftPercentageCommandParams.put( + "liftPercent100thsValue", + windowCoveringgoToLiftPercentageliftPercent100thsValueCommandParameterInfo); + + // Populate commands + CommandInfo windowCoveringgoToLiftPercentageCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WindowCoveringCluster) cluster) + .goToLiftPercentage( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("liftPercentageValue"), + (Integer) commandArguments.get("liftPercent100thsValue")); + }, + () -> new DelegatedDefaultClusterCallback(), + windowCoveringgoToLiftPercentageCommandParams); + windowCoveringClusterCommandInfoMap.put( + "goToLiftPercentage", windowCoveringgoToLiftPercentageCommandInfo); + Map windowCoveringgoToLiftValueCommandParams = + new LinkedHashMap(); + CommandParameterInfo windowCoveringgoToLiftValueliftValueCommandParameterInfo = + new CommandParameterInfo("liftValue", int.class); + windowCoveringgoToLiftValueCommandParams.put( + "liftValue", windowCoveringgoToLiftValueliftValueCommandParameterInfo); + + // Populate commands + CommandInfo windowCoveringgoToLiftValueCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WindowCoveringCluster) cluster) + .goToLiftValue( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("liftValue")); + }, + () -> new DelegatedDefaultClusterCallback(), + windowCoveringgoToLiftValueCommandParams); + windowCoveringClusterCommandInfoMap.put( + "goToLiftValue", windowCoveringgoToLiftValueCommandInfo); + Map windowCoveringgoToTiltPercentageCommandParams = + new LinkedHashMap(); + CommandParameterInfo windowCoveringgoToTiltPercentagetiltPercentageValueCommandParameterInfo = + new CommandParameterInfo("tiltPercentageValue", int.class); + windowCoveringgoToTiltPercentageCommandParams.put( + "tiltPercentageValue", + windowCoveringgoToTiltPercentagetiltPercentageValueCommandParameterInfo); + + CommandParameterInfo + windowCoveringgoToTiltPercentagetiltPercent100thsValueCommandParameterInfo = + new CommandParameterInfo("tiltPercent100thsValue", int.class); + windowCoveringgoToTiltPercentageCommandParams.put( + "tiltPercent100thsValue", + windowCoveringgoToTiltPercentagetiltPercent100thsValueCommandParameterInfo); + + // Populate commands + CommandInfo windowCoveringgoToTiltPercentageCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WindowCoveringCluster) cluster) + .goToTiltPercentage( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("tiltPercentageValue"), + (Integer) commandArguments.get("tiltPercent100thsValue")); + }, + () -> new DelegatedDefaultClusterCallback(), + windowCoveringgoToTiltPercentageCommandParams); + windowCoveringClusterCommandInfoMap.put( + "goToTiltPercentage", windowCoveringgoToTiltPercentageCommandInfo); + Map windowCoveringgoToTiltValueCommandParams = + new LinkedHashMap(); + CommandParameterInfo windowCoveringgoToTiltValuetiltValueCommandParameterInfo = + new CommandParameterInfo("tiltValue", int.class); + windowCoveringgoToTiltValueCommandParams.put( + "tiltValue", windowCoveringgoToTiltValuetiltValueCommandParameterInfo); + + // Populate commands + CommandInfo windowCoveringgoToTiltValueCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WindowCoveringCluster) cluster) + .goToTiltValue( + (DefaultClusterCallback) callback, + (Integer) commandArguments.get("tiltValue")); + }, + () -> new DelegatedDefaultClusterCallback(), + windowCoveringgoToTiltValueCommandParams); + windowCoveringClusterCommandInfoMap.put( + "goToTiltValue", windowCoveringgoToTiltValueCommandInfo); + Map windowCoveringstopMotionCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo windowCoveringstopMotionCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WindowCoveringCluster) cluster) + .stopMotion((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + windowCoveringstopMotionCommandParams); + windowCoveringClusterCommandInfoMap.put("stopMotion", windowCoveringstopMotionCommandInfo); + Map windowCoveringupOrOpenCommandParams = + new LinkedHashMap(); + // Populate commands + CommandInfo windowCoveringupOrOpenCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WindowCoveringCluster) cluster) + .upOrOpen((DefaultClusterCallback) callback); + }, + () -> new DelegatedDefaultClusterCallback(), + windowCoveringupOrOpenCommandParams); + windowCoveringClusterCommandInfoMap.put("upOrOpen", windowCoveringupOrOpenCommandInfo); + // Populate cluster + ClusterInfo windowCoveringClusterInfo = + new ClusterInfo( + (ptr, endpointId) -> new ChipClusters.WindowCoveringCluster(ptr, endpointId), + windowCoveringClusterCommandInfoMap); + clusterMap.put("windowCovering", windowCoveringClusterInfo); + return clusterMap; + } + + public Map getReadAttributeMap(Map clusterMap) { + Map readAccountLoginCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readAccountLoginClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readAccountLoginClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.AccountLoginCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readAccountLoginClusterRevisionCommandParams); + readAccountLoginCommandInfo.put( + "readClusterRevisionAttribute", readAccountLoginClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("accountLogin").combineCommands(readAccountLoginCommandInfo); + Map readAdministratorCommissioningCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readAdministratorCommissioningClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readAdministratorCommissioningClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.AdministratorCommissioningCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readAdministratorCommissioningClusterRevisionCommandParams); + readAdministratorCommissioningCommandInfo.put( + "readClusterRevisionAttribute", + readAdministratorCommissioningClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap + .get("administratorCommissioning") + .combineCommands(readAdministratorCommissioningCommandInfo); + Map readApplicationBasicCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readApplicationBasicVendorNameCommandParams = + new LinkedHashMap(); + CommandInfo readApplicationBasicVendorNameAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ApplicationBasicCluster) cluster) + .readVendorNameAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readApplicationBasicVendorNameCommandParams); + readApplicationBasicCommandInfo.put( + "readVendorNameAttribute", readApplicationBasicVendorNameAttributeCommandInfo); + Map readApplicationBasicVendorIdCommandParams = + new LinkedHashMap(); + CommandInfo readApplicationBasicVendorIdAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ApplicationBasicCluster) cluster) + .readVendorIdAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readApplicationBasicVendorIdCommandParams); + readApplicationBasicCommandInfo.put( + "readVendorIdAttribute", readApplicationBasicVendorIdAttributeCommandInfo); + Map readApplicationBasicApplicationNameCommandParams = + new LinkedHashMap(); + CommandInfo readApplicationBasicApplicationNameAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ApplicationBasicCluster) cluster) + .readApplicationNameAttribute( + (ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readApplicationBasicApplicationNameCommandParams); + readApplicationBasicCommandInfo.put( + "readApplicationNameAttribute", readApplicationBasicApplicationNameAttributeCommandInfo); + Map readApplicationBasicProductIdCommandParams = + new LinkedHashMap(); + CommandInfo readApplicationBasicProductIdAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ApplicationBasicCluster) cluster) + .readProductIdAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readApplicationBasicProductIdCommandParams); + readApplicationBasicCommandInfo.put( + "readProductIdAttribute", readApplicationBasicProductIdAttributeCommandInfo); + Map readApplicationBasicApplicationIdCommandParams = + new LinkedHashMap(); + CommandInfo readApplicationBasicApplicationIdAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ApplicationBasicCluster) cluster) + .readApplicationIdAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readApplicationBasicApplicationIdCommandParams); + readApplicationBasicCommandInfo.put( + "readApplicationIdAttribute", readApplicationBasicApplicationIdAttributeCommandInfo); + Map readApplicationBasicCatalogVendorIdCommandParams = + new LinkedHashMap(); + CommandInfo readApplicationBasicCatalogVendorIdAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ApplicationBasicCluster) cluster) + .readCatalogVendorIdAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readApplicationBasicCatalogVendorIdCommandParams); + readApplicationBasicCommandInfo.put( + "readCatalogVendorIdAttribute", readApplicationBasicCatalogVendorIdAttributeCommandInfo); + Map readApplicationBasicApplicationStatusCommandParams = + new LinkedHashMap(); + CommandInfo readApplicationBasicApplicationStatusAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ApplicationBasicCluster) cluster) + .readApplicationStatusAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readApplicationBasicApplicationStatusCommandParams); + readApplicationBasicCommandInfo.put( + "readApplicationStatusAttribute", + readApplicationBasicApplicationStatusAttributeCommandInfo); + Map readApplicationBasicClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readApplicationBasicClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ApplicationBasicCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readApplicationBasicClusterRevisionCommandParams); + readApplicationBasicCommandInfo.put( + "readClusterRevisionAttribute", readApplicationBasicClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("applicationBasic").combineCommands(readApplicationBasicCommandInfo); + Map readApplicationLauncherCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readApplicationLauncherApplicationLauncherListCommandParams = + new LinkedHashMap(); + CommandInfo readApplicationLauncherApplicationLauncherListAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ApplicationLauncherCluster) cluster) + .readApplicationLauncherListAttribute( + (ChipClusters.ApplicationLauncherCluster + .ApplicationLauncherListAttributeCallback) + callback); + }, + () -> new DelegatedApplicationLauncherListAttributeCallback(), + readApplicationLauncherApplicationLauncherListCommandParams); + readApplicationLauncherCommandInfo.put( + "readApplicationLauncherListAttribute", + readApplicationLauncherApplicationLauncherListAttributeCommandInfo); + Map readApplicationLauncherCatalogVendorIdCommandParams = + new LinkedHashMap(); + CommandInfo readApplicationLauncherCatalogVendorIdAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ApplicationLauncherCluster) cluster) + .readCatalogVendorIdAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readApplicationLauncherCatalogVendorIdCommandParams); + readApplicationLauncherCommandInfo.put( + "readCatalogVendorIdAttribute", readApplicationLauncherCatalogVendorIdAttributeCommandInfo); + Map readApplicationLauncherApplicationIdCommandParams = + new LinkedHashMap(); + CommandInfo readApplicationLauncherApplicationIdAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ApplicationLauncherCluster) cluster) + .readApplicationIdAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readApplicationLauncherApplicationIdCommandParams); + readApplicationLauncherCommandInfo.put( + "readApplicationIdAttribute", readApplicationLauncherApplicationIdAttributeCommandInfo); + Map readApplicationLauncherClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readApplicationLauncherClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ApplicationLauncherCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readApplicationLauncherClusterRevisionCommandParams); + readApplicationLauncherCommandInfo.put( + "readClusterRevisionAttribute", readApplicationLauncherClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("applicationLauncher").combineCommands(readApplicationLauncherCommandInfo); + Map readAudioOutputCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readAudioOutputAudioOutputListCommandParams = + new LinkedHashMap(); + CommandInfo readAudioOutputAudioOutputListAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.AudioOutputCluster) cluster) + .readAudioOutputListAttribute( + (ChipClusters.AudioOutputCluster.AudioOutputListAttributeCallback) callback); + }, + () -> new DelegatedAudioOutputListAttributeCallback(), + readAudioOutputAudioOutputListCommandParams); + readAudioOutputCommandInfo.put( + "readAudioOutputListAttribute", readAudioOutputAudioOutputListAttributeCommandInfo); + Map readAudioOutputCurrentAudioOutputCommandParams = + new LinkedHashMap(); + CommandInfo readAudioOutputCurrentAudioOutputAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.AudioOutputCluster) cluster) + .readCurrentAudioOutputAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readAudioOutputCurrentAudioOutputCommandParams); + readAudioOutputCommandInfo.put( + "readCurrentAudioOutputAttribute", readAudioOutputCurrentAudioOutputAttributeCommandInfo); + Map readAudioOutputClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readAudioOutputClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.AudioOutputCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readAudioOutputClusterRevisionCommandParams); + readAudioOutputCommandInfo.put( + "readClusterRevisionAttribute", readAudioOutputClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("audioOutput").combineCommands(readAudioOutputCommandInfo); + Map readBarrierControlCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readBarrierControlBarrierMovingStateCommandParams = + new LinkedHashMap(); + CommandInfo readBarrierControlBarrierMovingStateAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BarrierControlCluster) cluster) + .readBarrierMovingStateAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBarrierControlBarrierMovingStateCommandParams); + readBarrierControlCommandInfo.put( + "readBarrierMovingStateAttribute", + readBarrierControlBarrierMovingStateAttributeCommandInfo); + Map readBarrierControlBarrierSafetyStatusCommandParams = + new LinkedHashMap(); + CommandInfo readBarrierControlBarrierSafetyStatusAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BarrierControlCluster) cluster) + .readBarrierSafetyStatusAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBarrierControlBarrierSafetyStatusCommandParams); + readBarrierControlCommandInfo.put( + "readBarrierSafetyStatusAttribute", + readBarrierControlBarrierSafetyStatusAttributeCommandInfo); + Map readBarrierControlBarrierCapabilitiesCommandParams = + new LinkedHashMap(); + CommandInfo readBarrierControlBarrierCapabilitiesAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BarrierControlCluster) cluster) + .readBarrierCapabilitiesAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBarrierControlBarrierCapabilitiesCommandParams); + readBarrierControlCommandInfo.put( + "readBarrierCapabilitiesAttribute", + readBarrierControlBarrierCapabilitiesAttributeCommandInfo); + Map readBarrierControlBarrierPositionCommandParams = + new LinkedHashMap(); + CommandInfo readBarrierControlBarrierPositionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BarrierControlCluster) cluster) + .readBarrierPositionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBarrierControlBarrierPositionCommandParams); + readBarrierControlCommandInfo.put( + "readBarrierPositionAttribute", readBarrierControlBarrierPositionAttributeCommandInfo); + Map readBarrierControlClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readBarrierControlClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BarrierControlCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBarrierControlClusterRevisionCommandParams); + readBarrierControlCommandInfo.put( + "readClusterRevisionAttribute", readBarrierControlClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("barrierControl").combineCommands(readBarrierControlCommandInfo); + Map readBasicCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readBasicInteractionModelVersionCommandParams = + new LinkedHashMap(); + CommandInfo readBasicInteractionModelVersionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readInteractionModelVersionAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBasicInteractionModelVersionCommandParams); + readBasicCommandInfo.put( + "readInteractionModelVersionAttribute", + readBasicInteractionModelVersionAttributeCommandInfo); + Map readBasicVendorNameCommandParams = + new LinkedHashMap(); + CommandInfo readBasicVendorNameAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readVendorNameAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBasicVendorNameCommandParams); + readBasicCommandInfo.put("readVendorNameAttribute", readBasicVendorNameAttributeCommandInfo); + Map readBasicVendorIDCommandParams = + new LinkedHashMap(); + CommandInfo readBasicVendorIDAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readVendorIDAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBasicVendorIDCommandParams); + readBasicCommandInfo.put("readVendorIDAttribute", readBasicVendorIDAttributeCommandInfo); + Map readBasicProductNameCommandParams = + new LinkedHashMap(); + CommandInfo readBasicProductNameAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readProductNameAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBasicProductNameCommandParams); + readBasicCommandInfo.put("readProductNameAttribute", readBasicProductNameAttributeCommandInfo); + Map readBasicProductIDCommandParams = + new LinkedHashMap(); + CommandInfo readBasicProductIDAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readProductIDAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBasicProductIDCommandParams); + readBasicCommandInfo.put("readProductIDAttribute", readBasicProductIDAttributeCommandInfo); + Map readBasicUserLabelCommandParams = + new LinkedHashMap(); + CommandInfo readBasicUserLabelAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readUserLabelAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBasicUserLabelCommandParams); + readBasicCommandInfo.put("readUserLabelAttribute", readBasicUserLabelAttributeCommandInfo); + Map readBasicLocationCommandParams = + new LinkedHashMap(); + CommandInfo readBasicLocationAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readLocationAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBasicLocationCommandParams); + readBasicCommandInfo.put("readLocationAttribute", readBasicLocationAttributeCommandInfo); + Map readBasicHardwareVersionCommandParams = + new LinkedHashMap(); + CommandInfo readBasicHardwareVersionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readHardwareVersionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBasicHardwareVersionCommandParams); + readBasicCommandInfo.put( + "readHardwareVersionAttribute", readBasicHardwareVersionAttributeCommandInfo); + Map readBasicHardwareVersionStringCommandParams = + new LinkedHashMap(); + CommandInfo readBasicHardwareVersionStringAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readHardwareVersionStringAttribute( + (ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBasicHardwareVersionStringCommandParams); + readBasicCommandInfo.put( + "readHardwareVersionStringAttribute", readBasicHardwareVersionStringAttributeCommandInfo); + Map readBasicSoftwareVersionCommandParams = + new LinkedHashMap(); + CommandInfo readBasicSoftwareVersionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readSoftwareVersionAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readBasicSoftwareVersionCommandParams); + readBasicCommandInfo.put( + "readSoftwareVersionAttribute", readBasicSoftwareVersionAttributeCommandInfo); + Map readBasicSoftwareVersionStringCommandParams = + new LinkedHashMap(); + CommandInfo readBasicSoftwareVersionStringAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readSoftwareVersionStringAttribute( + (ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBasicSoftwareVersionStringCommandParams); + readBasicCommandInfo.put( + "readSoftwareVersionStringAttribute", readBasicSoftwareVersionStringAttributeCommandInfo); + Map readBasicManufacturingDateCommandParams = + new LinkedHashMap(); + CommandInfo readBasicManufacturingDateAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readManufacturingDateAttribute( + (ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBasicManufacturingDateCommandParams); + readBasicCommandInfo.put( + "readManufacturingDateAttribute", readBasicManufacturingDateAttributeCommandInfo); + Map readBasicPartNumberCommandParams = + new LinkedHashMap(); + CommandInfo readBasicPartNumberAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readPartNumberAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBasicPartNumberCommandParams); + readBasicCommandInfo.put("readPartNumberAttribute", readBasicPartNumberAttributeCommandInfo); + Map readBasicProductURLCommandParams = + new LinkedHashMap(); + CommandInfo readBasicProductURLAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readProductURLAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBasicProductURLCommandParams); + readBasicCommandInfo.put("readProductURLAttribute", readBasicProductURLAttributeCommandInfo); + Map readBasicProductLabelCommandParams = + new LinkedHashMap(); + CommandInfo readBasicProductLabelAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readProductLabelAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBasicProductLabelCommandParams); + readBasicCommandInfo.put( + "readProductLabelAttribute", readBasicProductLabelAttributeCommandInfo); + Map readBasicSerialNumberCommandParams = + new LinkedHashMap(); + CommandInfo readBasicSerialNumberAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readSerialNumberAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBasicSerialNumberCommandParams); + readBasicCommandInfo.put( + "readSerialNumberAttribute", readBasicSerialNumberAttributeCommandInfo); + Map readBasicLocalConfigDisabledCommandParams = + new LinkedHashMap(); + CommandInfo readBasicLocalConfigDisabledAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readLocalConfigDisabledAttribute( + (ChipClusters.BooleanAttributeCallback) callback); + }, + () -> new DelegatedBooleanAttributeCallback(), + readBasicLocalConfigDisabledCommandParams); + readBasicCommandInfo.put( + "readLocalConfigDisabledAttribute", readBasicLocalConfigDisabledAttributeCommandInfo); + Map readBasicReachableCommandParams = + new LinkedHashMap(); + CommandInfo readBasicReachableAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readReachableAttribute((ChipClusters.BooleanAttributeCallback) callback); + }, + () -> new DelegatedBooleanAttributeCallback(), + readBasicReachableCommandParams); + readBasicCommandInfo.put("readReachableAttribute", readBasicReachableAttributeCommandInfo); + Map readBasicClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readBasicClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BasicCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBasicClusterRevisionCommandParams); + readBasicCommandInfo.put( + "readClusterRevisionAttribute", readBasicClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("basic").combineCommands(readBasicCommandInfo); + Map readBinaryInputBasicCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readBinaryInputBasicOutOfServiceCommandParams = + new LinkedHashMap(); + CommandInfo readBinaryInputBasicOutOfServiceAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BinaryInputBasicCluster) cluster) + .readOutOfServiceAttribute((ChipClusters.BooleanAttributeCallback) callback); + }, + () -> new DelegatedBooleanAttributeCallback(), + readBinaryInputBasicOutOfServiceCommandParams); + readBinaryInputBasicCommandInfo.put( + "readOutOfServiceAttribute", readBinaryInputBasicOutOfServiceAttributeCommandInfo); + Map readBinaryInputBasicPresentValueCommandParams = + new LinkedHashMap(); + CommandInfo readBinaryInputBasicPresentValueAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BinaryInputBasicCluster) cluster) + .readPresentValueAttribute((ChipClusters.BooleanAttributeCallback) callback); + }, + () -> new DelegatedBooleanAttributeCallback(), + readBinaryInputBasicPresentValueCommandParams); + readBinaryInputBasicCommandInfo.put( + "readPresentValueAttribute", readBinaryInputBasicPresentValueAttributeCommandInfo); + Map readBinaryInputBasicStatusFlagsCommandParams = + new LinkedHashMap(); + CommandInfo readBinaryInputBasicStatusFlagsAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BinaryInputBasicCluster) cluster) + .readStatusFlagsAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBinaryInputBasicStatusFlagsCommandParams); + readBinaryInputBasicCommandInfo.put( + "readStatusFlagsAttribute", readBinaryInputBasicStatusFlagsAttributeCommandInfo); + Map readBinaryInputBasicClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readBinaryInputBasicClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BinaryInputBasicCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBinaryInputBasicClusterRevisionCommandParams); + readBinaryInputBasicCommandInfo.put( + "readClusterRevisionAttribute", readBinaryInputBasicClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("binaryInputBasic").combineCommands(readBinaryInputBasicCommandInfo); + Map readBindingCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readBindingClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readBindingClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BindingCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBindingClusterRevisionCommandParams); + readBindingCommandInfo.put( + "readClusterRevisionAttribute", readBindingClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("binding").combineCommands(readBindingCommandInfo); + Map readBooleanStateCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readBooleanStateStateValueCommandParams = + new LinkedHashMap(); + CommandInfo readBooleanStateStateValueAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BooleanStateCluster) cluster) + .readStateValueAttribute((ChipClusters.BooleanAttributeCallback) callback); + }, + () -> new DelegatedBooleanAttributeCallback(), + readBooleanStateStateValueCommandParams); + readBooleanStateCommandInfo.put( + "readStateValueAttribute", readBooleanStateStateValueAttributeCommandInfo); + Map readBooleanStateClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readBooleanStateClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BooleanStateCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBooleanStateClusterRevisionCommandParams); + readBooleanStateCommandInfo.put( + "readClusterRevisionAttribute", readBooleanStateClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("booleanState").combineCommands(readBooleanStateCommandInfo); + Map readBridgedActionsCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readBridgedActionsActionListCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedActionsActionListAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedActionsCluster) cluster) + .readActionListAttribute( + (ChipClusters.BridgedActionsCluster.ActionListAttributeCallback) callback); + }, + () -> new DelegatedActionListAttributeCallback(), + readBridgedActionsActionListCommandParams); + readBridgedActionsCommandInfo.put( + "readActionListAttribute", readBridgedActionsActionListAttributeCommandInfo); + Map readBridgedActionsEndpointListCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedActionsEndpointListAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedActionsCluster) cluster) + .readEndpointListAttribute( + (ChipClusters.BridgedActionsCluster.EndpointListAttributeCallback) callback); + }, + () -> new DelegatedEndpointListAttributeCallback(), + readBridgedActionsEndpointListCommandParams); + readBridgedActionsCommandInfo.put( + "readEndpointListAttribute", readBridgedActionsEndpointListAttributeCommandInfo); + Map readBridgedActionsSetupUrlCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedActionsSetupUrlAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedActionsCluster) cluster) + .readSetupUrlAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBridgedActionsSetupUrlCommandParams); + readBridgedActionsCommandInfo.put( + "readSetupUrlAttribute", readBridgedActionsSetupUrlAttributeCommandInfo); + Map readBridgedActionsClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedActionsClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedActionsCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBridgedActionsClusterRevisionCommandParams); + readBridgedActionsCommandInfo.put( + "readClusterRevisionAttribute", readBridgedActionsClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("bridgedActions").combineCommands(readBridgedActionsCommandInfo); + Map readBridgedDeviceBasicCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readBridgedDeviceBasicVendorNameCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedDeviceBasicVendorNameAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedDeviceBasicCluster) cluster) + .readVendorNameAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBridgedDeviceBasicVendorNameCommandParams); + readBridgedDeviceBasicCommandInfo.put( + "readVendorNameAttribute", readBridgedDeviceBasicVendorNameAttributeCommandInfo); + Map readBridgedDeviceBasicVendorIDCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedDeviceBasicVendorIDAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedDeviceBasicCluster) cluster) + .readVendorIDAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBridgedDeviceBasicVendorIDCommandParams); + readBridgedDeviceBasicCommandInfo.put( + "readVendorIDAttribute", readBridgedDeviceBasicVendorIDAttributeCommandInfo); + Map readBridgedDeviceBasicProductNameCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedDeviceBasicProductNameAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedDeviceBasicCluster) cluster) + .readProductNameAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBridgedDeviceBasicProductNameCommandParams); + readBridgedDeviceBasicCommandInfo.put( + "readProductNameAttribute", readBridgedDeviceBasicProductNameAttributeCommandInfo); + Map readBridgedDeviceBasicUserLabelCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedDeviceBasicUserLabelAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedDeviceBasicCluster) cluster) + .readUserLabelAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBridgedDeviceBasicUserLabelCommandParams); + readBridgedDeviceBasicCommandInfo.put( + "readUserLabelAttribute", readBridgedDeviceBasicUserLabelAttributeCommandInfo); + Map readBridgedDeviceBasicHardwareVersionCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedDeviceBasicHardwareVersionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedDeviceBasicCluster) cluster) + .readHardwareVersionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBridgedDeviceBasicHardwareVersionCommandParams); + readBridgedDeviceBasicCommandInfo.put( + "readHardwareVersionAttribute", readBridgedDeviceBasicHardwareVersionAttributeCommandInfo); + Map readBridgedDeviceBasicHardwareVersionStringCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedDeviceBasicHardwareVersionStringAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedDeviceBasicCluster) cluster) + .readHardwareVersionStringAttribute( + (ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBridgedDeviceBasicHardwareVersionStringCommandParams); + readBridgedDeviceBasicCommandInfo.put( + "readHardwareVersionStringAttribute", + readBridgedDeviceBasicHardwareVersionStringAttributeCommandInfo); + Map readBridgedDeviceBasicSoftwareVersionCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedDeviceBasicSoftwareVersionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedDeviceBasicCluster) cluster) + .readSoftwareVersionAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readBridgedDeviceBasicSoftwareVersionCommandParams); + readBridgedDeviceBasicCommandInfo.put( + "readSoftwareVersionAttribute", readBridgedDeviceBasicSoftwareVersionAttributeCommandInfo); + Map readBridgedDeviceBasicSoftwareVersionStringCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedDeviceBasicSoftwareVersionStringAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedDeviceBasicCluster) cluster) + .readSoftwareVersionStringAttribute( + (ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBridgedDeviceBasicSoftwareVersionStringCommandParams); + readBridgedDeviceBasicCommandInfo.put( + "readSoftwareVersionStringAttribute", + readBridgedDeviceBasicSoftwareVersionStringAttributeCommandInfo); + Map readBridgedDeviceBasicManufacturingDateCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedDeviceBasicManufacturingDateAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedDeviceBasicCluster) cluster) + .readManufacturingDateAttribute( + (ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBridgedDeviceBasicManufacturingDateCommandParams); + readBridgedDeviceBasicCommandInfo.put( + "readManufacturingDateAttribute", + readBridgedDeviceBasicManufacturingDateAttributeCommandInfo); + Map readBridgedDeviceBasicPartNumberCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedDeviceBasicPartNumberAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedDeviceBasicCluster) cluster) + .readPartNumberAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBridgedDeviceBasicPartNumberCommandParams); + readBridgedDeviceBasicCommandInfo.put( + "readPartNumberAttribute", readBridgedDeviceBasicPartNumberAttributeCommandInfo); + Map readBridgedDeviceBasicProductURLCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedDeviceBasicProductURLAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedDeviceBasicCluster) cluster) + .readProductURLAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBridgedDeviceBasicProductURLCommandParams); + readBridgedDeviceBasicCommandInfo.put( + "readProductURLAttribute", readBridgedDeviceBasicProductURLAttributeCommandInfo); + Map readBridgedDeviceBasicProductLabelCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedDeviceBasicProductLabelAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedDeviceBasicCluster) cluster) + .readProductLabelAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBridgedDeviceBasicProductLabelCommandParams); + readBridgedDeviceBasicCommandInfo.put( + "readProductLabelAttribute", readBridgedDeviceBasicProductLabelAttributeCommandInfo); + Map readBridgedDeviceBasicSerialNumberCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedDeviceBasicSerialNumberAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedDeviceBasicCluster) cluster) + .readSerialNumberAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readBridgedDeviceBasicSerialNumberCommandParams); + readBridgedDeviceBasicCommandInfo.put( + "readSerialNumberAttribute", readBridgedDeviceBasicSerialNumberAttributeCommandInfo); + Map readBridgedDeviceBasicReachableCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedDeviceBasicReachableAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedDeviceBasicCluster) cluster) + .readReachableAttribute((ChipClusters.BooleanAttributeCallback) callback); + }, + () -> new DelegatedBooleanAttributeCallback(), + readBridgedDeviceBasicReachableCommandParams); + readBridgedDeviceBasicCommandInfo.put( + "readReachableAttribute", readBridgedDeviceBasicReachableAttributeCommandInfo); + Map readBridgedDeviceBasicClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readBridgedDeviceBasicClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.BridgedDeviceBasicCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readBridgedDeviceBasicClusterRevisionCommandParams); + readBridgedDeviceBasicCommandInfo.put( + "readClusterRevisionAttribute", readBridgedDeviceBasicClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("bridgedDeviceBasic").combineCommands(readBridgedDeviceBasicCommandInfo); + Map readColorControlCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readColorControlCurrentHueCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlCurrentHueAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readCurrentHueAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlCurrentHueCommandParams); + readColorControlCommandInfo.put( + "readCurrentHueAttribute", readColorControlCurrentHueAttributeCommandInfo); + Map readColorControlCurrentSaturationCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlCurrentSaturationAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readCurrentSaturationAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlCurrentSaturationCommandParams); + readColorControlCommandInfo.put( + "readCurrentSaturationAttribute", readColorControlCurrentSaturationAttributeCommandInfo); + Map readColorControlRemainingTimeCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlRemainingTimeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readRemainingTimeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlRemainingTimeCommandParams); + readColorControlCommandInfo.put( + "readRemainingTimeAttribute", readColorControlRemainingTimeAttributeCommandInfo); + Map readColorControlCurrentXCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlCurrentXAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readCurrentXAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlCurrentXCommandParams); + readColorControlCommandInfo.put( + "readCurrentXAttribute", readColorControlCurrentXAttributeCommandInfo); + Map readColorControlCurrentYCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlCurrentYAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readCurrentYAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlCurrentYCommandParams); + readColorControlCommandInfo.put( + "readCurrentYAttribute", readColorControlCurrentYAttributeCommandInfo); + Map readColorControlDriftCompensationCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlDriftCompensationAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readDriftCompensationAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlDriftCompensationCommandParams); + readColorControlCommandInfo.put( + "readDriftCompensationAttribute", readColorControlDriftCompensationAttributeCommandInfo); + Map readColorControlCompensationTextCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlCompensationTextAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readCompensationTextAttribute( + (ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readColorControlCompensationTextCommandParams); + readColorControlCommandInfo.put( + "readCompensationTextAttribute", readColorControlCompensationTextAttributeCommandInfo); + Map readColorControlColorTemperatureCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorTemperatureAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorTemperatureAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorTemperatureCommandParams); + readColorControlCommandInfo.put( + "readColorTemperatureAttribute", readColorControlColorTemperatureAttributeCommandInfo); + Map readColorControlColorModeCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorModeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorModeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorModeCommandParams); + readColorControlCommandInfo.put( + "readColorModeAttribute", readColorControlColorModeAttributeCommandInfo); + Map readColorControlColorControlOptionsCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorControlOptionsAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorControlOptionsAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorControlOptionsCommandParams); + readColorControlCommandInfo.put( + "readColorControlOptionsAttribute", + readColorControlColorControlOptionsAttributeCommandInfo); + Map readColorControlNumberOfPrimariesCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlNumberOfPrimariesAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readNumberOfPrimariesAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlNumberOfPrimariesCommandParams); + readColorControlCommandInfo.put( + "readNumberOfPrimariesAttribute", readColorControlNumberOfPrimariesAttributeCommandInfo); + Map readColorControlPrimary1XCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary1XAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary1XAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary1XCommandParams); + readColorControlCommandInfo.put( + "readPrimary1XAttribute", readColorControlPrimary1XAttributeCommandInfo); + Map readColorControlPrimary1YCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary1YAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary1YAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary1YCommandParams); + readColorControlCommandInfo.put( + "readPrimary1YAttribute", readColorControlPrimary1YAttributeCommandInfo); + Map readColorControlPrimary1IntensityCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary1IntensityAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary1IntensityAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary1IntensityCommandParams); + readColorControlCommandInfo.put( + "readPrimary1IntensityAttribute", readColorControlPrimary1IntensityAttributeCommandInfo); + Map readColorControlPrimary2XCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary2XAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary2XAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary2XCommandParams); + readColorControlCommandInfo.put( + "readPrimary2XAttribute", readColorControlPrimary2XAttributeCommandInfo); + Map readColorControlPrimary2YCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary2YAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary2YAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary2YCommandParams); + readColorControlCommandInfo.put( + "readPrimary2YAttribute", readColorControlPrimary2YAttributeCommandInfo); + Map readColorControlPrimary2IntensityCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary2IntensityAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary2IntensityAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary2IntensityCommandParams); + readColorControlCommandInfo.put( + "readPrimary2IntensityAttribute", readColorControlPrimary2IntensityAttributeCommandInfo); + Map readColorControlPrimary3XCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary3XAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary3XAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary3XCommandParams); + readColorControlCommandInfo.put( + "readPrimary3XAttribute", readColorControlPrimary3XAttributeCommandInfo); + Map readColorControlPrimary3YCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary3YAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary3YAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary3YCommandParams); + readColorControlCommandInfo.put( + "readPrimary3YAttribute", readColorControlPrimary3YAttributeCommandInfo); + Map readColorControlPrimary3IntensityCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary3IntensityAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary3IntensityAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary3IntensityCommandParams); + readColorControlCommandInfo.put( + "readPrimary3IntensityAttribute", readColorControlPrimary3IntensityAttributeCommandInfo); + Map readColorControlPrimary4XCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary4XAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary4XAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary4XCommandParams); + readColorControlCommandInfo.put( + "readPrimary4XAttribute", readColorControlPrimary4XAttributeCommandInfo); + Map readColorControlPrimary4YCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary4YAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary4YAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary4YCommandParams); + readColorControlCommandInfo.put( + "readPrimary4YAttribute", readColorControlPrimary4YAttributeCommandInfo); + Map readColorControlPrimary4IntensityCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary4IntensityAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary4IntensityAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary4IntensityCommandParams); + readColorControlCommandInfo.put( + "readPrimary4IntensityAttribute", readColorControlPrimary4IntensityAttributeCommandInfo); + Map readColorControlPrimary5XCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary5XAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary5XAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary5XCommandParams); + readColorControlCommandInfo.put( + "readPrimary5XAttribute", readColorControlPrimary5XAttributeCommandInfo); + Map readColorControlPrimary5YCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary5YAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary5YAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary5YCommandParams); + readColorControlCommandInfo.put( + "readPrimary5YAttribute", readColorControlPrimary5YAttributeCommandInfo); + Map readColorControlPrimary5IntensityCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary5IntensityAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary5IntensityAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary5IntensityCommandParams); + readColorControlCommandInfo.put( + "readPrimary5IntensityAttribute", readColorControlPrimary5IntensityAttributeCommandInfo); + Map readColorControlPrimary6XCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary6XAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary6XAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary6XCommandParams); + readColorControlCommandInfo.put( + "readPrimary6XAttribute", readColorControlPrimary6XAttributeCommandInfo); + Map readColorControlPrimary6YCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary6YAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary6YAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary6YCommandParams); + readColorControlCommandInfo.put( + "readPrimary6YAttribute", readColorControlPrimary6YAttributeCommandInfo); + Map readColorControlPrimary6IntensityCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlPrimary6IntensityAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readPrimary6IntensityAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlPrimary6IntensityCommandParams); + readColorControlCommandInfo.put( + "readPrimary6IntensityAttribute", readColorControlPrimary6IntensityAttributeCommandInfo); + Map readColorControlWhitePointXCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlWhitePointXAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readWhitePointXAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlWhitePointXCommandParams); + readColorControlCommandInfo.put( + "readWhitePointXAttribute", readColorControlWhitePointXAttributeCommandInfo); + Map readColorControlWhitePointYCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlWhitePointYAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readWhitePointYAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlWhitePointYCommandParams); + readColorControlCommandInfo.put( + "readWhitePointYAttribute", readColorControlWhitePointYAttributeCommandInfo); + Map readColorControlColorPointRXCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorPointRXAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorPointRXAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorPointRXCommandParams); + readColorControlCommandInfo.put( + "readColorPointRXAttribute", readColorControlColorPointRXAttributeCommandInfo); + Map readColorControlColorPointRYCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorPointRYAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorPointRYAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorPointRYCommandParams); + readColorControlCommandInfo.put( + "readColorPointRYAttribute", readColorControlColorPointRYAttributeCommandInfo); + Map readColorControlColorPointRIntensityCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorPointRIntensityAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorPointRIntensityAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorPointRIntensityCommandParams); + readColorControlCommandInfo.put( + "readColorPointRIntensityAttribute", + readColorControlColorPointRIntensityAttributeCommandInfo); + Map readColorControlColorPointGXCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorPointGXAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorPointGXAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorPointGXCommandParams); + readColorControlCommandInfo.put( + "readColorPointGXAttribute", readColorControlColorPointGXAttributeCommandInfo); + Map readColorControlColorPointGYCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorPointGYAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorPointGYAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorPointGYCommandParams); + readColorControlCommandInfo.put( + "readColorPointGYAttribute", readColorControlColorPointGYAttributeCommandInfo); + Map readColorControlColorPointGIntensityCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorPointGIntensityAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorPointGIntensityAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorPointGIntensityCommandParams); + readColorControlCommandInfo.put( + "readColorPointGIntensityAttribute", + readColorControlColorPointGIntensityAttributeCommandInfo); + Map readColorControlColorPointBXCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorPointBXAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorPointBXAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorPointBXCommandParams); + readColorControlCommandInfo.put( + "readColorPointBXAttribute", readColorControlColorPointBXAttributeCommandInfo); + Map readColorControlColorPointBYCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorPointBYAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorPointBYAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorPointBYCommandParams); + readColorControlCommandInfo.put( + "readColorPointBYAttribute", readColorControlColorPointBYAttributeCommandInfo); + Map readColorControlColorPointBIntensityCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorPointBIntensityAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorPointBIntensityAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorPointBIntensityCommandParams); + readColorControlCommandInfo.put( + "readColorPointBIntensityAttribute", + readColorControlColorPointBIntensityAttributeCommandInfo); + Map readColorControlEnhancedCurrentHueCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlEnhancedCurrentHueAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readEnhancedCurrentHueAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlEnhancedCurrentHueCommandParams); + readColorControlCommandInfo.put( + "readEnhancedCurrentHueAttribute", readColorControlEnhancedCurrentHueAttributeCommandInfo); + Map readColorControlEnhancedColorModeCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlEnhancedColorModeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readEnhancedColorModeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlEnhancedColorModeCommandParams); + readColorControlCommandInfo.put( + "readEnhancedColorModeAttribute", readColorControlEnhancedColorModeAttributeCommandInfo); + Map readColorControlColorLoopActiveCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorLoopActiveAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorLoopActiveAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorLoopActiveCommandParams); + readColorControlCommandInfo.put( + "readColorLoopActiveAttribute", readColorControlColorLoopActiveAttributeCommandInfo); + Map readColorControlColorLoopDirectionCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorLoopDirectionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorLoopDirectionAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorLoopDirectionCommandParams); + readColorControlCommandInfo.put( + "readColorLoopDirectionAttribute", readColorControlColorLoopDirectionAttributeCommandInfo); + Map readColorControlColorLoopTimeCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorLoopTimeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorLoopTimeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorLoopTimeCommandParams); + readColorControlCommandInfo.put( + "readColorLoopTimeAttribute", readColorControlColorLoopTimeAttributeCommandInfo); + Map readColorControlColorLoopStartEnhancedHueCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorLoopStartEnhancedHueAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorLoopStartEnhancedHueAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorLoopStartEnhancedHueCommandParams); + readColorControlCommandInfo.put( + "readColorLoopStartEnhancedHueAttribute", + readColorControlColorLoopStartEnhancedHueAttributeCommandInfo); + Map readColorControlColorLoopStoredEnhancedHueCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorLoopStoredEnhancedHueAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorLoopStoredEnhancedHueAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorLoopStoredEnhancedHueCommandParams); + readColorControlCommandInfo.put( + "readColorLoopStoredEnhancedHueAttribute", + readColorControlColorLoopStoredEnhancedHueAttributeCommandInfo); + Map readColorControlColorCapabilitiesCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorCapabilitiesAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorCapabilitiesAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorCapabilitiesCommandParams); + readColorControlCommandInfo.put( + "readColorCapabilitiesAttribute", readColorControlColorCapabilitiesAttributeCommandInfo); + Map readColorControlColorTempPhysicalMinCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorTempPhysicalMinAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorTempPhysicalMinAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorTempPhysicalMinCommandParams); + readColorControlCommandInfo.put( + "readColorTempPhysicalMinAttribute", + readColorControlColorTempPhysicalMinAttributeCommandInfo); + Map readColorControlColorTempPhysicalMaxCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlColorTempPhysicalMaxAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readColorTempPhysicalMaxAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlColorTempPhysicalMaxCommandParams); + readColorControlCommandInfo.put( + "readColorTempPhysicalMaxAttribute", + readColorControlColorTempPhysicalMaxAttributeCommandInfo); + Map readColorControlCoupleColorTempToLevelMinMiredsCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlCoupleColorTempToLevelMinMiredsAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readCoupleColorTempToLevelMinMiredsAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlCoupleColorTempToLevelMinMiredsCommandParams); + readColorControlCommandInfo.put( + "readCoupleColorTempToLevelMinMiredsAttribute", + readColorControlCoupleColorTempToLevelMinMiredsAttributeCommandInfo); + Map readColorControlStartUpColorTemperatureMiredsCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlStartUpColorTemperatureMiredsAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readStartUpColorTemperatureMiredsAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlStartUpColorTemperatureMiredsCommandParams); + readColorControlCommandInfo.put( + "readStartUpColorTemperatureMiredsAttribute", + readColorControlStartUpColorTemperatureMiredsAttributeCommandInfo); + Map readColorControlClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readColorControlClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ColorControlCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readColorControlClusterRevisionCommandParams); + readColorControlCommandInfo.put( + "readClusterRevisionAttribute", readColorControlClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("colorControl").combineCommands(readColorControlCommandInfo); + Map readContentLauncherCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readContentLauncherAcceptsHeaderListCommandParams = + new LinkedHashMap(); + CommandInfo readContentLauncherAcceptsHeaderListAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ContentLauncherCluster) cluster) + .readAcceptsHeaderListAttribute( + (ChipClusters.ContentLauncherCluster.AcceptsHeaderListAttributeCallback) + callback); + }, + () -> new DelegatedAcceptsHeaderListAttributeCallback(), + readContentLauncherAcceptsHeaderListCommandParams); + readContentLauncherCommandInfo.put( + "readAcceptsHeaderListAttribute", readContentLauncherAcceptsHeaderListAttributeCommandInfo); + Map readContentLauncherSupportedStreamingTypesCommandParams = + new LinkedHashMap(); + CommandInfo readContentLauncherSupportedStreamingTypesAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ContentLauncherCluster) cluster) + .readSupportedStreamingTypesAttribute( + (ChipClusters.ContentLauncherCluster.SupportedStreamingTypesAttributeCallback) + callback); + }, + () -> new DelegatedSupportedStreamingTypesAttributeCallback(), + readContentLauncherSupportedStreamingTypesCommandParams); + readContentLauncherCommandInfo.put( + "readSupportedStreamingTypesAttribute", + readContentLauncherSupportedStreamingTypesAttributeCommandInfo); + Map readContentLauncherClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readContentLauncherClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ContentLauncherCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readContentLauncherClusterRevisionCommandParams); + readContentLauncherCommandInfo.put( + "readClusterRevisionAttribute", readContentLauncherClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("contentLauncher").combineCommands(readContentLauncherCommandInfo); + Map readDescriptorCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readDescriptorDeviceListCommandParams = + new LinkedHashMap(); + CommandInfo readDescriptorDeviceListAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DescriptorCluster) cluster) + .readDeviceListAttribute( + (ChipClusters.DescriptorCluster.DeviceListAttributeCallback) callback); + }, + () -> new DelegatedDeviceListAttributeCallback(), + readDescriptorDeviceListCommandParams); + readDescriptorCommandInfo.put( + "readDeviceListAttribute", readDescriptorDeviceListAttributeCommandInfo); + Map readDescriptorServerListCommandParams = + new LinkedHashMap(); + CommandInfo readDescriptorServerListAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DescriptorCluster) cluster) + .readServerListAttribute( + (ChipClusters.DescriptorCluster.ServerListAttributeCallback) callback); + }, + () -> new DelegatedServerListAttributeCallback(), + readDescriptorServerListCommandParams); + readDescriptorCommandInfo.put( + "readServerListAttribute", readDescriptorServerListAttributeCommandInfo); + Map readDescriptorClientListCommandParams = + new LinkedHashMap(); + CommandInfo readDescriptorClientListAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DescriptorCluster) cluster) + .readClientListAttribute( + (ChipClusters.DescriptorCluster.ClientListAttributeCallback) callback); + }, + () -> new DelegatedClientListAttributeCallback(), + readDescriptorClientListCommandParams); + readDescriptorCommandInfo.put( + "readClientListAttribute", readDescriptorClientListAttributeCommandInfo); + Map readDescriptorPartsListCommandParams = + new LinkedHashMap(); + CommandInfo readDescriptorPartsListAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DescriptorCluster) cluster) + .readPartsListAttribute( + (ChipClusters.DescriptorCluster.PartsListAttributeCallback) callback); + }, + () -> new DelegatedPartsListAttributeCallback(), + readDescriptorPartsListCommandParams); + readDescriptorCommandInfo.put( + "readPartsListAttribute", readDescriptorPartsListAttributeCommandInfo); + Map readDescriptorClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readDescriptorClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DescriptorCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readDescriptorClusterRevisionCommandParams); + readDescriptorCommandInfo.put( + "readClusterRevisionAttribute", readDescriptorClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("descriptor").combineCommands(readDescriptorCommandInfo); + Map readDiagnosticLogsCommandInfo = new LinkedHashMap<>(); + // read attribute + // combine the read Attribute into the original commands + clusterMap.get("diagnosticLogs").combineCommands(readDiagnosticLogsCommandInfo); + Map readDoorLockCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readDoorLockLockStateCommandParams = + new LinkedHashMap(); + CommandInfo readDoorLockLockStateAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .readLockStateAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readDoorLockLockStateCommandParams); + readDoorLockCommandInfo.put( + "readLockStateAttribute", readDoorLockLockStateAttributeCommandInfo); + Map readDoorLockLockTypeCommandParams = + new LinkedHashMap(); + CommandInfo readDoorLockLockTypeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .readLockTypeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readDoorLockLockTypeCommandParams); + readDoorLockCommandInfo.put("readLockTypeAttribute", readDoorLockLockTypeAttributeCommandInfo); + Map readDoorLockActuatorEnabledCommandParams = + new LinkedHashMap(); + CommandInfo readDoorLockActuatorEnabledAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .readActuatorEnabledAttribute((ChipClusters.BooleanAttributeCallback) callback); + }, + () -> new DelegatedBooleanAttributeCallback(), + readDoorLockActuatorEnabledCommandParams); + readDoorLockCommandInfo.put( + "readActuatorEnabledAttribute", readDoorLockActuatorEnabledAttributeCommandInfo); + Map readDoorLockClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readDoorLockClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.DoorLockCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readDoorLockClusterRevisionCommandParams); + readDoorLockCommandInfo.put( + "readClusterRevisionAttribute", readDoorLockClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("doorLock").combineCommands(readDoorLockCommandInfo); + Map readElectricalMeasurementCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readElectricalMeasurementMeasurementTypeCommandParams = + new LinkedHashMap(); + CommandInfo readElectricalMeasurementMeasurementTypeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ElectricalMeasurementCluster) cluster) + .readMeasurementTypeAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readElectricalMeasurementMeasurementTypeCommandParams); + readElectricalMeasurementCommandInfo.put( + "readMeasurementTypeAttribute", + readElectricalMeasurementMeasurementTypeAttributeCommandInfo); + Map readElectricalMeasurementTotalActivePowerCommandParams = + new LinkedHashMap(); + CommandInfo readElectricalMeasurementTotalActivePowerAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ElectricalMeasurementCluster) cluster) + .readTotalActivePowerAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readElectricalMeasurementTotalActivePowerCommandParams); + readElectricalMeasurementCommandInfo.put( + "readTotalActivePowerAttribute", + readElectricalMeasurementTotalActivePowerAttributeCommandInfo); + Map readElectricalMeasurementRmsVoltageCommandParams = + new LinkedHashMap(); + CommandInfo readElectricalMeasurementRmsVoltageAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ElectricalMeasurementCluster) cluster) + .readRmsVoltageAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readElectricalMeasurementRmsVoltageCommandParams); + readElectricalMeasurementCommandInfo.put( + "readRmsVoltageAttribute", readElectricalMeasurementRmsVoltageAttributeCommandInfo); + Map readElectricalMeasurementRmsVoltageMinCommandParams = + new LinkedHashMap(); + CommandInfo readElectricalMeasurementRmsVoltageMinAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ElectricalMeasurementCluster) cluster) + .readRmsVoltageMinAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readElectricalMeasurementRmsVoltageMinCommandParams); + readElectricalMeasurementCommandInfo.put( + "readRmsVoltageMinAttribute", readElectricalMeasurementRmsVoltageMinAttributeCommandInfo); + Map readElectricalMeasurementRmsVoltageMaxCommandParams = + new LinkedHashMap(); + CommandInfo readElectricalMeasurementRmsVoltageMaxAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ElectricalMeasurementCluster) cluster) + .readRmsVoltageMaxAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readElectricalMeasurementRmsVoltageMaxCommandParams); + readElectricalMeasurementCommandInfo.put( + "readRmsVoltageMaxAttribute", readElectricalMeasurementRmsVoltageMaxAttributeCommandInfo); + Map readElectricalMeasurementRmsCurrentCommandParams = + new LinkedHashMap(); + CommandInfo readElectricalMeasurementRmsCurrentAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ElectricalMeasurementCluster) cluster) + .readRmsCurrentAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readElectricalMeasurementRmsCurrentCommandParams); + readElectricalMeasurementCommandInfo.put( + "readRmsCurrentAttribute", readElectricalMeasurementRmsCurrentAttributeCommandInfo); + Map readElectricalMeasurementRmsCurrentMinCommandParams = + new LinkedHashMap(); + CommandInfo readElectricalMeasurementRmsCurrentMinAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ElectricalMeasurementCluster) cluster) + .readRmsCurrentMinAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readElectricalMeasurementRmsCurrentMinCommandParams); + readElectricalMeasurementCommandInfo.put( + "readRmsCurrentMinAttribute", readElectricalMeasurementRmsCurrentMinAttributeCommandInfo); + Map readElectricalMeasurementRmsCurrentMaxCommandParams = + new LinkedHashMap(); + CommandInfo readElectricalMeasurementRmsCurrentMaxAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ElectricalMeasurementCluster) cluster) + .readRmsCurrentMaxAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readElectricalMeasurementRmsCurrentMaxCommandParams); + readElectricalMeasurementCommandInfo.put( + "readRmsCurrentMaxAttribute", readElectricalMeasurementRmsCurrentMaxAttributeCommandInfo); + Map readElectricalMeasurementActivePowerCommandParams = + new LinkedHashMap(); + CommandInfo readElectricalMeasurementActivePowerAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ElectricalMeasurementCluster) cluster) + .readActivePowerAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readElectricalMeasurementActivePowerCommandParams); + readElectricalMeasurementCommandInfo.put( + "readActivePowerAttribute", readElectricalMeasurementActivePowerAttributeCommandInfo); + Map readElectricalMeasurementActivePowerMinCommandParams = + new LinkedHashMap(); + CommandInfo readElectricalMeasurementActivePowerMinAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ElectricalMeasurementCluster) cluster) + .readActivePowerMinAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readElectricalMeasurementActivePowerMinCommandParams); + readElectricalMeasurementCommandInfo.put( + "readActivePowerMinAttribute", readElectricalMeasurementActivePowerMinAttributeCommandInfo); + Map readElectricalMeasurementActivePowerMaxCommandParams = + new LinkedHashMap(); + CommandInfo readElectricalMeasurementActivePowerMaxAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ElectricalMeasurementCluster) cluster) + .readActivePowerMaxAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readElectricalMeasurementActivePowerMaxCommandParams); + readElectricalMeasurementCommandInfo.put( + "readActivePowerMaxAttribute", readElectricalMeasurementActivePowerMaxAttributeCommandInfo); + Map readElectricalMeasurementClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readElectricalMeasurementClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ElectricalMeasurementCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readElectricalMeasurementClusterRevisionCommandParams); + readElectricalMeasurementCommandInfo.put( + "readClusterRevisionAttribute", + readElectricalMeasurementClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("electricalMeasurement").combineCommands(readElectricalMeasurementCommandInfo); + Map readEthernetNetworkDiagnosticsCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readEthernetNetworkDiagnosticsPHYRateCommandParams = + new LinkedHashMap(); + CommandInfo readEthernetNetworkDiagnosticsPHYRateAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.EthernetNetworkDiagnosticsCluster) cluster) + .readPHYRateAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readEthernetNetworkDiagnosticsPHYRateCommandParams); + readEthernetNetworkDiagnosticsCommandInfo.put( + "readPHYRateAttribute", readEthernetNetworkDiagnosticsPHYRateAttributeCommandInfo); + Map readEthernetNetworkDiagnosticsFullDuplexCommandParams = + new LinkedHashMap(); + CommandInfo readEthernetNetworkDiagnosticsFullDuplexAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.EthernetNetworkDiagnosticsCluster) cluster) + .readFullDuplexAttribute((ChipClusters.BooleanAttributeCallback) callback); + }, + () -> new DelegatedBooleanAttributeCallback(), + readEthernetNetworkDiagnosticsFullDuplexCommandParams); + readEthernetNetworkDiagnosticsCommandInfo.put( + "readFullDuplexAttribute", readEthernetNetworkDiagnosticsFullDuplexAttributeCommandInfo); + Map readEthernetNetworkDiagnosticsPacketRxCountCommandParams = + new LinkedHashMap(); + CommandInfo readEthernetNetworkDiagnosticsPacketRxCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.EthernetNetworkDiagnosticsCluster) cluster) + .readPacketRxCountAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readEthernetNetworkDiagnosticsPacketRxCountCommandParams); + readEthernetNetworkDiagnosticsCommandInfo.put( + "readPacketRxCountAttribute", + readEthernetNetworkDiagnosticsPacketRxCountAttributeCommandInfo); + Map readEthernetNetworkDiagnosticsPacketTxCountCommandParams = + new LinkedHashMap(); + CommandInfo readEthernetNetworkDiagnosticsPacketTxCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.EthernetNetworkDiagnosticsCluster) cluster) + .readPacketTxCountAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readEthernetNetworkDiagnosticsPacketTxCountCommandParams); + readEthernetNetworkDiagnosticsCommandInfo.put( + "readPacketTxCountAttribute", + readEthernetNetworkDiagnosticsPacketTxCountAttributeCommandInfo); + Map readEthernetNetworkDiagnosticsTxErrCountCommandParams = + new LinkedHashMap(); + CommandInfo readEthernetNetworkDiagnosticsTxErrCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.EthernetNetworkDiagnosticsCluster) cluster) + .readTxErrCountAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readEthernetNetworkDiagnosticsTxErrCountCommandParams); + readEthernetNetworkDiagnosticsCommandInfo.put( + "readTxErrCountAttribute", readEthernetNetworkDiagnosticsTxErrCountAttributeCommandInfo); + Map readEthernetNetworkDiagnosticsCollisionCountCommandParams = + new LinkedHashMap(); + CommandInfo readEthernetNetworkDiagnosticsCollisionCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.EthernetNetworkDiagnosticsCluster) cluster) + .readCollisionCountAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readEthernetNetworkDiagnosticsCollisionCountCommandParams); + readEthernetNetworkDiagnosticsCommandInfo.put( + "readCollisionCountAttribute", + readEthernetNetworkDiagnosticsCollisionCountAttributeCommandInfo); + Map readEthernetNetworkDiagnosticsOverrunCountCommandParams = + new LinkedHashMap(); + CommandInfo readEthernetNetworkDiagnosticsOverrunCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.EthernetNetworkDiagnosticsCluster) cluster) + .readOverrunCountAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readEthernetNetworkDiagnosticsOverrunCountCommandParams); + readEthernetNetworkDiagnosticsCommandInfo.put( + "readOverrunCountAttribute", + readEthernetNetworkDiagnosticsOverrunCountAttributeCommandInfo); + Map readEthernetNetworkDiagnosticsCarrierDetectCommandParams = + new LinkedHashMap(); + CommandInfo readEthernetNetworkDiagnosticsCarrierDetectAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.EthernetNetworkDiagnosticsCluster) cluster) + .readCarrierDetectAttribute((ChipClusters.BooleanAttributeCallback) callback); + }, + () -> new DelegatedBooleanAttributeCallback(), + readEthernetNetworkDiagnosticsCarrierDetectCommandParams); + readEthernetNetworkDiagnosticsCommandInfo.put( + "readCarrierDetectAttribute", + readEthernetNetworkDiagnosticsCarrierDetectAttributeCommandInfo); + Map readEthernetNetworkDiagnosticsTimeSinceResetCommandParams = + new LinkedHashMap(); + CommandInfo readEthernetNetworkDiagnosticsTimeSinceResetAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.EthernetNetworkDiagnosticsCluster) cluster) + .readTimeSinceResetAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readEthernetNetworkDiagnosticsTimeSinceResetCommandParams); + readEthernetNetworkDiagnosticsCommandInfo.put( + "readTimeSinceResetAttribute", + readEthernetNetworkDiagnosticsTimeSinceResetAttributeCommandInfo); + Map readEthernetNetworkDiagnosticsClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readEthernetNetworkDiagnosticsClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.EthernetNetworkDiagnosticsCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readEthernetNetworkDiagnosticsClusterRevisionCommandParams); + readEthernetNetworkDiagnosticsCommandInfo.put( + "readClusterRevisionAttribute", + readEthernetNetworkDiagnosticsClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap + .get("ethernetNetworkDiagnostics") + .combineCommands(readEthernetNetworkDiagnosticsCommandInfo); + Map readFixedLabelCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readFixedLabelLabelListCommandParams = + new LinkedHashMap(); + CommandInfo readFixedLabelLabelListAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FixedLabelCluster) cluster) + .readLabelListAttribute( + (ChipClusters.FixedLabelCluster.LabelListAttributeCallback) callback); + }, + () -> new DelegatedLabelListAttributeCallback(), + readFixedLabelLabelListCommandParams); + readFixedLabelCommandInfo.put( + "readLabelListAttribute", readFixedLabelLabelListAttributeCommandInfo); + Map readFixedLabelClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readFixedLabelClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FixedLabelCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readFixedLabelClusterRevisionCommandParams); + readFixedLabelCommandInfo.put( + "readClusterRevisionAttribute", readFixedLabelClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("fixedLabel").combineCommands(readFixedLabelCommandInfo); + Map readFlowMeasurementCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readFlowMeasurementMeasuredValueCommandParams = + new LinkedHashMap(); + CommandInfo readFlowMeasurementMeasuredValueAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FlowMeasurementCluster) cluster) + .readMeasuredValueAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readFlowMeasurementMeasuredValueCommandParams); + readFlowMeasurementCommandInfo.put( + "readMeasuredValueAttribute", readFlowMeasurementMeasuredValueAttributeCommandInfo); + Map readFlowMeasurementMinMeasuredValueCommandParams = + new LinkedHashMap(); + CommandInfo readFlowMeasurementMinMeasuredValueAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FlowMeasurementCluster) cluster) + .readMinMeasuredValueAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readFlowMeasurementMinMeasuredValueCommandParams); + readFlowMeasurementCommandInfo.put( + "readMinMeasuredValueAttribute", readFlowMeasurementMinMeasuredValueAttributeCommandInfo); + Map readFlowMeasurementMaxMeasuredValueCommandParams = + new LinkedHashMap(); + CommandInfo readFlowMeasurementMaxMeasuredValueAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FlowMeasurementCluster) cluster) + .readMaxMeasuredValueAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readFlowMeasurementMaxMeasuredValueCommandParams); + readFlowMeasurementCommandInfo.put( + "readMaxMeasuredValueAttribute", readFlowMeasurementMaxMeasuredValueAttributeCommandInfo); + Map readFlowMeasurementToleranceCommandParams = + new LinkedHashMap(); + CommandInfo readFlowMeasurementToleranceAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FlowMeasurementCluster) cluster) + .readToleranceAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readFlowMeasurementToleranceCommandParams); + readFlowMeasurementCommandInfo.put( + "readToleranceAttribute", readFlowMeasurementToleranceAttributeCommandInfo); + Map readFlowMeasurementClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readFlowMeasurementClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.FlowMeasurementCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readFlowMeasurementClusterRevisionCommandParams); + readFlowMeasurementCommandInfo.put( + "readClusterRevisionAttribute", readFlowMeasurementClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("flowMeasurement").combineCommands(readFlowMeasurementCommandInfo); + Map readGeneralCommissioningCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readGeneralCommissioningBreadcrumbCommandParams = + new LinkedHashMap(); + CommandInfo readGeneralCommissioningBreadcrumbAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GeneralCommissioningCluster) cluster) + .readBreadcrumbAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readGeneralCommissioningBreadcrumbCommandParams); + readGeneralCommissioningCommandInfo.put( + "readBreadcrumbAttribute", readGeneralCommissioningBreadcrumbAttributeCommandInfo); + Map + readGeneralCommissioningBasicCommissioningInfoListCommandParams = + new LinkedHashMap(); + CommandInfo readGeneralCommissioningBasicCommissioningInfoListAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GeneralCommissioningCluster) cluster) + .readBasicCommissioningInfoListAttribute( + (ChipClusters.GeneralCommissioningCluster + .BasicCommissioningInfoListAttributeCallback) + callback); + }, + () -> new DelegatedBasicCommissioningInfoListAttributeCallback(), + readGeneralCommissioningBasicCommissioningInfoListCommandParams); + readGeneralCommissioningCommandInfo.put( + "readBasicCommissioningInfoListAttribute", + readGeneralCommissioningBasicCommissioningInfoListAttributeCommandInfo); + Map readGeneralCommissioningClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readGeneralCommissioningClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GeneralCommissioningCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readGeneralCommissioningClusterRevisionCommandParams); + readGeneralCommissioningCommandInfo.put( + "readClusterRevisionAttribute", + readGeneralCommissioningClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("generalCommissioning").combineCommands(readGeneralCommissioningCommandInfo); + Map readGeneralDiagnosticsCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readGeneralDiagnosticsNetworkInterfacesCommandParams = + new LinkedHashMap(); + CommandInfo readGeneralDiagnosticsNetworkInterfacesAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GeneralDiagnosticsCluster) cluster) + .readNetworkInterfacesAttribute( + (ChipClusters.GeneralDiagnosticsCluster.NetworkInterfacesAttributeCallback) + callback); + }, + () -> new DelegatedNetworkInterfacesAttributeCallback(), + readGeneralDiagnosticsNetworkInterfacesCommandParams); + readGeneralDiagnosticsCommandInfo.put( + "readNetworkInterfacesAttribute", + readGeneralDiagnosticsNetworkInterfacesAttributeCommandInfo); + Map readGeneralDiagnosticsRebootCountCommandParams = + new LinkedHashMap(); + CommandInfo readGeneralDiagnosticsRebootCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GeneralDiagnosticsCluster) cluster) + .readRebootCountAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readGeneralDiagnosticsRebootCountCommandParams); + readGeneralDiagnosticsCommandInfo.put( + "readRebootCountAttribute", readGeneralDiagnosticsRebootCountAttributeCommandInfo); + Map readGeneralDiagnosticsUpTimeCommandParams = + new LinkedHashMap(); + CommandInfo readGeneralDiagnosticsUpTimeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GeneralDiagnosticsCluster) cluster) + .readUpTimeAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readGeneralDiagnosticsUpTimeCommandParams); + readGeneralDiagnosticsCommandInfo.put( + "readUpTimeAttribute", readGeneralDiagnosticsUpTimeAttributeCommandInfo); + Map readGeneralDiagnosticsTotalOperationalHoursCommandParams = + new LinkedHashMap(); + CommandInfo readGeneralDiagnosticsTotalOperationalHoursAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GeneralDiagnosticsCluster) cluster) + .readTotalOperationalHoursAttribute( + (ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readGeneralDiagnosticsTotalOperationalHoursCommandParams); + readGeneralDiagnosticsCommandInfo.put( + "readTotalOperationalHoursAttribute", + readGeneralDiagnosticsTotalOperationalHoursAttributeCommandInfo); + Map readGeneralDiagnosticsBootReasonsCommandParams = + new LinkedHashMap(); + CommandInfo readGeneralDiagnosticsBootReasonsAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GeneralDiagnosticsCluster) cluster) + .readBootReasonsAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readGeneralDiagnosticsBootReasonsCommandParams); + readGeneralDiagnosticsCommandInfo.put( + "readBootReasonsAttribute", readGeneralDiagnosticsBootReasonsAttributeCommandInfo); + Map readGeneralDiagnosticsClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readGeneralDiagnosticsClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GeneralDiagnosticsCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readGeneralDiagnosticsClusterRevisionCommandParams); + readGeneralDiagnosticsCommandInfo.put( + "readClusterRevisionAttribute", readGeneralDiagnosticsClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("generalDiagnostics").combineCommands(readGeneralDiagnosticsCommandInfo); + Map readGroupKeyManagementCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readGroupKeyManagementGroupsCommandParams = + new LinkedHashMap(); + CommandInfo readGroupKeyManagementGroupsAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GroupKeyManagementCluster) cluster) + .readGroupsAttribute( + (ChipClusters.GroupKeyManagementCluster.GroupsAttributeCallback) callback); + }, + () -> new DelegatedGroupsAttributeCallback(), + readGroupKeyManagementGroupsCommandParams); + readGroupKeyManagementCommandInfo.put( + "readGroupsAttribute", readGroupKeyManagementGroupsAttributeCommandInfo); + Map readGroupKeyManagementGroupKeysCommandParams = + new LinkedHashMap(); + CommandInfo readGroupKeyManagementGroupKeysAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GroupKeyManagementCluster) cluster) + .readGroupKeysAttribute( + (ChipClusters.GroupKeyManagementCluster.GroupKeysAttributeCallback) callback); + }, + () -> new DelegatedGroupKeysAttributeCallback(), + readGroupKeyManagementGroupKeysCommandParams); + readGroupKeyManagementCommandInfo.put( + "readGroupKeysAttribute", readGroupKeyManagementGroupKeysAttributeCommandInfo); + Map readGroupKeyManagementClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readGroupKeyManagementClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GroupKeyManagementCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readGroupKeyManagementClusterRevisionCommandParams); + readGroupKeyManagementCommandInfo.put( + "readClusterRevisionAttribute", readGroupKeyManagementClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("groupKeyManagement").combineCommands(readGroupKeyManagementCommandInfo); + Map readGroupsCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readGroupsNameSupportCommandParams = + new LinkedHashMap(); + CommandInfo readGroupsNameSupportAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GroupsCluster) cluster) + .readNameSupportAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readGroupsNameSupportCommandParams); + readGroupsCommandInfo.put( + "readNameSupportAttribute", readGroupsNameSupportAttributeCommandInfo); + Map readGroupsClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readGroupsClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.GroupsCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readGroupsClusterRevisionCommandParams); + readGroupsCommandInfo.put( + "readClusterRevisionAttribute", readGroupsClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("groups").combineCommands(readGroupsCommandInfo); + Map readIdentifyCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readIdentifyIdentifyTimeCommandParams = + new LinkedHashMap(); + CommandInfo readIdentifyIdentifyTimeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.IdentifyCluster) cluster) + .readIdentifyTimeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readIdentifyIdentifyTimeCommandParams); + readIdentifyCommandInfo.put( + "readIdentifyTimeAttribute", readIdentifyIdentifyTimeAttributeCommandInfo); + Map readIdentifyIdentifyTypeCommandParams = + new LinkedHashMap(); + CommandInfo readIdentifyIdentifyTypeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.IdentifyCluster) cluster) + .readIdentifyTypeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readIdentifyIdentifyTypeCommandParams); + readIdentifyCommandInfo.put( + "readIdentifyTypeAttribute", readIdentifyIdentifyTypeAttributeCommandInfo); + Map readIdentifyClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readIdentifyClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.IdentifyCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readIdentifyClusterRevisionCommandParams); + readIdentifyCommandInfo.put( + "readClusterRevisionAttribute", readIdentifyClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("identify").combineCommands(readIdentifyCommandInfo); + Map readIlluminanceMeasurementCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readIlluminanceMeasurementMeasuredValueCommandParams = + new LinkedHashMap(); + CommandInfo readIlluminanceMeasurementMeasuredValueAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.IlluminanceMeasurementCluster) cluster) + .readMeasuredValueAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readIlluminanceMeasurementMeasuredValueCommandParams); + readIlluminanceMeasurementCommandInfo.put( + "readMeasuredValueAttribute", readIlluminanceMeasurementMeasuredValueAttributeCommandInfo); + Map readIlluminanceMeasurementMinMeasuredValueCommandParams = + new LinkedHashMap(); + CommandInfo readIlluminanceMeasurementMinMeasuredValueAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.IlluminanceMeasurementCluster) cluster) + .readMinMeasuredValueAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readIlluminanceMeasurementMinMeasuredValueCommandParams); + readIlluminanceMeasurementCommandInfo.put( + "readMinMeasuredValueAttribute", + readIlluminanceMeasurementMinMeasuredValueAttributeCommandInfo); + Map readIlluminanceMeasurementMaxMeasuredValueCommandParams = + new LinkedHashMap(); + CommandInfo readIlluminanceMeasurementMaxMeasuredValueAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.IlluminanceMeasurementCluster) cluster) + .readMaxMeasuredValueAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readIlluminanceMeasurementMaxMeasuredValueCommandParams); + readIlluminanceMeasurementCommandInfo.put( + "readMaxMeasuredValueAttribute", + readIlluminanceMeasurementMaxMeasuredValueAttributeCommandInfo); + Map readIlluminanceMeasurementToleranceCommandParams = + new LinkedHashMap(); + CommandInfo readIlluminanceMeasurementToleranceAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.IlluminanceMeasurementCluster) cluster) + .readToleranceAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readIlluminanceMeasurementToleranceCommandParams); + readIlluminanceMeasurementCommandInfo.put( + "readToleranceAttribute", readIlluminanceMeasurementToleranceAttributeCommandInfo); + Map readIlluminanceMeasurementLightSensorTypeCommandParams = + new LinkedHashMap(); + CommandInfo readIlluminanceMeasurementLightSensorTypeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.IlluminanceMeasurementCluster) cluster) + .readLightSensorTypeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readIlluminanceMeasurementLightSensorTypeCommandParams); + readIlluminanceMeasurementCommandInfo.put( + "readLightSensorTypeAttribute", + readIlluminanceMeasurementLightSensorTypeAttributeCommandInfo); + Map readIlluminanceMeasurementClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readIlluminanceMeasurementClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.IlluminanceMeasurementCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readIlluminanceMeasurementClusterRevisionCommandParams); + readIlluminanceMeasurementCommandInfo.put( + "readClusterRevisionAttribute", + readIlluminanceMeasurementClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("illuminanceMeasurement").combineCommands(readIlluminanceMeasurementCommandInfo); + Map readKeypadInputCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readKeypadInputClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readKeypadInputClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.KeypadInputCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readKeypadInputClusterRevisionCommandParams); + readKeypadInputCommandInfo.put( + "readClusterRevisionAttribute", readKeypadInputClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("keypadInput").combineCommands(readKeypadInputCommandInfo); + Map readLevelControlCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readLevelControlCurrentLevelCommandParams = + new LinkedHashMap(); + CommandInfo readLevelControlCurrentLevelAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .readCurrentLevelAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readLevelControlCurrentLevelCommandParams); + readLevelControlCommandInfo.put( + "readCurrentLevelAttribute", readLevelControlCurrentLevelAttributeCommandInfo); + Map readLevelControlRemainingTimeCommandParams = + new LinkedHashMap(); + CommandInfo readLevelControlRemainingTimeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .readRemainingTimeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readLevelControlRemainingTimeCommandParams); + readLevelControlCommandInfo.put( + "readRemainingTimeAttribute", readLevelControlRemainingTimeAttributeCommandInfo); + Map readLevelControlMinLevelCommandParams = + new LinkedHashMap(); + CommandInfo readLevelControlMinLevelAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .readMinLevelAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readLevelControlMinLevelCommandParams); + readLevelControlCommandInfo.put( + "readMinLevelAttribute", readLevelControlMinLevelAttributeCommandInfo); + Map readLevelControlMaxLevelCommandParams = + new LinkedHashMap(); + CommandInfo readLevelControlMaxLevelAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .readMaxLevelAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readLevelControlMaxLevelCommandParams); + readLevelControlCommandInfo.put( + "readMaxLevelAttribute", readLevelControlMaxLevelAttributeCommandInfo); + Map readLevelControlCurrentFrequencyCommandParams = + new LinkedHashMap(); + CommandInfo readLevelControlCurrentFrequencyAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .readCurrentFrequencyAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readLevelControlCurrentFrequencyCommandParams); + readLevelControlCommandInfo.put( + "readCurrentFrequencyAttribute", readLevelControlCurrentFrequencyAttributeCommandInfo); + Map readLevelControlMinFrequencyCommandParams = + new LinkedHashMap(); + CommandInfo readLevelControlMinFrequencyAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .readMinFrequencyAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readLevelControlMinFrequencyCommandParams); + readLevelControlCommandInfo.put( + "readMinFrequencyAttribute", readLevelControlMinFrequencyAttributeCommandInfo); + Map readLevelControlMaxFrequencyCommandParams = + new LinkedHashMap(); + CommandInfo readLevelControlMaxFrequencyAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .readMaxFrequencyAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readLevelControlMaxFrequencyCommandParams); + readLevelControlCommandInfo.put( + "readMaxFrequencyAttribute", readLevelControlMaxFrequencyAttributeCommandInfo); + Map readLevelControlOptionsCommandParams = + new LinkedHashMap(); + CommandInfo readLevelControlOptionsAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .readOptionsAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readLevelControlOptionsCommandParams); + readLevelControlCommandInfo.put( + "readOptionsAttribute", readLevelControlOptionsAttributeCommandInfo); + Map readLevelControlOnOffTransitionTimeCommandParams = + new LinkedHashMap(); + CommandInfo readLevelControlOnOffTransitionTimeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .readOnOffTransitionTimeAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readLevelControlOnOffTransitionTimeCommandParams); + readLevelControlCommandInfo.put( + "readOnOffTransitionTimeAttribute", + readLevelControlOnOffTransitionTimeAttributeCommandInfo); + Map readLevelControlOnLevelCommandParams = + new LinkedHashMap(); + CommandInfo readLevelControlOnLevelAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .readOnLevelAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readLevelControlOnLevelCommandParams); + readLevelControlCommandInfo.put( + "readOnLevelAttribute", readLevelControlOnLevelAttributeCommandInfo); + Map readLevelControlOnTransitionTimeCommandParams = + new LinkedHashMap(); + CommandInfo readLevelControlOnTransitionTimeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .readOnTransitionTimeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readLevelControlOnTransitionTimeCommandParams); + readLevelControlCommandInfo.put( + "readOnTransitionTimeAttribute", readLevelControlOnTransitionTimeAttributeCommandInfo); + Map readLevelControlOffTransitionTimeCommandParams = + new LinkedHashMap(); + CommandInfo readLevelControlOffTransitionTimeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .readOffTransitionTimeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readLevelControlOffTransitionTimeCommandParams); + readLevelControlCommandInfo.put( + "readOffTransitionTimeAttribute", readLevelControlOffTransitionTimeAttributeCommandInfo); + Map readLevelControlDefaultMoveRateCommandParams = + new LinkedHashMap(); + CommandInfo readLevelControlDefaultMoveRateAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .readDefaultMoveRateAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readLevelControlDefaultMoveRateCommandParams); + readLevelControlCommandInfo.put( + "readDefaultMoveRateAttribute", readLevelControlDefaultMoveRateAttributeCommandInfo); + Map readLevelControlStartUpCurrentLevelCommandParams = + new LinkedHashMap(); + CommandInfo readLevelControlStartUpCurrentLevelAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .readStartUpCurrentLevelAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readLevelControlStartUpCurrentLevelCommandParams); + readLevelControlCommandInfo.put( + "readStartUpCurrentLevelAttribute", + readLevelControlStartUpCurrentLevelAttributeCommandInfo); + Map readLevelControlClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readLevelControlClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LevelControlCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readLevelControlClusterRevisionCommandParams); + readLevelControlCommandInfo.put( + "readClusterRevisionAttribute", readLevelControlClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("levelControl").combineCommands(readLevelControlCommandInfo); + Map readLowPowerCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readLowPowerClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readLowPowerClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.LowPowerCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readLowPowerClusterRevisionCommandParams); + readLowPowerCommandInfo.put( + "readClusterRevisionAttribute", readLowPowerClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("lowPower").combineCommands(readLowPowerCommandInfo); + Map readMediaInputCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readMediaInputMediaInputListCommandParams = + new LinkedHashMap(); + CommandInfo readMediaInputMediaInputListAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaInputCluster) cluster) + .readMediaInputListAttribute( + (ChipClusters.MediaInputCluster.MediaInputListAttributeCallback) callback); + }, + () -> new DelegatedMediaInputListAttributeCallback(), + readMediaInputMediaInputListCommandParams); + readMediaInputCommandInfo.put( + "readMediaInputListAttribute", readMediaInputMediaInputListAttributeCommandInfo); + Map readMediaInputCurrentMediaInputCommandParams = + new LinkedHashMap(); + CommandInfo readMediaInputCurrentMediaInputAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaInputCluster) cluster) + .readCurrentMediaInputAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readMediaInputCurrentMediaInputCommandParams); + readMediaInputCommandInfo.put( + "readCurrentMediaInputAttribute", readMediaInputCurrentMediaInputAttributeCommandInfo); + Map readMediaInputClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readMediaInputClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaInputCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readMediaInputClusterRevisionCommandParams); + readMediaInputCommandInfo.put( + "readClusterRevisionAttribute", readMediaInputClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("mediaInput").combineCommands(readMediaInputCommandInfo); + Map readMediaPlaybackCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readMediaPlaybackPlaybackStateCommandParams = + new LinkedHashMap(); + CommandInfo readMediaPlaybackPlaybackStateAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .readPlaybackStateAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readMediaPlaybackPlaybackStateCommandParams); + readMediaPlaybackCommandInfo.put( + "readPlaybackStateAttribute", readMediaPlaybackPlaybackStateAttributeCommandInfo); + Map readMediaPlaybackStartTimeCommandParams = + new LinkedHashMap(); + CommandInfo readMediaPlaybackStartTimeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .readStartTimeAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readMediaPlaybackStartTimeCommandParams); + readMediaPlaybackCommandInfo.put( + "readStartTimeAttribute", readMediaPlaybackStartTimeAttributeCommandInfo); + Map readMediaPlaybackDurationCommandParams = + new LinkedHashMap(); + CommandInfo readMediaPlaybackDurationAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .readDurationAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readMediaPlaybackDurationCommandParams); + readMediaPlaybackCommandInfo.put( + "readDurationAttribute", readMediaPlaybackDurationAttributeCommandInfo); + Map readMediaPlaybackPositionUpdatedAtCommandParams = + new LinkedHashMap(); + CommandInfo readMediaPlaybackPositionUpdatedAtAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .readPositionUpdatedAtAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readMediaPlaybackPositionUpdatedAtCommandParams); + readMediaPlaybackCommandInfo.put( + "readPositionUpdatedAtAttribute", readMediaPlaybackPositionUpdatedAtAttributeCommandInfo); + Map readMediaPlaybackPositionCommandParams = + new LinkedHashMap(); + CommandInfo readMediaPlaybackPositionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .readPositionAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readMediaPlaybackPositionCommandParams); + readMediaPlaybackCommandInfo.put( + "readPositionAttribute", readMediaPlaybackPositionAttributeCommandInfo); + Map readMediaPlaybackPlaybackSpeedCommandParams = + new LinkedHashMap(); + CommandInfo readMediaPlaybackPlaybackSpeedAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .readPlaybackSpeedAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readMediaPlaybackPlaybackSpeedCommandParams); + readMediaPlaybackCommandInfo.put( + "readPlaybackSpeedAttribute", readMediaPlaybackPlaybackSpeedAttributeCommandInfo); + Map readMediaPlaybackSeekRangeEndCommandParams = + new LinkedHashMap(); + CommandInfo readMediaPlaybackSeekRangeEndAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .readSeekRangeEndAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readMediaPlaybackSeekRangeEndCommandParams); + readMediaPlaybackCommandInfo.put( + "readSeekRangeEndAttribute", readMediaPlaybackSeekRangeEndAttributeCommandInfo); + Map readMediaPlaybackSeekRangeStartCommandParams = + new LinkedHashMap(); + CommandInfo readMediaPlaybackSeekRangeStartAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .readSeekRangeStartAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readMediaPlaybackSeekRangeStartCommandParams); + readMediaPlaybackCommandInfo.put( + "readSeekRangeStartAttribute", readMediaPlaybackSeekRangeStartAttributeCommandInfo); + Map readMediaPlaybackClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readMediaPlaybackClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.MediaPlaybackCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readMediaPlaybackClusterRevisionCommandParams); + readMediaPlaybackCommandInfo.put( + "readClusterRevisionAttribute", readMediaPlaybackClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("mediaPlayback").combineCommands(readMediaPlaybackCommandInfo); + Map readModeSelectCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readModeSelectCurrentModeCommandParams = + new LinkedHashMap(); + CommandInfo readModeSelectCurrentModeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ModeSelectCluster) cluster) + .readCurrentModeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readModeSelectCurrentModeCommandParams); + readModeSelectCommandInfo.put( + "readCurrentModeAttribute", readModeSelectCurrentModeAttributeCommandInfo); + Map readModeSelectSupportedModesCommandParams = + new LinkedHashMap(); + CommandInfo readModeSelectSupportedModesAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ModeSelectCluster) cluster) + .readSupportedModesAttribute( + (ChipClusters.ModeSelectCluster.SupportedModesAttributeCallback) callback); + }, + () -> new DelegatedSupportedModesAttributeCallback(), + readModeSelectSupportedModesCommandParams); + readModeSelectCommandInfo.put( + "readSupportedModesAttribute", readModeSelectSupportedModesAttributeCommandInfo); + Map readModeSelectOnModeCommandParams = + new LinkedHashMap(); + CommandInfo readModeSelectOnModeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ModeSelectCluster) cluster) + .readOnModeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readModeSelectOnModeCommandParams); + readModeSelectCommandInfo.put("readOnModeAttribute", readModeSelectOnModeAttributeCommandInfo); + Map readModeSelectStartUpModeCommandParams = + new LinkedHashMap(); + CommandInfo readModeSelectStartUpModeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ModeSelectCluster) cluster) + .readStartUpModeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readModeSelectStartUpModeCommandParams); + readModeSelectCommandInfo.put( + "readStartUpModeAttribute", readModeSelectStartUpModeAttributeCommandInfo); + Map readModeSelectDescriptionCommandParams = + new LinkedHashMap(); + CommandInfo readModeSelectDescriptionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ModeSelectCluster) cluster) + .readDescriptionAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readModeSelectDescriptionCommandParams); + readModeSelectCommandInfo.put( + "readDescriptionAttribute", readModeSelectDescriptionAttributeCommandInfo); + Map readModeSelectClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readModeSelectClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ModeSelectCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readModeSelectClusterRevisionCommandParams); + readModeSelectCommandInfo.put( + "readClusterRevisionAttribute", readModeSelectClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("modeSelect").combineCommands(readModeSelectCommandInfo); + Map readNetworkCommissioningCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readNetworkCommissioningFeatureMapCommandParams = + new LinkedHashMap(); + CommandInfo readNetworkCommissioningFeatureMapAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.NetworkCommissioningCluster) cluster) + .readFeatureMapAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readNetworkCommissioningFeatureMapCommandParams); + readNetworkCommissioningCommandInfo.put( + "readFeatureMapAttribute", readNetworkCommissioningFeatureMapAttributeCommandInfo); + Map readNetworkCommissioningClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readNetworkCommissioningClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.NetworkCommissioningCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readNetworkCommissioningClusterRevisionCommandParams); + readNetworkCommissioningCommandInfo.put( + "readClusterRevisionAttribute", + readNetworkCommissioningClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("networkCommissioning").combineCommands(readNetworkCommissioningCommandInfo); + Map readOtaSoftwareUpdateProviderCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readOtaSoftwareUpdateProviderClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readOtaSoftwareUpdateProviderClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OtaSoftwareUpdateProviderCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readOtaSoftwareUpdateProviderClusterRevisionCommandParams); + readOtaSoftwareUpdateProviderCommandInfo.put( + "readClusterRevisionAttribute", + readOtaSoftwareUpdateProviderClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap + .get("otaSoftwareUpdateProvider") + .combineCommands(readOtaSoftwareUpdateProviderCommandInfo); + Map readOtaSoftwareUpdateRequestorCommandInfo = new LinkedHashMap<>(); + // read attribute + Map + readOtaSoftwareUpdateRequestorDefaultOtaProviderCommandParams = + new LinkedHashMap(); + CommandInfo readOtaSoftwareUpdateRequestorDefaultOtaProviderAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OtaSoftwareUpdateRequestorCluster) cluster) + .readDefaultOtaProviderAttribute( + (ChipClusters.OctetStringAttributeCallback) callback); + }, + () -> new DelegatedOctetStringAttributeCallback(), + readOtaSoftwareUpdateRequestorDefaultOtaProviderCommandParams); + readOtaSoftwareUpdateRequestorCommandInfo.put( + "readDefaultOtaProviderAttribute", + readOtaSoftwareUpdateRequestorDefaultOtaProviderAttributeCommandInfo); + Map readOtaSoftwareUpdateRequestorUpdatePossibleCommandParams = + new LinkedHashMap(); + CommandInfo readOtaSoftwareUpdateRequestorUpdatePossibleAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.AdministratorCommissioningCluster) cluster) - .revokeCommissioning((DefaultClusterCallback) callback); + ((ChipClusters.OtaSoftwareUpdateRequestorCluster) cluster) + .readUpdatePossibleAttribute((ChipClusters.BooleanAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - administratorCommissioningrevokeCommissioningCommandParams); - administratorCommissioningClusterCommandInfoMap.put( - "revokeCommissioning", administratorCommissioningrevokeCommissioningCommandInfo); - // Populate cluster - ClusterInfo administratorCommissioningClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> - new ChipClusters.AdministratorCommissioningCluster(ptr, endpointId), - administratorCommissioningClusterCommandInfoMap); - clusterMap.put("administratorCommissioning", administratorCommissioningClusterInfo); - Map applicationBasicClusterCommandInfoMap = new LinkedHashMap<>(); - Map applicationBasicchangeStatusCommandParams = + () -> new DelegatedBooleanAttributeCallback(), + readOtaSoftwareUpdateRequestorUpdatePossibleCommandParams); + readOtaSoftwareUpdateRequestorCommandInfo.put( + "readUpdatePossibleAttribute", + readOtaSoftwareUpdateRequestorUpdatePossibleAttributeCommandInfo); + Map readOtaSoftwareUpdateRequestorClusterRevisionCommandParams = new LinkedHashMap(); - CommandParameterInfo applicationBasicchangeStatusCommandParameterInfo = - new CommandParameterInfo("ApplicationBasic", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo applicationBasicchangeStatusstatusCommandParameterInfo = - new CommandParameterInfo("status", int.class); - applicationBasicchangeStatusCommandParams.put( - "status", applicationBasicchangeStatusstatusCommandParameterInfo); - - // Populate commands - CommandInfo applicationBasicchangeStatusCommandInfo = + CommandInfo readOtaSoftwareUpdateRequestorClusterRevisionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ApplicationBasicCluster) cluster) - .changeStatus( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("status")); + ((ChipClusters.OtaSoftwareUpdateRequestorCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - applicationBasicchangeStatusCommandParams); - applicationBasicClusterCommandInfoMap.put( - "changeStatus", applicationBasicchangeStatusCommandInfo); - // Populate cluster - ClusterInfo applicationBasicClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.ApplicationBasicCluster(ptr, endpointId), - applicationBasicClusterCommandInfoMap); - clusterMap.put("applicationBasic", applicationBasicClusterInfo); - Map applicationLauncherClusterCommandInfoMap = new LinkedHashMap<>(); - Map applicationLauncherlaunchAppCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readOtaSoftwareUpdateRequestorClusterRevisionCommandParams); + readOtaSoftwareUpdateRequestorCommandInfo.put( + "readClusterRevisionAttribute", + readOtaSoftwareUpdateRequestorClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap + .get("otaSoftwareUpdateRequestor") + .combineCommands(readOtaSoftwareUpdateRequestorCommandInfo); + Map readOccupancySensingCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readOccupancySensingOccupancyCommandParams = new LinkedHashMap(); - CommandParameterInfo applicationLauncherlaunchAppCommandParameterInfo = - new CommandParameterInfo( - "ApplicationLauncher", - ChipClusters.ApplicationLauncherCluster.LaunchAppResponseCallback.class); - CommandParameterInfo applicationLauncherlaunchAppdataCommandParameterInfo = - new CommandParameterInfo("data", String.class); - applicationLauncherlaunchAppCommandParams.put( - "data", applicationLauncherlaunchAppdataCommandParameterInfo); - - CommandParameterInfo applicationLauncherlaunchAppcatalogVendorIdCommandParameterInfo = - new CommandParameterInfo("catalogVendorId", int.class); - applicationLauncherlaunchAppCommandParams.put( - "catalogVendorId", applicationLauncherlaunchAppcatalogVendorIdCommandParameterInfo); - - CommandParameterInfo applicationLauncherlaunchAppapplicationIdCommandParameterInfo = - new CommandParameterInfo("applicationId", String.class); - applicationLauncherlaunchAppCommandParams.put( - "applicationId", applicationLauncherlaunchAppapplicationIdCommandParameterInfo); - - // Populate commands - CommandInfo applicationLauncherlaunchAppCommandInfo = + CommandInfo readOccupancySensingOccupancyAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ApplicationLauncherCluster) cluster) - .launchApp( - (ChipClusters.ApplicationLauncherCluster.LaunchAppResponseCallback) callback, - (String) commandArguments.get("data"), - (Integer) commandArguments.get("catalogVendorId"), - (String) commandArguments.get("applicationId")); + ((ChipClusters.OccupancySensingCluster) cluster) + .readOccupancyAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedLaunchAppResponseCallback(), - applicationLauncherlaunchAppCommandParams); - applicationLauncherClusterCommandInfoMap.put( - "launchApp", applicationLauncherlaunchAppCommandInfo); - // Populate cluster - ClusterInfo applicationLauncherClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.ApplicationLauncherCluster(ptr, endpointId), - applicationLauncherClusterCommandInfoMap); - clusterMap.put("applicationLauncher", applicationLauncherClusterInfo); - Map audioOutputClusterCommandInfoMap = new LinkedHashMap<>(); - Map audioOutputrenameOutputCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readOccupancySensingOccupancyCommandParams); + readOccupancySensingCommandInfo.put( + "readOccupancyAttribute", readOccupancySensingOccupancyAttributeCommandInfo); + Map readOccupancySensingOccupancySensorTypeCommandParams = new LinkedHashMap(); - CommandParameterInfo audioOutputrenameOutputCommandParameterInfo = - new CommandParameterInfo("AudioOutput", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo audioOutputrenameOutputindexCommandParameterInfo = - new CommandParameterInfo("index", int.class); - audioOutputrenameOutputCommandParams.put( - "index", audioOutputrenameOutputindexCommandParameterInfo); - - CommandParameterInfo audioOutputrenameOutputnameCommandParameterInfo = - new CommandParameterInfo("name", String.class); - audioOutputrenameOutputCommandParams.put( - "name", audioOutputrenameOutputnameCommandParameterInfo); - - // Populate commands - CommandInfo audioOutputrenameOutputCommandInfo = + CommandInfo readOccupancySensingOccupancySensorTypeAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.AudioOutputCluster) cluster) - .renameOutput( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("index"), - (String) commandArguments.get("name")); + ((ChipClusters.OccupancySensingCluster) cluster) + .readOccupancySensorTypeAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - audioOutputrenameOutputCommandParams); - audioOutputClusterCommandInfoMap.put("renameOutput", audioOutputrenameOutputCommandInfo); - Map audioOutputselectOutputCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readOccupancySensingOccupancySensorTypeCommandParams); + readOccupancySensingCommandInfo.put( + "readOccupancySensorTypeAttribute", + readOccupancySensingOccupancySensorTypeAttributeCommandInfo); + Map readOccupancySensingOccupancySensorTypeBitmapCommandParams = new LinkedHashMap(); - CommandParameterInfo audioOutputselectOutputCommandParameterInfo = - new CommandParameterInfo("AudioOutput", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo audioOutputselectOutputindexCommandParameterInfo = - new CommandParameterInfo("index", int.class); - audioOutputselectOutputCommandParams.put( - "index", audioOutputselectOutputindexCommandParameterInfo); - - // Populate commands - CommandInfo audioOutputselectOutputCommandInfo = + CommandInfo readOccupancySensingOccupancySensorTypeBitmapAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.AudioOutputCluster) cluster) - .selectOutput( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("index")); + ((ChipClusters.OccupancySensingCluster) cluster) + .readOccupancySensorTypeBitmapAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - audioOutputselectOutputCommandParams); - audioOutputClusterCommandInfoMap.put("selectOutput", audioOutputselectOutputCommandInfo); - // Populate cluster - ClusterInfo audioOutputClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.AudioOutputCluster(ptr, endpointId), - audioOutputClusterCommandInfoMap); - clusterMap.put("audioOutput", audioOutputClusterInfo); - Map barrierControlClusterCommandInfoMap = new LinkedHashMap<>(); - Map barrierControlbarrierControlGoToPercentCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readOccupancySensingOccupancySensorTypeBitmapCommandParams); + readOccupancySensingCommandInfo.put( + "readOccupancySensorTypeBitmapAttribute", + readOccupancySensingOccupancySensorTypeBitmapAttributeCommandInfo); + Map readOccupancySensingClusterRevisionCommandParams = new LinkedHashMap(); - CommandParameterInfo barrierControlbarrierControlGoToPercentCommandParameterInfo = - new CommandParameterInfo("BarrierControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo barrierControlbarrierControlGoToPercentpercentOpenCommandParameterInfo = - new CommandParameterInfo("percentOpen", int.class); - barrierControlbarrierControlGoToPercentCommandParams.put( - "percentOpen", barrierControlbarrierControlGoToPercentpercentOpenCommandParameterInfo); - - // Populate commands - CommandInfo barrierControlbarrierControlGoToPercentCommandInfo = + CommandInfo readOccupancySensingClusterRevisionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.BarrierControlCluster) cluster) - .barrierControlGoToPercent( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("percentOpen")); + ((ChipClusters.OccupancySensingCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readOccupancySensingClusterRevisionCommandParams); + readOccupancySensingCommandInfo.put( + "readClusterRevisionAttribute", readOccupancySensingClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("occupancySensing").combineCommands(readOccupancySensingCommandInfo); + Map readOnOffCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readOnOffOnOffCommandParams = + new LinkedHashMap(); + CommandInfo readOnOffOnOffAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster) + .readOnOffAttribute((ChipClusters.BooleanAttributeCallback) callback); + }, + () -> new DelegatedBooleanAttributeCallback(), + readOnOffOnOffCommandParams); + readOnOffCommandInfo.put("readOnOffAttribute", readOnOffOnOffAttributeCommandInfo); + Map readOnOffGlobalSceneControlCommandParams = + new LinkedHashMap(); + CommandInfo readOnOffGlobalSceneControlAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster) + .readGlobalSceneControlAttribute( + (ChipClusters.BooleanAttributeCallback) callback); + }, + () -> new DelegatedBooleanAttributeCallback(), + readOnOffGlobalSceneControlCommandParams); + readOnOffCommandInfo.put( + "readGlobalSceneControlAttribute", readOnOffGlobalSceneControlAttributeCommandInfo); + Map readOnOffOnTimeCommandParams = + new LinkedHashMap(); + CommandInfo readOnOffOnTimeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster) + .readOnTimeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readOnOffOnTimeCommandParams); + readOnOffCommandInfo.put("readOnTimeAttribute", readOnOffOnTimeAttributeCommandInfo); + Map readOnOffOffWaitTimeCommandParams = + new LinkedHashMap(); + CommandInfo readOnOffOffWaitTimeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster) + .readOffWaitTimeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readOnOffOffWaitTimeCommandParams); + readOnOffCommandInfo.put("readOffWaitTimeAttribute", readOnOffOffWaitTimeAttributeCommandInfo); + Map readOnOffStartUpOnOffCommandParams = + new LinkedHashMap(); + CommandInfo readOnOffStartUpOnOffAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster) + .readStartUpOnOffAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readOnOffStartUpOnOffCommandParams); + readOnOffCommandInfo.put( + "readStartUpOnOffAttribute", readOnOffStartUpOnOffAttributeCommandInfo); + Map readOnOffFeatureMapCommandParams = + new LinkedHashMap(); + CommandInfo readOnOffFeatureMapAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster) + .readFeatureMapAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readOnOffFeatureMapCommandParams); + readOnOffCommandInfo.put("readFeatureMapAttribute", readOnOffFeatureMapAttributeCommandInfo); + Map readOnOffClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readOnOffClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readOnOffClusterRevisionCommandParams); + readOnOffCommandInfo.put( + "readClusterRevisionAttribute", readOnOffClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("onOff").combineCommands(readOnOffCommandInfo); + Map readOnOffSwitchConfigurationCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readOnOffSwitchConfigurationSwitchTypeCommandParams = + new LinkedHashMap(); + CommandInfo readOnOffSwitchConfigurationSwitchTypeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffSwitchConfigurationCluster) cluster) + .readSwitchTypeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readOnOffSwitchConfigurationSwitchTypeCommandParams); + readOnOffSwitchConfigurationCommandInfo.put( + "readSwitchTypeAttribute", readOnOffSwitchConfigurationSwitchTypeAttributeCommandInfo); + Map readOnOffSwitchConfigurationSwitchActionsCommandParams = + new LinkedHashMap(); + CommandInfo readOnOffSwitchConfigurationSwitchActionsAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffSwitchConfigurationCluster) cluster) + .readSwitchActionsAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readOnOffSwitchConfigurationSwitchActionsCommandParams); + readOnOffSwitchConfigurationCommandInfo.put( + "readSwitchActionsAttribute", + readOnOffSwitchConfigurationSwitchActionsAttributeCommandInfo); + Map readOnOffSwitchConfigurationClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readOnOffSwitchConfigurationClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OnOffSwitchConfigurationCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readOnOffSwitchConfigurationClusterRevisionCommandParams); + readOnOffSwitchConfigurationCommandInfo.put( + "readClusterRevisionAttribute", + readOnOffSwitchConfigurationClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap + .get("onOffSwitchConfiguration") + .combineCommands(readOnOffSwitchConfigurationCommandInfo); + Map readOperationalCredentialsCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readOperationalCredentialsFabricsListCommandParams = + new LinkedHashMap(); + CommandInfo readOperationalCredentialsFabricsListAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OperationalCredentialsCluster) cluster) + .readFabricsListAttribute( + (ChipClusters.OperationalCredentialsCluster.FabricsListAttributeCallback) + callback); + }, + () -> new DelegatedFabricsListAttributeCallback(), + readOperationalCredentialsFabricsListCommandParams); + readOperationalCredentialsCommandInfo.put( + "readFabricsListAttribute", readOperationalCredentialsFabricsListAttributeCommandInfo); + Map readOperationalCredentialsSupportedFabricsCommandParams = + new LinkedHashMap(); + CommandInfo readOperationalCredentialsSupportedFabricsAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OperationalCredentialsCluster) cluster) + .readSupportedFabricsAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readOperationalCredentialsSupportedFabricsCommandParams); + readOperationalCredentialsCommandInfo.put( + "readSupportedFabricsAttribute", + readOperationalCredentialsSupportedFabricsAttributeCommandInfo); + Map readOperationalCredentialsCommissionedFabricsCommandParams = + new LinkedHashMap(); + CommandInfo readOperationalCredentialsCommissionedFabricsAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OperationalCredentialsCluster) cluster) + .readCommissionedFabricsAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readOperationalCredentialsCommissionedFabricsCommandParams); + readOperationalCredentialsCommandInfo.put( + "readCommissionedFabricsAttribute", + readOperationalCredentialsCommissionedFabricsAttributeCommandInfo); + Map + readOperationalCredentialsTrustedRootCertificatesCommandParams = + new LinkedHashMap(); + CommandInfo readOperationalCredentialsTrustedRootCertificatesAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OperationalCredentialsCluster) cluster) + .readTrustedRootCertificatesAttribute( + (ChipClusters.OperationalCredentialsCluster + .TrustedRootCertificatesAttributeCallback) + callback); + }, + () -> new DelegatedTrustedRootCertificatesAttributeCallback(), + readOperationalCredentialsTrustedRootCertificatesCommandParams); + readOperationalCredentialsCommandInfo.put( + "readTrustedRootCertificatesAttribute", + readOperationalCredentialsTrustedRootCertificatesAttributeCommandInfo); + Map readOperationalCredentialsCurrentFabricIndexCommandParams = + new LinkedHashMap(); + CommandInfo readOperationalCredentialsCurrentFabricIndexAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OperationalCredentialsCluster) cluster) + .readCurrentFabricIndexAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readOperationalCredentialsCurrentFabricIndexCommandParams); + readOperationalCredentialsCommandInfo.put( + "readCurrentFabricIndexAttribute", + readOperationalCredentialsCurrentFabricIndexAttributeCommandInfo); + Map readOperationalCredentialsClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readOperationalCredentialsClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.OperationalCredentialsCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readOperationalCredentialsClusterRevisionCommandParams); + readOperationalCredentialsCommandInfo.put( + "readClusterRevisionAttribute", + readOperationalCredentialsClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("operationalCredentials").combineCommands(readOperationalCredentialsCommandInfo); + Map readPowerSourceCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readPowerSourceStatusCommandParams = + new LinkedHashMap(); + CommandInfo readPowerSourceStatusAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PowerSourceCluster) cluster) + .readStatusAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readPowerSourceStatusCommandParams); + readPowerSourceCommandInfo.put( + "readStatusAttribute", readPowerSourceStatusAttributeCommandInfo); + Map readPowerSourceOrderCommandParams = + new LinkedHashMap(); + CommandInfo readPowerSourceOrderAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PowerSourceCluster) cluster) + .readOrderAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readPowerSourceOrderCommandParams); + readPowerSourceCommandInfo.put("readOrderAttribute", readPowerSourceOrderAttributeCommandInfo); + Map readPowerSourceDescriptionCommandParams = + new LinkedHashMap(); + CommandInfo readPowerSourceDescriptionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PowerSourceCluster) cluster) + .readDescriptionAttribute((ChipClusters.CharStringAttributeCallback) callback); + }, + () -> new DelegatedCharStringAttributeCallback(), + readPowerSourceDescriptionCommandParams); + readPowerSourceCommandInfo.put( + "readDescriptionAttribute", readPowerSourceDescriptionAttributeCommandInfo); + Map readPowerSourceBatteryVoltageCommandParams = + new LinkedHashMap(); + CommandInfo readPowerSourceBatteryVoltageAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PowerSourceCluster) cluster) + .readBatteryVoltageAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readPowerSourceBatteryVoltageCommandParams); + readPowerSourceCommandInfo.put( + "readBatteryVoltageAttribute", readPowerSourceBatteryVoltageAttributeCommandInfo); + Map readPowerSourceBatteryPercentRemainingCommandParams = + new LinkedHashMap(); + CommandInfo readPowerSourceBatteryPercentRemainingAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PowerSourceCluster) cluster) + .readBatteryPercentRemainingAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readPowerSourceBatteryPercentRemainingCommandParams); + readPowerSourceCommandInfo.put( + "readBatteryPercentRemainingAttribute", + readPowerSourceBatteryPercentRemainingAttributeCommandInfo); + Map readPowerSourceBatteryTimeRemainingCommandParams = + new LinkedHashMap(); + CommandInfo readPowerSourceBatteryTimeRemainingAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PowerSourceCluster) cluster) + .readBatteryTimeRemainingAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readPowerSourceBatteryTimeRemainingCommandParams); + readPowerSourceCommandInfo.put( + "readBatteryTimeRemainingAttribute", + readPowerSourceBatteryTimeRemainingAttributeCommandInfo); + Map readPowerSourceBatteryChargeLevelCommandParams = + new LinkedHashMap(); + CommandInfo readPowerSourceBatteryChargeLevelAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PowerSourceCluster) cluster) + .readBatteryChargeLevelAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readPowerSourceBatteryChargeLevelCommandParams); + readPowerSourceCommandInfo.put( + "readBatteryChargeLevelAttribute", readPowerSourceBatteryChargeLevelAttributeCommandInfo); + Map readPowerSourceActiveBatteryFaultsCommandParams = + new LinkedHashMap(); + CommandInfo readPowerSourceActiveBatteryFaultsAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PowerSourceCluster) cluster) + .readActiveBatteryFaultsAttribute( + (ChipClusters.PowerSourceCluster.ActiveBatteryFaultsAttributeCallback) + callback); + }, + () -> new DelegatedActiveBatteryFaultsAttributeCallback(), + readPowerSourceActiveBatteryFaultsCommandParams); + readPowerSourceCommandInfo.put( + "readActiveBatteryFaultsAttribute", readPowerSourceActiveBatteryFaultsAttributeCommandInfo); + Map readPowerSourceBatteryChargeStateCommandParams = + new LinkedHashMap(); + CommandInfo readPowerSourceBatteryChargeStateAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PowerSourceCluster) cluster) + .readBatteryChargeStateAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readPowerSourceBatteryChargeStateCommandParams); + readPowerSourceCommandInfo.put( + "readBatteryChargeStateAttribute", readPowerSourceBatteryChargeStateAttributeCommandInfo); + Map readPowerSourceFeatureMapCommandParams = + new LinkedHashMap(); + CommandInfo readPowerSourceFeatureMapAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PowerSourceCluster) cluster) + .readFeatureMapAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readPowerSourceFeatureMapCommandParams); + readPowerSourceCommandInfo.put( + "readFeatureMapAttribute", readPowerSourceFeatureMapAttributeCommandInfo); + Map readPowerSourceClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readPowerSourceClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PowerSourceCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - barrierControlbarrierControlGoToPercentCommandParams); - barrierControlClusterCommandInfoMap.put( - "barrierControlGoToPercent", barrierControlbarrierControlGoToPercentCommandInfo); - Map barrierControlbarrierControlStopCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPowerSourceClusterRevisionCommandParams); + readPowerSourceCommandInfo.put( + "readClusterRevisionAttribute", readPowerSourceClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("powerSource").combineCommands(readPowerSourceCommandInfo); + Map readPressureMeasurementCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readPressureMeasurementMeasuredValueCommandParams = new LinkedHashMap(); - CommandParameterInfo barrierControlbarrierControlStopCommandParameterInfo = - new CommandParameterInfo("BarrierControl", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo barrierControlbarrierControlStopCommandInfo = + CommandInfo readPressureMeasurementMeasuredValueAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.BarrierControlCluster) cluster) - .barrierControlStop((DefaultClusterCallback) callback); + ((ChipClusters.PressureMeasurementCluster) cluster) + .readMeasuredValueAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - barrierControlbarrierControlStopCommandParams); - barrierControlClusterCommandInfoMap.put( - "barrierControlStop", barrierControlbarrierControlStopCommandInfo); - // Populate cluster - ClusterInfo barrierControlClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.BarrierControlCluster(ptr, endpointId), - barrierControlClusterCommandInfoMap); - clusterMap.put("barrierControl", barrierControlClusterInfo); - Map basicClusterCommandInfoMap = new LinkedHashMap<>(); - Map basicmfgSpecificPingCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPressureMeasurementMeasuredValueCommandParams); + readPressureMeasurementCommandInfo.put( + "readMeasuredValueAttribute", readPressureMeasurementMeasuredValueAttributeCommandInfo); + Map readPressureMeasurementMinMeasuredValueCommandParams = new LinkedHashMap(); - CommandParameterInfo basicmfgSpecificPingCommandParameterInfo = - new CommandParameterInfo("Basic", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo basicmfgSpecificPingCommandInfo = + CommandInfo readPressureMeasurementMinMeasuredValueAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.BasicCluster) cluster) - .mfgSpecificPing((DefaultClusterCallback) callback); + ((ChipClusters.PressureMeasurementCluster) cluster) + .readMinMeasuredValueAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - basicmfgSpecificPingCommandParams); - basicClusterCommandInfoMap.put("mfgSpecificPing", basicmfgSpecificPingCommandInfo); - // Populate cluster - ClusterInfo basicClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.BasicCluster(ptr, endpointId), - basicClusterCommandInfoMap); - clusterMap.put("basic", basicClusterInfo); - Map binaryInputBasicClusterCommandInfoMap = new LinkedHashMap<>(); - // Populate cluster - ClusterInfo binaryInputBasicClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.BinaryInputBasicCluster(ptr, endpointId), - binaryInputBasicClusterCommandInfoMap); - clusterMap.put("binaryInputBasic", binaryInputBasicClusterInfo); - Map bindingClusterCommandInfoMap = new LinkedHashMap<>(); - Map bindingbindCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPressureMeasurementMinMeasuredValueCommandParams); + readPressureMeasurementCommandInfo.put( + "readMinMeasuredValueAttribute", + readPressureMeasurementMinMeasuredValueAttributeCommandInfo); + Map readPressureMeasurementMaxMeasuredValueCommandParams = new LinkedHashMap(); - CommandParameterInfo bindingbindCommandParameterInfo = - new CommandParameterInfo("Binding", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo bindingbindnodeIdCommandParameterInfo = - new CommandParameterInfo("nodeId", long.class); - bindingbindCommandParams.put("nodeId", bindingbindnodeIdCommandParameterInfo); - - CommandParameterInfo bindingbindgroupIdCommandParameterInfo = - new CommandParameterInfo("groupId", int.class); - bindingbindCommandParams.put("groupId", bindingbindgroupIdCommandParameterInfo); - - CommandParameterInfo bindingbindendpointIdCommandParameterInfo = - new CommandParameterInfo("endpointId", int.class); - bindingbindCommandParams.put("endpointId", bindingbindendpointIdCommandParameterInfo); - - CommandParameterInfo bindingbindclusterIdCommandParameterInfo = - new CommandParameterInfo("clusterId", long.class); - bindingbindCommandParams.put("clusterId", bindingbindclusterIdCommandParameterInfo); - - // Populate commands - CommandInfo bindingbindCommandInfo = + CommandInfo readPressureMeasurementMaxMeasuredValueAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.BindingCluster) cluster) - .bind( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("nodeId"), - (Integer) commandArguments.get("groupId"), - (Integer) commandArguments.get("endpointId"), - (Long) commandArguments.get("clusterId")); + ((ChipClusters.PressureMeasurementCluster) cluster) + .readMaxMeasuredValueAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - bindingbindCommandParams); - bindingClusterCommandInfoMap.put("bind", bindingbindCommandInfo); - Map bindingunbindCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPressureMeasurementMaxMeasuredValueCommandParams); + readPressureMeasurementCommandInfo.put( + "readMaxMeasuredValueAttribute", + readPressureMeasurementMaxMeasuredValueAttributeCommandInfo); + Map readPressureMeasurementClusterRevisionCommandParams = new LinkedHashMap(); - CommandParameterInfo bindingunbindCommandParameterInfo = - new CommandParameterInfo("Binding", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo bindingunbindnodeIdCommandParameterInfo = - new CommandParameterInfo("nodeId", long.class); - bindingunbindCommandParams.put("nodeId", bindingunbindnodeIdCommandParameterInfo); - - CommandParameterInfo bindingunbindgroupIdCommandParameterInfo = - new CommandParameterInfo("groupId", int.class); - bindingunbindCommandParams.put("groupId", bindingunbindgroupIdCommandParameterInfo); - - CommandParameterInfo bindingunbindendpointIdCommandParameterInfo = - new CommandParameterInfo("endpointId", int.class); - bindingunbindCommandParams.put("endpointId", bindingunbindendpointIdCommandParameterInfo); - - CommandParameterInfo bindingunbindclusterIdCommandParameterInfo = - new CommandParameterInfo("clusterId", long.class); - bindingunbindCommandParams.put("clusterId", bindingunbindclusterIdCommandParameterInfo); - - // Populate commands - CommandInfo bindingunbindCommandInfo = + CommandInfo readPressureMeasurementClusterRevisionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.BindingCluster) cluster) - .unbind( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("nodeId"), - (Integer) commandArguments.get("groupId"), - (Integer) commandArguments.get("endpointId"), - (Long) commandArguments.get("clusterId")); + ((ChipClusters.PressureMeasurementCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - bindingunbindCommandParams); - bindingClusterCommandInfoMap.put("unbind", bindingunbindCommandInfo); - // Populate cluster - ClusterInfo bindingClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.BindingCluster(ptr, endpointId), - bindingClusterCommandInfoMap); - clusterMap.put("binding", bindingClusterInfo); - Map booleanStateClusterCommandInfoMap = new LinkedHashMap<>(); - // Populate cluster - ClusterInfo booleanStateClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.BooleanStateCluster(ptr, endpointId), - booleanStateClusterCommandInfoMap); - clusterMap.put("booleanState", booleanStateClusterInfo); - Map bridgedActionsClusterCommandInfoMap = new LinkedHashMap<>(); - Map bridgedActionsdisableActionCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPressureMeasurementClusterRevisionCommandParams); + readPressureMeasurementCommandInfo.put( + "readClusterRevisionAttribute", readPressureMeasurementClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("pressureMeasurement").combineCommands(readPressureMeasurementCommandInfo); + Map readPumpConfigurationAndControlCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readPumpConfigurationAndControlMaxPressureCommandParams = new LinkedHashMap(); - CommandParameterInfo bridgedActionsdisableActionCommandParameterInfo = - new CommandParameterInfo("BridgedActions", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo bridgedActionsdisableActionactionIDCommandParameterInfo = - new CommandParameterInfo("actionID", int.class); - bridgedActionsdisableActionCommandParams.put( - "actionID", bridgedActionsdisableActionactionIDCommandParameterInfo); - - CommandParameterInfo bridgedActionsdisableActioninvokeIDCommandParameterInfo = - new CommandParameterInfo("invokeID", long.class); - bridgedActionsdisableActionCommandParams.put( - "invokeID", bridgedActionsdisableActioninvokeIDCommandParameterInfo); - - // Populate commands - CommandInfo bridgedActionsdisableActionCommandInfo = + CommandInfo readPumpConfigurationAndControlMaxPressureAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.BridgedActionsCluster) cluster) - .disableAction( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("actionID"), - (Long) commandArguments.get("invokeID")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readMaxPressureAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - bridgedActionsdisableActionCommandParams); - bridgedActionsClusterCommandInfoMap.put( - "disableAction", bridgedActionsdisableActionCommandInfo); - Map bridgedActionsdisableActionWithDurationCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlMaxPressureCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readMaxPressureAttribute", readPumpConfigurationAndControlMaxPressureAttributeCommandInfo); + Map readPumpConfigurationAndControlMaxSpeedCommandParams = new LinkedHashMap(); - CommandParameterInfo bridgedActionsdisableActionWithDurationCommandParameterInfo = - new CommandParameterInfo("BridgedActions", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo bridgedActionsdisableActionWithDurationactionIDCommandParameterInfo = - new CommandParameterInfo("actionID", int.class); - bridgedActionsdisableActionWithDurationCommandParams.put( - "actionID", bridgedActionsdisableActionWithDurationactionIDCommandParameterInfo); - - CommandParameterInfo bridgedActionsdisableActionWithDurationinvokeIDCommandParameterInfo = - new CommandParameterInfo("invokeID", long.class); - bridgedActionsdisableActionWithDurationCommandParams.put( - "invokeID", bridgedActionsdisableActionWithDurationinvokeIDCommandParameterInfo); - - CommandParameterInfo bridgedActionsdisableActionWithDurationdurationCommandParameterInfo = - new CommandParameterInfo("duration", long.class); - bridgedActionsdisableActionWithDurationCommandParams.put( - "duration", bridgedActionsdisableActionWithDurationdurationCommandParameterInfo); - - // Populate commands - CommandInfo bridgedActionsdisableActionWithDurationCommandInfo = + CommandInfo readPumpConfigurationAndControlMaxSpeedAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.BridgedActionsCluster) cluster) - .disableActionWithDuration( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("actionID"), - (Long) commandArguments.get("invokeID"), - (Long) commandArguments.get("duration")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readMaxSpeedAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - bridgedActionsdisableActionWithDurationCommandParams); - bridgedActionsClusterCommandInfoMap.put( - "disableActionWithDuration", bridgedActionsdisableActionWithDurationCommandInfo); - Map bridgedActionsenableActionCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlMaxSpeedCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readMaxSpeedAttribute", readPumpConfigurationAndControlMaxSpeedAttributeCommandInfo); + Map readPumpConfigurationAndControlMaxFlowCommandParams = new LinkedHashMap(); - CommandParameterInfo bridgedActionsenableActionCommandParameterInfo = - new CommandParameterInfo("BridgedActions", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo bridgedActionsenableActionactionIDCommandParameterInfo = - new CommandParameterInfo("actionID", int.class); - bridgedActionsenableActionCommandParams.put( - "actionID", bridgedActionsenableActionactionIDCommandParameterInfo); - - CommandParameterInfo bridgedActionsenableActioninvokeIDCommandParameterInfo = - new CommandParameterInfo("invokeID", long.class); - bridgedActionsenableActionCommandParams.put( - "invokeID", bridgedActionsenableActioninvokeIDCommandParameterInfo); - - // Populate commands - CommandInfo bridgedActionsenableActionCommandInfo = + CommandInfo readPumpConfigurationAndControlMaxFlowAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.BridgedActionsCluster) cluster) - .enableAction( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("actionID"), - (Long) commandArguments.get("invokeID")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readMaxFlowAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - bridgedActionsenableActionCommandParams); - bridgedActionsClusterCommandInfoMap.put("enableAction", bridgedActionsenableActionCommandInfo); - Map bridgedActionsenableActionWithDurationCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlMaxFlowCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readMaxFlowAttribute", readPumpConfigurationAndControlMaxFlowAttributeCommandInfo); + Map readPumpConfigurationAndControlMinConstPressureCommandParams = new LinkedHashMap(); - CommandParameterInfo bridgedActionsenableActionWithDurationCommandParameterInfo = - new CommandParameterInfo("BridgedActions", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo bridgedActionsenableActionWithDurationactionIDCommandParameterInfo = - new CommandParameterInfo("actionID", int.class); - bridgedActionsenableActionWithDurationCommandParams.put( - "actionID", bridgedActionsenableActionWithDurationactionIDCommandParameterInfo); - - CommandParameterInfo bridgedActionsenableActionWithDurationinvokeIDCommandParameterInfo = - new CommandParameterInfo("invokeID", long.class); - bridgedActionsenableActionWithDurationCommandParams.put( - "invokeID", bridgedActionsenableActionWithDurationinvokeIDCommandParameterInfo); - - CommandParameterInfo bridgedActionsenableActionWithDurationdurationCommandParameterInfo = - new CommandParameterInfo("duration", long.class); - bridgedActionsenableActionWithDurationCommandParams.put( - "duration", bridgedActionsenableActionWithDurationdurationCommandParameterInfo); - - // Populate commands - CommandInfo bridgedActionsenableActionWithDurationCommandInfo = + CommandInfo readPumpConfigurationAndControlMinConstPressureAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.BridgedActionsCluster) cluster) - .enableActionWithDuration( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("actionID"), - (Long) commandArguments.get("invokeID"), - (Long) commandArguments.get("duration")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readMinConstPressureAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - bridgedActionsenableActionWithDurationCommandParams); - bridgedActionsClusterCommandInfoMap.put( - "enableActionWithDuration", bridgedActionsenableActionWithDurationCommandInfo); - Map bridgedActionsinstantActionCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlMinConstPressureCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readMinConstPressureAttribute", + readPumpConfigurationAndControlMinConstPressureAttributeCommandInfo); + Map readPumpConfigurationAndControlMaxConstPressureCommandParams = new LinkedHashMap(); - CommandParameterInfo bridgedActionsinstantActionCommandParameterInfo = - new CommandParameterInfo("BridgedActions", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo bridgedActionsinstantActionactionIDCommandParameterInfo = - new CommandParameterInfo("actionID", int.class); - bridgedActionsinstantActionCommandParams.put( - "actionID", bridgedActionsinstantActionactionIDCommandParameterInfo); - - CommandParameterInfo bridgedActionsinstantActioninvokeIDCommandParameterInfo = - new CommandParameterInfo("invokeID", long.class); - bridgedActionsinstantActionCommandParams.put( - "invokeID", bridgedActionsinstantActioninvokeIDCommandParameterInfo); - - // Populate commands - CommandInfo bridgedActionsinstantActionCommandInfo = + CommandInfo readPumpConfigurationAndControlMaxConstPressureAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.BridgedActionsCluster) cluster) - .instantAction( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("actionID"), - (Long) commandArguments.get("invokeID")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readMaxConstPressureAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - bridgedActionsinstantActionCommandParams); - bridgedActionsClusterCommandInfoMap.put( - "instantAction", bridgedActionsinstantActionCommandInfo); - Map bridgedActionsinstantActionWithTransitionCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlMaxConstPressureCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readMaxConstPressureAttribute", + readPumpConfigurationAndControlMaxConstPressureAttributeCommandInfo); + Map readPumpConfigurationAndControlMinCompPressureCommandParams = new LinkedHashMap(); - CommandParameterInfo bridgedActionsinstantActionWithTransitionCommandParameterInfo = - new CommandParameterInfo("BridgedActions", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo bridgedActionsinstantActionWithTransitionactionIDCommandParameterInfo = - new CommandParameterInfo("actionID", int.class); - bridgedActionsinstantActionWithTransitionCommandParams.put( - "actionID", bridgedActionsinstantActionWithTransitionactionIDCommandParameterInfo); - - CommandParameterInfo bridgedActionsinstantActionWithTransitioninvokeIDCommandParameterInfo = - new CommandParameterInfo("invokeID", long.class); - bridgedActionsinstantActionWithTransitionCommandParams.put( - "invokeID", bridgedActionsinstantActionWithTransitioninvokeIDCommandParameterInfo); - - CommandParameterInfo - bridgedActionsinstantActionWithTransitiontransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - bridgedActionsinstantActionWithTransitionCommandParams.put( - "transitionTime", - bridgedActionsinstantActionWithTransitiontransitionTimeCommandParameterInfo); - - // Populate commands - CommandInfo bridgedActionsinstantActionWithTransitionCommandInfo = + CommandInfo readPumpConfigurationAndControlMinCompPressureAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readMinCompPressureAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlMinCompPressureCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readMinCompPressureAttribute", + readPumpConfigurationAndControlMinCompPressureAttributeCommandInfo); + Map readPumpConfigurationAndControlMaxCompPressureCommandParams = + new LinkedHashMap(); + CommandInfo readPumpConfigurationAndControlMaxCompPressureAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.BridgedActionsCluster) cluster) - .instantActionWithTransition( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("actionID"), - (Long) commandArguments.get("invokeID"), - (Integer) commandArguments.get("transitionTime")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readMaxCompPressureAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - bridgedActionsinstantActionWithTransitionCommandParams); - bridgedActionsClusterCommandInfoMap.put( - "instantActionWithTransition", bridgedActionsinstantActionWithTransitionCommandInfo); - Map bridgedActionspauseActionCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlMaxCompPressureCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readMaxCompPressureAttribute", + readPumpConfigurationAndControlMaxCompPressureAttributeCommandInfo); + Map readPumpConfigurationAndControlMinConstSpeedCommandParams = new LinkedHashMap(); - CommandParameterInfo bridgedActionspauseActionCommandParameterInfo = - new CommandParameterInfo("BridgedActions", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo bridgedActionspauseActionactionIDCommandParameterInfo = - new CommandParameterInfo("actionID", int.class); - bridgedActionspauseActionCommandParams.put( - "actionID", bridgedActionspauseActionactionIDCommandParameterInfo); - - CommandParameterInfo bridgedActionspauseActioninvokeIDCommandParameterInfo = - new CommandParameterInfo("invokeID", long.class); - bridgedActionspauseActionCommandParams.put( - "invokeID", bridgedActionspauseActioninvokeIDCommandParameterInfo); - - // Populate commands - CommandInfo bridgedActionspauseActionCommandInfo = + CommandInfo readPumpConfigurationAndControlMinConstSpeedAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.BridgedActionsCluster) cluster) - .pauseAction( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("actionID"), - (Long) commandArguments.get("invokeID")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readMinConstSpeedAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - bridgedActionspauseActionCommandParams); - bridgedActionsClusterCommandInfoMap.put("pauseAction", bridgedActionspauseActionCommandInfo); - Map bridgedActionspauseActionWithDurationCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlMinConstSpeedCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readMinConstSpeedAttribute", + readPumpConfigurationAndControlMinConstSpeedAttributeCommandInfo); + Map readPumpConfigurationAndControlMaxConstSpeedCommandParams = new LinkedHashMap(); - CommandParameterInfo bridgedActionspauseActionWithDurationCommandParameterInfo = - new CommandParameterInfo("BridgedActions", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo bridgedActionspauseActionWithDurationactionIDCommandParameterInfo = - new CommandParameterInfo("actionID", int.class); - bridgedActionspauseActionWithDurationCommandParams.put( - "actionID", bridgedActionspauseActionWithDurationactionIDCommandParameterInfo); - - CommandParameterInfo bridgedActionspauseActionWithDurationinvokeIDCommandParameterInfo = - new CommandParameterInfo("invokeID", long.class); - bridgedActionspauseActionWithDurationCommandParams.put( - "invokeID", bridgedActionspauseActionWithDurationinvokeIDCommandParameterInfo); - - CommandParameterInfo bridgedActionspauseActionWithDurationdurationCommandParameterInfo = - new CommandParameterInfo("duration", long.class); - bridgedActionspauseActionWithDurationCommandParams.put( - "duration", bridgedActionspauseActionWithDurationdurationCommandParameterInfo); - - // Populate commands - CommandInfo bridgedActionspauseActionWithDurationCommandInfo = + CommandInfo readPumpConfigurationAndControlMaxConstSpeedAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.BridgedActionsCluster) cluster) - .pauseActionWithDuration( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("actionID"), - (Long) commandArguments.get("invokeID"), - (Long) commandArguments.get("duration")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readMaxConstSpeedAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - bridgedActionspauseActionWithDurationCommandParams); - bridgedActionsClusterCommandInfoMap.put( - "pauseActionWithDuration", bridgedActionspauseActionWithDurationCommandInfo); - Map bridgedActionsresumeActionCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlMaxConstSpeedCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readMaxConstSpeedAttribute", + readPumpConfigurationAndControlMaxConstSpeedAttributeCommandInfo); + Map readPumpConfigurationAndControlMinConstFlowCommandParams = new LinkedHashMap(); - CommandParameterInfo bridgedActionsresumeActionCommandParameterInfo = - new CommandParameterInfo("BridgedActions", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo bridgedActionsresumeActionactionIDCommandParameterInfo = - new CommandParameterInfo("actionID", int.class); - bridgedActionsresumeActionCommandParams.put( - "actionID", bridgedActionsresumeActionactionIDCommandParameterInfo); - - CommandParameterInfo bridgedActionsresumeActioninvokeIDCommandParameterInfo = - new CommandParameterInfo("invokeID", long.class); - bridgedActionsresumeActionCommandParams.put( - "invokeID", bridgedActionsresumeActioninvokeIDCommandParameterInfo); - - // Populate commands - CommandInfo bridgedActionsresumeActionCommandInfo = + CommandInfo readPumpConfigurationAndControlMinConstFlowAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.BridgedActionsCluster) cluster) - .resumeAction( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("actionID"), - (Long) commandArguments.get("invokeID")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readMinConstFlowAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - bridgedActionsresumeActionCommandParams); - bridgedActionsClusterCommandInfoMap.put("resumeAction", bridgedActionsresumeActionCommandInfo); - Map bridgedActionsstartActionCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlMinConstFlowCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readMinConstFlowAttribute", + readPumpConfigurationAndControlMinConstFlowAttributeCommandInfo); + Map readPumpConfigurationAndControlMaxConstFlowCommandParams = new LinkedHashMap(); - CommandParameterInfo bridgedActionsstartActionCommandParameterInfo = - new CommandParameterInfo("BridgedActions", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo bridgedActionsstartActionactionIDCommandParameterInfo = - new CommandParameterInfo("actionID", int.class); - bridgedActionsstartActionCommandParams.put( - "actionID", bridgedActionsstartActionactionIDCommandParameterInfo); - - CommandParameterInfo bridgedActionsstartActioninvokeIDCommandParameterInfo = - new CommandParameterInfo("invokeID", long.class); - bridgedActionsstartActionCommandParams.put( - "invokeID", bridgedActionsstartActioninvokeIDCommandParameterInfo); - - // Populate commands - CommandInfo bridgedActionsstartActionCommandInfo = + CommandInfo readPumpConfigurationAndControlMaxConstFlowAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.BridgedActionsCluster) cluster) - .startAction( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("actionID"), - (Long) commandArguments.get("invokeID")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readMaxConstFlowAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - bridgedActionsstartActionCommandParams); - bridgedActionsClusterCommandInfoMap.put("startAction", bridgedActionsstartActionCommandInfo); - Map bridgedActionsstartActionWithDurationCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlMaxConstFlowCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readMaxConstFlowAttribute", + readPumpConfigurationAndControlMaxConstFlowAttributeCommandInfo); + Map readPumpConfigurationAndControlMinConstTempCommandParams = new LinkedHashMap(); - CommandParameterInfo bridgedActionsstartActionWithDurationCommandParameterInfo = - new CommandParameterInfo("BridgedActions", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo bridgedActionsstartActionWithDurationactionIDCommandParameterInfo = - new CommandParameterInfo("actionID", int.class); - bridgedActionsstartActionWithDurationCommandParams.put( - "actionID", bridgedActionsstartActionWithDurationactionIDCommandParameterInfo); - - CommandParameterInfo bridgedActionsstartActionWithDurationinvokeIDCommandParameterInfo = - new CommandParameterInfo("invokeID", long.class); - bridgedActionsstartActionWithDurationCommandParams.put( - "invokeID", bridgedActionsstartActionWithDurationinvokeIDCommandParameterInfo); - - CommandParameterInfo bridgedActionsstartActionWithDurationdurationCommandParameterInfo = - new CommandParameterInfo("duration", long.class); - bridgedActionsstartActionWithDurationCommandParams.put( - "duration", bridgedActionsstartActionWithDurationdurationCommandParameterInfo); - - // Populate commands - CommandInfo bridgedActionsstartActionWithDurationCommandInfo = + CommandInfo readPumpConfigurationAndControlMinConstTempAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.BridgedActionsCluster) cluster) - .startActionWithDuration( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("actionID"), - (Long) commandArguments.get("invokeID"), - (Long) commandArguments.get("duration")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readMinConstTempAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - bridgedActionsstartActionWithDurationCommandParams); - bridgedActionsClusterCommandInfoMap.put( - "startActionWithDuration", bridgedActionsstartActionWithDurationCommandInfo); - Map bridgedActionsstopActionCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlMinConstTempCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readMinConstTempAttribute", + readPumpConfigurationAndControlMinConstTempAttributeCommandInfo); + Map readPumpConfigurationAndControlMaxConstTempCommandParams = new LinkedHashMap(); - CommandParameterInfo bridgedActionsstopActionCommandParameterInfo = - new CommandParameterInfo("BridgedActions", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo bridgedActionsstopActionactionIDCommandParameterInfo = - new CommandParameterInfo("actionID", int.class); - bridgedActionsstopActionCommandParams.put( - "actionID", bridgedActionsstopActionactionIDCommandParameterInfo); - - CommandParameterInfo bridgedActionsstopActioninvokeIDCommandParameterInfo = - new CommandParameterInfo("invokeID", long.class); - bridgedActionsstopActionCommandParams.put( - "invokeID", bridgedActionsstopActioninvokeIDCommandParameterInfo); - - // Populate commands - CommandInfo bridgedActionsstopActionCommandInfo = + CommandInfo readPumpConfigurationAndControlMaxConstTempAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.BridgedActionsCluster) cluster) - .stopAction( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("actionID"), - (Long) commandArguments.get("invokeID")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readMaxConstTempAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - bridgedActionsstopActionCommandParams); - bridgedActionsClusterCommandInfoMap.put("stopAction", bridgedActionsstopActionCommandInfo); - // Populate cluster - ClusterInfo bridgedActionsClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.BridgedActionsCluster(ptr, endpointId), - bridgedActionsClusterCommandInfoMap); - clusterMap.put("bridgedActions", bridgedActionsClusterInfo); - Map bridgedDeviceBasicClusterCommandInfoMap = new LinkedHashMap<>(); - // Populate cluster - ClusterInfo bridgedDeviceBasicClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.BridgedDeviceBasicCluster(ptr, endpointId), - bridgedDeviceBasicClusterCommandInfoMap); - clusterMap.put("bridgedDeviceBasic", bridgedDeviceBasicClusterInfo); - Map colorControlClusterCommandInfoMap = new LinkedHashMap<>(); - Map colorControlcolorLoopSetCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlMaxConstTempCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readMaxConstTempAttribute", + readPumpConfigurationAndControlMaxConstTempAttributeCommandInfo); + Map readPumpConfigurationAndControlPumpStatusCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlcolorLoopSetCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlcolorLoopSetupdateFlagsCommandParameterInfo = - new CommandParameterInfo("updateFlags", int.class); - colorControlcolorLoopSetCommandParams.put( - "updateFlags", colorControlcolorLoopSetupdateFlagsCommandParameterInfo); - - CommandParameterInfo colorControlcolorLoopSetactionCommandParameterInfo = - new CommandParameterInfo("action", int.class); - colorControlcolorLoopSetCommandParams.put( - "action", colorControlcolorLoopSetactionCommandParameterInfo); - - CommandParameterInfo colorControlcolorLoopSetdirectionCommandParameterInfo = - new CommandParameterInfo("direction", int.class); - colorControlcolorLoopSetCommandParams.put( - "direction", colorControlcolorLoopSetdirectionCommandParameterInfo); - - CommandParameterInfo colorControlcolorLoopSettimeCommandParameterInfo = - new CommandParameterInfo("time", int.class); - colorControlcolorLoopSetCommandParams.put( - "time", colorControlcolorLoopSettimeCommandParameterInfo); - - CommandParameterInfo colorControlcolorLoopSetstartHueCommandParameterInfo = - new CommandParameterInfo("startHue", int.class); - colorControlcolorLoopSetCommandParams.put( - "startHue", colorControlcolorLoopSetstartHueCommandParameterInfo); - - CommandParameterInfo colorControlcolorLoopSetoptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlcolorLoopSetCommandParams.put( - "optionsMask", colorControlcolorLoopSetoptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlcolorLoopSetoptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlcolorLoopSetCommandParams.put( - "optionsOverride", colorControlcolorLoopSetoptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlcolorLoopSetCommandInfo = + CommandInfo readPumpConfigurationAndControlPumpStatusAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .colorLoopSet( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("updateFlags"), - (Integer) commandArguments.get("action"), - (Integer) commandArguments.get("direction"), - (Integer) commandArguments.get("time"), - (Integer) commandArguments.get("startHue"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readPumpStatusAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlcolorLoopSetCommandParams); - colorControlClusterCommandInfoMap.put("colorLoopSet", colorControlcolorLoopSetCommandInfo); - Map colorControlenhancedMoveHueCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlPumpStatusCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readPumpStatusAttribute", readPumpConfigurationAndControlPumpStatusAttributeCommandInfo); + Map + readPumpConfigurationAndControlEffectiveOperationModeCommandParams = + new LinkedHashMap(); + CommandInfo readPumpConfigurationAndControlEffectiveOperationModeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readEffectiveOperationModeAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlEffectiveOperationModeCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readEffectiveOperationModeAttribute", + readPumpConfigurationAndControlEffectiveOperationModeAttributeCommandInfo); + Map + readPumpConfigurationAndControlEffectiveControlModeCommandParams = + new LinkedHashMap(); + CommandInfo readPumpConfigurationAndControlEffectiveControlModeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readEffectiveControlModeAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlEffectiveControlModeCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readEffectiveControlModeAttribute", + readPumpConfigurationAndControlEffectiveControlModeAttributeCommandInfo); + Map readPumpConfigurationAndControlCapacityCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlenhancedMoveHueCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlenhancedMoveHuemoveModeCommandParameterInfo = - new CommandParameterInfo("moveMode", int.class); - colorControlenhancedMoveHueCommandParams.put( - "moveMode", colorControlenhancedMoveHuemoveModeCommandParameterInfo); - - CommandParameterInfo colorControlenhancedMoveHuerateCommandParameterInfo = - new CommandParameterInfo("rate", int.class); - colorControlenhancedMoveHueCommandParams.put( - "rate", colorControlenhancedMoveHuerateCommandParameterInfo); - - CommandParameterInfo colorControlenhancedMoveHueoptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlenhancedMoveHueCommandParams.put( - "optionsMask", colorControlenhancedMoveHueoptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlenhancedMoveHueoptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlenhancedMoveHueCommandParams.put( - "optionsOverride", colorControlenhancedMoveHueoptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlenhancedMoveHueCommandInfo = + CommandInfo readPumpConfigurationAndControlCapacityAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readCapacityAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlCapacityCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readCapacityAttribute", readPumpConfigurationAndControlCapacityAttributeCommandInfo); + Map readPumpConfigurationAndControlSpeedCommandParams = + new LinkedHashMap(); + CommandInfo readPumpConfigurationAndControlSpeedAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readSpeedAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlSpeedCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readSpeedAttribute", readPumpConfigurationAndControlSpeedAttributeCommandInfo); + Map + readPumpConfigurationAndControlLifetimeEnergyConsumedCommandParams = + new LinkedHashMap(); + CommandInfo readPumpConfigurationAndControlLifetimeEnergyConsumedAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .enhancedMoveHue( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("moveMode"), - (Integer) commandArguments.get("rate"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readLifetimeEnergyConsumedAttribute( + (ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlenhancedMoveHueCommandParams); - colorControlClusterCommandInfoMap.put( - "enhancedMoveHue", colorControlenhancedMoveHueCommandInfo); - Map colorControlenhancedMoveToHueCommandParams = + () -> new DelegatedLongAttributeCallback(), + readPumpConfigurationAndControlLifetimeEnergyConsumedCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readLifetimeEnergyConsumedAttribute", + readPumpConfigurationAndControlLifetimeEnergyConsumedAttributeCommandInfo); + Map readPumpConfigurationAndControlOperationModeCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlenhancedMoveToHueCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlenhancedMoveToHueenhancedHueCommandParameterInfo = - new CommandParameterInfo("enhancedHue", int.class); - colorControlenhancedMoveToHueCommandParams.put( - "enhancedHue", colorControlenhancedMoveToHueenhancedHueCommandParameterInfo); - - CommandParameterInfo colorControlenhancedMoveToHuedirectionCommandParameterInfo = - new CommandParameterInfo("direction", int.class); - colorControlenhancedMoveToHueCommandParams.put( - "direction", colorControlenhancedMoveToHuedirectionCommandParameterInfo); - - CommandParameterInfo colorControlenhancedMoveToHuetransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - colorControlenhancedMoveToHueCommandParams.put( - "transitionTime", colorControlenhancedMoveToHuetransitionTimeCommandParameterInfo); - - CommandParameterInfo colorControlenhancedMoveToHueoptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlenhancedMoveToHueCommandParams.put( - "optionsMask", colorControlenhancedMoveToHueoptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlenhancedMoveToHueoptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlenhancedMoveToHueCommandParams.put( - "optionsOverride", colorControlenhancedMoveToHueoptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlenhancedMoveToHueCommandInfo = + CommandInfo readPumpConfigurationAndControlOperationModeAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .enhancedMoveToHue( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("enhancedHue"), - (Integer) commandArguments.get("direction"), - (Integer) commandArguments.get("transitionTime"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readOperationModeAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlenhancedMoveToHueCommandParams); - colorControlClusterCommandInfoMap.put( - "enhancedMoveToHue", colorControlenhancedMoveToHueCommandInfo); - Map colorControlenhancedMoveToHueAndSaturationCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlOperationModeCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readOperationModeAttribute", + readPumpConfigurationAndControlOperationModeAttributeCommandInfo); + Map readPumpConfigurationAndControlControlModeCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlenhancedMoveToHueAndSaturationCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlenhancedMoveToHueAndSaturationenhancedHueCommandParameterInfo = - new CommandParameterInfo("enhancedHue", int.class); - colorControlenhancedMoveToHueAndSaturationCommandParams.put( - "enhancedHue", colorControlenhancedMoveToHueAndSaturationenhancedHueCommandParameterInfo); - - CommandParameterInfo colorControlenhancedMoveToHueAndSaturationsaturationCommandParameterInfo = - new CommandParameterInfo("saturation", int.class); - colorControlenhancedMoveToHueAndSaturationCommandParams.put( - "saturation", colorControlenhancedMoveToHueAndSaturationsaturationCommandParameterInfo); - - CommandParameterInfo - colorControlenhancedMoveToHueAndSaturationtransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - colorControlenhancedMoveToHueAndSaturationCommandParams.put( - "transitionTime", - colorControlenhancedMoveToHueAndSaturationtransitionTimeCommandParameterInfo); - - CommandParameterInfo colorControlenhancedMoveToHueAndSaturationoptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlenhancedMoveToHueAndSaturationCommandParams.put( - "optionsMask", colorControlenhancedMoveToHueAndSaturationoptionsMaskCommandParameterInfo); - - CommandParameterInfo - colorControlenhancedMoveToHueAndSaturationoptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlenhancedMoveToHueAndSaturationCommandParams.put( - "optionsOverride", - colorControlenhancedMoveToHueAndSaturationoptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlenhancedMoveToHueAndSaturationCommandInfo = + CommandInfo readPumpConfigurationAndControlControlModeAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .enhancedMoveToHueAndSaturation( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("enhancedHue"), - (Integer) commandArguments.get("saturation"), - (Integer) commandArguments.get("transitionTime"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readControlModeAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlenhancedMoveToHueAndSaturationCommandParams); - colorControlClusterCommandInfoMap.put( - "enhancedMoveToHueAndSaturation", colorControlenhancedMoveToHueAndSaturationCommandInfo); - Map colorControlenhancedStepHueCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlControlModeCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readControlModeAttribute", readPumpConfigurationAndControlControlModeAttributeCommandInfo); + Map readPumpConfigurationAndControlAlarmMaskCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlenhancedStepHueCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlenhancedStepHuestepModeCommandParameterInfo = - new CommandParameterInfo("stepMode", int.class); - colorControlenhancedStepHueCommandParams.put( - "stepMode", colorControlenhancedStepHuestepModeCommandParameterInfo); - - CommandParameterInfo colorControlenhancedStepHuestepSizeCommandParameterInfo = - new CommandParameterInfo("stepSize", int.class); - colorControlenhancedStepHueCommandParams.put( - "stepSize", colorControlenhancedStepHuestepSizeCommandParameterInfo); - - CommandParameterInfo colorControlenhancedStepHuetransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - colorControlenhancedStepHueCommandParams.put( - "transitionTime", colorControlenhancedStepHuetransitionTimeCommandParameterInfo); - - CommandParameterInfo colorControlenhancedStepHueoptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlenhancedStepHueCommandParams.put( - "optionsMask", colorControlenhancedStepHueoptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlenhancedStepHueoptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlenhancedStepHueCommandParams.put( - "optionsOverride", colorControlenhancedStepHueoptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlenhancedStepHueCommandInfo = + CommandInfo readPumpConfigurationAndControlAlarmMaskAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .enhancedStepHue( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("stepMode"), - (Integer) commandArguments.get("stepSize"), - (Integer) commandArguments.get("transitionTime"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readAlarmMaskAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlenhancedStepHueCommandParams); - colorControlClusterCommandInfoMap.put( - "enhancedStepHue", colorControlenhancedStepHueCommandInfo); - Map colorControlmoveColorCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlAlarmMaskCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readAlarmMaskAttribute", readPumpConfigurationAndControlAlarmMaskAttributeCommandInfo); + Map readPumpConfigurationAndControlFeatureMapCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlmoveColorCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlmoveColorrateXCommandParameterInfo = - new CommandParameterInfo("rateX", int.class); - colorControlmoveColorCommandParams.put("rateX", colorControlmoveColorrateXCommandParameterInfo); - - CommandParameterInfo colorControlmoveColorrateYCommandParameterInfo = - new CommandParameterInfo("rateY", int.class); - colorControlmoveColorCommandParams.put("rateY", colorControlmoveColorrateYCommandParameterInfo); - - CommandParameterInfo colorControlmoveColoroptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlmoveColorCommandParams.put( - "optionsMask", colorControlmoveColoroptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlmoveColoroptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlmoveColorCommandParams.put( - "optionsOverride", colorControlmoveColoroptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlmoveColorCommandInfo = + CommandInfo readPumpConfigurationAndControlFeatureMapAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .moveColor( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("rateX"), - (Integer) commandArguments.get("rateY"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readFeatureMapAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlmoveColorCommandParams); - colorControlClusterCommandInfoMap.put("moveColor", colorControlmoveColorCommandInfo); - Map colorControlmoveColorTemperatureCommandParams = + () -> new DelegatedLongAttributeCallback(), + readPumpConfigurationAndControlFeatureMapCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readFeatureMapAttribute", readPumpConfigurationAndControlFeatureMapAttributeCommandInfo); + Map readPumpConfigurationAndControlClusterRevisionCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlmoveColorTemperatureCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlmoveColorTemperaturemoveModeCommandParameterInfo = - new CommandParameterInfo("moveMode", int.class); - colorControlmoveColorTemperatureCommandParams.put( - "moveMode", colorControlmoveColorTemperaturemoveModeCommandParameterInfo); - - CommandParameterInfo colorControlmoveColorTemperaturerateCommandParameterInfo = - new CommandParameterInfo("rate", int.class); - colorControlmoveColorTemperatureCommandParams.put( - "rate", colorControlmoveColorTemperaturerateCommandParameterInfo); - - CommandParameterInfo - colorControlmoveColorTemperaturecolorTemperatureMinimumCommandParameterInfo = - new CommandParameterInfo("colorTemperatureMinimum", int.class); - colorControlmoveColorTemperatureCommandParams.put( - "colorTemperatureMinimum", - colorControlmoveColorTemperaturecolorTemperatureMinimumCommandParameterInfo); - - CommandParameterInfo - colorControlmoveColorTemperaturecolorTemperatureMaximumCommandParameterInfo = - new CommandParameterInfo("colorTemperatureMaximum", int.class); - colorControlmoveColorTemperatureCommandParams.put( - "colorTemperatureMaximum", - colorControlmoveColorTemperaturecolorTemperatureMaximumCommandParameterInfo); - - CommandParameterInfo colorControlmoveColorTemperatureoptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlmoveColorTemperatureCommandParams.put( - "optionsMask", colorControlmoveColorTemperatureoptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlmoveColorTemperatureoptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlmoveColorTemperatureCommandParams.put( - "optionsOverride", colorControlmoveColorTemperatureoptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlmoveColorTemperatureCommandInfo = + CommandInfo readPumpConfigurationAndControlClusterRevisionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .moveColorTemperature( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("moveMode"), - (Integer) commandArguments.get("rate"), - (Integer) commandArguments.get("colorTemperatureMinimum"), - (Integer) commandArguments.get("colorTemperatureMaximum"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.PumpConfigurationAndControlCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlmoveColorTemperatureCommandParams); - colorControlClusterCommandInfoMap.put( - "moveColorTemperature", colorControlmoveColorTemperatureCommandInfo); - Map colorControlmoveHueCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readPumpConfigurationAndControlClusterRevisionCommandParams); + readPumpConfigurationAndControlCommandInfo.put( + "readClusterRevisionAttribute", + readPumpConfigurationAndControlClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap + .get("pumpConfigurationAndControl") + .combineCommands(readPumpConfigurationAndControlCommandInfo); + Map readRelativeHumidityMeasurementCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readRelativeHumidityMeasurementMeasuredValueCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlmoveHueCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlmoveHuemoveModeCommandParameterInfo = - new CommandParameterInfo("moveMode", int.class); - colorControlmoveHueCommandParams.put( - "moveMode", colorControlmoveHuemoveModeCommandParameterInfo); - - CommandParameterInfo colorControlmoveHuerateCommandParameterInfo = - new CommandParameterInfo("rate", int.class); - colorControlmoveHueCommandParams.put("rate", colorControlmoveHuerateCommandParameterInfo); - - CommandParameterInfo colorControlmoveHueoptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlmoveHueCommandParams.put( - "optionsMask", colorControlmoveHueoptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlmoveHueoptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlmoveHueCommandParams.put( - "optionsOverride", colorControlmoveHueoptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlmoveHueCommandInfo = + CommandInfo readRelativeHumidityMeasurementMeasuredValueAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .moveHue( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("moveMode"), - (Integer) commandArguments.get("rate"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.RelativeHumidityMeasurementCluster) cluster) + .readMeasuredValueAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlmoveHueCommandParams); - colorControlClusterCommandInfoMap.put("moveHue", colorControlmoveHueCommandInfo); - Map colorControlmoveSaturationCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readRelativeHumidityMeasurementMeasuredValueCommandParams); + readRelativeHumidityMeasurementCommandInfo.put( + "readMeasuredValueAttribute", + readRelativeHumidityMeasurementMeasuredValueAttributeCommandInfo); + Map readRelativeHumidityMeasurementMinMeasuredValueCommandParams = + new LinkedHashMap(); + CommandInfo readRelativeHumidityMeasurementMinMeasuredValueAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.RelativeHumidityMeasurementCluster) cluster) + .readMinMeasuredValueAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readRelativeHumidityMeasurementMinMeasuredValueCommandParams); + readRelativeHumidityMeasurementCommandInfo.put( + "readMinMeasuredValueAttribute", + readRelativeHumidityMeasurementMinMeasuredValueAttributeCommandInfo); + Map readRelativeHumidityMeasurementMaxMeasuredValueCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlmoveSaturationCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlmoveSaturationmoveModeCommandParameterInfo = - new CommandParameterInfo("moveMode", int.class); - colorControlmoveSaturationCommandParams.put( - "moveMode", colorControlmoveSaturationmoveModeCommandParameterInfo); - - CommandParameterInfo colorControlmoveSaturationrateCommandParameterInfo = - new CommandParameterInfo("rate", int.class); - colorControlmoveSaturationCommandParams.put( - "rate", colorControlmoveSaturationrateCommandParameterInfo); - - CommandParameterInfo colorControlmoveSaturationoptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlmoveSaturationCommandParams.put( - "optionsMask", colorControlmoveSaturationoptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlmoveSaturationoptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlmoveSaturationCommandParams.put( - "optionsOverride", colorControlmoveSaturationoptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlmoveSaturationCommandInfo = + CommandInfo readRelativeHumidityMeasurementMaxMeasuredValueAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .moveSaturation( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("moveMode"), - (Integer) commandArguments.get("rate"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.RelativeHumidityMeasurementCluster) cluster) + .readMaxMeasuredValueAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlmoveSaturationCommandParams); - colorControlClusterCommandInfoMap.put("moveSaturation", colorControlmoveSaturationCommandInfo); - Map colorControlmoveToColorCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readRelativeHumidityMeasurementMaxMeasuredValueCommandParams); + readRelativeHumidityMeasurementCommandInfo.put( + "readMaxMeasuredValueAttribute", + readRelativeHumidityMeasurementMaxMeasuredValueAttributeCommandInfo); + Map readRelativeHumidityMeasurementToleranceCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlmoveToColorCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlmoveToColorcolorXCommandParameterInfo = - new CommandParameterInfo("colorX", int.class); - colorControlmoveToColorCommandParams.put( - "colorX", colorControlmoveToColorcolorXCommandParameterInfo); - - CommandParameterInfo colorControlmoveToColorcolorYCommandParameterInfo = - new CommandParameterInfo("colorY", int.class); - colorControlmoveToColorCommandParams.put( - "colorY", colorControlmoveToColorcolorYCommandParameterInfo); - - CommandParameterInfo colorControlmoveToColortransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - colorControlmoveToColorCommandParams.put( - "transitionTime", colorControlmoveToColortransitionTimeCommandParameterInfo); - - CommandParameterInfo colorControlmoveToColoroptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlmoveToColorCommandParams.put( - "optionsMask", colorControlmoveToColoroptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlmoveToColoroptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlmoveToColorCommandParams.put( - "optionsOverride", colorControlmoveToColoroptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlmoveToColorCommandInfo = + CommandInfo readRelativeHumidityMeasurementToleranceAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .moveToColor( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("colorX"), - (Integer) commandArguments.get("colorY"), - (Integer) commandArguments.get("transitionTime"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.RelativeHumidityMeasurementCluster) cluster) + .readToleranceAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlmoveToColorCommandParams); - colorControlClusterCommandInfoMap.put("moveToColor", colorControlmoveToColorCommandInfo); - Map colorControlmoveToColorTemperatureCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readRelativeHumidityMeasurementToleranceCommandParams); + readRelativeHumidityMeasurementCommandInfo.put( + "readToleranceAttribute", readRelativeHumidityMeasurementToleranceAttributeCommandInfo); + Map readRelativeHumidityMeasurementClusterRevisionCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlmoveToColorTemperatureCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlmoveToColorTemperaturecolorTemperatureCommandParameterInfo = - new CommandParameterInfo("colorTemperature", int.class); - colorControlmoveToColorTemperatureCommandParams.put( - "colorTemperature", colorControlmoveToColorTemperaturecolorTemperatureCommandParameterInfo); - - CommandParameterInfo colorControlmoveToColorTemperaturetransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - colorControlmoveToColorTemperatureCommandParams.put( - "transitionTime", colorControlmoveToColorTemperaturetransitionTimeCommandParameterInfo); - - CommandParameterInfo colorControlmoveToColorTemperatureoptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlmoveToColorTemperatureCommandParams.put( - "optionsMask", colorControlmoveToColorTemperatureoptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlmoveToColorTemperatureoptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlmoveToColorTemperatureCommandParams.put( - "optionsOverride", colorControlmoveToColorTemperatureoptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlmoveToColorTemperatureCommandInfo = + CommandInfo readRelativeHumidityMeasurementClusterRevisionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .moveToColorTemperature( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("colorTemperature"), - (Integer) commandArguments.get("transitionTime"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.RelativeHumidityMeasurementCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlmoveToColorTemperatureCommandParams); - colorControlClusterCommandInfoMap.put( - "moveToColorTemperature", colorControlmoveToColorTemperatureCommandInfo); - Map colorControlmoveToHueCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readRelativeHumidityMeasurementClusterRevisionCommandParams); + readRelativeHumidityMeasurementCommandInfo.put( + "readClusterRevisionAttribute", + readRelativeHumidityMeasurementClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap + .get("relativeHumidityMeasurement") + .combineCommands(readRelativeHumidityMeasurementCommandInfo); + Map readScenesCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readScenesSceneCountCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlmoveToHueCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlmoveToHuehueCommandParameterInfo = - new CommandParameterInfo("hue", int.class); - colorControlmoveToHueCommandParams.put("hue", colorControlmoveToHuehueCommandParameterInfo); - - CommandParameterInfo colorControlmoveToHuedirectionCommandParameterInfo = - new CommandParameterInfo("direction", int.class); - colorControlmoveToHueCommandParams.put( - "direction", colorControlmoveToHuedirectionCommandParameterInfo); - - CommandParameterInfo colorControlmoveToHuetransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - colorControlmoveToHueCommandParams.put( - "transitionTime", colorControlmoveToHuetransitionTimeCommandParameterInfo); - - CommandParameterInfo colorControlmoveToHueoptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlmoveToHueCommandParams.put( - "optionsMask", colorControlmoveToHueoptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlmoveToHueoptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlmoveToHueCommandParams.put( - "optionsOverride", colorControlmoveToHueoptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlmoveToHueCommandInfo = + CommandInfo readScenesSceneCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .moveToHue( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("hue"), - (Integer) commandArguments.get("direction"), - (Integer) commandArguments.get("transitionTime"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.ScenesCluster) cluster) + .readSceneCountAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlmoveToHueCommandParams); - colorControlClusterCommandInfoMap.put("moveToHue", colorControlmoveToHueCommandInfo); - Map colorControlmoveToHueAndSaturationCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readScenesSceneCountCommandParams); + readScenesCommandInfo.put("readSceneCountAttribute", readScenesSceneCountAttributeCommandInfo); + Map readScenesCurrentSceneCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlmoveToHueAndSaturationCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlmoveToHueAndSaturationhueCommandParameterInfo = - new CommandParameterInfo("hue", int.class); - colorControlmoveToHueAndSaturationCommandParams.put( - "hue", colorControlmoveToHueAndSaturationhueCommandParameterInfo); - - CommandParameterInfo colorControlmoveToHueAndSaturationsaturationCommandParameterInfo = - new CommandParameterInfo("saturation", int.class); - colorControlmoveToHueAndSaturationCommandParams.put( - "saturation", colorControlmoveToHueAndSaturationsaturationCommandParameterInfo); - - CommandParameterInfo colorControlmoveToHueAndSaturationtransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - colorControlmoveToHueAndSaturationCommandParams.put( - "transitionTime", colorControlmoveToHueAndSaturationtransitionTimeCommandParameterInfo); - - CommandParameterInfo colorControlmoveToHueAndSaturationoptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlmoveToHueAndSaturationCommandParams.put( - "optionsMask", colorControlmoveToHueAndSaturationoptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlmoveToHueAndSaturationoptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlmoveToHueAndSaturationCommandParams.put( - "optionsOverride", colorControlmoveToHueAndSaturationoptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlmoveToHueAndSaturationCommandInfo = + CommandInfo readScenesCurrentSceneAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .moveToHueAndSaturation( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("hue"), - (Integer) commandArguments.get("saturation"), - (Integer) commandArguments.get("transitionTime"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.ScenesCluster) cluster) + .readCurrentSceneAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlmoveToHueAndSaturationCommandParams); - colorControlClusterCommandInfoMap.put( - "moveToHueAndSaturation", colorControlmoveToHueAndSaturationCommandInfo); - Map colorControlmoveToSaturationCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readScenesCurrentSceneCommandParams); + readScenesCommandInfo.put( + "readCurrentSceneAttribute", readScenesCurrentSceneAttributeCommandInfo); + Map readScenesCurrentGroupCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlmoveToSaturationCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlmoveToSaturationsaturationCommandParameterInfo = - new CommandParameterInfo("saturation", int.class); - colorControlmoveToSaturationCommandParams.put( - "saturation", colorControlmoveToSaturationsaturationCommandParameterInfo); - - CommandParameterInfo colorControlmoveToSaturationtransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - colorControlmoveToSaturationCommandParams.put( - "transitionTime", colorControlmoveToSaturationtransitionTimeCommandParameterInfo); - - CommandParameterInfo colorControlmoveToSaturationoptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlmoveToSaturationCommandParams.put( - "optionsMask", colorControlmoveToSaturationoptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlmoveToSaturationoptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlmoveToSaturationCommandParams.put( - "optionsOverride", colorControlmoveToSaturationoptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlmoveToSaturationCommandInfo = + CommandInfo readScenesCurrentGroupAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .moveToSaturation( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("saturation"), - (Integer) commandArguments.get("transitionTime"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.ScenesCluster) cluster) + .readCurrentGroupAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlmoveToSaturationCommandParams); - colorControlClusterCommandInfoMap.put( - "moveToSaturation", colorControlmoveToSaturationCommandInfo); - Map colorControlstepColorCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readScenesCurrentGroupCommandParams); + readScenesCommandInfo.put( + "readCurrentGroupAttribute", readScenesCurrentGroupAttributeCommandInfo); + Map readScenesSceneValidCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlstepColorCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlstepColorstepXCommandParameterInfo = - new CommandParameterInfo("stepX", int.class); - colorControlstepColorCommandParams.put("stepX", colorControlstepColorstepXCommandParameterInfo); - - CommandParameterInfo colorControlstepColorstepYCommandParameterInfo = - new CommandParameterInfo("stepY", int.class); - colorControlstepColorCommandParams.put("stepY", colorControlstepColorstepYCommandParameterInfo); - - CommandParameterInfo colorControlstepColortransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - colorControlstepColorCommandParams.put( - "transitionTime", colorControlstepColortransitionTimeCommandParameterInfo); - - CommandParameterInfo colorControlstepColoroptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlstepColorCommandParams.put( - "optionsMask", colorControlstepColoroptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlstepColoroptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlstepColorCommandParams.put( - "optionsOverride", colorControlstepColoroptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlstepColorCommandInfo = + CommandInfo readScenesSceneValidAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .stepColor( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("stepX"), - (Integer) commandArguments.get("stepY"), - (Integer) commandArguments.get("transitionTime"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.ScenesCluster) cluster) + .readSceneValidAttribute((ChipClusters.BooleanAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlstepColorCommandParams); - colorControlClusterCommandInfoMap.put("stepColor", colorControlstepColorCommandInfo); - Map colorControlstepColorTemperatureCommandParams = + () -> new DelegatedBooleanAttributeCallback(), + readScenesSceneValidCommandParams); + readScenesCommandInfo.put("readSceneValidAttribute", readScenesSceneValidAttributeCommandInfo); + Map readScenesNameSupportCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlstepColorTemperatureCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlstepColorTemperaturestepModeCommandParameterInfo = - new CommandParameterInfo("stepMode", int.class); - colorControlstepColorTemperatureCommandParams.put( - "stepMode", colorControlstepColorTemperaturestepModeCommandParameterInfo); - - CommandParameterInfo colorControlstepColorTemperaturestepSizeCommandParameterInfo = - new CommandParameterInfo("stepSize", int.class); - colorControlstepColorTemperatureCommandParams.put( - "stepSize", colorControlstepColorTemperaturestepSizeCommandParameterInfo); - - CommandParameterInfo colorControlstepColorTemperaturetransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - colorControlstepColorTemperatureCommandParams.put( - "transitionTime", colorControlstepColorTemperaturetransitionTimeCommandParameterInfo); - - CommandParameterInfo - colorControlstepColorTemperaturecolorTemperatureMinimumCommandParameterInfo = - new CommandParameterInfo("colorTemperatureMinimum", int.class); - colorControlstepColorTemperatureCommandParams.put( - "colorTemperatureMinimum", - colorControlstepColorTemperaturecolorTemperatureMinimumCommandParameterInfo); - - CommandParameterInfo - colorControlstepColorTemperaturecolorTemperatureMaximumCommandParameterInfo = - new CommandParameterInfo("colorTemperatureMaximum", int.class); - colorControlstepColorTemperatureCommandParams.put( - "colorTemperatureMaximum", - colorControlstepColorTemperaturecolorTemperatureMaximumCommandParameterInfo); - - CommandParameterInfo colorControlstepColorTemperatureoptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlstepColorTemperatureCommandParams.put( - "optionsMask", colorControlstepColorTemperatureoptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlstepColorTemperatureoptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlstepColorTemperatureCommandParams.put( - "optionsOverride", colorControlstepColorTemperatureoptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlstepColorTemperatureCommandInfo = + CommandInfo readScenesNameSupportAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .stepColorTemperature( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("stepMode"), - (Integer) commandArguments.get("stepSize"), - (Integer) commandArguments.get("transitionTime"), - (Integer) commandArguments.get("colorTemperatureMinimum"), - (Integer) commandArguments.get("colorTemperatureMaximum"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.ScenesCluster) cluster) + .readNameSupportAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlstepColorTemperatureCommandParams); - colorControlClusterCommandInfoMap.put( - "stepColorTemperature", colorControlstepColorTemperatureCommandInfo); - Map colorControlstepHueCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readScenesNameSupportCommandParams); + readScenesCommandInfo.put( + "readNameSupportAttribute", readScenesNameSupportAttributeCommandInfo); + Map readScenesClusterRevisionCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlstepHueCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlstepHuestepModeCommandParameterInfo = - new CommandParameterInfo("stepMode", int.class); - colorControlstepHueCommandParams.put( - "stepMode", colorControlstepHuestepModeCommandParameterInfo); - - CommandParameterInfo colorControlstepHuestepSizeCommandParameterInfo = - new CommandParameterInfo("stepSize", int.class); - colorControlstepHueCommandParams.put( - "stepSize", colorControlstepHuestepSizeCommandParameterInfo); - - CommandParameterInfo colorControlstepHuetransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - colorControlstepHueCommandParams.put( - "transitionTime", colorControlstepHuetransitionTimeCommandParameterInfo); - - CommandParameterInfo colorControlstepHueoptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlstepHueCommandParams.put( - "optionsMask", colorControlstepHueoptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlstepHueoptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlstepHueCommandParams.put( - "optionsOverride", colorControlstepHueoptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlstepHueCommandInfo = + CommandInfo readScenesClusterRevisionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .stepHue( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("stepMode"), - (Integer) commandArguments.get("stepSize"), - (Integer) commandArguments.get("transitionTime"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.ScenesCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlstepHueCommandParams); - colorControlClusterCommandInfoMap.put("stepHue", colorControlstepHueCommandInfo); - Map colorControlstepSaturationCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readScenesClusterRevisionCommandParams); + readScenesCommandInfo.put( + "readClusterRevisionAttribute", readScenesClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("scenes").combineCommands(readScenesCommandInfo); + Map readSoftwareDiagnosticsCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readSoftwareDiagnosticsCurrentHeapFreeCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlstepSaturationCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlstepSaturationstepModeCommandParameterInfo = - new CommandParameterInfo("stepMode", int.class); - colorControlstepSaturationCommandParams.put( - "stepMode", colorControlstepSaturationstepModeCommandParameterInfo); - - CommandParameterInfo colorControlstepSaturationstepSizeCommandParameterInfo = - new CommandParameterInfo("stepSize", int.class); - colorControlstepSaturationCommandParams.put( - "stepSize", colorControlstepSaturationstepSizeCommandParameterInfo); - - CommandParameterInfo colorControlstepSaturationtransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - colorControlstepSaturationCommandParams.put( - "transitionTime", colorControlstepSaturationtransitionTimeCommandParameterInfo); - - CommandParameterInfo colorControlstepSaturationoptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlstepSaturationCommandParams.put( - "optionsMask", colorControlstepSaturationoptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlstepSaturationoptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlstepSaturationCommandParams.put( - "optionsOverride", colorControlstepSaturationoptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlstepSaturationCommandInfo = + CommandInfo readSoftwareDiagnosticsCurrentHeapFreeAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .stepSaturation( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("stepMode"), - (Integer) commandArguments.get("stepSize"), - (Integer) commandArguments.get("transitionTime"), - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.SoftwareDiagnosticsCluster) cluster) + .readCurrentHeapFreeAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlstepSaturationCommandParams); - colorControlClusterCommandInfoMap.put("stepSaturation", colorControlstepSaturationCommandInfo); - Map colorControlstopMoveStepCommandParams = + () -> new DelegatedLongAttributeCallback(), + readSoftwareDiagnosticsCurrentHeapFreeCommandParams); + readSoftwareDiagnosticsCommandInfo.put( + "readCurrentHeapFreeAttribute", readSoftwareDiagnosticsCurrentHeapFreeAttributeCommandInfo); + Map readSoftwareDiagnosticsCurrentHeapUsedCommandParams = new LinkedHashMap(); - CommandParameterInfo colorControlstopMoveStepCommandParameterInfo = - new CommandParameterInfo("ColorControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo colorControlstopMoveStepoptionsMaskCommandParameterInfo = - new CommandParameterInfo("optionsMask", int.class); - colorControlstopMoveStepCommandParams.put( - "optionsMask", colorControlstopMoveStepoptionsMaskCommandParameterInfo); - - CommandParameterInfo colorControlstopMoveStepoptionsOverrideCommandParameterInfo = - new CommandParameterInfo("optionsOverride", int.class); - colorControlstopMoveStepCommandParams.put( - "optionsOverride", colorControlstopMoveStepoptionsOverrideCommandParameterInfo); - - // Populate commands - CommandInfo colorControlstopMoveStepCommandInfo = + CommandInfo readSoftwareDiagnosticsCurrentHeapUsedAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ColorControlCluster) cluster) - .stopMoveStep( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("optionsMask"), - (Integer) commandArguments.get("optionsOverride")); + ((ChipClusters.SoftwareDiagnosticsCluster) cluster) + .readCurrentHeapUsedAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - colorControlstopMoveStepCommandParams); - colorControlClusterCommandInfoMap.put("stopMoveStep", colorControlstopMoveStepCommandInfo); - // Populate cluster - ClusterInfo colorControlClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.ColorControlCluster(ptr, endpointId), - colorControlClusterCommandInfoMap); - clusterMap.put("colorControl", colorControlClusterInfo); - Map contentLauncherClusterCommandInfoMap = new LinkedHashMap<>(); - Map contentLauncherlaunchContentCommandParams = + () -> new DelegatedLongAttributeCallback(), + readSoftwareDiagnosticsCurrentHeapUsedCommandParams); + readSoftwareDiagnosticsCommandInfo.put( + "readCurrentHeapUsedAttribute", readSoftwareDiagnosticsCurrentHeapUsedAttributeCommandInfo); + Map readSoftwareDiagnosticsCurrentHeapHighWatermarkCommandParams = new LinkedHashMap(); - CommandParameterInfo contentLauncherlaunchContentCommandParameterInfo = - new CommandParameterInfo( - "ContentLauncher", - ChipClusters.ContentLauncherCluster.LaunchContentResponseCallback.class); - CommandParameterInfo contentLauncherlaunchContentautoPlayCommandParameterInfo = - new CommandParameterInfo("autoPlay", boolean.class); - contentLauncherlaunchContentCommandParams.put( - "autoPlay", contentLauncherlaunchContentautoPlayCommandParameterInfo); - - CommandParameterInfo contentLauncherlaunchContentdataCommandParameterInfo = - new CommandParameterInfo("data", String.class); - contentLauncherlaunchContentCommandParams.put( - "data", contentLauncherlaunchContentdataCommandParameterInfo); - - // Populate commands - CommandInfo contentLauncherlaunchContentCommandInfo = + CommandInfo readSoftwareDiagnosticsCurrentHeapHighWatermarkAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ContentLauncherCluster) cluster) - .launchContent( - (ChipClusters.ContentLauncherCluster.LaunchContentResponseCallback) callback, - (Boolean) commandArguments.get("autoPlay"), - (String) commandArguments.get("data")); + ((ChipClusters.SoftwareDiagnosticsCluster) cluster) + .readCurrentHeapHighWatermarkAttribute( + (ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedLaunchContentResponseCallback(), - contentLauncherlaunchContentCommandParams); - contentLauncherClusterCommandInfoMap.put( - "launchContent", contentLauncherlaunchContentCommandInfo); - Map contentLauncherlaunchURLCommandParams = + () -> new DelegatedLongAttributeCallback(), + readSoftwareDiagnosticsCurrentHeapHighWatermarkCommandParams); + readSoftwareDiagnosticsCommandInfo.put( + "readCurrentHeapHighWatermarkAttribute", + readSoftwareDiagnosticsCurrentHeapHighWatermarkAttributeCommandInfo); + Map readSoftwareDiagnosticsClusterRevisionCommandParams = new LinkedHashMap(); - CommandParameterInfo contentLauncherlaunchURLCommandParameterInfo = - new CommandParameterInfo( - "ContentLauncher", ChipClusters.ContentLauncherCluster.LaunchURLResponseCallback.class); - CommandParameterInfo contentLauncherlaunchURLcontentURLCommandParameterInfo = - new CommandParameterInfo("contentURL", String.class); - contentLauncherlaunchURLCommandParams.put( - "contentURL", contentLauncherlaunchURLcontentURLCommandParameterInfo); - - CommandParameterInfo contentLauncherlaunchURLdisplayStringCommandParameterInfo = - new CommandParameterInfo("displayString", String.class); - contentLauncherlaunchURLCommandParams.put( - "displayString", contentLauncherlaunchURLdisplayStringCommandParameterInfo); - - // Populate commands - CommandInfo contentLauncherlaunchURLCommandInfo = + CommandInfo readSoftwareDiagnosticsClusterRevisionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ContentLauncherCluster) cluster) - .launchURL( - (ChipClusters.ContentLauncherCluster.LaunchURLResponseCallback) callback, - (String) commandArguments.get("contentURL"), - (String) commandArguments.get("displayString")); + ((ChipClusters.SoftwareDiagnosticsCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedLaunchURLResponseCallback(), - contentLauncherlaunchURLCommandParams); - contentLauncherClusterCommandInfoMap.put("launchURL", contentLauncherlaunchURLCommandInfo); - // Populate cluster - ClusterInfo contentLauncherClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.ContentLauncherCluster(ptr, endpointId), - contentLauncherClusterCommandInfoMap); - clusterMap.put("contentLauncher", contentLauncherClusterInfo); - Map descriptorClusterCommandInfoMap = new LinkedHashMap<>(); - // Populate cluster - ClusterInfo descriptorClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.DescriptorCluster(ptr, endpointId), - descriptorClusterCommandInfoMap); - clusterMap.put("descriptor", descriptorClusterInfo); - Map diagnosticLogsClusterCommandInfoMap = new LinkedHashMap<>(); - Map diagnosticLogsretrieveLogsRequestCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readSoftwareDiagnosticsClusterRevisionCommandParams); + readSoftwareDiagnosticsCommandInfo.put( + "readClusterRevisionAttribute", readSoftwareDiagnosticsClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("softwareDiagnostics").combineCommands(readSoftwareDiagnosticsCommandInfo); + Map readSwitchCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readSwitchNumberOfPositionsCommandParams = new LinkedHashMap(); - CommandParameterInfo diagnosticLogsretrieveLogsRequestCommandParameterInfo = - new CommandParameterInfo( - "DiagnosticLogs", - ChipClusters.DiagnosticLogsCluster.RetrieveLogsResponseCallback.class); - CommandParameterInfo diagnosticLogsretrieveLogsRequestintentCommandParameterInfo = - new CommandParameterInfo("intent", int.class); - diagnosticLogsretrieveLogsRequestCommandParams.put( - "intent", diagnosticLogsretrieveLogsRequestintentCommandParameterInfo); - - CommandParameterInfo diagnosticLogsretrieveLogsRequestrequestedProtocolCommandParameterInfo = - new CommandParameterInfo("requestedProtocol", int.class); - diagnosticLogsretrieveLogsRequestCommandParams.put( - "requestedProtocol", - diagnosticLogsretrieveLogsRequestrequestedProtocolCommandParameterInfo); - - CommandParameterInfo - diagnosticLogsretrieveLogsRequesttransferFileDesignatorCommandParameterInfo = - new CommandParameterInfo("transferFileDesignator", byte[].class); - diagnosticLogsretrieveLogsRequestCommandParams.put( - "transferFileDesignator", - diagnosticLogsretrieveLogsRequesttransferFileDesignatorCommandParameterInfo); - - // Populate commands - CommandInfo diagnosticLogsretrieveLogsRequestCommandInfo = + CommandInfo readSwitchNumberOfPositionsAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.SwitchCluster) cluster) + .readNumberOfPositionsAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readSwitchNumberOfPositionsCommandParams); + readSwitchCommandInfo.put( + "readNumberOfPositionsAttribute", readSwitchNumberOfPositionsAttributeCommandInfo); + Map readSwitchCurrentPositionCommandParams = + new LinkedHashMap(); + CommandInfo readSwitchCurrentPositionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.SwitchCluster) cluster) + .readCurrentPositionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readSwitchCurrentPositionCommandParams); + readSwitchCommandInfo.put( + "readCurrentPositionAttribute", readSwitchCurrentPositionAttributeCommandInfo); + Map readSwitchMultiPressMaxCommandParams = + new LinkedHashMap(); + CommandInfo readSwitchMultiPressMaxAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DiagnosticLogsCluster) cluster) - .retrieveLogsRequest( - (ChipClusters.DiagnosticLogsCluster.RetrieveLogsResponseCallback) callback, - (Integer) commandArguments.get("intent"), - (Integer) commandArguments.get("requestedProtocol"), - (byte[]) commandArguments.get("transferFileDesignator")); + ((ChipClusters.SwitchCluster) cluster) + .readMultiPressMaxAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedRetrieveLogsResponseCallback(), - diagnosticLogsretrieveLogsRequestCommandParams); - diagnosticLogsClusterCommandInfoMap.put( - "retrieveLogsRequest", diagnosticLogsretrieveLogsRequestCommandInfo); - // Populate cluster - ClusterInfo diagnosticLogsClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.DiagnosticLogsCluster(ptr, endpointId), - diagnosticLogsClusterCommandInfoMap); - clusterMap.put("diagnosticLogs", diagnosticLogsClusterInfo); - Map doorLockClusterCommandInfoMap = new LinkedHashMap<>(); - Map doorLockclearAllPinsCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readSwitchMultiPressMaxCommandParams); + readSwitchCommandInfo.put( + "readMultiPressMaxAttribute", readSwitchMultiPressMaxAttributeCommandInfo); + Map readSwitchFeatureMapCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLockclearAllPinsCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.ClearAllPinsResponseCallback.class); - // Populate commands - CommandInfo doorLockclearAllPinsCommandInfo = + CommandInfo readSwitchFeatureMapAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .clearAllPins( - (ChipClusters.DoorLockCluster.ClearAllPinsResponseCallback) callback); + ((ChipClusters.SwitchCluster) cluster) + .readFeatureMapAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedClearAllPinsResponseCallback(), - doorLockclearAllPinsCommandParams); - doorLockClusterCommandInfoMap.put("clearAllPins", doorLockclearAllPinsCommandInfo); - Map doorLockclearAllRfidsCommandParams = + () -> new DelegatedLongAttributeCallback(), + readSwitchFeatureMapCommandParams); + readSwitchCommandInfo.put("readFeatureMapAttribute", readSwitchFeatureMapAttributeCommandInfo); + Map readSwitchClusterRevisionCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLockclearAllRfidsCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.ClearAllRfidsResponseCallback.class); - // Populate commands - CommandInfo doorLockclearAllRfidsCommandInfo = + CommandInfo readSwitchClusterRevisionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .clearAllRfids( - (ChipClusters.DoorLockCluster.ClearAllRfidsResponseCallback) callback); + ((ChipClusters.SwitchCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedClearAllRfidsResponseCallback(), - doorLockclearAllRfidsCommandParams); - doorLockClusterCommandInfoMap.put("clearAllRfids", doorLockclearAllRfidsCommandInfo); - Map doorLockclearHolidayScheduleCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readSwitchClusterRevisionCommandParams); + readSwitchCommandInfo.put( + "readClusterRevisionAttribute", readSwitchClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("switch").combineCommands(readSwitchCommandInfo); + Map readTvChannelCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readTvChannelTvChannelListCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLockclearHolidayScheduleCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.ClearHolidayScheduleResponseCallback.class); - CommandParameterInfo doorLockclearHolidaySchedulescheduleIdCommandParameterInfo = - new CommandParameterInfo("scheduleId", int.class); - doorLockclearHolidayScheduleCommandParams.put( - "scheduleId", doorLockclearHolidaySchedulescheduleIdCommandParameterInfo); - - // Populate commands - CommandInfo doorLockclearHolidayScheduleCommandInfo = + CommandInfo readTvChannelTvChannelListAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .clearHolidaySchedule( - (ChipClusters.DoorLockCluster.ClearHolidayScheduleResponseCallback) callback, - (Integer) commandArguments.get("scheduleId")); + ((ChipClusters.TvChannelCluster) cluster) + .readTvChannelListAttribute( + (ChipClusters.TvChannelCluster.TvChannelListAttributeCallback) callback); }, - () -> new DelegatedClearHolidayScheduleResponseCallback(), - doorLockclearHolidayScheduleCommandParams); - doorLockClusterCommandInfoMap.put( - "clearHolidaySchedule", doorLockclearHolidayScheduleCommandInfo); - Map doorLockclearPinCommandParams = + () -> new DelegatedTvChannelListAttributeCallback(), + readTvChannelTvChannelListCommandParams); + readTvChannelCommandInfo.put( + "readTvChannelListAttribute", readTvChannelTvChannelListAttributeCommandInfo); + Map readTvChannelTvChannelLineupCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLockclearPinCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.ClearPinResponseCallback.class); - CommandParameterInfo doorLockclearPinuserIdCommandParameterInfo = - new CommandParameterInfo("userId", int.class); - doorLockclearPinCommandParams.put("userId", doorLockclearPinuserIdCommandParameterInfo); - - // Populate commands - CommandInfo doorLockclearPinCommandInfo = + CommandInfo readTvChannelTvChannelLineupAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .clearPin( - (ChipClusters.DoorLockCluster.ClearPinResponseCallback) callback, - (Integer) commandArguments.get("userId")); + ((ChipClusters.TvChannelCluster) cluster) + .readTvChannelLineupAttribute( + (ChipClusters.OctetStringAttributeCallback) callback); }, - () -> new DelegatedClearPinResponseCallback(), - doorLockclearPinCommandParams); - doorLockClusterCommandInfoMap.put("clearPin", doorLockclearPinCommandInfo); - Map doorLockclearRfidCommandParams = + () -> new DelegatedOctetStringAttributeCallback(), + readTvChannelTvChannelLineupCommandParams); + readTvChannelCommandInfo.put( + "readTvChannelLineupAttribute", readTvChannelTvChannelLineupAttributeCommandInfo); + Map readTvChannelCurrentTvChannelCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLockclearRfidCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.ClearRfidResponseCallback.class); - CommandParameterInfo doorLockclearRfiduserIdCommandParameterInfo = - new CommandParameterInfo("userId", int.class); - doorLockclearRfidCommandParams.put("userId", doorLockclearRfiduserIdCommandParameterInfo); - - // Populate commands - CommandInfo doorLockclearRfidCommandInfo = + CommandInfo readTvChannelCurrentTvChannelAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .clearRfid( - (ChipClusters.DoorLockCluster.ClearRfidResponseCallback) callback, - (Integer) commandArguments.get("userId")); + ((ChipClusters.TvChannelCluster) cluster) + .readCurrentTvChannelAttribute( + (ChipClusters.OctetStringAttributeCallback) callback); }, - () -> new DelegatedClearRfidResponseCallback(), - doorLockclearRfidCommandParams); - doorLockClusterCommandInfoMap.put("clearRfid", doorLockclearRfidCommandInfo); - Map doorLockclearWeekdayScheduleCommandParams = + () -> new DelegatedOctetStringAttributeCallback(), + readTvChannelCurrentTvChannelCommandParams); + readTvChannelCommandInfo.put( + "readCurrentTvChannelAttribute", readTvChannelCurrentTvChannelAttributeCommandInfo); + Map readTvChannelClusterRevisionCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLockclearWeekdayScheduleCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.ClearWeekdayScheduleResponseCallback.class); - CommandParameterInfo doorLockclearWeekdaySchedulescheduleIdCommandParameterInfo = - new CommandParameterInfo("scheduleId", int.class); - doorLockclearWeekdayScheduleCommandParams.put( - "scheduleId", doorLockclearWeekdaySchedulescheduleIdCommandParameterInfo); - - CommandParameterInfo doorLockclearWeekdayScheduleuserIdCommandParameterInfo = - new CommandParameterInfo("userId", int.class); - doorLockclearWeekdayScheduleCommandParams.put( - "userId", doorLockclearWeekdayScheduleuserIdCommandParameterInfo); - - // Populate commands - CommandInfo doorLockclearWeekdayScheduleCommandInfo = + CommandInfo readTvChannelClusterRevisionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .clearWeekdaySchedule( - (ChipClusters.DoorLockCluster.ClearWeekdayScheduleResponseCallback) callback, - (Integer) commandArguments.get("scheduleId"), - (Integer) commandArguments.get("userId")); + ((ChipClusters.TvChannelCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedClearWeekdayScheduleResponseCallback(), - doorLockclearWeekdayScheduleCommandParams); - doorLockClusterCommandInfoMap.put( - "clearWeekdaySchedule", doorLockclearWeekdayScheduleCommandInfo); - Map doorLockclearYeardayScheduleCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readTvChannelClusterRevisionCommandParams); + readTvChannelCommandInfo.put( + "readClusterRevisionAttribute", readTvChannelClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("tvChannel").combineCommands(readTvChannelCommandInfo); + Map readTargetNavigatorCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readTargetNavigatorTargetNavigatorListCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLockclearYeardayScheduleCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.ClearYeardayScheduleResponseCallback.class); - CommandParameterInfo doorLockclearYeardaySchedulescheduleIdCommandParameterInfo = - new CommandParameterInfo("scheduleId", int.class); - doorLockclearYeardayScheduleCommandParams.put( - "scheduleId", doorLockclearYeardaySchedulescheduleIdCommandParameterInfo); - - CommandParameterInfo doorLockclearYeardayScheduleuserIdCommandParameterInfo = - new CommandParameterInfo("userId", int.class); - doorLockclearYeardayScheduleCommandParams.put( - "userId", doorLockclearYeardayScheduleuserIdCommandParameterInfo); - - // Populate commands - CommandInfo doorLockclearYeardayScheduleCommandInfo = + CommandInfo readTargetNavigatorTargetNavigatorListAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .clearYeardaySchedule( - (ChipClusters.DoorLockCluster.ClearYeardayScheduleResponseCallback) callback, - (Integer) commandArguments.get("scheduleId"), - (Integer) commandArguments.get("userId")); + ((ChipClusters.TargetNavigatorCluster) cluster) + .readTargetNavigatorListAttribute( + (ChipClusters.TargetNavigatorCluster.TargetNavigatorListAttributeCallback) + callback); }, - () -> new DelegatedClearYeardayScheduleResponseCallback(), - doorLockclearYeardayScheduleCommandParams); - doorLockClusterCommandInfoMap.put( - "clearYeardaySchedule", doorLockclearYeardayScheduleCommandInfo); - Map doorLockgetHolidayScheduleCommandParams = + () -> new DelegatedTargetNavigatorListAttributeCallback(), + readTargetNavigatorTargetNavigatorListCommandParams); + readTargetNavigatorCommandInfo.put( + "readTargetNavigatorListAttribute", + readTargetNavigatorTargetNavigatorListAttributeCommandInfo); + Map readTargetNavigatorClusterRevisionCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLockgetHolidayScheduleCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.GetHolidayScheduleResponseCallback.class); - CommandParameterInfo doorLockgetHolidaySchedulescheduleIdCommandParameterInfo = - new CommandParameterInfo("scheduleId", int.class); - doorLockgetHolidayScheduleCommandParams.put( - "scheduleId", doorLockgetHolidaySchedulescheduleIdCommandParameterInfo); - - // Populate commands - CommandInfo doorLockgetHolidayScheduleCommandInfo = + CommandInfo readTargetNavigatorClusterRevisionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .getHolidaySchedule( - (ChipClusters.DoorLockCluster.GetHolidayScheduleResponseCallback) callback, - (Integer) commandArguments.get("scheduleId")); + ((ChipClusters.TargetNavigatorCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedGetHolidayScheduleResponseCallback(), - doorLockgetHolidayScheduleCommandParams); - doorLockClusterCommandInfoMap.put("getHolidaySchedule", doorLockgetHolidayScheduleCommandInfo); - Map doorLockgetLogRecordCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readTargetNavigatorClusterRevisionCommandParams); + readTargetNavigatorCommandInfo.put( + "readClusterRevisionAttribute", readTargetNavigatorClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("targetNavigator").combineCommands(readTargetNavigatorCommandInfo); + Map readTemperatureMeasurementCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readTemperatureMeasurementMeasuredValueCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLockgetLogRecordCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.GetLogRecordResponseCallback.class); - CommandParameterInfo doorLockgetLogRecordlogIndexCommandParameterInfo = - new CommandParameterInfo("logIndex", int.class); - doorLockgetLogRecordCommandParams.put( - "logIndex", doorLockgetLogRecordlogIndexCommandParameterInfo); - - // Populate commands - CommandInfo doorLockgetLogRecordCommandInfo = + CommandInfo readTemperatureMeasurementMeasuredValueAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .getLogRecord( - (ChipClusters.DoorLockCluster.GetLogRecordResponseCallback) callback, - (Integer) commandArguments.get("logIndex")); + ((ChipClusters.TemperatureMeasurementCluster) cluster) + .readMeasuredValueAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedGetLogRecordResponseCallback(), - doorLockgetLogRecordCommandParams); - doorLockClusterCommandInfoMap.put("getLogRecord", doorLockgetLogRecordCommandInfo); - Map doorLockgetPinCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readTemperatureMeasurementMeasuredValueCommandParams); + readTemperatureMeasurementCommandInfo.put( + "readMeasuredValueAttribute", readTemperatureMeasurementMeasuredValueAttributeCommandInfo); + Map readTemperatureMeasurementMinMeasuredValueCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLockgetPinCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.GetPinResponseCallback.class); - CommandParameterInfo doorLockgetPinuserIdCommandParameterInfo = - new CommandParameterInfo("userId", int.class); - doorLockgetPinCommandParams.put("userId", doorLockgetPinuserIdCommandParameterInfo); - - // Populate commands - CommandInfo doorLockgetPinCommandInfo = + CommandInfo readTemperatureMeasurementMinMeasuredValueAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .getPin( - (ChipClusters.DoorLockCluster.GetPinResponseCallback) callback, - (Integer) commandArguments.get("userId")); + ((ChipClusters.TemperatureMeasurementCluster) cluster) + .readMinMeasuredValueAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedGetPinResponseCallback(), - doorLockgetPinCommandParams); - doorLockClusterCommandInfoMap.put("getPin", doorLockgetPinCommandInfo); - Map doorLockgetRfidCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readTemperatureMeasurementMinMeasuredValueCommandParams); + readTemperatureMeasurementCommandInfo.put( + "readMinMeasuredValueAttribute", + readTemperatureMeasurementMinMeasuredValueAttributeCommandInfo); + Map readTemperatureMeasurementMaxMeasuredValueCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLockgetRfidCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.GetRfidResponseCallback.class); - CommandParameterInfo doorLockgetRfiduserIdCommandParameterInfo = - new CommandParameterInfo("userId", int.class); - doorLockgetRfidCommandParams.put("userId", doorLockgetRfiduserIdCommandParameterInfo); - - // Populate commands - CommandInfo doorLockgetRfidCommandInfo = + CommandInfo readTemperatureMeasurementMaxMeasuredValueAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .getRfid( - (ChipClusters.DoorLockCluster.GetRfidResponseCallback) callback, - (Integer) commandArguments.get("userId")); + ((ChipClusters.TemperatureMeasurementCluster) cluster) + .readMaxMeasuredValueAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedGetRfidResponseCallback(), - doorLockgetRfidCommandParams); - doorLockClusterCommandInfoMap.put("getRfid", doorLockgetRfidCommandInfo); - Map doorLockgetUserTypeCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readTemperatureMeasurementMaxMeasuredValueCommandParams); + readTemperatureMeasurementCommandInfo.put( + "readMaxMeasuredValueAttribute", + readTemperatureMeasurementMaxMeasuredValueAttributeCommandInfo); + Map readTemperatureMeasurementToleranceCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLockgetUserTypeCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.GetUserTypeResponseCallback.class); - CommandParameterInfo doorLockgetUserTypeuserIdCommandParameterInfo = - new CommandParameterInfo("userId", int.class); - doorLockgetUserTypeCommandParams.put("userId", doorLockgetUserTypeuserIdCommandParameterInfo); - - // Populate commands - CommandInfo doorLockgetUserTypeCommandInfo = + CommandInfo readTemperatureMeasurementToleranceAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .getUserType( - (ChipClusters.DoorLockCluster.GetUserTypeResponseCallback) callback, - (Integer) commandArguments.get("userId")); + ((ChipClusters.TemperatureMeasurementCluster) cluster) + .readToleranceAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedGetUserTypeResponseCallback(), - doorLockgetUserTypeCommandParams); - doorLockClusterCommandInfoMap.put("getUserType", doorLockgetUserTypeCommandInfo); - Map doorLockgetWeekdayScheduleCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readTemperatureMeasurementToleranceCommandParams); + readTemperatureMeasurementCommandInfo.put( + "readToleranceAttribute", readTemperatureMeasurementToleranceAttributeCommandInfo); + Map readTemperatureMeasurementClusterRevisionCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLockgetWeekdayScheduleCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.GetWeekdayScheduleResponseCallback.class); - CommandParameterInfo doorLockgetWeekdaySchedulescheduleIdCommandParameterInfo = - new CommandParameterInfo("scheduleId", int.class); - doorLockgetWeekdayScheduleCommandParams.put( - "scheduleId", doorLockgetWeekdaySchedulescheduleIdCommandParameterInfo); - - CommandParameterInfo doorLockgetWeekdayScheduleuserIdCommandParameterInfo = - new CommandParameterInfo("userId", int.class); - doorLockgetWeekdayScheduleCommandParams.put( - "userId", doorLockgetWeekdayScheduleuserIdCommandParameterInfo); - - // Populate commands - CommandInfo doorLockgetWeekdayScheduleCommandInfo = + CommandInfo readTemperatureMeasurementClusterRevisionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .getWeekdaySchedule( - (ChipClusters.DoorLockCluster.GetWeekdayScheduleResponseCallback) callback, - (Integer) commandArguments.get("scheduleId"), - (Integer) commandArguments.get("userId")); + ((ChipClusters.TemperatureMeasurementCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedGetWeekdayScheduleResponseCallback(), - doorLockgetWeekdayScheduleCommandParams); - doorLockClusterCommandInfoMap.put("getWeekdaySchedule", doorLockgetWeekdayScheduleCommandInfo); - Map doorLockgetYeardayScheduleCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readTemperatureMeasurementClusterRevisionCommandParams); + readTemperatureMeasurementCommandInfo.put( + "readClusterRevisionAttribute", + readTemperatureMeasurementClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("temperatureMeasurement").combineCommands(readTemperatureMeasurementCommandInfo); + Map readTestClusterCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readTestClusterBooleanCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLockgetYeardayScheduleCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.GetYeardayScheduleResponseCallback.class); - CommandParameterInfo doorLockgetYeardaySchedulescheduleIdCommandParameterInfo = - new CommandParameterInfo("scheduleId", int.class); - doorLockgetYeardayScheduleCommandParams.put( - "scheduleId", doorLockgetYeardaySchedulescheduleIdCommandParameterInfo); - - CommandParameterInfo doorLockgetYeardayScheduleuserIdCommandParameterInfo = - new CommandParameterInfo("userId", int.class); - doorLockgetYeardayScheduleCommandParams.put( - "userId", doorLockgetYeardayScheduleuserIdCommandParameterInfo); - - // Populate commands - CommandInfo doorLockgetYeardayScheduleCommandInfo = + CommandInfo readTestClusterBooleanAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TestClusterCluster) cluster) + .readBooleanAttribute((ChipClusters.BooleanAttributeCallback) callback); + }, + () -> new DelegatedBooleanAttributeCallback(), + readTestClusterBooleanCommandParams); + readTestClusterCommandInfo.put( + "readBooleanAttribute", readTestClusterBooleanAttributeCommandInfo); + Map readTestClusterBitmap8CommandParams = + new LinkedHashMap(); + CommandInfo readTestClusterBitmap8AttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TestClusterCluster) cluster) + .readBitmap8Attribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readTestClusterBitmap8CommandParams); + readTestClusterCommandInfo.put( + "readBitmap8Attribute", readTestClusterBitmap8AttributeCommandInfo); + Map readTestClusterBitmap16CommandParams = + new LinkedHashMap(); + CommandInfo readTestClusterBitmap16AttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TestClusterCluster) cluster) + .readBitmap16Attribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readTestClusterBitmap16CommandParams); + readTestClusterCommandInfo.put( + "readBitmap16Attribute", readTestClusterBitmap16AttributeCommandInfo); + Map readTestClusterBitmap32CommandParams = + new LinkedHashMap(); + CommandInfo readTestClusterBitmap32AttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TestClusterCluster) cluster) + .readBitmap32Attribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readTestClusterBitmap32CommandParams); + readTestClusterCommandInfo.put( + "readBitmap32Attribute", readTestClusterBitmap32AttributeCommandInfo); + Map readTestClusterBitmap64CommandParams = + new LinkedHashMap(); + CommandInfo readTestClusterBitmap64AttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .getYeardaySchedule( - (ChipClusters.DoorLockCluster.GetYeardayScheduleResponseCallback) callback, - (Integer) commandArguments.get("scheduleId"), - (Integer) commandArguments.get("userId")); + ((ChipClusters.TestClusterCluster) cluster) + .readBitmap64Attribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedGetYeardayScheduleResponseCallback(), - doorLockgetYeardayScheduleCommandParams); - doorLockClusterCommandInfoMap.put("getYeardaySchedule", doorLockgetYeardayScheduleCommandInfo); - Map doorLocklockDoorCommandParams = + () -> new DelegatedLongAttributeCallback(), + readTestClusterBitmap64CommandParams); + readTestClusterCommandInfo.put( + "readBitmap64Attribute", readTestClusterBitmap64AttributeCommandInfo); + Map readTestClusterInt8uCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLocklockDoorCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.LockDoorResponseCallback.class); - CommandParameterInfo doorLocklockDoorpinCommandParameterInfo = - new CommandParameterInfo("pin", byte[].class); - doorLocklockDoorCommandParams.put("pin", doorLocklockDoorpinCommandParameterInfo); - - // Populate commands - CommandInfo doorLocklockDoorCommandInfo = + CommandInfo readTestClusterInt8uAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .lockDoor( - (ChipClusters.DoorLockCluster.LockDoorResponseCallback) callback, - (byte[]) commandArguments.get("pin")); + ((ChipClusters.TestClusterCluster) cluster) + .readInt8uAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedLockDoorResponseCallback(), - doorLocklockDoorCommandParams); - doorLockClusterCommandInfoMap.put("lockDoor", doorLocklockDoorCommandInfo); - Map doorLocksetHolidayScheduleCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readTestClusterInt8uCommandParams); + readTestClusterCommandInfo.put("readInt8uAttribute", readTestClusterInt8uAttributeCommandInfo); + Map readTestClusterInt16uCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLocksetHolidayScheduleCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.SetHolidayScheduleResponseCallback.class); - CommandParameterInfo doorLocksetHolidaySchedulescheduleIdCommandParameterInfo = - new CommandParameterInfo("scheduleId", int.class); - doorLocksetHolidayScheduleCommandParams.put( - "scheduleId", doorLocksetHolidaySchedulescheduleIdCommandParameterInfo); - - CommandParameterInfo doorLocksetHolidaySchedulelocalStartTimeCommandParameterInfo = - new CommandParameterInfo("localStartTime", long.class); - doorLocksetHolidayScheduleCommandParams.put( - "localStartTime", doorLocksetHolidaySchedulelocalStartTimeCommandParameterInfo); - - CommandParameterInfo doorLocksetHolidaySchedulelocalEndTimeCommandParameterInfo = - new CommandParameterInfo("localEndTime", long.class); - doorLocksetHolidayScheduleCommandParams.put( - "localEndTime", doorLocksetHolidaySchedulelocalEndTimeCommandParameterInfo); - - CommandParameterInfo doorLocksetHolidayScheduleoperatingModeDuringHolidayCommandParameterInfo = - new CommandParameterInfo("operatingModeDuringHoliday", int.class); - doorLocksetHolidayScheduleCommandParams.put( - "operatingModeDuringHoliday", - doorLocksetHolidayScheduleoperatingModeDuringHolidayCommandParameterInfo); - - // Populate commands - CommandInfo doorLocksetHolidayScheduleCommandInfo = + CommandInfo readTestClusterInt16uAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .setHolidaySchedule( - (ChipClusters.DoorLockCluster.SetHolidayScheduleResponseCallback) callback, - (Integer) commandArguments.get("scheduleId"), - (Long) commandArguments.get("localStartTime"), - (Long) commandArguments.get("localEndTime"), - (Integer) commandArguments.get("operatingModeDuringHoliday")); + ((ChipClusters.TestClusterCluster) cluster) + .readInt16uAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedSetHolidayScheduleResponseCallback(), - doorLocksetHolidayScheduleCommandParams); - doorLockClusterCommandInfoMap.put("setHolidaySchedule", doorLocksetHolidayScheduleCommandInfo); - Map doorLocksetPinCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readTestClusterInt16uCommandParams); + readTestClusterCommandInfo.put( + "readInt16uAttribute", readTestClusterInt16uAttributeCommandInfo); + Map readTestClusterInt32uCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLocksetPinCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.SetPinResponseCallback.class); - CommandParameterInfo doorLocksetPinuserIdCommandParameterInfo = - new CommandParameterInfo("userId", int.class); - doorLocksetPinCommandParams.put("userId", doorLocksetPinuserIdCommandParameterInfo); - - CommandParameterInfo doorLocksetPinuserStatusCommandParameterInfo = - new CommandParameterInfo("userStatus", int.class); - doorLocksetPinCommandParams.put("userStatus", doorLocksetPinuserStatusCommandParameterInfo); - - CommandParameterInfo doorLocksetPinuserTypeCommandParameterInfo = - new CommandParameterInfo("userType", int.class); - doorLocksetPinCommandParams.put("userType", doorLocksetPinuserTypeCommandParameterInfo); - - CommandParameterInfo doorLocksetPinpinCommandParameterInfo = - new CommandParameterInfo("pin", byte[].class); - doorLocksetPinCommandParams.put("pin", doorLocksetPinpinCommandParameterInfo); - - // Populate commands - CommandInfo doorLocksetPinCommandInfo = + CommandInfo readTestClusterInt32uAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .setPin( - (ChipClusters.DoorLockCluster.SetPinResponseCallback) callback, - (Integer) commandArguments.get("userId"), - (Integer) commandArguments.get("userStatus"), - (Integer) commandArguments.get("userType"), - (byte[]) commandArguments.get("pin")); + ((ChipClusters.TestClusterCluster) cluster) + .readInt32uAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedSetPinResponseCallback(), - doorLocksetPinCommandParams); - doorLockClusterCommandInfoMap.put("setPin", doorLocksetPinCommandInfo); - Map doorLocksetRfidCommandParams = + () -> new DelegatedLongAttributeCallback(), + readTestClusterInt32uCommandParams); + readTestClusterCommandInfo.put( + "readInt32uAttribute", readTestClusterInt32uAttributeCommandInfo); + Map readTestClusterInt64uCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLocksetRfidCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.SetRfidResponseCallback.class); - CommandParameterInfo doorLocksetRfiduserIdCommandParameterInfo = - new CommandParameterInfo("userId", int.class); - doorLocksetRfidCommandParams.put("userId", doorLocksetRfiduserIdCommandParameterInfo); - - CommandParameterInfo doorLocksetRfiduserStatusCommandParameterInfo = - new CommandParameterInfo("userStatus", int.class); - doorLocksetRfidCommandParams.put("userStatus", doorLocksetRfiduserStatusCommandParameterInfo); - - CommandParameterInfo doorLocksetRfiduserTypeCommandParameterInfo = - new CommandParameterInfo("userType", int.class); - doorLocksetRfidCommandParams.put("userType", doorLocksetRfiduserTypeCommandParameterInfo); - - CommandParameterInfo doorLocksetRfididCommandParameterInfo = - new CommandParameterInfo("id", byte[].class); - doorLocksetRfidCommandParams.put("id", doorLocksetRfididCommandParameterInfo); - - // Populate commands - CommandInfo doorLocksetRfidCommandInfo = + CommandInfo readTestClusterInt64uAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .setRfid( - (ChipClusters.DoorLockCluster.SetRfidResponseCallback) callback, - (Integer) commandArguments.get("userId"), - (Integer) commandArguments.get("userStatus"), - (Integer) commandArguments.get("userType"), - (byte[]) commandArguments.get("id")); + ((ChipClusters.TestClusterCluster) cluster) + .readInt64uAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedSetRfidResponseCallback(), - doorLocksetRfidCommandParams); - doorLockClusterCommandInfoMap.put("setRfid", doorLocksetRfidCommandInfo); - Map doorLocksetUserTypeCommandParams = + () -> new DelegatedLongAttributeCallback(), + readTestClusterInt64uCommandParams); + readTestClusterCommandInfo.put( + "readInt64uAttribute", readTestClusterInt64uAttributeCommandInfo); + Map readTestClusterInt8sCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLocksetUserTypeCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.SetUserTypeResponseCallback.class); - CommandParameterInfo doorLocksetUserTypeuserIdCommandParameterInfo = - new CommandParameterInfo("userId", int.class); - doorLocksetUserTypeCommandParams.put("userId", doorLocksetUserTypeuserIdCommandParameterInfo); - - CommandParameterInfo doorLocksetUserTypeuserTypeCommandParameterInfo = - new CommandParameterInfo("userType", int.class); - doorLocksetUserTypeCommandParams.put( - "userType", doorLocksetUserTypeuserTypeCommandParameterInfo); - - // Populate commands - CommandInfo doorLocksetUserTypeCommandInfo = + CommandInfo readTestClusterInt8sAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .setUserType( - (ChipClusters.DoorLockCluster.SetUserTypeResponseCallback) callback, - (Integer) commandArguments.get("userId"), - (Integer) commandArguments.get("userType")); + ((ChipClusters.TestClusterCluster) cluster) + .readInt8sAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedSetUserTypeResponseCallback(), - doorLocksetUserTypeCommandParams); - doorLockClusterCommandInfoMap.put("setUserType", doorLocksetUserTypeCommandInfo); - Map doorLocksetWeekdayScheduleCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readTestClusterInt8sCommandParams); + readTestClusterCommandInfo.put("readInt8sAttribute", readTestClusterInt8sAttributeCommandInfo); + Map readTestClusterInt16sCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLocksetWeekdayScheduleCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.SetWeekdayScheduleResponseCallback.class); - CommandParameterInfo doorLocksetWeekdaySchedulescheduleIdCommandParameterInfo = - new CommandParameterInfo("scheduleId", int.class); - doorLocksetWeekdayScheduleCommandParams.put( - "scheduleId", doorLocksetWeekdaySchedulescheduleIdCommandParameterInfo); - - CommandParameterInfo doorLocksetWeekdayScheduleuserIdCommandParameterInfo = - new CommandParameterInfo("userId", int.class); - doorLocksetWeekdayScheduleCommandParams.put( - "userId", doorLocksetWeekdayScheduleuserIdCommandParameterInfo); - - CommandParameterInfo doorLocksetWeekdayScheduledaysMaskCommandParameterInfo = - new CommandParameterInfo("daysMask", int.class); - doorLocksetWeekdayScheduleCommandParams.put( - "daysMask", doorLocksetWeekdayScheduledaysMaskCommandParameterInfo); - - CommandParameterInfo doorLocksetWeekdaySchedulestartHourCommandParameterInfo = - new CommandParameterInfo("startHour", int.class); - doorLocksetWeekdayScheduleCommandParams.put( - "startHour", doorLocksetWeekdaySchedulestartHourCommandParameterInfo); - - CommandParameterInfo doorLocksetWeekdaySchedulestartMinuteCommandParameterInfo = - new CommandParameterInfo("startMinute", int.class); - doorLocksetWeekdayScheduleCommandParams.put( - "startMinute", doorLocksetWeekdaySchedulestartMinuteCommandParameterInfo); - - CommandParameterInfo doorLocksetWeekdayScheduleendHourCommandParameterInfo = - new CommandParameterInfo("endHour", int.class); - doorLocksetWeekdayScheduleCommandParams.put( - "endHour", doorLocksetWeekdayScheduleendHourCommandParameterInfo); - - CommandParameterInfo doorLocksetWeekdayScheduleendMinuteCommandParameterInfo = - new CommandParameterInfo("endMinute", int.class); - doorLocksetWeekdayScheduleCommandParams.put( - "endMinute", doorLocksetWeekdayScheduleendMinuteCommandParameterInfo); - - // Populate commands - CommandInfo doorLocksetWeekdayScheduleCommandInfo = + CommandInfo readTestClusterInt16sAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .setWeekdaySchedule( - (ChipClusters.DoorLockCluster.SetWeekdayScheduleResponseCallback) callback, - (Integer) commandArguments.get("scheduleId"), - (Integer) commandArguments.get("userId"), - (Integer) commandArguments.get("daysMask"), - (Integer) commandArguments.get("startHour"), - (Integer) commandArguments.get("startMinute"), - (Integer) commandArguments.get("endHour"), - (Integer) commandArguments.get("endMinute")); + ((ChipClusters.TestClusterCluster) cluster) + .readInt16sAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedSetWeekdayScheduleResponseCallback(), - doorLocksetWeekdayScheduleCommandParams); - doorLockClusterCommandInfoMap.put("setWeekdaySchedule", doorLocksetWeekdayScheduleCommandInfo); - Map doorLocksetYeardayScheduleCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readTestClusterInt16sCommandParams); + readTestClusterCommandInfo.put( + "readInt16sAttribute", readTestClusterInt16sAttributeCommandInfo); + Map readTestClusterInt32sCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLocksetYeardayScheduleCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.SetYeardayScheduleResponseCallback.class); - CommandParameterInfo doorLocksetYeardaySchedulescheduleIdCommandParameterInfo = - new CommandParameterInfo("scheduleId", int.class); - doorLocksetYeardayScheduleCommandParams.put( - "scheduleId", doorLocksetYeardaySchedulescheduleIdCommandParameterInfo); - - CommandParameterInfo doorLocksetYeardayScheduleuserIdCommandParameterInfo = - new CommandParameterInfo("userId", int.class); - doorLocksetYeardayScheduleCommandParams.put( - "userId", doorLocksetYeardayScheduleuserIdCommandParameterInfo); - - CommandParameterInfo doorLocksetYeardaySchedulelocalStartTimeCommandParameterInfo = - new CommandParameterInfo("localStartTime", long.class); - doorLocksetYeardayScheduleCommandParams.put( - "localStartTime", doorLocksetYeardaySchedulelocalStartTimeCommandParameterInfo); - - CommandParameterInfo doorLocksetYeardaySchedulelocalEndTimeCommandParameterInfo = - new CommandParameterInfo("localEndTime", long.class); - doorLocksetYeardayScheduleCommandParams.put( - "localEndTime", doorLocksetYeardaySchedulelocalEndTimeCommandParameterInfo); - - // Populate commands - CommandInfo doorLocksetYeardayScheduleCommandInfo = + CommandInfo readTestClusterInt32sAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .setYeardaySchedule( - (ChipClusters.DoorLockCluster.SetYeardayScheduleResponseCallback) callback, - (Integer) commandArguments.get("scheduleId"), - (Integer) commandArguments.get("userId"), - (Long) commandArguments.get("localStartTime"), - (Long) commandArguments.get("localEndTime")); + ((ChipClusters.TestClusterCluster) cluster) + .readInt32sAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedSetYeardayScheduleResponseCallback(), - doorLocksetYeardayScheduleCommandParams); - doorLockClusterCommandInfoMap.put("setYeardaySchedule", doorLocksetYeardayScheduleCommandInfo); - Map doorLockunlockDoorCommandParams = + () -> new DelegatedLongAttributeCallback(), + readTestClusterInt32sCommandParams); + readTestClusterCommandInfo.put( + "readInt32sAttribute", readTestClusterInt32sAttributeCommandInfo); + Map readTestClusterInt64sCommandParams = new LinkedHashMap(); - CommandParameterInfo doorLockunlockDoorCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.UnlockDoorResponseCallback.class); - CommandParameterInfo doorLockunlockDoorpinCommandParameterInfo = - new CommandParameterInfo("pin", byte[].class); - doorLockunlockDoorCommandParams.put("pin", doorLockunlockDoorpinCommandParameterInfo); - - // Populate commands - CommandInfo doorLockunlockDoorCommandInfo = + CommandInfo readTestClusterInt64sAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .unlockDoor( - (ChipClusters.DoorLockCluster.UnlockDoorResponseCallback) callback, - (byte[]) commandArguments.get("pin")); + ((ChipClusters.TestClusterCluster) cluster) + .readInt64sAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedUnlockDoorResponseCallback(), - doorLockunlockDoorCommandParams); - doorLockClusterCommandInfoMap.put("unlockDoor", doorLockunlockDoorCommandInfo); - Map doorLockunlockWithTimeoutCommandParams = - new LinkedHashMap(); - CommandParameterInfo doorLockunlockWithTimeoutCommandParameterInfo = - new CommandParameterInfo( - "DoorLock", ChipClusters.DoorLockCluster.UnlockWithTimeoutResponseCallback.class); - CommandParameterInfo doorLockunlockWithTimeouttimeoutInSecondsCommandParameterInfo = - new CommandParameterInfo("timeoutInSeconds", int.class); - doorLockunlockWithTimeoutCommandParams.put( - "timeoutInSeconds", doorLockunlockWithTimeouttimeoutInSecondsCommandParameterInfo); - - CommandParameterInfo doorLockunlockWithTimeoutpinCommandParameterInfo = - new CommandParameterInfo("pin", byte[].class); - doorLockunlockWithTimeoutCommandParams.put( - "pin", doorLockunlockWithTimeoutpinCommandParameterInfo); - - // Populate commands - CommandInfo doorLockunlockWithTimeoutCommandInfo = + () -> new DelegatedLongAttributeCallback(), + readTestClusterInt64sCommandParams); + readTestClusterCommandInfo.put( + "readInt64sAttribute", readTestClusterInt64sAttributeCommandInfo); + Map readTestClusterEnum8CommandParams = + new LinkedHashMap(); + CommandInfo readTestClusterEnum8AttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.DoorLockCluster) cluster) - .unlockWithTimeout( - (ChipClusters.DoorLockCluster.UnlockWithTimeoutResponseCallback) callback, - (Integer) commandArguments.get("timeoutInSeconds"), - (byte[]) commandArguments.get("pin")); + ((ChipClusters.TestClusterCluster) cluster) + .readEnum8Attribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedUnlockWithTimeoutResponseCallback(), - doorLockunlockWithTimeoutCommandParams); - doorLockClusterCommandInfoMap.put("unlockWithTimeout", doorLockunlockWithTimeoutCommandInfo); - // Populate cluster - ClusterInfo doorLockClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.DoorLockCluster(ptr, endpointId), - doorLockClusterCommandInfoMap); - clusterMap.put("doorLock", doorLockClusterInfo); - Map electricalMeasurementClusterCommandInfoMap = new LinkedHashMap<>(); - // Populate cluster - ClusterInfo electricalMeasurementClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.ElectricalMeasurementCluster(ptr, endpointId), - electricalMeasurementClusterCommandInfoMap); - clusterMap.put("electricalMeasurement", electricalMeasurementClusterInfo); - Map ethernetNetworkDiagnosticsClusterCommandInfoMap = - new LinkedHashMap<>(); - Map ethernetNetworkDiagnosticsresetCountsCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readTestClusterEnum8CommandParams); + readTestClusterCommandInfo.put("readEnum8Attribute", readTestClusterEnum8AttributeCommandInfo); + Map readTestClusterEnum16CommandParams = new LinkedHashMap(); - CommandParameterInfo ethernetNetworkDiagnosticsresetCountsCommandParameterInfo = - new CommandParameterInfo( - "EthernetNetworkDiagnostics", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo ethernetNetworkDiagnosticsresetCountsCommandInfo = + CommandInfo readTestClusterEnum16AttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.EthernetNetworkDiagnosticsCluster) cluster) - .resetCounts((DefaultClusterCallback) callback); + ((ChipClusters.TestClusterCluster) cluster) + .readEnum16Attribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - ethernetNetworkDiagnosticsresetCountsCommandParams); - ethernetNetworkDiagnosticsClusterCommandInfoMap.put( - "resetCounts", ethernetNetworkDiagnosticsresetCountsCommandInfo); - // Populate cluster - ClusterInfo ethernetNetworkDiagnosticsClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> - new ChipClusters.EthernetNetworkDiagnosticsCluster(ptr, endpointId), - ethernetNetworkDiagnosticsClusterCommandInfoMap); - clusterMap.put("ethernetNetworkDiagnostics", ethernetNetworkDiagnosticsClusterInfo); - Map fixedLabelClusterCommandInfoMap = new LinkedHashMap<>(); - // Populate cluster - ClusterInfo fixedLabelClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.FixedLabelCluster(ptr, endpointId), - fixedLabelClusterCommandInfoMap); - clusterMap.put("fixedLabel", fixedLabelClusterInfo); - Map flowMeasurementClusterCommandInfoMap = new LinkedHashMap<>(); - // Populate cluster - ClusterInfo flowMeasurementClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.FlowMeasurementCluster(ptr, endpointId), - flowMeasurementClusterCommandInfoMap); - clusterMap.put("flowMeasurement", flowMeasurementClusterInfo); - Map generalCommissioningClusterCommandInfoMap = new LinkedHashMap<>(); - Map generalCommissioningarmFailSafeCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readTestClusterEnum16CommandParams); + readTestClusterCommandInfo.put( + "readEnum16Attribute", readTestClusterEnum16AttributeCommandInfo); + Map readTestClusterOctetStringCommandParams = new LinkedHashMap(); - CommandParameterInfo generalCommissioningarmFailSafeCommandParameterInfo = - new CommandParameterInfo( - "GeneralCommissioning", - ChipClusters.GeneralCommissioningCluster.ArmFailSafeResponseCallback.class); - CommandParameterInfo generalCommissioningarmFailSafeexpiryLengthSecondsCommandParameterInfo = - new CommandParameterInfo("expiryLengthSeconds", int.class); - generalCommissioningarmFailSafeCommandParams.put( - "expiryLengthSeconds", - generalCommissioningarmFailSafeexpiryLengthSecondsCommandParameterInfo); - - CommandParameterInfo generalCommissioningarmFailSafebreadcrumbCommandParameterInfo = - new CommandParameterInfo("breadcrumb", long.class); - generalCommissioningarmFailSafeCommandParams.put( - "breadcrumb", generalCommissioningarmFailSafebreadcrumbCommandParameterInfo); - - CommandParameterInfo generalCommissioningarmFailSafetimeoutMsCommandParameterInfo = - new CommandParameterInfo("timeoutMs", long.class); - generalCommissioningarmFailSafeCommandParams.put( - "timeoutMs", generalCommissioningarmFailSafetimeoutMsCommandParameterInfo); - - // Populate commands - CommandInfo generalCommissioningarmFailSafeCommandInfo = + CommandInfo readTestClusterOctetStringAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.GeneralCommissioningCluster) cluster) - .armFailSafe( - (ChipClusters.GeneralCommissioningCluster.ArmFailSafeResponseCallback) - callback, - (Integer) commandArguments.get("expiryLengthSeconds"), - (Long) commandArguments.get("breadcrumb"), - (Long) commandArguments.get("timeoutMs")); + ((ChipClusters.TestClusterCluster) cluster) + .readOctetStringAttribute((ChipClusters.OctetStringAttributeCallback) callback); }, - () -> new DelegatedArmFailSafeResponseCallback(), - generalCommissioningarmFailSafeCommandParams); - generalCommissioningClusterCommandInfoMap.put( - "armFailSafe", generalCommissioningarmFailSafeCommandInfo); - Map generalCommissioningcommissioningCompleteCommandParams = + () -> new DelegatedOctetStringAttributeCallback(), + readTestClusterOctetStringCommandParams); + readTestClusterCommandInfo.put( + "readOctetStringAttribute", readTestClusterOctetStringAttributeCommandInfo); + Map readTestClusterListInt8uCommandParams = new LinkedHashMap(); - CommandParameterInfo generalCommissioningcommissioningCompleteCommandParameterInfo = - new CommandParameterInfo( - "GeneralCommissioning", - ChipClusters.GeneralCommissioningCluster.CommissioningCompleteResponseCallback.class); - // Populate commands - CommandInfo generalCommissioningcommissioningCompleteCommandInfo = + CommandInfo readTestClusterListInt8uAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.GeneralCommissioningCluster) cluster) - .commissioningComplete( - (ChipClusters.GeneralCommissioningCluster - .CommissioningCompleteResponseCallback) - callback); + ((ChipClusters.TestClusterCluster) cluster) + .readListInt8uAttribute( + (ChipClusters.TestClusterCluster.ListInt8uAttributeCallback) callback); }, - () -> new DelegatedCommissioningCompleteResponseCallback(), - generalCommissioningcommissioningCompleteCommandParams); - generalCommissioningClusterCommandInfoMap.put( - "commissioningComplete", generalCommissioningcommissioningCompleteCommandInfo); - Map generalCommissioningsetRegulatoryConfigCommandParams = + () -> new DelegatedListInt8uAttributeCallback(), + readTestClusterListInt8uCommandParams); + readTestClusterCommandInfo.put( + "readListInt8uAttribute", readTestClusterListInt8uAttributeCommandInfo); + Map readTestClusterListOctetStringCommandParams = new LinkedHashMap(); - CommandParameterInfo generalCommissioningsetRegulatoryConfigCommandParameterInfo = - new CommandParameterInfo( - "GeneralCommissioning", - ChipClusters.GeneralCommissioningCluster.SetRegulatoryConfigResponseCallback.class); - CommandParameterInfo generalCommissioningsetRegulatoryConfiglocationCommandParameterInfo = - new CommandParameterInfo("location", int.class); - generalCommissioningsetRegulatoryConfigCommandParams.put( - "location", generalCommissioningsetRegulatoryConfiglocationCommandParameterInfo); - - CommandParameterInfo generalCommissioningsetRegulatoryConfigcountryCodeCommandParameterInfo = - new CommandParameterInfo("countryCode", String.class); - generalCommissioningsetRegulatoryConfigCommandParams.put( - "countryCode", generalCommissioningsetRegulatoryConfigcountryCodeCommandParameterInfo); - - CommandParameterInfo generalCommissioningsetRegulatoryConfigbreadcrumbCommandParameterInfo = - new CommandParameterInfo("breadcrumb", long.class); - generalCommissioningsetRegulatoryConfigCommandParams.put( - "breadcrumb", generalCommissioningsetRegulatoryConfigbreadcrumbCommandParameterInfo); - - CommandParameterInfo generalCommissioningsetRegulatoryConfigtimeoutMsCommandParameterInfo = - new CommandParameterInfo("timeoutMs", long.class); - generalCommissioningsetRegulatoryConfigCommandParams.put( - "timeoutMs", generalCommissioningsetRegulatoryConfigtimeoutMsCommandParameterInfo); - - // Populate commands - CommandInfo generalCommissioningsetRegulatoryConfigCommandInfo = + CommandInfo readTestClusterListOctetStringAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.GeneralCommissioningCluster) cluster) - .setRegulatoryConfig( - (ChipClusters.GeneralCommissioningCluster.SetRegulatoryConfigResponseCallback) - callback, - (Integer) commandArguments.get("location"), - (String) commandArguments.get("countryCode"), - (Long) commandArguments.get("breadcrumb"), - (Long) commandArguments.get("timeoutMs")); + ((ChipClusters.TestClusterCluster) cluster) + .readListOctetStringAttribute( + (ChipClusters.TestClusterCluster.ListOctetStringAttributeCallback) callback); }, - () -> new DelegatedSetRegulatoryConfigResponseCallback(), - generalCommissioningsetRegulatoryConfigCommandParams); - generalCommissioningClusterCommandInfoMap.put( - "setRegulatoryConfig", generalCommissioningsetRegulatoryConfigCommandInfo); - // Populate cluster - ClusterInfo generalCommissioningClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.GeneralCommissioningCluster(ptr, endpointId), - generalCommissioningClusterCommandInfoMap); - clusterMap.put("generalCommissioning", generalCommissioningClusterInfo); - Map generalDiagnosticsClusterCommandInfoMap = new LinkedHashMap<>(); - // Populate cluster - ClusterInfo generalDiagnosticsClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.GeneralDiagnosticsCluster(ptr, endpointId), - generalDiagnosticsClusterCommandInfoMap); - clusterMap.put("generalDiagnostics", generalDiagnosticsClusterInfo); - Map groupKeyManagementClusterCommandInfoMap = new LinkedHashMap<>(); - // Populate cluster - ClusterInfo groupKeyManagementClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.GroupKeyManagementCluster(ptr, endpointId), - groupKeyManagementClusterCommandInfoMap); - clusterMap.put("groupKeyManagement", groupKeyManagementClusterInfo); - Map groupsClusterCommandInfoMap = new LinkedHashMap<>(); - Map groupsaddGroupCommandParams = + () -> new DelegatedListOctetStringAttributeCallback(), + readTestClusterListOctetStringCommandParams); + readTestClusterCommandInfo.put( + "readListOctetStringAttribute", readTestClusterListOctetStringAttributeCommandInfo); + Map readTestClusterListStructOctetStringCommandParams = new LinkedHashMap(); - CommandParameterInfo groupsaddGroupCommandParameterInfo = - new CommandParameterInfo( - "Groups", ChipClusters.GroupsCluster.AddGroupResponseCallback.class); - CommandParameterInfo groupsaddGroupgroupIdCommandParameterInfo = - new CommandParameterInfo("groupId", int.class); - groupsaddGroupCommandParams.put("groupId", groupsaddGroupgroupIdCommandParameterInfo); - - CommandParameterInfo groupsaddGroupgroupNameCommandParameterInfo = - new CommandParameterInfo("groupName", String.class); - groupsaddGroupCommandParams.put("groupName", groupsaddGroupgroupNameCommandParameterInfo); - - // Populate commands - CommandInfo groupsaddGroupCommandInfo = + CommandInfo readTestClusterListStructOctetStringAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.GroupsCluster) cluster) - .addGroup( - (ChipClusters.GroupsCluster.AddGroupResponseCallback) callback, - (Integer) commandArguments.get("groupId"), - (String) commandArguments.get("groupName")); + ((ChipClusters.TestClusterCluster) cluster) + .readListStructOctetStringAttribute( + (ChipClusters.TestClusterCluster.ListStructOctetStringAttributeCallback) + callback); }, - () -> new DelegatedAddGroupResponseCallback(), - groupsaddGroupCommandParams); - groupsClusterCommandInfoMap.put("addGroup", groupsaddGroupCommandInfo); - Map groupsaddGroupIfIdentifyingCommandParams = + () -> new DelegatedListStructOctetStringAttributeCallback(), + readTestClusterListStructOctetStringCommandParams); + readTestClusterCommandInfo.put( + "readListStructOctetStringAttribute", + readTestClusterListStructOctetStringAttributeCommandInfo); + Map readTestClusterLongOctetStringCommandParams = new LinkedHashMap(); - CommandParameterInfo groupsaddGroupIfIdentifyingCommandParameterInfo = - new CommandParameterInfo("Groups", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo groupsaddGroupIfIdentifyinggroupIdCommandParameterInfo = - new CommandParameterInfo("groupId", int.class); - groupsaddGroupIfIdentifyingCommandParams.put( - "groupId", groupsaddGroupIfIdentifyinggroupIdCommandParameterInfo); - - CommandParameterInfo groupsaddGroupIfIdentifyinggroupNameCommandParameterInfo = - new CommandParameterInfo("groupName", String.class); - groupsaddGroupIfIdentifyingCommandParams.put( - "groupName", groupsaddGroupIfIdentifyinggroupNameCommandParameterInfo); - - // Populate commands - CommandInfo groupsaddGroupIfIdentifyingCommandInfo = + CommandInfo readTestClusterLongOctetStringAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.GroupsCluster) cluster) - .addGroupIfIdentifying( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("groupId"), - (String) commandArguments.get("groupName")); + ((ChipClusters.TestClusterCluster) cluster) + .readLongOctetStringAttribute( + (ChipClusters.OctetStringAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - groupsaddGroupIfIdentifyingCommandParams); - groupsClusterCommandInfoMap.put( - "addGroupIfIdentifying", groupsaddGroupIfIdentifyingCommandInfo); - Map groupsgetGroupMembershipCommandParams = + () -> new DelegatedOctetStringAttributeCallback(), + readTestClusterLongOctetStringCommandParams); + readTestClusterCommandInfo.put( + "readLongOctetStringAttribute", readTestClusterLongOctetStringAttributeCommandInfo); + Map readTestClusterCharStringCommandParams = new LinkedHashMap(); - CommandParameterInfo groupsgetGroupMembershipCommandParameterInfo = - new CommandParameterInfo( - "Groups", ChipClusters.GroupsCluster.GetGroupMembershipResponseCallback.class); - CommandParameterInfo groupsgetGroupMembershipgroupCountCommandParameterInfo = - new CommandParameterInfo("groupCount", int.class); - groupsgetGroupMembershipCommandParams.put( - "groupCount", groupsgetGroupMembershipgroupCountCommandParameterInfo); - - CommandParameterInfo groupsgetGroupMembershipgroupListCommandParameterInfo = - new CommandParameterInfo("groupList", int.class); - groupsgetGroupMembershipCommandParams.put( - "groupList", groupsgetGroupMembershipgroupListCommandParameterInfo); - - // Populate commands - CommandInfo groupsgetGroupMembershipCommandInfo = + CommandInfo readTestClusterCharStringAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.GroupsCluster) cluster) - .getGroupMembership( - (ChipClusters.GroupsCluster.GetGroupMembershipResponseCallback) callback, - (Integer) commandArguments.get("groupCount"), - (Integer) commandArguments.get("groupList")); + ((ChipClusters.TestClusterCluster) cluster) + .readCharStringAttribute((ChipClusters.CharStringAttributeCallback) callback); }, - () -> new DelegatedGetGroupMembershipResponseCallback(), - groupsgetGroupMembershipCommandParams); - groupsClusterCommandInfoMap.put("getGroupMembership", groupsgetGroupMembershipCommandInfo); - Map groupsremoveAllGroupsCommandParams = + () -> new DelegatedCharStringAttributeCallback(), + readTestClusterCharStringCommandParams); + readTestClusterCommandInfo.put( + "readCharStringAttribute", readTestClusterCharStringAttributeCommandInfo); + Map readTestClusterLongCharStringCommandParams = new LinkedHashMap(); - CommandParameterInfo groupsremoveAllGroupsCommandParameterInfo = - new CommandParameterInfo("Groups", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo groupsremoveAllGroupsCommandInfo = + CommandInfo readTestClusterLongCharStringAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.GroupsCluster) cluster) - .removeAllGroups((DefaultClusterCallback) callback); + ((ChipClusters.TestClusterCluster) cluster) + .readLongCharStringAttribute((ChipClusters.CharStringAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - groupsremoveAllGroupsCommandParams); - groupsClusterCommandInfoMap.put("removeAllGroups", groupsremoveAllGroupsCommandInfo); - Map groupsremoveGroupCommandParams = + () -> new DelegatedCharStringAttributeCallback(), + readTestClusterLongCharStringCommandParams); + readTestClusterCommandInfo.put( + "readLongCharStringAttribute", readTestClusterLongCharStringAttributeCommandInfo); + Map readTestClusterEpochUsCommandParams = new LinkedHashMap(); - CommandParameterInfo groupsremoveGroupCommandParameterInfo = - new CommandParameterInfo( - "Groups", ChipClusters.GroupsCluster.RemoveGroupResponseCallback.class); - CommandParameterInfo groupsremoveGroupgroupIdCommandParameterInfo = - new CommandParameterInfo("groupId", int.class); - groupsremoveGroupCommandParams.put("groupId", groupsremoveGroupgroupIdCommandParameterInfo); - - // Populate commands - CommandInfo groupsremoveGroupCommandInfo = + CommandInfo readTestClusterEpochUsAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.GroupsCluster) cluster) - .removeGroup( - (ChipClusters.GroupsCluster.RemoveGroupResponseCallback) callback, - (Integer) commandArguments.get("groupId")); + ((ChipClusters.TestClusterCluster) cluster) + .readEpochUsAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedRemoveGroupResponseCallback(), - groupsremoveGroupCommandParams); - groupsClusterCommandInfoMap.put("removeGroup", groupsremoveGroupCommandInfo); - Map groupsviewGroupCommandParams = + () -> new DelegatedLongAttributeCallback(), + readTestClusterEpochUsCommandParams); + readTestClusterCommandInfo.put( + "readEpochUsAttribute", readTestClusterEpochUsAttributeCommandInfo); + Map readTestClusterEpochSCommandParams = + new LinkedHashMap(); + CommandInfo readTestClusterEpochSAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TestClusterCluster) cluster) + .readEpochSAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readTestClusterEpochSCommandParams); + readTestClusterCommandInfo.put( + "readEpochSAttribute", readTestClusterEpochSAttributeCommandInfo); + Map readTestClusterVendorIdCommandParams = + new LinkedHashMap(); + CommandInfo readTestClusterVendorIdAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.TestClusterCluster) cluster) + .readVendorIdAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readTestClusterVendorIdCommandParams); + readTestClusterCommandInfo.put( + "readVendorIdAttribute", readTestClusterVendorIdAttributeCommandInfo); + Map readTestClusterListNullablesAndOptionalsStructCommandParams = new LinkedHashMap(); - CommandParameterInfo groupsviewGroupCommandParameterInfo = - new CommandParameterInfo( - "Groups", ChipClusters.GroupsCluster.ViewGroupResponseCallback.class); - CommandParameterInfo groupsviewGroupgroupIdCommandParameterInfo = - new CommandParameterInfo("groupId", int.class); - groupsviewGroupCommandParams.put("groupId", groupsviewGroupgroupIdCommandParameterInfo); - - // Populate commands - CommandInfo groupsviewGroupCommandInfo = + CommandInfo readTestClusterListNullablesAndOptionalsStructAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.GroupsCluster) cluster) - .viewGroup( - (ChipClusters.GroupsCluster.ViewGroupResponseCallback) callback, - (Integer) commandArguments.get("groupId")); + ((ChipClusters.TestClusterCluster) cluster) + .readListNullablesAndOptionalsStructAttribute( + (ChipClusters.TestClusterCluster + .ListNullablesAndOptionalsStructAttributeCallback) + callback); }, - () -> new DelegatedViewGroupResponseCallback(), - groupsviewGroupCommandParams); - groupsClusterCommandInfoMap.put("viewGroup", groupsviewGroupCommandInfo); - // Populate cluster - ClusterInfo groupsClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.GroupsCluster(ptr, endpointId), - groupsClusterCommandInfoMap); - clusterMap.put("groups", groupsClusterInfo); - Map identifyClusterCommandInfoMap = new LinkedHashMap<>(); - Map identifyidentifyCommandParams = + () -> new DelegatedListNullablesAndOptionalsStructAttributeCallback(), + readTestClusterListNullablesAndOptionalsStructCommandParams); + readTestClusterCommandInfo.put( + "readListNullablesAndOptionalsStructAttribute", + readTestClusterListNullablesAndOptionalsStructAttributeCommandInfo); + Map readTestClusterUnsupportedCommandParams = new LinkedHashMap(); - CommandParameterInfo identifyidentifyCommandParameterInfo = - new CommandParameterInfo("Identify", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo identifyidentifyidentifyTimeCommandParameterInfo = - new CommandParameterInfo("identifyTime", int.class); - identifyidentifyCommandParams.put( - "identifyTime", identifyidentifyidentifyTimeCommandParameterInfo); - - // Populate commands - CommandInfo identifyidentifyCommandInfo = + CommandInfo readTestClusterUnsupportedAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.IdentifyCluster) cluster) - .identify( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("identifyTime")); + ((ChipClusters.TestClusterCluster) cluster) + .readUnsupportedAttribute((ChipClusters.BooleanAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - identifyidentifyCommandParams); - identifyClusterCommandInfoMap.put("identify", identifyidentifyCommandInfo); - Map identifyidentifyQueryCommandParams = + () -> new DelegatedBooleanAttributeCallback(), + readTestClusterUnsupportedCommandParams); + readTestClusterCommandInfo.put( + "readUnsupportedAttribute", readTestClusterUnsupportedAttributeCommandInfo); + Map readTestClusterClusterRevisionCommandParams = new LinkedHashMap(); - CommandParameterInfo identifyidentifyQueryCommandParameterInfo = - new CommandParameterInfo( - "Identify", ChipClusters.IdentifyCluster.IdentifyQueryResponseCallback.class); - // Populate commands - CommandInfo identifyidentifyQueryCommandInfo = + CommandInfo readTestClusterClusterRevisionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.IdentifyCluster) cluster) - .identifyQuery( - (ChipClusters.IdentifyCluster.IdentifyQueryResponseCallback) callback); + ((ChipClusters.TestClusterCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedIdentifyQueryResponseCallback(), - identifyidentifyQueryCommandParams); - identifyClusterCommandInfoMap.put("identifyQuery", identifyidentifyQueryCommandInfo); - Map identifytriggerEffectCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readTestClusterClusterRevisionCommandParams); + readTestClusterCommandInfo.put( + "readClusterRevisionAttribute", readTestClusterClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("testCluster").combineCommands(readTestClusterCommandInfo); + Map readThermostatCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readThermostatLocalTemperatureCommandParams = new LinkedHashMap(); - CommandParameterInfo identifytriggerEffectCommandParameterInfo = - new CommandParameterInfo("Identify", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo identifytriggerEffecteffectIdentifierCommandParameterInfo = - new CommandParameterInfo("effectIdentifier", int.class); - identifytriggerEffectCommandParams.put( - "effectIdentifier", identifytriggerEffecteffectIdentifierCommandParameterInfo); - - CommandParameterInfo identifytriggerEffecteffectVariantCommandParameterInfo = - new CommandParameterInfo("effectVariant", int.class); - identifytriggerEffectCommandParams.put( - "effectVariant", identifytriggerEffecteffectVariantCommandParameterInfo); - - // Populate commands - CommandInfo identifytriggerEffectCommandInfo = + CommandInfo readThermostatLocalTemperatureAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.IdentifyCluster) cluster) - .triggerEffect( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("effectIdentifier"), - (Integer) commandArguments.get("effectVariant")); + ((ChipClusters.ThermostatCluster) cluster) + .readLocalTemperatureAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - identifytriggerEffectCommandParams); - identifyClusterCommandInfoMap.put("triggerEffect", identifytriggerEffectCommandInfo); - // Populate cluster - ClusterInfo identifyClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.IdentifyCluster(ptr, endpointId), - identifyClusterCommandInfoMap); - clusterMap.put("identify", identifyClusterInfo); - Map illuminanceMeasurementClusterCommandInfoMap = new LinkedHashMap<>(); - // Populate cluster - ClusterInfo illuminanceMeasurementClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.IlluminanceMeasurementCluster(ptr, endpointId), - illuminanceMeasurementClusterCommandInfoMap); - clusterMap.put("illuminanceMeasurement", illuminanceMeasurementClusterInfo); - Map keypadInputClusterCommandInfoMap = new LinkedHashMap<>(); - Map keypadInputsendKeyCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThermostatLocalTemperatureCommandParams); + readThermostatCommandInfo.put( + "readLocalTemperatureAttribute", readThermostatLocalTemperatureAttributeCommandInfo); + Map readThermostatAbsMinHeatSetpointLimitCommandParams = new LinkedHashMap(); - CommandParameterInfo keypadInputsendKeyCommandParameterInfo = - new CommandParameterInfo( - "KeypadInput", ChipClusters.KeypadInputCluster.SendKeyResponseCallback.class); - CommandParameterInfo keypadInputsendKeykeyCodeCommandParameterInfo = - new CommandParameterInfo("keyCode", int.class); - keypadInputsendKeyCommandParams.put("keyCode", keypadInputsendKeykeyCodeCommandParameterInfo); - - // Populate commands - CommandInfo keypadInputsendKeyCommandInfo = + CommandInfo readThermostatAbsMinHeatSetpointLimitAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.KeypadInputCluster) cluster) - .sendKey( - (ChipClusters.KeypadInputCluster.SendKeyResponseCallback) callback, - (Integer) commandArguments.get("keyCode")); + ((ChipClusters.ThermostatCluster) cluster) + .readAbsMinHeatSetpointLimitAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedSendKeyResponseCallback(), - keypadInputsendKeyCommandParams); - keypadInputClusterCommandInfoMap.put("sendKey", keypadInputsendKeyCommandInfo); - // Populate cluster - ClusterInfo keypadInputClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.KeypadInputCluster(ptr, endpointId), - keypadInputClusterCommandInfoMap); - clusterMap.put("keypadInput", keypadInputClusterInfo); - Map levelControlClusterCommandInfoMap = new LinkedHashMap<>(); - Map levelControlmoveCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThermostatAbsMinHeatSetpointLimitCommandParams); + readThermostatCommandInfo.put( + "readAbsMinHeatSetpointLimitAttribute", + readThermostatAbsMinHeatSetpointLimitAttributeCommandInfo); + Map readThermostatAbsMaxHeatSetpointLimitCommandParams = new LinkedHashMap(); - CommandParameterInfo levelControlmoveCommandParameterInfo = - new CommandParameterInfo("LevelControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo levelControlmovemoveModeCommandParameterInfo = - new CommandParameterInfo("moveMode", int.class); - levelControlmoveCommandParams.put("moveMode", levelControlmovemoveModeCommandParameterInfo); - - CommandParameterInfo levelControlmoverateCommandParameterInfo = - new CommandParameterInfo("rate", int.class); - levelControlmoveCommandParams.put("rate", levelControlmoverateCommandParameterInfo); - - CommandParameterInfo levelControlmoveoptionMaskCommandParameterInfo = - new CommandParameterInfo("optionMask", int.class); - levelControlmoveCommandParams.put("optionMask", levelControlmoveoptionMaskCommandParameterInfo); - - CommandParameterInfo levelControlmoveoptionOverrideCommandParameterInfo = - new CommandParameterInfo("optionOverride", int.class); - levelControlmoveCommandParams.put( - "optionOverride", levelControlmoveoptionOverrideCommandParameterInfo); - - // Populate commands - CommandInfo levelControlmoveCommandInfo = + CommandInfo readThermostatAbsMaxHeatSetpointLimitAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster) - .move( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("moveMode"), - (Integer) commandArguments.get("rate"), - (Integer) commandArguments.get("optionMask"), - (Integer) commandArguments.get("optionOverride")); + ((ChipClusters.ThermostatCluster) cluster) + .readAbsMaxHeatSetpointLimitAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - levelControlmoveCommandParams); - levelControlClusterCommandInfoMap.put("move", levelControlmoveCommandInfo); - Map levelControlmoveToLevelCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThermostatAbsMaxHeatSetpointLimitCommandParams); + readThermostatCommandInfo.put( + "readAbsMaxHeatSetpointLimitAttribute", + readThermostatAbsMaxHeatSetpointLimitAttributeCommandInfo); + Map readThermostatAbsMinCoolSetpointLimitCommandParams = new LinkedHashMap(); - CommandParameterInfo levelControlmoveToLevelCommandParameterInfo = - new CommandParameterInfo("LevelControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo levelControlmoveToLevellevelCommandParameterInfo = - new CommandParameterInfo("level", int.class); - levelControlmoveToLevelCommandParams.put( - "level", levelControlmoveToLevellevelCommandParameterInfo); - - CommandParameterInfo levelControlmoveToLeveltransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - levelControlmoveToLevelCommandParams.put( - "transitionTime", levelControlmoveToLeveltransitionTimeCommandParameterInfo); - - CommandParameterInfo levelControlmoveToLeveloptionMaskCommandParameterInfo = - new CommandParameterInfo("optionMask", int.class); - levelControlmoveToLevelCommandParams.put( - "optionMask", levelControlmoveToLeveloptionMaskCommandParameterInfo); - - CommandParameterInfo levelControlmoveToLeveloptionOverrideCommandParameterInfo = - new CommandParameterInfo("optionOverride", int.class); - levelControlmoveToLevelCommandParams.put( - "optionOverride", levelControlmoveToLeveloptionOverrideCommandParameterInfo); - - // Populate commands - CommandInfo levelControlmoveToLevelCommandInfo = + CommandInfo readThermostatAbsMinCoolSetpointLimitAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster) - .moveToLevel( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("level"), - (Integer) commandArguments.get("transitionTime"), - (Integer) commandArguments.get("optionMask"), - (Integer) commandArguments.get("optionOverride")); + ((ChipClusters.ThermostatCluster) cluster) + .readAbsMinCoolSetpointLimitAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - levelControlmoveToLevelCommandParams); - levelControlClusterCommandInfoMap.put("moveToLevel", levelControlmoveToLevelCommandInfo); - Map levelControlmoveToLevelWithOnOffCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThermostatAbsMinCoolSetpointLimitCommandParams); + readThermostatCommandInfo.put( + "readAbsMinCoolSetpointLimitAttribute", + readThermostatAbsMinCoolSetpointLimitAttributeCommandInfo); + Map readThermostatAbsMaxCoolSetpointLimitCommandParams = new LinkedHashMap(); - CommandParameterInfo levelControlmoveToLevelWithOnOffCommandParameterInfo = - new CommandParameterInfo("LevelControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo levelControlmoveToLevelWithOnOfflevelCommandParameterInfo = - new CommandParameterInfo("level", int.class); - levelControlmoveToLevelWithOnOffCommandParams.put( - "level", levelControlmoveToLevelWithOnOfflevelCommandParameterInfo); - - CommandParameterInfo levelControlmoveToLevelWithOnOfftransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - levelControlmoveToLevelWithOnOffCommandParams.put( - "transitionTime", levelControlmoveToLevelWithOnOfftransitionTimeCommandParameterInfo); - - // Populate commands - CommandInfo levelControlmoveToLevelWithOnOffCommandInfo = + CommandInfo readThermostatAbsMaxCoolSetpointLimitAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster) - .moveToLevelWithOnOff( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("level"), - (Integer) commandArguments.get("transitionTime")); + ((ChipClusters.ThermostatCluster) cluster) + .readAbsMaxCoolSetpointLimitAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - levelControlmoveToLevelWithOnOffCommandParams); - levelControlClusterCommandInfoMap.put( - "moveToLevelWithOnOff", levelControlmoveToLevelWithOnOffCommandInfo); - Map levelControlmoveWithOnOffCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThermostatAbsMaxCoolSetpointLimitCommandParams); + readThermostatCommandInfo.put( + "readAbsMaxCoolSetpointLimitAttribute", + readThermostatAbsMaxCoolSetpointLimitAttributeCommandInfo); + Map readThermostatOccupiedCoolingSetpointCommandParams = new LinkedHashMap(); - CommandParameterInfo levelControlmoveWithOnOffCommandParameterInfo = - new CommandParameterInfo("LevelControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo levelControlmoveWithOnOffmoveModeCommandParameterInfo = - new CommandParameterInfo("moveMode", int.class); - levelControlmoveWithOnOffCommandParams.put( - "moveMode", levelControlmoveWithOnOffmoveModeCommandParameterInfo); - - CommandParameterInfo levelControlmoveWithOnOffrateCommandParameterInfo = - new CommandParameterInfo("rate", int.class); - levelControlmoveWithOnOffCommandParams.put( - "rate", levelControlmoveWithOnOffrateCommandParameterInfo); - - // Populate commands - CommandInfo levelControlmoveWithOnOffCommandInfo = + CommandInfo readThermostatOccupiedCoolingSetpointAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster) - .moveWithOnOff( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("moveMode"), - (Integer) commandArguments.get("rate")); + ((ChipClusters.ThermostatCluster) cluster) + .readOccupiedCoolingSetpointAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - levelControlmoveWithOnOffCommandParams); - levelControlClusterCommandInfoMap.put("moveWithOnOff", levelControlmoveWithOnOffCommandInfo); - Map levelControlstepCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThermostatOccupiedCoolingSetpointCommandParams); + readThermostatCommandInfo.put( + "readOccupiedCoolingSetpointAttribute", + readThermostatOccupiedCoolingSetpointAttributeCommandInfo); + Map readThermostatOccupiedHeatingSetpointCommandParams = new LinkedHashMap(); - CommandParameterInfo levelControlstepCommandParameterInfo = - new CommandParameterInfo("LevelControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo levelControlstepstepModeCommandParameterInfo = - new CommandParameterInfo("stepMode", int.class); - levelControlstepCommandParams.put("stepMode", levelControlstepstepModeCommandParameterInfo); - - CommandParameterInfo levelControlstepstepSizeCommandParameterInfo = - new CommandParameterInfo("stepSize", int.class); - levelControlstepCommandParams.put("stepSize", levelControlstepstepSizeCommandParameterInfo); - - CommandParameterInfo levelControlsteptransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - levelControlstepCommandParams.put( - "transitionTime", levelControlsteptransitionTimeCommandParameterInfo); - - CommandParameterInfo levelControlstepoptionMaskCommandParameterInfo = - new CommandParameterInfo("optionMask", int.class); - levelControlstepCommandParams.put("optionMask", levelControlstepoptionMaskCommandParameterInfo); - - CommandParameterInfo levelControlstepoptionOverrideCommandParameterInfo = - new CommandParameterInfo("optionOverride", int.class); - levelControlstepCommandParams.put( - "optionOverride", levelControlstepoptionOverrideCommandParameterInfo); - - // Populate commands - CommandInfo levelControlstepCommandInfo = + CommandInfo readThermostatOccupiedHeatingSetpointAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster) - .step( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("stepMode"), - (Integer) commandArguments.get("stepSize"), - (Integer) commandArguments.get("transitionTime"), - (Integer) commandArguments.get("optionMask"), - (Integer) commandArguments.get("optionOverride")); + ((ChipClusters.ThermostatCluster) cluster) + .readOccupiedHeatingSetpointAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readThermostatOccupiedHeatingSetpointCommandParams); + readThermostatCommandInfo.put( + "readOccupiedHeatingSetpointAttribute", + readThermostatOccupiedHeatingSetpointAttributeCommandInfo); + Map readThermostatMinHeatSetpointLimitCommandParams = + new LinkedHashMap(); + CommandInfo readThermostatMinHeatSetpointLimitAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .readMinHeatSetpointLimitAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - levelControlstepCommandParams); - levelControlClusterCommandInfoMap.put("step", levelControlstepCommandInfo); - Map levelControlstepWithOnOffCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThermostatMinHeatSetpointLimitCommandParams); + readThermostatCommandInfo.put( + "readMinHeatSetpointLimitAttribute", + readThermostatMinHeatSetpointLimitAttributeCommandInfo); + Map readThermostatMaxHeatSetpointLimitCommandParams = new LinkedHashMap(); - CommandParameterInfo levelControlstepWithOnOffCommandParameterInfo = - new CommandParameterInfo("LevelControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo levelControlstepWithOnOffstepModeCommandParameterInfo = - new CommandParameterInfo("stepMode", int.class); - levelControlstepWithOnOffCommandParams.put( - "stepMode", levelControlstepWithOnOffstepModeCommandParameterInfo); - - CommandParameterInfo levelControlstepWithOnOffstepSizeCommandParameterInfo = - new CommandParameterInfo("stepSize", int.class); - levelControlstepWithOnOffCommandParams.put( - "stepSize", levelControlstepWithOnOffstepSizeCommandParameterInfo); - - CommandParameterInfo levelControlstepWithOnOfftransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - levelControlstepWithOnOffCommandParams.put( - "transitionTime", levelControlstepWithOnOfftransitionTimeCommandParameterInfo); - - // Populate commands - CommandInfo levelControlstepWithOnOffCommandInfo = + CommandInfo readThermostatMaxHeatSetpointLimitAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster) - .stepWithOnOff( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("stepMode"), - (Integer) commandArguments.get("stepSize"), - (Integer) commandArguments.get("transitionTime")); + ((ChipClusters.ThermostatCluster) cluster) + .readMaxHeatSetpointLimitAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - levelControlstepWithOnOffCommandParams); - levelControlClusterCommandInfoMap.put("stepWithOnOff", levelControlstepWithOnOffCommandInfo); - Map levelControlstopCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThermostatMaxHeatSetpointLimitCommandParams); + readThermostatCommandInfo.put( + "readMaxHeatSetpointLimitAttribute", + readThermostatMaxHeatSetpointLimitAttributeCommandInfo); + Map readThermostatMinCoolSetpointLimitCommandParams = new LinkedHashMap(); - CommandParameterInfo levelControlstopCommandParameterInfo = - new CommandParameterInfo("LevelControl", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo levelControlstopoptionMaskCommandParameterInfo = - new CommandParameterInfo("optionMask", int.class); - levelControlstopCommandParams.put("optionMask", levelControlstopoptionMaskCommandParameterInfo); - - CommandParameterInfo levelControlstopoptionOverrideCommandParameterInfo = - new CommandParameterInfo("optionOverride", int.class); - levelControlstopCommandParams.put( - "optionOverride", levelControlstopoptionOverrideCommandParameterInfo); - - // Populate commands - CommandInfo levelControlstopCommandInfo = + CommandInfo readThermostatMinCoolSetpointLimitAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster) - .stop( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("optionMask"), - (Integer) commandArguments.get("optionOverride")); + ((ChipClusters.ThermostatCluster) cluster) + .readMinCoolSetpointLimitAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - levelControlstopCommandParams); - levelControlClusterCommandInfoMap.put("stop", levelControlstopCommandInfo); - Map levelControlstopWithOnOffCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThermostatMinCoolSetpointLimitCommandParams); + readThermostatCommandInfo.put( + "readMinCoolSetpointLimitAttribute", + readThermostatMinCoolSetpointLimitAttributeCommandInfo); + Map readThermostatMaxCoolSetpointLimitCommandParams = new LinkedHashMap(); - CommandParameterInfo levelControlstopWithOnOffCommandParameterInfo = - new CommandParameterInfo("LevelControl", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo levelControlstopWithOnOffCommandInfo = + CommandInfo readThermostatMaxCoolSetpointLimitAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.LevelControlCluster) cluster) - .stopWithOnOff((DefaultClusterCallback) callback); + ((ChipClusters.ThermostatCluster) cluster) + .readMaxCoolSetpointLimitAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - levelControlstopWithOnOffCommandParams); - levelControlClusterCommandInfoMap.put("stopWithOnOff", levelControlstopWithOnOffCommandInfo); - // Populate cluster - ClusterInfo levelControlClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.LevelControlCluster(ptr, endpointId), - levelControlClusterCommandInfoMap); - clusterMap.put("levelControl", levelControlClusterInfo); - Map lowPowerClusterCommandInfoMap = new LinkedHashMap<>(); - Map lowPowersleepCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThermostatMaxCoolSetpointLimitCommandParams); + readThermostatCommandInfo.put( + "readMaxCoolSetpointLimitAttribute", + readThermostatMaxCoolSetpointLimitAttributeCommandInfo); + Map readThermostatMinSetpointDeadBandCommandParams = new LinkedHashMap(); - CommandParameterInfo lowPowersleepCommandParameterInfo = - new CommandParameterInfo("LowPower", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo lowPowersleepCommandInfo = + CommandInfo readThermostatMinSetpointDeadBandAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.LowPowerCluster) cluster).sleep((DefaultClusterCallback) callback); + ((ChipClusters.ThermostatCluster) cluster) + .readMinSetpointDeadBandAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - lowPowersleepCommandParams); - lowPowerClusterCommandInfoMap.put("sleep", lowPowersleepCommandInfo); - // Populate cluster - ClusterInfo lowPowerClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.LowPowerCluster(ptr, endpointId), - lowPowerClusterCommandInfoMap); - clusterMap.put("lowPower", lowPowerClusterInfo); - Map mediaInputClusterCommandInfoMap = new LinkedHashMap<>(); - Map mediaInputhideInputStatusCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThermostatMinSetpointDeadBandCommandParams); + readThermostatCommandInfo.put( + "readMinSetpointDeadBandAttribute", readThermostatMinSetpointDeadBandAttributeCommandInfo); + Map readThermostatControlSequenceOfOperationCommandParams = new LinkedHashMap(); - CommandParameterInfo mediaInputhideInputStatusCommandParameterInfo = - new CommandParameterInfo("MediaInput", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo mediaInputhideInputStatusCommandInfo = + CommandInfo readThermostatControlSequenceOfOperationAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.MediaInputCluster) cluster) - .hideInputStatus((DefaultClusterCallback) callback); + ((ChipClusters.ThermostatCluster) cluster) + .readControlSequenceOfOperationAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - mediaInputhideInputStatusCommandParams); - mediaInputClusterCommandInfoMap.put("hideInputStatus", mediaInputhideInputStatusCommandInfo); - Map mediaInputrenameInputCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThermostatControlSequenceOfOperationCommandParams); + readThermostatCommandInfo.put( + "readControlSequenceOfOperationAttribute", + readThermostatControlSequenceOfOperationAttributeCommandInfo); + Map readThermostatSystemModeCommandParams = new LinkedHashMap(); - CommandParameterInfo mediaInputrenameInputCommandParameterInfo = - new CommandParameterInfo("MediaInput", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo mediaInputrenameInputindexCommandParameterInfo = - new CommandParameterInfo("index", int.class); - mediaInputrenameInputCommandParams.put("index", mediaInputrenameInputindexCommandParameterInfo); - - CommandParameterInfo mediaInputrenameInputnameCommandParameterInfo = - new CommandParameterInfo("name", String.class); - mediaInputrenameInputCommandParams.put("name", mediaInputrenameInputnameCommandParameterInfo); - - // Populate commands - CommandInfo mediaInputrenameInputCommandInfo = + CommandInfo readThermostatSystemModeAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.MediaInputCluster) cluster) - .renameInput( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("index"), - (String) commandArguments.get("name")); + ((ChipClusters.ThermostatCluster) cluster) + .readSystemModeAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - mediaInputrenameInputCommandParams); - mediaInputClusterCommandInfoMap.put("renameInput", mediaInputrenameInputCommandInfo); - Map mediaInputselectInputCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThermostatSystemModeCommandParams); + readThermostatCommandInfo.put( + "readSystemModeAttribute", readThermostatSystemModeAttributeCommandInfo); + Map readThermostatStartOfWeekCommandParams = new LinkedHashMap(); - CommandParameterInfo mediaInputselectInputCommandParameterInfo = - new CommandParameterInfo("MediaInput", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo mediaInputselectInputindexCommandParameterInfo = - new CommandParameterInfo("index", int.class); - mediaInputselectInputCommandParams.put("index", mediaInputselectInputindexCommandParameterInfo); - - // Populate commands - CommandInfo mediaInputselectInputCommandInfo = + CommandInfo readThermostatStartOfWeekAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.MediaInputCluster) cluster) - .selectInput( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("index")); + ((ChipClusters.ThermostatCluster) cluster) + .readStartOfWeekAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - mediaInputselectInputCommandParams); - mediaInputClusterCommandInfoMap.put("selectInput", mediaInputselectInputCommandInfo); - Map mediaInputshowInputStatusCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThermostatStartOfWeekCommandParams); + readThermostatCommandInfo.put( + "readStartOfWeekAttribute", readThermostatStartOfWeekAttributeCommandInfo); + Map readThermostatNumberOfWeeklyTransitionsCommandParams = new LinkedHashMap(); - CommandParameterInfo mediaInputshowInputStatusCommandParameterInfo = - new CommandParameterInfo("MediaInput", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo mediaInputshowInputStatusCommandInfo = + CommandInfo readThermostatNumberOfWeeklyTransitionsAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.MediaInputCluster) cluster) - .showInputStatus((DefaultClusterCallback) callback); + ((ChipClusters.ThermostatCluster) cluster) + .readNumberOfWeeklyTransitionsAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - mediaInputshowInputStatusCommandParams); - mediaInputClusterCommandInfoMap.put("showInputStatus", mediaInputshowInputStatusCommandInfo); - // Populate cluster - ClusterInfo mediaInputClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.MediaInputCluster(ptr, endpointId), - mediaInputClusterCommandInfoMap); - clusterMap.put("mediaInput", mediaInputClusterInfo); - Map mediaPlaybackClusterCommandInfoMap = new LinkedHashMap<>(); - Map mediaPlaybackmediaFastForwardCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThermostatNumberOfWeeklyTransitionsCommandParams); + readThermostatCommandInfo.put( + "readNumberOfWeeklyTransitionsAttribute", + readThermostatNumberOfWeeklyTransitionsAttributeCommandInfo); + Map readThermostatNumberOfDailyTransitionsCommandParams = new LinkedHashMap(); - CommandParameterInfo mediaPlaybackmediaFastForwardCommandParameterInfo = - new CommandParameterInfo( - "MediaPlayback", - ChipClusters.MediaPlaybackCluster.MediaFastForwardResponseCallback.class); - // Populate commands - CommandInfo mediaPlaybackmediaFastForwardCommandInfo = + CommandInfo readThermostatNumberOfDailyTransitionsAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.MediaPlaybackCluster) cluster) - .mediaFastForward( - (ChipClusters.MediaPlaybackCluster.MediaFastForwardResponseCallback) - callback); + ((ChipClusters.ThermostatCluster) cluster) + .readNumberOfDailyTransitionsAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedMediaFastForwardResponseCallback(), - mediaPlaybackmediaFastForwardCommandParams); - mediaPlaybackClusterCommandInfoMap.put( - "mediaFastForward", mediaPlaybackmediaFastForwardCommandInfo); - Map mediaPlaybackmediaNextCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThermostatNumberOfDailyTransitionsCommandParams); + readThermostatCommandInfo.put( + "readNumberOfDailyTransitionsAttribute", + readThermostatNumberOfDailyTransitionsAttributeCommandInfo); + Map readThermostatFeatureMapCommandParams = new LinkedHashMap(); - CommandParameterInfo mediaPlaybackmediaNextCommandParameterInfo = - new CommandParameterInfo( - "MediaPlayback", ChipClusters.MediaPlaybackCluster.MediaNextResponseCallback.class); - // Populate commands - CommandInfo mediaPlaybackmediaNextCommandInfo = + CommandInfo readThermostatFeatureMapAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.MediaPlaybackCluster) cluster) - .mediaNext( - (ChipClusters.MediaPlaybackCluster.MediaNextResponseCallback) callback); + ((ChipClusters.ThermostatCluster) cluster) + .readFeatureMapAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedMediaNextResponseCallback(), - mediaPlaybackmediaNextCommandParams); - mediaPlaybackClusterCommandInfoMap.put("mediaNext", mediaPlaybackmediaNextCommandInfo); - Map mediaPlaybackmediaPauseCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThermostatFeatureMapCommandParams); + readThermostatCommandInfo.put( + "readFeatureMapAttribute", readThermostatFeatureMapAttributeCommandInfo); + Map readThermostatClusterRevisionCommandParams = new LinkedHashMap(); - CommandParameterInfo mediaPlaybackmediaPauseCommandParameterInfo = - new CommandParameterInfo( - "MediaPlayback", ChipClusters.MediaPlaybackCluster.MediaPauseResponseCallback.class); - // Populate commands - CommandInfo mediaPlaybackmediaPauseCommandInfo = + CommandInfo readThermostatClusterRevisionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.MediaPlaybackCluster) cluster) - .mediaPause( - (ChipClusters.MediaPlaybackCluster.MediaPauseResponseCallback) callback); + ((ChipClusters.ThermostatCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readThermostatClusterRevisionCommandParams); + readThermostatCommandInfo.put( + "readClusterRevisionAttribute", readThermostatClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("thermostat").combineCommands(readThermostatCommandInfo); + Map readThermostatUserInterfaceConfigurationCommandInfo = + new LinkedHashMap<>(); + // read attribute + Map + readThermostatUserInterfaceConfigurationTemperatureDisplayModeCommandParams = + new LinkedHashMap(); + CommandInfo readThermostatUserInterfaceConfigurationTemperatureDisplayModeAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatUserInterfaceConfigurationCluster) cluster) + .readTemperatureDisplayModeAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedMediaPauseResponseCallback(), - mediaPlaybackmediaPauseCommandParams); - mediaPlaybackClusterCommandInfoMap.put("mediaPause", mediaPlaybackmediaPauseCommandInfo); - Map mediaPlaybackmediaPlayCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThermostatUserInterfaceConfigurationTemperatureDisplayModeCommandParams); + readThermostatUserInterfaceConfigurationCommandInfo.put( + "readTemperatureDisplayModeAttribute", + readThermostatUserInterfaceConfigurationTemperatureDisplayModeAttributeCommandInfo); + Map + readThermostatUserInterfaceConfigurationKeypadLockoutCommandParams = + new LinkedHashMap(); + CommandInfo readThermostatUserInterfaceConfigurationKeypadLockoutAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatUserInterfaceConfigurationCluster) cluster) + .readKeypadLockoutAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readThermostatUserInterfaceConfigurationKeypadLockoutCommandParams); + readThermostatUserInterfaceConfigurationCommandInfo.put( + "readKeypadLockoutAttribute", + readThermostatUserInterfaceConfigurationKeypadLockoutAttributeCommandInfo); + Map + readThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCommandParams = + new LinkedHashMap(); + CommandInfo + readThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatUserInterfaceConfigurationCluster) cluster) + .readScheduleProgrammingVisibilityAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCommandParams); + readThermostatUserInterfaceConfigurationCommandInfo.put( + "readScheduleProgrammingVisibilityAttribute", + readThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityAttributeCommandInfo); + Map + readThermostatUserInterfaceConfigurationClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readThermostatUserInterfaceConfigurationClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatUserInterfaceConfigurationCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readThermostatUserInterfaceConfigurationClusterRevisionCommandParams); + readThermostatUserInterfaceConfigurationCommandInfo.put( + "readClusterRevisionAttribute", + readThermostatUserInterfaceConfigurationClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap + .get("thermostatUserInterfaceConfiguration") + .combineCommands(readThermostatUserInterfaceConfigurationCommandInfo); + Map readThreadNetworkDiagnosticsCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readThreadNetworkDiagnosticsChannelCommandParams = new LinkedHashMap(); - CommandParameterInfo mediaPlaybackmediaPlayCommandParameterInfo = - new CommandParameterInfo( - "MediaPlayback", ChipClusters.MediaPlaybackCluster.MediaPlayResponseCallback.class); - // Populate commands - CommandInfo mediaPlaybackmediaPlayCommandInfo = + CommandInfo readThreadNetworkDiagnosticsChannelAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.MediaPlaybackCluster) cluster) - .mediaPlay( - (ChipClusters.MediaPlaybackCluster.MediaPlayResponseCallback) callback); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readChannelAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedMediaPlayResponseCallback(), - mediaPlaybackmediaPlayCommandParams); - mediaPlaybackClusterCommandInfoMap.put("mediaPlay", mediaPlaybackmediaPlayCommandInfo); - Map mediaPlaybackmediaPreviousCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThreadNetworkDiagnosticsChannelCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readChannelAttribute", readThreadNetworkDiagnosticsChannelAttributeCommandInfo); + Map readThreadNetworkDiagnosticsRoutingRoleCommandParams = new LinkedHashMap(); - CommandParameterInfo mediaPlaybackmediaPreviousCommandParameterInfo = - new CommandParameterInfo( - "MediaPlayback", ChipClusters.MediaPlaybackCluster.MediaPreviousResponseCallback.class); - // Populate commands - CommandInfo mediaPlaybackmediaPreviousCommandInfo = + CommandInfo readThreadNetworkDiagnosticsRoutingRoleAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.MediaPlaybackCluster) cluster) - .mediaPrevious( - (ChipClusters.MediaPlaybackCluster.MediaPreviousResponseCallback) callback); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRoutingRoleAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedMediaPreviousResponseCallback(), - mediaPlaybackmediaPreviousCommandParams); - mediaPlaybackClusterCommandInfoMap.put("mediaPrevious", mediaPlaybackmediaPreviousCommandInfo); - Map mediaPlaybackmediaRewindCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThreadNetworkDiagnosticsRoutingRoleCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRoutingRoleAttribute", readThreadNetworkDiagnosticsRoutingRoleAttributeCommandInfo); + Map readThreadNetworkDiagnosticsNetworkNameCommandParams = new LinkedHashMap(); - CommandParameterInfo mediaPlaybackmediaRewindCommandParameterInfo = - new CommandParameterInfo( - "MediaPlayback", ChipClusters.MediaPlaybackCluster.MediaRewindResponseCallback.class); - // Populate commands - CommandInfo mediaPlaybackmediaRewindCommandInfo = + CommandInfo readThreadNetworkDiagnosticsNetworkNameAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.MediaPlaybackCluster) cluster) - .mediaRewind( - (ChipClusters.MediaPlaybackCluster.MediaRewindResponseCallback) callback); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readNetworkNameAttribute((ChipClusters.OctetStringAttributeCallback) callback); }, - () -> new DelegatedMediaRewindResponseCallback(), - mediaPlaybackmediaRewindCommandParams); - mediaPlaybackClusterCommandInfoMap.put("mediaRewind", mediaPlaybackmediaRewindCommandInfo); - Map mediaPlaybackmediaSeekCommandParams = + () -> new DelegatedOctetStringAttributeCallback(), + readThreadNetworkDiagnosticsNetworkNameCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readNetworkNameAttribute", readThreadNetworkDiagnosticsNetworkNameAttributeCommandInfo); + Map readThreadNetworkDiagnosticsPanIdCommandParams = new LinkedHashMap(); - CommandParameterInfo mediaPlaybackmediaSeekCommandParameterInfo = - new CommandParameterInfo( - "MediaPlayback", ChipClusters.MediaPlaybackCluster.MediaSeekResponseCallback.class); - CommandParameterInfo mediaPlaybackmediaSeekpositionCommandParameterInfo = - new CommandParameterInfo("position", long.class); - mediaPlaybackmediaSeekCommandParams.put( - "position", mediaPlaybackmediaSeekpositionCommandParameterInfo); - - // Populate commands - CommandInfo mediaPlaybackmediaSeekCommandInfo = + CommandInfo readThreadNetworkDiagnosticsPanIdAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.MediaPlaybackCluster) cluster) - .mediaSeek( - (ChipClusters.MediaPlaybackCluster.MediaSeekResponseCallback) callback, - (Long) commandArguments.get("position")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readPanIdAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedMediaSeekResponseCallback(), - mediaPlaybackmediaSeekCommandParams); - mediaPlaybackClusterCommandInfoMap.put("mediaSeek", mediaPlaybackmediaSeekCommandInfo); - Map mediaPlaybackmediaSkipBackwardCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThreadNetworkDiagnosticsPanIdCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readPanIdAttribute", readThreadNetworkDiagnosticsPanIdAttributeCommandInfo); + Map readThreadNetworkDiagnosticsExtendedPanIdCommandParams = new LinkedHashMap(); - CommandParameterInfo mediaPlaybackmediaSkipBackwardCommandParameterInfo = - new CommandParameterInfo( - "MediaPlayback", - ChipClusters.MediaPlaybackCluster.MediaSkipBackwardResponseCallback.class); - CommandParameterInfo - mediaPlaybackmediaSkipBackwarddeltaPositionMillisecondsCommandParameterInfo = - new CommandParameterInfo("deltaPositionMilliseconds", long.class); - mediaPlaybackmediaSkipBackwardCommandParams.put( - "deltaPositionMilliseconds", - mediaPlaybackmediaSkipBackwarddeltaPositionMillisecondsCommandParameterInfo); - - // Populate commands - CommandInfo mediaPlaybackmediaSkipBackwardCommandInfo = + CommandInfo readThreadNetworkDiagnosticsExtendedPanIdAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.MediaPlaybackCluster) cluster) - .mediaSkipBackward( - (ChipClusters.MediaPlaybackCluster.MediaSkipBackwardResponseCallback) - callback, - (Long) commandArguments.get("deltaPositionMilliseconds")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readExtendedPanIdAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsExtendedPanIdCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readExtendedPanIdAttribute", + readThreadNetworkDiagnosticsExtendedPanIdAttributeCommandInfo); + Map readThreadNetworkDiagnosticsMeshLocalPrefixCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsMeshLocalPrefixAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readMeshLocalPrefixAttribute( + (ChipClusters.OctetStringAttributeCallback) callback); }, - () -> new DelegatedMediaSkipBackwardResponseCallback(), - mediaPlaybackmediaSkipBackwardCommandParams); - mediaPlaybackClusterCommandInfoMap.put( - "mediaSkipBackward", mediaPlaybackmediaSkipBackwardCommandInfo); - Map mediaPlaybackmediaSkipForwardCommandParams = + () -> new DelegatedOctetStringAttributeCallback(), + readThreadNetworkDiagnosticsMeshLocalPrefixCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readMeshLocalPrefixAttribute", + readThreadNetworkDiagnosticsMeshLocalPrefixAttributeCommandInfo); + Map readThreadNetworkDiagnosticsOverrunCountCommandParams = new LinkedHashMap(); - CommandParameterInfo mediaPlaybackmediaSkipForwardCommandParameterInfo = - new CommandParameterInfo( - "MediaPlayback", - ChipClusters.MediaPlaybackCluster.MediaSkipForwardResponseCallback.class); - CommandParameterInfo - mediaPlaybackmediaSkipForwarddeltaPositionMillisecondsCommandParameterInfo = - new CommandParameterInfo("deltaPositionMilliseconds", long.class); - mediaPlaybackmediaSkipForwardCommandParams.put( - "deltaPositionMilliseconds", - mediaPlaybackmediaSkipForwarddeltaPositionMillisecondsCommandParameterInfo); - - // Populate commands - CommandInfo mediaPlaybackmediaSkipForwardCommandInfo = + CommandInfo readThreadNetworkDiagnosticsOverrunCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.MediaPlaybackCluster) cluster) - .mediaSkipForward( - (ChipClusters.MediaPlaybackCluster.MediaSkipForwardResponseCallback) callback, - (Long) commandArguments.get("deltaPositionMilliseconds")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readOverrunCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedMediaSkipForwardResponseCallback(), - mediaPlaybackmediaSkipForwardCommandParams); - mediaPlaybackClusterCommandInfoMap.put( - "mediaSkipForward", mediaPlaybackmediaSkipForwardCommandInfo); - Map mediaPlaybackmediaStartOverCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsOverrunCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readOverrunCountAttribute", readThreadNetworkDiagnosticsOverrunCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsNeighborTableListCommandParams = new LinkedHashMap(); - CommandParameterInfo mediaPlaybackmediaStartOverCommandParameterInfo = - new CommandParameterInfo( - "MediaPlayback", - ChipClusters.MediaPlaybackCluster.MediaStartOverResponseCallback.class); - // Populate commands - CommandInfo mediaPlaybackmediaStartOverCommandInfo = + CommandInfo readThreadNetworkDiagnosticsNeighborTableListAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.MediaPlaybackCluster) cluster) - .mediaStartOver( - (ChipClusters.MediaPlaybackCluster.MediaStartOverResponseCallback) callback); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readNeighborTableListAttribute( + (ChipClusters.ThreadNetworkDiagnosticsCluster + .NeighborTableListAttributeCallback) + callback); }, - () -> new DelegatedMediaStartOverResponseCallback(), - mediaPlaybackmediaStartOverCommandParams); - mediaPlaybackClusterCommandInfoMap.put( - "mediaStartOver", mediaPlaybackmediaStartOverCommandInfo); - Map mediaPlaybackmediaStopCommandParams = + () -> new DelegatedNeighborTableListAttributeCallback(), + readThreadNetworkDiagnosticsNeighborTableListCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readNeighborTableListAttribute", + readThreadNetworkDiagnosticsNeighborTableListAttributeCommandInfo); + Map readThreadNetworkDiagnosticsRouteTableListCommandParams = new LinkedHashMap(); - CommandParameterInfo mediaPlaybackmediaStopCommandParameterInfo = - new CommandParameterInfo( - "MediaPlayback", ChipClusters.MediaPlaybackCluster.MediaStopResponseCallback.class); - // Populate commands - CommandInfo mediaPlaybackmediaStopCommandInfo = + CommandInfo readThreadNetworkDiagnosticsRouteTableListAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.MediaPlaybackCluster) cluster) - .mediaStop( - (ChipClusters.MediaPlaybackCluster.MediaStopResponseCallback) callback); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRouteTableListAttribute( + (ChipClusters.ThreadNetworkDiagnosticsCluster.RouteTableListAttributeCallback) + callback); }, - () -> new DelegatedMediaStopResponseCallback(), - mediaPlaybackmediaStopCommandParams); - mediaPlaybackClusterCommandInfoMap.put("mediaStop", mediaPlaybackmediaStopCommandInfo); - // Populate cluster - ClusterInfo mediaPlaybackClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.MediaPlaybackCluster(ptr, endpointId), - mediaPlaybackClusterCommandInfoMap); - clusterMap.put("mediaPlayback", mediaPlaybackClusterInfo); - Map modeSelectClusterCommandInfoMap = new LinkedHashMap<>(); - Map modeSelectchangeToModeCommandParams = + () -> new DelegatedRouteTableListAttributeCallback(), + readThreadNetworkDiagnosticsRouteTableListCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRouteTableListAttribute", + readThreadNetworkDiagnosticsRouteTableListAttributeCommandInfo); + Map readThreadNetworkDiagnosticsPartitionIdCommandParams = new LinkedHashMap(); - CommandParameterInfo modeSelectchangeToModeCommandParameterInfo = - new CommandParameterInfo("ModeSelect", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo modeSelectchangeToModenewModeCommandParameterInfo = - new CommandParameterInfo("newMode", int.class); - modeSelectchangeToModeCommandParams.put( - "newMode", modeSelectchangeToModenewModeCommandParameterInfo); - - // Populate commands - CommandInfo modeSelectchangeToModeCommandInfo = + CommandInfo readThreadNetworkDiagnosticsPartitionIdAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ModeSelectCluster) cluster) - .changeToMode( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("newMode")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readPartitionIdAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - modeSelectchangeToModeCommandParams); - modeSelectClusterCommandInfoMap.put("changeToMode", modeSelectchangeToModeCommandInfo); - // Populate cluster - ClusterInfo modeSelectClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.ModeSelectCluster(ptr, endpointId), - modeSelectClusterCommandInfoMap); - clusterMap.put("modeSelect", modeSelectClusterInfo); - Map networkCommissioningClusterCommandInfoMap = new LinkedHashMap<>(); - Map networkCommissioningaddThreadNetworkCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsPartitionIdCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readPartitionIdAttribute", readThreadNetworkDiagnosticsPartitionIdAttributeCommandInfo); + Map readThreadNetworkDiagnosticsWeightingCommandParams = new LinkedHashMap(); - CommandParameterInfo networkCommissioningaddThreadNetworkCommandParameterInfo = - new CommandParameterInfo( - "NetworkCommissioning", - ChipClusters.NetworkCommissioningCluster.AddThreadNetworkResponseCallback.class); - CommandParameterInfo - networkCommissioningaddThreadNetworkoperationalDatasetCommandParameterInfo = - new CommandParameterInfo("operationalDataset", byte[].class); - networkCommissioningaddThreadNetworkCommandParams.put( - "operationalDataset", - networkCommissioningaddThreadNetworkoperationalDatasetCommandParameterInfo); - - CommandParameterInfo networkCommissioningaddThreadNetworkbreadcrumbCommandParameterInfo = - new CommandParameterInfo("breadcrumb", long.class); - networkCommissioningaddThreadNetworkCommandParams.put( - "breadcrumb", networkCommissioningaddThreadNetworkbreadcrumbCommandParameterInfo); - - CommandParameterInfo networkCommissioningaddThreadNetworktimeoutMsCommandParameterInfo = - new CommandParameterInfo("timeoutMs", long.class); - networkCommissioningaddThreadNetworkCommandParams.put( - "timeoutMs", networkCommissioningaddThreadNetworktimeoutMsCommandParameterInfo); - - // Populate commands - CommandInfo networkCommissioningaddThreadNetworkCommandInfo = + CommandInfo readThreadNetworkDiagnosticsWeightingAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.NetworkCommissioningCluster) cluster) - .addThreadNetwork( - (ChipClusters.NetworkCommissioningCluster.AddThreadNetworkResponseCallback) - callback, - (byte[]) commandArguments.get("operationalDataset"), - (Long) commandArguments.get("breadcrumb"), - (Long) commandArguments.get("timeoutMs")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readWeightingAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedAddThreadNetworkResponseCallback(), - networkCommissioningaddThreadNetworkCommandParams); - networkCommissioningClusterCommandInfoMap.put( - "addThreadNetwork", networkCommissioningaddThreadNetworkCommandInfo); - Map networkCommissioningaddWiFiNetworkCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThreadNetworkDiagnosticsWeightingCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readWeightingAttribute", readThreadNetworkDiagnosticsWeightingAttributeCommandInfo); + Map readThreadNetworkDiagnosticsDataVersionCommandParams = new LinkedHashMap(); - CommandParameterInfo networkCommissioningaddWiFiNetworkCommandParameterInfo = - new CommandParameterInfo( - "NetworkCommissioning", - ChipClusters.NetworkCommissioningCluster.AddWiFiNetworkResponseCallback.class); - CommandParameterInfo networkCommissioningaddWiFiNetworkssidCommandParameterInfo = - new CommandParameterInfo("ssid", byte[].class); - networkCommissioningaddWiFiNetworkCommandParams.put( - "ssid", networkCommissioningaddWiFiNetworkssidCommandParameterInfo); - - CommandParameterInfo networkCommissioningaddWiFiNetworkcredentialsCommandParameterInfo = - new CommandParameterInfo("credentials", byte[].class); - networkCommissioningaddWiFiNetworkCommandParams.put( - "credentials", networkCommissioningaddWiFiNetworkcredentialsCommandParameterInfo); - - CommandParameterInfo networkCommissioningaddWiFiNetworkbreadcrumbCommandParameterInfo = - new CommandParameterInfo("breadcrumb", long.class); - networkCommissioningaddWiFiNetworkCommandParams.put( - "breadcrumb", networkCommissioningaddWiFiNetworkbreadcrumbCommandParameterInfo); - - CommandParameterInfo networkCommissioningaddWiFiNetworktimeoutMsCommandParameterInfo = - new CommandParameterInfo("timeoutMs", long.class); - networkCommissioningaddWiFiNetworkCommandParams.put( - "timeoutMs", networkCommissioningaddWiFiNetworktimeoutMsCommandParameterInfo); - - // Populate commands - CommandInfo networkCommissioningaddWiFiNetworkCommandInfo = + CommandInfo readThreadNetworkDiagnosticsDataVersionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.NetworkCommissioningCluster) cluster) - .addWiFiNetwork( - (ChipClusters.NetworkCommissioningCluster.AddWiFiNetworkResponseCallback) - callback, - (byte[]) commandArguments.get("ssid"), - (byte[]) commandArguments.get("credentials"), - (Long) commandArguments.get("breadcrumb"), - (Long) commandArguments.get("timeoutMs")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readDataVersionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedAddWiFiNetworkResponseCallback(), - networkCommissioningaddWiFiNetworkCommandParams); - networkCommissioningClusterCommandInfoMap.put( - "addWiFiNetwork", networkCommissioningaddWiFiNetworkCommandInfo); - Map networkCommissioningdisableNetworkCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThreadNetworkDiagnosticsDataVersionCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readDataVersionAttribute", readThreadNetworkDiagnosticsDataVersionAttributeCommandInfo); + Map readThreadNetworkDiagnosticsStableDataVersionCommandParams = new LinkedHashMap(); - CommandParameterInfo networkCommissioningdisableNetworkCommandParameterInfo = - new CommandParameterInfo( - "NetworkCommissioning", - ChipClusters.NetworkCommissioningCluster.DisableNetworkResponseCallback.class); - CommandParameterInfo networkCommissioningdisableNetworknetworkIDCommandParameterInfo = - new CommandParameterInfo("networkID", byte[].class); - networkCommissioningdisableNetworkCommandParams.put( - "networkID", networkCommissioningdisableNetworknetworkIDCommandParameterInfo); - - CommandParameterInfo networkCommissioningdisableNetworkbreadcrumbCommandParameterInfo = - new CommandParameterInfo("breadcrumb", long.class); - networkCommissioningdisableNetworkCommandParams.put( - "breadcrumb", networkCommissioningdisableNetworkbreadcrumbCommandParameterInfo); - - CommandParameterInfo networkCommissioningdisableNetworktimeoutMsCommandParameterInfo = - new CommandParameterInfo("timeoutMs", long.class); - networkCommissioningdisableNetworkCommandParams.put( - "timeoutMs", networkCommissioningdisableNetworktimeoutMsCommandParameterInfo); - - // Populate commands - CommandInfo networkCommissioningdisableNetworkCommandInfo = + CommandInfo readThreadNetworkDiagnosticsStableDataVersionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.NetworkCommissioningCluster) cluster) - .disableNetwork( - (ChipClusters.NetworkCommissioningCluster.DisableNetworkResponseCallback) - callback, - (byte[]) commandArguments.get("networkID"), - (Long) commandArguments.get("breadcrumb"), - (Long) commandArguments.get("timeoutMs")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readStableDataVersionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDisableNetworkResponseCallback(), - networkCommissioningdisableNetworkCommandParams); - networkCommissioningClusterCommandInfoMap.put( - "disableNetwork", networkCommissioningdisableNetworkCommandInfo); - Map networkCommissioningenableNetworkCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThreadNetworkDiagnosticsStableDataVersionCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readStableDataVersionAttribute", + readThreadNetworkDiagnosticsStableDataVersionAttributeCommandInfo); + Map readThreadNetworkDiagnosticsLeaderRouterIdCommandParams = new LinkedHashMap(); - CommandParameterInfo networkCommissioningenableNetworkCommandParameterInfo = - new CommandParameterInfo( - "NetworkCommissioning", - ChipClusters.NetworkCommissioningCluster.EnableNetworkResponseCallback.class); - CommandParameterInfo networkCommissioningenableNetworknetworkIDCommandParameterInfo = - new CommandParameterInfo("networkID", byte[].class); - networkCommissioningenableNetworkCommandParams.put( - "networkID", networkCommissioningenableNetworknetworkIDCommandParameterInfo); - - CommandParameterInfo networkCommissioningenableNetworkbreadcrumbCommandParameterInfo = - new CommandParameterInfo("breadcrumb", long.class); - networkCommissioningenableNetworkCommandParams.put( - "breadcrumb", networkCommissioningenableNetworkbreadcrumbCommandParameterInfo); - - CommandParameterInfo networkCommissioningenableNetworktimeoutMsCommandParameterInfo = - new CommandParameterInfo("timeoutMs", long.class); - networkCommissioningenableNetworkCommandParams.put( - "timeoutMs", networkCommissioningenableNetworktimeoutMsCommandParameterInfo); - - // Populate commands - CommandInfo networkCommissioningenableNetworkCommandInfo = + CommandInfo readThreadNetworkDiagnosticsLeaderRouterIdAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.NetworkCommissioningCluster) cluster) - .enableNetwork( - (ChipClusters.NetworkCommissioningCluster.EnableNetworkResponseCallback) - callback, - (byte[]) commandArguments.get("networkID"), - (Long) commandArguments.get("breadcrumb"), - (Long) commandArguments.get("timeoutMs")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readLeaderRouterIdAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedEnableNetworkResponseCallback(), - networkCommissioningenableNetworkCommandParams); - networkCommissioningClusterCommandInfoMap.put( - "enableNetwork", networkCommissioningenableNetworkCommandInfo); - Map networkCommissioningremoveNetworkCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThreadNetworkDiagnosticsLeaderRouterIdCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readLeaderRouterIdAttribute", + readThreadNetworkDiagnosticsLeaderRouterIdAttributeCommandInfo); + Map readThreadNetworkDiagnosticsDetachedRoleCountCommandParams = new LinkedHashMap(); - CommandParameterInfo networkCommissioningremoveNetworkCommandParameterInfo = - new CommandParameterInfo( - "NetworkCommissioning", - ChipClusters.NetworkCommissioningCluster.RemoveNetworkResponseCallback.class); - CommandParameterInfo networkCommissioningremoveNetworknetworkIDCommandParameterInfo = - new CommandParameterInfo("networkID", byte[].class); - networkCommissioningremoveNetworkCommandParams.put( - "networkID", networkCommissioningremoveNetworknetworkIDCommandParameterInfo); - - CommandParameterInfo networkCommissioningremoveNetworkbreadcrumbCommandParameterInfo = - new CommandParameterInfo("breadcrumb", long.class); - networkCommissioningremoveNetworkCommandParams.put( - "breadcrumb", networkCommissioningremoveNetworkbreadcrumbCommandParameterInfo); - - CommandParameterInfo networkCommissioningremoveNetworktimeoutMsCommandParameterInfo = - new CommandParameterInfo("timeoutMs", long.class); - networkCommissioningremoveNetworkCommandParams.put( - "timeoutMs", networkCommissioningremoveNetworktimeoutMsCommandParameterInfo); - - // Populate commands - CommandInfo networkCommissioningremoveNetworkCommandInfo = + CommandInfo readThreadNetworkDiagnosticsDetachedRoleCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.NetworkCommissioningCluster) cluster) - .removeNetwork( - (ChipClusters.NetworkCommissioningCluster.RemoveNetworkResponseCallback) - callback, - (byte[]) commandArguments.get("networkID"), - (Long) commandArguments.get("breadcrumb"), - (Long) commandArguments.get("timeoutMs")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readDetachedRoleCountAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedRemoveNetworkResponseCallback(), - networkCommissioningremoveNetworkCommandParams); - networkCommissioningClusterCommandInfoMap.put( - "removeNetwork", networkCommissioningremoveNetworkCommandInfo); - Map networkCommissioningscanNetworksCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThreadNetworkDiagnosticsDetachedRoleCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readDetachedRoleCountAttribute", + readThreadNetworkDiagnosticsDetachedRoleCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsChildRoleCountCommandParams = new LinkedHashMap(); - CommandParameterInfo networkCommissioningscanNetworksCommandParameterInfo = - new CommandParameterInfo( - "NetworkCommissioning", - ChipClusters.NetworkCommissioningCluster.ScanNetworksResponseCallback.class); - CommandParameterInfo networkCommissioningscanNetworksssidCommandParameterInfo = - new CommandParameterInfo("ssid", byte[].class); - networkCommissioningscanNetworksCommandParams.put( - "ssid", networkCommissioningscanNetworksssidCommandParameterInfo); - - CommandParameterInfo networkCommissioningscanNetworksbreadcrumbCommandParameterInfo = - new CommandParameterInfo("breadcrumb", long.class); - networkCommissioningscanNetworksCommandParams.put( - "breadcrumb", networkCommissioningscanNetworksbreadcrumbCommandParameterInfo); - - CommandParameterInfo networkCommissioningscanNetworkstimeoutMsCommandParameterInfo = - new CommandParameterInfo("timeoutMs", long.class); - networkCommissioningscanNetworksCommandParams.put( - "timeoutMs", networkCommissioningscanNetworkstimeoutMsCommandParameterInfo); - - // Populate commands - CommandInfo networkCommissioningscanNetworksCommandInfo = + CommandInfo readThreadNetworkDiagnosticsChildRoleCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readChildRoleCountAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readThreadNetworkDiagnosticsChildRoleCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readChildRoleCountAttribute", + readThreadNetworkDiagnosticsChildRoleCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsRouterRoleCountCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsRouterRoleCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.NetworkCommissioningCluster) cluster) - .scanNetworks( - (ChipClusters.NetworkCommissioningCluster.ScanNetworksResponseCallback) - callback, - (byte[]) commandArguments.get("ssid"), - (Long) commandArguments.get("breadcrumb"), - (Long) commandArguments.get("timeoutMs")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRouterRoleCountAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedScanNetworksResponseCallback(), - networkCommissioningscanNetworksCommandParams); - networkCommissioningClusterCommandInfoMap.put( - "scanNetworks", networkCommissioningscanNetworksCommandInfo); - Map networkCommissioningupdateThreadNetworkCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThreadNetworkDiagnosticsRouterRoleCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRouterRoleCountAttribute", + readThreadNetworkDiagnosticsRouterRoleCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsLeaderRoleCountCommandParams = new LinkedHashMap(); - CommandParameterInfo networkCommissioningupdateThreadNetworkCommandParameterInfo = - new CommandParameterInfo( - "NetworkCommissioning", - ChipClusters.NetworkCommissioningCluster.UpdateThreadNetworkResponseCallback.class); - CommandParameterInfo - networkCommissioningupdateThreadNetworkoperationalDatasetCommandParameterInfo = - new CommandParameterInfo("operationalDataset", byte[].class); - networkCommissioningupdateThreadNetworkCommandParams.put( - "operationalDataset", - networkCommissioningupdateThreadNetworkoperationalDatasetCommandParameterInfo); - - CommandParameterInfo networkCommissioningupdateThreadNetworkbreadcrumbCommandParameterInfo = - new CommandParameterInfo("breadcrumb", long.class); - networkCommissioningupdateThreadNetworkCommandParams.put( - "breadcrumb", networkCommissioningupdateThreadNetworkbreadcrumbCommandParameterInfo); - - CommandParameterInfo networkCommissioningupdateThreadNetworktimeoutMsCommandParameterInfo = - new CommandParameterInfo("timeoutMs", long.class); - networkCommissioningupdateThreadNetworkCommandParams.put( - "timeoutMs", networkCommissioningupdateThreadNetworktimeoutMsCommandParameterInfo); - - // Populate commands - CommandInfo networkCommissioningupdateThreadNetworkCommandInfo = + CommandInfo readThreadNetworkDiagnosticsLeaderRoleCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.NetworkCommissioningCluster) cluster) - .updateThreadNetwork( - (ChipClusters.NetworkCommissioningCluster.UpdateThreadNetworkResponseCallback) - callback, - (byte[]) commandArguments.get("operationalDataset"), - (Long) commandArguments.get("breadcrumb"), - (Long) commandArguments.get("timeoutMs")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readLeaderRoleCountAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedUpdateThreadNetworkResponseCallback(), - networkCommissioningupdateThreadNetworkCommandParams); - networkCommissioningClusterCommandInfoMap.put( - "updateThreadNetwork", networkCommissioningupdateThreadNetworkCommandInfo); - Map networkCommissioningupdateWiFiNetworkCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThreadNetworkDiagnosticsLeaderRoleCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readLeaderRoleCountAttribute", + readThreadNetworkDiagnosticsLeaderRoleCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsAttachAttemptCountCommandParams = new LinkedHashMap(); - CommandParameterInfo networkCommissioningupdateWiFiNetworkCommandParameterInfo = - new CommandParameterInfo( - "NetworkCommissioning", - ChipClusters.NetworkCommissioningCluster.UpdateWiFiNetworkResponseCallback.class); - CommandParameterInfo networkCommissioningupdateWiFiNetworkssidCommandParameterInfo = - new CommandParameterInfo("ssid", byte[].class); - networkCommissioningupdateWiFiNetworkCommandParams.put( - "ssid", networkCommissioningupdateWiFiNetworkssidCommandParameterInfo); - - CommandParameterInfo networkCommissioningupdateWiFiNetworkcredentialsCommandParameterInfo = - new CommandParameterInfo("credentials", byte[].class); - networkCommissioningupdateWiFiNetworkCommandParams.put( - "credentials", networkCommissioningupdateWiFiNetworkcredentialsCommandParameterInfo); - - CommandParameterInfo networkCommissioningupdateWiFiNetworkbreadcrumbCommandParameterInfo = - new CommandParameterInfo("breadcrumb", long.class); - networkCommissioningupdateWiFiNetworkCommandParams.put( - "breadcrumb", networkCommissioningupdateWiFiNetworkbreadcrumbCommandParameterInfo); - - CommandParameterInfo networkCommissioningupdateWiFiNetworktimeoutMsCommandParameterInfo = - new CommandParameterInfo("timeoutMs", long.class); - networkCommissioningupdateWiFiNetworkCommandParams.put( - "timeoutMs", networkCommissioningupdateWiFiNetworktimeoutMsCommandParameterInfo); - - // Populate commands - CommandInfo networkCommissioningupdateWiFiNetworkCommandInfo = + CommandInfo readThreadNetworkDiagnosticsAttachAttemptCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.NetworkCommissioningCluster) cluster) - .updateWiFiNetwork( - (ChipClusters.NetworkCommissioningCluster.UpdateWiFiNetworkResponseCallback) - callback, - (byte[]) commandArguments.get("ssid"), - (byte[]) commandArguments.get("credentials"), - (Long) commandArguments.get("breadcrumb"), - (Long) commandArguments.get("timeoutMs")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readAttachAttemptCountAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readThreadNetworkDiagnosticsAttachAttemptCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readAttachAttemptCountAttribute", + readThreadNetworkDiagnosticsAttachAttemptCountAttributeCommandInfo); + Map + readThreadNetworkDiagnosticsPartitionIdChangeCountCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsPartitionIdChangeCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readPartitionIdChangeCountAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readThreadNetworkDiagnosticsPartitionIdChangeCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readPartitionIdChangeCountAttribute", + readThreadNetworkDiagnosticsPartitionIdChangeCountAttributeCommandInfo); + Map + readThreadNetworkDiagnosticsBetterPartitionAttachAttemptCountCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsBetterPartitionAttachAttemptCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readBetterPartitionAttachAttemptCountAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedUpdateWiFiNetworkResponseCallback(), - networkCommissioningupdateWiFiNetworkCommandParams); - networkCommissioningClusterCommandInfoMap.put( - "updateWiFiNetwork", networkCommissioningupdateWiFiNetworkCommandInfo); - // Populate cluster - ClusterInfo networkCommissioningClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.NetworkCommissioningCluster(ptr, endpointId), - networkCommissioningClusterCommandInfoMap); - clusterMap.put("networkCommissioning", networkCommissioningClusterInfo); - Map otaSoftwareUpdateProviderClusterCommandInfoMap = new LinkedHashMap<>(); - Map otaSoftwareUpdateProviderapplyUpdateRequestCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThreadNetworkDiagnosticsBetterPartitionAttachAttemptCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readBetterPartitionAttachAttemptCountAttribute", + readThreadNetworkDiagnosticsBetterPartitionAttachAttemptCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsParentChangeCountCommandParams = new LinkedHashMap(); - CommandParameterInfo otaSoftwareUpdateProviderapplyUpdateRequestCommandParameterInfo = - new CommandParameterInfo( - "OtaSoftwareUpdateProvider", - ChipClusters.OtaSoftwareUpdateProviderCluster.ApplyUpdateResponseCallback.class); - CommandParameterInfo - otaSoftwareUpdateProviderapplyUpdateRequestupdateTokenCommandParameterInfo = - new CommandParameterInfo("updateToken", byte[].class); - otaSoftwareUpdateProviderapplyUpdateRequestCommandParams.put( - "updateToken", otaSoftwareUpdateProviderapplyUpdateRequestupdateTokenCommandParameterInfo); - - CommandParameterInfo otaSoftwareUpdateProviderapplyUpdateRequestnewVersionCommandParameterInfo = - new CommandParameterInfo("newVersion", long.class); - otaSoftwareUpdateProviderapplyUpdateRequestCommandParams.put( - "newVersion", otaSoftwareUpdateProviderapplyUpdateRequestnewVersionCommandParameterInfo); - - // Populate commands - CommandInfo otaSoftwareUpdateProviderapplyUpdateRequestCommandInfo = + CommandInfo readThreadNetworkDiagnosticsParentChangeCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OtaSoftwareUpdateProviderCluster) cluster) - .applyUpdateRequest( - (ChipClusters.OtaSoftwareUpdateProviderCluster.ApplyUpdateResponseCallback) - callback, - (byte[]) commandArguments.get("updateToken"), - (Long) commandArguments.get("newVersion")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readParentChangeCountAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedApplyUpdateResponseCallback(), - otaSoftwareUpdateProviderapplyUpdateRequestCommandParams); - otaSoftwareUpdateProviderClusterCommandInfoMap.put( - "applyUpdateRequest", otaSoftwareUpdateProviderapplyUpdateRequestCommandInfo); - Map otaSoftwareUpdateProvidernotifyUpdateAppliedCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThreadNetworkDiagnosticsParentChangeCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readParentChangeCountAttribute", + readThreadNetworkDiagnosticsParentChangeCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsTxTotalCountCommandParams = new LinkedHashMap(); - CommandParameterInfo otaSoftwareUpdateProvidernotifyUpdateAppliedCommandParameterInfo = - new CommandParameterInfo( - "OtaSoftwareUpdateProvider", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo - otaSoftwareUpdateProvidernotifyUpdateAppliedupdateTokenCommandParameterInfo = - new CommandParameterInfo("updateToken", byte[].class); - otaSoftwareUpdateProvidernotifyUpdateAppliedCommandParams.put( - "updateToken", otaSoftwareUpdateProvidernotifyUpdateAppliedupdateTokenCommandParameterInfo); - - CommandParameterInfo - otaSoftwareUpdateProvidernotifyUpdateAppliedsoftwareVersionCommandParameterInfo = - new CommandParameterInfo("softwareVersion", long.class); - otaSoftwareUpdateProvidernotifyUpdateAppliedCommandParams.put( - "softwareVersion", - otaSoftwareUpdateProvidernotifyUpdateAppliedsoftwareVersionCommandParameterInfo); - - // Populate commands - CommandInfo otaSoftwareUpdateProvidernotifyUpdateAppliedCommandInfo = + CommandInfo readThreadNetworkDiagnosticsTxTotalCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OtaSoftwareUpdateProviderCluster) cluster) - .notifyUpdateApplied( - (DefaultClusterCallback) callback, - (byte[]) commandArguments.get("updateToken"), - (Long) commandArguments.get("softwareVersion")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readTxTotalCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - otaSoftwareUpdateProvidernotifyUpdateAppliedCommandParams); - otaSoftwareUpdateProviderClusterCommandInfoMap.put( - "notifyUpdateApplied", otaSoftwareUpdateProvidernotifyUpdateAppliedCommandInfo); - Map otaSoftwareUpdateProviderqueryImageCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsTxTotalCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readTxTotalCountAttribute", readThreadNetworkDiagnosticsTxTotalCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsTxUnicastCountCommandParams = new LinkedHashMap(); - CommandParameterInfo otaSoftwareUpdateProviderqueryImageCommandParameterInfo = - new CommandParameterInfo( - "OtaSoftwareUpdateProvider", - ChipClusters.OtaSoftwareUpdateProviderCluster.QueryImageResponseCallback.class); - CommandParameterInfo otaSoftwareUpdateProviderqueryImagevendorIdCommandParameterInfo = - new CommandParameterInfo("vendorId", int.class); - otaSoftwareUpdateProviderqueryImageCommandParams.put( - "vendorId", otaSoftwareUpdateProviderqueryImagevendorIdCommandParameterInfo); - - CommandParameterInfo otaSoftwareUpdateProviderqueryImageproductIdCommandParameterInfo = - new CommandParameterInfo("productId", int.class); - otaSoftwareUpdateProviderqueryImageCommandParams.put( - "productId", otaSoftwareUpdateProviderqueryImageproductIdCommandParameterInfo); - - CommandParameterInfo otaSoftwareUpdateProviderqueryImagesoftwareVersionCommandParameterInfo = - new CommandParameterInfo("softwareVersion", long.class); - otaSoftwareUpdateProviderqueryImageCommandParams.put( - "softwareVersion", otaSoftwareUpdateProviderqueryImagesoftwareVersionCommandParameterInfo); - - CommandParameterInfo otaSoftwareUpdateProviderqueryImageprotocolsSupportedCommandParameterInfo = - new CommandParameterInfo("protocolsSupported", int.class); - otaSoftwareUpdateProviderqueryImageCommandParams.put( - "protocolsSupported", - otaSoftwareUpdateProviderqueryImageprotocolsSupportedCommandParameterInfo); - - CommandParameterInfo otaSoftwareUpdateProviderqueryImagehardwareVersionCommandParameterInfo = - new CommandParameterInfo("hardwareVersion", int.class); - otaSoftwareUpdateProviderqueryImageCommandParams.put( - "hardwareVersion", otaSoftwareUpdateProviderqueryImagehardwareVersionCommandParameterInfo); - - CommandParameterInfo otaSoftwareUpdateProviderqueryImagelocationCommandParameterInfo = - new CommandParameterInfo("location", String.class); - otaSoftwareUpdateProviderqueryImageCommandParams.put( - "location", otaSoftwareUpdateProviderqueryImagelocationCommandParameterInfo); - - CommandParameterInfo - otaSoftwareUpdateProviderqueryImagerequestorCanConsentCommandParameterInfo = - new CommandParameterInfo("requestorCanConsent", boolean.class); - otaSoftwareUpdateProviderqueryImageCommandParams.put( - "requestorCanConsent", - otaSoftwareUpdateProviderqueryImagerequestorCanConsentCommandParameterInfo); - - CommandParameterInfo - otaSoftwareUpdateProviderqueryImagemetadataForProviderCommandParameterInfo = - new CommandParameterInfo("metadataForProvider", byte[].class); - otaSoftwareUpdateProviderqueryImageCommandParams.put( - "metadataForProvider", - otaSoftwareUpdateProviderqueryImagemetadataForProviderCommandParameterInfo); - - // Populate commands - CommandInfo otaSoftwareUpdateProviderqueryImageCommandInfo = + CommandInfo readThreadNetworkDiagnosticsTxUnicastCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OtaSoftwareUpdateProviderCluster) cluster) - .queryImage( - (ChipClusters.OtaSoftwareUpdateProviderCluster.QueryImageResponseCallback) - callback, - (Integer) commandArguments.get("vendorId"), - (Integer) commandArguments.get("productId"), - (Long) commandArguments.get("softwareVersion"), - (Integer) commandArguments.get("protocolsSupported"), - (Integer) commandArguments.get("hardwareVersion"), - (String) commandArguments.get("location"), - (Boolean) commandArguments.get("requestorCanConsent"), - (byte[]) commandArguments.get("metadataForProvider")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readTxUnicastCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedQueryImageResponseCallback(), - otaSoftwareUpdateProviderqueryImageCommandParams); - otaSoftwareUpdateProviderClusterCommandInfoMap.put( - "queryImage", otaSoftwareUpdateProviderqueryImageCommandInfo); - // Populate cluster - ClusterInfo otaSoftwareUpdateProviderClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.OtaSoftwareUpdateProviderCluster(ptr, endpointId), - otaSoftwareUpdateProviderClusterCommandInfoMap); - clusterMap.put("otaSoftwareUpdateProvider", otaSoftwareUpdateProviderClusterInfo); - Map otaSoftwareUpdateRequestorClusterCommandInfoMap = - new LinkedHashMap<>(); - Map otaSoftwareUpdateRequestorannounceOtaProviderCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsTxUnicastCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readTxUnicastCountAttribute", + readThreadNetworkDiagnosticsTxUnicastCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsTxBroadcastCountCommandParams = new LinkedHashMap(); - CommandParameterInfo otaSoftwareUpdateRequestorannounceOtaProviderCommandParameterInfo = - new CommandParameterInfo( - "OtaSoftwareUpdateRequestor", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo - otaSoftwareUpdateRequestorannounceOtaProviderproviderLocationCommandParameterInfo = - new CommandParameterInfo("providerLocation", long.class); - otaSoftwareUpdateRequestorannounceOtaProviderCommandParams.put( - "providerLocation", - otaSoftwareUpdateRequestorannounceOtaProviderproviderLocationCommandParameterInfo); - - CommandParameterInfo otaSoftwareUpdateRequestorannounceOtaProvidervendorIdCommandParameterInfo = - new CommandParameterInfo("vendorId", int.class); - otaSoftwareUpdateRequestorannounceOtaProviderCommandParams.put( - "vendorId", otaSoftwareUpdateRequestorannounceOtaProvidervendorIdCommandParameterInfo); - - CommandParameterInfo - otaSoftwareUpdateRequestorannounceOtaProviderannouncementReasonCommandParameterInfo = - new CommandParameterInfo("announcementReason", int.class); - otaSoftwareUpdateRequestorannounceOtaProviderCommandParams.put( - "announcementReason", - otaSoftwareUpdateRequestorannounceOtaProviderannouncementReasonCommandParameterInfo); - - CommandParameterInfo - otaSoftwareUpdateRequestorannounceOtaProvidermetadataForNodeCommandParameterInfo = - new CommandParameterInfo("metadataForNode", byte[].class); - otaSoftwareUpdateRequestorannounceOtaProviderCommandParams.put( - "metadataForNode", - otaSoftwareUpdateRequestorannounceOtaProvidermetadataForNodeCommandParameterInfo); - - // Populate commands - CommandInfo otaSoftwareUpdateRequestorannounceOtaProviderCommandInfo = + CommandInfo readThreadNetworkDiagnosticsTxBroadcastCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readTxBroadcastCountAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsTxBroadcastCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readTxBroadcastCountAttribute", + readThreadNetworkDiagnosticsTxBroadcastCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsTxAckRequestedCountCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsTxAckRequestedCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OtaSoftwareUpdateRequestorCluster) cluster) - .announceOtaProvider( - (DefaultClusterCallback) callback, - (Long) commandArguments.get("providerLocation"), - (Integer) commandArguments.get("vendorId"), - (Integer) commandArguments.get("announcementReason"), - (byte[]) commandArguments.get("metadataForNode")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readTxAckRequestedCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - otaSoftwareUpdateRequestorannounceOtaProviderCommandParams); - otaSoftwareUpdateRequestorClusterCommandInfoMap.put( - "announceOtaProvider", otaSoftwareUpdateRequestorannounceOtaProviderCommandInfo); - // Populate cluster - ClusterInfo otaSoftwareUpdateRequestorClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> - new ChipClusters.OtaSoftwareUpdateRequestorCluster(ptr, endpointId), - otaSoftwareUpdateRequestorClusterCommandInfoMap); - clusterMap.put("otaSoftwareUpdateRequestor", otaSoftwareUpdateRequestorClusterInfo); - Map occupancySensingClusterCommandInfoMap = new LinkedHashMap<>(); - // Populate cluster - ClusterInfo occupancySensingClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.OccupancySensingCluster(ptr, endpointId), - occupancySensingClusterCommandInfoMap); - clusterMap.put("occupancySensing", occupancySensingClusterInfo); - Map onOffClusterCommandInfoMap = new LinkedHashMap<>(); - Map onOffoffCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsTxAckRequestedCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readTxAckRequestedCountAttribute", + readThreadNetworkDiagnosticsTxAckRequestedCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsTxAckedCountCommandParams = new LinkedHashMap(); - CommandParameterInfo onOffoffCommandParameterInfo = - new CommandParameterInfo("OnOff", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo onOffoffCommandInfo = + CommandInfo readThreadNetworkDiagnosticsTxAckedCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OnOffCluster) cluster).off((DefaultClusterCallback) callback); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readTxAckedCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - onOffoffCommandParams); - onOffClusterCommandInfoMap.put("off", onOffoffCommandInfo); - Map onOffoffWithEffectCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsTxAckedCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readTxAckedCountAttribute", readThreadNetworkDiagnosticsTxAckedCountAttributeCommandInfo); + Map + readThreadNetworkDiagnosticsTxNoAckRequestedCountCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsTxNoAckRequestedCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readTxNoAckRequestedCountAttribute( + (ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsTxNoAckRequestedCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readTxNoAckRequestedCountAttribute", + readThreadNetworkDiagnosticsTxNoAckRequestedCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsTxDataCountCommandParams = new LinkedHashMap(); - CommandParameterInfo onOffoffWithEffectCommandParameterInfo = - new CommandParameterInfo("OnOff", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo onOffoffWithEffecteffectIdCommandParameterInfo = - new CommandParameterInfo("effectId", int.class); - onOffoffWithEffectCommandParams.put("effectId", onOffoffWithEffecteffectIdCommandParameterInfo); - - CommandParameterInfo onOffoffWithEffecteffectVariantCommandParameterInfo = - new CommandParameterInfo("effectVariant", int.class); - onOffoffWithEffectCommandParams.put( - "effectVariant", onOffoffWithEffecteffectVariantCommandParameterInfo); - - // Populate commands - CommandInfo onOffoffWithEffectCommandInfo = + CommandInfo readThreadNetworkDiagnosticsTxDataCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OnOffCluster) cluster) - .offWithEffect( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("effectId"), - (Integer) commandArguments.get("effectVariant")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readTxDataCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - onOffoffWithEffectCommandParams); - onOffClusterCommandInfoMap.put("offWithEffect", onOffoffWithEffectCommandInfo); - Map onOffonCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsTxDataCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readTxDataCountAttribute", readThreadNetworkDiagnosticsTxDataCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsTxDataPollCountCommandParams = new LinkedHashMap(); - CommandParameterInfo onOffonCommandParameterInfo = - new CommandParameterInfo("OnOff", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo onOffonCommandInfo = + CommandInfo readThreadNetworkDiagnosticsTxDataPollCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OnOffCluster) cluster).on((DefaultClusterCallback) callback); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readTxDataPollCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - onOffonCommandParams); - onOffClusterCommandInfoMap.put("on", onOffonCommandInfo); - Map onOffonWithRecallGlobalSceneCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsTxDataPollCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readTxDataPollCountAttribute", + readThreadNetworkDiagnosticsTxDataPollCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsTxBeaconCountCommandParams = new LinkedHashMap(); - CommandParameterInfo onOffonWithRecallGlobalSceneCommandParameterInfo = - new CommandParameterInfo("OnOff", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo onOffonWithRecallGlobalSceneCommandInfo = + CommandInfo readThreadNetworkDiagnosticsTxBeaconCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OnOffCluster) cluster) - .onWithRecallGlobalScene((DefaultClusterCallback) callback); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readTxBeaconCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - onOffonWithRecallGlobalSceneCommandParams); - onOffClusterCommandInfoMap.put( - "onWithRecallGlobalScene", onOffonWithRecallGlobalSceneCommandInfo); - Map onOffonWithTimedOffCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsTxBeaconCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readTxBeaconCountAttribute", + readThreadNetworkDiagnosticsTxBeaconCountAttributeCommandInfo); + Map + readThreadNetworkDiagnosticsTxBeaconRequestCountCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsTxBeaconRequestCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readTxBeaconRequestCountAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsTxBeaconRequestCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readTxBeaconRequestCountAttribute", + readThreadNetworkDiagnosticsTxBeaconRequestCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsTxOtherCountCommandParams = new LinkedHashMap(); - CommandParameterInfo onOffonWithTimedOffCommandParameterInfo = - new CommandParameterInfo("OnOff", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo onOffonWithTimedOffonOffControlCommandParameterInfo = - new CommandParameterInfo("onOffControl", int.class); - onOffonWithTimedOffCommandParams.put( - "onOffControl", onOffonWithTimedOffonOffControlCommandParameterInfo); - - CommandParameterInfo onOffonWithTimedOffonTimeCommandParameterInfo = - new CommandParameterInfo("onTime", int.class); - onOffonWithTimedOffCommandParams.put("onTime", onOffonWithTimedOffonTimeCommandParameterInfo); - - CommandParameterInfo onOffonWithTimedOffoffWaitTimeCommandParameterInfo = - new CommandParameterInfo("offWaitTime", int.class); - onOffonWithTimedOffCommandParams.put( - "offWaitTime", onOffonWithTimedOffoffWaitTimeCommandParameterInfo); - - // Populate commands - CommandInfo onOffonWithTimedOffCommandInfo = + CommandInfo readThreadNetworkDiagnosticsTxOtherCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OnOffCluster) cluster) - .onWithTimedOff( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("onOffControl"), - (Integer) commandArguments.get("onTime"), - (Integer) commandArguments.get("offWaitTime")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readTxOtherCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - onOffonWithTimedOffCommandParams); - onOffClusterCommandInfoMap.put("onWithTimedOff", onOffonWithTimedOffCommandInfo); - Map onOfftoggleCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsTxOtherCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readTxOtherCountAttribute", readThreadNetworkDiagnosticsTxOtherCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsTxRetryCountCommandParams = new LinkedHashMap(); - CommandParameterInfo onOfftoggleCommandParameterInfo = - new CommandParameterInfo("OnOff", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo onOfftoggleCommandInfo = + CommandInfo readThreadNetworkDiagnosticsTxRetryCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OnOffCluster) cluster).toggle((DefaultClusterCallback) callback); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readTxRetryCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - onOfftoggleCommandParams); - onOffClusterCommandInfoMap.put("toggle", onOfftoggleCommandInfo); - // Populate cluster - ClusterInfo onOffClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.OnOffCluster(ptr, endpointId), - onOffClusterCommandInfoMap); - clusterMap.put("onOff", onOffClusterInfo); - Map onOffSwitchConfigurationClusterCommandInfoMap = new LinkedHashMap<>(); - // Populate cluster - ClusterInfo onOffSwitchConfigurationClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.OnOffSwitchConfigurationCluster(ptr, endpointId), - onOffSwitchConfigurationClusterCommandInfoMap); - clusterMap.put("onOffSwitchConfiguration", onOffSwitchConfigurationClusterInfo); - Map operationalCredentialsClusterCommandInfoMap = new LinkedHashMap<>(); - Map operationalCredentialsaddNOCCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsTxRetryCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readTxRetryCountAttribute", readThreadNetworkDiagnosticsTxRetryCountAttributeCommandInfo); + Map + readThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCountCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readTxDirectMaxRetryExpiryCountAttribute( + (ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readTxDirectMaxRetryExpiryCountAttribute", + readThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCountAttributeCommandInfo); + Map + readThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCountCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readTxIndirectMaxRetryExpiryCountAttribute( + (ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readTxIndirectMaxRetryExpiryCountAttribute", + readThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsTxErrCcaCountCommandParams = new LinkedHashMap(); - CommandParameterInfo operationalCredentialsaddNOCCommandParameterInfo = - new CommandParameterInfo( - "OperationalCredentials", - ChipClusters.OperationalCredentialsCluster.NOCResponseCallback.class); - CommandParameterInfo operationalCredentialsaddNOCNOCValueCommandParameterInfo = - new CommandParameterInfo("NOCValue", byte[].class); - operationalCredentialsaddNOCCommandParams.put( - "NOCValue", operationalCredentialsaddNOCNOCValueCommandParameterInfo); - - CommandParameterInfo operationalCredentialsaddNOCICACValueCommandParameterInfo = - new CommandParameterInfo("ICACValue", byte[].class); - operationalCredentialsaddNOCCommandParams.put( - "ICACValue", operationalCredentialsaddNOCICACValueCommandParameterInfo); - - CommandParameterInfo operationalCredentialsaddNOCIPKValueCommandParameterInfo = - new CommandParameterInfo("IPKValue", byte[].class); - operationalCredentialsaddNOCCommandParams.put( - "IPKValue", operationalCredentialsaddNOCIPKValueCommandParameterInfo); - - CommandParameterInfo operationalCredentialsaddNOCcaseAdminNodeCommandParameterInfo = - new CommandParameterInfo("caseAdminNode", long.class); - operationalCredentialsaddNOCCommandParams.put( - "caseAdminNode", operationalCredentialsaddNOCcaseAdminNodeCommandParameterInfo); - - CommandParameterInfo operationalCredentialsaddNOCadminVendorIdCommandParameterInfo = - new CommandParameterInfo("adminVendorId", int.class); - operationalCredentialsaddNOCCommandParams.put( - "adminVendorId", operationalCredentialsaddNOCadminVendorIdCommandParameterInfo); - - // Populate commands - CommandInfo operationalCredentialsaddNOCCommandInfo = + CommandInfo readThreadNetworkDiagnosticsTxErrCcaCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OperationalCredentialsCluster) cluster) - .addNOC( - (ChipClusters.OperationalCredentialsCluster.NOCResponseCallback) callback, - (byte[]) commandArguments.get("NOCValue"), - (byte[]) commandArguments.get("ICACValue"), - (byte[]) commandArguments.get("IPKValue"), - (Long) commandArguments.get("caseAdminNode"), - (Integer) commandArguments.get("adminVendorId")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readTxErrCcaCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedNOCResponseCallback(), - operationalCredentialsaddNOCCommandParams); - operationalCredentialsClusterCommandInfoMap.put( - "addNOC", operationalCredentialsaddNOCCommandInfo); - Map operationalCredentialsaddTrustedRootCertificateCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsTxErrCcaCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readTxErrCcaCountAttribute", + readThreadNetworkDiagnosticsTxErrCcaCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsTxErrAbortCountCommandParams = new LinkedHashMap(); - CommandParameterInfo operationalCredentialsaddTrustedRootCertificateCommandParameterInfo = - new CommandParameterInfo( - "OperationalCredentials", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo - operationalCredentialsaddTrustedRootCertificaterootCertificateCommandParameterInfo = - new CommandParameterInfo("rootCertificate", byte[].class); - operationalCredentialsaddTrustedRootCertificateCommandParams.put( - "rootCertificate", - operationalCredentialsaddTrustedRootCertificaterootCertificateCommandParameterInfo); - - // Populate commands - CommandInfo operationalCredentialsaddTrustedRootCertificateCommandInfo = + CommandInfo readThreadNetworkDiagnosticsTxErrAbortCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OperationalCredentialsCluster) cluster) - .addTrustedRootCertificate( - (DefaultClusterCallback) callback, - (byte[]) commandArguments.get("rootCertificate")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readTxErrAbortCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - operationalCredentialsaddTrustedRootCertificateCommandParams); - operationalCredentialsClusterCommandInfoMap.put( - "addTrustedRootCertificate", operationalCredentialsaddTrustedRootCertificateCommandInfo); - Map operationalCredentialsattestationRequestCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsTxErrAbortCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readTxErrAbortCountAttribute", + readThreadNetworkDiagnosticsTxErrAbortCountAttributeCommandInfo); + Map + readThreadNetworkDiagnosticsTxErrBusyChannelCountCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsTxErrBusyChannelCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readTxErrBusyChannelCountAttribute( + (ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsTxErrBusyChannelCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readTxErrBusyChannelCountAttribute", + readThreadNetworkDiagnosticsTxErrBusyChannelCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsRxTotalCountCommandParams = new LinkedHashMap(); - CommandParameterInfo operationalCredentialsattestationRequestCommandParameterInfo = - new CommandParameterInfo( - "OperationalCredentials", - ChipClusters.OperationalCredentialsCluster.AttestationResponseCallback.class); - CommandParameterInfo - operationalCredentialsattestationRequestattestationNonceCommandParameterInfo = - new CommandParameterInfo("attestationNonce", byte[].class); - operationalCredentialsattestationRequestCommandParams.put( - "attestationNonce", - operationalCredentialsattestationRequestattestationNonceCommandParameterInfo); - - // Populate commands - CommandInfo operationalCredentialsattestationRequestCommandInfo = + CommandInfo readThreadNetworkDiagnosticsRxTotalCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OperationalCredentialsCluster) cluster) - .attestationRequest( - (ChipClusters.OperationalCredentialsCluster.AttestationResponseCallback) - callback, - (byte[]) commandArguments.get("attestationNonce")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRxTotalCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedAttestationResponseCallback(), - operationalCredentialsattestationRequestCommandParams); - operationalCredentialsClusterCommandInfoMap.put( - "attestationRequest", operationalCredentialsattestationRequestCommandInfo); - Map operationalCredentialscertificateChainRequestCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsRxTotalCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRxTotalCountAttribute", readThreadNetworkDiagnosticsRxTotalCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsRxUnicastCountCommandParams = new LinkedHashMap(); - CommandParameterInfo operationalCredentialscertificateChainRequestCommandParameterInfo = - new CommandParameterInfo( - "OperationalCredentials", - ChipClusters.OperationalCredentialsCluster.CertificateChainResponseCallback.class); - CommandParameterInfo - operationalCredentialscertificateChainRequestcertificateTypeCommandParameterInfo = - new CommandParameterInfo("certificateType", int.class); - operationalCredentialscertificateChainRequestCommandParams.put( - "certificateType", - operationalCredentialscertificateChainRequestcertificateTypeCommandParameterInfo); - - // Populate commands - CommandInfo operationalCredentialscertificateChainRequestCommandInfo = + CommandInfo readThreadNetworkDiagnosticsRxUnicastCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OperationalCredentialsCluster) cluster) - .certificateChainRequest( - (ChipClusters.OperationalCredentialsCluster.CertificateChainResponseCallback) - callback, - (Integer) commandArguments.get("certificateType")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRxUnicastCountAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsRxUnicastCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRxUnicastCountAttribute", + readThreadNetworkDiagnosticsRxUnicastCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsRxBroadcastCountCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsRxBroadcastCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRxBroadcastCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedCertificateChainResponseCallback(), - operationalCredentialscertificateChainRequestCommandParams); - operationalCredentialsClusterCommandInfoMap.put( - "certificateChainRequest", operationalCredentialscertificateChainRequestCommandInfo); - Map operationalCredentialsopCSRRequestCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsRxBroadcastCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRxBroadcastCountAttribute", + readThreadNetworkDiagnosticsRxBroadcastCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsRxDataCountCommandParams = new LinkedHashMap(); - CommandParameterInfo operationalCredentialsopCSRRequestCommandParameterInfo = - new CommandParameterInfo( - "OperationalCredentials", - ChipClusters.OperationalCredentialsCluster.OpCSRResponseCallback.class); - CommandParameterInfo operationalCredentialsopCSRRequestCSRNonceCommandParameterInfo = - new CommandParameterInfo("CSRNonce", byte[].class); - operationalCredentialsopCSRRequestCommandParams.put( - "CSRNonce", operationalCredentialsopCSRRequestCSRNonceCommandParameterInfo); - - // Populate commands - CommandInfo operationalCredentialsopCSRRequestCommandInfo = + CommandInfo readThreadNetworkDiagnosticsRxDataCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OperationalCredentialsCluster) cluster) - .opCSRRequest( - (ChipClusters.OperationalCredentialsCluster.OpCSRResponseCallback) callback, - (byte[]) commandArguments.get("CSRNonce")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRxDataCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedOpCSRResponseCallback(), - operationalCredentialsopCSRRequestCommandParams); - operationalCredentialsClusterCommandInfoMap.put( - "opCSRRequest", operationalCredentialsopCSRRequestCommandInfo); - Map operationalCredentialsremoveFabricCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsRxDataCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRxDataCountAttribute", readThreadNetworkDiagnosticsRxDataCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsRxDataPollCountCommandParams = new LinkedHashMap(); - CommandParameterInfo operationalCredentialsremoveFabricCommandParameterInfo = - new CommandParameterInfo( - "OperationalCredentials", - ChipClusters.OperationalCredentialsCluster.NOCResponseCallback.class); - CommandParameterInfo operationalCredentialsremoveFabricfabricIndexCommandParameterInfo = - new CommandParameterInfo("fabricIndex", int.class); - operationalCredentialsremoveFabricCommandParams.put( - "fabricIndex", operationalCredentialsremoveFabricfabricIndexCommandParameterInfo); - - // Populate commands - CommandInfo operationalCredentialsremoveFabricCommandInfo = + CommandInfo readThreadNetworkDiagnosticsRxDataPollCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OperationalCredentialsCluster) cluster) - .removeFabric( - (ChipClusters.OperationalCredentialsCluster.NOCResponseCallback) callback, - (Integer) commandArguments.get("fabricIndex")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRxDataPollCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedNOCResponseCallback(), - operationalCredentialsremoveFabricCommandParams); - operationalCredentialsClusterCommandInfoMap.put( - "removeFabric", operationalCredentialsremoveFabricCommandInfo); + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsRxDataPollCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRxDataPollCountAttribute", + readThreadNetworkDiagnosticsRxDataPollCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsRxBeaconCountCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsRxBeaconCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRxBeaconCountAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsRxBeaconCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRxBeaconCountAttribute", + readThreadNetworkDiagnosticsRxBeaconCountAttributeCommandInfo); Map - operationalCredentialsremoveTrustedRootCertificateCommandParams = + readThreadNetworkDiagnosticsRxBeaconRequestCountCommandParams = new LinkedHashMap(); - CommandParameterInfo operationalCredentialsremoveTrustedRootCertificateCommandParameterInfo = - new CommandParameterInfo( - "OperationalCredentials", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo - operationalCredentialsremoveTrustedRootCertificatetrustedRootIdentifierCommandParameterInfo = - new CommandParameterInfo("trustedRootIdentifier", byte[].class); - operationalCredentialsremoveTrustedRootCertificateCommandParams.put( - "trustedRootIdentifier", - operationalCredentialsremoveTrustedRootCertificatetrustedRootIdentifierCommandParameterInfo); - - // Populate commands - CommandInfo operationalCredentialsremoveTrustedRootCertificateCommandInfo = + CommandInfo readThreadNetworkDiagnosticsRxBeaconRequestCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OperationalCredentialsCluster) cluster) - .removeTrustedRootCertificate( - (DefaultClusterCallback) callback, - (byte[]) commandArguments.get("trustedRootIdentifier")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRxBeaconRequestCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - operationalCredentialsremoveTrustedRootCertificateCommandParams); - operationalCredentialsClusterCommandInfoMap.put( - "removeTrustedRootCertificate", - operationalCredentialsremoveTrustedRootCertificateCommandInfo); - Map operationalCredentialsupdateFabricLabelCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsRxBeaconRequestCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRxBeaconRequestCountAttribute", + readThreadNetworkDiagnosticsRxBeaconRequestCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsRxOtherCountCommandParams = new LinkedHashMap(); - CommandParameterInfo operationalCredentialsupdateFabricLabelCommandParameterInfo = - new CommandParameterInfo( - "OperationalCredentials", - ChipClusters.OperationalCredentialsCluster.NOCResponseCallback.class); - CommandParameterInfo operationalCredentialsupdateFabricLabellabelCommandParameterInfo = - new CommandParameterInfo("label", String.class); - operationalCredentialsupdateFabricLabelCommandParams.put( - "label", operationalCredentialsupdateFabricLabellabelCommandParameterInfo); - - // Populate commands - CommandInfo operationalCredentialsupdateFabricLabelCommandInfo = + CommandInfo readThreadNetworkDiagnosticsRxOtherCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OperationalCredentialsCluster) cluster) - .updateFabricLabel( - (ChipClusters.OperationalCredentialsCluster.NOCResponseCallback) callback, - (String) commandArguments.get("label")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRxOtherCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedNOCResponseCallback(), - operationalCredentialsupdateFabricLabelCommandParams); - operationalCredentialsClusterCommandInfoMap.put( - "updateFabricLabel", operationalCredentialsupdateFabricLabelCommandInfo); - Map operationalCredentialsupdateNOCCommandParams = - new LinkedHashMap(); - CommandParameterInfo operationalCredentialsupdateNOCCommandParameterInfo = - new CommandParameterInfo( - "OperationalCredentials", - ChipClusters.OperationalCredentialsCluster.NOCResponseCallback.class); - CommandParameterInfo operationalCredentialsupdateNOCNOCValueCommandParameterInfo = - new CommandParameterInfo("NOCValue", byte[].class); - operationalCredentialsupdateNOCCommandParams.put( - "NOCValue", operationalCredentialsupdateNOCNOCValueCommandParameterInfo); - - CommandParameterInfo operationalCredentialsupdateNOCICACValueCommandParameterInfo = - new CommandParameterInfo("ICACValue", byte[].class); - operationalCredentialsupdateNOCCommandParams.put( - "ICACValue", operationalCredentialsupdateNOCICACValueCommandParameterInfo); - - // Populate commands - CommandInfo operationalCredentialsupdateNOCCommandInfo = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsRxOtherCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRxOtherCountAttribute", readThreadNetworkDiagnosticsRxOtherCountAttributeCommandInfo); + Map + readThreadNetworkDiagnosticsRxAddressFilteredCountCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsRxAddressFilteredCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.OperationalCredentialsCluster) cluster) - .updateNOC( - (ChipClusters.OperationalCredentialsCluster.NOCResponseCallback) callback, - (byte[]) commandArguments.get("NOCValue"), - (byte[]) commandArguments.get("ICACValue")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRxAddressFilteredCountAttribute( + (ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsRxAddressFilteredCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRxAddressFilteredCountAttribute", + readThreadNetworkDiagnosticsRxAddressFilteredCountAttributeCommandInfo); + Map + readThreadNetworkDiagnosticsRxDestAddrFilteredCountCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsRxDestAddrFilteredCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRxDestAddrFilteredCountAttribute( + (ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedNOCResponseCallback(), - operationalCredentialsupdateNOCCommandParams); - operationalCredentialsClusterCommandInfoMap.put( - "updateNOC", operationalCredentialsupdateNOCCommandInfo); - // Populate cluster - ClusterInfo operationalCredentialsClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.OperationalCredentialsCluster(ptr, endpointId), - operationalCredentialsClusterCommandInfoMap); - clusterMap.put("operationalCredentials", operationalCredentialsClusterInfo); - Map powerSourceClusterCommandInfoMap = new LinkedHashMap<>(); - // Populate cluster - ClusterInfo powerSourceClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.PowerSourceCluster(ptr, endpointId), - powerSourceClusterCommandInfoMap); - clusterMap.put("powerSource", powerSourceClusterInfo); - Map pressureMeasurementClusterCommandInfoMap = new LinkedHashMap<>(); - // Populate cluster - ClusterInfo pressureMeasurementClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.PressureMeasurementCluster(ptr, endpointId), - pressureMeasurementClusterCommandInfoMap); - clusterMap.put("pressureMeasurement", pressureMeasurementClusterInfo); - Map pumpConfigurationAndControlClusterCommandInfoMap = - new LinkedHashMap<>(); - // Populate cluster - ClusterInfo pumpConfigurationAndControlClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> - new ChipClusters.PumpConfigurationAndControlCluster(ptr, endpointId), - pumpConfigurationAndControlClusterCommandInfoMap); - clusterMap.put("pumpConfigurationAndControl", pumpConfigurationAndControlClusterInfo); - Map relativeHumidityMeasurementClusterCommandInfoMap = - new LinkedHashMap<>(); - // Populate cluster - ClusterInfo relativeHumidityMeasurementClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> - new ChipClusters.RelativeHumidityMeasurementCluster(ptr, endpointId), - relativeHumidityMeasurementClusterCommandInfoMap); - clusterMap.put("relativeHumidityMeasurement", relativeHumidityMeasurementClusterInfo); - Map scenesClusterCommandInfoMap = new LinkedHashMap<>(); - Map scenesaddSceneCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsRxDestAddrFilteredCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRxDestAddrFilteredCountAttribute", + readThreadNetworkDiagnosticsRxDestAddrFilteredCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsRxDuplicatedCountCommandParams = new LinkedHashMap(); - CommandParameterInfo scenesaddSceneCommandParameterInfo = - new CommandParameterInfo( - "Scenes", ChipClusters.ScenesCluster.AddSceneResponseCallback.class); - CommandParameterInfo scenesaddScenegroupIdCommandParameterInfo = - new CommandParameterInfo("groupId", int.class); - scenesaddSceneCommandParams.put("groupId", scenesaddScenegroupIdCommandParameterInfo); - - CommandParameterInfo scenesaddScenesceneIdCommandParameterInfo = - new CommandParameterInfo("sceneId", int.class); - scenesaddSceneCommandParams.put("sceneId", scenesaddScenesceneIdCommandParameterInfo); - - CommandParameterInfo scenesaddScenetransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - scenesaddSceneCommandParams.put( - "transitionTime", scenesaddScenetransitionTimeCommandParameterInfo); - - CommandParameterInfo scenesaddScenesceneNameCommandParameterInfo = - new CommandParameterInfo("sceneName", String.class); - scenesaddSceneCommandParams.put("sceneName", scenesaddScenesceneNameCommandParameterInfo); - - CommandParameterInfo scenesaddSceneclusterIdCommandParameterInfo = - new CommandParameterInfo("clusterId", long.class); - scenesaddSceneCommandParams.put("clusterId", scenesaddSceneclusterIdCommandParameterInfo); - - CommandParameterInfo scenesaddScenelengthCommandParameterInfo = - new CommandParameterInfo("length", int.class); - scenesaddSceneCommandParams.put("length", scenesaddScenelengthCommandParameterInfo); - - CommandParameterInfo scenesaddScenevalueCommandParameterInfo = - new CommandParameterInfo("value", int.class); - scenesaddSceneCommandParams.put("value", scenesaddScenevalueCommandParameterInfo); - - // Populate commands - CommandInfo scenesaddSceneCommandInfo = + CommandInfo readThreadNetworkDiagnosticsRxDuplicatedCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ScenesCluster) cluster) - .addScene( - (ChipClusters.ScenesCluster.AddSceneResponseCallback) callback, - (Integer) commandArguments.get("groupId"), - (Integer) commandArguments.get("sceneId"), - (Integer) commandArguments.get("transitionTime"), - (String) commandArguments.get("sceneName"), - (Long) commandArguments.get("clusterId"), - (Integer) commandArguments.get("length"), - (Integer) commandArguments.get("value")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRxDuplicatedCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedAddSceneResponseCallback(), - scenesaddSceneCommandParams); - scenesClusterCommandInfoMap.put("addScene", scenesaddSceneCommandInfo); - Map scenesgetSceneMembershipCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsRxDuplicatedCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRxDuplicatedCountAttribute", + readThreadNetworkDiagnosticsRxDuplicatedCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsRxErrNoFrameCountCommandParams = new LinkedHashMap(); - CommandParameterInfo scenesgetSceneMembershipCommandParameterInfo = - new CommandParameterInfo( - "Scenes", ChipClusters.ScenesCluster.GetSceneMembershipResponseCallback.class); - CommandParameterInfo scenesgetSceneMembershipgroupIdCommandParameterInfo = - new CommandParameterInfo("groupId", int.class); - scenesgetSceneMembershipCommandParams.put( - "groupId", scenesgetSceneMembershipgroupIdCommandParameterInfo); - - // Populate commands - CommandInfo scenesgetSceneMembershipCommandInfo = + CommandInfo readThreadNetworkDiagnosticsRxErrNoFrameCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ScenesCluster) cluster) - .getSceneMembership( - (ChipClusters.ScenesCluster.GetSceneMembershipResponseCallback) callback, - (Integer) commandArguments.get("groupId")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRxErrNoFrameCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedGetSceneMembershipResponseCallback(), - scenesgetSceneMembershipCommandParams); - scenesClusterCommandInfoMap.put("getSceneMembership", scenesgetSceneMembershipCommandInfo); - Map scenesrecallSceneCommandParams = - new LinkedHashMap(); - CommandParameterInfo scenesrecallSceneCommandParameterInfo = - new CommandParameterInfo("Scenes", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo scenesrecallScenegroupIdCommandParameterInfo = - new CommandParameterInfo("groupId", int.class); - scenesrecallSceneCommandParams.put("groupId", scenesrecallScenegroupIdCommandParameterInfo); - - CommandParameterInfo scenesrecallScenesceneIdCommandParameterInfo = - new CommandParameterInfo("sceneId", int.class); - scenesrecallSceneCommandParams.put("sceneId", scenesrecallScenesceneIdCommandParameterInfo); - - CommandParameterInfo scenesrecallScenetransitionTimeCommandParameterInfo = - new CommandParameterInfo("transitionTime", int.class); - scenesrecallSceneCommandParams.put( - "transitionTime", scenesrecallScenetransitionTimeCommandParameterInfo); - - // Populate commands - CommandInfo scenesrecallSceneCommandInfo = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsRxErrNoFrameCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRxErrNoFrameCountAttribute", + readThreadNetworkDiagnosticsRxErrNoFrameCountAttributeCommandInfo); + Map + readThreadNetworkDiagnosticsRxErrUnknownNeighborCountCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsRxErrUnknownNeighborCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ScenesCluster) cluster) - .recallScene( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("groupId"), - (Integer) commandArguments.get("sceneId"), - (Integer) commandArguments.get("transitionTime")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRxErrUnknownNeighborCountAttribute( + (ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsRxErrUnknownNeighborCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRxErrUnknownNeighborCountAttribute", + readThreadNetworkDiagnosticsRxErrUnknownNeighborCountAttributeCommandInfo); + Map + readThreadNetworkDiagnosticsRxErrInvalidSrcAddrCountCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsRxErrInvalidSrcAddrCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRxErrInvalidSrcAddrCountAttribute( + (ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - scenesrecallSceneCommandParams); - scenesClusterCommandInfoMap.put("recallScene", scenesrecallSceneCommandInfo); - Map scenesremoveAllScenesCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsRxErrInvalidSrcAddrCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRxErrInvalidSrcAddrCountAttribute", + readThreadNetworkDiagnosticsRxErrInvalidSrcAddrCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsRxErrSecCountCommandParams = new LinkedHashMap(); - CommandParameterInfo scenesremoveAllScenesCommandParameterInfo = - new CommandParameterInfo( - "Scenes", ChipClusters.ScenesCluster.RemoveAllScenesResponseCallback.class); - CommandParameterInfo scenesremoveAllScenesgroupIdCommandParameterInfo = - new CommandParameterInfo("groupId", int.class); - scenesremoveAllScenesCommandParams.put( - "groupId", scenesremoveAllScenesgroupIdCommandParameterInfo); - - // Populate commands - CommandInfo scenesremoveAllScenesCommandInfo = + CommandInfo readThreadNetworkDiagnosticsRxErrSecCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRxErrSecCountAttribute((ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsRxErrSecCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRxErrSecCountAttribute", + readThreadNetworkDiagnosticsRxErrSecCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsRxErrFcsCountCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsRxErrFcsCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ScenesCluster) cluster) - .removeAllScenes( - (ChipClusters.ScenesCluster.RemoveAllScenesResponseCallback) callback, - (Integer) commandArguments.get("groupId")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRxErrFcsCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedRemoveAllScenesResponseCallback(), - scenesremoveAllScenesCommandParams); - scenesClusterCommandInfoMap.put("removeAllScenes", scenesremoveAllScenesCommandInfo); - Map scenesremoveSceneCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsRxErrFcsCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRxErrFcsCountAttribute", + readThreadNetworkDiagnosticsRxErrFcsCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsRxErrOtherCountCommandParams = new LinkedHashMap(); - CommandParameterInfo scenesremoveSceneCommandParameterInfo = - new CommandParameterInfo( - "Scenes", ChipClusters.ScenesCluster.RemoveSceneResponseCallback.class); - CommandParameterInfo scenesremoveScenegroupIdCommandParameterInfo = - new CommandParameterInfo("groupId", int.class); - scenesremoveSceneCommandParams.put("groupId", scenesremoveScenegroupIdCommandParameterInfo); - - CommandParameterInfo scenesremoveScenesceneIdCommandParameterInfo = - new CommandParameterInfo("sceneId", int.class); - scenesremoveSceneCommandParams.put("sceneId", scenesremoveScenesceneIdCommandParameterInfo); - - // Populate commands - CommandInfo scenesremoveSceneCommandInfo = + CommandInfo readThreadNetworkDiagnosticsRxErrOtherCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ScenesCluster) cluster) - .removeScene( - (ChipClusters.ScenesCluster.RemoveSceneResponseCallback) callback, - (Integer) commandArguments.get("groupId"), - (Integer) commandArguments.get("sceneId")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readRxErrOtherCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedRemoveSceneResponseCallback(), - scenesremoveSceneCommandParams); - scenesClusterCommandInfoMap.put("removeScene", scenesremoveSceneCommandInfo); - Map scenesstoreSceneCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsRxErrOtherCountCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readRxErrOtherCountAttribute", + readThreadNetworkDiagnosticsRxErrOtherCountAttributeCommandInfo); + Map readThreadNetworkDiagnosticsActiveTimestampCommandParams = new LinkedHashMap(); - CommandParameterInfo scenesstoreSceneCommandParameterInfo = - new CommandParameterInfo( - "Scenes", ChipClusters.ScenesCluster.StoreSceneResponseCallback.class); - CommandParameterInfo scenesstoreScenegroupIdCommandParameterInfo = - new CommandParameterInfo("groupId", int.class); - scenesstoreSceneCommandParams.put("groupId", scenesstoreScenegroupIdCommandParameterInfo); - - CommandParameterInfo scenesstoreScenesceneIdCommandParameterInfo = - new CommandParameterInfo("sceneId", int.class); - scenesstoreSceneCommandParams.put("sceneId", scenesstoreScenesceneIdCommandParameterInfo); - - // Populate commands - CommandInfo scenesstoreSceneCommandInfo = + CommandInfo readThreadNetworkDiagnosticsActiveTimestampAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ScenesCluster) cluster) - .storeScene( - (ChipClusters.ScenesCluster.StoreSceneResponseCallback) callback, - (Integer) commandArguments.get("groupId"), - (Integer) commandArguments.get("sceneId")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readActiveTimestampAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedStoreSceneResponseCallback(), - scenesstoreSceneCommandParams); - scenesClusterCommandInfoMap.put("storeScene", scenesstoreSceneCommandInfo); - Map scenesviewSceneCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsActiveTimestampCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readActiveTimestampAttribute", + readThreadNetworkDiagnosticsActiveTimestampAttributeCommandInfo); + Map readThreadNetworkDiagnosticsPendingTimestampCommandParams = new LinkedHashMap(); - CommandParameterInfo scenesviewSceneCommandParameterInfo = - new CommandParameterInfo( - "Scenes", ChipClusters.ScenesCluster.ViewSceneResponseCallback.class); - CommandParameterInfo scenesviewScenegroupIdCommandParameterInfo = - new CommandParameterInfo("groupId", int.class); - scenesviewSceneCommandParams.put("groupId", scenesviewScenegroupIdCommandParameterInfo); - - CommandParameterInfo scenesviewScenesceneIdCommandParameterInfo = - new CommandParameterInfo("sceneId", int.class); - scenesviewSceneCommandParams.put("sceneId", scenesviewScenesceneIdCommandParameterInfo); - - // Populate commands - CommandInfo scenesviewSceneCommandInfo = + CommandInfo readThreadNetworkDiagnosticsPendingTimestampAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ScenesCluster) cluster) - .viewScene( - (ChipClusters.ScenesCluster.ViewSceneResponseCallback) callback, - (Integer) commandArguments.get("groupId"), - (Integer) commandArguments.get("sceneId")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readPendingTimestampAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedViewSceneResponseCallback(), - scenesviewSceneCommandParams); - scenesClusterCommandInfoMap.put("viewScene", scenesviewSceneCommandInfo); - // Populate cluster - ClusterInfo scenesClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.ScenesCluster(ptr, endpointId), - scenesClusterCommandInfoMap); - clusterMap.put("scenes", scenesClusterInfo); - Map softwareDiagnosticsClusterCommandInfoMap = new LinkedHashMap<>(); - Map softwareDiagnosticsresetWatermarksCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsPendingTimestampCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readPendingTimestampAttribute", + readThreadNetworkDiagnosticsPendingTimestampAttributeCommandInfo); + Map readThreadNetworkDiagnosticsDelayCommandParams = new LinkedHashMap(); - CommandParameterInfo softwareDiagnosticsresetWatermarksCommandParameterInfo = - new CommandParameterInfo("SoftwareDiagnostics", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo softwareDiagnosticsresetWatermarksCommandInfo = + CommandInfo readThreadNetworkDiagnosticsDelayAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.SoftwareDiagnosticsCluster) cluster) - .resetWatermarks((DefaultClusterCallback) callback); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readDelayAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - softwareDiagnosticsresetWatermarksCommandParams); - softwareDiagnosticsClusterCommandInfoMap.put( - "resetWatermarks", softwareDiagnosticsresetWatermarksCommandInfo); - // Populate cluster - ClusterInfo softwareDiagnosticsClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.SoftwareDiagnosticsCluster(ptr, endpointId), - softwareDiagnosticsClusterCommandInfoMap); - clusterMap.put("softwareDiagnostics", softwareDiagnosticsClusterInfo); - Map switchClusterCommandInfoMap = new LinkedHashMap<>(); - // Populate cluster - ClusterInfo switchClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.SwitchCluster(ptr, endpointId), - switchClusterCommandInfoMap); - clusterMap.put("switch", switchClusterInfo); - Map tvChannelClusterCommandInfoMap = new LinkedHashMap<>(); - Map tvChannelchangeChannelCommandParams = + () -> new DelegatedLongAttributeCallback(), + readThreadNetworkDiagnosticsDelayCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readDelayAttribute", readThreadNetworkDiagnosticsDelayAttributeCommandInfo); + Map readThreadNetworkDiagnosticsSecurityPolicyCommandParams = new LinkedHashMap(); - CommandParameterInfo tvChannelchangeChannelCommandParameterInfo = - new CommandParameterInfo( - "TvChannel", ChipClusters.TvChannelCluster.ChangeChannelResponseCallback.class); - CommandParameterInfo tvChannelchangeChannelmatchCommandParameterInfo = - new CommandParameterInfo("match", String.class); - tvChannelchangeChannelCommandParams.put( - "match", tvChannelchangeChannelmatchCommandParameterInfo); - - // Populate commands - CommandInfo tvChannelchangeChannelCommandInfo = + CommandInfo readThreadNetworkDiagnosticsSecurityPolicyAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.TvChannelCluster) cluster) - .changeChannel( - (ChipClusters.TvChannelCluster.ChangeChannelResponseCallback) callback, - (String) commandArguments.get("match")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readSecurityPolicyAttribute( + (ChipClusters.ThreadNetworkDiagnosticsCluster.SecurityPolicyAttributeCallback) + callback); }, - () -> new DelegatedChangeChannelResponseCallback(), - tvChannelchangeChannelCommandParams); - tvChannelClusterCommandInfoMap.put("changeChannel", tvChannelchangeChannelCommandInfo); - Map tvChannelchangeChannelByNumberCommandParams = + () -> new DelegatedSecurityPolicyAttributeCallback(), + readThreadNetworkDiagnosticsSecurityPolicyCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readSecurityPolicyAttribute", + readThreadNetworkDiagnosticsSecurityPolicyAttributeCommandInfo); + Map readThreadNetworkDiagnosticsChannelMaskCommandParams = new LinkedHashMap(); - CommandParameterInfo tvChannelchangeChannelByNumberCommandParameterInfo = - new CommandParameterInfo("TvChannel", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo tvChannelchangeChannelByNumbermajorNumberCommandParameterInfo = - new CommandParameterInfo("majorNumber", int.class); - tvChannelchangeChannelByNumberCommandParams.put( - "majorNumber", tvChannelchangeChannelByNumbermajorNumberCommandParameterInfo); - - CommandParameterInfo tvChannelchangeChannelByNumberminorNumberCommandParameterInfo = - new CommandParameterInfo("minorNumber", int.class); - tvChannelchangeChannelByNumberCommandParams.put( - "minorNumber", tvChannelchangeChannelByNumberminorNumberCommandParameterInfo); - - // Populate commands - CommandInfo tvChannelchangeChannelByNumberCommandInfo = + CommandInfo readThreadNetworkDiagnosticsChannelMaskAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.TvChannelCluster) cluster) - .changeChannelByNumber( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("majorNumber"), - (Integer) commandArguments.get("minorNumber")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readChannelMaskAttribute((ChipClusters.OctetStringAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - tvChannelchangeChannelByNumberCommandParams); - tvChannelClusterCommandInfoMap.put( - "changeChannelByNumber", tvChannelchangeChannelByNumberCommandInfo); - Map tvChannelskipChannelCommandParams = + () -> new DelegatedOctetStringAttributeCallback(), + readThreadNetworkDiagnosticsChannelMaskCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readChannelMaskAttribute", readThreadNetworkDiagnosticsChannelMaskAttributeCommandInfo); + Map + readThreadNetworkDiagnosticsOperationalDatasetComponentsCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsOperationalDatasetComponentsAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readOperationalDatasetComponentsAttribute( + (ChipClusters.ThreadNetworkDiagnosticsCluster + .OperationalDatasetComponentsAttributeCallback) + callback); + }, + () -> new DelegatedOperationalDatasetComponentsAttributeCallback(), + readThreadNetworkDiagnosticsOperationalDatasetComponentsCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readOperationalDatasetComponentsAttribute", + readThreadNetworkDiagnosticsOperationalDatasetComponentsAttributeCommandInfo); + Map + readThreadNetworkDiagnosticsActiveNetworkFaultsListCommandParams = + new LinkedHashMap(); + CommandInfo readThreadNetworkDiagnosticsActiveNetworkFaultsListAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readActiveNetworkFaultsListAttribute( + (ChipClusters.ThreadNetworkDiagnosticsCluster + .ActiveNetworkFaultsListAttributeCallback) + callback); + }, + () -> new DelegatedActiveNetworkFaultsListAttributeCallback(), + readThreadNetworkDiagnosticsActiveNetworkFaultsListCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readActiveNetworkFaultsListAttribute", + readThreadNetworkDiagnosticsActiveNetworkFaultsListAttributeCommandInfo); + Map readThreadNetworkDiagnosticsClusterRevisionCommandParams = new LinkedHashMap(); - CommandParameterInfo tvChannelskipChannelCommandParameterInfo = - new CommandParameterInfo("TvChannel", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo tvChannelskipChannelcountCommandParameterInfo = - new CommandParameterInfo("count", int.class); - tvChannelskipChannelCommandParams.put("count", tvChannelskipChannelcountCommandParameterInfo); - - // Populate commands - CommandInfo tvChannelskipChannelCommandInfo = + CommandInfo readThreadNetworkDiagnosticsClusterRevisionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.TvChannelCluster) cluster) - .skipChannel( - (DefaultClusterCallback) callback, (Integer) commandArguments.get("count")); + ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - tvChannelskipChannelCommandParams); - tvChannelClusterCommandInfoMap.put("skipChannel", tvChannelskipChannelCommandInfo); - // Populate cluster - ClusterInfo tvChannelClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.TvChannelCluster(ptr, endpointId), - tvChannelClusterCommandInfoMap); - clusterMap.put("tvChannel", tvChannelClusterInfo); - Map targetNavigatorClusterCommandInfoMap = new LinkedHashMap<>(); - Map targetNavigatornavigateTargetCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readThreadNetworkDiagnosticsClusterRevisionCommandParams); + readThreadNetworkDiagnosticsCommandInfo.put( + "readClusterRevisionAttribute", + readThreadNetworkDiagnosticsClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap + .get("threadNetworkDiagnostics") + .combineCommands(readThreadNetworkDiagnosticsCommandInfo); + Map readWakeOnLanCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readWakeOnLanWakeOnLanMacAddressCommandParams = new LinkedHashMap(); - CommandParameterInfo targetNavigatornavigateTargetCommandParameterInfo = - new CommandParameterInfo( - "TargetNavigator", - ChipClusters.TargetNavigatorCluster.NavigateTargetResponseCallback.class); - CommandParameterInfo targetNavigatornavigateTargettargetCommandParameterInfo = - new CommandParameterInfo("target", int.class); - targetNavigatornavigateTargetCommandParams.put( - "target", targetNavigatornavigateTargettargetCommandParameterInfo); - - CommandParameterInfo targetNavigatornavigateTargetdataCommandParameterInfo = - new CommandParameterInfo("data", String.class); - targetNavigatornavigateTargetCommandParams.put( - "data", targetNavigatornavigateTargetdataCommandParameterInfo); - - // Populate commands - CommandInfo targetNavigatornavigateTargetCommandInfo = + CommandInfo readWakeOnLanWakeOnLanMacAddressAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.TargetNavigatorCluster) cluster) - .navigateTarget( - (ChipClusters.TargetNavigatorCluster.NavigateTargetResponseCallback) callback, - (Integer) commandArguments.get("target"), - (String) commandArguments.get("data")); + ((ChipClusters.WakeOnLanCluster) cluster) + .readWakeOnLanMacAddressAttribute( + (ChipClusters.CharStringAttributeCallback) callback); }, - () -> new DelegatedNavigateTargetResponseCallback(), - targetNavigatornavigateTargetCommandParams); - targetNavigatorClusterCommandInfoMap.put( - "navigateTarget", targetNavigatornavigateTargetCommandInfo); - // Populate cluster - ClusterInfo targetNavigatorClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.TargetNavigatorCluster(ptr, endpointId), - targetNavigatorClusterCommandInfoMap); - clusterMap.put("targetNavigator", targetNavigatorClusterInfo); - Map temperatureMeasurementClusterCommandInfoMap = new LinkedHashMap<>(); - // Populate cluster - ClusterInfo temperatureMeasurementClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.TemperatureMeasurementCluster(ptr, endpointId), - temperatureMeasurementClusterCommandInfoMap); - clusterMap.put("temperatureMeasurement", temperatureMeasurementClusterInfo); - Map testClusterClusterCommandInfoMap = new LinkedHashMap<>(); - Map testClustertestCommandParams = + () -> new DelegatedCharStringAttributeCallback(), + readWakeOnLanWakeOnLanMacAddressCommandParams); + readWakeOnLanCommandInfo.put( + "readWakeOnLanMacAddressAttribute", readWakeOnLanWakeOnLanMacAddressAttributeCommandInfo); + Map readWakeOnLanClusterRevisionCommandParams = new LinkedHashMap(); - CommandParameterInfo testClustertestCommandParameterInfo = - new CommandParameterInfo("TestCluster", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo testClustertestCommandInfo = + CommandInfo readWakeOnLanClusterRevisionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.TestClusterCluster) cluster).test((DefaultClusterCallback) callback); + ((ChipClusters.WakeOnLanCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - testClustertestCommandParams); - testClusterClusterCommandInfoMap.put("test", testClustertestCommandInfo); - Map testClustertestAddArgumentsCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readWakeOnLanClusterRevisionCommandParams); + readWakeOnLanCommandInfo.put( + "readClusterRevisionAttribute", readWakeOnLanClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("wakeOnLan").combineCommands(readWakeOnLanCommandInfo); + Map readWiFiNetworkDiagnosticsCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readWiFiNetworkDiagnosticsBssidCommandParams = new LinkedHashMap(); - CommandParameterInfo testClustertestAddArgumentsCommandParameterInfo = - new CommandParameterInfo( - "TestCluster", ChipClusters.TestClusterCluster.TestAddArgumentsResponseCallback.class); - CommandParameterInfo testClustertestAddArgumentsarg1CommandParameterInfo = - new CommandParameterInfo("arg1", int.class); - testClustertestAddArgumentsCommandParams.put( - "arg1", testClustertestAddArgumentsarg1CommandParameterInfo); - - CommandParameterInfo testClustertestAddArgumentsarg2CommandParameterInfo = - new CommandParameterInfo("arg2", int.class); - testClustertestAddArgumentsCommandParams.put( - "arg2", testClustertestAddArgumentsarg2CommandParameterInfo); - - // Populate commands - CommandInfo testClustertestAddArgumentsCommandInfo = + CommandInfo readWiFiNetworkDiagnosticsBssidAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.TestClusterCluster) cluster) - .testAddArguments( - (ChipClusters.TestClusterCluster.TestAddArgumentsResponseCallback) callback, - (Integer) commandArguments.get("arg1"), - (Integer) commandArguments.get("arg2")); + ((ChipClusters.WiFiNetworkDiagnosticsCluster) cluster) + .readBssidAttribute((ChipClusters.OctetStringAttributeCallback) callback); }, - () -> new DelegatedTestAddArgumentsResponseCallback(), - testClustertestAddArgumentsCommandParams); - testClusterClusterCommandInfoMap.put( - "testAddArguments", testClustertestAddArgumentsCommandInfo); - Map testClustertestEnumsRequestCommandParams = + () -> new DelegatedOctetStringAttributeCallback(), + readWiFiNetworkDiagnosticsBssidCommandParams); + readWiFiNetworkDiagnosticsCommandInfo.put( + "readBssidAttribute", readWiFiNetworkDiagnosticsBssidAttributeCommandInfo); + Map readWiFiNetworkDiagnosticsSecurityTypeCommandParams = new LinkedHashMap(); - CommandParameterInfo testClustertestEnumsRequestCommandParameterInfo = - new CommandParameterInfo( - "TestCluster", ChipClusters.TestClusterCluster.TestEnumsResponseCallback.class); - CommandParameterInfo testClustertestEnumsRequestarg1CommandParameterInfo = - new CommandParameterInfo("arg1", int.class); - testClustertestEnumsRequestCommandParams.put( - "arg1", testClustertestEnumsRequestarg1CommandParameterInfo); - - CommandParameterInfo testClustertestEnumsRequestarg2CommandParameterInfo = - new CommandParameterInfo("arg2", int.class); - testClustertestEnumsRequestCommandParams.put( - "arg2", testClustertestEnumsRequestarg2CommandParameterInfo); - - // Populate commands - CommandInfo testClustertestEnumsRequestCommandInfo = + CommandInfo readWiFiNetworkDiagnosticsSecurityTypeAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.TestClusterCluster) cluster) - .testEnumsRequest( - (ChipClusters.TestClusterCluster.TestEnumsResponseCallback) callback, - (Integer) commandArguments.get("arg1"), - (Integer) commandArguments.get("arg2")); + ((ChipClusters.WiFiNetworkDiagnosticsCluster) cluster) + .readSecurityTypeAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedTestEnumsResponseCallback(), - testClustertestEnumsRequestCommandParams); - testClusterClusterCommandInfoMap.put( - "testEnumsRequest", testClustertestEnumsRequestCommandInfo); - Map testClustertestListInt8UArgumentRequestCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readWiFiNetworkDiagnosticsSecurityTypeCommandParams); + readWiFiNetworkDiagnosticsCommandInfo.put( + "readSecurityTypeAttribute", readWiFiNetworkDiagnosticsSecurityTypeAttributeCommandInfo); + Map readWiFiNetworkDiagnosticsWiFiVersionCommandParams = new LinkedHashMap(); - CommandParameterInfo testClustertestListInt8UArgumentRequestCommandParameterInfo = - new CommandParameterInfo( - "TestCluster", ChipClusters.TestClusterCluster.BooleanResponseCallback.class); - CommandParameterInfo testClustertestListInt8UArgumentRequestarg1CommandParameterInfo = - new CommandParameterInfo("arg1", int.class); - testClustertestListInt8UArgumentRequestCommandParams.put( - "arg1", testClustertestListInt8UArgumentRequestarg1CommandParameterInfo); - - // Populate commands - CommandInfo testClustertestListInt8UArgumentRequestCommandInfo = + CommandInfo readWiFiNetworkDiagnosticsWiFiVersionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.TestClusterCluster) cluster) - .testListInt8UArgumentRequest( - (ChipClusters.TestClusterCluster.BooleanResponseCallback) callback, - (Integer) commandArguments.get("arg1")); + ((ChipClusters.WiFiNetworkDiagnosticsCluster) cluster) + .readWiFiVersionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedBooleanResponseCallback(), - testClustertestListInt8UArgumentRequestCommandParams); - testClusterClusterCommandInfoMap.put( - "testListInt8UArgumentRequest", testClustertestListInt8UArgumentRequestCommandInfo); - Map testClustertestListInt8UReverseRequestCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readWiFiNetworkDiagnosticsWiFiVersionCommandParams); + readWiFiNetworkDiagnosticsCommandInfo.put( + "readWiFiVersionAttribute", readWiFiNetworkDiagnosticsWiFiVersionAttributeCommandInfo); + Map readWiFiNetworkDiagnosticsChannelNumberCommandParams = new LinkedHashMap(); - CommandParameterInfo testClustertestListInt8UReverseRequestCommandParameterInfo = - new CommandParameterInfo( - "TestCluster", - ChipClusters.TestClusterCluster.TestListInt8UReverseResponseCallback.class); - CommandParameterInfo testClustertestListInt8UReverseRequestarg1CommandParameterInfo = - new CommandParameterInfo("arg1", int.class); - testClustertestListInt8UReverseRequestCommandParams.put( - "arg1", testClustertestListInt8UReverseRequestarg1CommandParameterInfo); - - // Populate commands - CommandInfo testClustertestListInt8UReverseRequestCommandInfo = + CommandInfo readWiFiNetworkDiagnosticsChannelNumberAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.TestClusterCluster) cluster) - .testListInt8UReverseRequest( - (ChipClusters.TestClusterCluster.TestListInt8UReverseResponseCallback) - callback, - (Integer) commandArguments.get("arg1")); + ((ChipClusters.WiFiNetworkDiagnosticsCluster) cluster) + .readChannelNumberAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedTestListInt8UReverseResponseCallback(), - testClustertestListInt8UReverseRequestCommandParams); - testClusterClusterCommandInfoMap.put( - "testListInt8UReverseRequest", testClustertestListInt8UReverseRequestCommandInfo); - Map testClustertestListStructArgumentRequestCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readWiFiNetworkDiagnosticsChannelNumberCommandParams); + readWiFiNetworkDiagnosticsCommandInfo.put( + "readChannelNumberAttribute", readWiFiNetworkDiagnosticsChannelNumberAttributeCommandInfo); + Map readWiFiNetworkDiagnosticsRssiCommandParams = new LinkedHashMap(); - CommandParameterInfo testClustertestListStructArgumentRequestCommandParameterInfo = - new CommandParameterInfo( - "TestCluster", ChipClusters.TestClusterCluster.BooleanResponseCallback.class); - CommandParameterInfo testClustertestListStructArgumentRequestaCommandParameterInfo = - new CommandParameterInfo("a", int.class); - testClustertestListStructArgumentRequestCommandParams.put( - "a", testClustertestListStructArgumentRequestaCommandParameterInfo); - - CommandParameterInfo testClustertestListStructArgumentRequestbCommandParameterInfo = - new CommandParameterInfo("b", boolean.class); - testClustertestListStructArgumentRequestCommandParams.put( - "b", testClustertestListStructArgumentRequestbCommandParameterInfo); - - CommandParameterInfo testClustertestListStructArgumentRequestcCommandParameterInfo = - new CommandParameterInfo("c", int.class); - testClustertestListStructArgumentRequestCommandParams.put( - "c", testClustertestListStructArgumentRequestcCommandParameterInfo); - - CommandParameterInfo testClustertestListStructArgumentRequestdCommandParameterInfo = - new CommandParameterInfo("d", byte[].class); - testClustertestListStructArgumentRequestCommandParams.put( - "d", testClustertestListStructArgumentRequestdCommandParameterInfo); - - CommandParameterInfo testClustertestListStructArgumentRequesteCommandParameterInfo = - new CommandParameterInfo("e", String.class); - testClustertestListStructArgumentRequestCommandParams.put( - "e", testClustertestListStructArgumentRequesteCommandParameterInfo); - - CommandParameterInfo testClustertestListStructArgumentRequestfCommandParameterInfo = - new CommandParameterInfo("f", int.class); - testClustertestListStructArgumentRequestCommandParams.put( - "f", testClustertestListStructArgumentRequestfCommandParameterInfo); - - // Populate commands - CommandInfo testClustertestListStructArgumentRequestCommandInfo = + CommandInfo readWiFiNetworkDiagnosticsRssiAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.TestClusterCluster) cluster) - .testListStructArgumentRequest( - (ChipClusters.TestClusterCluster.BooleanResponseCallback) callback, - (Integer) commandArguments.get("a"), - (Boolean) commandArguments.get("b"), - (Integer) commandArguments.get("c"), - (byte[]) commandArguments.get("d"), - (String) commandArguments.get("e"), - (Integer) commandArguments.get("f")); + ((ChipClusters.WiFiNetworkDiagnosticsCluster) cluster) + .readRssiAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedBooleanResponseCallback(), - testClustertestListStructArgumentRequestCommandParams); - testClusterClusterCommandInfoMap.put( - "testListStructArgumentRequest", testClustertestListStructArgumentRequestCommandInfo); - Map testClustertestNotHandledCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readWiFiNetworkDiagnosticsRssiCommandParams); + readWiFiNetworkDiagnosticsCommandInfo.put( + "readRssiAttribute", readWiFiNetworkDiagnosticsRssiAttributeCommandInfo); + Map readWiFiNetworkDiagnosticsBeaconLostCountCommandParams = new LinkedHashMap(); - CommandParameterInfo testClustertestNotHandledCommandParameterInfo = - new CommandParameterInfo("TestCluster", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo testClustertestNotHandledCommandInfo = + CommandInfo readWiFiNetworkDiagnosticsBeaconLostCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.TestClusterCluster) cluster) - .testNotHandled((DefaultClusterCallback) callback); + ((ChipClusters.WiFiNetworkDiagnosticsCluster) cluster) + .readBeaconLostCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - testClustertestNotHandledCommandParams); - testClusterClusterCommandInfoMap.put("testNotHandled", testClustertestNotHandledCommandInfo); - Map testClustertestNullableOptionalRequestCommandParams = + () -> new DelegatedLongAttributeCallback(), + readWiFiNetworkDiagnosticsBeaconLostCountCommandParams); + readWiFiNetworkDiagnosticsCommandInfo.put( + "readBeaconLostCountAttribute", + readWiFiNetworkDiagnosticsBeaconLostCountAttributeCommandInfo); + Map readWiFiNetworkDiagnosticsBeaconRxCountCommandParams = new LinkedHashMap(); - CommandParameterInfo testClustertestNullableOptionalRequestCommandParameterInfo = - new CommandParameterInfo( - "TestCluster", - ChipClusters.TestClusterCluster.TestNullableOptionalResponseCallback.class); - CommandParameterInfo testClustertestNullableOptionalRequestarg1CommandParameterInfo = - new CommandParameterInfo("arg1", int.class); - testClustertestNullableOptionalRequestCommandParams.put( - "arg1", testClustertestNullableOptionalRequestarg1CommandParameterInfo); - - // Populate commands - CommandInfo testClustertestNullableOptionalRequestCommandInfo = + CommandInfo readWiFiNetworkDiagnosticsBeaconRxCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.TestClusterCluster) cluster) - .testNullableOptionalRequest( - (ChipClusters.TestClusterCluster.TestNullableOptionalResponseCallback) - callback, - (Integer) commandArguments.get("arg1")); + ((ChipClusters.WiFiNetworkDiagnosticsCluster) cluster) + .readBeaconRxCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedTestNullableOptionalResponseCallback(), - testClustertestNullableOptionalRequestCommandParams); - testClusterClusterCommandInfoMap.put( - "testNullableOptionalRequest", testClustertestNullableOptionalRequestCommandInfo); - Map testClustertestSpecificCommandParams = + () -> new DelegatedLongAttributeCallback(), + readWiFiNetworkDiagnosticsBeaconRxCountCommandParams); + readWiFiNetworkDiagnosticsCommandInfo.put( + "readBeaconRxCountAttribute", readWiFiNetworkDiagnosticsBeaconRxCountAttributeCommandInfo); + Map + readWiFiNetworkDiagnosticsPacketMulticastRxCountCommandParams = + new LinkedHashMap(); + CommandInfo readWiFiNetworkDiagnosticsPacketMulticastRxCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WiFiNetworkDiagnosticsCluster) cluster) + .readPacketMulticastRxCountAttribute( + (ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readWiFiNetworkDiagnosticsPacketMulticastRxCountCommandParams); + readWiFiNetworkDiagnosticsCommandInfo.put( + "readPacketMulticastRxCountAttribute", + readWiFiNetworkDiagnosticsPacketMulticastRxCountAttributeCommandInfo); + Map + readWiFiNetworkDiagnosticsPacketMulticastTxCountCommandParams = + new LinkedHashMap(); + CommandInfo readWiFiNetworkDiagnosticsPacketMulticastTxCountAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WiFiNetworkDiagnosticsCluster) cluster) + .readPacketMulticastTxCountAttribute( + (ChipClusters.LongAttributeCallback) callback); + }, + () -> new DelegatedLongAttributeCallback(), + readWiFiNetworkDiagnosticsPacketMulticastTxCountCommandParams); + readWiFiNetworkDiagnosticsCommandInfo.put( + "readPacketMulticastTxCountAttribute", + readWiFiNetworkDiagnosticsPacketMulticastTxCountAttributeCommandInfo); + Map readWiFiNetworkDiagnosticsPacketUnicastRxCountCommandParams = new LinkedHashMap(); - CommandParameterInfo testClustertestSpecificCommandParameterInfo = - new CommandParameterInfo( - "TestCluster", ChipClusters.TestClusterCluster.TestSpecificResponseCallback.class); - // Populate commands - CommandInfo testClustertestSpecificCommandInfo = + CommandInfo readWiFiNetworkDiagnosticsPacketUnicastRxCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.TestClusterCluster) cluster) - .testSpecific( - (ChipClusters.TestClusterCluster.TestSpecificResponseCallback) callback); + ((ChipClusters.WiFiNetworkDiagnosticsCluster) cluster) + .readPacketUnicastRxCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedTestSpecificResponseCallback(), - testClustertestSpecificCommandParams); - testClusterClusterCommandInfoMap.put("testSpecific", testClustertestSpecificCommandInfo); - Map testClustertestStructArgumentRequestCommandParams = + () -> new DelegatedLongAttributeCallback(), + readWiFiNetworkDiagnosticsPacketUnicastRxCountCommandParams); + readWiFiNetworkDiagnosticsCommandInfo.put( + "readPacketUnicastRxCountAttribute", + readWiFiNetworkDiagnosticsPacketUnicastRxCountAttributeCommandInfo); + Map readWiFiNetworkDiagnosticsPacketUnicastTxCountCommandParams = new LinkedHashMap(); - CommandParameterInfo testClustertestStructArgumentRequestCommandParameterInfo = - new CommandParameterInfo( - "TestCluster", ChipClusters.TestClusterCluster.BooleanResponseCallback.class); - CommandParameterInfo testClustertestStructArgumentRequestaCommandParameterInfo = - new CommandParameterInfo("a", int.class); - testClustertestStructArgumentRequestCommandParams.put( - "a", testClustertestStructArgumentRequestaCommandParameterInfo); - - CommandParameterInfo testClustertestStructArgumentRequestbCommandParameterInfo = - new CommandParameterInfo("b", boolean.class); - testClustertestStructArgumentRequestCommandParams.put( - "b", testClustertestStructArgumentRequestbCommandParameterInfo); - - CommandParameterInfo testClustertestStructArgumentRequestcCommandParameterInfo = - new CommandParameterInfo("c", int.class); - testClustertestStructArgumentRequestCommandParams.put( - "c", testClustertestStructArgumentRequestcCommandParameterInfo); - - CommandParameterInfo testClustertestStructArgumentRequestdCommandParameterInfo = - new CommandParameterInfo("d", byte[].class); - testClustertestStructArgumentRequestCommandParams.put( - "d", testClustertestStructArgumentRequestdCommandParameterInfo); - - CommandParameterInfo testClustertestStructArgumentRequesteCommandParameterInfo = - new CommandParameterInfo("e", String.class); - testClustertestStructArgumentRequestCommandParams.put( - "e", testClustertestStructArgumentRequesteCommandParameterInfo); - - CommandParameterInfo testClustertestStructArgumentRequestfCommandParameterInfo = - new CommandParameterInfo("f", int.class); - testClustertestStructArgumentRequestCommandParams.put( - "f", testClustertestStructArgumentRequestfCommandParameterInfo); - - // Populate commands - CommandInfo testClustertestStructArgumentRequestCommandInfo = + CommandInfo readWiFiNetworkDiagnosticsPacketUnicastTxCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.TestClusterCluster) cluster) - .testStructArgumentRequest( - (ChipClusters.TestClusterCluster.BooleanResponseCallback) callback, - (Integer) commandArguments.get("a"), - (Boolean) commandArguments.get("b"), - (Integer) commandArguments.get("c"), - (byte[]) commandArguments.get("d"), - (String) commandArguments.get("e"), - (Integer) commandArguments.get("f")); + ((ChipClusters.WiFiNetworkDiagnosticsCluster) cluster) + .readPacketUnicastTxCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedBooleanResponseCallback(), - testClustertestStructArgumentRequestCommandParams); - testClusterClusterCommandInfoMap.put( - "testStructArgumentRequest", testClustertestStructArgumentRequestCommandInfo); - Map testClustertestUnknownCommandCommandParams = + () -> new DelegatedLongAttributeCallback(), + readWiFiNetworkDiagnosticsPacketUnicastTxCountCommandParams); + readWiFiNetworkDiagnosticsCommandInfo.put( + "readPacketUnicastTxCountAttribute", + readWiFiNetworkDiagnosticsPacketUnicastTxCountAttributeCommandInfo); + Map readWiFiNetworkDiagnosticsCurrentMaxRateCommandParams = new LinkedHashMap(); - CommandParameterInfo testClustertestUnknownCommandCommandParameterInfo = - new CommandParameterInfo("TestCluster", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo testClustertestUnknownCommandCommandInfo = + CommandInfo readWiFiNetworkDiagnosticsCurrentMaxRateAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.TestClusterCluster) cluster) - .testUnknownCommand((DefaultClusterCallback) callback); + ((ChipClusters.WiFiNetworkDiagnosticsCluster) cluster) + .readCurrentMaxRateAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - testClustertestUnknownCommandCommandParams); - testClusterClusterCommandInfoMap.put( - "testUnknownCommand", testClustertestUnknownCommandCommandInfo); - // Populate cluster - ClusterInfo testClusterClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.TestClusterCluster(ptr, endpointId), - testClusterClusterCommandInfoMap); - clusterMap.put("testCluster", testClusterClusterInfo); - Map thermostatClusterCommandInfoMap = new LinkedHashMap<>(); - Map thermostatclearWeeklyScheduleCommandParams = + () -> new DelegatedLongAttributeCallback(), + readWiFiNetworkDiagnosticsCurrentMaxRateCommandParams); + readWiFiNetworkDiagnosticsCommandInfo.put( + "readCurrentMaxRateAttribute", + readWiFiNetworkDiagnosticsCurrentMaxRateAttributeCommandInfo); + Map readWiFiNetworkDiagnosticsOverrunCountCommandParams = new LinkedHashMap(); - CommandParameterInfo thermostatclearWeeklyScheduleCommandParameterInfo = - new CommandParameterInfo("Thermostat", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo thermostatclearWeeklyScheduleCommandInfo = + CommandInfo readWiFiNetworkDiagnosticsOverrunCountAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .clearWeeklySchedule((DefaultClusterCallback) callback); + ((ChipClusters.WiFiNetworkDiagnosticsCluster) cluster) + .readOverrunCountAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - thermostatclearWeeklyScheduleCommandParams); - thermostatClusterCommandInfoMap.put( - "clearWeeklySchedule", thermostatclearWeeklyScheduleCommandInfo); - Map thermostatgetRelayStatusLogCommandParams = + () -> new DelegatedLongAttributeCallback(), + readWiFiNetworkDiagnosticsOverrunCountCommandParams); + readWiFiNetworkDiagnosticsCommandInfo.put( + "readOverrunCountAttribute", readWiFiNetworkDiagnosticsOverrunCountAttributeCommandInfo); + Map readWiFiNetworkDiagnosticsClusterRevisionCommandParams = new LinkedHashMap(); - CommandParameterInfo thermostatgetRelayStatusLogCommandParameterInfo = - new CommandParameterInfo("Thermostat", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo thermostatgetRelayStatusLogCommandInfo = + CommandInfo readWiFiNetworkDiagnosticsClusterRevisionAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .getRelayStatusLog((DefaultClusterCallback) callback); + ((ChipClusters.WiFiNetworkDiagnosticsCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - thermostatgetRelayStatusLogCommandParams); - thermostatClusterCommandInfoMap.put( - "getRelayStatusLog", thermostatgetRelayStatusLogCommandInfo); - Map thermostatgetWeeklyScheduleCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readWiFiNetworkDiagnosticsClusterRevisionCommandParams); + readWiFiNetworkDiagnosticsCommandInfo.put( + "readClusterRevisionAttribute", + readWiFiNetworkDiagnosticsClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("wiFiNetworkDiagnostics").combineCommands(readWiFiNetworkDiagnosticsCommandInfo); + Map readWindowCoveringCommandInfo = new LinkedHashMap<>(); + // read attribute + Map readWindowCoveringTypeCommandParams = new LinkedHashMap(); - CommandParameterInfo thermostatgetWeeklyScheduleCommandParameterInfo = - new CommandParameterInfo("Thermostat", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo thermostatgetWeeklyScheduledaysToReturnCommandParameterInfo = - new CommandParameterInfo("daysToReturn", int.class); - thermostatgetWeeklyScheduleCommandParams.put( - "daysToReturn", thermostatgetWeeklyScheduledaysToReturnCommandParameterInfo); - - CommandParameterInfo thermostatgetWeeklySchedulemodeToReturnCommandParameterInfo = - new CommandParameterInfo("modeToReturn", int.class); - thermostatgetWeeklyScheduleCommandParams.put( - "modeToReturn", thermostatgetWeeklySchedulemodeToReturnCommandParameterInfo); - - // Populate commands - CommandInfo thermostatgetWeeklyScheduleCommandInfo = + CommandInfo readWindowCoveringTypeAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .getWeeklySchedule( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("daysToReturn"), - (Integer) commandArguments.get("modeToReturn")); + ((ChipClusters.WindowCoveringCluster) cluster) + .readTypeAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringTypeCommandParams); + readWindowCoveringCommandInfo.put( + "readTypeAttribute", readWindowCoveringTypeAttributeCommandInfo); + Map readWindowCoveringCurrentPositionLiftCommandParams = + new LinkedHashMap(); + CommandInfo readWindowCoveringCurrentPositionLiftAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WindowCoveringCluster) cluster) + .readCurrentPositionLiftAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringCurrentPositionLiftCommandParams); + readWindowCoveringCommandInfo.put( + "readCurrentPositionLiftAttribute", + readWindowCoveringCurrentPositionLiftAttributeCommandInfo); + Map readWindowCoveringCurrentPositionTiltCommandParams = + new LinkedHashMap(); + CommandInfo readWindowCoveringCurrentPositionTiltAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WindowCoveringCluster) cluster) + .readCurrentPositionTiltAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringCurrentPositionTiltCommandParams); + readWindowCoveringCommandInfo.put( + "readCurrentPositionTiltAttribute", + readWindowCoveringCurrentPositionTiltAttributeCommandInfo); + Map readWindowCoveringConfigStatusCommandParams = + new LinkedHashMap(); + CommandInfo readWindowCoveringConfigStatusAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WindowCoveringCluster) cluster) + .readConfigStatusAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - thermostatgetWeeklyScheduleCommandParams); - thermostatClusterCommandInfoMap.put( - "getWeeklySchedule", thermostatgetWeeklyScheduleCommandInfo); - Map thermostatsetWeeklyScheduleCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringConfigStatusCommandParams); + readWindowCoveringCommandInfo.put( + "readConfigStatusAttribute", readWindowCoveringConfigStatusAttributeCommandInfo); + Map readWindowCoveringCurrentPositionLiftPercentageCommandParams = new LinkedHashMap(); - CommandParameterInfo thermostatsetWeeklyScheduleCommandParameterInfo = - new CommandParameterInfo("Thermostat", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo - thermostatsetWeeklySchedulenumberOfTransitionsForSequenceCommandParameterInfo = - new CommandParameterInfo("numberOfTransitionsForSequence", int.class); - thermostatsetWeeklyScheduleCommandParams.put( - "numberOfTransitionsForSequence", - thermostatsetWeeklySchedulenumberOfTransitionsForSequenceCommandParameterInfo); - - CommandParameterInfo thermostatsetWeeklyScheduledayOfWeekForSequenceCommandParameterInfo = - new CommandParameterInfo("dayOfWeekForSequence", int.class); - thermostatsetWeeklyScheduleCommandParams.put( - "dayOfWeekForSequence", - thermostatsetWeeklyScheduledayOfWeekForSequenceCommandParameterInfo); - - CommandParameterInfo thermostatsetWeeklySchedulemodeForSequenceCommandParameterInfo = - new CommandParameterInfo("modeForSequence", int.class); - thermostatsetWeeklyScheduleCommandParams.put( - "modeForSequence", thermostatsetWeeklySchedulemodeForSequenceCommandParameterInfo); - - CommandParameterInfo thermostatsetWeeklySchedulepayloadCommandParameterInfo = - new CommandParameterInfo("payload", int.class); - thermostatsetWeeklyScheduleCommandParams.put( - "payload", thermostatsetWeeklySchedulepayloadCommandParameterInfo); - - // Populate commands - CommandInfo thermostatsetWeeklyScheduleCommandInfo = + CommandInfo readWindowCoveringCurrentPositionLiftPercentageAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .setWeeklySchedule( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("numberOfTransitionsForSequence"), - (Integer) commandArguments.get("dayOfWeekForSequence"), - (Integer) commandArguments.get("modeForSequence"), - (Integer) commandArguments.get("payload")); + ((ChipClusters.WindowCoveringCluster) cluster) + .readCurrentPositionLiftPercentageAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - thermostatsetWeeklyScheduleCommandParams); - thermostatClusterCommandInfoMap.put( - "setWeeklySchedule", thermostatsetWeeklyScheduleCommandInfo); - Map thermostatsetpointRaiseLowerCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringCurrentPositionLiftPercentageCommandParams); + readWindowCoveringCommandInfo.put( + "readCurrentPositionLiftPercentageAttribute", + readWindowCoveringCurrentPositionLiftPercentageAttributeCommandInfo); + Map readWindowCoveringCurrentPositionTiltPercentageCommandParams = new LinkedHashMap(); - CommandParameterInfo thermostatsetpointRaiseLowerCommandParameterInfo = - new CommandParameterInfo("Thermostat", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo thermostatsetpointRaiseLowermodeCommandParameterInfo = - new CommandParameterInfo("mode", int.class); - thermostatsetpointRaiseLowerCommandParams.put( - "mode", thermostatsetpointRaiseLowermodeCommandParameterInfo); - - CommandParameterInfo thermostatsetpointRaiseLoweramountCommandParameterInfo = - new CommandParameterInfo("amount", int.class); - thermostatsetpointRaiseLowerCommandParams.put( - "amount", thermostatsetpointRaiseLoweramountCommandParameterInfo); - - // Populate commands - CommandInfo thermostatsetpointRaiseLowerCommandInfo = + CommandInfo readWindowCoveringCurrentPositionTiltPercentageAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster) - .setpointRaiseLower( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("mode"), - (Integer) commandArguments.get("amount")); + ((ChipClusters.WindowCoveringCluster) cluster) + .readCurrentPositionTiltPercentageAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - thermostatsetpointRaiseLowerCommandParams); - thermostatClusterCommandInfoMap.put( - "setpointRaiseLower", thermostatsetpointRaiseLowerCommandInfo); - // Populate cluster - ClusterInfo thermostatClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.ThermostatCluster(ptr, endpointId), - thermostatClusterCommandInfoMap); - clusterMap.put("thermostat", thermostatClusterInfo); - Map thermostatUserInterfaceConfigurationClusterCommandInfoMap = - new LinkedHashMap<>(); - // Populate cluster - ClusterInfo thermostatUserInterfaceConfigurationClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> - new ChipClusters.ThermostatUserInterfaceConfigurationCluster(ptr, endpointId), - thermostatUserInterfaceConfigurationClusterCommandInfoMap); - clusterMap.put( - "thermostatUserInterfaceConfiguration", thermostatUserInterfaceConfigurationClusterInfo); - Map threadNetworkDiagnosticsClusterCommandInfoMap = new LinkedHashMap<>(); - Map threadNetworkDiagnosticsresetCountsCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringCurrentPositionTiltPercentageCommandParams); + readWindowCoveringCommandInfo.put( + "readCurrentPositionTiltPercentageAttribute", + readWindowCoveringCurrentPositionTiltPercentageAttributeCommandInfo); + Map readWindowCoveringOperationalStatusCommandParams = new LinkedHashMap(); - CommandParameterInfo threadNetworkDiagnosticsresetCountsCommandParameterInfo = - new CommandParameterInfo( - "ThreadNetworkDiagnostics", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo threadNetworkDiagnosticsresetCountsCommandInfo = + CommandInfo readWindowCoveringOperationalStatusAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ThreadNetworkDiagnosticsCluster) cluster) - .resetCounts((DefaultClusterCallback) callback); + ((ChipClusters.WindowCoveringCluster) cluster) + .readOperationalStatusAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - threadNetworkDiagnosticsresetCountsCommandParams); - threadNetworkDiagnosticsClusterCommandInfoMap.put( - "resetCounts", threadNetworkDiagnosticsresetCountsCommandInfo); - // Populate cluster - ClusterInfo threadNetworkDiagnosticsClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.ThreadNetworkDiagnosticsCluster(ptr, endpointId), - threadNetworkDiagnosticsClusterCommandInfoMap); - clusterMap.put("threadNetworkDiagnostics", threadNetworkDiagnosticsClusterInfo); - Map wakeOnLanClusterCommandInfoMap = new LinkedHashMap<>(); - // Populate cluster - ClusterInfo wakeOnLanClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.WakeOnLanCluster(ptr, endpointId), - wakeOnLanClusterCommandInfoMap); - clusterMap.put("wakeOnLan", wakeOnLanClusterInfo); - Map wiFiNetworkDiagnosticsClusterCommandInfoMap = new LinkedHashMap<>(); - Map wiFiNetworkDiagnosticsresetCountsCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringOperationalStatusCommandParams); + readWindowCoveringCommandInfo.put( + "readOperationalStatusAttribute", readWindowCoveringOperationalStatusAttributeCommandInfo); + Map + readWindowCoveringTargetPositionLiftPercent100thsCommandParams = + new LinkedHashMap(); + CommandInfo readWindowCoveringTargetPositionLiftPercent100thsAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WindowCoveringCluster) cluster) + .readTargetPositionLiftPercent100thsAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringTargetPositionLiftPercent100thsCommandParams); + readWindowCoveringCommandInfo.put( + "readTargetPositionLiftPercent100thsAttribute", + readWindowCoveringTargetPositionLiftPercent100thsAttributeCommandInfo); + Map + readWindowCoveringTargetPositionTiltPercent100thsCommandParams = + new LinkedHashMap(); + CommandInfo readWindowCoveringTargetPositionTiltPercent100thsAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WindowCoveringCluster) cluster) + .readTargetPositionTiltPercent100thsAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringTargetPositionTiltPercent100thsCommandParams); + readWindowCoveringCommandInfo.put( + "readTargetPositionTiltPercent100thsAttribute", + readWindowCoveringTargetPositionTiltPercent100thsAttributeCommandInfo); + Map readWindowCoveringEndProductTypeCommandParams = new LinkedHashMap(); - CommandParameterInfo wiFiNetworkDiagnosticsresetCountsCommandParameterInfo = - new CommandParameterInfo( - "WiFiNetworkDiagnostics", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo wiFiNetworkDiagnosticsresetCountsCommandInfo = + CommandInfo readWindowCoveringEndProductTypeAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.WiFiNetworkDiagnosticsCluster) cluster) - .resetCounts((DefaultClusterCallback) callback); + ((ChipClusters.WindowCoveringCluster) cluster) + .readEndProductTypeAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - wiFiNetworkDiagnosticsresetCountsCommandParams); - wiFiNetworkDiagnosticsClusterCommandInfoMap.put( - "resetCounts", wiFiNetworkDiagnosticsresetCountsCommandInfo); - // Populate cluster - ClusterInfo wiFiNetworkDiagnosticsClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.WiFiNetworkDiagnosticsCluster(ptr, endpointId), - wiFiNetworkDiagnosticsClusterCommandInfoMap); - clusterMap.put("wiFiNetworkDiagnostics", wiFiNetworkDiagnosticsClusterInfo); - Map windowCoveringClusterCommandInfoMap = new LinkedHashMap<>(); - Map windowCoveringdownOrCloseCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringEndProductTypeCommandParams); + readWindowCoveringCommandInfo.put( + "readEndProductTypeAttribute", readWindowCoveringEndProductTypeAttributeCommandInfo); + Map + readWindowCoveringCurrentPositionLiftPercent100thsCommandParams = + new LinkedHashMap(); + CommandInfo readWindowCoveringCurrentPositionLiftPercent100thsAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WindowCoveringCluster) cluster) + .readCurrentPositionLiftPercent100thsAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringCurrentPositionLiftPercent100thsCommandParams); + readWindowCoveringCommandInfo.put( + "readCurrentPositionLiftPercent100thsAttribute", + readWindowCoveringCurrentPositionLiftPercent100thsAttributeCommandInfo); + Map + readWindowCoveringCurrentPositionTiltPercent100thsCommandParams = + new LinkedHashMap(); + CommandInfo readWindowCoveringCurrentPositionTiltPercent100thsAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WindowCoveringCluster) cluster) + .readCurrentPositionTiltPercent100thsAttribute( + (ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringCurrentPositionTiltPercent100thsCommandParams); + readWindowCoveringCommandInfo.put( + "readCurrentPositionTiltPercent100thsAttribute", + readWindowCoveringCurrentPositionTiltPercent100thsAttributeCommandInfo); + Map readWindowCoveringInstalledOpenLimitLiftCommandParams = new LinkedHashMap(); - CommandParameterInfo windowCoveringdownOrCloseCommandParameterInfo = - new CommandParameterInfo("WindowCovering", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo windowCoveringdownOrCloseCommandInfo = + CommandInfo readWindowCoveringInstalledOpenLimitLiftAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { ((ChipClusters.WindowCoveringCluster) cluster) - .downOrClose((DefaultClusterCallback) callback); + .readInstalledOpenLimitLiftAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - windowCoveringdownOrCloseCommandParams); - windowCoveringClusterCommandInfoMap.put("downOrClose", windowCoveringdownOrCloseCommandInfo); - Map windowCoveringgoToLiftPercentageCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringInstalledOpenLimitLiftCommandParams); + readWindowCoveringCommandInfo.put( + "readInstalledOpenLimitLiftAttribute", + readWindowCoveringInstalledOpenLimitLiftAttributeCommandInfo); + Map readWindowCoveringInstalledClosedLimitLiftCommandParams = new LinkedHashMap(); - CommandParameterInfo windowCoveringgoToLiftPercentageCommandParameterInfo = - new CommandParameterInfo("WindowCovering", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo windowCoveringgoToLiftPercentageliftPercentageValueCommandParameterInfo = - new CommandParameterInfo("liftPercentageValue", int.class); - windowCoveringgoToLiftPercentageCommandParams.put( - "liftPercentageValue", - windowCoveringgoToLiftPercentageliftPercentageValueCommandParameterInfo); - - CommandParameterInfo - windowCoveringgoToLiftPercentageliftPercent100thsValueCommandParameterInfo = - new CommandParameterInfo("liftPercent100thsValue", int.class); - windowCoveringgoToLiftPercentageCommandParams.put( - "liftPercent100thsValue", - windowCoveringgoToLiftPercentageliftPercent100thsValueCommandParameterInfo); - - // Populate commands - CommandInfo windowCoveringgoToLiftPercentageCommandInfo = + CommandInfo readWindowCoveringInstalledClosedLimitLiftAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { ((ChipClusters.WindowCoveringCluster) cluster) - .goToLiftPercentage( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("liftPercentageValue"), - (Integer) commandArguments.get("liftPercent100thsValue")); + .readInstalledClosedLimitLiftAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - windowCoveringgoToLiftPercentageCommandParams); - windowCoveringClusterCommandInfoMap.put( - "goToLiftPercentage", windowCoveringgoToLiftPercentageCommandInfo); - Map windowCoveringgoToLiftValueCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringInstalledClosedLimitLiftCommandParams); + readWindowCoveringCommandInfo.put( + "readInstalledClosedLimitLiftAttribute", + readWindowCoveringInstalledClosedLimitLiftAttributeCommandInfo); + Map readWindowCoveringInstalledOpenLimitTiltCommandParams = new LinkedHashMap(); - CommandParameterInfo windowCoveringgoToLiftValueCommandParameterInfo = - new CommandParameterInfo("WindowCovering", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo windowCoveringgoToLiftValueliftValueCommandParameterInfo = - new CommandParameterInfo("liftValue", int.class); - windowCoveringgoToLiftValueCommandParams.put( - "liftValue", windowCoveringgoToLiftValueliftValueCommandParameterInfo); - - // Populate commands - CommandInfo windowCoveringgoToLiftValueCommandInfo = + CommandInfo readWindowCoveringInstalledOpenLimitTiltAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { ((ChipClusters.WindowCoveringCluster) cluster) - .goToLiftValue( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("liftValue")); + .readInstalledOpenLimitTiltAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - windowCoveringgoToLiftValueCommandParams); - windowCoveringClusterCommandInfoMap.put( - "goToLiftValue", windowCoveringgoToLiftValueCommandInfo); - Map windowCoveringgoToTiltPercentageCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringInstalledOpenLimitTiltCommandParams); + readWindowCoveringCommandInfo.put( + "readInstalledOpenLimitTiltAttribute", + readWindowCoveringInstalledOpenLimitTiltAttributeCommandInfo); + Map readWindowCoveringInstalledClosedLimitTiltCommandParams = new LinkedHashMap(); - CommandParameterInfo windowCoveringgoToTiltPercentageCommandParameterInfo = - new CommandParameterInfo("WindowCovering", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo windowCoveringgoToTiltPercentagetiltPercentageValueCommandParameterInfo = - new CommandParameterInfo("tiltPercentageValue", int.class); - windowCoveringgoToTiltPercentageCommandParams.put( - "tiltPercentageValue", - windowCoveringgoToTiltPercentagetiltPercentageValueCommandParameterInfo); - - CommandParameterInfo - windowCoveringgoToTiltPercentagetiltPercent100thsValueCommandParameterInfo = - new CommandParameterInfo("tiltPercent100thsValue", int.class); - windowCoveringgoToTiltPercentageCommandParams.put( - "tiltPercent100thsValue", - windowCoveringgoToTiltPercentagetiltPercent100thsValueCommandParameterInfo); - - // Populate commands - CommandInfo windowCoveringgoToTiltPercentageCommandInfo = + CommandInfo readWindowCoveringInstalledClosedLimitTiltAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { ((ChipClusters.WindowCoveringCluster) cluster) - .goToTiltPercentage( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("tiltPercentageValue"), - (Integer) commandArguments.get("tiltPercent100thsValue")); + .readInstalledClosedLimitTiltAttribute( + (ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - windowCoveringgoToTiltPercentageCommandParams); - windowCoveringClusterCommandInfoMap.put( - "goToTiltPercentage", windowCoveringgoToTiltPercentageCommandInfo); - Map windowCoveringgoToTiltValueCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringInstalledClosedLimitTiltCommandParams); + readWindowCoveringCommandInfo.put( + "readInstalledClosedLimitTiltAttribute", + readWindowCoveringInstalledClosedLimitTiltAttributeCommandInfo); + Map readWindowCoveringModeCommandParams = new LinkedHashMap(); - CommandParameterInfo windowCoveringgoToTiltValueCommandParameterInfo = - new CommandParameterInfo("WindowCovering", ChipClusters.DefaultClusterCallback.class); - CommandParameterInfo windowCoveringgoToTiltValuetiltValueCommandParameterInfo = - new CommandParameterInfo("tiltValue", int.class); - windowCoveringgoToTiltValueCommandParams.put( - "tiltValue", windowCoveringgoToTiltValuetiltValueCommandParameterInfo); - - // Populate commands - CommandInfo windowCoveringgoToTiltValueCommandInfo = + CommandInfo readWindowCoveringModeAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { ((ChipClusters.WindowCoveringCluster) cluster) - .goToTiltValue( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("tiltValue")); + .readModeAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - windowCoveringgoToTiltValueCommandParams); - windowCoveringClusterCommandInfoMap.put( - "goToTiltValue", windowCoveringgoToTiltValueCommandInfo); - Map windowCoveringstopMotionCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringModeCommandParams); + readWindowCoveringCommandInfo.put( + "readModeAttribute", readWindowCoveringModeAttributeCommandInfo); + Map readWindowCoveringSafetyStatusCommandParams = new LinkedHashMap(); - CommandParameterInfo windowCoveringstopMotionCommandParameterInfo = - new CommandParameterInfo("WindowCovering", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo windowCoveringstopMotionCommandInfo = + CommandInfo readWindowCoveringSafetyStatusAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { ((ChipClusters.WindowCoveringCluster) cluster) - .stopMotion((DefaultClusterCallback) callback); + .readSafetyStatusAttribute((ChipClusters.IntegerAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - windowCoveringstopMotionCommandParams); - windowCoveringClusterCommandInfoMap.put("stopMotion", windowCoveringstopMotionCommandInfo); - Map windowCoveringupOrOpenCommandParams = + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringSafetyStatusCommandParams); + readWindowCoveringCommandInfo.put( + "readSafetyStatusAttribute", readWindowCoveringSafetyStatusAttributeCommandInfo); + Map readWindowCoveringFeatureMapCommandParams = new LinkedHashMap(); - CommandParameterInfo windowCoveringupOrOpenCommandParameterInfo = - new CommandParameterInfo("WindowCovering", ChipClusters.DefaultClusterCallback.class); - // Populate commands - CommandInfo windowCoveringupOrOpenCommandInfo = + CommandInfo readWindowCoveringFeatureMapAttributeCommandInfo = new CommandInfo( (cluster, callback, commandArguments) -> { ((ChipClusters.WindowCoveringCluster) cluster) - .upOrOpen((DefaultClusterCallback) callback); + .readFeatureMapAttribute((ChipClusters.LongAttributeCallback) callback); }, - () -> new DelegatedDefaultClusterCallback(), - windowCoveringupOrOpenCommandParams); - windowCoveringClusterCommandInfoMap.put("upOrOpen", windowCoveringupOrOpenCommandInfo); - // Populate cluster - ClusterInfo windowCoveringClusterInfo = - new ClusterInfo( - (ptr, endpointId) -> new ChipClusters.WindowCoveringCluster(ptr, endpointId), - windowCoveringClusterCommandInfoMap); - clusterMap.put("windowCovering", windowCoveringClusterInfo); + () -> new DelegatedLongAttributeCallback(), + readWindowCoveringFeatureMapCommandParams); + readWindowCoveringCommandInfo.put( + "readFeatureMapAttribute", readWindowCoveringFeatureMapAttributeCommandInfo); + Map readWindowCoveringClusterRevisionCommandParams = + new LinkedHashMap(); + CommandInfo readWindowCoveringClusterRevisionAttributeCommandInfo = + new CommandInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.WindowCoveringCluster) cluster) + .readClusterRevisionAttribute((ChipClusters.IntegerAttributeCallback) callback); + }, + () -> new DelegatedIntegerAttributeCallback(), + readWindowCoveringClusterRevisionCommandParams); + readWindowCoveringCommandInfo.put( + "readClusterRevisionAttribute", readWindowCoveringClusterRevisionAttributeCommandInfo); + // combine the read Attribute into the original commands + clusterMap.get("windowCovering").combineCommands(readWindowCoveringCommandInfo); return clusterMap; } }