|  Developer
Updated on June 21, 2022

hub.scenes.global.edit

  • Version: 1.0
  • Classes: UI
  • Title: Global Scene categories
  • Description: Update the scene json by it’s id.
Edit
Field Type Required Description
_id string + rule identifier
scene JsonObject + Json object of the rule description. Please see hub.scenes.global.create
Edit
Broadcasts Description
hub.scene.global.changed Updating the information about the scene.
Edit
  • Empty result or an error
Edit
Code Message Data
-32600 Bad request, is empty
-32600 Bad request, does not exist
-32500 Scene is ill formed. Can’t parse when block
-32500 Scene is ill formed. Can’t parse then block
-32500 Scene is failed. There is no such method
-32500 Scene contain conditions for not intersect numbers values inside of AND condition
-32500 Scene contain conditions for same functionality inside of AND condition
-32500 Scene contain conditions for same functionality inside of AND condition
-32500 Scene cannot contain “isInterval” conditions along with other time based condition in the same AND operator
Edit
				
					{
    "id": "_ID_",
    "jsonrpc": "2.0",
    "method": "hub.scenes.global.edit",
    "params" :
     {
         "_id": "5c5318aa518af44041018347",
         "scene": {
            "enabled": true,
            "tag": "testRule/1",
            "execPolicy": "check_result",
            "then" : [
            ],
            "when": [
            ]
         }
     }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {}
}