Compile-time options
To enable the Occupancy Sensing cluster in the code to be built, it is necessary to add the following to the zcl_options.h file:
#define CLD_OCCUPANCY_SENSING
In addition, to include the software for a cluster client or server or both, it is necessary to add one of the following to the same file:
#define OCCUPANCY_SENSING_CLIENT
#define OCCUPANCY_SENSING_SERVER
Optional Attributes
Add this line to enable the optional PIR Occupied To Unoccupied Delay attribute:
#define CLD_OS_ATTR_PIR_OCCUPIED_TO_UNOCCUPIED_DELAY
Add this line to enable the optional PIR Unoccupied To Occupied Delay attribute:
#define CLD_OS_ATTR_PIR_UNOCCUPIED_TO_OCCUPIED_DELAY
Add this line to enable the optional PIR Unoccupied To Occupied Threshold attribute:
#define CLD_OS_ATTR_PIR_UNOCCUPIED_TO_OCCUPIED_THRESHOLD
Add this line to enable the optional Ultrasonic Occupied To Unoccupied Delay attribute:
#define CLD_OS_ATTR_ULTRASONIC_OCCUPIED_TO_UNOCCUPIED_DELAY
Add this line to enable the optional Ultrasonic Unoccupied To Occupied Delay attribute:
#define CLD_OS_ATTR_ULTRASONIC_UNOCCUPIED_TO_OCCUPIED_DELAY
Add this line to enable the Ultrasonic PIR Unoccupied To Occupied Threshold attribute:
#define CLD_OS_ATTR_ULTRASONIC_UNOCCUPIED_TO_OCCUPIED_THRESHOLD
Global Attributes
Add this line to enable the optional Attribute Reporting Status attribute:
#define CLD_OS_ATTR_ID_ATTRIBUTE_REPORTING_STATUS
Add this line to define the value (n) of the Cluster Revision attribute:
#define CLD_OS_CLUSTER_REVISION <n>
The default value is 1, which corresponds to the revision of the cluster in the ZCL r6 specification (see Section 2.4).
Parent topic:Occupancy Sensing Cluster