- - Configuration.yaml
+ - YAML
+ - Basic information
- Setting up devices
- Customizing devices and services
- Presence Detection
diff --git a/getting-started/installation-virtualenv/index.html b/getting-started/installation-virtualenv/index.html
index 6d3472cbe8..554da91716 100644
--- a/getting-started/installation-virtualenv/index.html
+++ b/getting-started/installation-virtualenv/index.html
@@ -93,7 +93,7 @@
Virtualenvs are pretty easy to setup. This example will walk through one method of setting one up (there are certainly others). We’ll be using Debian in this example (as many Home Assistant users are running Raspbian on a Raspberry Pi), but all of the Python related steps should be the same on just about any platform.
- Step 0: Install some dependencies
+ Step 0: Install some dependencies
$ sudo apt-get update
@@ -104,7 +104,7 @@ $ sudo pip install --upgrade virtualenv
-
Step 1: Create a Home Assistant user
+
Step 1: Create a Home Assistant user
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).
@@ -124,7 +124,7 @@ $ sudo pip install --upgrade virtualenv
- Step 2: Create a directory for Home Assistant
+ Step 2: Create a directory for Home Assistant
This can be anywhere you want. AS example we put it in /srv
. You also need to change the ownership of the directory to the user you created above (if you created one).
@@ -134,7 +134,8 @@ $ sudo chown hass /srv/hass
-## Step 3: Become the new user
+
+ Step 3: Become the new user
This is obviously only necessary if you created a hass
user, but if you did, be sure to switch to that user whenever you install things in your virtualenv, otherwise you’ll end up with mucked up permissions.
@@ -146,7 +147,7 @@ $ sudo chown hass /srv/hass
The su
command means ‘switch’ user. We use the ‘-s’ flag because the hass
user is a system user and doesn’t have a default shell by default (to prevent attackers from being able to log in as that user).
- Step 4: Set up the virtualenv
+ Step 4: Set up the virtualenv
All this step does is stick a Python environment in the directory we’re using. That’s it. It’s just a directory. There’s nothing ‘special’ about it, and it is entirely self-contained.
@@ -168,7 +169,7 @@ $ sudo chown hass /srv/hass
After that, your prompt should include (hass)
.
- Step 6: Install Home Assistant
+ Step 6: Install Home Assistant
Once your virtualenv has been activated, you don’t need to sudo
any of your pip
commands. pip
will be installing things in the virtualenv, which the hass
user has permission to modify.
@@ -180,7 +181,7 @@ $ sudo chown hass /srv/hass
And that’s it… you now have Home Assistant installed, and you can be sure that every bit of it is contained in /srv/hass
.
- Finally… Run Home Assistant
+ Finally… Run Home Assistant
There are two ways to launch Home Assistant. If you are in the virtualenv, you can just run hass
and it will work as normal. If the virtualenv is not activated, you just use the hass
executable in the bin
directory mentioned earlier. There is one caveat… Because Home Assistant stores it’s configuration in the user’s home directory, we need to be the user hass
user or specify the configuration with -c
.
@@ -192,15 +193,15 @@ $ sudo chown hass /srv/hass
The -H
flag is important. It sets the $HOME
environment variable to /home/hass
so hass
can find its configuration.
- Upgrading Home Assistant
+ Upgrading Home Assistant
Upgrading Home Assistant is simple, just repeat steps 3, 5 and 6.
- Starting Home Assistant on boot
+ Starting Home Assistant on boot
The autostart instructions will work just fine, just be sure to replace /usr/bin/hass
with /srv/hass/bin/hass
and specify the hass
user where appropriate.
- Installing python-openzwave
+ Installing python-openzwave
If you want to use Z-Wave devices, you will need to install python-openzwave
in your virtualenv. This requires a small tweak to the instructions on home-assistant.io
@@ -257,15 +258,16 @@ $ sudo chown hass /srv/hass
- Raspberry Pi All-In-One Installer
- Docker
- Synology NAS
- - VirtualEnv Linux
+ - Virtualenv Linux
- Updating
- Troubleshooting