Merge remote-tracking branch 'origin/current' into next
@ -128,9 +128,9 @@ social:
|
||||
# Home Assistant release details
|
||||
current_major_version: 0
|
||||
current_minor_version: 39
|
||||
current_patch_version: 2
|
||||
date_released: 2017-03-01
|
||||
current_patch_version: 3
|
||||
date_released: 2017-03-04
|
||||
|
||||
# Either # or the anchor link to latest release notes in the blog post.
|
||||
# Must be prefixed with a # and have double quotes around it.
|
||||
patch_version_notes: "#release-0392---march-1"
|
||||
patch_version_notes: "#release-0393---march-4"
|
||||
|
@ -48,3 +48,4 @@ binary_sensor:
|
||||
2: opening
|
||||
4: motion
|
||||
6: moisture
|
||||
```
|
||||
|
@ -21,11 +21,16 @@ climate:
|
||||
platform: honeywell
|
||||
username: YOUR_USERNAME
|
||||
password: YOUR_PASSWORD
|
||||
scan_interval: 600
|
||||
```
|
||||
<p class='note'>
|
||||
Scan interval is expressed in seconds. Omitting scan_interval may result in too-frequent polling and cause you to rate-limited by Honeywell.
|
||||
</p>
|
||||
|
||||
Configuration variables:
|
||||
|
||||
- **username** (*Required*): The username of an user with access.
|
||||
- **password** (*Required*): The password for your given admin account.
|
||||
- **away_temperature** (*optional*): Heating setpoint when away mode is on. If omitted it defaults to 16.0 deg C.
|
||||
- **region** (*optional*): Region identifier (either 'eu' or 'us'). Defaults to 'eu' if not provided.
|
||||
- **away_temperature** (*Optional*): Heating setpoint when away mode is on. If omitted it defaults to 16.0 deg C.
|
||||
- **region** (*Optional*): Region identifier (either 'eu' or 'us'). Defaults to 'eu' if not provided.
|
||||
- **scan_interval**(*Optional*): Scan interval is expressed in seconds. Recommended value of 600 seconds. Default value is 120 seconds. Omitting scan_interval may result in too-frequent polling and cause you to rate-limited by Honeywell.
|
||||
|
@ -35,6 +35,7 @@ Configuration variables:
|
||||
- **username** (*Required*: The username of an user with administrative privileges, usually `admin`.
|
||||
- **password** (*Optional*): The password for your given admin account (use this if no SSH key is given).
|
||||
- **protocol** (*Optional*): The protocol (`ssh` or `telnet`) to use. Defaults to `ssh`.
|
||||
- **port** (*Optional*): SSH port to use. Defaults to `22`.
|
||||
- **mode** (*Optional*): The operating mode of the router (`router` or `ap`). Defaults to `router`.
|
||||
- **ssh_key** (*Optional*): The path to your SSH private key file associated with your given admin account (instead of password).
|
||||
|
||||
|
@ -7,6 +7,7 @@ sidebar: true
|
||||
comments: false
|
||||
sharing: true
|
||||
footer: true
|
||||
logo: pocketcasts.png
|
||||
ha_category: Sensor
|
||||
ha_release: 0.39
|
||||
---
|
||||
|
@ -150,7 +150,7 @@ First get or learn all the remotes you want to add on HA in E-Control
|
||||
|
||||
1. Download
|
||||
|
||||
Get the script from [here](https://github.com/NightRang3r/Broadlink-e-control-db-dump5).
|
||||
Get the script from [here](https://github.com/NightRang3r/Broadlink-e-control-db-dump).
|
||||
|
||||
2. Dump the data from the app
|
||||
|
||||
|
@ -28,7 +28,7 @@ To use your TPLink switch in your installation, add the following to your `confi
|
||||
# Example configuration.yaml entry
|
||||
switch:
|
||||
- platform: tplink
|
||||
host: IP_ADRRESS
|
||||
host: IP_ADDRESS
|
||||
```
|
||||
|
||||
Configuration variables:
|
||||
|
@ -65,11 +65,13 @@ telegram_webhooks:
|
||||
|
||||
Telegram webhooks raise an event `telegram.command` with a payload.
|
||||
|
||||
```json{
|
||||
```json
|
||||
{
|
||||
'command': '/thecommand'
|
||||
'args': 'strings after command'
|
||||
'user_id': 12345
|
||||
}
|
||||
```
|
||||
|
||||
Automation example that realize simple test to command/notify interaction.
|
||||
|
||||
|
@ -12,7 +12,7 @@ redirect_from: /getting-started/automation-templating/
|
||||
|
||||
In Home Assistant 0.19 we introduced a new powerful feature: variables in scripts and automations. This makes it possible to adjust your condition and action based on the information of the trigger.
|
||||
|
||||
The trigger data made is available during [template](/configuration/templating/) rendering as the `trigger` variable.
|
||||
The trigger data made is available during [template](/docs/configuration/templating/) rendering as the `trigger` variable.
|
||||
|
||||
```yaml
|
||||
# Example configuration.yaml entries
|
||||
@ -128,4 +128,4 @@ The following tables show the available trigger data per platform.
|
||||
| `trigger.zone` | State object of zone
|
||||
| `trigger.event` | Event that trigger observed: `enter` or `leave`.
|
||||
|
||||
[state object]: /configuration/state_object/
|
||||
[state object]: /docs/configuration/state_object/
|
||||
|
@ -18,10 +18,14 @@ $ ps -p 1 -o comm=
|
||||
|
||||
If the preceding command returns the string `systemd`, you are likely using `systemd`.
|
||||
|
||||
If you want Home Assistant to be launched automatically, an extra step is needed to setup `systemd`. You need a service file to control Home Assistant with `systemd`. If you are using a Raspberry Pi with Raspbian then replace the `[your user]` with `pi` otherwise use your user you want to run Home Assistant. `ExecStart` contains the path to `hass` and this may vary. Check with `whereis hass` for the location.
|
||||
If you want Home Assistant to be launched automatically, an extra step is needed to setup `systemd`. A service file is needed to control Home Assistant with `systemd`. The template below should be created using a text editor. Note, root permissions via 'sudo' will likely be needed. The following should be noted to modify the template:
|
||||
|
||||
```bash
|
||||
$ su -c 'cat <<EOF >> /etc/systemd/system/home-assistant@.service
|
||||
+ `ExecStart` contains the path to `hass` and this may vary. Check with `whereis hass` for the location.
|
||||
+ If running Home Assistant in a python virtual environment or a docker, please skip to section below.
|
||||
+ For most systems, the file is `/etc/systemd/system/home-assistant@[your user].service` with [your user] replaced by the user account that Home Assistant will run as - normally `homeassistant`. For Ubuntu 16.04, the file is `/lib/systemd/system/home-assistant.service` and requires running this command `sudo ln -s /lib/systemd/system/home-assistant.service /etc/systemd/system/home-assistant.service` after file is created.
|
||||
+ If unfamiliar with command line text editors, `sudo nano -w [filename]` can be used with `[filename]` replaced with the full path to the file. Ex. `sudo nano -w /etc/systemd/system/home-assistant@homeassistant.service`. After text entered, press CTRL-X then press Y to save and exit.
|
||||
|
||||
```
|
||||
[Unit]
|
||||
Description=Home Assistant
|
||||
After=network.target
|
||||
@ -33,10 +37,9 @@ ExecStart=/usr/bin/hass
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF'
|
||||
```
|
||||
|
||||
If you've setup Home Assistant in `virtualenv` following our [python installation guide](https://home-assistant.io/getting-started/installation-virtualenv/) or [manual installation guide for raspberry pi](https://home-assistant.io/getting-started/installation-raspberry-pi/), the following template should work for you.
|
||||
If you've setup Home Assistant in `virtualenv` following our [python installation guide](https://home-assistant.io/getting-started/installation-virtualenv/) or [manual installation guide for raspberry pi](https://home-assistant.io/getting-started/installation-raspberry-pi/), the following template should work for you. If Home Assistant install is not located at `/srv/homeassistant`, please modify the `Enviroment=` and `ExecStart=` lines appropriately.
|
||||
|
||||
```
|
||||
[Unit]
|
||||
@ -74,18 +77,33 @@ ExecStopPost=/usr/bin/docker rm -f home-assistant-%i
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
You need to reload `systemd` to make the daemon aware of the new configuration. Enable and launch Home Assistant after that.
|
||||
You need to reload `systemd` to make the daemon aware of the new configuration.
|
||||
|
||||
```bash
|
||||
$ sudo systemctl --system daemon-reload
|
||||
```
|
||||
|
||||
To have Home Assistant start automatically at boot, enable the service.
|
||||
|
||||
```bash
|
||||
$ sudo systemctl enable home-assistant@[your user]
|
||||
```
|
||||
|
||||
To disable the automatic start, use this command.
|
||||
|
||||
```bash
|
||||
$ sudo systemctl disable home-assistant@[your user]
|
||||
```
|
||||
|
||||
To start Home Assistant now, use this command.
|
||||
```bash
|
||||
$ sudo systemctl start home-assistant@[your user]
|
||||
```
|
||||
|
||||
If everything went well, `sudo systemctl start home-assistant@[your user]` should give you a positive feedback.
|
||||
You can also substitute the `start` above with `stop` to stop Home Assistant, `restart` to restart Home Assistant, and 'status' to see a brief status report as seen below.
|
||||
|
||||
```bash
|
||||
$ sudo systemctl status home-assistant@[your user] -l
|
||||
$ sudo systemctl status home-assistant@[your user]
|
||||
● home-assistant@fab.service - Home Assistant for [your user]
|
||||
Loaded: loaded (/etc/systemd/system/home-assistant@[your user].service; enabled; vendor preset: disabled)
|
||||
Active: active (running) since Sat 2016-03-26 12:26:06 CET; 13min ago
|
||||
@ -99,10 +117,10 @@ $ sudo systemctl status home-assistant@[your user] -l
|
||||
To get Home Assistant's logging output, simple use `journalctl`.
|
||||
|
||||
```bash
|
||||
$ journalctl -f -u home-assistant@[your user]
|
||||
$ sudo journalctl -f -u home-assistant@[your user]
|
||||
```
|
||||
|
||||
Because the log can scroll quite quickly, you might want to open a second terminal to view only the errors:
|
||||
Because the log can scroll quite quickly, you can select to view only the error lines:
|
||||
```bash
|
||||
$ journalctl -f -u home-assistant@[your user] | grep -i 'error'
|
||||
$ sudo journalctl -f -u home-assistant@[your user] | grep -i 'error'
|
||||
```
|
||||
|
@ -17,7 +17,7 @@ The easiest way to install Home Assistant on your Raspberry Pi is by using HASSb
|
||||
3. Ensure your Raspberry Pi has access to the internet.
|
||||
4. Insert SD card to Raspberry Pi and turn it on. Initial installation of Home Assistant will take about 5 minutes.
|
||||
|
||||
These instructions are also available as a [video](https://www.youtube.com/watch?v=iIz6XqDwHEk).
|
||||
These instructions are also available as a [video](https://www.youtube.com/watch?v=iIz6XqDwHEk). And additioning info is available in this [video](https://www.youtube.com/watch?v=tCGlQSsQ-Mc).
|
||||
|
||||
After initial boot, you can reach Home Assistant in your browser at [http://hassbian.local:8123]. If you want to login via SSH, the default username is `pi` and password is `raspberry` (please change this by running `passwd`). The Home Assistant configuration is located at `/home/homeassistant/.homeassistant/`.
|
||||
|
||||
|
@ -10,9 +10,88 @@ footer: true
|
||||
redirect_from: /getting-started/installation/
|
||||
---
|
||||
|
||||
Home Assistant provides multiple ways to be installed. If you are a Raspberry Pi owner then the [Hassbian](/docs/hassbian/) is an easy and simple way to run home Assistant.
|
||||
Home Assistant provides multiple ways to be installed. A requirement is that you have [Python](https://www.python.org/downloads/) installed. For Windows we require at least **Python 3.5** and for other operating systems at least **Python 3.4.2**.
|
||||
|
||||
The only requirement is that you have [Python](https://www.python.org/downloads/) installed. For Windows we require at least **Python 3.5** and for other operating systems at least **Python 3.4.2**.
|
||||
<div class="text-center hass-option-cards" markdown="0">
|
||||
<a class='option-card' href='/docs/hassbian/installation/'>
|
||||
<div class='img-container'>
|
||||
<img src='/images/supported_brands/home-assistant.png' />
|
||||
</div>
|
||||
<div class='title'>Hassbian</div>
|
||||
</a>
|
||||
<a class='option-card' href='/docs/installation/raspberry-pi/'>
|
||||
<div class='img-container'>
|
||||
<img src='/images/supported_brands/raspberry-pi.png' />
|
||||
</div>
|
||||
<div class='title'>Rasbian</div>
|
||||
</a>
|
||||
<a class='option-card' href='/docs/installation/archlinux/'>
|
||||
<div class='img-container'>
|
||||
<img src='/images/supported_brands/archlinux.png' />
|
||||
</div>
|
||||
<div class='title'>ArchLinux</div>
|
||||
</a>
|
||||
<a class='option-card' href='/docs/installation/armbian/'>
|
||||
<div class='img-container'>
|
||||
<img src='/images/supported_brands/armbian.png' />
|
||||
</div>
|
||||
<div class='title'>armbian</div>
|
||||
</a>
|
||||
<a class='option-card' href='/docs/installation/fedora/'>
|
||||
<div class='img-container'>
|
||||
<img src='/images/supported_brands/fedora.png' />
|
||||
</div>
|
||||
<div class='title'>Fedora</div>
|
||||
</a>
|
||||
<a class='option-card' href='/docs/installation/centos/'>
|
||||
<div class='img-container'>
|
||||
<img src='/images/supported_brands/centos.png' />
|
||||
</div>
|
||||
<div class='title'>CentOS/RHEL</div>
|
||||
</a>
|
||||
<a class='option-card' href='/docs/installation/windows/'>
|
||||
<div class='img-container'>
|
||||
<img src='/images/supported_brands/windows.png' />
|
||||
</div>
|
||||
<div class='title'>Windows</div>
|
||||
</a>
|
||||
<a class='option-card' href='/docs/installation/macos/'>
|
||||
<div class='img-container'>
|
||||
<img src='/images/supported_brands/apple.png' />
|
||||
</div>
|
||||
<div class='title'>macOS</div>
|
||||
</a>
|
||||
<a class='option-card' href='/docs/installation/synology/'>
|
||||
<div class='img-container'>
|
||||
<img src='/images/supported_brands/synology.png' />
|
||||
</div>
|
||||
<div class='title'>Synology</div>
|
||||
</a>
|
||||
<a class='option-card' href='/docs/installation/docker/'>
|
||||
<div class='img-container'>
|
||||
<img src='/images/supported_brands/docker.png' />
|
||||
</div>
|
||||
<div class='title'>Docker</div>
|
||||
</a>
|
||||
<a class='option-card' href='/docs/installation/vagrant/'>
|
||||
<div class='img-container'>
|
||||
<img src='/images/supported_brands/vagrant.png' />
|
||||
</div>
|
||||
<div class='title'>Vagrant</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Once Home Assistant is installed, execute the following code in a console/terminal to check if the setup was successful:
|
||||
|
||||
```bash
|
||||
$ hass
|
||||
```
|
||||
|
||||
The first start may take a minute or two because the needed packages will be downloaded and installed. The web interface will be served on [http://localhost:8123](http://localhost:8123).
|
||||
|
||||
For more details about `hass`, please refer to the [tools section](/docs/tools/hass/).
|
||||
|
||||
If you're running a Linux-based platform, we suggest you follow the [VirtualEnv instructions](/docs/installation/virtualenv/) to avoid using `root`.
|
||||
|
||||
It may be needed that you install additional library depending on the platforms/components you want to use.
|
||||
|
||||
|
31
source/_docs/installation/archlinux.markdown
Normal file
@ -0,0 +1,31 @@
|
||||
---
|
||||
layout: page
|
||||
title: "Installation on ArchLinux"
|
||||
description: "Installation of Home Assistant on your ArchLinux computer."
|
||||
date: 2017-03-01 07:00
|
||||
sidebar: true
|
||||
comments: false
|
||||
sharing: true
|
||||
footer: true
|
||||
---
|
||||
|
||||
[ArchLinux](https://www.archlinux.org/) is a lightweight and flexible Linux distribution. There are official packages optimized for the i686 and x86-64 architectures available.
|
||||
|
||||
Install the needed Python packages.
|
||||
|
||||
```bash
|
||||
$ sudo pacman -S python
|
||||
$ sudo pacman -S python-pip
|
||||
```
|
||||
|
||||
and Home Assistant itself.
|
||||
|
||||
```bash
|
||||
$ pip3 install homeassistant
|
||||
```
|
||||
|
||||
Home Assistant is part of the [AUR](https://aur.archlinux.org/packages/home-assistant/). This meand that it can be installed directly with `pacman`:
|
||||
|
||||
```bash
|
||||
$ sudo pacman -S home-assistant
|
||||
```
|
@ -11,9 +11,15 @@ footer: true
|
||||
|
||||
[armbian](https://www.armbian.com) runs on a wide-variety of [ARM development boards](https://www.armbian.com/download/). Currently there are around 50 boards supported inclusive the OrangePi family, Cubieboard, Pine64, and Odroid.
|
||||
|
||||
Setup Python and `pip`
|
||||
|
||||
```bash
|
||||
$ sudo apt-get update
|
||||
$ sudo apt-get install python3-dev python3-pip
|
||||
```
|
||||
|
||||
Now you can follow the [generic instructions](/docs/installation/python/).
|
||||
Install Home Assistant.
|
||||
|
||||
```bash
|
||||
$ pip3 install homeassistant
|
||||
```
|
||||
|
62
source/_docs/installation/centos.markdown
Normal file
@ -0,0 +1,62 @@
|
||||
---
|
||||
layout: page
|
||||
title: "Installation on CentOS/RHEL"
|
||||
description: "Installation of Home Assistant on your CentOS/RHEL computer."
|
||||
date: 2017-03-01 07:00
|
||||
sidebar: true
|
||||
comments: false
|
||||
sharing: true
|
||||
footer: true
|
||||
---
|
||||
|
||||
To run Python 3.x on [CentOS](https://www.centos.org/) or RHEL (Red Hat Enterprise Linux), [Software Collections](https://www.softwarecollections.org/en/scls/rhscl/rh-python34/) needs to be activated first.
|
||||
|
||||
There are effort in progress to bring Python 3.4 to [Extra Packages for Enterprise Linux (EPEL)](https://fedoraproject.org/wiki/EPEL) which will allow you to follow the [Fedora Instructions](/docs/installation/fedora/).
|
||||
|
||||
### {% linkable_title Using Software Collections %}
|
||||
|
||||
First of all install the software collection repository as root. For example, on CentOS:
|
||||
|
||||
```bash
|
||||
$ yum install centos-release-scl
|
||||
```
|
||||
|
||||
Then install the Python 3.5 package:
|
||||
|
||||
```bash
|
||||
$ yum install rh-python35
|
||||
```
|
||||
|
||||
Once installed, switch to your homeassistant user (if you've set one up), enable the software collection and check that it has set up the new version of Python:
|
||||
|
||||
```bash
|
||||
$ scl enable rh-python35 bash
|
||||
$ python --version
|
||||
Python 3.5.1
|
||||
```
|
||||
|
||||
You will be in a command shell set up with Python 3.5 as your default version. The virtualenv and pip commands will be correct for this version, so you can now create a virtual environment and install home assistant following the main [instructions](https://home-assistant.io/docs/installation/virtualenv/#step-4-set-up-the-virtualenv).
|
||||
|
||||
You will need to enable the software collection each time you log on before you activate your virtual environment.
|
||||
|
||||
### {% linkable_title Systemd with Software Collections %}
|
||||
|
||||
To autostart homeassistant using systemd follow the main [instructions](https://home-assistant.io/docs/autostart/systemd/) and adjust the template as follows:
|
||||
|
||||
```
|
||||
[Unit]
|
||||
Description=Home Assistant
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=homeassistant
|
||||
# Make sure the virtualenv Python binary is used
|
||||
Environment=VIRTUAL_ENV="/srv/homeassistant"
|
||||
Environment=PATH="$VIRTUAL_ENV/bin:$PATH"
|
||||
# ExecStart using software collection:
|
||||
ExecStart=/usr/bin/scl enable rh-python35 -- /srv/homeassistant/bin/hass -c "/home/homeassistant/.homeassistant"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
25
source/_docs/installation/fedora.markdown
Normal file
@ -0,0 +1,25 @@
|
||||
---
|
||||
layout: page
|
||||
title: "Installation on Fedora"
|
||||
description: "Installation of Home Assistant on your Fedora computer."
|
||||
date: 2017-03-01 07:00
|
||||
sidebar: true
|
||||
comments: false
|
||||
sharing: true
|
||||
footer: true
|
||||
---
|
||||
|
||||
[Fedora](https://fedoraproject.org) is an operating system based on the Linux kernel, developed by the community-supported Fedora Project. There are releases for x86 and x86_64 including ARM and other architectures.
|
||||
|
||||
Install the development package of Python.
|
||||
|
||||
```bash
|
||||
$ sudo dnf -y install python3-devel
|
||||
```
|
||||
|
||||
and Home Assistant itself.
|
||||
|
||||
```bash
|
||||
$ pip3 install homeassistant
|
||||
```
|
||||
|
22
source/_docs/installation/macos.markdown
Normal file
@ -0,0 +1,22 @@
|
||||
---
|
||||
layout: page
|
||||
title: "Installation on macOS"
|
||||
description: "Installation of Home Assistant on your macOS system."
|
||||
date: 2017-03-01 07:00
|
||||
sidebar: true
|
||||
comments: false
|
||||
sharing: true
|
||||
footer: true
|
||||
---
|
||||
|
||||
[macOS](http://www.apple.com/macos/) is available by default on Apple computer. If you run a different operating system, please refer to the other section of the documentation.
|
||||
|
||||
To run Home Assistant on macOS you need to install Python first. Download Python from https://www.python.org/downloads/mac-osx/ and follow the instructions of the installer.
|
||||
|
||||
Open a terminal and install Home Assistant.
|
||||
|
||||
```bash
|
||||
$ pip3 install homeassistant
|
||||
```
|
||||
|
||||
Check this [video](https://www.youtube.com/watch?v=hej6ipN86ls) for the installation on macOS.
|
@ -38,9 +38,6 @@ On a Debian system, install the Python 3 YAML library by `sudo apt-get install p
|
||||
#### {% linkable_title distutils.errors.DistutilsOptionError: must supply either home or prefix/exec-prefix -- not both %}
|
||||
This is a known issue if you're on a Mac using Homebrew to install Python. Please follow [these instructions](https://github.com/Homebrew/brew/blob/master/docs/Homebrew-and-Python.md#note-on-pip-install---user) to resolve it.
|
||||
|
||||
#### {% linkable_title CentOS and Python 3 %}
|
||||
To run Python 3.x on [CentOS](https://www.centos.org/) or RHEL, [Software Collections](https://www.softwarecollections.org/en/scls/rhscl/rh-python34/) needs to be activated.
|
||||
|
||||
#### {% linkable_title No access to the frontend %}
|
||||
In newer Linux distributions (at least Fedora > 22/CentOS 7) the access to a host is very limited. This means that you can't access the Home Assistant frontend that is running on a host outside of the host machine. Windows and macOS machines may also have issues with this.
|
||||
|
||||
|
@ -10,7 +10,7 @@ footer: true
|
||||
redirect_from: /getting-started/installation-vagrant/
|
||||
---
|
||||
|
||||
A `Vagrantfile` is available into `virtualization/vagrant` folder for quickly spinning up a Linux virtual machine running Home Assistant. This can be beneficial for those who want to experiment with Home Assistant and/or developers willing to easily test local changes and run test suite against them.
|
||||
A `Vagrantfile` is available into `virtualization/vagrant` folder for quickly spinning up a Linux virtual machine running Home Assistant. This can be beneficial for those who want to experiment with Home Assistant and/or developers willing to easily test local changes and run test suite against them. In the same `virtualization/vagrant` folder there's also a `provision.sh` shell script which provides an easy way to interact with the Home Assistant instance running within the Vagrant VM.
|
||||
|
||||
<p class='note'>
|
||||
Vagrant is intended for testing/development only. It is NOT recommended for permanent installations.
|
||||
@ -18,7 +18,7 @@ Vagrant is intended for testing/development only. It is NOT recommended for perm
|
||||
|
||||
## {% linkable_title Install Vagrant %}
|
||||
|
||||
You must have [Vagrant](https://www.vagrantup.com/downloads.html) and [Virtualbox](https://www.virtualbox.org/wiki/Downloads) installed on your workstation.
|
||||
You must have [Vagrant](https://www.vagrantup.com/downloads.html) and [Virtualbox](https://www.virtualbox.org/wiki/Downloads) installed on your workstation. Vagrant and Virtualbox support all the main platforms, including Windows, MacOS and Linux.
|
||||
|
||||
## {% linkable_title Get Home Assistant source code %}
|
||||
|
||||
@ -44,46 +44,57 @@ $ git config --global core.autocrlf input
|
||||
## {% linkable_title Create the Vagrant VM and start Home Assistant %}
|
||||
|
||||
```bash
|
||||
$ vagrant up
|
||||
$ ./provision.sh setup
|
||||
```
|
||||
|
||||
This will download and start a virtual machine using Virtualbox, which will internally setup the development environment necessary to start Home Assistant process and run test suite as well. After the VM has started successfully, the Home Assistant frontend will be accessible locally from your browser at [http://localhost:8123](http://localhost:8123)
|
||||
This will download and start a virtual machine using Virtualbox, which will internally setup the development environment necessary to start Home Assistant. The whole process might take up to 30 minutes to complete, depending on Internet connection speed and workstation resources. After the VM has started successfully, the Home Assistant frontend will be accessible locally from your browser at [http://localhost:8123](http://localhost:8123)
|
||||
|
||||
## {% linkable_title Stopping Vagrant %}
|
||||
|
||||
To shutdown the Vagrant host:
|
||||
|
||||
```bash
|
||||
$ vagrant halt
|
||||
$ ./provision.sh stop
|
||||
```
|
||||
|
||||
To start it again, just run `vagrant up`
|
||||
To start it again:
|
||||
|
||||
```bash
|
||||
$ ./provision.sh start
|
||||
```
|
||||
|
||||
## {% linkable_title Restarting Home Assistant process to test changes %}
|
||||
|
||||
The root `home-assistant` directory on your workstation will be mirrored with `/home-assistant` inside the VM. In `virtualization/vagrant` there's also a `config` folder that you can use to drop configuration files (Check the [Configuration section](/docs/configuration/) in the docmentation for more information about how to configure Home Assistant).
|
||||
|
||||
Any changes made to the local directory on your workstation will be available from the Vagrant host, so to apply your changes to the Home Assistant process, just restart it:
|
||||
Any changes made to the local directory on your workstation will be available from the Vagrant host, so to apply your changes to the Home Assistant process, just restart it using the provided `provision.sh` wrapper script:
|
||||
|
||||
```bash
|
||||
$ touch restart ; vagrant provision
|
||||
$ ./provision.sh restart
|
||||
```
|
||||
|
||||
<p class='note'>
|
||||
This command will only restart the Home Assistant process inside the Vagrant VM, it will not reboot the virtual machine. If that's what you want, the right command is <code>vagrant reload</code>
|
||||
</p>
|
||||
|
||||
## {% linkable_title Run test suite (Tox) %}
|
||||
|
||||
To run tests against your changes:
|
||||
To run tests against the local version of Home Assistant code:
|
||||
|
||||
```bash
|
||||
$ touch run_tests ; vagrant provision
|
||||
$ ./provision.sh tests
|
||||
```
|
||||
|
||||
## {% linkable_title Cleanup %}
|
||||
|
||||
To completely remove the VM:
|
||||
To completely remove the VM
|
||||
|
||||
```bash
|
||||
$ rm setup_done ; vagrant destroy -f
|
||||
$ ./provision.sh destroy
|
||||
```
|
||||
|
||||
You can now recreate a completely new Vagrant host with `vagrant up`
|
||||
To completely remove the VM **and** setup a fresh new environment:
|
||||
|
||||
```bash
|
||||
$ ./provision.sh recreate
|
||||
```
|
||||
|
@ -23,12 +23,13 @@ $ sudo apt-get install python-pip python3-dev
|
||||
$ sudo pip install --upgrade virtualenv
|
||||
```
|
||||
|
||||
### {% linkable_title Step 1: Create a Home Assistant user %}
|
||||
### {% linkable_title Step 1: Create a Home Assistant user & group %}
|
||||
|
||||
This step is optional, but it's a good idea to give services like Home Assistant their own user. It gives you more granular control over permissions, and reduces the exposure to the rest of your system in the event there is a security related bug in Home Assistant. This is a reasonably Linux oriented step, and will look different on other operating systems (or even other Linux distributions).
|
||||
|
||||
```bash
|
||||
$ sudo adduser --system homeassistant
|
||||
$ sudo addgroup homeassistant
|
||||
```
|
||||
|
||||
Home Assistant stores its configuration in `$HOME/.homeassistant` by default, so in this case, it would be in `/home/homeassistant/.homeassistant`
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
layout: page
|
||||
title: "Installation on a Windoes system"
|
||||
title: "Installation on a Windows system"
|
||||
description: "Instructions to install Home Assistant on a Microsoft Windows system."
|
||||
date: 2017-02-23 11:00
|
||||
sidebar: true
|
||||
|
@ -5,13 +5,8 @@
|
||||
<li>
|
||||
{% active_link /docs/installation/ Installation %}
|
||||
<ul>
|
||||
<li>{% active_link /docs/installation/python/ Python %}</li>
|
||||
<li>{% active_link /docs/installation/virtualenv/ Python Virtual Env %}</li>
|
||||
<li>{% active_link /docs/installation/docker/ Docker %}</li>
|
||||
<li>{% active_link /docs/installation/raspberry-pi/ Raspberry Pi %}</li>
|
||||
<li>{% active_link /docs/installation/raspberry-pi-all-in-one/ Raspberrry Pi All-in-One %}</li>
|
||||
<li>{% active_link /docs/installation/vagrant/ Vagrant %}</li>
|
||||
<li>{% active_link /docs/installation/synology/ Synology %}</li>
|
||||
<li>{% active_link /docs/installation/updating/ Updating %}</li>
|
||||
<li>{% active_link /docs/installation/troubleshooting/ Troubleshooting %}</li>
|
||||
</ul>
|
||||
@ -117,13 +112,13 @@
|
||||
{% active_link /docs/ecosystem/ Ecosystem %}
|
||||
<ul>
|
||||
<li>
|
||||
{% active_link /docs/ecosystem/autostart/ Autostart %}
|
||||
{% active_link /docs/autostart/ Autostart %}
|
||||
<ul>
|
||||
<li>{% active_link /docs/ecosystem/autostart/systemd/ systemd (Linux) %}</li>
|
||||
<li>{% active_link /docs/ecosystem/autostart/upstart/ Upstart (Linux) %}</li>
|
||||
<li>{% active_link /docs/ecosystem/autostart/init.d/ init.d (Linux) %}</li>
|
||||
<li>{% active_link /docs/ecosystem/autostart/macos/ macOS %}</li>
|
||||
<li>{% active_link /docs/ecosystem/autostart/synology/ Synology NAS %}</li>
|
||||
<li>{% active_link /docs/autostart/systemd/ systemd (Linux) %}</li>
|
||||
<li>{% active_link /docs/autostart/upstart/ Upstart (Linux) %}</li>
|
||||
<li>{% active_link /docs/autostart/init.d/ init.d (Linux) %}</li>
|
||||
<li>{% active_link /docs/autostart/macos/ macOS %}</li>
|
||||
<li>{% active_link /docs/autostart/synology/ Synology NAS %}</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
|
@ -203,6 +203,10 @@ And a final shout out to [Pascal][@pvizeli]. He keeps improving the performance
|
||||
- Move Zigbee from eventbus to dispatcher ([@pvizeli])
|
||||
- Fix discovery taking up all memory and cpu ([@balloob] + [@tomusher])
|
||||
|
||||
### {% linkable_title Release 0.39.3 - March 4 %}
|
||||
|
||||
- Prevent discovered services and devices to be handled twice (@colinodell)
|
||||
|
||||
#### Breaking changes
|
||||
|
||||
- VolvoOnCall has been extended with more features and had to be converted to a component
|
||||
|
@ -39,22 +39,17 @@ Additional dependencies exist if you you plan to perform Frontend Development, p
|
||||
|
||||
If you plan on providing isolation to your environment using [`venv`](https://docs.python.org/3.4/library/venv.html). Within the `home-assistant` directory, create and activate your virtual environment.
|
||||
|
||||
If using Python < 3.6 `pyvenv` is the recommended method of setting up virtual environments, you'll need to install the `python3-venv` package.
|
||||
```bash
|
||||
$ sudo apt-get install python3-venv
|
||||
$ pyvenv venv
|
||||
$ source venv/bin/activate
|
||||
```
|
||||
|
||||
If using Python 3.6 `pyvenv` has been deprecated:
|
||||
```bash
|
||||
$ python3 -m venv venv
|
||||
$ source venv/bin/activate
|
||||
```
|
||||
|
||||
Note, Debian does not ship a full Python3 package and so requires you to install `venv` manually `sudo apt-get install python3-venv`.
|
||||
|
||||
### {% linkable_title Setup and Run %}
|
||||
|
||||
* On Mac OS X and Linux (remember to activate your virtual environment before running setup, if you are using one):
|
||||
* On Mac OS X and Linux:
|
||||
|
||||
```bash
|
||||
$ cd home-assistant
|
||||
$ script/setup
|
||||
|
@ -9,12 +9,7 @@ sharing: true
|
||||
footer: true
|
||||
---
|
||||
|
||||
Home Assistant uses [Polymer](https://www.polymer-project.org/) for the UI and [NuclearJS](http://optimizely.github.io/nuclear-js/) for maintaining the app state.
|
||||
|
||||
* Polymer allows building encapsulated custom HTML elements.
|
||||
[Home-Assistant-Polymer source code on GitHub.](https://github.com/home-assistant/home-assistant-polymer)
|
||||
* NuclearJS is a reactive flux built with ImmutableJS data structures.
|
||||
[Home-Assistant-JS source code on GitHub.](https://github.com/home-assistant/home-assistant-js)
|
||||
Home Assistant is built on top of the [Polymer](https://www.polymer-project.org/) webcomponents framework. Polymer allows building encapsulated custom HTML elements. [Home-Assistant-Polymer source code on GitHub.](https://github.com/home-assistant/home-assistant-polymer)
|
||||
|
||||
<p class='note warning'>
|
||||
Do not use development mode in production. Home Assistant uses aggressive caching to improve the mobile experience. This is disabled during development so that you do not have to restart the server in between changes.
|
||||
@ -29,30 +24,33 @@ http:
|
||||
development: 1
|
||||
```
|
||||
|
||||
Node.js is required to setup the frontend development environment. The preferred method of installing node.js is [nvm](https://github.com/creationix/nvm). Install nvm using the instructions in the [README](https://github.com/creationix/nvm#install-script), and install node.js by running the following command:
|
||||
Node.js is required to setup the frontend development environment. The preferred method of installing node.js is [nvm](https://github.com/creationix/nvm). Install nvm using the instructions in the [README](https://github.com/creationix/nvm#install-script), and install the correct node.js by running the following command from the `home-assistant-polymer` directory:
|
||||
|
||||
```bash
|
||||
$ nvm install node
|
||||
$ cd homeassistant/components/frontend/www_static/home-assistant-polymer
|
||||
$ nvm install < .nvmrc
|
||||
```
|
||||
Next step is to get the frontend code. When you clone the Home Assistant repository, the frontend repository is not cloned by default. You can setup the frontend development environment by running:
|
||||
|
||||
[Yarn](https://yarnpkg.com/en/) is used as the package manager for node modules. [Install yarn using the instructions here.](https://yarnpkg.com/en/docs/install)
|
||||
|
||||
Next step is to get the frontend code. When you clone the Home Assistant repository, the frontend repository is not cloned by default. You can setup the frontend development environment by running from the `home-assistant` directory:
|
||||
|
||||
```bash
|
||||
$ script/setup
|
||||
$ script/bootstrap_frontend
|
||||
```
|
||||
|
||||
## {% linkable_title Development %}
|
||||
|
||||
While you are developing, you need to have Rollup running to have your JavaScript changes be made available.
|
||||
While you are developing, you need to have Rollup running to have changes you make to the JavaScript app-core made available.
|
||||
|
||||
```bash
|
||||
$ cd homeassistant/components/frontend/www_static/home-assistant-polymer
|
||||
$ npm run js_dev
|
||||
```
|
||||
|
||||
The source code for the frontend can be found in three different directories:
|
||||
The source code for the frontend can be found in two different directories:
|
||||
|
||||
- UI: `homeassistant/components/frontend/www_static/home-assistant-polymer/src/`
|
||||
- Core: `homeassistant/components/frontend/www_static/home-assistant-polymer/home-assistant-js/src/`
|
||||
- Panels: `homeassistant/components/frontend/www_static/home-assistant-polymer/panels/`
|
||||
|
||||
# {% linkable_title Building the Polymer frontend %}
|
||||
|
@ -1,29 +0,0 @@
|
||||
---
|
||||
layout: page
|
||||
title: "HASSbian image for Raspberry Pi"
|
||||
description: "Instructions to flash the Home Assistant HASSbian image on a Raspberry Pi."
|
||||
date: 2016-09-26 21:00
|
||||
sidebar: true
|
||||
comments: false
|
||||
sharing: true
|
||||
footer: true
|
||||
---
|
||||
|
||||
---
|
||||
layout: page
|
||||
title: "Installing Home Assistant"
|
||||
description: "Instructions to get started using Home Assistant."
|
||||
date: 2016-09-26 21:00
|
||||
sidebar: true
|
||||
comments: false
|
||||
sharing: true
|
||||
footer: true
|
||||
---
|
||||
|
||||
Installing Home Assistant is bla bla. Choose options:
|
||||
|
||||
- [Raspberry Pi][rpi]
|
||||
- [Python]
|
||||
|
||||
[rpi]: /getting-started/installation-raspberry-pi-image/
|
||||
[Python]: /getting-started/installation-python/
|
BIN
source/images/supported_brands/archlinux.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
source/images/supported_brands/armbian.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
source/images/supported_brands/centos.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
source/images/supported_brands/docker.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
source/images/supported_brands/fedora.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
source/images/supported_brands/pocketcasts.png
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
source/images/supported_brands/vagrant.png
Normal file
After Width: | Height: | Size: 38 KiB |