- Allows easy switching or opening for a period of time
- Can close the garage after arriving or leaving
- Determines the presence by pinging the owner's smartphone in WiFi
- Warns before closing and allows a break-off
- Allows usage via Telegram only for specific users
- Notifies the owner about the use of the bot by other registered users
I have soldered two wires to the switch of the garage remote to bridged it. Then the wires were connected to a relay. This relay is controlled by a Raspberry Pi.
For installation on a Raspberry Pi:
git clone https://github.com/Andre0512/GarageBot && cd GarageBot
python3 -m venv venv && source ./venv/bin/activate # optional
pip install -r requirements.txt
cp config.py.default config.py && nano config.py
For this step, you have to register a Telegram bot by the Telegram @BotFahter.
You can see the Telegram IDs by using an alternative Telegram Client like Plus Messenger for Android or using the @userinfobot
python garage.py &
Execute this command to start the GarageBot automatically at startup:
(cat /etc/crontab && echo "@reboot root $PWD/venv/bin/python $PWD/garage.py") | sudo tee /etc/crontab
The finished bot looks like this: