|  Developer
Updated on November 23, 2021

get_node()

  • Get a Zigbee node by a node_id. (node_id is a part of data coming to a script subscribed for Zigbee events)
Edit

  • params: node id (number).
  • return: Zigbee node (table). Look at objects page to get a node table format.
Edit
				
					require "zigbee"
 
local node = zigbee.get_node( node_id )
if node then do
    print( "node.is_reachable: " .. node.isReachable )
end