|  Developer
Updated on November 26, 2021

hub.scenes.get

  • Version: 1.0
  • Classes: UI
  • Title: Scene manager categories
  • Description: Get scene json object.
Edit
Field Type Required Description
_id string + rule identifier
Edit
Edit
Code Message Data
-32600 Bad request,
-32600 Bad request,
-32500 The scene with this id does not exist
Edit
Edit
				
					{
    "id": "_ID_",
    "jsonrpc": "2.0",
    "method": "hub.scenes.list",
    "params": {}
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {
         "scenes":
        [
        {
            "_id": "5c7ff48b7f00002a07a408e3",
            "enabled": true,
            "group_id": null,
            "is_group": false,
            "name": "testRule",
            "parent_id": "5c6ec961cc01eb07f86f9dd9",
            "house_modes" : [
                "1",
                "2", 
                "4"
            ],
            "then" : [
                {
                    "blockOptions":{
                        "method":{
                            "args":{
                                "item":"item",
                                "value":"value"
                            },
                            "name":"setItemValue"
                        }
                    },
                    "blockType":"then",
                    "fields":[
                        {
                            "name":"item",
                            "type":"item",
                            "value" : "897607_32771_1"
                        },
                        {
                            "name":"value",
                            "type":"int",
                            "value": 10
                        }
                    ]
                }
            ],
            "when": [
                {
                    "blockOptions": {
                        "method": {
                            "args": {
                                "item": "item",
                                "value": "value"
                            },
                            "name": "isItemState"
                        }
                    },
                    "blockType": "when",
                    "fields": [
                        {
                            "name": "item",
                            "type": "item",
                            "value": "5c7fea6b7f00000ab55f2e55",
                        },
                        {
                            "name": "value",
                            "type": "bool",
                            "value": true
                        }
                    ]
                }
            ]
        }
    ]
  }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {}
}