Zwave Object

For developers: Zwave object documentation

Zwave Object

This documentation is currently incomplete.

Methods

getCommand

Returns a zwave object given the commandClass, command and an optional version.

Signature

Command getCommand(Short commandClass, Short command, List<Short> payload, Integer version = null)

Parameters

commandClass - to be documented

Returns

Command - to be documented

Example

def zwaveEvent(hubitat.zwave.commands.crc16encapv1.Crc16Encap cmd) {
   def encapsulatedCommand = zwave.getCommand(cmd.commandClass, cmd.command, cmd.data,1)
   if (encapsulatedCommand) {
       zwaveEvent(encapsulatedCommand)
   } else {
       log.warn "Unable to extract CRC16 command from ${cmd}"
   }
}