When within the GPS location when the HomeLink is available, leave the HomeLink selection visible unless you move away from the location or swipe the selection up.
In my garage. I always hit the button twice – once to open, then again to close. The HomeLink icon has to be hit even though I’m still in the same area.
Non-Tesla car’s HomeLink uses physical buttons that are always available.