|  Developer
Updated on November 22, 2021

hub.favorite.added

  • Broadcast after a device, item or rule was added to favorites. Users can add and manage favorites in the Ezlo app.
  • This is a response to a request from hub.favorite.set
Edit
				
					{
        "id": "ui_broadcast",
        "msg_subclass": "hub.favorite.added",
        "initiator": {
            "api_name": "some api name here",
            "connection_type": "UI",
            "peer_unique_id": "23/3"
        },
        "result": {
            "devices": [
                "_DEVICE_ID_"
            ],
            "items": [
                "_ITEM_ID_"
            ],
            "rules": [
                "_RULE_ID_"
            ]
        }
    }				
			
Edit
Field Description
result.devices (optional) Identifies the device that was added to favorites
result.items (optional) Identifies the item that was added to favorites
result.rules (optional) Identifies the rule that was added to favorites