Skip to content

Commit e3c225f

Browse files
authored
Update Door Lock cluster definition to add more commands and attributes (#1425)
* Update Door Lock cluster definition to add more commands and attributes Signed-off-by: Chris Jackson <[email protected]> * Fix compilation error Signed-off-by: Chris Jackson <[email protected]> --------- Signed-off-by: Chris Jackson <[email protected]>
1 parent 03a9f59 commit e3c225f

File tree

61 files changed

+10239
-45
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+10239
-45
lines changed

com.zsmartsystems.zigbee.autocode/src/main/resources/0000_Basic.xml

+5-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
<name>Physical Environment</name>
146146
<value code="0x00" name="Unspecified">
147147
</value>
148-
<value code="0x01" name="Atrium">
148+
<value code="0x01" name="Atrium Deprecated">
149149
</value>
150150
<value code="0x02" name="Bar">
151151
</value>
@@ -354,6 +354,10 @@
354354
<value code="0x6E" name="Medical Imaging Room">
355355
</value>
356356
<value code="0x6F" name="Decontamination Room">
357+
</value>
358+
<value code="0x70" name="Atrium">
359+
</value>
360+
<value code="0x71" name="Mirror">
357361
</value>
358362
<value code="0xFF" name="Unknown">
359363
</value>

com.zsmartsystems.zigbee.autocode/src/main/resources/0101_DoorLock.xml

+688-2
Large diffs are not rendered by default.

com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/zcl/clusters/ZclDoorLockCluster.java

+1,458-39
Large diffs are not rendered by default.

com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/zcl/clusters/basic/PhysicalEnvironmentEnum.java

+13-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* <p>
1818
* Code is auto-generated. Modifications may be overwritten!
1919
*/
20-
@Generated(value = "com.zsmartsystems.zigbee.autocode.ZigBeeCodeGenerator", date = "2021-01-15T11:25:03Z")
20+
@Generated(value = "com.zsmartsystems.zigbee.autocode.ZigBeeCodeGenerator", date = "2024-05-18T06:14:22Z")
2121
public enum PhysicalEnvironmentEnum {
2222

2323
/**
@@ -26,9 +26,9 @@ public enum PhysicalEnvironmentEnum {
2626
UNSPECIFIED(0x0000),
2727

2828
/**
29-
* Atrium, 1, 0x0001
29+
* Atrium Deprecated, 1, 0x0001
3030
*/
31-
ATRIUM(0x0001),
31+
ATRIUM_DEPRECATED(0x0001),
3232

3333
/**
3434
* Bar, 2, 0x0002
@@ -550,6 +550,16 @@ public enum PhysicalEnvironmentEnum {
550550
*/
551551
DECONTAMINATION_ROOM(0x006F),
552552

553+
/**
554+
* Atrium, 112, 0x0070
555+
*/
556+
ATRIUM(0x0070),
557+
558+
/**
559+
* Mirror, 113, 0x0071
560+
*/
561+
MIRROR(0x0071),
562+
553563
/**
554564
* Unknown, 255, 0x00FF
555565
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/**
2+
* Copyright (c) 2016-2024 by the respective copyright holders.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.eclipse.org/legal/epl-v10.html
7+
*/
8+
package com.zsmartsystems.zigbee.zcl.clusters.doorlock;
9+
10+
import javax.annotation.Generated;
11+
12+
import com.zsmartsystems.zigbee.zcl.protocol.ZclCommandDirection;
13+
14+
/**
15+
* Clear All PIN Codes value object class.
16+
* <p>
17+
* Cluster: <b>Door Lock</b>. Command ID 0x08 is sent <b>TO</b> the server.
18+
* This command is a <b>specific</b> command used for the Door Lock cluster.
19+
* <p>
20+
* Set the status of a user ID. User Status value of 0x00 is not allowed. In order to clear a user id,
21+
* the Clear ID Command shall be used. For user status value please refer to User Status Value.
22+
* <p>
23+
* Code is auto-generated. Modifications may be overwritten!
24+
*/
25+
@Generated(value = "com.zsmartsystems.zigbee.autocode.ZigBeeCodeGenerator", date = "2024-05-18T05:33:00Z")
26+
public class ClearAllPinCodes extends ZclDoorLockCommand {
27+
/**
28+
* The cluster ID to which this command belongs.
29+
*/
30+
public static int CLUSTER_ID = 0x0101;
31+
32+
/**
33+
* The command ID.
34+
*/
35+
public static int COMMAND_ID = 0x08;
36+
37+
/**
38+
* Default constructor.
39+
*
40+
*/
41+
public ClearAllPinCodes() {
42+
clusterId = CLUSTER_ID;
43+
commandId = COMMAND_ID;
44+
genericCommand = false;
45+
commandDirection = ZclCommandDirection.CLIENT_TO_SERVER;
46+
}
47+
48+
49+
@Override
50+
public String toString() {
51+
final StringBuilder builder = new StringBuilder(19);
52+
builder.append("ClearAllPinCodes [");
53+
builder.append(super.toString());
54+
builder.append(']');
55+
return builder.toString();
56+
}
57+
58+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
/**
2+
* Copyright (c) 2016-2024 by the respective copyright holders.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.eclipse.org/legal/epl-v10.html
7+
*/
8+
package com.zsmartsystems.zigbee.zcl.clusters.doorlock;
9+
10+
import javax.annotation.Generated;
11+
12+
import com.zsmartsystems.zigbee.zcl.ZclFieldDeserializer;
13+
import com.zsmartsystems.zigbee.zcl.ZclFieldSerializer;
14+
import com.zsmartsystems.zigbee.zcl.protocol.ZclCommandDirection;
15+
import com.zsmartsystems.zigbee.zcl.protocol.ZclDataType;
16+
17+
/**
18+
* Clear All PIN Codes Response value object class.
19+
* <p>
20+
* Cluster: <b>Door Lock</b>. Command ID 0x08 is sent <b>FROM</b> the server.
21+
* This command is a <b>specific</b> command used for the Door Lock cluster.
22+
* <p>
23+
* Returns pass/fail of the command.
24+
* <p>
25+
* Code is auto-generated. Modifications may be overwritten!
26+
*/
27+
@Generated(value = "com.zsmartsystems.zigbee.autocode.ZigBeeCodeGenerator", date = "2024-05-18T05:31:31Z")
28+
public class ClearAllPinCodesResponse extends ZclDoorLockCommand {
29+
/**
30+
* The cluster ID to which this command belongs.
31+
*/
32+
public static int CLUSTER_ID = 0x0101;
33+
34+
/**
35+
* The command ID.
36+
*/
37+
public static int COMMAND_ID = 0x08;
38+
39+
/**
40+
* Status command message field.
41+
*/
42+
private Integer status;
43+
44+
/**
45+
* Default constructor.
46+
*
47+
* @deprecated from release 1.3.0. Use the parameterised constructor instead of the default constructor and setters.
48+
*/
49+
@Deprecated
50+
public ClearAllPinCodesResponse() {
51+
clusterId = CLUSTER_ID;
52+
commandId = COMMAND_ID;
53+
genericCommand = false;
54+
commandDirection = ZclCommandDirection.SERVER_TO_CLIENT;
55+
}
56+
57+
/**
58+
* Constructor providing all required parameters.
59+
*
60+
* @param status {@link Integer} Status
61+
*/
62+
public ClearAllPinCodesResponse(
63+
Integer status) {
64+
65+
clusterId = CLUSTER_ID;
66+
commandId = COMMAND_ID;
67+
genericCommand = false;
68+
commandDirection = ZclCommandDirection.SERVER_TO_CLIENT;
69+
70+
this.status = status;
71+
}
72+
73+
/**
74+
* Gets Status.
75+
*
76+
* @return the Status
77+
*/
78+
public Integer getStatus() {
79+
return status;
80+
}
81+
82+
/**
83+
* Sets Status.
84+
*
85+
* @param status the Status
86+
* @deprecated as of 1.3.0. Use the parameterised constructor instead to ensure that all mandatory fields are provided.
87+
*/
88+
@Deprecated
89+
public void setStatus(final Integer status) {
90+
this.status = status;
91+
}
92+
93+
@Override
94+
public void serialize(final ZclFieldSerializer serializer) {
95+
serializer.serialize(status, ZclDataType.UNSIGNED_8_BIT_INTEGER);
96+
}
97+
98+
@Override
99+
public void deserialize(final ZclFieldDeserializer deserializer) {
100+
status = deserializer.deserialize(ZclDataType.UNSIGNED_8_BIT_INTEGER);
101+
}
102+
103+
@Override
104+
public String toString() {
105+
final StringBuilder builder = new StringBuilder(53);
106+
builder.append("ClearAllPinCodesResponse [");
107+
builder.append(super.toString());
108+
builder.append(", status=");
109+
builder.append(status);
110+
builder.append(']');
111+
return builder.toString();
112+
}
113+
114+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/**
2+
* Copyright (c) 2016-2024 by the respective copyright holders.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.eclipse.org/legal/epl-v10.html
7+
*/
8+
package com.zsmartsystems.zigbee.zcl.clusters.doorlock;
9+
10+
import javax.annotation.Generated;
11+
12+
import com.zsmartsystems.zigbee.zcl.protocol.ZclCommandDirection;
13+
14+
/**
15+
* Clear All RFID Codes value object class.
16+
* <p>
17+
* Cluster: <b>Door Lock</b>. Command ID 0x19 is sent <b>TO</b> the server.
18+
* This command is a <b>specific</b> command used for the Door Lock cluster.
19+
* <p>
20+
* Clear out all RFIDs on the lock. If you delete all RFID codes and this user didn't have a PIN
21+
* code, the user status has to be set to "0 Available", the user type has to be set to the default
22+
* value, and all schedules which are supported have to be set to the default values.
23+
* <p>
24+
* Code is auto-generated. Modifications may be overwritten!
25+
*/
26+
@Generated(value = "com.zsmartsystems.zigbee.autocode.ZigBeeCodeGenerator", date = "2024-05-18T05:31:31Z")
27+
public class ClearAllRfidCodes extends ZclDoorLockCommand {
28+
/**
29+
* The cluster ID to which this command belongs.
30+
*/
31+
public static int CLUSTER_ID = 0x0101;
32+
33+
/**
34+
* The command ID.
35+
*/
36+
public static int COMMAND_ID = 0x19;
37+
38+
/**
39+
* Default constructor.
40+
*
41+
*/
42+
public ClearAllRfidCodes() {
43+
clusterId = CLUSTER_ID;
44+
commandId = COMMAND_ID;
45+
genericCommand = false;
46+
commandDirection = ZclCommandDirection.CLIENT_TO_SERVER;
47+
}
48+
49+
50+
@Override
51+
public String toString() {
52+
final StringBuilder builder = new StringBuilder(20);
53+
builder.append("ClearAllRfidCodes [");
54+
builder.append(super.toString());
55+
builder.append(']');
56+
return builder.toString();
57+
}
58+
59+
}

0 commit comments

Comments
 (0)