|  Developer

runScene

  • Run another scene
Edit
Field Type Required Description
blockOptions.method.args.sceneId sceneId + Scene ID to be run
blockOptions.method.args.block string Specific action block to be run. Possible values: “then”, “else”, “thenGroups”, “elseGroups”)
blockOptions.method.args.group string ID of an action group to be run. Only applicable if “block” argument is “thenGroups” or “elseGroups”
Edit
				
					{
   "blockOptions":{
      "method":{
         "name":"runScene",
         "args":{
            "sceneId":"sceneId",
            "block":"block",
            "group":"group"
         }
      }
   },
   "blockType":"then",
   "fields":[
      {
         "name":"sceneId",
         "type":"sceneId",
         "value": "5cf0dc8c7f000068d223e88a"
      },
      {
         "name":"block",
         "type":"string",
         "value": "else"
      },
      {
         "name":"group",
         "type":"string",
         "value": "5c6ec961cc01eb07f86f9dd9"
      }
   ]
}				
			
Edit
Internal error code Message Data
-32602 Wrong field of object rpc.params.wrong_field
-32500 Requested action will create an infinite loop in scenes execution scenes.cycle.detected
-32500 Scene contain actions with current scene id scenes.action.recursive_execute
-32500 The scene with this id does not exist ezlo.scenes.not.exist
-32500 Scene does not contain an action group with such ID ezlo.scenes.block.groups.not.exist