How far from the smartlock should I connect the gateway?

Connect the gateway within 5m of the lock and on the same floor.

Did this solve your problem?