|  Developer

stopScene

  • Stops another scene actions or specific action block.

    • It can stop scene actions from or collections.
Edit
Field Type Required Description
blockOptions.method.args.sceneId sceneId + Scene ID to be stopped
blockOptions.method.args.block string Specific action block to be stopped. Possible values: “then”, “else”, “thenGroups”, “elseGroups”
blockOptions.method.args.group string ID of an action group to be stop. Only applicable if “block” argument is “thenGroups” or “elseGroups”
Edit
Internal error code Message Data
-32500 The scene with this id does not exist ezlo.scenes.not.exist
-32600 Bad request, sceneId does not exist rpc.params.notfound.sceneId
Edit
Edit

Example: stop actions for the particular scene:

				
					{
   "blockOptions":{
      "method":{
         "name":"stopScene",
         "args":{
            "sceneId":"sceneId"
         }
      }
   },
   "blockType":"then",
   "fields":[
      {
         "name":"sceneId",
         "type":"sceneId",
         "value":"{scene_id}"
      }
   ]
}				
			
Edit

Example: stop actions from the block “else” for the scene:

				
					{
   "blockOptions":{
      "method":{
         "name":"stopScene",
         "args":{
            "sceneId":"sceneId",
            "block":"block"
         }
      }
   },
   "blockType":"then",
   "fields":[
      {
         "name":"sceneId",
         "type":"sceneId",
         "value": "{scene_id}"
      },
      {
         "name":"block",
         "type":"string",
         "value": "else"
      }
   ]
}