diff --git a/com.zsmartsystems.zigbee.autocode/src/main/java/com/zsmartsystems/zigbee/autocode/ZigBeeCodeGenerator.java b/com.zsmartsystems.zigbee.autocode/src/main/java/com/zsmartsystems/zigbee/autocode/ZigBeeCodeGenerator.java index 72cd76077..e6933b3df 100644 --- a/com.zsmartsystems.zigbee.autocode/src/main/java/com/zsmartsystems/zigbee/autocode/ZigBeeCodeGenerator.java +++ b/com.zsmartsystems.zigbee.autocode/src/main/java/com/zsmartsystems/zigbee/autocode/ZigBeeCodeGenerator.java @@ -110,6 +110,8 @@ public static void main(final String[] args) { zclParser.addFile("src/main/resources/0B04_ElectricalMeasurement.xml"); zclParser.addFile("src/main/resources/0B05_Diagnostics.xml"); + zclParser.addFile("src/main/resources/1000_ZllCommissioning.xml"); + List zclClusters = zclParser.parseClusterConfiguration(); ZigBeeXmlParser zdoParser = new ZigBeeXmlParser(); diff --git a/com.zsmartsystems.zigbee.autocode/src/main/resources/1000_ZllCommissioning.xml b/com.zsmartsystems.zigbee.autocode/src/main/resources/1000_ZllCommissioning.xml new file mode 100644 index 000000000..1a5a5ed26 --- /dev/null +++ b/com.zsmartsystems.zigbee.autocode/src/main/resources/1000_ZllCommissioning.xml @@ -0,0 +1,5 @@ + + Light Link Commissioning + Cluster used for commissioning ZLL devices, including touchlinking and network management. + diff --git a/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/zcl/clusters/ZclLightLinkCommissioningCluster.java b/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/zcl/clusters/ZclLightLinkCommissioningCluster.java new file mode 100644 index 000000000..7dd4666bc --- /dev/null +++ b/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/zcl/clusters/ZclLightLinkCommissioningCluster.java @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2016-2024 by the respective copyright holders. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + */ +package com.zsmartsystems.zigbee.zcl.clusters; + +import java.util.Map; +import java.util.concurrent.ConcurrentSkipListMap; + +import javax.annotation.Generated; + +import com.zsmartsystems.zigbee.ZigBeeEndpoint; +import com.zsmartsystems.zigbee.zcl.ZclAttribute; +import com.zsmartsystems.zigbee.zcl.ZclCluster; + +/** + * Light Link Commissioning cluster implementation (Cluster ID 0x1000). + *

+ * Cluster used for commissioning ZLL devices, including touchlinking and network + * management. + *

+ * Code is auto-generated. Modifications may be overwritten! + */ +@Generated(value = "com.zsmartsystems.zigbee.autocode.ZigBeeCodeGenerator", date = "2024-11-19T22:12:16Z") +public class ZclLightLinkCommissioningCluster extends ZclCluster { + /** + * The ZigBee Cluster Library Cluster ID + */ + public static final int CLUSTER_ID = 0x1000; + + /** + * The ZigBee Cluster Library Cluster Name + */ + public static final String CLUSTER_NAME = "Light Link Commissioning"; + + @Override + protected Map initializeClientAttributes() { + Map attributeMap = super.initializeClientAttributes(); + + return attributeMap; + } + + @Override + protected Map initializeServerAttributes() { + Map attributeMap = super.initializeServerAttributes(); + + return attributeMap; + } + + + /** + * Default constructor to create a Light Link Commissioning cluster. + * + * @param zigbeeEndpoint the {@link ZigBeeEndpoint} this cluster is contained within + */ + public ZclLightLinkCommissioningCluster(final ZigBeeEndpoint zigbeeEndpoint) { + super(zigbeeEndpoint, CLUSTER_ID, CLUSTER_NAME); + } +} diff --git a/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/zcl/protocol/ZclClusterType.java b/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/zcl/protocol/ZclClusterType.java index 95024d664..5698201e8 100644 --- a/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/zcl/protocol/ZclClusterType.java +++ b/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/zcl/protocol/ZclClusterType.java @@ -41,6 +41,7 @@ import com.zsmartsystems.zigbee.zcl.clusters.ZclKeyEstablishmentCluster; import com.zsmartsystems.zigbee.zcl.clusters.ZclLeafWetnessMeasurementCluster; import com.zsmartsystems.zigbee.zcl.clusters.ZclLevelControlCluster; +import com.zsmartsystems.zigbee.zcl.clusters.ZclLightLinkCommissioningCluster; import com.zsmartsystems.zigbee.zcl.clusters.ZclMessagingCluster; import com.zsmartsystems.zigbee.zcl.clusters.ZclMeterIdentificationCluster; import com.zsmartsystems.zigbee.zcl.clusters.ZclMeteringCluster; @@ -75,7 +76,7 @@ * * @author Chris Jackson */ -@Generated(value = "com.zsmartsystems.zigbee.autocode.ZigBeeCodeGenerator", date = "2024-07-16T22:58:38Z") +@Generated(value = "com.zsmartsystems.zigbee.autocode.ZigBeeCodeGenerator", date = "2024-11-19T22:12:16Z") public enum ZclClusterType { BASIC(0x0000, ZclBasicCluster.class, "Basic"), POWER_CONFIGURATION(0x0001, ZclPowerConfigurationCluster.class, "Power Configuration"), @@ -130,7 +131,8 @@ public enum ZclClusterType { KEY_ESTABLISHMENT(0x0800, ZclKeyEstablishmentCluster.class, "Key Establishment"), METER_IDENTIFICATION(0x0B01, ZclMeterIdentificationCluster.class, "Meter Identification"), ELECTRICAL_MEASUREMENT(0x0B04, ZclElectricalMeasurementCluster.class, "Electrical Measurement"), - DIAGNOSTICS(0x0B05, ZclDiagnosticsCluster.class, "Diagnostics"); + DIAGNOSTICS(0x0B05, ZclDiagnosticsCluster.class, "Diagnostics"), + LIGHT_LINK_COMMISSIONING(0x1000, ZclLightLinkCommissioningCluster.class, "Light Link Commissioning"); private static final Map idValueMap = new ConcurrentHashMap<>();