|  Developer
Updated on November 23, 2021

get_command_class()

  • Get a ZWave command class by node id, channel id and command class id. (node_id, channel_id, cc_id is a part of data coming to a script subscribed for ZWave events)
Edit
  • params: node_id (int), channel_id (int), class_id (int)
  • return: ZWave command class (table). Look at objects page to get a command classes table format.
Edit
				
					require "zwave"

local cc = zwave.get_command_class( node_id, channel_id, cc_id )
if cc then
    print( "cc.version: " .. cc.version )
end