Properties
IAS_ZONE_TYPE
(constant) IAS_ZONE_TYPEIAS Zone Type values from the ZCL specification (IAS Zone cluster, zoneType attribute).
ZIGBEE_DEVICE_ID
(constant) ZIGBEE_DEVICE_IDZigbee Device IDs from the ZCL specification.
ZIGBEE_PROFILE_ID
(constant) ZIGBEE_PROFILE_IDZigbee Profile IDs from the ZCL specification.
Methods
debug
debug(flag, namespaces)Enables or disables debug logging.
Parameters
| Name | Type | Description |
|---|---|---|
flag
|
boolean
default:true
|
Set to true to enable logging |
namespaces
|
string
default:*
|
As specified by |
Example
const { debug } = require('zigbee-clusters');
// Enables debug logging in zigbee-clusters
debug(true);
Type Definitions
DiscoverAttributeExtendedResponse
DiscoverAttributeExtendedResponseType
- object
Properties
| Name | Type | Description |
|---|---|---|
id
|
number | Attribute id |
dataTypeId
|
number | ZCLDataType id |
acl
|
Array.<string> | Can hold values "readable"/"writable"/"reportable" |
DiscoverAttributeResponse
DiscoverAttributeResponseType
- object
Properties
| Name | Type | Description |
|---|---|---|
id
|
number | Attribute id |
dataTypeId
|
number | ZCLDataType id |
DiscoverAttributesExtendedResponse
DiscoverAttributesExtendedResponseType
- object
Properties
| Name | Type | Description |
|---|---|---|
lastResponse
|
boolean | |
attributes
|
Array.<DiscoverAttributeExtendedResponse> |
DiscoverAttributesResponse
DiscoverAttributesResponseType
- object
Properties
| Name | Type | Description |
|---|---|---|
lastResponse
|
boolean | |
attributes
|
Array.<DiscoverAttributeResponse> |
ReadReportingConfiguration
ReadReportingConfigurationType
- object
Properties
| Name | Type | Description |
|---|---|---|
status
|
ZCLDataTypes.enum8Status | |
direction
|
'reported' | 'received' | |
attributeId
|
number | |
attributeDataType
|
ZCLDataType.id <optional> | |
minInterval
|
number <optional> | |
maxInterval
|
number <optional> | |
minChange
|
number <optional> | |
timeoutPeriod
|
number <optional> |