|  Developer
Updated on March 28, 2023

get_node()

  • Get a ZWave node by a node_id with additional information about channels and command classes. (node_id is a part of data coming to a script subscribed for ZWave events)
Edit
  • params: node id (number).
  • return: ZWave node (table). Look at objects page to get a node table format.
Edit
				
					require "zwave"

local node = zwave.get_node( node_id )
if node then
    print( "node.is_reachable: " .. node.isReachable )
end