ZwaveNode

This class is a representation of a Z-Wave Device in Homey. This class must not be initiated by the developer, but retrieved by calling ManagerZwave#getNode.

Table of Contents

Methods

(async) sendCommand(command) → {Promise.<void>}

This method can be used to send a raw command to a node.

Parameters:
Name Type Description
command object
Name Type Attributes Description
commandClassId number

The command class identified

commandId number

The command identified

params Buffer <optional>

The command data as a buffer

Returns:
Type:
Promise.<void>

Events

.on('nif')

This event is fired when a Node Information Frame (NIF) has been sent.

Properties:
Name Type Description
nif Buffer

.on('online')

This event is fired when a battery node changed it's online or offline status.

Properties:
Name Type Description
online boolean

If the node is online

.on('unknownReport')

This event is fired when a a Node has received an unknown command, usually due to a missing Command Class.

Properties:
Name Type Description
data Buffer