Constructor
ZCLNode
new ZCLNode(node)Create a new ZCLNode instance.
Parameters
Name | Type | Description |
---|---|---|
node
|
Homey.ZigBeeNode | As provided by |
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();