|  Developer
Updated on May 16, 2022

add_device

  • Sent after add_device is finished executing
Edit
Field Value Type Required Description
event string + Event name
plugin string + Plugin name
status string + Result of the operation, can be any of 2GIG Addon event statuses
details string Event failure reason
Edit
Edit
				
					{
    "id": "ui_broadcast",
    "msg_subclass": "hub.extensions.plugin.ui_broadcast",
    "result": {
        "event": "add_device",
        "plugin": "2gig",
        "status": "finished"
    }
}				
			
Edit
				
					{
    "id": "ui_broadcast",
    "msg_subclass": "hub.extensions.plugin.ui_broadcast",
    "result": {
        "event": "add_device",
        "plugin": "2gig",
        "status": "failed",
        "details": "Device not supported"
    }
}