I didn’t exactly build this from scratch but it is pretty heavily modified: I use an ESP8266 with a relay module to control my garage door via Home Assistant. I use a second one mounted on my bike as a WiFi presence detector. This way when I turn the bike on, the bike module connects to my home WiFi and Home Assistant opens my garage door. Once I leave the property and WiFi disconnects, the garage door closes a minute later. When I come home the same happens: as I approach the garage door opens and after I park and shut the bike off the door closes. There are a lot of solutions for how to open the garage door from a bike but this has been the most elegant that I’ve tried.