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.

Properties

CommandClass

CommandClass: Object.<string, ZwaveCommandClass>

Type

MultiChannelNodes

MultiChannelNodes: Object.<string, ZwaveNode>

Type

Methods

sendCommand

(async) sendCommand(command): Promise.<void>

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

Parameters

Name Type Description
command
object
commandClassId
number

The command class identified

commandId
number

The command identified

params
Buffer <optional>

The command data as a buffer

}

Returns

Promise.<void>

Events

nif

.on('nif')

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

Properties

Name Type Description
nif
Buffer

online

.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

unknownReport

.on('unknownReport')

This event is fired when a a Node has received an unknown command.

Properties

Name Type Description
data
Buffer