Global

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 debug npm module (e.g. zigbee-clusters:bound-cluster:*).

Example

const { debug } = require('zigbee-clusters');

// Enables debug logging in zigbee-clusters
debug(true);

Type Definitions

DiscoverAttributeExtendedResponse

DiscoverAttributeExtendedResponse

Type

  • object

Properties

Name Type Description
id
number

Attribute id

dataTypeId
number

ZCLDataType id

acl
Array.<string>

Can hold values "readable"/"writable"/"reportable"

DiscoverAttributeResponse

DiscoverAttributeResponse

Type

  • object

Properties

Name Type Description
id
number

Attribute id

dataTypeId
number

ZCLDataType id

DiscoverAttributesExtendedResponse

DiscoverAttributesExtendedResponse

Type

  • object

Properties

Name Type Description
lastResponse
boolean
attributes
Array.<DiscoverAttributeExtendedResponse>

DiscoverAttributesResponse

DiscoverAttributesResponse

Type

  • object

Properties

Name Type Description
lastResponse
boolean
attributes
Array.<DiscoverAttributeResponse>

ReadReportingConfiguration

ReadReportingConfiguration

Type

  • 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>