/home_automation

Python based automation system designed around the use of ESP8826 + mqtt

Primary LanguagePythonApache License 2.0Apache-2.0

Home Automation

Build Status

Python based automation system which uses mqtt to handle intra-component communication (was formally just for use of ESP8266 devices)

Requirements

  • libcurl4-openssl-dev
  • python3-pip
  • python3.4
  • git
  • screen

Installation

Note: These installation instructions are for Ubuntu 14.04

  1. Install prerequisits
sudo -i
apt-get install mosquitto
pip install virtualenv
  1. Setup home_automation
cd /
git clone https://github.com/mbainrot/home_automation.git
cd /home_automation
virtualenv env -p `which python3.4`
source env/bin/activiate
pip install -r requirements.txt
  1. Configure home automation
cp config.example.py config.py
cp lifx_config.example.py lifx_config.py

You then have to edit those files accordingly, config.py generally doesn't need it but for lifx_config.py you will need to specify your API key.

  1. Start home_automation
cd /home_automation
./start.sh