A super simple package/script that will allow you to easily arm and disarm your Yale alarm system using a provided schedule. The schedule along with the configuration details are stored in config file.
Run it directly via your favourite Python interpreter, use provided Dockerfile or run the shell script.
- Python3
- Yale Alarm System (Yale Smart Living WIFI Enabled)
- SendGrid (if you wish to get email notifications)
- yale-smart-alarm-client
- sendgrid
- backoff
- schedule
"schedule": {
"23:00": "arm",
"06:00": "disarm"
}
Allowed values for state are: arm
, disarm
and home
(for partial arm).
You can run the script directly via a Python interpreter or, alternatively, use docker.
Before Starting: Please modify the config.json
file and provide all the values that are present in the
provided template config.json file.
If you wish to use SendGrid to receive email notifications on arm/disarm events, provide your SendGrip API key. SendGrid is free for a specific amount of emails per month and is a fast and reliable service.
- Install dependencies:
pip install -r requirements.txt
- Run the following:
python run.py -config "path/to/config.json"
- Done. System is now running.
Assuming you have Docker installed, follow the below steps:
-
Modify the
config.json
file and provide all the required values. -
Build a docker image using Dockerfile:
docker build -t yale-alarm-scheduler .
-
Create and run the image as a new container:
docker run --rm yale-alarm-scheduler