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.

Instance Properties

battery

battery: boolean

Whether the node is battery operated

Type

  • boolean

CommandClass

CommandClass: Object.<string, ZwaveCommandClass>

An object with ZwaveCommandClass instances

Type

deviceClassBasic

deviceClassBasic: string

Basic device class

Type

  • string

deviceClassGeneric

deviceClassGeneric: string

Generic device class

Type

  • string

deviceClassSpecific

deviceClassSpecific: string

Specific device class

Type

  • string

firmwareId

firmwareId: number

Firmware identifier

Type

  • number

isMultiChannelNode

isMultiChannelNode: boolean

Whether this node is a multichannel node

Type

  • boolean

manufacturerId

manufacturerId: Object

The manufacturer id, in the value property of the object

Type

  • Object

multiChannelNodeId

multiChannelNodeId: number

If this is a multichannel node, the id

Type

  • number

MultiChannelNodes

MultiChannelNodes: Object.<string, ZwaveNode>

An object with ZwaveNode instances

Type

nodeId

nodeId: number

The id of the node within the Zwave network

Type

  • number

online

online: boolean

Whether the node is online

Type

  • boolean

productId

productId: Object

The product id, in the value property of the object

Type

  • Object

productTypeId

productTypeId: Object

The product type id, in the value property of the object

Type

  • Object

Instance 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