You are currently viewing the Homey Apps SDK v2 documentation. New apps should use Homey Apps SDK v3 ››

Homey.ZwaveCommandClass

const { ZwaveCommandClass } = require('homey');

This class is a representation of a Z-Wave Command Class for a ZwaveNode in Homey. The class has properties of type Function that are the commands, dependent on the Command Class. For an example see ManagerZwave#getNode.

Table of Contents

Events

.on('report')

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

Parameters:
Name Type Description
command Object
Name Type Description
value number

Value of the command

name string

Name of the command

report Object

The report object. Contents depend on the Command Class