diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/AddressUpdateFragment.kt b/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/AddressUpdateFragment.kt index 5fd570b628c24e..1bb841b81965b3 100644 --- a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/AddressUpdateFragment.kt +++ b/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/AddressUpdateFragment.kt @@ -7,6 +7,7 @@ import android.view.ViewGroup import android.widget.Toast import androidx.fragment.app.Fragment import chip.devicecontroller.ChipDeviceController +import chip.devicecontroller.ChipIdLookup import com.google.chip.chiptool.ChipClient import com.google.chip.chiptool.R import com.google.chip.chiptool.util.DeviceIdUtil diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt b/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt index f79eb8a8466566..d17bff19d2e1ab 100644 --- a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt +++ b/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt @@ -11,6 +11,7 @@ import android.widget.EditText import androidx.fragment.app.Fragment import androidx.lifecycle.lifecycleScope import chip.devicecontroller.ChipDeviceController +import chip.devicecontroller.ChipIdLookup import chip.devicecontroller.ReportCallback import chip.devicecontroller.SubscriptionEstablishedCallback import chip.devicecontroller.model.ChipAttributePath @@ -18,6 +19,7 @@ import chip.devicecontroller.model.ChipPathId import chip.devicecontroller.model.NodeState import com.google.chip.chiptool.ChipClient import com.google.chip.chiptool.R +import java.lang.StringBuilder import kotlinx.android.synthetic.main.wildcard_fragment.attributeIdEd import kotlinx.android.synthetic.main.wildcard_fragment.clusterIdEd import kotlinx.android.synthetic.main.wildcard_fragment.endpointIdEd @@ -40,10 +42,12 @@ class WildcardFragment : Fragment() { Log.e(TAG, "Report error for $attributePath: $ex") } - override fun onReport(nodeData: NodeState) { + override fun onReport(nodeState: NodeState) { Log.i(TAG, "Received wildcard report") - Log.i(TAG, nodeData.toString()) - requireActivity().runOnUiThread { outputTv.text = nodeData.toString() } + + val debugString = nodeStateToDebugString(nodeState) + Log.i(TAG, debugString) + requireActivity().runOnUiThread { outputTv.text = debugString } } } @@ -62,6 +66,23 @@ class WildcardFragment : Fragment() { } } + private fun nodeStateToDebugString(nodeState: NodeState): String { + val stringBuilder = StringBuilder() + nodeState.endpointStates.forEach { (endpointId, endpointState) -> + stringBuilder.append("Endpoint $endpointId: {\n") + endpointState.clusterStates.forEach { (clusterId, clusterState) -> + stringBuilder.append("\t${ChipIdLookup.clusterIdToName(clusterId)}Cluster: {\n") + clusterState.attributeStates.forEach { (attributeId, attributeState) -> + val attributeName = ChipIdLookup.attributeIdToName(clusterId, attributeId) + stringBuilder.append("\t\t$attributeName: ${attributeState.value}\n") + } + stringBuilder.append("\t}\n") + } + stringBuilder.append("}\n") + } + return stringBuilder.toString() + } + private suspend fun subscribe(minInterval: Int, maxInterval: Int) { val subscriptionEstablishedCallback = SubscriptionEstablishedCallback { Log.i(TAG, "Subscription to device established") } diff --git a/src/controller/java/BUILD.gn b/src/controller/java/BUILD.gn index 1a1e5588ea22b2..88240abbf00291 100644 --- a/src/controller/java/BUILD.gn +++ b/src/controller/java/BUILD.gn @@ -98,6 +98,7 @@ android_library("java") { "src/chip/devicecontroller/model/EndpointState.java", "src/chip/devicecontroller/model/NodeState.java", "zap-generated/chip/devicecontroller/ChipClusters.java", + "zap-generated/chip/devicecontroller/ChipIdLookup.java", "zap-generated/chip/devicecontroller/ChipStructs.java", "zap-generated/chip/devicecontroller/ClusterInfoMapping.java", "zap-generated/chip/devicecontroller/ClusterReadMapping.java", diff --git a/src/controller/java/templates/ChipIdLookup-java.zapt b/src/controller/java/templates/ChipIdLookup-java.zapt new file mode 100644 index 00000000000000..fc9e21fb7ca59e --- /dev/null +++ b/src/controller/java/templates/ChipIdLookup-java.zapt @@ -0,0 +1,38 @@ +{{> header}} +{{#if (chip_has_client_clusters)}} + +package chip.devicecontroller; + +public final class ChipIdLookup { + /** + * Translates cluster ID to a cluster name in upper camel case. If no matching + * ID is found, returns an empty string. + */ + public static String clusterIdToName(long clusterId) { + {{#chip_client_clusters}} + if (clusterId == {{code}}L) { + return "{{asUpperCamelCase name}}"; + } + {{/chip_client_clusters}} + return ""; + } + + /** + * Translates cluster ID and attribute ID to an attribute name in upper camel case. + * If no matching IDs are found, returns an empty string. + */ + public static String attributeIdToName(long clusterId, long attributeId) { + {{#chip_client_clusters}} + if (clusterId == {{code}}L) { + {{#chip_server_cluster_attributes}} + if (attributeId == {{code}}L) { + return "{{asUpperCamelCase name}}"; + } + {{/chip_server_cluster_attributes}} + return ""; + } + {{/chip_client_clusters}} + return ""; + } +} +{{/if}} \ No newline at end of file diff --git a/src/controller/java/templates/templates.json b/src/controller/java/templates/templates.json index d2bc37ed6022cd..8c513acad7370e 100644 --- a/src/controller/java/templates/templates.json +++ b/src/controller/java/templates/templates.json @@ -79,6 +79,11 @@ "name": "CHIP ZCL API for Java", "output": "src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java" }, + { + "path": "ChipIdLookup-java.zapt", + "name": "Generate utilities for looking up cluster/attribute IDs", + "output": "src/controller/java/zap-generated/chip/devicecontroller/ChipIdLookup.java" + }, { "path": "ClusterInfo-java.zapt", "name": "Cluster information mapping for Java", diff --git a/src/controller/java/zap-generated/chip/devicecontroller/ChipIdLookup.java b/src/controller/java/zap-generated/chip/devicecontroller/ChipIdLookup.java new file mode 100644 index 00000000000000..821c1600aef84b --- /dev/null +++ b/src/controller/java/zap-generated/chip/devicecontroller/ChipIdLookup.java @@ -0,0 +1,2693 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// THIS FILE IS GENERATED BY ZAP + +package chip.devicecontroller; + +public final class ChipIdLookup { + /** + * Translates cluster ID to a cluster name in upper camel case. If no matching ID is found, + * returns an empty string. + */ + public static String clusterIdToName(long clusterId) { + if (clusterId == 31L) { + return "AccessControl"; + } + if (clusterId == 1294L) { + return "AccountLogin"; + } + if (clusterId == 60L) { + return "AdministratorCommissioning"; + } + if (clusterId == 1293L) { + return "ApplicationBasic"; + } + if (clusterId == 1292L) { + return "ApplicationLauncher"; + } + if (clusterId == 1291L) { + return "AudioOutput"; + } + if (clusterId == 259L) { + return "BarrierControl"; + } + if (clusterId == 40L) { + return "Basic"; + } + if (clusterId == 15L) { + return "BinaryInputBasic"; + } + if (clusterId == 30L) { + return "Binding"; + } + if (clusterId == 69L) { + return "BooleanState"; + } + if (clusterId == 37L) { + return "BridgedActions"; + } + if (clusterId == 57L) { + return "BridgedDeviceBasic"; + } + if (clusterId == 1284L) { + return "Channel"; + } + if (clusterId == 768L) { + return "ColorControl"; + } + if (clusterId == 1290L) { + return "ContentLauncher"; + } + if (clusterId == 29L) { + return "Descriptor"; + } + if (clusterId == 50L) { + return "DiagnosticLogs"; + } + if (clusterId == 257L) { + return "DoorLock"; + } + if (clusterId == 2820L) { + return "ElectricalMeasurement"; + } + if (clusterId == 55L) { + return "EthernetNetworkDiagnostics"; + } + if (clusterId == 64L) { + return "FixedLabel"; + } + if (clusterId == 1028L) { + return "FlowMeasurement"; + } + if (clusterId == 48L) { + return "GeneralCommissioning"; + } + if (clusterId == 51L) { + return "GeneralDiagnostics"; + } + if (clusterId == 63L) { + return "GroupKeyManagement"; + } + if (clusterId == 4L) { + return "Groups"; + } + if (clusterId == 3L) { + return "Identify"; + } + if (clusterId == 1024L) { + return "IlluminanceMeasurement"; + } + if (clusterId == 1289L) { + return "KeypadInput"; + } + if (clusterId == 8L) { + return "LevelControl"; + } + if (clusterId == 43L) { + return "LocalizationConfiguration"; + } + if (clusterId == 1288L) { + return "LowPower"; + } + if (clusterId == 1287L) { + return "MediaInput"; + } + if (clusterId == 1286L) { + return "MediaPlayback"; + } + if (clusterId == 80L) { + return "ModeSelect"; + } + if (clusterId == 49L) { + return "NetworkCommissioning"; + } + if (clusterId == 41L) { + return "OtaSoftwareUpdateProvider"; + } + if (clusterId == 42L) { + return "OtaSoftwareUpdateRequestor"; + } + if (clusterId == 1030L) { + return "OccupancySensing"; + } + if (clusterId == 6L) { + return "OnOff"; + } + if (clusterId == 7L) { + return "OnOffSwitchConfiguration"; + } + if (clusterId == 62L) { + return "OperationalCredentials"; + } + if (clusterId == 47L) { + return "PowerSource"; + } + if (clusterId == 46L) { + return "PowerSourceConfiguration"; + } + if (clusterId == 1027L) { + return "PressureMeasurement"; + } + if (clusterId == 512L) { + return "PumpConfigurationAndControl"; + } + if (clusterId == 1029L) { + return "RelativeHumidityMeasurement"; + } + if (clusterId == 5L) { + return "Scenes"; + } + if (clusterId == 52L) { + return "SoftwareDiagnostics"; + } + if (clusterId == 59L) { + return "Switch"; + } + if (clusterId == 1285L) { + return "TargetNavigator"; + } + if (clusterId == 1026L) { + return "TemperatureMeasurement"; + } + if (clusterId == 1295L) { + return "TestCluster"; + } + if (clusterId == 513L) { + return "Thermostat"; + } + if (clusterId == 516L) { + return "ThermostatUserInterfaceConfiguration"; + } + if (clusterId == 53L) { + return "ThreadNetworkDiagnostics"; + } + if (clusterId == 44L) { + return "TimeFormatLocalization"; + } + if (clusterId == 45L) { + return "UnitLocalization"; + } + if (clusterId == 65L) { + return "UserLabel"; + } + if (clusterId == 1283L) { + return "WakeOnLan"; + } + if (clusterId == 54L) { + return "WiFiNetworkDiagnostics"; + } + if (clusterId == 258L) { + return "WindowCovering"; + } + return ""; + } + + /** + * Translates cluster ID and attribute ID to an attribute name in upper camel case. If no matching + * IDs are found, returns an empty string. + */ + public static String attributeIdToName(long clusterId, long attributeId) { + if (clusterId == 31L) { + if (attributeId == 0L) { + return "Acl"; + } + if (attributeId == 1L) { + return "Extension"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1294L) { + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 60L) { + if (attributeId == 0L) { + return "WindowStatus"; + } + if (attributeId == 1L) { + return "AdminFabricIndex"; + } + if (attributeId == 2L) { + return "AdminVendorId"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1293L) { + if (attributeId == 0L) { + return "VendorName"; + } + if (attributeId == 1L) { + return "VendorID"; + } + if (attributeId == 2L) { + return "ApplicationName"; + } + if (attributeId == 3L) { + return "ProductID"; + } + if (attributeId == 4L) { + return "Application"; + } + if (attributeId == 5L) { + return "Status"; + } + if (attributeId == 6L) { + return "ApplicationVersion"; + } + if (attributeId == 7L) { + return "AllowedVendorList"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1292L) { + if (attributeId == 0L) { + return "CatalogList"; + } + if (attributeId == 1L) { + return "CurrentApp"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1291L) { + if (attributeId == 0L) { + return "OutputList"; + } + if (attributeId == 1L) { + return "CurrentOutput"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 259L) { + if (attributeId == 1L) { + return "BarrierMovingState"; + } + if (attributeId == 2L) { + return "BarrierSafetyStatus"; + } + if (attributeId == 3L) { + return "BarrierCapabilities"; + } + if (attributeId == 10L) { + return "BarrierPosition"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 40L) { + if (attributeId == 0L) { + return "DataModelRevision"; + } + if (attributeId == 1L) { + return "VendorName"; + } + if (attributeId == 2L) { + return "VendorID"; + } + if (attributeId == 3L) { + return "ProductName"; + } + if (attributeId == 4L) { + return "ProductID"; + } + if (attributeId == 5L) { + return "NodeLabel"; + } + if (attributeId == 6L) { + return "Location"; + } + if (attributeId == 7L) { + return "HardwareVersion"; + } + if (attributeId == 8L) { + return "HardwareVersionString"; + } + if (attributeId == 9L) { + return "SoftwareVersion"; + } + if (attributeId == 10L) { + return "SoftwareVersionString"; + } + if (attributeId == 11L) { + return "ManufacturingDate"; + } + if (attributeId == 12L) { + return "PartNumber"; + } + if (attributeId == 13L) { + return "ProductURL"; + } + if (attributeId == 14L) { + return "ProductLabel"; + } + if (attributeId == 15L) { + return "SerialNumber"; + } + if (attributeId == 16L) { + return "LocalConfigDisabled"; + } + if (attributeId == 17L) { + return "Reachable"; + } + if (attributeId == 18L) { + return "UniqueID"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 15L) { + if (attributeId == 81L) { + return "OutOfService"; + } + if (attributeId == 85L) { + return "PresentValue"; + } + if (attributeId == 111L) { + return "StatusFlags"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 30L) { + if (attributeId == 0L) { + return "Binding"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 69L) { + if (attributeId == 0L) { + return "StateValue"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 37L) { + if (attributeId == 0L) { + return "ActionList"; + } + if (attributeId == 1L) { + return "EndpointList"; + } + if (attributeId == 2L) { + return "SetupUrl"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 57L) { + if (attributeId == 1L) { + return "VendorName"; + } + if (attributeId == 2L) { + return "VendorID"; + } + if (attributeId == 3L) { + return "ProductName"; + } + if (attributeId == 5L) { + return "NodeLabel"; + } + if (attributeId == 7L) { + return "HardwareVersion"; + } + if (attributeId == 8L) { + return "HardwareVersionString"; + } + if (attributeId == 9L) { + return "SoftwareVersion"; + } + if (attributeId == 10L) { + return "SoftwareVersionString"; + } + if (attributeId == 11L) { + return "ManufacturingDate"; + } + if (attributeId == 12L) { + return "PartNumber"; + } + if (attributeId == 13L) { + return "ProductURL"; + } + if (attributeId == 14L) { + return "ProductLabel"; + } + if (attributeId == 15L) { + return "SerialNumber"; + } + if (attributeId == 17L) { + return "Reachable"; + } + if (attributeId == 18L) { + return "UniqueID"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1284L) { + if (attributeId == 0L) { + return "ChannelList"; + } + if (attributeId == 1L) { + return "Lineup"; + } + if (attributeId == 2L) { + return "CurrentChannel"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 768L) { + if (attributeId == 0L) { + return "CurrentHue"; + } + if (attributeId == 1L) { + return "CurrentSaturation"; + } + if (attributeId == 2L) { + return "RemainingTime"; + } + if (attributeId == 3L) { + return "CurrentX"; + } + if (attributeId == 4L) { + return "CurrentY"; + } + if (attributeId == 5L) { + return "DriftCompensation"; + } + if (attributeId == 6L) { + return "CompensationText"; + } + if (attributeId == 7L) { + return "ColorTemperature"; + } + if (attributeId == 8L) { + return "ColorMode"; + } + if (attributeId == 15L) { + return "ColorControlOptions"; + } + if (attributeId == 16L) { + return "NumberOfPrimaries"; + } + if (attributeId == 17L) { + return "Primary1X"; + } + if (attributeId == 18L) { + return "Primary1Y"; + } + if (attributeId == 19L) { + return "Primary1Intensity"; + } + if (attributeId == 21L) { + return "Primary2X"; + } + if (attributeId == 22L) { + return "Primary2Y"; + } + if (attributeId == 23L) { + return "Primary2Intensity"; + } + if (attributeId == 25L) { + return "Primary3X"; + } + if (attributeId == 26L) { + return "Primary3Y"; + } + if (attributeId == 27L) { + return "Primary3Intensity"; + } + if (attributeId == 32L) { + return "Primary4X"; + } + if (attributeId == 33L) { + return "Primary4Y"; + } + if (attributeId == 34L) { + return "Primary4Intensity"; + } + if (attributeId == 36L) { + return "Primary5X"; + } + if (attributeId == 37L) { + return "Primary5Y"; + } + if (attributeId == 38L) { + return "Primary5Intensity"; + } + if (attributeId == 40L) { + return "Primary6X"; + } + if (attributeId == 41L) { + return "Primary6Y"; + } + if (attributeId == 42L) { + return "Primary6Intensity"; + } + if (attributeId == 48L) { + return "WhitePointX"; + } + if (attributeId == 49L) { + return "WhitePointY"; + } + if (attributeId == 50L) { + return "ColorPointRX"; + } + if (attributeId == 51L) { + return "ColorPointRY"; + } + if (attributeId == 52L) { + return "ColorPointRIntensity"; + } + if (attributeId == 54L) { + return "ColorPointGX"; + } + if (attributeId == 55L) { + return "ColorPointGY"; + } + if (attributeId == 56L) { + return "ColorPointGIntensity"; + } + if (attributeId == 58L) { + return "ColorPointBX"; + } + if (attributeId == 59L) { + return "ColorPointBY"; + } + if (attributeId == 60L) { + return "ColorPointBIntensity"; + } + if (attributeId == 16384L) { + return "EnhancedCurrentHue"; + } + if (attributeId == 16385L) { + return "EnhancedColorMode"; + } + if (attributeId == 16386L) { + return "ColorLoopActive"; + } + if (attributeId == 16387L) { + return "ColorLoopDirection"; + } + if (attributeId == 16388L) { + return "ColorLoopTime"; + } + if (attributeId == 16389L) { + return "ColorLoopStartEnhancedHue"; + } + if (attributeId == 16390L) { + return "ColorLoopStoredEnhancedHue"; + } + if (attributeId == 16394L) { + return "ColorCapabilities"; + } + if (attributeId == 16395L) { + return "ColorTempPhysicalMin"; + } + if (attributeId == 16396L) { + return "ColorTempPhysicalMax"; + } + if (attributeId == 16397L) { + return "CoupleColorTempToLevelMinMireds"; + } + if (attributeId == 16400L) { + return "StartUpColorTemperatureMireds"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1290L) { + if (attributeId == 0L) { + return "AcceptHeader"; + } + if (attributeId == 1L) { + return "SupportedStreamingProtocols"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 29L) { + if (attributeId == 0L) { + return "DeviceList"; + } + if (attributeId == 1L) { + return "ServerList"; + } + if (attributeId == 2L) { + return "ClientList"; + } + if (attributeId == 3L) { + return "PartsList"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 50L) { + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + return ""; + } + if (clusterId == 257L) { + if (attributeId == 0L) { + return "LockState"; + } + if (attributeId == 1L) { + return "LockType"; + } + if (attributeId == 2L) { + return "ActuatorEnabled"; + } + if (attributeId == 3L) { + return "DoorState"; + } + if (attributeId == 17L) { + return "NumberOfTotalUsersSupported"; + } + if (attributeId == 18L) { + return "NumberOfPINUsersSupported"; + } + if (attributeId == 19L) { + return "NumberOfRFIDUsersSupported"; + } + if (attributeId == 20L) { + return "NumberOfWeekDaySchedulesSupportedPerUser"; + } + if (attributeId == 21L) { + return "NumberOfYearDaySchedulesSupportedPerUser"; + } + if (attributeId == 23L) { + return "MaxPINCodeLength"; + } + if (attributeId == 24L) { + return "MinPINCodeLength"; + } + if (attributeId == 25L) { + return "MaxRFIDCodeLength"; + } + if (attributeId == 26L) { + return "MinRFIDCodeLength"; + } + if (attributeId == 33L) { + return "Language"; + } + if (attributeId == 35L) { + return "AutoRelockTime"; + } + if (attributeId == 36L) { + return "SoundVolume"; + } + if (attributeId == 37L) { + return "OperatingMode"; + } + if (attributeId == 38L) { + return "SupportedOperatingModes"; + } + if (attributeId == 41L) { + return "EnableOneTouchLocking"; + } + if (attributeId == 43L) { + return "EnablePrivacyModeButton"; + } + if (attributeId == 48L) { + return "WrongCodeEntryLimit"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 2820L) { + if (attributeId == 0L) { + return "MeasurementType"; + } + if (attributeId == 772L) { + return "TotalActivePower"; + } + if (attributeId == 1285L) { + return "RmsVoltage"; + } + if (attributeId == 1286L) { + return "RmsVoltageMin"; + } + if (attributeId == 1287L) { + return "RmsVoltageMax"; + } + if (attributeId == 1288L) { + return "RmsCurrent"; + } + if (attributeId == 1289L) { + return "RmsCurrentMin"; + } + if (attributeId == 1290L) { + return "RmsCurrentMax"; + } + if (attributeId == 1291L) { + return "ActivePower"; + } + if (attributeId == 1292L) { + return "ActivePowerMin"; + } + if (attributeId == 1293L) { + return "ActivePowerMax"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 55L) { + if (attributeId == 0L) { + return "PHYRate"; + } + if (attributeId == 1L) { + return "FullDuplex"; + } + if (attributeId == 2L) { + return "PacketRxCount"; + } + if (attributeId == 3L) { + return "PacketTxCount"; + } + if (attributeId == 4L) { + return "TxErrCount"; + } + if (attributeId == 5L) { + return "CollisionCount"; + } + if (attributeId == 6L) { + return "OverrunCount"; + } + if (attributeId == 7L) { + return "CarrierDetect"; + } + if (attributeId == 8L) { + return "TimeSinceReset"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65532L) { + return "FeatureMap"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 64L) { + if (attributeId == 0L) { + return "LabelList"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1028L) { + if (attributeId == 0L) { + return "MeasuredValue"; + } + if (attributeId == 1L) { + return "MinMeasuredValue"; + } + if (attributeId == 2L) { + return "MaxMeasuredValue"; + } + if (attributeId == 3L) { + return "Tolerance"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 48L) { + if (attributeId == 0L) { + return "Breadcrumb"; + } + if (attributeId == 1L) { + return "BasicCommissioningInfo"; + } + if (attributeId == 2L) { + return "RegulatoryConfig"; + } + if (attributeId == 3L) { + return "LocationCapability"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 51L) { + if (attributeId == 0L) { + return "NetworkInterfaces"; + } + if (attributeId == 1L) { + return "RebootCount"; + } + if (attributeId == 2L) { + return "UpTime"; + } + if (attributeId == 3L) { + return "TotalOperationalHours"; + } + if (attributeId == 4L) { + return "BootReasons"; + } + if (attributeId == 5L) { + return "ActiveHardwareFaults"; + } + if (attributeId == 6L) { + return "ActiveRadioFaults"; + } + if (attributeId == 7L) { + return "ActiveNetworkFaults"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 63L) { + if (attributeId == 0L) { + return "GroupKeyMap"; + } + if (attributeId == 1L) { + return "GroupTable"; + } + if (attributeId == 2L) { + return "MaxGroupsPerFabric"; + } + if (attributeId == 3L) { + return "MaxGroupKeysPerFabric"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 4L) { + if (attributeId == 0L) { + return "NameSupport"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 3L) { + if (attributeId == 0L) { + return "IdentifyTime"; + } + if (attributeId == 1L) { + return "IdentifyType"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1024L) { + if (attributeId == 0L) { + return "MeasuredValue"; + } + if (attributeId == 1L) { + return "MinMeasuredValue"; + } + if (attributeId == 2L) { + return "MaxMeasuredValue"; + } + if (attributeId == 3L) { + return "Tolerance"; + } + if (attributeId == 4L) { + return "LightSensorType"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1289L) { + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 8L) { + if (attributeId == 0L) { + return "CurrentLevel"; + } + if (attributeId == 1L) { + return "RemainingTime"; + } + if (attributeId == 2L) { + return "MinLevel"; + } + if (attributeId == 3L) { + return "MaxLevel"; + } + if (attributeId == 4L) { + return "CurrentFrequency"; + } + if (attributeId == 5L) { + return "MinFrequency"; + } + if (attributeId == 6L) { + return "MaxFrequency"; + } + if (attributeId == 15L) { + return "Options"; + } + if (attributeId == 16L) { + return "OnOffTransitionTime"; + } + if (attributeId == 17L) { + return "OnLevel"; + } + if (attributeId == 18L) { + return "OnTransitionTime"; + } + if (attributeId == 19L) { + return "OffTransitionTime"; + } + if (attributeId == 20L) { + return "DefaultMoveRate"; + } + if (attributeId == 16384L) { + return "StartUpCurrentLevel"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65532L) { + return "FeatureMap"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 43L) { + if (attributeId == 1L) { + return "ActiveLocale"; + } + if (attributeId == 2L) { + return "SupportedLocales"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1288L) { + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1287L) { + if (attributeId == 0L) { + return "InputList"; + } + if (attributeId == 1L) { + return "CurrentInput"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1286L) { + if (attributeId == 0L) { + return "CurrentState"; + } + if (attributeId == 1L) { + return "StartTime"; + } + if (attributeId == 2L) { + return "Duration"; + } + if (attributeId == 3L) { + return "SampledPosition"; + } + if (attributeId == 4L) { + return "PlaybackSpeed"; + } + if (attributeId == 5L) { + return "SeekRangeEnd"; + } + if (attributeId == 6L) { + return "SeekRangeStart"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 80L) { + if (attributeId == 0L) { + return "CurrentMode"; + } + if (attributeId == 1L) { + return "SupportedModes"; + } + if (attributeId == 2L) { + return "OnMode"; + } + if (attributeId == 3L) { + return "StartUpMode"; + } + if (attributeId == 4L) { + return "Description"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 49L) { + if (attributeId == 0L) { + return "MaxNetworks"; + } + if (attributeId == 1L) { + return "Networks"; + } + if (attributeId == 2L) { + return "ScanMaxTimeSeconds"; + } + if (attributeId == 3L) { + return "ConnectMaxTimeSeconds"; + } + if (attributeId == 4L) { + return "InterfaceEnabled"; + } + if (attributeId == 5L) { + return "LastNetworkingStatus"; + } + if (attributeId == 6L) { + return "LastNetworkID"; + } + if (attributeId == 7L) { + return "LastConnectErrorValue"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65532L) { + return "FeatureMap"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 41L) { + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 42L) { + if (attributeId == 0L) { + return "DefaultOtaProviders"; + } + if (attributeId == 1L) { + return "UpdatePossible"; + } + if (attributeId == 2L) { + return "UpdateState"; + } + if (attributeId == 3L) { + return "UpdateStateProgress"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1030L) { + if (attributeId == 0L) { + return "Occupancy"; + } + if (attributeId == 1L) { + return "OccupancySensorType"; + } + if (attributeId == 2L) { + return "OccupancySensorTypeBitmap"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 6L) { + if (attributeId == 0L) { + return "OnOff"; + } + if (attributeId == 16384L) { + return "GlobalSceneControl"; + } + if (attributeId == 16385L) { + return "OnTime"; + } + if (attributeId == 16386L) { + return "OffWaitTime"; + } + if (attributeId == 16387L) { + return "StartUpOnOff"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65532L) { + return "FeatureMap"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 7L) { + if (attributeId == 0L) { + return "SwitchType"; + } + if (attributeId == 16L) { + return "SwitchActions"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 62L) { + if (attributeId == 0L) { + return "NOCs"; + } + if (attributeId == 1L) { + return "Fabrics"; + } + if (attributeId == 2L) { + return "SupportedFabrics"; + } + if (attributeId == 3L) { + return "CommissionedFabrics"; + } + if (attributeId == 4L) { + return "TrustedRootCertificates"; + } + if (attributeId == 5L) { + return "CurrentFabricIndex"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 47L) { + if (attributeId == 0L) { + return "Status"; + } + if (attributeId == 1L) { + return "Order"; + } + if (attributeId == 2L) { + return "Description"; + } + if (attributeId == 11L) { + return "BatteryVoltage"; + } + if (attributeId == 12L) { + return "BatteryPercentRemaining"; + } + if (attributeId == 13L) { + return "BatteryTimeRemaining"; + } + if (attributeId == 14L) { + return "BatteryChargeLevel"; + } + if (attributeId == 18L) { + return "ActiveBatteryFaults"; + } + if (attributeId == 26L) { + return "BatteryChargeState"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65532L) { + return "FeatureMap"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 46L) { + if (attributeId == 0L) { + return "Sources"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1027L) { + if (attributeId == 0L) { + return "MeasuredValue"; + } + if (attributeId == 1L) { + return "MinMeasuredValue"; + } + if (attributeId == 2L) { + return "MaxMeasuredValue"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 512L) { + if (attributeId == 0L) { + return "MaxPressure"; + } + if (attributeId == 1L) { + return "MaxSpeed"; + } + if (attributeId == 2L) { + return "MaxFlow"; + } + if (attributeId == 3L) { + return "MinConstPressure"; + } + if (attributeId == 4L) { + return "MaxConstPressure"; + } + if (attributeId == 5L) { + return "MinCompPressure"; + } + if (attributeId == 6L) { + return "MaxCompPressure"; + } + if (attributeId == 7L) { + return "MinConstSpeed"; + } + if (attributeId == 8L) { + return "MaxConstSpeed"; + } + if (attributeId == 9L) { + return "MinConstFlow"; + } + if (attributeId == 10L) { + return "MaxConstFlow"; + } + if (attributeId == 11L) { + return "MinConstTemp"; + } + if (attributeId == 12L) { + return "MaxConstTemp"; + } + if (attributeId == 16L) { + return "PumpStatus"; + } + if (attributeId == 17L) { + return "EffectiveOperationMode"; + } + if (attributeId == 18L) { + return "EffectiveControlMode"; + } + if (attributeId == 19L) { + return "Capacity"; + } + if (attributeId == 20L) { + return "Speed"; + } + if (attributeId == 21L) { + return "LifetimeRunningHours"; + } + if (attributeId == 22L) { + return "Power"; + } + if (attributeId == 23L) { + return "LifetimeEnergyConsumed"; + } + if (attributeId == 32L) { + return "OperationMode"; + } + if (attributeId == 33L) { + return "ControlMode"; + } + if (attributeId == 34L) { + return "AlarmMask"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65532L) { + return "FeatureMap"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1029L) { + if (attributeId == 0L) { + return "MeasuredValue"; + } + if (attributeId == 1L) { + return "MinMeasuredValue"; + } + if (attributeId == 2L) { + return "MaxMeasuredValue"; + } + if (attributeId == 3L) { + return "Tolerance"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 5L) { + if (attributeId == 0L) { + return "SceneCount"; + } + if (attributeId == 1L) { + return "CurrentScene"; + } + if (attributeId == 2L) { + return "CurrentGroup"; + } + if (attributeId == 3L) { + return "SceneValid"; + } + if (attributeId == 4L) { + return "NameSupport"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 52L) { + if (attributeId == 0L) { + return "ThreadMetrics"; + } + if (attributeId == 1L) { + return "CurrentHeapFree"; + } + if (attributeId == 2L) { + return "CurrentHeapUsed"; + } + if (attributeId == 3L) { + return "CurrentHeapHighWatermark"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65532L) { + return "FeatureMap"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 59L) { + if (attributeId == 0L) { + return "NumberOfPositions"; + } + if (attributeId == 1L) { + return "CurrentPosition"; + } + if (attributeId == 2L) { + return "MultiPressMax"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65532L) { + return "FeatureMap"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1285L) { + if (attributeId == 0L) { + return "TargetList"; + } + if (attributeId == 1L) { + return "CurrentTarget"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1026L) { + if (attributeId == 0L) { + return "MeasuredValue"; + } + if (attributeId == 1L) { + return "MinMeasuredValue"; + } + if (attributeId == 2L) { + return "MaxMeasuredValue"; + } + if (attributeId == 3L) { + return "Tolerance"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1295L) { + if (attributeId == 0L) { + return "Boolean"; + } + if (attributeId == 1L) { + return "Bitmap8"; + } + if (attributeId == 2L) { + return "Bitmap16"; + } + if (attributeId == 3L) { + return "Bitmap32"; + } + if (attributeId == 4L) { + return "Bitmap64"; + } + if (attributeId == 5L) { + return "Int8u"; + } + if (attributeId == 6L) { + return "Int16u"; + } + if (attributeId == 7L) { + return "Int24u"; + } + if (attributeId == 8L) { + return "Int32u"; + } + if (attributeId == 9L) { + return "Int40u"; + } + if (attributeId == 10L) { + return "Int48u"; + } + if (attributeId == 11L) { + return "Int56u"; + } + if (attributeId == 12L) { + return "Int64u"; + } + if (attributeId == 13L) { + return "Int8s"; + } + if (attributeId == 14L) { + return "Int16s"; + } + if (attributeId == 15L) { + return "Int24s"; + } + if (attributeId == 16L) { + return "Int32s"; + } + if (attributeId == 17L) { + return "Int40s"; + } + if (attributeId == 18L) { + return "Int48s"; + } + if (attributeId == 19L) { + return "Int56s"; + } + if (attributeId == 20L) { + return "Int64s"; + } + if (attributeId == 21L) { + return "Enum8"; + } + if (attributeId == 22L) { + return "Enum16"; + } + if (attributeId == 23L) { + return "FloatSingle"; + } + if (attributeId == 24L) { + return "FloatDouble"; + } + if (attributeId == 25L) { + return "OctetString"; + } + if (attributeId == 26L) { + return "ListInt8u"; + } + if (attributeId == 27L) { + return "ListOctetString"; + } + if (attributeId == 28L) { + return "ListStructOctetString"; + } + if (attributeId == 29L) { + return "LongOctetString"; + } + if (attributeId == 30L) { + return "CharString"; + } + if (attributeId == 31L) { + return "LongCharString"; + } + if (attributeId == 32L) { + return "EpochUs"; + } + if (attributeId == 33L) { + return "EpochS"; + } + if (attributeId == 34L) { + return "VendorId"; + } + if (attributeId == 35L) { + return "ListNullablesAndOptionalsStruct"; + } + if (attributeId == 36L) { + return "EnumAttr"; + } + if (attributeId == 37L) { + return "StructAttr"; + } + if (attributeId == 38L) { + return "RangeRestrictedInt8u"; + } + if (attributeId == 39L) { + return "RangeRestrictedInt8s"; + } + if (attributeId == 40L) { + return "RangeRestrictedInt16u"; + } + if (attributeId == 41L) { + return "RangeRestrictedInt16s"; + } + if (attributeId == 42L) { + return "ListLongOctetString"; + } + if (attributeId == 48L) { + return "TimedWriteBoolean"; + } + if (attributeId == 49L) { + return "GeneralErrorBoolean"; + } + if (attributeId == 50L) { + return "ClusterErrorBoolean"; + } + if (attributeId == 255L) { + return "Unsupported"; + } + if (attributeId == 32768L) { + return "NullableBoolean"; + } + if (attributeId == 32769L) { + return "NullableBitmap8"; + } + if (attributeId == 32770L) { + return "NullableBitmap16"; + } + if (attributeId == 32771L) { + return "NullableBitmap32"; + } + if (attributeId == 32772L) { + return "NullableBitmap64"; + } + if (attributeId == 32773L) { + return "NullableInt8u"; + } + if (attributeId == 32774L) { + return "NullableInt16u"; + } + if (attributeId == 32775L) { + return "NullableInt24u"; + } + if (attributeId == 32776L) { + return "NullableInt32u"; + } + if (attributeId == 32777L) { + return "NullableInt40u"; + } + if (attributeId == 32778L) { + return "NullableInt48u"; + } + if (attributeId == 32779L) { + return "NullableInt56u"; + } + if (attributeId == 32780L) { + return "NullableInt64u"; + } + if (attributeId == 32781L) { + return "NullableInt8s"; + } + if (attributeId == 32782L) { + return "NullableInt16s"; + } + if (attributeId == 32783L) { + return "NullableInt24s"; + } + if (attributeId == 32784L) { + return "NullableInt32s"; + } + if (attributeId == 32785L) { + return "NullableInt40s"; + } + if (attributeId == 32786L) { + return "NullableInt48s"; + } + if (attributeId == 32787L) { + return "NullableInt56s"; + } + if (attributeId == 32788L) { + return "NullableInt64s"; + } + if (attributeId == 32789L) { + return "NullableEnum8"; + } + if (attributeId == 32790L) { + return "NullableEnum16"; + } + if (attributeId == 32791L) { + return "NullableFloatSingle"; + } + if (attributeId == 32792L) { + return "NullableFloatDouble"; + } + if (attributeId == 32793L) { + return "NullableOctetString"; + } + if (attributeId == 32798L) { + return "NullableCharString"; + } + if (attributeId == 32804L) { + return "NullableEnumAttr"; + } + if (attributeId == 32805L) { + return "NullableStruct"; + } + if (attributeId == 32806L) { + return "NullableRangeRestrictedInt8u"; + } + if (attributeId == 32807L) { + return "NullableRangeRestrictedInt8s"; + } + if (attributeId == 32808L) { + return "NullableRangeRestrictedInt16u"; + } + if (attributeId == 32809L) { + return "NullableRangeRestrictedInt16s"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 513L) { + if (attributeId == 0L) { + return "LocalTemperature"; + } + if (attributeId == 3L) { + return "AbsMinHeatSetpointLimit"; + } + if (attributeId == 4L) { + return "AbsMaxHeatSetpointLimit"; + } + if (attributeId == 5L) { + return "AbsMinCoolSetpointLimit"; + } + if (attributeId == 6L) { + return "AbsMaxCoolSetpointLimit"; + } + if (attributeId == 17L) { + return "OccupiedCoolingSetpoint"; + } + if (attributeId == 18L) { + return "OccupiedHeatingSetpoint"; + } + if (attributeId == 21L) { + return "MinHeatSetpointLimit"; + } + if (attributeId == 22L) { + return "MaxHeatSetpointLimit"; + } + if (attributeId == 23L) { + return "MinCoolSetpointLimit"; + } + if (attributeId == 24L) { + return "MaxCoolSetpointLimit"; + } + if (attributeId == 25L) { + return "MinSetpointDeadBand"; + } + if (attributeId == 27L) { + return "ControlSequenceOfOperation"; + } + if (attributeId == 28L) { + return "SystemMode"; + } + if (attributeId == 32L) { + return "StartOfWeek"; + } + if (attributeId == 33L) { + return "NumberOfWeeklyTransitions"; + } + if (attributeId == 34L) { + return "NumberOfDailyTransitions"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65532L) { + return "FeatureMap"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 516L) { + if (attributeId == 0L) { + return "TemperatureDisplayMode"; + } + if (attributeId == 1L) { + return "KeypadLockout"; + } + if (attributeId == 2L) { + return "ScheduleProgrammingVisibility"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 53L) { + if (attributeId == 0L) { + return "Channel"; + } + if (attributeId == 1L) { + return "RoutingRole"; + } + if (attributeId == 2L) { + return "NetworkName"; + } + if (attributeId == 3L) { + return "PanId"; + } + if (attributeId == 4L) { + return "ExtendedPanId"; + } + if (attributeId == 5L) { + return "MeshLocalPrefix"; + } + if (attributeId == 6L) { + return "OverrunCount"; + } + if (attributeId == 7L) { + return "NeighborTableList"; + } + if (attributeId == 8L) { + return "RouteTableList"; + } + if (attributeId == 9L) { + return "PartitionId"; + } + if (attributeId == 10L) { + return "Weighting"; + } + if (attributeId == 11L) { + return "DataVersion"; + } + if (attributeId == 12L) { + return "StableDataVersion"; + } + if (attributeId == 13L) { + return "LeaderRouterId"; + } + if (attributeId == 14L) { + return "DetachedRoleCount"; + } + if (attributeId == 15L) { + return "ChildRoleCount"; + } + if (attributeId == 16L) { + return "RouterRoleCount"; + } + if (attributeId == 17L) { + return "LeaderRoleCount"; + } + if (attributeId == 18L) { + return "AttachAttemptCount"; + } + if (attributeId == 19L) { + return "PartitionIdChangeCount"; + } + if (attributeId == 20L) { + return "BetterPartitionAttachAttemptCount"; + } + if (attributeId == 21L) { + return "ParentChangeCount"; + } + if (attributeId == 22L) { + return "TxTotalCount"; + } + if (attributeId == 23L) { + return "TxUnicastCount"; + } + if (attributeId == 24L) { + return "TxBroadcastCount"; + } + if (attributeId == 25L) { + return "TxAckRequestedCount"; + } + if (attributeId == 26L) { + return "TxAckedCount"; + } + if (attributeId == 27L) { + return "TxNoAckRequestedCount"; + } + if (attributeId == 28L) { + return "TxDataCount"; + } + if (attributeId == 29L) { + return "TxDataPollCount"; + } + if (attributeId == 30L) { + return "TxBeaconCount"; + } + if (attributeId == 31L) { + return "TxBeaconRequestCount"; + } + if (attributeId == 32L) { + return "TxOtherCount"; + } + if (attributeId == 33L) { + return "TxRetryCount"; + } + if (attributeId == 34L) { + return "TxDirectMaxRetryExpiryCount"; + } + if (attributeId == 35L) { + return "TxIndirectMaxRetryExpiryCount"; + } + if (attributeId == 36L) { + return "TxErrCcaCount"; + } + if (attributeId == 37L) { + return "TxErrAbortCount"; + } + if (attributeId == 38L) { + return "TxErrBusyChannelCount"; + } + if (attributeId == 39L) { + return "RxTotalCount"; + } + if (attributeId == 40L) { + return "RxUnicastCount"; + } + if (attributeId == 41L) { + return "RxBroadcastCount"; + } + if (attributeId == 42L) { + return "RxDataCount"; + } + if (attributeId == 43L) { + return "RxDataPollCount"; + } + if (attributeId == 44L) { + return "RxBeaconCount"; + } + if (attributeId == 45L) { + return "RxBeaconRequestCount"; + } + if (attributeId == 46L) { + return "RxOtherCount"; + } + if (attributeId == 47L) { + return "RxAddressFilteredCount"; + } + if (attributeId == 48L) { + return "RxDestAddrFilteredCount"; + } + if (attributeId == 49L) { + return "RxDuplicatedCount"; + } + if (attributeId == 50L) { + return "RxErrNoFrameCount"; + } + if (attributeId == 51L) { + return "RxErrUnknownNeighborCount"; + } + if (attributeId == 52L) { + return "RxErrInvalidSrcAddrCount"; + } + if (attributeId == 53L) { + return "RxErrSecCount"; + } + if (attributeId == 54L) { + return "RxErrFcsCount"; + } + if (attributeId == 55L) { + return "RxErrOtherCount"; + } + if (attributeId == 56L) { + return "ActiveTimestamp"; + } + if (attributeId == 57L) { + return "PendingTimestamp"; + } + if (attributeId == 58L) { + return "Delay"; + } + if (attributeId == 59L) { + return "SecurityPolicy"; + } + if (attributeId == 60L) { + return "ChannelMask"; + } + if (attributeId == 61L) { + return "OperationalDatasetComponents"; + } + if (attributeId == 62L) { + return "ActiveNetworkFaultsList"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65532L) { + return "FeatureMap"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 44L) { + if (attributeId == 0L) { + return "HourFormat"; + } + if (attributeId == 1L) { + return "ActiveCalendarType"; + } + if (attributeId == 2L) { + return "SupportedCalendarTypes"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 45L) { + if (attributeId == 0L) { + return "TemperatureUnit"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65532L) { + return "FeatureMap"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 65L) { + if (attributeId == 0L) { + return "LabelList"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 1283L) { + if (attributeId == 0L) { + return "MACAddress"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 54L) { + if (attributeId == 0L) { + return "Bssid"; + } + if (attributeId == 1L) { + return "SecurityType"; + } + if (attributeId == 2L) { + return "WiFiVersion"; + } + if (attributeId == 3L) { + return "ChannelNumber"; + } + if (attributeId == 4L) { + return "Rssi"; + } + if (attributeId == 5L) { + return "BeaconLostCount"; + } + if (attributeId == 6L) { + return "BeaconRxCount"; + } + if (attributeId == 7L) { + return "PacketMulticastRxCount"; + } + if (attributeId == 8L) { + return "PacketMulticastTxCount"; + } + if (attributeId == 9L) { + return "PacketUnicastRxCount"; + } + if (attributeId == 10L) { + return "PacketUnicastTxCount"; + } + if (attributeId == 11L) { + return "CurrentMaxRate"; + } + if (attributeId == 12L) { + return "OverrunCount"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65532L) { + return "FeatureMap"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + if (clusterId == 258L) { + if (attributeId == 0L) { + return "Type"; + } + if (attributeId == 3L) { + return "CurrentPositionLift"; + } + if (attributeId == 4L) { + return "CurrentPositionTilt"; + } + if (attributeId == 7L) { + return "ConfigStatus"; + } + if (attributeId == 8L) { + return "CurrentPositionLiftPercentage"; + } + if (attributeId == 9L) { + return "CurrentPositionTiltPercentage"; + } + if (attributeId == 10L) { + return "OperationalStatus"; + } + if (attributeId == 11L) { + return "TargetPositionLiftPercent100ths"; + } + if (attributeId == 12L) { + return "TargetPositionTiltPercent100ths"; + } + if (attributeId == 13L) { + return "EndProductType"; + } + if (attributeId == 14L) { + return "CurrentPositionLiftPercent100ths"; + } + if (attributeId == 15L) { + return "CurrentPositionTiltPercent100ths"; + } + if (attributeId == 16L) { + return "InstalledOpenLimitLift"; + } + if (attributeId == 17L) { + return "InstalledClosedLimitLift"; + } + if (attributeId == 18L) { + return "InstalledOpenLimitTilt"; + } + if (attributeId == 19L) { + return "InstalledClosedLimitTilt"; + } + if (attributeId == 23L) { + return "Mode"; + } + if (attributeId == 26L) { + return "SafetyStatus"; + } + if (attributeId == 65528L) { + return "ServerGeneratedCommandList"; + } + if (attributeId == 65529L) { + return "ClientGeneratedCommandList"; + } + if (attributeId == 65531L) { + return "AttributeList"; + } + if (attributeId == 65532L) { + return "FeatureMap"; + } + if (attributeId == 65533L) { + return "ClusterRevision"; + } + return ""; + } + return ""; + } +}