|  Developer
Updated on November 22, 2021

hub.extensions.plugin.run

Connection type:
Permissions:
  • Runs specified plugin script (for internal testing purposes only)
Edit
Field Type Required Description
params.script string Plugin script id (same format as used inside plugin .lua scripts)
params.code string Base64 encoded Lua script to execute either in text or binary format
params.scriptParams object Parameters to be passed to the script

  • Only one field params.script or params.code MUST be used. If both fields are specified ONLY params.code will be executed
Edit
Edit
Broadcast Description
hub.extensions.plugin.run.progress Operation progress information
Edit
Execute start_include script of zwave plugin
Edit
				
					{
    "method": "hub.extensions.plugin.run",
    "id": "_ID_",
    "params": {
        "script": "HUB:zwave/scripts/start_include"
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {}
}				
			
Edit
Edit
				
					{
    "method": "hub.extensions.plugin.run",
    "id": "_ID_",
    "params": {
        "code": "cHJpbnQoIkhlbGxvIEx1YSEp"
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {}
}