|  Developer
Updated on March 28, 2023

get_node_info()

  • Get a ZWave node by a node_id without 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_info( node_id )
if node then
    print( "node.is_reachable: " .. node.isReachable )
end