Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add outline ZLL Commissioning definition #1446

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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<ZigBeeXmlCluster> zclClusters = zclParser.parseClusterConfiguration();

ZigBeeXmlParser zdoParser = new ZigBeeXmlParser();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="zigbee-description.xsd" code="0x1000">
<name>Light Link Commissioning</name>
<description>Cluster used for commissioning ZLL devices, including touchlinking and network management.</description>
</cluster>
Original file line number Diff line number Diff line change
@@ -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;

/**
* <b>Light Link Commissioning</b> cluster implementation (<i>Cluster ID 0x1000</i>).
* <p>
* Cluster used for commissioning ZLL devices, including touchlinking and network
* management.
* <p>
* 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<Integer, ZclAttribute> initializeClientAttributes() {
Map<Integer, ZclAttribute> attributeMap = super.initializeClientAttributes();

return attributeMap;
}

@Override
protected Map<Integer, ZclAttribute> initializeServerAttributes() {
Map<Integer, ZclAttribute> 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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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"),
Expand Down Expand Up @@ -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<Integer, ZclClusterType> idValueMap = new ConcurrentHashMap<>();

Expand Down
Loading