I'm doing this a bit differently. Tesla's have a built in browser, and what you need is a home assistant (running on raspberry pi for 50eur). A shelly 1 wifi switch (20eur) that you integrate into home assistant. Then you can open/close garage/gate from wherever you are, from a Tesla or a mobile...