ZigBee Afg-Zigbee Cluster Library Public Download Version
ZigBee Afg-Zigbee Cluster Library Public Download Version
Document 075123r01ZB
1
2
3
4
5
6
7
8
9
10
11
SPECIFICATION 15
16
17
18
19
20
21
ZigBee Document 075123r01ZB 22
23
October 19, 2007 7:34 pm
24
Sponsored by: ZigBee Alliance 25
Accepted by This document has been accepted for release by the ZigBee Alliance Board 26
of Directors. 27
28
Abstract This document defines the ZigBee Cluster Library.
29
Keywords ZigBee, Profile, Application Framework, ZCL 30
31
32
33
34
35
36
October 19, 2007 37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
PARTICIPANTS 1
2
3
4
The following is a list of those who were members of the ZigBee Alliance 5
Application Framework Working Group leadership when this document was 6
released: 7
Phil Jamieson: Chair 8
9
Don Sturek: Editor-in-chief 10
Drew Gislason: Secretary 11
12
Matt Maupin: Project manager 13
David Clark: ZCL technical editor 14
15
16
Contributions were made to this document from the following members: 17
18
19
Table 1: 20
David Clark Ted Humpal Jens Klostergaard Zachary Smith 21
Lyngsø 22
Ettore Colicchio Phil Jamieson Marco Naeve Don Sturek 23
24
Kent Crouse William Keith Philip Orlik Urban Wicklander
25
Tim Gillman Tom Klein Isaac Pinhas Walter Young 26
Drew Gislason Jared Lemke Phil Rudland 27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB i
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
This page is intentionally blank 22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB iii
TABLE OF CONTENTS 1
2
3
4
Participants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 5
Notice of Use and Disclosure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . i 6
7
List of Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix 8
List of Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv 9
10
Chapter 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 11
1.1 Scope and Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 12
1.2 Acronyms and Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 13
1.3 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 14
1.3.1 ZigBee Definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 15
16
1.3.2 Application Domain Definitions . . . . . . . . . . . . . . . . . . . . . . 2
17
1.4 Conformance Levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 18
1.5 References. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 19
1.5.1 Zigbee Alliance Documents. . . . . . . . . . . . . . . . . . . . . . . . . . 3 20
1.5.2 European Standards Documents . . . . . . . . . . . . . . . . . . . . . . 3 21
1.5.3 IEEE Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 22
23
1.5.4 ASHRAE Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
24
Chapter 2 Foundation Specification . . . . . . . . . . . . . . . . . . . . . . . . . 5 25
2.1 Scope and Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 26
2.2 Cluster Library Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 27
28
2.2.1 Client/Server Model. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
29
2.2.2 Functional Domains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 30
2.3 Command Frame Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 31
2.3.1 General ZCL Frame Format . . . . . . . . . . . . . . . . . . . . . . . . . 11 32
2.4 General Command Frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 33
2.4.1 Read Attributes Command. . . . . . . . . . . . . . . . . . . . . . . . . . . 14 34
35
2.4.2 Read Attributes Response Command . . . . . . . . . . . . . . . . . . 16
36
2.4.3 Write Attributes Command . . . . . . . . . . . . . . . . . . . . . . . . . . 18 37
2.4.4 Write Attributes Undivided Command . . . . . . . . . . . . . . . . . 20 38
2.4.5 Write Attributes Response Command . . . . . . . . . . . . . . . . . . 20 39
2.4.6 Write Attributes No Response Command . . . . . . . . . . . . . . . 21 40
2.4.7 Configure Reporting Command. . . . . . . . . . . . . . . . . . . . . . . 23 41
42
2.4.8 Configure Reporting Response Command . . . . . . . . . . . . . . 27
43
2.4.9 Read Reporting Configuration Command . . . . . . . . . . . . . . . 28 44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
iv Table of Contents
3.7.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
1
3.7.2 Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
2
3.7.3 Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 3
3.8 On/Off Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 4
3.8.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 5
3.8.2 Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 6
3.8.3 Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 7
8
3.9 On/Off Switch Configuration Cluster. . . . . . . . . . . . . . . . . . . . . . . 104
9
3.9.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 10
3.9.2 Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 11
3.9.3 Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 12
3.10 Level Control Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 13
3.10.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 14
15
3.10.2 Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
16
3.10.3 Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 17
3.11 Alarms Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 18
3.11.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 19
3.11.2 Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 20
3.11.3 Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 21
22
3.12 Time Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
23
3.12.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 24
3.12.2 Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 25
3.12.3 Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 26
3.13 Rssi Location Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 27
3.13.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 28
29
3.13.2 Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
30
Chapter 4 Measurement and Sensing Specification . . . . . . . . . . . . 137 31
4.1 General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 32
4.1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 33
34
4.1.2 Cluster List. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
35
4.2 Illuminance Measurement Cluster . . . . . . . . . . . . . . . . . . . . . . . . . 140 36
4.2.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 37
4.2.2 Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 38
4.2.3 Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 39
4.3 Illuminance Level Sensing Cluster . . . . . . . . . . . . . . . . . . . . . . . . . 143 40
41
4.3.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
42
4.3.2 Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 43
4.3.3 Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
vi Table of Contents
LIST OF TABLES 1
2
3
4
Table 2.1 Functional Domains Defined in the ZCL . . . . . . . . . . . . . . 7 5
Table 2.2 Clusters Specified by the General Functional Domain . . . 7 6
Table 2.3 Clusters Specified by the Closures Functional Domain . . . 8 7
Table 2.4 Clusters Specified by the HVAC Functional Domain . . . . 9 8
Table 2.5 Clusters Specified by the Lighting Functional Domain . . . 9 9
10
Table 2.6 Clusters Specified by the Measurement and Sensing
11
Functional Domain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 12
Table 2.7 Clusters Specified by the Security and Safety 13
Functional Domain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 14
Table 2.8 ZCL Command Frames . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 15
Table 2.9 Valid Profile Identifier Values . . . . . . . . . . . . . . . . . . . . . . 40 16
17
Table 2.10 Valid Device Identifier Values . . . . . . . . . . . . . . . . . . . . 40
18
Table 2.11 Valid Cluster Identifier Values . . . . . . . . . . . . . . . . . . . . 40 19
Table 2.12 Valid ZCL Defined Attribute Identifier Values . . . . . . . . 41 20
Table 2.13 Valid ZCL Defined Command Identifier Values . . . . . . . 41 21
Table 2.14 Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 22
Table 2.15 Enumerated Status Values Used in the ZCL . . . . . . . . . . 49 23
24
Table 3.1 Device Configuration and Installation Clusters . . . . . . . . . 53
25
Table 3.2 Groups and Scenes Clusters . . . . . . . . . . . . . . . . . . . . . . . . 54 26
Table 3.3 On/Off and Level Control Clusters . . . . . . . . . . . . . . . . . . 55 27
Table 3.4 Alarms Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 28
Table 3.5 Other Clusters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 29
Table 3.6 General Attribute Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 30
31
Table 3.7 Attributes of the Basic Device Information Attribute Set . 57
32
Table 3.8 Values of the PowerSource Attribute . . . . . . . . . . . . . . . . . 59 33
Table 3.9 Attributes of the Device Configuration Attribute Set . . . . 60 34
Table 3.10 Values of the PhysicalEnvironment Attribute . . . . . . . . . 60 35
Table 3.11 Values of the DeviceEnable Attribute . . . . . . . . . . . . . . . 61 36
Table 3.12 Values of the AlarmMask Attribute . . . . . . . . . . . . . . . . . 61 37
38
Table 3.13 Received Command IDs for the Basic Cluster . . . . . . . . 62
39
Table 3.14 Power Configuration Attribute Sets . . . . . . . . . . . . . . . . . 63 40
Table 3.15 Attributes of the Mains Information Attribute Set . . . . . . 64 41
Table 3.16 Attributes of the Mains Settings Attribute Set . . . . . . . . . 65 42
Table 3.17 Values of the MainsAlarmMask Attribute . . . . . . . . . . . . 65 43
44
45
Copyright © 2007ZigBee Standards Organization. All rights reserved.
x List of Tables
LIST OF FIGURES 1
2
3
4
Figure 2.1 The ZCL client server model . . . . . . . . . . . . . . . . . . . . . . 6 5
Figure 2.2 Format of the General ZCL Frame . . . . . . . . . . . . . . . . . . 11 6
Figure 2.3 Format of the Frame Control Field . . . . . . . . . . . . . . . . . . 11 7
Figure 2.4 Values of the Frame Type Sub-field . . . . . . . . . . . . . . . . 12 8
Figure 2.5 Format of the Read Attributes Command Frame . . . . . . . 14 9
10
Figure 2.6 Format of the Read Attributes Response Command Frame 16
11
Figure 2.7 Format of the Read Attributes Status Record Field . . . . . 16 12
Figure 2.8 Format of the Write Attributes Command Frame . . . . . . 18 13
Figure 2.9 Format of the Write Attribute Record Field . . . . . . . . . . . 18 14
Figure 2.10 Format of the Write Attributes Response 15
Command Frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 16
17
Figure 2.11 Format of the Write Attribute Status Record Field . . . . 20
18
Figure 2.12 Format of the Write Attributes No Response 19
Command Frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 20
Figure 2.13 Format of the Configure Reporting Command Frame . . 23 21
Figure 2.14 Format of the Attribute Reporting Configuration Record 23 22
Figure 2.15 Format of the Configure Reporting Response 23
24
Command Frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
25
Figure 2.16 Format of the Attribute Status Record Field . . . . . . . . . 27 26
Figure 2.17 Format of the Read Reporting Configuration 27
Command Frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 28
Figure 2.18 Format of the Attribute Status Record Field . . . . . . . . . 28 29
Figure 2.19 Format of the Read Reporting Configuration Response 30
31
Command Frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
32
Figure 2.20 Format of the Attribute Reporting Configuration 33
Record Field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 34
Figure 2.21 Format of the Report Attributes Command Frame . . . . . 32 35
Figure 2.22 Format of the Attribute Report Fields . . . . . . . . . . . . . . 32 36
Figure 2.23 Format of the Default Response Command Frame . . . . 35 37
38
Figure 2.24 Format of the Discover Attributes Command Frame . . . 37
39
Figure 2.25 Format of the Discover Attributes Response 40
Command Frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 41
Figure 2.26 Format of the Attribute Report Fields . . . . . . . . . . . . . . 38 42
Figure 2.27 Format of the ZigBee Semi-precision Number . . . . . . . 45 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
xvi List of Figures
C H A P T E R
1
1
2
3
4
5
6
7
8
9
CHAPTER 1INTRODUCTION 10
11
12
13
1.1 Scope and Purpose 14
15
This document specifies the ZigBee Cluster Library (ZCL). The ZCL is a 16
repository for cluster functionality that is developed by the ZigBee Alliance, and, 17
as a consequence, it will be a working library with regular updates as new 18
functionality is added. 19
20
A developer constructing a new application profile should use the ZCL to find 21
relevant cluster functionality that can be incorporated into the new profile. 22
Correspondingly, new clusters that are defined for application profiles should be 23
considered for inclusion in the ZCL. 24
The ZCL consists of the ZCL Foundation, a set of elements that apply across the 25
entire library (such as frame structures, attribute access commands and data 26
types), and a number of sets of clusters. Clusters that are generally useful across 27
many application domains are included in the General set. Clusters that are 28
intended for use mainly in specific application domains are grouped together in 29
domain oriented sets. 30
31
32
1.2 Acronyms and Abbreviations 33
34
35
36
Table 1: 37
38
ACE Ancillary Control Equipment 39
CIE Control and Indicating Equipment 40
41
HVAC Heating, Ventilation, Air Conditioning 42
IAS Intruder Alarm System 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 1
2 Introduction
Table 1:
1
PIR Pyroelectric Infra-Red (a type of motion detection sensor) 2
3
RSSI Received Signal Strength Indication
4
WD Warning Device 5
ZCL ZigBee Cluster Library 6
7
8
9
10
1.3 Definitions 11
12
13
1.3.1 ZigBee Definitions 14
15
Cluster:- A related collection of attributes and commands, which together define 16
a communications interface between two devices. The devices implement server 17
and client sides of the interface respectively. 18
19
Client:- A cluster interface which is listed in the output cluster list of the simple 20
descriptor on an endpoint. Typically this interface sends commands that 21
manipulate the attributes on the corresponding server cluster. 22
Server:- A cluster interface which is listed in the input cluster list of the simple 23
descriptor on an endpoint. Typically this interface supports all or most of the 24
attributes of the cluster. 25
26
27
1.3.2 Application Domain Definitions 28
29
4-pipes:- In a 4-pipe HVAC fan coil system, heated and chilled water each have 30
their own supply and return pipes, while in a 2 pipe system they share the same 31
supply and return. With a 4-pipes system, heating and cooling can take place at 32
the same time in different locations of a building. With a 2-pipes system, only 33
heating or cooling can take place in the whole building. 34
Ballast factor:- A measure of the light output (lumens) of a ballast and lamp 35
combination in comparison to an ANSI standard ballast operated with the same 36
lamp. Multiply the ballast factor by the rated lumens of the lamp to get the light 37
output of the lamp/ballast combination. 38
39
HSV:- Hue, Saturation, Value. A color space, also known as HSB (Hue, 40
Saturation, Brightness). This is a well-known transformation of the RGB (Red, 41
Green, Blue) color space. For more information see e.g. http://en.wikipedia.org/ 42
wiki/HSV_color_space. 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 3
C H A P T E R
1
2
2
3
4
5
6
7
8
9
one for each command sent. When a value of 0xff is reached, the next command
shall re-start the counter with a value of 0x00. 1
2
The transaction sequence number field can be used by a controlling device, which 3
may have issued multiple commands, so that it can match the incoming responses 4
to the relevant command. 5
6
2.3.1.4 Command Identifier Field 7
The command identifier field is 8-bits in length and specifies the cluster command 8
being used. If the frame type sub-field of the frame control field is set to 0b00, the 9
command identifier corresponds to one of the non-reserved values of Table 2.9. If 10
the frame type sub-field of the frame control field is set to 0b01, the command 11
identifier corresponds to a cluster specific command. The cluster specific 12
command identifiers can be found in each individual document describing the 13
clusters (see also 2.2.1). 14
15
2.3.1.5 Frame Payload Field 16
17
The frame payload field has a variable length and contains information specific to 18
individual command types. The maximum payload length for a given command is 19
limited by the stack profile in use, in conjunction with the applicable cluster 20
specification and application profile. Fragmentation will be used where available. 21
22
23
2.4 General Command Frames 24
25
General command frames are used for manipulating attributes and other general 26
tasks that are not specific to an individual cluster. 27
28
The command frames defined in this document are listed in Table 2.8. Each
29
command frame shall be constructed with the frame type sub-field of the frame
30
control field set to 0b00.
31
All clusters (server and client) shall support generation, reception and execution 32
of the Default response command. 33
34
Each cluster (server or client) that implements attributes shall support reception
35
of, execution of, and response to all commands to discover, read, write, report,
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 2
14 Foundation Specification
status records in the constructed command, indicating that all attributes were
written successfully, a single write attribute status record shall be included in the 1
command, with the status field set to SUCCESS and the attribute identifier field 2
omitted. 3
4
5
2.4.4 Write Attributes Undivided Command 6
7
The write attributes undivided command is generated when a device wishes to 8
change the values of one or more attributes located on another device, in such a 9
way that if any attribute cannot be written (e.g. if an attribute is not implemented 10
on the device, or a value to be written is outside its valid range), no attribute 11
values are changed. 12
In all other respects, including generation of a write attributes response command, 13
the format and operation of the command is the same as that of the write attributes 14
command, except that the command identifier field shall be set to indicate the 15
write attributes undivided command (see Table 2.9). 16
17
18
2.4.5 Write Attributes Response Command 19
20
2.4.5.1 Write Attributes Response Command Frame Format 21
22
The write attributes response command frame shall be formatted as illustrated in
23
Figure 2.10.
24
25
26
Octets:
Variable 3 3 … 3 27
28
ZCL Write attribute status Write attribute status … Write attribute status 29
header record 1 record 2 record n 30
31
Figure 2.10 Format of the Write Attributes Response Command Frame 32
33
Each write attribute status record shall be formatted as illustrated in Figure 2.11. 34
35
36
Octets: 1 2 37
38
Status Attribute identifier
39
40
Figure 2.11 Format of the Write Attribute Status Record Field 41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 21
1
Octets: Variable Variable Variable … Variable 2
3
ZCL Write attribute Write attribute … Write attribute 4
header record 1 record 2 record n 5
6
Figure 2.12 Format of the Write Attributes No Response Command 7
Frame 8
9
Each write attribute record shall be formatted as illustrated in Figure 2.9. 10
2.4.6.1.1 ZCL Header Fields 11
12
The frame control field shall be specified as follows. The frame type sub-field 13
shall be set to indicate a profile wide command (0b00). The manufacturer specific 14
sub-field shall be set to 0 if this command is being used to write attributes defined 15
for any cluster in the ZCL or 1 if this command is being used to write 16
manufacturer specific attributes. 17
The command identifier field shall be set to indicate the write attributes no 18
response command (see Table 2.9). 19
20
2.4.6.1.2 Write Attribute Records 21
Each write attribute record shall be formatted as illustrated in Figure 2.9 Its fields 22
have the same meaning and contents as the corresponding fields of the Write 23
attributes command. 24
25
2.4.6.2 When Generated 26
27
The write attributes no response command is generated when a device wishes to 28
change the value of one or more attributes located on another device but does not 29
require a response. Each write attribute record shall contain the identifier and the 30
actual value of the attribute to be written. 31
32
2.4.6.3 Effect on Receipt 33
34
On receipt of this command, the device shall attempt to process each specified
35
write attribute record.
36
For each write attribute record included in the command frame, the device shall 37
first check that it corresponds to an attribute that is implemented on this device. If 38
it does not, the device shall ignore the attribute and move on to the next write 39
attribute record. 40
41
If the attribute identified by the attribute identifier is supported, the device shall
42
check whether the attribute is writable. If the attribute is designated as read only,
43
the device shall ignore the attribute and move on to the next write attribute record.
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 23
If the attribute is writable, the device shall check that the supplied value in the
attribute data field is within the specified range of the attribute. If the supplied 1
value does not fall within the specified range of the attribute, the device shall 2
ignore the attribute and move on to the next write attribute record. 3
4
If the value supplied in the attribute data field is within the specified range of the 5
attribute, the device shall write the supplied value to the identified attribute and 6
move on to the next write attribute record. 7
8
2.4.7 Configure Reporting Command 9
10
The Configure Reporting command is used to configure the reporting mechanism 11
for one or more of the attributes of a cluster. 12
13
The individual cluster definitions specify which attributes shall be available to this 14
reporting mechanism, however specific implementations of a cluster may make 15
additional attributes available. 16
17
2.4.7.1 Configure Reporting Command Frame Format 18
The Configure Reporting command frame shall be formatted as illustrated in 19
Figure 2.13. 20
21
22
Octets: 23
Variable Variable … Variable 24
Variable
25
ZCL Attribute reporting Attribute reporting … Attribute reporting 26
header configuration record configuration record configuration record
27
1 2 n
28
29
Figure 2.13 Format of the Configure Reporting Command Frame 30
31
There shall be one attribute reporting configuration record for each attribute to be 32
configured. Each such record shall be formatted as illustrated in Figure 2.14. 33
34
35
Octets: 1 2 0/1 0/2 0/2 0/Variable 0/2 36
Direction Attribute Attribute Minimum Maximum Reportable Timeout 37
identifier data type reporting reporting change period 38
interval interval 39
40
Figure 2.14 Format of the Attribute Reporting Configuration Record 41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 2
24 Foundation Specification
1
Octets: 2
Variable Variable … Variable 3
Variable
4
ZCL Attribute reporting Attribute reporting … Attribute reporting 5
header configuration record configuration record configuration record
1 2 n 6
7
8
Figure 2.19 Format of the Read Reporting Configuration Response 9
Command Frame
10
There shall be one attribute reporting configuration record for each attribute 11
record of the received read reporting configuration command. Each such record 12
shall be formatted as illustrated in Figure 2.20. 13
14
15
Octets: 1 1 2 0/1 0/2 0/2 0/Variable 0/2 16
17
Status Direction Attribute Attribute Minimum Maximum Reportable Timeout 18
identifier data type reporting reporting change period 19
interval interval 20
21
Figure 2.20 Format of the Attribute Reporting Configuration Record Field 22
23
2.4.10.1.1 ZCL Header Fields 24
The frame control field shall be specified as follows. The frame type sub-field 25
shall be set to indicate a profile wide command (0b00). The manufacturer specific 26
sub-field shall be set to 0 if this command is being used to for attributes specified 27
in the ZCL or 1 if this command is being used for manufacturer specific attributes. 28
29
The command identifier field shall be set to indicate the Read reporting 30
configuration response command (see Table 2.9). 31
2.4.10.1.2 Status Field 32
33
If the attribute is not implemented on the sender or receiver of the command, 34
whichever is relevant (depending on direction), this field shall be set to 35
UNSUPPORTED_ATTRIBUTE. If the attribute is supported, but is not capable of 36
being reported, this field shall be set to UNREPORTABLE_ATTRIBUTE. 37
Otherwise, this field shall be set to SUCCESS. 38
39
If the status field is not set to SUCCESS, all fields except the direction and
40
attribute identifier fields shall be omitted.
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 31
(which are often used as set of bit fields), logical types, bitmap types,
enumerations, strings, identifiers and IEEE address (see Table 2.14). 1
2
Reporting is subject to the Minimum Reporting Interval for that attribute (see 3
2.4.7.1.5). After a report, no further reports are sent during this interval. 4
2.4.11.2.3 Changes to 'Analog' Attributes 5
6
If the attribute has an 'analog' data type, a report shall be generated when the 7
attribute undergoes a change of value, in a positive or negative direction, equal to 8
or greater than the Reportable Change for that attribute (see 2.4.7.1.7). The 9
change is measured from the value of the attribute when the Reportable Change is 10
configured, and thereafter from the previously reported value of the attribute. 11
Analog types are signed and unsigned integer types, floating point types and time 12
types (see Table 2.14). 13
14
Reporting is subject to the Minimum Reporting Interval for that attribute (see 15
2.4.7.1.5). After a report, no further reports are sent during this interval. 16
2.4.11.2.4 Cluster Specific Conditions 17
18
The specification for a cluster may add additional conditions for specific attributes 19
of that cluster. 20
2.4.11.2.5 Consolidation of Attribute Reporting 21
22
In order to reduce the resources (such as the number of timers) required for 23
attribute reporting, a device may adapt the timing of reports by relaxing the 24
configured minimum and maximum periods as described below. By employing 25
these techniques a device may limit the number of timers required to any 26
manufacturer specific value, including use of only a single timer, though at the 27
cost of some side effects, such as increased network traffic in some cases. 28
29
In consolidating timers, a number of principles apply:-
30
1/ The maximum reporting interval of an attribute may be reduced, as it should 31
not normally cause a problem to devices to receive reports more frequently than 32
expected – typical reporting intervals are seconds to minutes. It may not be 33
increased, as this may be incompatible with any timeout period set. 34
35
2/ The minimum reporting interval of an attribute may also be reduced. However,
36
it may not be increased, as an application may be relying on receiving reports of
37
changes to an attribute within a given delay time. Minimum values are generally
38
used to reduce network traffic, but this is less important than ensuring that the
39
application timing needs are satisfied.
40
3/ From (1), when consolidating the maximum reporting periods of two or more 41
attributes together, the consolidated reporting period shall be equal to the lowest 42
of the configured maximum intervals of the attributes to be reported. 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 35
4/ Similarly, from (2), when consolidating the minimum reporting periods of two
or more attributes together, the consolidated reporting period shall be equal to the 1
lowest of the configured minimum intervals of the attributes to be reported. 2
3
As a first step, timers for attributes on the same cluster may be consolidated. Such 4
adaptations should aim to send attribute reports for different attributes of the same 5
cluster at the same time, so that they can be consolidated into fewer attribute 6
reports, thus reducing network traffic. 7
To reduce the number of timers further, timers may be consolidated across clusters 8
and endpoints if needed. 9
10
(Note that it is not generally possible to consolidate timeout values (see 2.4.7.1.8) 11
of received attribute reports.) 12
13
2.4.11.3 Effect on Receipt 14
On receipt of this command, a device is notified of the latest values of one or more 15
of the attributes of another device. 16
17
18
2.4.12 Default Response Command 19
20
2.4.12.1 Default Response Command Frame Format 21
22
The default response command frame shall be formatted as illustrated in 23
Figure 2.23. 24
25
26
Octets: Variable 1 1 27
ZCL Command identifier Status code 28
header 29
30
Figure 2.23 Format of the Default Response Command Frame 31
32
2.4.12.1.1 ZCL Header Fields 33
34
The frame control field shall be specified as follows. The frame type sub-field 35
shall be set to indicate a profile wide command (0b00). The manufacturer specific 36
sub-field shall be set to 0 if this command is being sent in response to a command 37
defined for any cluster in the ZCL or 1 if this command is being sent in response 38
to a manufacturer specific command. 39
The command identifier sub-field shall be set to indicate the default response 40
command (see Table 2.9). 41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 2
36 Foundation Specification
1
Octets: Variable 2 1 2
3
ZCL Start attribute Maximum attribute 4
header identifier identifiers 5
6
Figure 2.24 Format of the Discover Attributes Command Frame 7
8
2.4.13.1.1 ZCL Header Fields 9
10
The frame control field shall be specified as follows. The frame type sub-field
11
shall be set to indicate a profile wide command (0b00). The manufacturer specific
12
sub-field shall be set to 0 to discover standard attributes in a ZigBee cluster or 1 to
13
discover manufacturer specific attributes in either a standard or a manufacturer
14
specific cluster.
15
The command identifier field shall be set to indicate the discover attributes 16
command (see Table 2.9). 17
18
2.4.13.1.2 Start Attribute Identifier Field
19
The start attribute identifier field is 16-bits in length and specifies the value of the 20
identifier at which to begin the attribute discovery. 21
22
2.4.13.1.3 Maximum Attribute Identifiers Field
23
The maximum attribute identifiers field is 8-bits in length and specifies the 24
maximum number of attribute identifiers that are to be returned in the resulting 25
discover attributes response command. 26
27
2.4.13.2 When Generated 28
29
The discover attributes command is generated when a remote device wishes to 30
discover the identifiers and types of the attributes on a device which are supported 31
within the cluster to which this command is directed. 32
33
2.4.13.3 Effect on Receipt 34
On receipt of this command, the device shall construct an ordered list of attribute 35
information records, each containing a discovered attribute identifier and its data 36
type, in ascending order of attribute identifiers. This list shall start with the first 37
attribute that has an identifier that is equal to or greater than the identifier 38
specified in the start attribute identifier field. The number of attribute identifiers 39
included in the list shall not exceed that specified in the maximum attribute 40
identifiers field. 41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 2
38 Foundation Specification
The device shall then generate a discover attributes response command containing
the discovered attributes and their types, and shall return it to the originator of the 1
discover attributes command. 2
3
4
2.4.14 Discover Attributes Response Command 5
6
2.4.14.1 Discover Attributes Response Command Frame 7
Format 8
9
The discover attributes response command frame shall be formatted as illustrated 10
in Figure 2.25. 11
12
13
Octets: 14
1 3 3 … 3
Variable 15
ZCL Discovery Attribute Attribute … Attribute 16
header complete information 1 information 2 information n 17
18
Figure 2.25 Format of the Discover Attributes Response Command Frame 19
20
Each attribute report field shall be formatted as illustrated in Figure 2.26. 21
22
23
Octets: 2 1 24
25
Attribute identifier Attribute data type 26
27
Figure 2.26 Format of the Attribute Report Fields 28
29
2.4.14.1.1 ZCL Header Fields 30
31
The frame control field shall be specified as follows. The frame type sub-field 32
shall be set to indicate a profile wide command (0b00). The manufacturer specific 33
sub-field shall be set to the same value included in the original discover attributes 34
command. 35
The command identifier field shall be set to indicate the discover attributes 36
response command (see Table 2.9). 37
38
2.4.14.1.2 Discovery Complete Field 39
The discovery complete field is a boolean field. A value of 0 indicates that there 40
are more attributes to be discovered. A value of 1 indicates that there are no more 41
attributes to be discovered. 42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 39
Table 2.9. Within a manufacturer specific application profile, the full ranges of
clusters, device, attribute and command identifiers can be used. 1
2
Table 2.9 Valid Profile Identifier Values
3
Profile Identifier Description 4
5
0x0000 – 0x7fff Standard ZigBee application profile. 6
7
0x8000 – 0xbfff Reserved.
8
0xc000 – 0xffff Manufacturer Specific application profile. 9
10
2.5.1.2 Device Identifier 11
12
A device identifier is 16-bits in length and specifies a specific device within a 13
standard application profile. A device identifier shall be set to one of the non- 14
reserved values listed in Table 2.10. 15
Table 2.10 Valid Device Identifier Values 16
17
Device Identifier Description 18
19
0x0000 – 0xbfff Standard ZigBee device description. 20
0xc000 – 0xffff Reserved. 21
22
23
2.5.1.3 Cluster Identifier
24
A cluster identifier is 16-bits in length and specifies the set of related commands 25
and attributes within a standard application profile. It shall be set to one of the 26
non-reserved values listed in Table 2.11. 27
28
Table 2.11 Valid Cluster Identifier Values
29
Cluster Identifier Description 30
31
0x0000 – 0x7fff Standard ZigBee cluster. 32
0x8000 – 0xfbff Reserved. 33
34
0xfc00 – 0xffff Manufacturer specific cluster within a standard ZigBee 35
profile.
36
37
2.5.1.4 Attribute Identifier 38
39
An attribute identifier is 16-bits in length and specifies a single attribute within a 40
standard application profile. An attribute identifier, defined within the ZCL, shall 41
be set to one of the non-reserved values listed in Table 2.12. Manufacturer specific 42
attributes within a standard ZigBee cluster can be defined over the full 16-bit 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 41
range but any manipulation shall be applied using the appropriate manufacturer
code. 1
2
Table 2.12 Valid ZCL Defined Attribute Identifier Values
3
Attribute Identifier Description 4
5
0x0000 – 0x3fff Standard ZigBee attribute. 6
7
0x4000 – 0xffff Reserved.
8
9
2.5.1.5 Command Identifier 10
11
A command identifier is 8-bits in length and specifies a specific command within
12
the ZCL as a whole or within a specific cluster. A command identifier shall be set
13
to one of the non-reserved values listed in Table 2.13. Manufacturer specific
14
commands within a standard ZigBee cluster can be defined over the full 8-bit
15
range but each shall use the appropriate manufacturer code.
16
Table 2.13 Valid ZCL Defined Command Identifier Values 17
18
Command Identifier Description 19
0x00 – 0x7f Standard ZigBee command. 20
21
0x80 – 0xff Reserved. 22
23
2.5.2 Data Types 24
25
ZigBee devices, such as thermostats, lamps, etc., are defined in terms of the 26
attributes they contain, which can be written, read or reported using the 27
commands defined in clause 2.4. Table 2.14 details the data types and formats that 28
can be used for these attributes. Note that individual clusters, which may use 29
different or new types, show valid values, ranges, and units for the attributes they 30
represent. 31
32
Each data type is allocated an 8-bit data type ID. The most significant 5 bits of this 33
ID is used to divide the types into 32 type classes, and the least significant 3 bits 34
specify a specific data type within this class. 35
Table 2.14 also indicates for each data type whether it is considered to be 'analog' 36
or 'discrete'. Values of analog types may be added to or subtracted from other 37
values of the same type, and are typically used to measure the value of properties 38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 2
42 Foundation Specification
in the real world that vary continuously over a range. Values of discrete data types
only have meaning as individual values, and may not be added or subtracted. 1
2
Table 2.14 Data Types
3
Length Of 4
Data Invalid Analog / 5
Type Class Type ID Data Type Data Number Discrete
(Octets) 6
7
Null 0x00 No data 0 - - 8
0x01 – Reserved - - 9
0x7 10
General data 0x08 8-bit data 1 - D 11
12
0x09 16-bit data 2 - 13
0x0a 24-bit data 3 - 14
15
0x0b 32-bit data 4 - 16
0x0c – Reserved - - 17
0x0f 18
Logical 0x10 Boolean 1 0xff D
19
20
0x11 – Reserved - - 21
0x17 22
Bitmap 0x18 8-bit bitmap 1 - D 23
24
0x19 16-bit bitmap 2 -
25
0x1a 24-bit bitmap 3 - 26
27
0x1b 32-bit bitmap 4 -
28
0x1c – Reserved - - 29
0x1f 30
Unsigned integer 0x20 Unsigned 8-bit 1 0xff A 31
integer 32
33
0x21 Unsigned 16-bit 2 0xffff
integer 34
35
0x22 Unsigned 24-bit 3 0xffffff 36
integer
37
0x23 Unsigned 32-bit 4 0xffffffff 38
integer 39
0x24 – Reserved - - 40
0x27 41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 43
• Zero: this is indicated by both a zero exponent and zero mantissa. The sign bit
indicates whether this is + or – zero, the value 0x0000 representing +zero and 1
0x8000 representing –zero. 2
3
• Un-normalised numbers: numbers < 2-14 are indicated by a value of 0 for the 4
exponent. The hidden bit is set to zero. 5
The maximum value represented by the mantissa is 0x3ff / 1024. The largest 6
number that can be represented is therefore: 7
8
-1Sign * (1 +1023/1024) * 2 (30 -15) = – 1.9990234 * 32768 = – 65504 9
10
Certain applications may choose to scale this value to allow representation of
11
larger values (with a correspondingly more coarse resolution). For details, see the
12
relevant device descriptions.
13
For example, a value of +2 is represented by +2(16-15) * 1.0 = 0x4000, while a 14
value of –2 is represented by 0xc000. 15
16
Similarly, a value of +0.625 is represented by +2(17-15) * 1.625 = 0x4680, while –
17
0.625 is represented by 0xc680.
18
19
2.5.2.9 Single Precision
20
The format of the single precision data type is based on the IEEE 754 standard for 21
binary floating-point arithmetic [B4]. This number format should be used very 22
sparingly, when absolutely necessary, keeping in mind the code and processing 23
required supporting it. 24
25
The format and interpretation of values of this data type follow the same rules as 26
given for the semi-precision data type, but with longer sub-fields, as follows. 27
Length of mantissa = 23 bits, length of exponent = 8 bits 28
29
For further details, see [B4]. 30
31
2.5.2.10 Double Precision 32
The format of the double precision data type is based on the IEEE 754 standard 33
for binary floating-point arithmetic [B4]. This number format should be used very 34
sparingly, when absolutely necessary, keeping in mind the code and processing 35
required supporting it. 36
37
The format and interpretation of values of this data type follow the same rules as 38
given for the semi-precision data type, but with longer sub-fields, as follows. 39
Length of mantissa = 52 bits, length of exponent = 11 bits 40
41
For further details, see [B4]. 42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 47
A character string with no contents, i.e. with the character count sub-field equal to
0x00 and a zero length character data sub-field, shall be referred to as an 'empty 1
string'. 2
3
2.5.2.13 Time of Day 4
5
The Time of Day data type shall be formatted as illustrated in Figure 2.30. 6
7
8
Octets: 1 1 1 1 9
10
Hours Minutes Seconds Hundredths
11
12
Figure 2.30 Format of the Time of Day Type 13
14
The hours subfield represents hours according to a 24 hour clock. The range is 15
from 0 to 23. 16
The minutes subfield represents minutes of the current hour. The range is from 0 17
to 59. 18
19
The seconds subfield represents seconds of the current minute. The range is from 20
0 to 59. 21
The hundredths subfield represents 100ths of the current second. The range is 22
from 0 to 99. 23
24
A value of 0xff in any subfield indicates an unused subfield. If all subfields have 25
the value 0xff, this indicates an invalid or 'don't care' value of the data type. 26
27
2.5.2.14 Date 28
The Time of day data type shall be formatted as illustrated in Figure 2.31. 29
30
31
Octets: 1 1 1 1 32
33
Year - 1900 Month Day of month Day of week 34
35
Figure 2.31 Format of the Date Type 36
37
The year - 1900 subfield has a range of 0 to 255, representing years from 1900 to 38
2155. 39
40
The month subfield has a range of 1 to 12, representing January to December.
41
The day of month subfield has a range of 1 to 31. Note that values in the range 29 42
to 31 may be invalid, depending on the month and year. 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 49
C H A P T E R
1
3
2
3
4
5
6
7
8
9
1
2
Configuration tool Any device 3
4
Basic 5
C S 6
Power configuration 7
C S
8
Device temperature 9
C S
configuration 10
C S 11
Identify
12
13
14
C = Client S = Server 15
16
Note:- Device names are examples for illustration only 17
18
Figure 3.1 Typical Usage of Device Configuration and Installation 19
Clusters 20
21
22
Table 3.2 Groups and Scenes Clusters 23
24
Cluster Name Description 25
26
Groups Attributes and commands for allocating a device to one or more of a number
of groups of devices, where each group is addressable by a group address. 27
28
Scenes Attributes and commands for setting up and recalling a number of scenes for 29
a device. Each scene corresponds to a set of stored values of specified device
30
attributes.
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 55
1
Table 3.3 On/Off and Level Control Clusters
2
3
Cluster Name Description
4
On/off Attributes and commands for switching devices between ‘On’ 5
and ‘Off’ states. 6
7
On/off switch configuration Attributes and commands for configuring on/off switching
devices 8
9
Level control Attributes and commands for controlling a characteristic of 10
devices that can be set to a level between fully ‘On’ and fully
‘Off’. 11
12
13
14
15
16
Configuration tool On/off switch Simple lamp 17
18
On/off
C S 19
On/off switch 20
C configuration S
21
22
Dimmer switch Dimmable lamp 23
24
On/off 25
C S
On/off switch Level control 26
configuration S C S 27
28
29
C = Client S = Server 30
Note:- Device names are examples for illustration only
31
32
33
Figure 3.2 Typical Usage of On / Off and Level Control Clusters 34
35
36
Table 3.4 Alarms Cluster 37
38
Cluster Name Description 39
Alarms Attributes and commands for sending alarm notifications and 40
configuring alarm functionality. 41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 3
56 General Specification
1
2
Network management device Any device
3
Alarms 4
C S 5
Configuration
Notification 6
7
8
9
C = Client S = Server 10
Note:- Device names are examples for illustration only 11
12
13
Figure 3.3 Typical Usage of the Alarm Clusters 14
15
16
Table 3.5 Other Clusters 17
18
Cluster Name Description 19
20
Time Attributes and commands that provide a basic interface to a real-time
clock. 21
22
RSSI Location Attributes and commands that provide a means for exchanging 23
location information and channel parameters among devices.
24
25
26
3.2 Basic Cluster 27
28
29
3.2.1 Overview 30
31
Attributes and commands for determining basic information about a device,
32
setting user device information such as location, enabling a device and resetting it
33
to factory defaults.
34
Note: Where a physical ZigBee node supports multiple endpoints it will often be 35
the case that many of these settings will apply to the whole node, that is they are 36
the same for every endpoint on the device. In such cases they can be implemented 37
once for the node, and mapped to each endpoint. 38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 57
3.2.2 Server 1
2
3.2.2.1 Dependencies 3
For the alarms functionality of this cluster to be operational, the Alarms cluster 4
server shall be implemented on the same endpoint. 5
6
3.2.2.2 Attributes 7
8
For convenience, the attributes defined in this specification are arranged into sets 9
of related attributes; each set can contain up to 16 attributes. Attribute identifiers 10
are encoded such that the most significant three nibbles specify the attribute set 11
and the least significant nibble specifies the attribute within the set. The currently 12
defined attribute sets are listed in Table 3.6. 13
Table 3.6 General Attribute Sets 14
15
Attribute Set 16
IDentifier Description
17
0x000 Basic Device Information
18
19
0x001 Basic Device Settings 20
0x002 – 0xfff Reserved 21
22
23
3.2.2.2.1 Basic Device Information Attribute Set
24
The Basic Device Information attribute set contains the attributes summarized in 25
Table 3.7. 26
27
Table 3.7 Attributes of the Basic Device Information Attribute Set
28
29
Identifier Name Type Range Access Default Mandatory
/ Optional 30
31
0x0000 ZCLVersion Unsigned 0x00 – 0xff Read only 0x00 M
8-bit integer
32
33
0x0001 ApplicationVersion Unsigned 0x00 – 0xff Read only 0x00 O 34
8-bit integer 35
0x0002 StackVersion Unsigned 0x00 – 0xff Read only 0x00 O 36
8-bit integer 37
0x0003 HWVersion Unsigned 0x00 – 0xff Read only 0x00 O
38
8-bit integer 39
40
0x0004 ManufacturerName Character 0 – 32 bytes Read only Empty O 41
string string
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 3
58 General Specification
Mandatory
5
/ Optional
Identifier Name Type Range Access Default 6
7
8
0x0010 MainsAlarmMask Bitmap 0000 00xx Read/ 0000 0000 O 9
(8-bits) write 10
0x0011 MainsVoltageMinThreshold Unsigned 0x0000 – Read/ 0x0000 O 11
16-bit 0xffff write 12
integer 13
0x0012 MainsVoltageMaxThreshold Unsigned 0x0000 – Read/ 0xffff O 14
16-bit 0xffff write 15
integer 16
0x0013 MainsVoltageDwellTripPoint Unsigned 0x0000 – Read/ 0x0000 O
17
16-bit 0xffff write 18
integer 19
20
The alarm settings in this table require the Alarms cluster to be implemented on 21
the same device - see Dependencies. If the Alarms cluster is not present on the 22
same device they may be omitted. 23
24
3.3.2.2.2.1 MainsAlarmMask Attribute 25
26
The MainsAlarmMask attribute is 8-bits in length and specifies which mains 27
alarms may be generated, as listed in Table 3.17. A ‘1’ in each bit position enables 28
the alarm. 29
Table 3.17 Values of the MainsAlarmMask Attribute 30
31
MainsAlarmMask 32
Alarm 33
Attribute Bit Number
34
0 Mains Voltage too low (7.2.2.2.2)
35
1 Mains Voltage too high (7.2.2.2.3) 36
37
2–7 Reserved
38
39
3.3.2.2.2.2 MainsVoltageMinThreshold Attribute 40
The MainsVoltageMinThreshold attribute is 16-bits in length and specifies the 41
lower alarm threshold, measured in units of 100mV, for the MainsVoltage 42
attribute. The value of this attribute shall be less than MainsVoltageMaxThreshold. 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 3
66 General Specification
Mandatory
/ Optional
4
Identifier Name Type Range Access Default 5
6
7
0x0030 BatteryManufacturer Character 0 – 16 Read/write Empty O 8
string bytes string
9
0x0031 BatterySize 8-bit 0x00 – Read/write 0xff O 10
Enumeration 0xff 11
0x0032 BatteryAHrRating Unsigned 0x0000 Read/write - O 12
16-bit integer – 0xffff 13
14
0x0033 BatteryQuantity Unsigned 0x00 – Read/write - O
8-bit integer 0xff
15
16
0x0034 BatteryRatedVoltage Unsigned 0x00 – Read/write - O 17
8-bit integer 0xff 18
0x0035 BatteryAlarmMask Bitmap 0000 Read/write 0000 0000 O 19
(8-bits) 000x 20
0x0036 BatteryVoltageMin Unsigned 0x00 – Read/write 0x0000 O
21
Threshold 8-bit integer 0xff 22
23
24
3.3.2.2.4.1 BatteryManufacturer Attribute 25
The BatteryManufacturer attribute is a maximum of 16 bytes in length and 26
specifies the name of the battery manufacturer as a ZigBee character string. 27
28
3.3.2.2.4.2 BatterySize Attribute 29
30
The BatterySize attribute is an enumeration which specifies the type of battery 31
being used by the device. This attribute shall be set to one of the non-reserved 32
values listed in Table 3.20. 33
Table 3.20 Values of the BatterySize Attribute 34
35
BatterySize 36
Attribute Value Description
37
38
0x00 No battery
39
0x01 Built in 40
0x02 Other
41
42
0x03 AA 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 69
3.4.2 Server 1
2
3.4.2.1 Dependencies 3
For the alarm functionality described in this cluster to be operational, any 4
endpoint that implements the Device Temperature Configuration server cluster 5
shall also implement the Alarms server cluster (see 3.11). 6
7
3.4.2.2 Attributes 8
9
For convenience, the attributes defined in this specification are arranged into sets 10
of related attributes; each set can contain up to 16 attributes. Attribute identifiers 11
are encoded such that the most significant three nibbles specify the attribute set 12
and the least significant nibble specifies the attribute within the set. The currently 13
defined attribute sets are listed in Table 3.22. 14
Table 3.22 Device Temperature Configuration Attribute Sets 15
16
Attribute Set 17
Identifier Description
18
0x000 Device Temperature Information
19
20
0x001 Device Temperature Settings 21
0x002 – 0xfff Reserved 22
23
24
3.4.2.2.1 Device Temperature Information Attribute Set
25
The Device Temperature Information attribute set contains the attributes 26
summarized in Table 3.23. 27
28
Table 3.23 Attributes of the Device Temperature Information Attribute Set
29
30
Identifier Name Type Range Access Default Mandatory
/ Optional 31
32
0x0000 CurrentTemperature Signed -200 to +200 Read - M 33
16-bit only
integer
34
35
0x0001 MinTempExperienced Signed -200 to +200 Read - O 36
16-bit only 37
integer
38
0x0002 MaxTempExperienced Signed -200 to +200 Read - O 39
16-bit only 40
integer
41
0x0003 OverTempTotalDwell Unsigned 0x0000 – Read 0 O 42
16-bit 0xffff only 43
integer 44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 3
72 General Specification
Mandatory
6
/ Optional
Identifier Name Type Range Access Default 7
8
9
0x0010 DeviceTempAlarmMask Bitmap 0000 00xx Read/ 0000 O 10
(8-bit) write 0000 11
0x0011 LowTempThreshold Signed -200 to +200 Read/ - O 12
16-bit integer write 13
14
0x0012 HighTempThreshold Signed -200 to +200 Read/ - O
16-bit integer write 15
16
0x0013 LowTempDwellTripPoint Unsigned 0x000000 – Read/ - O 17
24-bit integer 0xffffff write
18
0x0014 HighTempDwellTripPoint Unsigned 0x000000 – Read/ - O 19
24-bit integer 0xffffff write 20
21
All attributes in this table require the Alarms cluster to be implemented on the 22
same device - see Dependencies. If the Alarms cluster is not present on the same 23
device they may be omitted. 24
25
3.4.2.2.2.1 DeviceTempAlarmMask Attribute 26
27
The DeviceTempAlarmMask attribute is 8-bits in length and specifies which 28
alarms may be generated, as listed in Table 3.25. A ‘1’ in each bit position enables 29
the corresponding alarm. 30
Table 3.25 Values of the DeviceTempAlarmMask Attribute 31
32
DeviceTempAlarmMask 33
Alarm
Attribute Bit Number 34
0 Device Temperature too low (8.2.2.2.2) 35
36
1 Device Temperature too high (8.2.2.2.3) 37
2–7 Reserved 38
39
40
3.4.2.2.2.2 LowTempThreshold Attribute 41
The LowTempThreshold attribute is 16-bits in length and specifies the lower alarm 42
threshold, measured in degrees Celsius (range -200°C to 200°C), for the 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 3
74 General Specification
3.5.2.2 Attributes
1
The server supports the attribute shown in Table 3.26. 2
Table 3.26 Attributes of the Identify Server Cluster 3
4
Mandatory 5
Identifier Name Type Range Access Default
/ Optional 6
7
0x0000 IdentifyTime Unsigned 0x0000 – Read / 0x0000 M
16-bit integer 0xffff write
8
9
10
3.5.2.2.1 IdentifyTime Attribute 11
The IdentifyTime attribute specifies the remaining length of time, in seconds, that 12
the device will continue to identify itself. 13
14
If this attribute is set to a value other than 0x0000 then the device shall enter its 15
identification procedure, in order to indicate to an observer which of several 16
devices it is. It is recommended that this procedure consists of flashing a light 17
with a period of 0.5 seconds. The IdentifyTime attribute shall be decremented 18
every second. 19
If this attribute reaches or is set to the value 0x0000 then the device shall 20
terminate its identification procedure. 21
22
3.5.2.3 Commands Received 23
24
The server side of the identify cluster is capable of receiving the commands listed 25
in Table 3.27. 26
Table 3.27 Received Command IDs for the Identify Cluster 27
28
Command Identifier Field Mandatory 29
Description
Value / Optional 30
31
0x00 Identify M
32
0x01 Identify Query M 33
0x02 – 0xff Reserved 34
35
36
3.5.2.3.1 Identify Command 37
The identify command starts or stops the receiving device identifying itself. 38
39
3.5.2.3.1.1 Payload Format 40
41
The identify query response command payload shall be formatted as illustrated in 42
Figure 3.4. 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 77
1
Octets 2 2
3
Data Type Unsigned 16-bit Integer 4
Field Name Identify Time 5
6
7
Figure 3.4 Format of the Identify Query Response Command Payload
8
9
3.5.2.3.1.2 Effect on Receipt
10
On receipt of this command, the device shall set the IdentifyTime attribute to the 11
value of the Identify Time field. This then starts, continues, or stops the device's 12
identification procedure as detailed in 3.5.2.2.1. 13
14
3.5.2.3.2 Identify Query Command 15
The identify query command allows the sending device to request the target or 16
targets to respond if they are currently identifying themselves. 17
18
This command has no payload. 19
20
3.5.2.3.2.1 Effect on Receipt 21
On receipt of this command, if the device is currently identifying itself then it 22
shall generate an appropriate Identify Query Response command, see 3.5.2.4.1, 23
and unicast it to the requester. If the device is not currently identifying itself it 24
shall take no further action. 25
26
3.5.2.4 Commands Generated 27
28
The server side of the identify cluster is capable of generating the commands 29
listed in Table 3.28. 30
Table 3.28 Generated Command IDs for the Identify Cluster 31
32
Command Identifier Field Mandatory 33
Description
Value / Optional 34
35
0x00 Identify Query Response M
36
0x01 – 0xff Reserved 37
38
3.5.2.4.1 Identify Query Response Command 39
40
The identify query response command is generated in response to receiving an 41
Identify Query command, see 3.5.2.3.1, in the case that the device is currently 42
identifying itself. 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 3
78 General Specification
• They are not explicitly spelled out but may be derived from the binding table in
the APS of the sending device. 1
2
• Broadcast addressing is being employed, either with respect to the device 3
address or the endpoint identifier. 4
• Group addressing is being employed. 5
6
On receipt of a group cluster command, the APS will, at least conceptually, 7
deliver the frame to each destination endpoint spelled out in the addressing 8
portion of the APS header and, again conceptually speaking, the application entity 9
resident at that endpoint will process the command and respond as necessary. 10
From an implementation standpoint, of course, this may be done in a more 11
economical way that does not involve duplication and separate processing, e.g by 12
providing a hook in the APS whereby group cluster commands could be delivered 13
to a special application entity without duplication. 14
15
3.6.2.1 Dependencies 16
For correct operation of the 'Add group if identifying' command, any endpoint 17
that implements the Groups server cluster shall also implement the Identify server 18
cluster. 19
20
3.6.2.2 Attributes 21
22
The server supports the attribute shown in Table 3.29. 23
Table 3.29 Attributes of the Groups Server Cluster 24
25
Mandatory 26
Identifier Name Type Range Access Default / Optional 27
28
0x0000 NameSupport 8-bit bitmap x0000000 Read only - M
29
30
The most significant bit of the NameSupport attribute indicates whether or not 31
group names are supported. A value of 1 indicates that they are supported, and a 32
value of 0 indicates that they are not supported. 33
3.6.2.2.1 Group Names 34
35
Group names are between 0 and 16 characters long. Support of group names is 36
optional, and is indicated by the NameSupport attribute. Group names, if 37
supported, must be stored in a separate data structure managed by the application 38
in which the entries correspond to group table entries. 39
3.6.2.2.2 Commands Received 40
41
The groups cluster is concerned with management of the group table on a device. 42
In practice, the group table is managed by the APS and the table itself is available 43
to the next higher layer as an AIB attribute. A command set is defined here and 44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 81
the implementation details of that command set in terms of the facilities provided
by the APS is left up to the implementer of the cluster library itself. 1
2
The server side of the groups cluster is capable of receiving the commands listed 3
in Table 3.30. 4
Table 3.30 Received Command IDs for the Groups Cluster 5
6
Command Identifier Field Description Mandatory 7
Value / Optional 8
0x00 Add group M 9
10
0x01 View group M 11
0x02 Get group membership M 12
13
0x03 Remove group M 14
0x04 Remove all groups M 15
16
0x05 Add group if identifying M
17
0x06 – 0xff Reserved - 18
19
3.6.2.2.3 Add Group Command 20
21
The add group command allows the sending device to add group membership in a 22
particular group for one or more endpoints on the receiving device. 23
24
3.6.2.2.3.1 Payload Format 25
26
The Add Group command payload shall be formatted as illustrated in Figure 3.6
27
28
Variable 29
Octets
30
Data Type Unsigned 16-bit Integer Character string 31
32
Field Name Group ID Group Name 33
34
35
Figure 3.6 Format of the Add Group Command Payload
36
3.6.2.2.3.2 Effect on Receipt 37
38
On receipt of this command, the device shall (if possible) add the Group ID and 39
Group Name to its Group Table. It shall then generate an appropriate Add Group 40
Response command indicating success or failure. See 3.6.2.3.1. 41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 3
82 General Specification
The fields of the get group membership response command have the following
semantics: 1
2
• The Capacity field shall contain the remaining capacity of the group table of 3
the device. The following values apply: 4
0No further groups may be added. 5
0 < Capacity < 0xfeCapacity holds the number of groups that may be added 6
0xfeAt least 1 further group may be added (exact number is unknown) 7
0xffIt is unknown if any further groups may be added 8
• The Group count field shall contain the number of groups contained in the 9
group list field. 10
11
• The Group list field shall contain the identifiers either of all the groups in the 12
group table (in the case where the group list field of the received get group 13
membership command was empty) or all the groups from the group list field of 14
the received get group membership command which are in the group table. 15
16
3.6.2.3.3.2 When Generated 17
When an application entity receives the get group membership command and 18
either the group list of the command payload is empty or the group list contains at 19
least one group to which the entity belongs, the entity shall respond with a get 20
group membership response command. 21
22
3.6.2.3.4 Remove Group Response Command 23
24
The remove group response command is generated by an application entity in
25
response to the receipt of a remove group command.
26
27
3.6.2.3.4.1 Payload Format 28
The Remove Group Response command payload shall be formatted as illustrated 29
in Figure 3.14. 30
31
32
Octets 1 2 33
34
Data Type 8-bit Enumeration Unsigned 16-bit Integer 35
36
Field Name Status Group ID
37
38
Figure 3.14 Format of the Remove Group Response Command Payload 39
40
3.6.2.3.4.2 When Generated 41
42
This command is generated in response to a received Remove Group command 43
3.6.2.2.6. The Status field is set to SUCCESS or NOT_FOUND as appropriate. 44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 3
88 General Specification
The Group ID field is set to the Group ID field of the received Remove Group
command. 1
2
3
3.6.3 Client 4
5
3.6.3.1 Dependencies 6
7
None.
8
3.6.3.2 Attributes 9
10
The Client cluster has no attributes. 11
12
3.6.3.3 Commands Received 13
14
The client receives the cluster specific response commands detailed in 3.6.2.3. 15
16
3.6.3.4 Commands Generated 17
The client generates the cluster specific commands detailed in 3.6.3.3. 18
19
20
3.7 Scenes Cluster 21
22
23
3.7.1 Overview 24
25
Attributes and commands for setting up and recalling scenes. Each scene 26
corresponds to a set of stored values of specified attributes. 27
28
In most cases scenes are associated with a particular group ID. Scenes may also
29
exist without a group, in which case the value 0x0000 replaces the group ID. Note
30
that extra care is required in these cases to avoid a scene ID collision, and that
31
commands related to scenes without a group may only be unicast, i.e.: they may
32
not be multicast or broadcast.
33
34
3.7.2 Server 35
36
3.7.2.1 Dependencies 37
38
Any endpoint that implements the Scenes server cluster shall also implement the 39
Groups server cluster. 40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 89
3.7.2.2 Attributes
1
For convenience, the attributes defined in this specification are arranged into sets 2
of related attributes; each set can contain up to 16 attributes. Attribute identifiers 3
are encoded such that the most significant three nibbles specify the attribute set 4
and the least significant nibble specifies the attribute within the set. The currently 5
defined attribute sets are listed in Table 3.32. 6
Table 3.32 Scenes Attribute Sets 7
8
Attribute Set 9
Description
Identifier 10
11
0x000 Scene Management Information
12
0x001 – 0xfff Reserved 13
14
3.7.2.2.1 Scene Management Information Attribute Set 15
16
The Scene Management Information attribute set contains the attributes 17
summarized in Table 3.33. 18
Table 3.33 Attributes of the Scene Management Information Attribute Set 19
20
Mandatory
21
/ Optional
22
Identifier Name Type Range Access Default
23
24
0x0000 SceneCount Unsigned 0x00 – 0xff Read only 0x00 M 25
8-bit integer (see 3.7.2.3.1) 26
27
0x0001 CurrentScene Unsigned 0x00 – 0xff Read only 0x00 M 28
8-bit integer (see 3.7.2.3.1)
29
0x0002 CurrentGroup Unsigned 0x0000 – 0xfff7 Read only 0x00 M 30
16-bit 31
integer
32
0x0003 SceneValid Boolean 0x00 – 0x01 Read only 0x00 M 33
34
0x0004 NameSupport 8-bit bitmap x0000000 Read only - M
35
0x0005 LastConfiguredBy IEEE - Read only - O 36
Address 37
38
The most significant bit of the NameSupport attribute indicates whether or not 39
group names are supported. A value of 1 indicates that they are supported, and a 40
value of 0 indicates that they are not supported. 41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 3
90 General Specification
The fields of each scene table entry consist of a number of sets. The base set
consists of the first four fields of Table 3.34. A set of extension fields can be 1
added by each additional cluster implemented on a device. 2
3
Table 3.34 Fields of a Scene Table Entry
4
Field Type Valid Range Description 5
6
Scene group ID Unsigned 0x0000 – 0xfff7 The group ID for which this 7
16-bit integer scene applies, or 0x0000 if 8
the scene is not associated 9
with a group.
10
Scene ID Unsigned 0x00 – 0xff The identifier, unique within 11
8-bit integer (see 3.7.2.3.1) this group, which is used to 12
identify this scene.
13
Scene name Character string 0 – 16 characters The name of the scene 14
(optional) 15
Scene transition time Unsigned 0x0000 – 0xffff The amount of time, in 16
16-bit integer seconds, it will take for the 17
device to change from its 18
current state to the requested 19
scene. 20
Extension field sets Variable Variable See the Scene Table 21
Extensions subsections of 22
individual clusters. Each 23
extension field set holds a set
24
of values of attributes for a
cluster implemented on the 25
device. The sum of all such 26
sets defines a scene. 27
28
3.7.2.3.1 Scene Names 29
30
Scene names are between 0 and 16 characters long. Support of scene names is 31
optional, and is indicated by the NameSupport attribute. If scene names are not 32
supported, any commands that writes a scene name shall simply discard the name, 33
and any command that returns a scene names shall return the null string. 34
3.7.2.3.2 Maximum Number of Scenes 35
36
The number of scenes capable of being stored in the table is defined by the profile 37
in which this cluster is used. The default maximum, in the absence of specification 38
by the profile, is 16. 39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 3
92 General Specification
1
Octets 2 1 2
3
Data Type Unsigned 16-bit Integer Unsigned 8-bit Integer 4
5
Field Name Group ID Scene ID
6
7
Figure 3.19 Format of the Store Scene Command Payload 8
9
3.7.2.4.5.2 Effect on Receipt 10
11
On receipt of this command, the device shall (if possible) add an entry to the 12
Scene Table with the Scene ID and Group ID given in the command, and all 13
extension fields corresponding to the current state of other clusters on the device. 14
If an entry already exists with the same Scene ID and Group ID it will be replaced. 15
If the command was addressed to a single device (not to a group) then it shall 16
generate an appropriate Store Scene Response command indicating success or 17
failure. See 3.7.2.5.5. 18
19
3.7.2.4.6 Recall Scene Command 20
The Recall Scene command may be addressed to a single device or to a group. 21
22
3.7.2.4.6.1 Payload Format 23
24
The Recall Scene command payload shall be formatted as illustrated in 25
Figure 3.20. 26
27
28
Octets 2 1 29
30
Data Type Unsigned 16-bit Integer Unsigned 8-bit Integer
31
Group ID Scene ID 32
Field Name
33
34
Figure 3.20 Format of the Recall Scene Command Payload 35
36
3.7.2.4.6.2 Effect on Receipt 37
38
On receipt of this command, the device shall (if possible) locate the entry in its
39
Scene Table with the Group ID and Scene ID given in the command. For each
40
other cluster on the device, it shall then retrieve any corresponding extension
41
fields from the Scene Table and set the attributes and corresponding state of the
42
cluster accordingly.
43
This command does not result in a response command. 44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 3
96 General Specification
1
Octets 1 2 1 0/2 0 / Variable 0 / Variable 2
3
Data 8-bit Unsigned 16- Unsigned Unsigned Character Variable 4
Type Enumeration bit Integer 8-bit 16-bit string (multiple types) 5
Integer Integer
6
Field Status Group ID Scene ID Transition Scene Name Extension field 7
Name time sets, one per 8
cluster
9
10
Figure 3.23 Format of the View Scene Response Command Payload 11
12
The format of each extension field set is a 16 bit field carrying the cluster ID, 13
followed by an 8 bit data length field and the set of scene extension fields 14
specified in the relevant cluster. These fields are concatenated together in the 15
order given in the cluster. 16
Extension field sets = 17
{{ClusterID 1, length 1, {extension field set 1}}, {ClusterID 2, length 2, 18
{extension field set 2 }}, ... }. 19
20
3.7.2.5.2.2 When Generated 21
22
This command is generated in response to a received View Scene command 23
11.2.4.2. 24
25
The entry in the Scene Table with Scene ID and Group ID given in the received
26
View Scene command is located (if possible). The Status field is set to SUCCESS,
27
NOT_FOUND (the scene is not present in the Scene Table) or INVALID_FIELD
28
(the group is not present in the Group Table) as appropriate. The Group ID and
29
Scene ID fields are set to the corresponding fields in the received View Scene
30
command.
31
If the status is SUCCESS, the Transition time, Scene Name and Extension field 32
fields are copied from the corresponding fields in the table entry, otherwise they 33
are omitted. 34
35
3.7.2.5.3 Remove Scene Response Command
36
37
3.7.2.5.3.1 Payload Format 38
The Remove Scene Response command payload shall be formatted as illustrated 39
in Figure 3.24. 40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 99
1
Octets 1 2 1 2
3
Data Type 8-bit Enumeration Unsigned 16-bit Integer Unsigned 8-bit Integer 4
5
Field Name Status Group ID Scene ID
6
7
Figure 3.24 Format of the Remove Scene Response Command Payload 8
9
3.7.2.5.3.2 When Generated 10
11
This command is generated in response to a received Remove Scene command 12
10.2.2.4. The Status field is set to SUCCESS, NOT_FOUND (the scene is not 13
present in the Scene Table) or INVALID_FIELD (the group is not present in the 14
Group Table) as appropriate. The Group ID and Scene ID fields are set to the 15
corresponding fields of the received Remove Scene command. 16
3.7.2.5.4 Remove All Scenes Response Command 17
18
3.7.2.5.4.1 Payload Format 19
20
The Remove All Scenes Response command payload shall be formatted as 21
illustrated in Figure 3.25. 22
23
24
Octets 1 2 25
26
Data Type 8-bit Enumeration Unsigned 16-bit Integer
27
Status Group ID 28
Field Name
29
30
Figure 3.25 Format of the Remove All Scenes Response 31
Command Payload 32
33
3.7.2.5.4.2 When Generated 34
This command is generated in response to a received Remove All Scenes 35
command, see 3.7.2.4.4. The Status field is set to SUCCESS or INVALID_FIELD 36
(the group is not present in the Group Table) as appropriate. The Group ID field is 37
set to the corresponding field of the received Remove All Scenes command. 38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 3
100 General Specification
3.8.3.2 Attributes
1
The client has no attributes. 2
3
3.8.3.3 Commands Received 4
5
No cluster specific commands are received by the client. 6
7
3.8.3.4 Commands Generated 8
The client generates the cluster specific commands received by the server, as 9
required by the application. See 3.8.2.3 10
11
12
3.9 On/Off Switch Configuration Cluster 13
14
15
3.9.1 Overview 16
17
Attributes and commands for configuring On/Off switching devices 18
19
3.9.2 Server 20
21
22
3.9.2.1 Dependencies 23
Any endpoint that implements this server cluster shall also implement the On/Off 24
client cluster. 25
26
3.9.2.2 Attributes 27
28
For convenience, the attributes defined in this specification are arranged into sets 29
of related attributes; each set can contain up to 16 attributes. Attribute identifiers 30
are encoded such that the most significant three nibbles specify the attribute set 31
and the least significant nibble specifies the attribute within the set. The currently 32
defined attribute sets are listed in Table 3.39. 33
Table 3.39 On/Off Switch Configuration Attribute Sets 34
35
Attribute Set 36
Description
Identifier 37
0x000 Switch Information 38
39
0x001 Switch Settings 40
0x002 – 0xfff Reserved 41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 105
cluster specification, 'level' means the value of the CurrentLevel attribute (see
3.10.2.2.1). 1
2
Table 3.44 Actions on Receipt for On/Off Commands, When Associated With Level
Control 3
4
Command Action On Receipt 5
6
On Temporarily store CurrentLevel 7
Set CurrentLevel to the minimum level allowed for the device. 8
Move CurrentLevel to OnLevel, or to the stored level if OnLevel is not defined,
over the time period OnOffTransitionTime. 9
10
Off Temporarily store CurrentLevel 11
Move CurrentLevel to the minimum level allowed for the device over the time
12
period OnOffTransitionTime.
If OnLevel is not defined, set the CurrentLevel to the stored level. 13
14
Toggle If the OnOff attribute has the value Off, proceed as for the On command. 15
Otherwise proceed as for the Off command.
16
17
3.10.2.1.2 Effect of Level Control Commands on the OnOff Attribute 18
There are two sets of commands provided in the Level Control cluster. These are 19
identical, except that the first set (Move to Level, Move and Step) shall not effect 20
the OnOff attribute, whereas the second set ('with On/Off' variants) shall. 21
22
The first set is used to maintain independence between the CurrentLevel and 23
OnOff attributes, so changing CurrentLevel has no effect on the OnOff attribute. 24
As examples, this represents the behavior of a volume control with a mute button, 25
or a 'turn to set level and press to turn on/off' light dimmer. 26
The second set is used to link the CurrentLevel and OnOff attributes. When the 27
level is reduced to its minimum the OnOff attribute is automatically turned to Off, 28
and when the level is increased above its minimum the OnOff attribute is 29
automatically turned to On. As an example, this represents the behavior of a light 30
dimmer with no independent on/off switch. 31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 109
3.10.2.2 Attributes
1
The attributes of the Level Control server cluster are summarized in Table 3.45. 2
Table 3.45 Attributes of the Level Control Server Cluster 3
4
5
Identifier Name Type Range Access Default Mandatory
/ Optional 6
7
0x0000 CurrentLevel Unsigned 0x00 – Read 0x00 M
8-bit integer 0xff only
8
9
0x0001 RemainingTime Unsigned 0x0000 – Read 0x0000 O 10
16-bit 0xffff only 11
integer
12
0x0010 OnOffTransitionTime Unsigned 0x0000 – Read / 0x0000 O 13
16-bit 0xffff Write 14
integer
15
0x0011 OnLevel Unsigned 8- 0x00 – Read / 0xfe O 16
bit Integer 0xfe Write 17
18
3.10.2.2.1 CurrentLevel Attribute 19
20
The CurrentLevel attribute represents the current level of this device. The 21
meaning of 'level' is device dependent. 22
3.10.2.2.2 RemainingTime Attribute 23
24
The RemainingTime attribute represents the time remaining until the current 25
command is complete - it is specified in 1/10ths of a second. 26
3.10.2.2.3 OnOffTransitionTime Attribute 27
28
The OnOffTransitionTime attribute represents the time taken to move to or from 29
the target level when On of Off commands are received by an On/Off cluster on 30
the same endpoint. It is specified in 1/10ths of a second. 31
The actual time taken should be as close to OnOffTransitionTime as the device is 32
able. N.B. If the device is not able to move at a variable rate, the 33
OnOffTransitionTime attribute should not be implemented. 34
35
3.10.2.2.4 OnLevel Attribute 36
37
The OnLevel attribute determines the value that the CurrentLevel attribute is set to
38
when the OnOff attribute of an On/Off cluster on the same endpoint is set to On. If
39
the OnLevel attribute is not implemented, or is set to 0xff, it has no effect. For
40
more details see 3.10.2.1.1.
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 3
110 General Specification
the Transition time field, in tenths of a second, or as close to this as the device is
able. 1
2
If the Transition time field takes the value 0xffff then the time taken to move to 3
the new level shall instead be determined by the OnOffTransitionTime attribute. If 4
OnOffTransitionTime , which is an optional attribute, is not present, the device 5
shall move to its new level as fast as it is able. 6
If the device is not able to move at a variable rate, the Transition time field may be 7
disregarded. 8
9
3.10.2.3.2 Move Command 10
11
3.10.2.3.2.1 Payload Format 12
13
The Move command payload shall be formatted as illustrated in Figure 3.29.
14
15
1 2 16
Octets
17
Data Type 8-bit Enumeration Unsigned 8-bit Integer 18
19
Field Name Move mode Rate 20
21
22
Figure 3.29 Format of the Move Command Payload
23
3.10.2.3.2.2 Move Mode Field 24
25
The Move mode field shall be one of the non-reserved values in Table 3.47. 26
Table 3.47 Values of the Move Mode Field 27
28
Fade Mode Value Description 29
30
0x00 Up 31
0x01 Down 32
33
0x02 – 0xff Reserved 34
35
3.10.2.3.2.3 Rate Field 36
37
The Rate field specifies the rate of movement in units per second. The actual rate 38
of movement should be as close to this rate as the device is able. If the Rate field 39
is 0xff the device should move as fast as it is able. 40
If the device is not able to move at a variable rate, this field may be disregarded. 41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 3
112 General Specification
the reading of logged alarm conditions from the alarm table. Once an alarm
condition has been reported the corresponding entry in the table is removed. 1
2
This command does not have a payload. 3
3.11.2.4.4 Reset Alarm Log Command 4
5
This command causes the alarm table to be cleared, and does not have a payload. 6
7
3.11.2.5 Commands Generated 8
The generated command IDs for the Alarms cluster are listed in Table 3.55. 9
10
Table 3.55 Generated Command IDs for the Alarms Cluster 11
12
Command Identifier Mandatory
Field Value Description / Optional 13
14
0x00 Alarm M 15
16
0x01 Get alarm response O
17
0x02 – 0xff Reserved - 18
19
3.11.2.5.1 Alarm Command 20
21
The alarm command signals an alarm situation on the sending device. 22
An alarm command is generated when a cluster which has alarm functionality 23
detects an alarm condition, e.g. an attribute has taken on a value that is outside a 24
‘safe’ range. The details are given by individual cluster specifications. 25
26
3.11.2.5.1.1 Payload Format 27
28
The alarm command payload shall be formatted as illustrated in Figure 3.32. 29
30
31
Octets 1 2 32
33
Data Type 8-bit Enumeration Cluster ID
34
Alarm code Cluster identifier 35
Field Name
36
37
Figure 3.32 Format of the Alarm Command Payload 38
39
3.11.2.5.2 Get Alarm Response Command 40
The get alarm response command returns the results of a request to retrieve 41
information from the alarm log, along with a time stamp indicating when the 42
alarm situation was detected. 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 119
3.12.3.2 Attributes
1
The client has no attributes. 2
3
3.12.3.3 Commands Received 4
5
No cluster specific commands are received by the client. 6
7
3.12.3.4 Commands Generated 8
The client generates no cluster specific commands. 9
10
11
3.13 Rssi Location Cluster 12
13
14
3.13.1 Overview 15
16
This cluster provides a means for exchanging Received Signal Strength Indication 17
(RSSI) based location information and channel parameters among devices. 18
19
3.13.2 Server 20
21
22
3.13.2.1 Dependencies 23
None 24
25
3.13.2.2 Attributes 26
27
For convenience, the attributes defined in this specification are arranged into sets 28
of related attributes; each set can contain up to 16 attributes. Attribute identifiers 29
are encoded such that the most significant three nibbles specify the attribute set 30
and the least significant nibble specifies the attribute within the set. The currently 31
defined attribute sets are listed in Table 3.58. 32
Table 3.58 Location Attribute Sets 33
34
Attribute Set 35
Description
Identifier 36
0x000 Location Information 37
38
0x001 Location Settings 39
0x002 – 0xfff Reserved 40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 123
The 2-D bit field indicates whether the location information is two- or three-
dimensional. If the location information is two-dimensional, Coordinate 3 is 1
unknown and shall be set to 0x8000. 2
3
The Coordinate System bit field indicates the geometry of the system used to 4
express the location coordinates. If the field is set to zero, the location coordinates 5
are expressed using the rectangular coordinate system. All other values are 6
reserved. 7
8
3.13.2.2.1.2 LocationMethod Attribute 9
The Location Method attribute shall be set to one of the non-reserved values in 10
Table 3.61. 11
12
Table 3.61 Values of the LocationMethod Attribute 13
14
Value Method Description
15
0x00 Lateration A method based on RSSI measurements from three or 16
more sources. 17
18
0x01 Signposting The location reported is the location of the neighboring
device with the strongest received signal. 19
20
0x02 RF fingerprinting RSSI signatures are collected into a database at 21
commissioning time. The location reported is the location
taken from the RSSI signature database that most closely 22
matches the device’s own RSSI signature. 23
24
0x03 Out of band The location is obtained by accessing an out-of-band 25
device (that is, the device providing the location is not
part of the ZigBee network). 26
27
0x04 – 0x3f - Reserved 28
0x40 – 0xff - Reserved for manufacturer specific location methods. 29
30
31
3.13.2.2.1.3 LocationAge Attribute
32
The LocationAge attribute indicates the amount of time, measured in seconds, that 33
has transpired since the location information was last calculated. This attribute is 34
not valid if the Absolute bit of the LocationType attribute is set to one. 35
36
3.13.2.2.1.4 QualityMeasure Attribute 37
38
The QualityMeasure attribute is a measure of confidence in the corresponding 39
location information. The higher the value, the more confident the transmitting 40
device is in the location information. A value of 0x64 indicates complete (100%) 41
confidence and a value of 0x00 indicates zero confidence. (Note: no fixed 42
confidence metric is mandated – the metric may be application and manufacturer 43
dependent.) 44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 125
This field is not valid if the Absolute bit of the LocationType attribute is set to one.
1
3.13.2.2.1.5 NumberOfDevices Attribute 2
3
The NumberOfDevices attribute is the number of devices whose location data 4
were used to calculate the last location value. This attribute is related to the 5
QualityMeasure attribute. 6
3.13.2.2.2 Location Settings Attribute Set 7
8
The Location Settings attribute set contains the attributes summarized in 9
Table 3.62. 10
Table 3.62 Attributes of the Location Settings Attribute Set 11
12
13
Mandatory
/ Optional
14
Identifier Name Type Range Access Default 15
16
17
0x0010 Coordinate1 Signed 0x8000 – Read / - M 18
16-bit 0x7fff Write
integer 19
20
0x0011 Coordinate2 Signed 0x8000 – Read / - M 21
16-bit 0x7fff Write
22
integer
23
0x0012 Coordinate3 Signed 0x8000 – Read / - O 24
16-bit 0x7fff Write 25
integer
26
0x0013 Power Signed 0x8000 – Read / - M 27
16-bit 0x7fff Write 28
integer 29
0x0014 PathLossExponent Unsigned 0x0000 – Read / - M 30
16-bit 0xffff Write 31
integer 32
0x0015 ReportingPeriod Unsigned 0x0000 – Read / - O 33
16-bit 0xffff Write 34
integer 35
0x0016 CalculationPeriod Unsigned 0x0000 – Read / - O 36
16-bit 0xffff Write 37
integer 38
39
0x0017 NumberRSSIMeasurements Unsigned 0x01 – Read / - M
8-bit 0xff Write 40
integer 41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 3
126 General Specification
1
Octets 2 2 2 2 2 2
3
Signed Integer Signed Integer Signed Integer Signed Unsigned Integer 4
Data Type Integer 5
Coordinate 1 Coordinate 2 Coordinate 3 Power Path Loss 6
Field Name Exponent 7
8
Figure 3.34 Format of the Set Absolute Location Command Payload 9
10
The fields of the payload correspond directly to the attributes with the same 11
names. For details of their meaning and ranges see the descriptions of the 12
individual attributes. 13
14
The three coordinate fields shall contain the absolute location (known, not 15
calculated) of the destination device. If any coordinate field(s) is not known, the 16
value(s) shall be set to 0x8000. 17
18
3.13.2.3.1.2 Effect on Receipt 19
On receipt of this command, the device shall update the attributes corresponding 20
to (i.e. with the same names as) the payload fields. 21
22
3.13.2.3.2 Set Device Configuration Command 23
This command is used to set a device’s location parameters, which will be used 24
for calculating and reporting measured location. This command is invalid unless 25
the Absolute bit of the LocationType attribute has a value of 0. 26
27
28
3.13.2.3.2.1 Payload Format
29
The Set Device Configuration command payload shall be formatted as illustrated 30
in Figure 3.35. 31
32
Octets 2 2 2 1 2 33
34
Signed Unsigned Unsigned Unsigned Integer Unsigned
Data Type Integer Integer Integer Integer 35
36
Power Path Loss Calculation Number RSSI Reporting 37
Field Name Exponent Period Measurements Period
38
39
Figure 3.35 Format of the Set Device Configuration Payload 40
41
The fields of the payload correspond directly to the attributes with the same 42
names. For details of their meaning and ranges see the descriptions of the 43
individual attributes. 44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 129
(Note: devices may or may not acquire and store information on other devices'
locations such that this information may be requested by another device. This is 1
application dependent.) 2
3
3.13.2.3.4.1 Payload Format 4
5
The Get Location Data command payload shall be formatted as illustrated in 6
Figure 3.37. 7
8
9
Bits 3 1 1 1 1 1 8 0 / 64 10
11
Data Unsigned IEEE
8-bit Bitmap Integer address 12
Type
13
Field Reserved Compact Broadcast Broadcast Re- Absolute Number Target 14
Name Response Response Indicator calculate Only Responses Address 15
16
17
Figure 3.37 Format of the Get Location Data Payload
18
The highest 3 bits of the first octet are reserved and shall be set to zero. 19
20
The Absolute Only field (bit 0 of the first octet) specifies the type of location 21
information being requested. If the Absolute Only field is set to one, the device is 22
only requesting absolute location information (a device may want to gather 23
absolute node locations for use in its own location calculations, and may not be 24
interested in neighbors with calculated values). Otherwise, if the field is set to 25
zero, the device is requesting all location information (absolute and calculated). 26
The Recalculate field (bit 1 of the first octet) indicates whether the device is 27
requesting that a new location calculation be performed. If the field is set to zero, 28
the device is requesting the currently stored location information. Otherwise, if 29
the field is set to one, the device is requesting that a new calculation be performed. 30
This field is only valid if the Absolute Only field is set to zero. 31
32
The Broadcast Indicator field (bit 2 of the first octet) indicates whether the 33
command is being sent as a unicast, multicast or broadcast frame. If the field is set 34
to one, the command is sent as a broadcast or multicast, else it is sent as a unicast. 35
The Broadcast Response field (bit 3 of the first octet)) indicates whether 36
subsequent responses after the first (where the Number Responses field is greater 37
than one) shall be unicast or broadcast. Broadcast responses can be used as a 38
'location beacon'. 39
40
The Compact Response field (bit 3 of the first octet)) indicates whether 41
subsequent responses after the first (where the Number Responses field is greater 42
than one) shall be sent using the Location Data Notification or the Compact 43
Location Data Notification command. 44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 131
1
Octets 1 2
3
Data Type Integer 4
Field Name Location Type 5
6
7
Figure 3.41 Format of the RSSI Ping Payload
8
9
The Location Type field holds the value of the LocationType attribute.
10
3.13.2.5 Client 11
12
13
3.13.2.6 Dependencies 14
None 15
16
3.13.2.7 Attributes 17
18
None 19
20
3.13.2.8 Commands Received 21
The client receives the cluster specific commands generated by the server (see 22
3.13.2.4). 23
24
3.13.2.8.1 Commands Generated 25
The client generates the cluster specific commands received by the server (see 26
3.13.2.3), as required by the application. 27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 3
136 General Specification
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
This page left intentionally blank 17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 137
C H A P T E R
1
4
2
3
4
5
6
7
8
9
SPECIFICATION
12
13
14
15
4.1 General Description 16
17
18
4.1.1 Introduction 19
20
The clusters specified in this document are generic measurement and sensing 21
interfaces that are sufficiently general to be of use across a wide range of 22
application domains. 23
24
25
4.1.2 Cluster List 26
27
This section lists the clusters specified in this document, and gives examples of 28
typical usage for the purpose of clarification. 29
The clusters specified in the Measurement and sensing functional domain are 30
listed in Table 4.1 to Table 4.3. 31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 4
138 Measurement and Sensing Specification
1
Configuration tool Lighting control 2
Occupancy sensor system
3
4
Occupancy sensing Occupancy sensing
C S C 5
Configuration Notification 6
7
8
9
10
C = Client S = Server 11
Note:- Device names are examples for illustration only 12
13
14
Figure 4.3 Typical Usage of Occupancy Sensing Cluster 15
16
4.2 Illuminance Measurement Cluster 17
18
19
4.2.1 Overview 20
21
The server cluster provides an interface to illuminance measurement functionality, 22
including configuration and provision of notifications of illuminance 23
measurements. 24
25
26
4.2.2 Server 27
28
4.2.2.1 Dependencies 29
30
None 31
32
4.2.2.2 Attributes 33
For convenience, the attributes defined in this specification are arranged into sets 34
of related attributes; each set can contain up to 16 attributes. Attribute identifiers 35
are encoded such that the most significant nibble specifies the attribute set and the 36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 141
least significant nibble specifies the attribute within the set. The currently defined
attribute sets are listed in Table 4.4. 1
2
Table 4.4 Illuminance Measurement Attribute Sets
3
Attribute Set Identifier Description 4
5
0x000 Illuminance Measurement Information 6
7
0x001 – 0xfff Reserved
8
9
4.2.2.2.1 Illuminance Measurement Information Attribute Set 10
The Illuminance Measurement Information attribute set contains the attributes 11
summarized in Table 4.5. 12
13
Table 4.5 Attributes of the Illuminance Measurement Information Attribute Set 14
15
Mandatory
/ Optional
16
Identifier Name Type Range Access Default 17
18
19
0x0000 MeasuredValue 16-bit Unsigned MinMeasuredValue Read 0 M 20
Integer to only 21
MaxMeasuredValue
22
0x0001 MinMeasuredValue 16-bit Unsigned 0x0002 – 0xfffd Read - M 23
Integer only 24
0x0002 MaxMeasuredValue 16-bit Unsigned 0x0001 – 0xfffe Read - M 25
Integer only 26
27
0x0003 Tolerance 16-bit Unsigned 0x0000 – 0x0800 Read - O
28
Integer only
29
0x0004 LightSensorType 8-bit 0x00 – 0xff Read - O 30
Enumeration only 31
32
4.2.2.2.1.1 MeasuredValue Attribute 33
34
MeasuredValue represents the Illuminance in Lux (symbol lx) as follows:- 35
MeasuredValue = 10,000 x log10 Illuminance + 1 36
37
Where 1 lx <= Illuminance <=3.576 Mlx, corresponding to a MeasuredValue in 38
the range 1 to 0xfffe. 39
The following special values of MeasuredValue apply. 40
41
0x0000 indicates a value of Illuminance that is too low to be measured. 42
0xffff indicates that the Illuminance measurement is invalid. 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 4
142 Measurement and Sensing Specification
4.3.2.2 Attributes
1
For convenience, the attributes defined in this specification are arranged into sets 2
of related attributes; each set can contain up to 16 attributes. Attribute identifiers 3
are encoded such that the most significant three nibbles specify the attribute set 4
and the least significant nibble specifies the attribute within the set. The currently 5
defined attribute sets are listed in Table 4.7. 6
Table 4.7 Illuminance Level Sensing Attribute Sets 7
8
Attribute Set 9
Description
Identifier 10
11
0x000 Illuminance Level Sensing Information
12
0x001 Illuminance Level Sensing Settings 13
14
0x002 – 0xfff Reserved
15
16
4.3.2.3 Illuminance Level Sensing Information Attribute Set 17
18
The light sensor configuration attribute set contains the attributes summarized in
19
Table 4.8.
20
Table 4.8 Attributes of the Illuminance Level Sensing Information Attribute Set 21
22
Mandatory 23
Identifier Name Type Range Access Default / Optional
24
0x0000 LevelStatus 8-bit 0x00 – 0xfe Read only - M 25
Enumeration 26
0x0001 LightSensorType 8-bit 0x00 – 0xfe Read only - O 27
Enumeration 28
29
30
4.3.2.3.1 LevelStatus Attribute
31
The LevelStatus attribute indicates whether the measured illuminance is above, 32
below, or within a band around IlluminanceTargetLevel (see 4.3.2.4.1). It may 33
have any non-reserved value shown in Table 4.9. 34
Table 4.9 Values of the LevelStatus Attribute 35
36
LevelStatus 37
Attribute Value Description 38
39
0x00 Illuminance on target
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 145
Mandatory
6
/ Optional
7
Identifier Name Type Range Access Default
8
9
10
0x0000 MeasuredValue Signed 16-bit MinMeasuredValue Read 0 M
Integer to only 11
MaxMeasuredValue 12
13
0x0001 MinMeasuredValue Signed 16-bit 0x954d – 0x7ffe Read - M
14
Integer only
15
0x0002 MaxMeasuredValue Signed 16-bit 0x954e – 0x7fff Read - M 16
Integer only 17
0x0003 Tolerance Unsigned 16- 0x0000 – 0x0800 Read - O 18
bit Integer only 19
20
4.4.2.2.1.1 MeasuredValue Attribute 21
22
MeasuredValue represents the temperature in degrees Celsius as follows:- 23
MeasuredValue = 100 x temperature in degrees Celsius. 24
25
Where -273.15°C <= temperature <= 327.67 ºC, corresponding to a 26
MeasuredValue in the range 0x954d to 0x7fff. The maximum resolution this 27
format allows is 0.01 ºC. 28
A MeasuredValue of 0x8000 indicates that the temperature measurement is 29
invalid. 30
31
MeasuredValue is updated continuously as new measurements are made. 32
33
4.4.2.2.1.2 MinMeasuredValue Attribute 34
35
The MinMeasuredValue attribute indicates the minimum value of MeasuredValue 36
that is capable of being measured. A MinMeasuredValue of 0x8000 indicates that 37
the minimum value is unknown. 38
39
4.4.2.2.1.3 MaxMeasuredValue Attribute 40
The MaxMeasuredValue attribute indicates the maximum value of MeasuredValue 41
that is capable of being measured. 42
43
MaxMeasuredValue shall be greater than MinMeasuredValue. 44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 149
Mandatory
6
/ Optional
7
Identifier Name Type Range Access Default
8
9
10
0x0000 MeasuredValue Signed MinMeasuredValue Read 0 M
16-bit Integer to only 11
MaxMeasuredValue 12
13
0x0001 MinMeasuredValue Signed 0x8001-0x7ffe Read - M
14
16-bit Integer only
15
0x0002 MaxMeasuredValue Signed 0x8002-0x7fff Read - M 16
16-bit Integer only 17
0x0003 Tolerance Unsigned 0x0000 – 0x0800 Read - O 18
16-bit Integer only 19
20
4.5.2.2.1.1 MeasuredValue Attribute 21
22
MeasuredValue represents the pressure in kPa as follows:- 23
MeasuredValue = 10 x Pressure 24
25
Where -3276.7 kPa <= Pressure <= 3276.7 kPa, corresponding to a 26
MeasuredValue in the range 0x8001 to 0x7fff. 27
Note:- The maximum resolution this format allows is 0.1 kPa,. 28
29
A MeasuredValue of 0x8000 indicates that the pressure measurement is invalid. 30
MeasuredValue is updated continuously as new measurements are made. 31
32
33
4.5.2.2.1.2 MinMeasuredValue Attribute
34
The MinMeasuredValue attribute indicates the minimum value of MeasuredValue 35
that can be measured. A value of 0x8000 means this attribute is not defined 36
37
4.5.2.2.1.3 MaxMeasuredValue Attribute 38
39
The MaxMeasuredValue attribute indicates the maximum value of MeasuredValue 40
that can be measured. A value of 0x8000 means this attribute is not defined. 41
MaxMeasuredValue shall be greater than MinMeasuredValue. 42
43
MinMeasuredValue and MaxMeasuredValue define the range of the sensor. 44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 4
152 Measurement and Sensing Specification
Mandatory
6
/ Optional
7
Identifier Name Type Range Access Default
8
9
10
0x0000 MeasuredValue Unsigned MinMeasuredValue Read 0 M
16-bit Integer to only 11
MaxMeasuredValue 12
13
0x0001 MinMeasuredValue Unsigned 0x0000 – 0xfffd Read - M
14
16-bit Integer only
15
0x0002 MaxMeasuredValue Unsigned 0x0001 – 0xfffe Read - M 16
16-bit Integer only 17
0x0003 Tolerance Unsigned 0x0000 – 0x0800 Read - O 18
16-bit Integer only 19
20
4.6.2.2.1.1 MeasuredValue Attribute 21
22
MeasuredValue represents the flow in m3/h as follows:- 23
MeasuredValue = 10 x Flow 24
25
Where 0 m3/h <= Flow <= 6,553.4 m3/h, corresponding to a MeasuredValue in the 26
range 0 to 0xfffe. 27
The maximum resolution this format allows is 0.1 m3/h. 28
29
A MeasuredValue of 0xffff indicates that the pressure measurement is invalid. 30
MeasuredValue is updated continuously as new measurements are made. 31
32
33
4.6.2.2.1.2 MinMeasuredValue Attribute
34
The MinMeasuredValue attribute indicates the minimum value of MeasuredValue 35
that can be measured. A value of 0xffff means this attribute is not defined 36
37
4.6.2.2.1.3 MaxMeasuredValue Attribute 38
39
The MaxMeasuredValue attribute indicates the maximum value of MeasuredValue 40
that can be measured. A value of 0xffff means this attribute is not defined 41
MaxMeasuredValue shall be greater than MinMeasuredValue. 42
43
MinMeasuredValue and MaxMeasuredValue define the range of the sensor 44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 155
Mandatory
7
/ Optional
Identifier Name Type Range Access Default 8
9
10
0x0000 MeasuredValue Unsigned 16- MinMeasuredValue Read - M 11
bit Integer to only 12
MaxMeasuredValue 13
14
0x0001 MinMeasuredValue Unsigned 16- 0x0000 – 0x270f Read - M
bit Integer only 15
16
0x0002 MaxMeasuredValue Unsigned 16- 0x0001 – 0x2710 Read - M 17
bit Integer only
18
0x0003 Tolerance Unsigned 16- 0x0000 – 0x0800 Read - O 19
bit Integer only 20
21
4.7.2.2.1.1 MeasuredValue Attribute 22
23
MeasuredValue represents the relative humidity in % as follows:- 24
MeasuredValue = 100 x Relative humidity 25
26
Where 0% <= Relative humidity <= 100%, corresponding to a MeasuredValue in 27
the range 0 to 0x2710. 28
The maximum resolution this format allows is 0.01%. 29
30
A MeasuredValue of 0xffff indicates that the measurement is invalid. 31
MeasuredValue is updated continuously as new measurements are made. 32
33
4.7.2.2.1.2 MinMeasuredValue Attribute 34
35
The MinMeasuredValue attribute indicates the minimum value of MeasuredValue 36
that can be measured. A value of 0xffff means this attribute is not defined 37
38
4.7.2.2.1.3 MaxMeasuredValue Attribute 39
40
The MaxMeasuredValue attribute indicates the maximum value of MeasuredValue 41
that can be measured. A value of 0xffff means this attribute is not defined 42
MaxMeasuredValue shall be greater than MinMeasuredValue. 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 4
158 Measurement and Sensing Specification
Mandatory
6
/ Optional
7
Identifier Name Type Range Access Default
8
9
10
0x0000 Occupancy 8-bit Bitmap 0000000x Read only - M
11
0x0001 OccupancySensor 8-bit 0x00 – 0xfe Read only - M 12
Type Enumeration 13
14
4.8.2.2.1.1 Occupancy Attribute 15
16
The Occupancy attribute is a bitmap. 17
Bit 0 specifies the sensed occupancy as follows: 1 = occupied, 0 = unoccupied. 18
19
All other bits are reserved. 20
21
4.8.2.2.1.2 OccupancySensorType Attribute 22
The OccupancySensorType attribute specifies the type of the occupancy sensor. 23
This attribute shall be set to one of the non-reserved values listed in Table 4.22. 24
25
Table 4.22 Values of the OccupancySensorType Attribute 26
27
OccupancySensorType
Attribute Value Description 28
29
0x00 PIR 30
0x01 Ultrasonic
31
32
0x02 PIR and ultrasonic 33
0x03 – 0xff Reserved 34
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 161
Mandatory
6
/ Optional
7
Identifier Name Type Range Access Default
8
9
10
0x0010 PIROccupiedTo Unsigned 0x00 – Read/ 0x00 O
UnoccupiedDelay 8-bit integer 0xfe Write 11
12
0x0011 PIRUnoccupiedTo Unsigned 0x00 – Read/ 0x00 O 13
OccupiedDelay 8-bit integer 0xfe write
14
15
4.8.2.2.2.1 PIROccupiedToUnoccupiedTime Attribute 16
17
The PIROccupiedToUnoccupiedDelay attribute is 8-bits in length and specifies
18
the time delay, in seconds, before the PIR sensor changes to its occupied state
19
when the sensed area becomes unoccupied. This attribute, along with
20
PIRUnoccupiedToOccupiedTime, may be used to reduce sensor 'chatter' when
21
used in an area where occupation changes frequently.
22
23
4.8.2.2.2.2 PIRUnoccupiedToOccupiedTime Attribute 24
The PIRUnoccupiedToOccupiedDelay attribute is 8-bits in length and specifies 25
the time delay, in seconds, before the PIR sensor changes to its unoccupied state 26
when the sensed area becomes occupied. 27
28
4.8.2.2.3 Ultrasonic Configuration Set 29
The ultrasonic sensor configuration attribute set contains the attributes 30
summarized in Table 4.24. 31
32
Table 4.24 Attributes of the Ultrasonic Configuration Attribute Set 33
34
Mandatory
/ Optional
35
Identifier Name Type Range Access Default 36
37
38
0x0020 UltraSonicOccupiedTo Unsigned 0x00 – Read/ 0x00 O 39
UnoccupiedDelay 8-bit integer 0xfe Write 40
0x0021 UltraSonicUnoccupiedTo Unsigned 0x00 – Read/ 0x00 O 41
OccupiedDelay 8-bit integer 0xfe write 42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 4
162 Measurement and Sensing Specification
C H A P T E R
1
5
2
3
4
5
6
7
8
9
1
Configuration tool Ballast for fluorescent lamp 2
3
4
Ballast configuration
C S 5
6
7
8
Colored light controller Variable color light 9
10
Color control 11
C S
12
13
14
C = Client S = Server 15
16
Note:- Device names are examples for illustration only 17
18
Figure 5.1 Typical Usage of Ballast Configuration and Color Control 19
Clusters 20
21
22
5.2 Color Control Cluster 23
24
25
5.2.1 Overview 26
27
This cluster provides an interface for changing the color of a light by controlling
28
its hue and saturation. Control over luminance is not included, as this is provided
29
by means of the Level Control cluster of the General library (see 3.10).
30
It is recommended that the hue and saturation are interpreted according to the 31
HSV (aka HSB) color model. 32
33
34
5.2.2 Server 35
36
5.2.2.1 Dependencies 37
None 38
39
5.2.2.2 Attributes 40
41
For convenience, the attributes defined in this specification are arranged into sets 42
of related attributes; each set can contain up to 16 attributes. Attribute identifiers 43
are encoded such that the most significant three nibbles specify the attribute set 44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 165
and the least significant nibble specifies the attribute within the set. The currently
defined attribute sets are listed in Table 5.2. 1
2
Table 5.2 Hue Control Attribute Sets
3
Attribute Set 4
Description 5
Identifier
6
0x000 Color Information 7
0x001 – 0xfff Reserved 8
9
10
5.2.2.2.1 Color Information Attribute Set
11
The Color Information attribute set contains the attributes summarized in 12
Table 5.3. 13
14
Table 5.3 Attributes of the Color Information Attribute Set
15
Mandatory 16
Identifier Name Type Range Access Default / Optional 17
18
0x0000 CurrentHue Unsigned 0x00 – Read only 0x00 M 19
8-bit integer 0xfe
20
0x0001 CurrentSaturation Unsigned 0x00 – Read only 0x00 M 21
8-bit integer 0xfe 22
0x0002 RemainingTime Unsigned 0x0000 – Read only 0x00 O 23
16-bit integer 0xfffe 24
25
26
5.2.2.2.1.1 CurrentHue Attribute
27
The CurrentHue attribute contains the current hue value of the light. It is updated 28
as fast as practical during commands that change the hue. 29
30
The hue in degrees shall be related to the CurrentHue attribute by the relationship
31
Hue = CurrentHue x 360 / 254 (CurrentHue in the range 0 to 254 inclusive)
32
33
5.2.2.2.1.2 CurrentSaturation Attribute 34
The CurrentSaturation attribute holds the current saturation value of the light. It is 35
updated as fast as practical during commands that change the hue. 36
37
The saturation shall be related to the CurrentSaturation attribute by the 38
relationship 39
Saturation = CurrentSaturation / 254 (CurrentSaturation in the range 0 to 254 40
inclusive) 41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 5
166 Lighting Specification
1
Bits 8 8 2
3
Data Type 8-bit Enumeration Unsigned 8-bit Integer 4
5
Field Name Move mode Rate
6
7
Figure 5.3 Format of the Move Hue Command Payload 8
9
5.2.2.3.2.2 Move Mode Field 10
11
The Move mode field shall be one of the non-reserved values in Table 5.6. 12
Table 5.6 Values of the Move Mode Field 13
14
Fade Mode Value Description 15
16
0x00 Stop
17
0x01 Up 18
0x02 Reserved
19
20
0x03 Down 21
0x04 – 0xff Reserved 22
23
24
5.2.2.3.2.3 Rate Field 25
The Rate field specifies the rate of movement in steps per second. A step is a 26
change in the device’s hue of one unit. If the Rate field has a value of zero, the 27
command has no effect and a default response command (see 2.4.12) is sent in 28
response, with the status code set to INVALID_FIELD. 29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 169
function is active, the corresponding bit shall be set to 1. Where a function is not
active, the corresponding bit shall be set to 0. 1
2
Table 5.16 Bit Usage of the BallastStatus Attribute
3
BallastStatus 4
Attribute Ballast Function Details 5
Bit Number 6
7
0 Non-operational 0 = The ballast is fully operational 8
1 = The ballast is not fully operational
9
1 Lamp not in socket 0 = All lamps are in their sockets 10
1 = One or more lamp is not in its socket 11
2–7 Reserved - 12
13
14
5.3.2.2.2 Ballast Settings Attribute Set
15
The Ballast Settings attribute set contains the attributes summarized in Table 5.17. 16
Table 5.17 Attributes of the Ballast Settings Attribute Set
17
18
Mandatory 19
Identifier Name Type Range Access Default 20
/ Optional
21
0x0010 MinLevel Unsigned 0x01 – 0xfe Read/ Physical O 22
8-bit integer write MinLevel
23
0x0011 MaxLevel Unsigned 0x01 – 0xfe Read/ Physical O 24
8-bit integer write MaxLevel 25
0x0012 PowerOnLevel Unsigned 0x00 – 0xfe Read/ Physical O 26
8-bit integer write MaxLevel 27
28
0x0013 PowerOn Unsigned 0x0000 – Read/ 0x0000 O
FadeTime 16-bit integer 0xfffe write 29
30
0x0014 Intrinsic Unsigned 0x00 – 0xfe Read/ - O 31
BallastFactor 8-bit integer write
32
0x0015 BallastFactor Unsigned 0x64 – Read/ 0xff O 33
Adjustment 8-bit integer manufacturer write 34
dependent 35
36
5.3.2.2.2.1 MinLevel Attribute 37
38
The MinLevel attribute is 8-bits in length and specifies the minimum light level 39
the ballast is permitted to use. This attribute shall be specified in the range 0x01 to 40
0xfe, and specifies the light output of the ballast according to the dimming light 41
curve (see 7.4). 42
The value of this attribute shall be both greater than or equal to PhysicalMinLevel 43
and less than or equal to MaxLevel. If an attempt is made to set this attribute to a 44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 5
178 Lighting Specification
level where these conditions are not met, a default response command shall be
returned with status code set to INVALID_VALUE, and the level shall not be set. 1
2
5.3.2.2.2.2 MaxLevel Attribute 3
4
The MaxLevel attribute is 8-bits in length and specifies the maximum light level 5
the ballast is permitted to use. This attribute shall be specified in the range 0x01 to 6
0xfe, and specifies the light output of the ballast according to the dimming light 7
curve (see 5.3.4). 8
The value of this attribute shall be both less than or equal to PhysicalMaxLevel 9
and greater than or equal to MinLevel. If an attempt is made to set this attribute to 10
a level where these conditions are not met, a default response command shall be 11
returned with status code set to INVALID_VALUE, and the level shall not be set. 12
13
14
5.3.2.2.2.3 PowerOnLevel Attribute
15
The PowerOnLevel attribute is 8-bits in length and specifies the light level to 16
which the ballast will go when power is applied (e.g. when mains power is re- 17
established after a power failure). This attribute shall be set to one of the values 18
listed in Table 5.18. 19
Table 5.18 Values of the PowerOnLevel Attribute
20
21
PowerOnLevel 22
Attribute Value Description 23
24
0x00 – 0xfe Set to this specific light level, according to the dimming 25
light curve (see 5.3.4).
26
0xff Restore the light level being used prior to power failure. 27
28
The value of this attribute shall be both less than or equal to PhysicalMaxLevel 29
and greater than or equal to MinLevel. If an attempt is made to set this attribute to 30
a level where these conditions are not met, a default response command shall be 31
returned with status code set to INVALID_VALUE, and the level shall not be set. 32
33
5.3.2.2.2.4 PowerOnFadeTime Attribute 34
35
The PowerOnFadeTime attribute is 16-bits in length and specifies the length of 36
time, in tenths of a second, that the ballast takes to move to the light level 37
specified in PowerOnLevel when power is applied (e.g. when mains power is re- 38
established after a power failure). 39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 179
the lamps as a set. For example, all lamps are taken to be of the same LampType
with the same LampBurnHours. 1
2
Table 5.20 Attributes of the Lamp Settings Attribute Set
3
4
Mandatory
/ Optional
5
Identifier Name Type Range Access Default 6
7
8
0x0030 LampType Character - Read/write Empty string O 9
string 10
0x0031 LampManufacturer Character - Read/write Empty string O 11
string 12
13
0x0032 LampRatedHours Unsigned 0x000000 Read/write 0xffffff O
24-bit – 0xfffffe 14
integer 15
16
0x0033 LampBurnHours Unsigned 0x000000 Read/write 0x000000 O
24-bit – 0xfffffe
17
integer 18
19
0x0034 LampAlarmMode Bitmap 0000 000x Read/write 0000 0000 O 20
(8-bit)
21
0x0035 LampBurnHours Unsigned 0x000000 Read/write 0xffffff O 22
TripPoint 24-bit – 0xfffffe 23
integer
24
25
5.3.2.2.4.1 LampType Attribute 26
27
The LampType attribute is an character string of up to 16 bytes in length. It
28
specifies the type of lamps (including their wattage) connected to the ballast.
29
30
5.3.2.2.4.2 LampManufacturer Attribute 31
The LampManufacturer attribute is an character string of up to 16 bytes in length. 32
It specifies the name of the manufacturer of the currently connected lamps. 33
34
5.3.2.2.4.3 LampRatedHours Attribute 35
36
The LampRatedHours attribute is 24-bits in length and specifies the number of 37
hours of use the lamps are rated for by the manufacturer. 38
A value of 0xffffff indicates an invalid or unknown time. 39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 181
5.3.3 Client 1
2
5.3.3.1 Dependencies 3
None 4
5
5.3.3.2 Attributes 6
7
The client has no attributes. 8
9
5.3.3.3 Commands Received 10
No cluster specific commands are received by the server. 11
12
5.3.3.4 Commands Generated 13
14
No cluster specific commands are generated by the server. 15
16
17
5.3.4 The Dimming Light Curve 18
19
The dimming curve is recommended to be logarithmic, as defined by the
20
following equation:
21
⎛ ⎞
This page is intentionally blank 22
⎜ ⎟
⎜ Level
-1⎟-1 23
⎜ ⎛253⎞ ⎟
⎜⎜ ⎟⎟ 24
%Light=10 ⎝⎝ 3 ⎠⎠ 25
26
Where:%Light is the percent light output of the ballast 27
Level is an 8-bit integer between 1 (0.1% light output) and 254 (100% output). 28
29
255 is reserved - the exact meaning of this value depends on the specific attribute
30
or command.
31
Note:-. The light output is determined by this curve together with the 32
IntrinsicBallastFactor and BallastFactorAdjustment. Attributes. 33
34
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 183
C H A P T E R
1
6
2
3
4
5
6
7
8
9
1
Pump controller Pump 2
3
Pump configuration and control 4
C S 5
Level control (see 3.10) 6
C S
7
On/Off (see 3.8)
C S 8
9
10
11
C = Client S = Server 12
Note:- Device names are examples for illustration only
13
14
Figure 6.1 Typical Usage of the Pump Configuration and Control Cluster 15
16
17
18
Optional temperature, 19
humidity and occupancy 20
sensors 21
22
Dehumidification 23
Notification Heating /cooling device
Heating / cooling 24
control panel Thermostat (e.g. indoor air handler)
25
26
Dehumidification 27
C S S
Configuration 28
Fan control 29
C C C S
Thermostat 30
S C S S 31
Configuration
32
33
Thermostat Thermostat 34
user interface Notification 35
configuration 36
37
C = Client S = Server
38
Configuration
tool Note:- Device names are examples for illustration only 39
40
Figure 6.2 Example Usage of the Thermostat and Related Clusters 41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 185
and the least significant nibble specifies the attribute within the set. The currently
defined attribute sets are listed in Table 6.2. 1
2
Table 6.2 Pump Configuration Attribute Sets
3
Attribute Set 4
Identifier Description 5
6
0x000 Pump Information 7
0x001 Pump Dynamic Information 8
9
0x002 Pump Settings 10
0x003 – 0xfff Reserved 11
12
6.2.2.2.1 Pump Information Attribute Set 13
14
The pump information attribute set contains the attributes summarized in 15
Table 6.3. 16
Table 6.3 Attributes of the Pump Information Attribute Set 17
18
19
Mandatory
/ Optional
20
Identifier Name Type Range Access Default
21
22
23
0x0000 MaxPressure Signed 0x8001- Read only - M
16-bit integer 0x7fff 24
25
0x0001 MaxSpeed Unsigned 0x0000 – Read only - M 26
16-bit integer 0xfffe
27
0x0002 MaxFlow Unsigned 0x0000 – Read only - M 28
16-bit integer 0xfffe 29
0x0003 MinConstPressure Signed 0x8001- Read only - O 30
16-bit integer 0x7fff 31
32
0x0004 MaxConstPressure Signed 0x8001- Read only - O
33
16-bit integer 0x7fff
34
0x0005 MinCompPressure Signed 0x8001- Read only - O 35
16-bit integer 0x7fff 36
0x0006 MaxCompPressure Signed 0x8001- Read only - O 37
16-bit integer 0x7fff 38
39
0x0007 MinConstSpeed Unsigned 0x0000 – Read only - O
16-bit integer 0xfffe 40
41
0x0008 MaxConstSpeed Unsigned 0x0000 – Read only - O 42
16-bit integer 0xfffe
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 187
Mandatory
2
/ Optional
Identifier Name Type Range Access Default 3
4
5
0x0009 MinConstFlow Unsigned 0x0000 – Read only - O 6
16-bit integer 0xfffe 7
8
0x000a MaxConstFlow Unsigned 0x0000 – Read only - O
9
16-bit integer 0xfffe
10
0x000b MinConstTemp Signed 0x954d – Read only - O 11
16-bit integer 0x7fff 12
0x000c MaxConstTemp Signed 0x954d – Read only - O 13
16-bit integer 0x7fff 14
15
6.2.2.2.1.1 MaxPressure Attribute 16
17
The MaxPressure attribute specifies the maximum pressure the pump can achieve. 18
It is a physical limit, and does not apply to any specific control mode or operation 19
mode. 20
This attribute is read only, and can only be set by the manufacturer. If the value is 21
not available, this attribute will display the invalid value. 22
23
Valid range is -3,276.7 kPa to 3,276.7 kPa (steps of 0.1 kPa) 24
The value -3,276.8 kPa (0x8000) indicates that this value is invalid. 25
26
6.2.2.2.1.2 MaxSpeed Attribute 27
28
The MaxSpeed attribute specifies the maximum speed the pump can achieve. It is
29
a physical limit, and does not apply to any specific control mode or operation
30
mode.
31
This attribute is read only, and can only be set by the manufacturer. If the value is 32
not available, this attribute will display the invalid value. 33
34
Valid range is 0 to 65,534 RPM (steps of 1 RPM)
35
The value 65,535 RPM (0xffff) indicates that this value is invalid.
36
37
6.2.2.2.1.3 MaxFlow Attribute 38
The MaxFlow attribute specifies the maximum flow the pump can achieve. It is a 39
physical limit, and does not apply to any specific control mode or operation mode. 40
41
This attribute is read only, and can only be set by the manufacturer. If the value is 42
not available, this attribute will display the invalid value. 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 6
188 HVAC Specification
This attribute is read only, and can only be set by the manufacturer. If the value is
not available, this attribute will display the invalid value. 1
2
Valid range is –3,276.7 kPa to 3,276.7 kPa (steps of 0.1 kPa) 3
The value -3,276.8 kPa (0x8000) indicates that this value is invalid.. 4
5
6.2.2.2.1.8 MinConstSpeed Attribute 6
The MinConstSpeed attribute specifies the minimum speed the pump can achieve 7
when it is running and working in control mode Constant speed (ControlMode 8
attribute of the Pump settings attribute set is set to Constant speed). 9
10
This attribute is read only, and can only be set by the manufacturer. If the value is 11
not available, this attribute will display the invalid value. 12
Valid range is 0 to 65,534 RPM (steps of 1 RPM) 13
The value 65,535 RPM (0xffff) indicates that this value is invalid. 14
15
16
6.2.2.2.1.9 MaxConstSpeed Attribute
17
The MaxConstSpeed attribute specifies the maximum speed the pump can achieve 18
when it is working in control mode Constant speed (ControlMode attribute of the 19
Pump settings attribute set is set to Constant speed). 20
21
This attribute is read only, and can only be set by the manufacturer. If the value is 22
not available, this attribute will display the invalid value. 23
Valid range is 0 to 65,534 RPM (steps of 1 RPM) 24
The value 65,535 RPM (0xffff) indicates that this value is invalid. 25
26
6.2.2.2.1.10 MinConstFlow Attribute 27
28
The MinConstFlow attribute specifies the minimum flow the pump can achieve 29
when it is running and working in control mode Constant flow (ControlMode 30
attribute of the Pump settings attribute set is set to Constant flow). 31
This attribute is read only, and can only be set by the manufacturer. If the value is 32
not available, this attribute will display the invalid value. 33
34
Valid range is 0 m3/h to 6,553.4 m3/h (steps of 0.1 m3/h) 35
The value 6,553.5 m3/h (0xffff) indicates that this value is invalid. 36
37
6.2.2.2.1.11 MaxConstFlow Attribute 38
The MaxConstFlow attribute specifies the maximum flow the pump can achieve 39
when it is running and working in control mode Constant flow (ControlMode 40
attribute of the Pump settings attribute set is set to Constant flow). 41
42
This attribute is read only, and can only be set by the manufacturer. If the value is 43
not available, this attribute will display the invalid value. 44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 6
190 HVAC Specification
33
Identifier Name Type Range Access Default 34
35
36
0x0010 PumpStatus 16-bit Bitmap - Read - O 37
only 38
39
0x0011 EffectiveOperationMode 8-bit 0x00 – 0xfe Read - M
Enumeration only 40
41
0x0012 EffectiveControlMode 8-bit 0x00 – 0xfe Read - M 42
Enumeration only
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 191
Table 6.4 Attributes of the Pump Dynamic Information Attribute Set (Continued)
1
Mandatory
2
/ Optional
Identifier Name Type Range Access Default 3
4
5
0x0013 Capacity Signed 0x0000- Read - M 6
16-bit integer 0x7fff only 7
8
0x0014 Speed Unsigned 16- 0x0000 - Read - O
9
bit integer 0xfffe only
10
0x0015 LifetimeRunningHours Unsigned 24- 0x000000 - Read / 0 O 11
bit integer 0xfffffe Write 12
0x0016 Power Unsigned 24- 0x000000 - Read / - O 13
bit integer 0xfffffe Write 14
15
0x0017 LifetimeEnergyConsumed Unsigned 32- 0x00000000 Read 0 O
bit integer - 0xfffffffe only 16
17
18
6.2.2.2.2.1 PumpStatus Attribute
19
The PumpStatus attribute specifies the activity status of the pump functions listed 20
in Table 6.5. Where a pump controller function is active, the corresponding bit 21
shall be set to 1. Where a pump controller function is not active, the corresponding 22
bit shall be set to 0. 23
24
Table 6.5 Values of the PumpStatus Attribute
25
PumpStatus 26
Attribute Pump Function Remarks 27
Bit Number 28
29
0 Device fault A fault related to the pump device is detected
(Corresponds to a Alarm code in the range 6-13, see 30
Table 6.9) 31
32
1 Supply fault A fault related to the supply to the pump is detected 33
(Corresponds to a Alarm code in the range 0-5 or 13,
see Table 6.9) 34
35
2 Speed low Setpoint is too low to achieve 36
3 Speed high Setpoint is too high to achieve 37
38
4 Local override The pump is overridden by local control 39
5 Running Pump is currently running 40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 6
192 HVAC Specification
This attribute is read only. If the value is not available (the measurement of power
consumption is not done in the pump), this attribute will display the invalid value. 1
2
Valid range is 0 to 16,777,214 Watts. 3
The value 16,777,215 (0xffffff) indicates that this value is unknown. 4
5
6.2.2.2.2.8 LifetimeEnergyConsumed Attribute 6
The LifetimeEnergyConsumed attribute specifies the accumulated energy 7
consumption of the pump through the entire lifetime of the pump in kWh. The 8
value of the LifetimeEnergyConsumed attribute is updated dynamically as the 9
energy consumption of the pump increases. If LifetimeEnergyConsumed rises 10
above maximum value it “rolls over” and starts at 0 (zero). 11
12
This attribute is writeable, in order to allow setting to an appropriate value after 13
maintenance. 14
Valid range is 0 kWh to 4,294,967,294 kWh. 15
The value 4,294,967,295 (0xffffffff) indicates that this value is unknown. 16
17
6.2.2.2.3 Pump Settings Attribute Set 18
19
The pump settings attribute set contains the attributes summarized in Table 6.6.
20
Table 6.6 Attributes of the Pump Settings Attribute Set 21
22
Mandatory 23
Identifier Name Type Range Access Default
/ Optional
24
0x0020 OperationMode 8-bit 0x00 – Read / 0x0 M 25
Enumeration 0xfe Write 26
0x0021 ControlMode 8-bit 0x00 – Read / 0x0 O 27
Enumeration 0xfe Write 28
29
0x0022 AlarmMask 16-bit bitmap - Read only - O
30
31
6.2.2.2.3.1 OperationMode Attribute 32
33
The OperationMode attribute specifies the operation mode of the pump. This
34
attribute shall have one of the values listed in Table 6.7.
35
The actual operating mode of the pump is a result of the setting of the attributes 36
OperationMode, ControlMode and the optional connection of a remote sensor. 37
The operation and control is prioritized as shown in the scheme in the figure 38
below: 39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 195
1
OperationMode
is Maximum, Minimum
Pump runs as defined by 2
YES OperationMode (Maximum,
or Local
?
Minimum or the Local setting) 3
4
5
NO 6
7
8
A remote sensor Pump runs in the control mode 9
is connected
?
YES as per the type of the remote
sensor
10
11
12
13
NO
14
15
16
Pump runs as defined by
ControlMode
17
18
19
20
Figure 6.3 Priority Scheme of Pump Operation and Control 21
22
If the OperationMode attribute is Maximum, Minimum or Local, the
23
OperationMode attribute decides how the pump is operated.
24
If the OperationMode attribute is Normal and a remote sensor is connected to the 25
pump, the type of the remote sensor decides the control mode of the pump. A 26
connected remote pressure sensor will make the pump run in control mode 27
Constant pressure and vice versa for flow and temperature type sensors. This is 28
regardless of the setting of the ControlMode attribute. 29
30
If the OperationMode attribute is Normal and no remote sensor is connected, the
31
control mode of the pump is decided by the ControlMode attribute.
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 6
196 HVAC Specification
OperationMode may be changed at any time, even when the pump is running. The
behavior of the pump at the point of changing the value of the OperationMode 1
attribute is vendor specific. 2
3
Table 6.7 Values of the OperationMode Attribute
4
OperationMode 5
Name Explanation 6
Attribute Value
7
0 Normal The pump is controlled by a setpoint, as defined by a 8
connected remote sensor or by the ControlMode 9
attribute. (N.B. The setpoint is an internal variable
which may be controlled between 0% and 100%, e.g. 10
by means of the Level Control cluster 3.10) 11
12
1 Minimum This value sets the pump to run at the minimum
13
possible speed it can without being stopped
14
2 Maximum This value sets the pump to run at its maximum 15
possible speed 16
3 Local This value sets the pump to run with the local settings 17
of the pump, regardless of what these are 18
19
4-254 Reserved Reserved for future use
20
21
6.2.2.2.3.2 ControlMode Attribute 22
The ControlMode attribute specifies the control mode of the pump. This attribute 23
shall have one of the values listed in Table 6.8. 24
25
See section 6.2.2.2.3.1 for detailed description of the operation and control of the 26
pump. 27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 197
ControlMode may be changed at any time, even when the pump is running. The
behavior of the pump at the point of changing is vendor specific. 1
2
Table 6.8 Values of the ControlMode Attribute
3
ControlMode 4
Attribute Name Explanation 5
Value 6
7
0 Constant speed The pump is running at a constant speed. The setpoint 8
is interpreted as a percentage of the MaxSpeed attribute
9
1 Constant pressure The pump will regulate its speed to maintain a constant 10
differential pressure over its flanges. The setpoint is 11
interpreted as a percentage of the range of the sensor
12
used for this control mode. In case of the internal
pressure sensor, this will be the range derived from the 13
[MinConstPressure - MaxConstPressure] attributes. In 14
case of a remote pressure sensor, this will be the range 15
derived from the [MinMeasuredValue – 16
MaxMeasuredValue] attributes of the remote pressure
17
sensor.
18
2 Proportional The pump will regulate its speed to maintain a constant 19
pressure differential pressure over its flanges. The setpoint is 20
interpreted as a percentage of the range derived of the
[MinCompPressure - MaxCompPressure] attributes. 21
The internal setpoint will be lowered (compensated) 22
dependant on the flow in the pump (lower flow => 23
lower internal setpoint) 24
3 Constant flow The pump will regulate its speed to maintain a constant 25
flow through the pump. The setpoint is interpreted as a 26
percentage of the range of the sensor used for this 27
control mode. In case of the internal flow sensor, this 28
will be the range derived from the [MinConstFlow - 29
MaxConstFlow] attributes. In case of a remote flow
sensor, this will be the range derived from the 30
[MinMeasuredValue – MaxMeasuredValue] attributes 31
of the remote flow sensor. 32
33
4 Reserved -
34
5 Constant The pump will regulate its speed to maintain a constant 35
temperature temperature. The setpoint is interpreted as a percentage 36
of the range of the sensor used for this control mode. In
case of the internal temperature sensor, this will be the 37
range derived from the [MinConstTemp - 38
MaxConstTemp] attributes. In case of a remote 39
temperature sensor, this will be the range derived from 40
the [MinMeasuredValue – MaxMeasuredValue] 41
attributes of the remote temperature sensor.
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 6
198 HVAC Specification
Mandatory
6
/ Optional
7
Identifier Name Type Range Access Default
8
9
10
0x0000 LocalTemperature Signed 16- 0x954d – Read - M
bit Integer 0x7fff 11
12
0x0001 OutdoorTemperature Signed 16- 0x954d – Read - O 13
bit Integer 0x7fff
14
0x0002 Ocupancy 8-bit bitmap 0000000x Read 00000000 O 15
16
0x0003 AbsMinHeatSetpointLimit Signed 16- 0x954d – Read 0x02bc O
bit Integer 0x7fff (7°C) 17
18
0x0004 AbsMaxHeatSetpointLimit Signed 16- 0x954d – Read 0x0bb8 O 19
bit Integer 0x7fff (30°C)
20
0x0005 AbsMinCoolSetpointLimit Signed 16- 0x954d – Read 0x0640 O 21
bit Integer 0x7fff (16°C) 22
0x0006 AbsMaxCoolSetpointLimit Signed 16- 0x954d – Read 0x0c80 O 23
bit Integer 0x7fff (32°C) 24
25
0x0007 PICoolingDemand Unsigned 8- 0x00 – Read - O
bit Integer 0x64
26
27
0x0008 PIHeatingDemand Unsigned 8- 0x00 – Read - O 28
bit Integer 0x64 29
30
6.3.2.2.1.1 LocalTemperature Attribute 31
32
LocalTemperature represents the temperature in degrees Celsius, as measured 33
locally or remotely (over the network) as follows:- 34
LocalTemperature = 100 x temperature in degrees Celsius. 35
36
Where -273.15°C <= temperature <= 327.67 ºC, corresponding to a 37
LocalTemperature in the range 0x954d to 0x7fff. 38
The maximum resolution this format allows is 0.01 ºC. 39
40
A LocalTemperature of 0x8000 indicates that the temperature measurement is 41
invalid. 42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 6
202 HVAC Specification
Mandatory
/ Optional
13
Identifier Name Type Range Access Default 14
15
16
0x0010 LocalTemperature Signed 8-bit 0xE7 – 0x19 Read / 0x00 O 17
Calibration Integer Write (0°C) 18
0x0011 OccupiedCooling Signed 16- MinCoolSetpoint Read / 0x0a28 M 19
Setpoint bit Integer Limit – Write (26°C) 20
MaxCoolSetpoint 21
Limit 22
0x0012 OccupiedHeating Signed 16- MinHeatSetpoint Read / 0x07d0 M 23
Setpoint bit Integer Limit – Write (20°C) 24
MaxHeatSetpoint 25
Limit 26
0x0013 UnoccupiedCooling Signed 16- MinCoolSetpoint Read / 0x0a28 O 27
Setpoint bit Integer Limit – Write (26°C) 28
MaxCoolSetpoint 29
Limit 30
0x0014 UnoccupiedHeating Signed 16- MinHeatSetpoint Read / 0x07d0 O 31
Setpoint bit Integer Limit – Write (20°C) 32
MaxHeatSetpoint 33
Limit 34
0x0015 MinHeatSetpoint Signed 16- 0x954d – 0x7fff Read / 0x02bc O 35
Limit bit Integer Write (7°C) 36
0x0016 MaxHeatSetpoint Signed 16- 0x954d – 0x7fff Read / 0x0bb8 O
37
Limit bit Integer Write (30°C) 38
39
0x0017 MinCoolSetpoint Signed 16- 0x954d – 0x7fff Read / 0x02bc O 40
Limit bit Integer Write (7°C)
41
0x0018 MaxCoolSetpoint Signed 16- 0x954d – 0x7fff Read / 0x0bb8 O 42
Limit bit Integer Write (30°C) 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 6
204 HVAC Specification
Mandatory
2
/ Optional
3
Identifier Name Type Range Access Default
4
5
6
0x0019 MinSetpointDead Signed 8-bit 0x0a – 0x19 Read / 0x19 O
Band Integer Write (2.5°C) 7
8
0x001a RemoteSensing 8-bit Bitmap 00000xxx Read / 0 O 9
Write
10
0x001b ControlSequenceOf 8-bit 0x00 – 0x05 Read / 0x04 M 11
Operation Enumeration Write 12
0x001c SystemMode 8-bit 0x00 – 0x02 Read / 0x02 M 13
Enumeration Write 14
15
0x001d AlarmMask 8-bit bitmap 00000xxx Read only 0 O
16
17
6.3.2.2.2.1 LocalTemperatureCalibration Attribute 18
19
The LocalTemperatureCalibration attribute specifies the offset that can be added/
20
subtracted to the actual displayed room temperature, in steps of 0.1°C. The range
21
of this offset is –2.5 °C to +2.5 °C).
22
23
6.3.2.2.2.2 OccupiedCoolingSetpoint Attribute
24
The OccupiedCoolingSetpoint attribute is 16-bits in length and specifies the 25
cooling mode setpoint when the room is occupied. It shall be set to a value in the 26
range defined by the MinCoolSetpointLimit and MaxCoolSetpointLimit 27
attributes. The value is calculated as described in the LocalTemperature attribute. 28
29
The OccupiedHeatingSetpoint attribute shall always be below the value specified 30
in the OccupiedCoolingSetpoint by at least SetpointDeadband. If an attempt is 31
made to set it such that this condition is violated, a default response command 32
with the status code INVALID_VALUE (see 2.5.3) shall be returned. This shall 33
apply to all attempts to set values of attributes which violate similar conditions. 34
If it is unknown if the room is occupied or not, this attribute shall be used as the 35
cooling mode setpoint. 36
37
6.3.2.2.2.3 OccupiedHeatingSetpoint Attribute 38
39
The OccupiedHeatingSetpoint attribute is 16-bits in length and specifies the 40
heating mode setpoint when the room is occupied. It shall be set to a value in the 41
range defined by the MinHeatSetpointLimit and MaxHeatSetpointLimit attributes. 42
The value is calculated as described in the LocalTemperature attribute. The 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 205
thermostat can operate in. It shall be set to one of the non-reserved values in
Table 6.14. (Note - it is not mandatory to support all values). 1
2
Table 6.14 ControlSequenceOfOperation Attribute Values
3
ControlSequenceOfOperation Possible Values of 4
Description 5
Attribute Value SystemMode
6
0x00 Cooling Only Heat and Emergency are not 7
possible 8
0x01 Cooling With Reheat Heat and Emergency are not 9
possible 10
0x02 Heating Only Cool and precooling (see 11
1.3.2) are not possible 12
13
0x03 Heating With Reheat Cool and precooling are not 14
possible
15
0x04 Cooling and Heating All modes are possible 16
4-pipes (see 1.3.2) 17
0x05 Cooling and Heating All modes are possible 18
4-pipes with Reheat 19
20
0x06 – 0xfe Reserved -
21
22
6.3.2.2.3 SystemMode Attribute 23
The SystemMode attribute specifies the current operating mode of the thermostat,. 24
It shall be set to one of the non-reserved values in Table 6.15, as limited by 25
Table 6.16. (Note - it is not mandatory to support all values). 26
27
Table 6.15 SystemMode Attribute Values
28
29
SystemMode
Attribute Value Description 30
31
0x00 Off 32
0x01 Auto 33
34
0x03 Cool 35
0x04 Heat 36
37
0x05 Emergency heating
38
0x06 Precooling (see 1.3.2) 39
40
0x07 Fan only
41
0x08 – 0xfe Reserved 42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 6
208 HVAC Specification
The interpretation of the Heat, Cool and Auto values of SystemMode is shown in
Table 6.16. 1
2
Table 6.16 Interpretation of SystemMode Values
3
Temperature 4
SystemMode 5
Temperature Below Between Temperature Above
Attribute 6
Heat Setpoint Heat Setpoint and Cool Setpoint
Values
Cool Setpoint 7
8
Heat Temperature below Temperature on target Temperature on target
target 9
10
Cool Temperature on target Temperature on target Temperature above 11
target
12
Auto Temperature below Temperature on target Temperature above 13
target target 14
15
6.3.2.2.4 AlarmMask Attribute 16
17
The AlarmMask attribute specifies whether each of the alarms listed in Table 6.17 18
is enabled. When the bit number corresponding to the alarm code is set to 1, the 19
alarm is enabled, else it is disabled. Bits not corresponding to a code in the table 20
are reserved. 21
When the Alarms cluster is implemented on a device, and one of the alarm 22
conditions included in this table occurs, an alarm notification is generated, with 23
the alarm code field set as listed in the table. 24
25
Table 6.17 Alarm Codes
26
Alarm Code Alarm Condition 27
28
0 Initialization failure. The device failed to 29
complete initialization at power-up. 30
1 Hardware failure 31
32
2 Self-calibration failure 33
34
6.3.2.3 Commands Received 35
36
The command IDs for the Thermostat cluster are listed in Table 6.18. 37
Table 6.18 Command IDs for the Thermostat Cluster 38
39
Command Identifier 40
Field Value Description
41
0x00 Setpoint Raise/Lower 42
43
0x01 – 0xff Reserved 44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 209
6.4.2.2 Attributes
1
The Fan Control Status attribute set contains the attributes summarized in 2
Table 6.20. 3
Table 6.20 Attributes of the Fan Control Cluster 4
5
6
Mandatory
/ Optional
7
Identifier Name Type Range Access Default 8
9
10
0x0000 FanMode 8-bit Enumeration 0x00 – 0x06 Read/ 0x05 M 11
Write (auto)
12
0x0001 FanModeSequence 8-bit Enumeration 0x00 – 0x04 Read/ 0x02 M 13
Write 14
15
6.4.2.2.1 FanMode Attribute 16
17
The FanMode attribute is an 8-bit value that specifies the current speed of the fan. 18
It shall be set to one of the non-reserved values in Table 6.21. 19
Table 6.21 FanMode Attribute Values 20
21
FanMode Attribute Value Description 22
0x00 Off 23
24
0x01 Low 25
0x02 Medium 26
27
0x03 High 28
0x04 On 29
30
0x05 Auto (the fan speed is self-regulated)
31
0x06 Smart (when the heated/cooled space is occupied, 32
the fan is always on) 33
0x07– 0xfe Reserved 34
35
36
Note that for Smart mode, information must be available as to whether the heated/ 37
cooled space is occupied. This may be accomplished by use of the Occupancy 38
Sensing cluster (see 4.8). 39
6.4.2.2.2 FanModeSequence Attribute 40
41
The FanModeSequence attribute is an 8-bit value that specifies the possible fan 42
speeds that the thermostat can set. It shall be set to one of the non-reserved values 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 6
212 HVAC Specification
in Table 6.22. (Note:-. 'Smart' is not in this table, as this mode resolves to one of
the other modes depending on occupancy). 1
2
Table 6.22 FanSequenceOperation Attribute Values
3
FanSequenceOfOperation 4
Description 5
Attribute Value
6
0x00 Low/Med/High 7
0x01 Low/High 8
9
0x02 Low/Med/High/Auto 10
0x03 Low/High/Auto 11
12
0x04 On/Auto
13
0x05 – 0xfe Reserved 14
15
6.4.2.3 Commands Received 16
17
No cluster specific commands are received by the server. 18
19
6.4.2.4 Commands Generated 20
21
No cluster specific commands are generated by the server. 22
23
6.4.3 Client 24
25
6.4.3.1 Dependencies 26
27
None. 28
29
6.4.3.2 Attributes 30
31
The Client cluster has no attributes.
32
6.4.3.3 Commands Received 33
34
No cluster specific commands are received by the server. 35
36
6.4.3.4 Commands Generated 37
38
No cluster specific commands are generated by the server. 39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 213
Mandatory
6
/ Optional
7
Identifier Name Type Range Access Default
8
9
10
0x0000 RelativeHumidity Unsigned 0x00 – 0x64 Read - O
8-bit only 11
Integer 12
13
0x0001 DehumidificationCooling Unsigned 0- Read - M
14
8-bit Dehumidification only
Integer MaxCool 15
16
17
6.5.2.2.1.1 RelativeHumidity Attribute 18
The RelativeHumidity attribute is an 8-bit value that represents the current relative 19
humidity (in %) measured by a local or remote sensor. The valid range ix 0x00 – 20
0x64 (0% to 100%). 21
22
6.5.2.2.1.2 DehumidificationCooling Attribute 23
24
The DehumidificationCooling attribute is an 8-bit value that specifies the current 25
dehumidification cooling output (in %). The valid range is 0 to 26
DehumidificationMaxCool. 27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 215
Mandatory
6
/ Optional
7
Identifier Name Type Range Access Default
8
9
10
0x0010 RHDehumidificationSetpoint Unsigned 0x1E – Read/ 0x32 M
8-bit Integer 0x64 Write 11
12
0x0011 RelativeHumidityMode 8-bit 0x00 – Read/ 0x00 O 13
Enumeration 0x01 Write
14
0x0012 DehumidificationLockout 8-bit 0x00 – Read/ 0x01 O 15
Enumeration 0x01 Write 16
0x0013 DehumidificationHysteresis Unsigned 0x02 – Read/ 0x02 M 17
8-bit Integer 0x14 Write 18
19
0x0014 DehumidificationMaxCool Unsigned 0x14 – Read/ 0x14 M
20
8-bit Integer 0x64 Write
21
0x0015 RelativeHumidityDisplay 8-bit 0x00 – Read/ 0x00 O 22
Enumeration 0x01 Write 23
24
6.5.2.2.2.1 RHDehumidificationSetpoint Attribute 25
26
The RHDehumidificationSetpoint attribute is an 8-bit value that represents the 27
relative humidity (in %) at which dehumidification occurs. The valid range ix 28
0x1E – 0x64 (30% to 100%). 29
30
6.5.2.2.2.2 RelativeHumidityMode Attribute 31
The RelativeHumidityMode attribute is an 8-bit value that specifies how the 32
RelativeHumidity value is being updated. It shall be set to one of the non-reserved 33
values in Table 6.26. 34
35
Table 6.26 RelativeHumidityMode Attribute Values 36
37
RelativeHumidityMode
Attribute Value Description 38
39
0x00 RelativeHumidity measured locally 40
0x01 RelativeHumidity updated over the 41
network 42
43
0x02 – 0xff Reserved
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 6
216 HVAC Specification
6.6.2 Server 1
2
6.6.2.1 Dependencies 3
None. 4
5
6.6.2.2 Attributes 6
7
The attributes of this cluster are summarized in Table 6.29. 8
Table 6.29 Attributes of the Thermostat User Interface Configuration Cluster 9
10
Mandatory
11
/ Optional
Identifier Name Type Range Access Default 12
13
14
0x0000 TemperatureDisplayMode 8-bit 0x00 – Read/ 0x00 M 15
Enumeration 0x01 Write (Celsius) 16
17
0x0001 KeypadLockout 8-bit 0x00 – Read/ 0x00 M
18
Enumeration 0x05 Write (no lockout)
19
20
6.6.2.2.1 TemperatureDisplayMode Attribute 21
The TemperatureDisplayMode attribute specifies the units of the temperature 22
displayed on the thermostat screen. This attribute shall be set to one of the non- 23
reserved values in Table 6.30. 24
25
Table 6.30 DisplayMode Attribute Values 26
27
TemperatureDisplayMode
Description 28
Attribute Value
29
0x00 Temperature in oC 30
0x01 Temperature in oF 31
32
0x02 – 0xff Reserved 33
34
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 219
C H A P T E R
1
7
2
3
4
5
6
7
8
9
1
Configuration tool Shade 2
3
Shade configuration
4
C S 5
6
7
8
C = Client S = Server 9
10
Note:- Device names are examples for illustration only 11
12
Figure 7.1 Typical Usage of the Closures Clusters 13
14
15
7.2 Shade Configuration Cluster 16
17
18
7.2.1 Overview 19
20
This cluster provides an interface for reading information about a shade, and 21
configuring its open and closed limits. 22
23
7.2.2 Server 24
25
7.2.2.1 Dependencies 26
27
None 28
29
7.2.2.2 Attributes 30
31
For convenience, the attributes defined in this specification are arranged into sets
32
of related attributes; each set can contain up to 16 attributes. Attribute identifiers
33
are encoded such that the most significant three nibbles specify the attribute set
34
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 223
and the least significant nibble specifies the attribute within the set. The currently
defined attribute sets are listed in Table 7.2. 1
2
Table 7.2 Shade Configuration Attribute Sets
3
Attribute Set 4
Description 5
Identifier
6
0x000 Shade information 7
0x001 Shade settings 8
9
0x002 – 0xfff Reserved 10
11
7.2.2.2.1 Shade Information Attribute Set 12
13
The Shade Information attribute set contains the attributes summarized in
14
Table 7.3.
15
Table 7.3 Attributes of the Shade Information Attribute Set 16
17
Mandatory
/ Optional
18
Identifier Name Type Range Access Default 19
20
21
0x0000 PhysicalClosedLimit Unsigned 0x0001 – Read - O 22
16-bit integer 0xfffe only 23
24
0x0001 MotorStepSize Unsigned 0x00 – Read - O
8-bit integer 0xfe only 25
26
0x0002 Status 8-bit Bitmap 0000 Read / 0000 0000 M 27
xxxx write
28
29
7.2.2.2.1.1 PhysicalClosedLimit Attribute 30
31
The PhysicalClosedLimit attribute indicates the most closed (numerically lowest)
32
position that the shade can physically move to. This position is measured in terms
33
of steps of the motor, taking the physical most open position of the shade as zero.
34
This attribute is for installation informational purposes only. 35
36
The value 0xffff indicates an invalid or unknown PhysicalClosedLimit .
37
38
7.2.2.2.1.2 MotorStepSize Attribute 39
The MotorStepSize attribute indicates the angle the shade motor moves for one 40
step, measured in 1/10ths of a degree. 41
42
This attribute is for installation informational purposes only. 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 7
224 Closures Specification
motor may continue to turn at the top), the zero point for the motor-step
measurement system is set to the current position of the shade. 1
2
When the Mode attribute is set to Configure, the shade is closing, and either the 3
shade is stopped or it reaches its physical closed limit, the ClosedLimit attribute is 4
set to the current position of the shade, relative to the zero point set as described 5
above. 6
7
7.2.2.2.2.2 Mode Attribute 8
The Mode attribute indicates the current operating mode of the shade, as shown in 9
Table 7.6. 10
11
The value 0xff indicates an invalid or unknown mode. 12
Table 7.6 Values of the Mode Attribute 13
14
Mode Attribute Value Meaning 15
16
0x00 Normal 17
0x01 Configure 18
19
0x02 – 0xfe Reserved
20
21
In configure mode, the ClosedLimit attribute may be set as described above. 22
23
7.2.2.3 Commands Received 24
No cluster specific commands are received by the server. 25
26
7.2.2.4 Commands Generated 27
28
No cluster specific commands are generated by the server. 29
30
31
7.2.3 Client 32
33
7.2.3.1 Dependencies 34
None 35
36
7.2.3.2 Attributes 37
38
The client has no attributes. 39
40
7.2.3.3 Commands Received 41
No cluster specific commands are received by the client. 42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 7
226 Closures Specification
C H A P T E R
1
8
2
3
4
5
6
7
8
9
1
Ancillary Control Control and Indicating 2
Equipment Equipment Warning devices 3
4
IAS ACE IAS WD 5
C S C S
6
S S IAS Zone C S 7
8
9
10
IAS Zone Zone devices (sensors) 11
12
13
IAS Zone S 14
15
16
C = Client S = Server 17
18
Note:- Device names are examples for illustration only 19
20
Figure 8.1 Typical Usage of the IAS Clusters 21
22
23
8.2 IAS Zone Cluster 24
25
26
8.2.1 Overview 27
28
The IAS Zone cluster defines an interface to the functionality of an IAS security 29
zone device. IAS Zone supports up to two alarm types per zone, low battery 30
reports and supervision of the IAS network. 31
32
8.2.2 Server 33
34
8.2.2.1 Dependencies 35
36
None. 37
38
8.2.2.2 Attributes 39
40
For convenience, the attributes defined in this specification are arranged into sets 41
of related attributes; each set can contain up to 16 attributes. Attribute identifiers 42
are encoded such that the most significant three nibbles specify the attribute set 43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 229
and the least significant nibble specifies the attribute within the set. The currently
defined attribute sets are listed in Table 8.2. 1
2
Table 8.2 Attribute Sets for the IAS Zone Cluster
3
Attribute Set 4
Description 5
Identifier
6
0x000 Zone information 7
0x001 Zone settings 8
9
0x002 – 0xfff Reserved 10
11
8.2.2.2.1 Zone Information Attribute Set 12
13
The Zone Information attribute set contains the attributes summarized in
14
Table 8.3.
15
Table 8.3 Attributes of the Zone Information Attribute Set 16
17
Identifier Name Type Range Access Default Mandatory 18
/ Optional
19
0x0000 ZoneState 8-bit All Read only 0x00 M 20
Enumeration 21
22
0x0001 ZoneType 16-bit All Read only - M
Enumeration 23
24
0x0002 ZoneStatus 16-bit bitmap All Read only 0x00 M 25
26
8.2.2.2.1.1 ZoneState Attribute 27
28
The ZoneState attribute contains the values summarized in Table 8.4. 29
Table 8.4 Values of the ZoneState Attribute 30
31
ZoneState Value Meaning 32
0x00 Not enrolled
33
34
0x01 Enrolled (the server will react to Zone 35
State Change Notification commands 36
from the client)
37
0x02-0xff Reserved 38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 8
230 Security and Safety Specification
1
Bits 8 8 2
3
Data Type 8-bit Enumeration Unsigned 8-bit Integer 4
5
Field Name Enroll response code Zone ID
6
7
Figure 8.2 Format of the Zone Enroll Response Command Payload 8
9
The permitted values of the Enroll Response Code are shown in Table 8.9. 10
11
Table 8.9 Values of the Enroll Response Code
12
Code Meaning Details 13
14
0x00 Success Success 15
0x01 Not supported This specific Zone type is not known 16
to the CIE and is not supported. 17
18
0x02 No enroll permit CIE does not permit new zones to
enroll at this time.
19
20
0x03 Too many zones CIE reached its limit of number of 21
enrolled zones 22
0x04-0xfe Reserved - 23
24
The Zone ID field is the index into the zone table of the CIE (Table 8.11). This 25
field is only relevant if the response code is success. 26
27
28
8.2.2.3.1.2 Effect on Receipt
29
On receipt, the device embodying the Zone client is notified that it is now enrolled 30
as an active alarm device 31
32
The device embodying the Zone client must authenticate received messages by
33
checking the address of their sender against IAS_CIE_Address. This is to ensure
34
that only messages from the correct CIE are accepted.
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 8
234 Security and Safety Specification
1
Bits 16 16 2
3
Data Type 16-bit Enumeration Unsigned 16-bit Integer 4
5
Field Name Zone Type Manufacturer Code
6
7
Figure 8.4 Format of the Zone Enroll Request Command Payload 8
9
The Zone Type field shall be the current value of the ZoneType attribute. 10
11
The Manufacturer Code field shall be the manufacturer code as held in the node 12
descriptor for the device. Manufacturer Codes are allocated by the ZigBee 13
Alliance. 14
15
8.2.2.4.2.2 When Generated 16
The Zone Enroll Request command is generated when a device embodying the 17
Zone client cluster wishes to be enrolled as an active alarm device. It must do this 18
immediately it has joined the network (during commissioning). 19
20
21
8.2.3 Client 22
23
8.2.3.1 Dependencies 24
25
None.
26
27
8.2.3.2 Attributes
28
No attributes are currently defined for this cluster. 29
30
8.2.3.3 Commands Received 31
32
The client receives the cluster specific commands detailed in 8.2.2.4. 33
34
8.2.3.4 Commands Generated 35
The client generates the cluster specific commands detailed in 8.2.2.3, as required 36
by the application. 37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 8
236 Security and Safety Specification
8.3.3 Client 1
2
8.3.3.1 Dependencies 3
None. 4
5
8.3.3.2 Attributes 6
7
No attributes are currently defined for this cluster. 8
9
8.3.3.3 Commands Received 10
No cluster specific commands are received by the server. 11
12
8.3.3.4 Commands Generated 13
14
The client cluster generates the commands detailed in 8.3.2.4, as required by the 15
application. 16
17
18
8.4 IAS WD Cluster 19
20
21
8.4.1 Overview 22
23
The IAS WD cluster provides an interface to the functionality of any Warning 24
Device equipment of the IAS system. Using this cluster, a ZigBee enabled CIE 25
device can access a ZigBee enabled IAS WD device and issue alarm warning 26
indications (siren, strobe lighting, etc.) when a system alarm condition is detected 27
(according to [B2]). 28
29
8.4.2 Server 30
31
8.4.2.1 Dependencies 32
33
None. 34
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 243
8.4.2.2 Attributes
1
The attributes defined for the server cluster are detailed in Table 8.16. 2
Table 8.16 Attributes of the IAS WD (Server) Cluster 3
4
5
Identifier Name Type Range Access Default Mandatory
/ Optional 6
7
0x0000 MaxDuration Unsigned 0x0000 – Read/Write 240 M
16-bit integer 0fffe
8
9
0x0001-0xffff Reserved - - - - - 10
11
8.4.2.2.1 MaxDuration Attribute 12
13
The MaxDuration attribute specifies the maximum time in seconds that the siren 14
will sound continuously, regardless of start/stop commands. 15
16
8.4.2.3 Commands Received 17
The received command IDs are listed in Table 8.17. 18
19
Table 8.17 Received Command IDs for the IAS WD Server Cluster 20
21
Command Identifier Mandatory
Description 22
Field Value / Optional
23
0x00 Start warning M 24
0x01 Squawk M 25
26
0x02 – 0xff Reserved 27
28
8.4.2.3.1 Start Warning Command 29
30
This command starts the WD operation. The WD alerts the surrounding area by 31
audible (siren) and visual (strobe) signals. 32
A Start Warning command shall always terminate the effect of any previous 33
command that is still current. 34
35
8.4.2.3.1.1 Payload Format 36
37
The Start Warning command payload shall be formatted as illustrated in 38
Figure 8.11. 39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
Chapter 8
244 Security and Safety Specification
1
Bits 4 2 2 16 2
3
8-bit Data Unsigned 4
Data Type 16-bit Integer 5
Field Name Warning mode Strobe Reserved Warning duration 6
7
8
Figure 8.11 Format of the Start Siren Command Payload 9
10
The Warning mode and Strobe subfields are concatenated together to a single 8-bit 11
Bitmap field. The groups of bits these subfields occupy are used as follows. 12
13
8.4.2.3.1.2 Warning Mode Field 14
The Warning Mode field is used as an 4-bit enumeration, can have one of the 15
values set in Table 8.18. The exact behavior of the WD device in each mode is 16
according to the relevant security standards. 17
18
Table 8.18 Warning Modes 19
20
Warning Mode Meaning
21
0 Stop (no warning) 22
23
1 Burglar
24
2 Fire 25
3 Emergency 26
27
4-15 Reserved 28
29
8.4.2.3.1.3 Strobe Field 30
31
The Strobe field is used as a 2-bit enumeration, and determines if the visual 32
indication is required in addition to the audible siren, as indicated in Table 8.19. If 33
the strobe field is "1" and the Warning Mode is "0" ("Stop") then only the strobe is 34
activated. 35
Table 8.19 Values of the Strobe Field 36
37
Value Meaning 38
39
0 No strobe
40
1 Use strobe in parallel to warning 41
2-3 Reserved
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.
ZigBee Cluster Library
Document 075123r01ZB 245
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
This page left intentionally blank 17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Copyright © 2007 ZigBee Standards Organization. All rights reserved.