This is a simple implementation of brutella/hc. Turning a Liftmaster into a homekit compatible garage door opener.
Name | Link | Price Estimate |
---|---|---|
Raspberry Pi | Zero W / 3B+ | Zero W ~ $14 / 3b+ ~$35 |
5V 2.5A Charger (For Pi) | Newark | ~ $9 |
5v Relay Module | Amazon / Frys | ~ $5 |
Jumper Wires F to F | Amazon | ~ $7 |
Wire any guage | Amazon | ~ $14 |
Total | $49 ~ $70 |
Coming Soon
- ✅ Opening and Closing
- 🔜 True stateful opening and closing (will require distance sensor)
- 🔜 Obstacle Detection
The deb package installs files to /opt/garage/
Logs can be found at /opt/garage/logs
The config file allows you make minor changes without touching code
Optional Values
- Name (Default=Garage Door): The text that will appear in Homekit as the name of the accessory
- Manufacturer (Default=Liftmaster): The manufacturer of the accessory
- Model (Default=Professional 1/3 HP): The model of the accessory
- SerialNumber (Default=l1f7m4573r): The serial number of the accessory
IMPORTANT Manufacturer, Model, SerialNumber has no effect besides showing it under accessory information in Homekit.
Required Values
- Pin: The BCM gpio pin that will active the relay.
Simple Config
{
"pin": 2
}
If you would rather build to a binary/executable you can just use go build
like
go build -o garage main.go
This project uses nfpm to create a deb package for installing on linux with armhf architecture. It is fairly simple to enable other architectures, requested if would be useful.
make package-linux arch=armhf
sudo dpkg -i INSERTDEBFILEHERE