Record longer sequence for custom device

I have an outdoor parking gate. in order to open it, I must press the remote for 1-2 seconds. when trying to record the remote bond sees the remote but stops the recording prematurely.

What can I do?

Thanks for your help