🏡 Open source home automation that puts local control and privacy first.
Go to file
Paulus Schoutsen da4ab542a7 Update documentation for example component 2014-12-21 22:21:32 -08:00
config Update documentation for example component 2014-12-21 22:21:32 -08:00
docs Updated screenshots 2014-11-13 22:52:39 -08:00
ha_test New strategy for defining number of used threads 2014-12-16 21:46:02 -08:00
homeassistant Add code to mock API for demo on home-assistant.io 2014-12-21 15:07:01 -08:00
.gitignore Home Assistant contains pre-compiled version of polymer components 2014-10-24 23:09:19 -07:00
.gitmodules Move to Pypi version of Phue again 2014-11-22 15:49:54 -08:00
.travis.yml Update travis.yml to point at new test 2014-12-01 07:59:08 -08:00
CONTRIBUTING.md Moved documentation from GitHub source to home-assistant.io 2014-12-21 15:06:17 -08:00
Dockerfile Refactor __main__ to use ArgParse 2014-11-05 07:58:20 -08:00
LICENSE Added MIT license 2013-10-08 21:18:22 -07:00
README.md Add link to demo in README 2014-12-21 22:20:17 -08:00
build_frontend frontend compile script now strips comments 2014-11-13 22:47:06 -08:00
pylintrc Work around a pylint bug 2014-11-22 16:56:36 -08:00
requirements.txt nmap-based device tracking plugin 2014-12-14 23:28:12 -08:00
run_tests.sh Renamed test to ha_test because of conflict with built-in python test package 2014-11-30 23:15:18 -08:00

README.md

Home Assistant Build Status Coverage Status

This is the source for Home Assistant. For installation instructions, tutorials and the docs, please see https://home-assistant.io. For a fully functioning frontend of Home Assistant, click here.

Home Assistant is a home automation platform running on Python 3. The goal of Home Assistant is to be able to track and control all devices at home and offer a platform for automating control.

It offers the following functionality through built-in components:

Home Assistant also includes functionality for controlling HTPCs:

  • Simulate key presses for Play/Pause, Next track, Prev track, Volume up, Volume Down
  • Download files
  • Open URLs in the default browser

screenshot-states

The system is built modular so support for other devices or actions can be implemented easily. See also the section on architecture and the section on customizing.

If you run into issues while using Home Assistant or during development of a component, reach out to the Home Assistant developer community.

Installation instructions / Quick-start guide

Running Home Assistant requires that python3 and the package requests are installed.

Run the following code to get up and running with the minimum setup:

git clone --recursive https://github.com/balloob/home-assistant.git
cd home-assistant
pip3 install -r requirements.txt

python3 -m homeassistant

This will start the Home Assistant server and create an initial configuration file in config/home-assistant.conf that is setup for demo mode. It will launch its web interface on http://127.0.0.1:8123. The default password is 'password'.

If you're using Docker, you can use

docker run -d --name="home-assistant" -v /path/to/homeassistant/config:/config -v /etc/localtime:/etc/localtime:ro -p 8123:8123 balloob/home-assistant

After you got the demo mode running it is time to enable some real components and get started. An example configuration file has been provided in /config/home-assistant.conf.example.

Note: you can append ?api_password=YOUR_PASSWORD to the url of the web interface to log in automatically.

Note: for the light and switch component, you can specify multiple platforms by using sequential sections: [switch], [switch 2], [switch 3] etc

Philips Hue

To get Philips Hue working you will have to connect Home Assistant to the Hue bridge.

Run the following command from your config dir and follow the instructions:

python3 -m phue --host HUE_BRIDGE_IP_ADDRESS --config-file-path phue.conf

After that add the following lines to your home-assistant.conf:

[light]
platform=hue

Wireless router

Your wireless router is used to track which devices are connected. Three different types of wireless routers are currently supported: tomato, netgear and luci (OpenWRT). To get started add the following lines to your home-assistant.conf (example for Netgear):

[device_tracker]
platform=netgear
host=192.168.1.1
username=admin
password=MY_PASSWORD

Note on tomato: Tomato requires an extra config variable called http_id. The value can be obtained by logging in to the Tomato admin interface and search for http_id in the page source code.

Note on luci: before the Luci scanner can be used you have to install the luci RPC package on OpenWRT: opkg install luci-mod-rpc.

Once tracking, the device_tracker component will maintain a file in your config dir called known_devices.csv. Edit this file to adjust which devices have to be tracked.

As an alternative to the router-based device tracking, it is possible to directly scan the network for devices by using nmap. The IP addresses to scan can be specified in any format that nmap understands, including the network-prefix notation (192.168.1.1/24) and the range notation (192.168.1.1-255).

[device_tracker]
platform=nmap_tracker
hosts=192.168.1.1/24