|  Developer
Updated on November 10, 2021

hub.scenes.scripts.list

  • Version: 1.0
  • Classes: UI
  • Title: Scene manager categories
  • Description: List all added/loaded script snippets
Edit
Field Type Required Description
_id string + Id of a script snippet
name string Title for the script snippet
Edit
Here is it an example of usage:
Edit
				
					{
   "id":"_ID_",
   "jsonrpc":"2.0",
   "method":"hub.scenes.scripts.list",
   "params":{}
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {
        "scripts":[ {
            "_id": "5cf0dc8c7f000068d223e88a",
            "name":"Switch on all lights"
          },
          {
            "_id": "5aa0dc8c7f000068d223e88a",
            "name":"Switch off all lights"
          }
        ]
    }
}