Myq does not "automatically" open and close the garage door for you. You need to go to the phone app and use your finger to touch your phone screen in order to open then again to close. If you don't do anything, the current status will be permanently prolonged (either open or close).
Current Chamberlain garage door openers (no need to buy add-on Myq) can automatically open and close but as a timeout feature, not a proximity feature. It will automatically close if you forgot to close. You have to manually disable the automation if you don't like it.
I have a MyQ, the feature was there at one point. Maybe it was removed during the changeover. Looks like people are doing it with SimpleCommands now.
Plan B: Since you already have a Pi (assuming you like to tinker), turn it into a HomeBridge device and integrate with Apple HomeKit and run geofenced-based automations. If not an Apple user, you can use Home Assistant - both which have MyQ Plugins. I use both HomeBridge and Home Assistant as features are sometimes better on one platform vs the other.