hub.favorite.set
Connection type:
- Add device, items, rules to favorites.
				
				Edit
			
			
				
					{
    "method": "hub.favorite.set",
    "id": "_ID_",
    "params": {
        "devices": [
            {
                "_id": "_DEVICE_ID",
                "favorite": false
            }
        ],
        "items": [
            {
                "_id": "_ITEM_ID_"
            }
        ],
        "rules": [
            {
                "_id": "_RULE_ID_",
                "favorite": true
            }
        ]
    }
}				
			
            | Filed | Type | Required | Description | 
|---|---|---|---|
| devices (optional) | Array | – | Devices array for changing favorite state | 
| items (optional) | Array | – | Items array for changing favorite state | 
| rules (optional) | Array | – | Rules array for changing favorite state | 
| ARRAY._id | string | + | Object id | 
| ARRAY.favorite (optional) | bool | – | add to favorite(By Default). remove from favorite | 
				
				Edit
			
			
				
				Edit
			
			| Broadcasts | Description | 
|---|---|
| hub.favorite.added | informs about add to favorite | 
| hub.favorite.removed | informs about remove from favorite | 
 
                                    