|  Developer
Updated on May 18, 2022

Extensions manager module API (require “extensions_manager”)

()

Edit
  • Get information from plugin extension data, filtered by plugin_id, path_to_data and filter fields.
Edit

  • Params
fields type description
plugin_id string extended plugin ID
path_to_data string path to interested extension data in format [extension_plugin_id]/[extension_name]/…
filter string specifies, how to filter interested data
  • Possible filters
filter description
keys Return array of keys, existing in object. If no data found, returns empty array
count Return elements number in array. If no data found, returns 0
any_number Return specified element from array. If no data found, returns empty object
empty_string Return whole object, specified by path_to_data. If no data found, returns empty object
  • return: number or object or array, depends on filter
Edit
				
					require "extensions_manager"

extensions_manager.get_plugin_extension_data("zwave", "zwave_ext/deviceSettings/1_1_1", "count")				
			
Edit
  • Get list of extension’s id’s in priority order for specified plugin_id.
Edit

  • Params
fields type description
plugin_id string extended plugin ID
  • Get list of extension’s id’s in priority order for specified plugin_id.
Edit
				
					require "extensions_manager"

extensions_manager.get_plugin_extensions("zwave")