hub.scenes.list
- Version: 1.0
- Classes: UI
- Title: Scene manager categories
- Description: Update the scene json by it’s id.
Edit
- No parameters required.
Edit
- The array of the rule objects which are described at hub.scenes.create
Edit
Here is it an example of usage:
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": {}
}