diff --git a/atom.xml b/atom.xml index c106b2bca7..101fc00af0 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2016-05-13T20:25:08+00:00 + 2016-05-13T21:08:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 611f68ec79..8f82fe06ea 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2016-05-13T20:25:08+00:00 + 2016-05-13T21:08:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index e22e27cd54..9e10d4da77 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2016-05-13T20:25:08+00:00 + 2016-05-13T21:08:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index b30cc7f8b2..fe43b6f889 100644 --- a/blog/categories/how-to/atom.xml +++ b/blog/categories/how-to/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: How-To | Home Assistant]]> - 2016-05-13T20:25:08+00:00 + 2016-05-13T21:08:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index f84387492d..48a0590394 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2016-05-13T20:25:08+00:00 + 2016-05-13T21:08:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/internet-of-things/atom.xml b/blog/categories/internet-of-things/atom.xml index 12e3e7b198..d80ba046b5 100644 --- a/blog/categories/internet-of-things/atom.xml +++ b/blog/categories/internet-of-things/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Internet-of-Things | Home Assistant]]> - 2016-05-13T20:25:08+00:00 + 2016-05-13T21:08:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 4809a1ed38..9035b659c8 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2016-05-13T20:25:08+00:00 + 2016-05-13T21:08:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 24b033a3e1..e212b1bdb7 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2016-05-13T20:25:08+00:00 + 2016-05-13T21:08:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index ddc3a2c4a3..443d9d9328 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2016-05-13T20:25:08+00:00 + 2016-05-13T21:08:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 45ca228617..bc04403a8e 100644 --- a/blog/categories/presence-detection/atom.xml +++ b/blog/categories/presence-detection/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Presence-Detection | Home Assistant]]> - 2016-05-13T20:25:08+00:00 + 2016-05-13T21:08:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/public-service-announcement/atom.xml b/blog/categories/public-service-announcement/atom.xml index bc9a8d4039..46543f515b 100644 --- a/blog/categories/public-service-announcement/atom.xml +++ b/blog/categories/public-service-announcement/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Public-Service-Announcement | Home Assistant]]> - 2016-05-13T20:25:08+00:00 + 2016-05-13T21:08:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 2bb8cef45e..2b938ba076 100644 --- a/blog/categories/release-notes/atom.xml +++ b/blog/categories/release-notes/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Release-Notes | Home Assistant]]> - 2016-05-13T20:25:08+00:00 + 2016-05-13T21:08:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 29b870714d..986fd036a1 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2016-05-13T20:25:08+00:00 + 2016-05-13T21:08:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 3662ba8789..a2e0d13f8d 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2016-05-13T20:25:08+00:00 + 2016-05-13T21:08:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 023e6a7810..7f7fba9d5e 100644 --- a/blog/categories/user-stories/atom.xml +++ b/blog/categories/user-stories/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: User-Stories | Home Assistant]]> - 2016-05-13T20:25:08+00:00 + 2016-05-13T21:08:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index ff437dea1e..dc5ba148ae 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2016-05-13T20:25:08+00:00 + 2016-05-13T21:08:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 384a0689c0..34d8456c89 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2016-05-13T20:25:08+00:00 + 2016-05-13T21:08:43+00:00 https://home-assistant.io/ diff --git a/getting-started/installation-raspberry-pi-all-in-one/index.html b/getting-started/installation-raspberry-pi-all-in-one/index.html index 467b941cac..de81c7a183 100644 --- a/getting-started/installation-raspberry-pi-all-in-one/index.html +++ b/getting-started/installation-raspberry-pi-all-in-one/index.html @@ -89,30 +89,30 @@
-

Easily deploy a complete Home Assistant server, with Websocket MQTT and Z-Wave driver support using Fabric!

+

The “Raspberry Pi All-In-One Installer” deploy a complete Home Assistant server including support for MQTT with websocket support and Z-Wave using Fabric.

Requirements before installation:

    -
  • You have a Raspberry Pi with a fresh install of Raspbian Jessie/Jessie-Lite.
  • -
  • You are able to SSH into your Raspberry Pi
  • -
  • You have a computer running Python 3
  • +
  • You have a Raspberry Pi with a fresh installation of Raspbian Jessie/Jessie Lite or Debian 8 connected to your network.
  • +
  • You are able to SSH into your Raspberry Pi.
  • +
  • You have a computer with Python 3 and git installed.

Installation instructions (all from your PC):

  1. Install fabric: pip3 install fabric3
  2. -
  3. Clone the script: git clone https://github.com/jbags81/fabric-home-assistant.git
  4. -
  5. Change directory: cd fabric-home-assistant
  6. -
  7. Edit fabfile.py and add the host info of your Raspberry Pi.
  8. +
  9. Clone the repository: git clone https://github.com/jbags81/fabric-home-assistant.git
  10. +
  11. Change the directory: cd fabric-home-assistant
  12. +
  13. Edit the fabfile.py file and add the hostname or the IP address of your Raspberry Pi to env.hosts. If you are using Debian 8 then replace the username pi in the fabfile.py file with your Debian user as well.
  14. Build your new Home Assistant server: fab deploy
  15. -
  16. Reboot your Raspberry Pi
  17. +
  18. Reboot your Raspberry Pi.
-

Once rebooted, your Raspberry Pi will be up and running with Home Assistant. You can access it from http://your_raspberry_pi_ip:8123.

+

Once rebooted, your Raspberry Pi will be up and running with Home Assistant. You can access it at http://your_raspberry_pi_ip:8123.

-

The Home Assistant config is located at /home/hass. The virtualenv with the Home Assistant installation is located at /srv/hass/hass_venv.

+

The Home Assistant configuration is located at /home/hass. The virtualenv with the Home Assistant installation is located at /srv/hass/hass_venv.

The All-In-One Fabric script will do the following automatically:

@@ -130,13 +130,6 @@

Fabric allows any of the underlying functions to be ran individually as well. Run fab -l to see a list of all callable jobs.

-

Tested with:

- -
    -
  • Raspbian Jessie
  • -
  • Raspbian Jessie-Lite
  • -
  • Debian 8 (Replace username “pi” in fabfile.py with debian user)
  • -
diff --git a/getting-started/installation-virtualenv/index.html b/getting-started/installation-virtualenv/index.html index caabc8c27d..66c0bd4782 100644 --- a/getting-started/installation-virtualenv/index.html +++ b/getting-started/installation-virtualenv/index.html @@ -89,17 +89,17 @@
-

There are several reasons why it makes sense to run Home Assistant in a virtual environment. A virtualenv encapsulates all aspect of a Python environment within a single directory tree. That means the Python packages you install for Home Assistant won’t interact with the rest of your system and vice-versa. It means a random upgrade for some other program on your computer won’t break Home Assitant, and it means you don’t need to install Python packages as root.

+

There are several reasons why it makes sense to run Home Assistant in a virtual environment. A virtualenv encapsulates all aspect of a Python environment within a single directory tree. That means the Python packages you install for Home Assistant won’t interact with the rest of your system and vice-versa. It means a random upgrade for some other program on your computer won’t break Home Assitant, and it means you don’t need to install Python packages as root.

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

-
sudo apt-get update
-sudo apt-get upgrade
-sudo apt-get install python-pip
-sudo pip install --upgrade virtualenv
+  
$ sudo apt-get update
+$ sudo apt-get upgrade
+$ sudo apt-get install python-pip
+$ sudo pip install --upgrade virtualenv
 
@@ -109,7 +109,7 @@ sudo pip install --upgrade virtualenv

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).

-
sudo adduser --system hass
+  
$ sudo adduser --system hass
 
@@ -119,41 +119,41 @@ sudo pip install --upgrade virtualenv

If you plan to use a Z-Wave controller, you will need to add this user to the dialout group

-
sudo usermod -G dialout -a hass
+  
$ sudo usermod -G dialout -a hass
 

Step 2: Create a directory for Home Assistant

-

This can be anywhere you want, but I generally put stuff related to servers in /srv. You also need to change the ownership of the directory to the user you created above (if you created one)

+

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).

-
sudo mkdir /srv/hass
-sudo chown hass /srv/hass
+  
$ sudo mkdir /srv/hass
+$ sudo chown hass /srv/hass
 

## 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.

+

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.

-
sudo su -s /bin/bash hass
+  
$ sudo su -s /bin/bash 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).

+

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

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.

-

It will include a ‘bin’ directory, which will contain all the executables used in the virtualenv (including hass itself). It also includes a script called ‘activate’ which we will use to activate the virtualenv.

+

It will include a bin directory, which will contain all the executables used in the virtualenv (including hass itself). It also includes a script called activate which we will use to activate the virtualenv.

-
virtualenv -p python3 /srv/hass
+  
$ virtualenv -p python3 /srv/hass
 
@@ -161,36 +161,36 @@ sudo chown hass /srv/hass

Step 5: Activate the virtualenv

-
source /srv/hass/bin/activate
+  
$ source /srv/hass/bin/activate
 
-

After that, your prompt should include ‘(hass)’.

+

After that, your prompt should include (hass).

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 our ‘hass’ user has permission to modify.

+

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.

-
(hass)pip3 install --upgrade homeassistant
+  
(hass)$ pip3 install --upgrade homeassistant
 
-

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

+

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

-

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.

+

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.

-
sudo -u hass -H /srv/hass/bin/hass
+  
$ sudo -u hass -H /srv/hass/bin/hass
 
-

The ‘-H’ flag is important. It sets the $HOME environment variable to /home/hass so hass can find its configuration.

+

The -H flag is important. It sets the $HOME environment variable to /home/hass so hass can find its configuration.

Upgrading Home Assistant

@@ -204,7 +204,7 @@ sudo chown hass /srv/hass

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

-

Install the dependencies as normal (Note: you’ll need to do this as your normal user, since ‘hass’ isn’t a sudoer).

+

Install the dependencies as normal (Note: you will need to do this as your normal user, since hass isn’t a sudoer).

$ sudo apt-get install cython3 libudev-dev python3-sphinx python3-setuptools
@@ -220,7 +220,7 @@ sudo chown hass /srv/hass
 
-

Finally, get and install python-openzwave

+

Finally, get and install python-openzwave.

(hass)$ mkdir /srv/hass/src
diff --git a/sitemap.xml b/sitemap.xml
index 4c21e23df3..b0a80c8005 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -1600,26 +1600,26 @@
     
   
     https://home-assistant.io/demo/frontend.html
-    2016-05-13T20:24:27+00:00
+    2016-05-13T21:08:05+00:00
   
   
     https://home-assistant.io/demo/index.html
-    2016-05-13T20:24:27+00:00
+    2016-05-13T21:08:05+00:00
   
   
     https://home-assistant.io/googlef4f3693c209fe788.html
-    2016-05-13T20:24:27+00:00
+    2016-05-13T21:08:05+00:00
   
   
     https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html
-    2016-05-13T20:24:27+00:00
+    2016-05-13T21:08:05+00:00
   
   
     https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html
-    2016-05-13T20:24:27+00:00
+    2016-05-13T21:08:05+00:00
   
   
     https://home-assistant.io/static/mdi-demo.html
-    2016-05-13T20:24:27+00:00
+    2016-05-13T21:08:05+00:00