I recently got a car, but unfortunately I don’t have a remote for my garage and programming it would mean having to reprogram my entire family’s cars and remotes. Luckily, I installed a my-q chamberlain device that allows me to open the garage with my phone. While this works, it’s a hassle to open the garage via the app (Usually takes around 30 seconds). After learning about Siri Shortcuts, I figured out a way to open and close it much quickly and safer.
Using the run commands over SSH shortcut, you can execute a python file which opens/closes your garage door. The outline of the script will look something like this:
- Turn off WiFi (just to make sure you have a good connection and aren’t on a weak connection)
- Run script
- Turn on WiFi
- Say the garage door was opened/closed
You will need the following:
- An iPhone with iOS12+
- A Raspberry Pi (Zero works as well) or a small Linux VM
- Already installed MY-Q device
Setting up the server
Run the following commands: sudo apt-get update && sudo apt-get upgrade -y sudo apt-get install python3-pip git clone https://github.com/arraylabs/pymyq.git pip3 install pymyq
From here, you can use the example.py file located in the cloned repository. Add in your username and password and try running it. Once it works, you can modify the file to do whatever you want. In my case, I just have a simple open/close function, but you could get creative.
There are only two things you need to do here. The first is opening up a port to access SSH. I set SSH to a different port and opened that, but you could get away with using the default 22. Once you do that, the next optional step is to set up DNS so that if you IP address changes, you won’t have issues. I recommend following the guide on duckdns.org
Once you do all of that, everything should work!