A client for door-dumb-api that allows to use a Telegram bot to simply open the door. The bot used to do a few more things (check the old
branch if interested), but if you want anything more advanced, you should check Home assistant as this is meant to be extremly simple (I run it at my grandparents' country house, where there are limited resources).
This is quick, easy and simple (if everything is going to be on a Pi, you should make yourself a docker-compose.yml
):
-
First, you need a door-dumb-api instance. Check that README to learn how to spin one up
-
Then, you can setup the basic configuration (check
config.example.json
). -
Then you can use this docker command:
docker run -d --name dooropener-telegram -v /tmp/config:/app/config ghcr.io/peprolinbot/dooropener-telegram
Name | Description |
---|---|
CONFIG_FILE |
Path to the json file with the basic config _(Default: "config/config.json") |
telegram
bot_token
: The token @BotFather gave youlog_channel_id
: Id of the channel where all the events will be loggedkey_channel_id
: Id of the channel whose members should be able to use the botbot_name
: A name for your botlanguage
: The language code you want the messages to be sent in (es/eng)
door-dumb-api
base_url
: The base url of the door-dumb-api instancetoken
: A token for door-dumb-api(check that README)door_id
: The door_id that will be controlled by the botwait_to_close_time
: This is optional, if specified it will override the value specified for the door in door-dumb-api
git clone https://github.com/peprolinbot/dooropener-telegram
cd dooropener-telegram
docker build -t dooropener-telegram .
Only use this for development unless you know what you're doing.
git clone https://github.com/peprolinbot/dooropener-telegram
cd dooropener-telegram
python3 main.py