As a side pitch, I have set up my home using Home Assistant which is fantastic for integrating smart devices. So I have scripts that do things like close the garage door if no one is home and send an alert to my phone, close the garage door at 10:30pm, etc. I also have a garage door sensor so it is "stateful". And yep, it integrates with your Tesla. I also wouldn't trust the auto close/open since it is not stateful, but with Home Assistant it is, so I need to get around to setting that up for it.
Tesla
It's still technical but they main developer got hired to code for it full time so it has made some great strides in user friendliness. DM me if you want more info, I used to be a developer on the project but lack the time these days.