Step 2: Install the Software.

connect to your pie and enter the following to get the latest rasbian image:

$ sudo apt-get update

$ sudo apt-get upgrade -y

Install the dependencies that are needed for homeassistant:

$ sudo apt-get install python3 python3-venv python3-pip

Once done you will need to create the home assistant account and the virtual environment:

$ cd /srv

$ sudo mkdir homeassistant

$ sudo chown homeassistant:homeassistant homeassistant

$ sudo su -s /bin/bash homeassistant

$ cd /srv/homeassistant

$ python3 -m venv homeassistant_venv

$ source /srv/homeassistant/homeassistant_venv/bin/activate

$ exit

Step 3: Configure Your .bashrc for the Virtual Environment

For ease of switching to the virtual environment, which is where you will run testing for configuring the home assistant, I put the source command in my .bashrc of my homeassistant user to make it easier.

$ vi /home/homeassistant/.bashrc

copy and paste the following at the bottom of the file

source /srv/homeassistant/homeassistant_venv/bin/activate

Now save the file and to test it type the following:

$ exit

$ sudo su -s /bin/bash homeassistant

You should see the following:

(homeassistant_venv) homeassistant@raspberrypi:/home/pi $

Step 4: Install the Home Assistant Program

Now that you are in the home assistant virtual environment you will now install the program with the following commands:

Make it Glow Contest 2018

Optics Contest

Plastics Contest

Discussions

This is such a clear set of instructions I followed it, but I think it's a flawed approach. My install ended up fubar, I believe because of permission issues around running this service as user pi instead of the system user homeassistant. The link you provide to the manual install is more conventional and in my experience more stable -- I'd recommend users use that, skip steps 1-5, and start at step 6!