|  Developer
Updated on November 23, 2021

subscribe(script_name[, events_filter])

  • Subscribe a script for Zwave events, optionally specifying event filter rules. After subscribing the script will be launched for each event happens on a Zwave addon and information about this event will be passed as a parameter.
  • params: script name (string), events_filter(table).
  • return: subscriber_id (string).
					require "zwave"

zwave.subscribe( "HUB:zwave/scripts/events_handling" )