|  Developer
Updated on May 18, 2022

set_master_code()

  • Ask ZWave addon to set master code for ZWave node. Note, master code must be supported in user code CC capabilities (Version 2 only). If CC supports master code deactivation, pass empty string to deactivate master code.
Edit

  • params: node_id (int), channel_id (int)
  • return: none.
Edit
				
					require "zwave"

zwave.set_master_code(node_id, channel_id, "1234")