ManagerZwave

You can access this manager through the Homey instance as this.homey.zwave

Table of Contents

Methods

(async) getNode(device) → {Promise.<ZwaveNode>}

Create a ZwaveNode instance for a Device

Parameters:
Name Type Description
device Device

An instance of Device

Returns:
Type:
Promise.<ZwaveNode>
Example
const node = await this.homey.zwave.getNode(this);

node.CommandClass.COMMAND_CLASS_BASIC.on('report', (command, report) => {
  this.log('onReport', command, report);
});

node.CommandClass.COMMAND_CLASS_BASIC.BASIC_SET({ Value: 0xFF })
  .then(this.log)
  .catch(this.error);