Skip to content

Create Homebridge accessory automation without HomeKit home hub

License

Notifications You must be signed in to change notification settings

Cezary924/Homebridge-Automation-Bot

Repository files navigation

Homebridge Automation Bot

🏠

Create Homebridge accessory automation without HomeKit home hub

A badge with a label 'Lang 🇬🇧' - a link takes to README file in English A badge with a label 'Lang 🇵🇱' - a link takes to README file in Polish

✨ Automations

  • Timer (to turn off the Homebridge accessory after a specified period of time (+ only during a specified part of a day)).
  • Scheduler (to turn on/off the Homebridge accessory depending on the time of the day (+ sunrise/sunset)).
  • Auto-restart (to restart Homebridge instance depending on the time of the day or the day of the week).

⚙️ Installation

  1. Clone this repo.
  2. Install required libraries with this code:
pip install -r requirements.txt

🚀 Configuration & The First Start

  1. To start, execute this command in the main directory:
python src/bot.py
  1. During the first launch, the script created a config.ini file in a config directory. Please, edit the file with your data (Homebridge IP, port, username & password).
  2. If the information provided was correct, the script updated the file with Homebridge accessories data. Please, add to the file your automations.
  3. Enjoy!