ZCLNode

This class represents a ZCLNode, a node instance with Zigbee Cluster Library capabilities. It can only be created from a node instance provided by Homey.ManagerZigBee.getNode().

Constructor

ZCLNode

new ZCLNode(node)

Create a new ZCLNode instance.

Parameters

Name Type Description
node
Homey.ZigBeeNode

As provided by Homey.ManagerZigBee.getNode().

Example

const Homey = require('homey');
const { ZCLNode } = require('zigbee-clusters');

// Get Homey.ZigBeeNode instance
const node = await Homey.ManagerZigBee.getNode(this);

// Create ZCLNode instance from node
const zclNode = new ZCLNode(node);

// Interact with remote node
await zclNode.endpoints[1].clusters['onOff'].toggle();