The ID is the ID of the device. You need to take the device reference that you got and bind to midi event.