hub.scenes.block.enabled.set
- Version: 1.0
- Feature version:
- Classes: UI
- Description: Enables or disables any condition block of scene. If block is disabled, it doesn’t produce any events and reports its state as constantly.
				
				Edit
			
			| Field | Type | Required | Description | 
|---|---|---|---|
| sceneId | string | + | A scene identifier | 
| blockId | string | + | A when block identifier | 
| enabled | boolean | + | A state of an ‘enabled’ flag to be set. | 
				
				Edit
			
			| Code | Message | Data | 
|---|---|---|
| -32600 | Wrong params, | |
| -32603 | Internal operation error | |
| -32500 | The scene with this id does not exist | |
| -32500 | Scene block does not exist | 
				
				Edit
			
			| Broadcasts | Description | 
|---|---|
| hub.scene.added | Broadcast when the scene is successfully created. | 
				
				Edit
			
			
				
					{
    "id":"_ID_",
    "jsonrpc":"2.0",
    "method":"hub.scenes.block.enabled.set",
    "params":{
        "sceneId": "_SCENE_ID_",
        "blockId": "_BLOCK_ID_",
        "enabled": false
    }
}				
			
             
                                    