Home Assistant Setup On Raspberry Pi 3B+

First, download the installation image from here.

wget https://github.com/home-assistant/hassos/releases/download/1.9/hassos_rpi3-64-1.9.img.gz

Then, unzip the image.

gunzip hassos_rpi3-64-1.9.img.gz

Connect the SD card you are going to put in your Raspberry Pi, and then write the image to the card. Make sure you get the write device for the of= part. dd will overwrite whatever is there, even if it is your system drive.

sudo dd bs=4M if=hassos_rpi3-64-1.9.img of=/dev/sdc status=progress

I also need wifi to work on mine. So grab a USB stick you aren’t using and plug that in. Format it with fdisk with one partition. Again, be sure you get the right device for this command or you could inadvertently wipe your system drive.

sudo fdisk /dev/sdb
# all defaults
sudo mkfs.ext4 /dev/sdb1

The name of the drive needs to be CONFIG, so use the following command to do that.

sudo e2label /dev/sdb1 CONFIG

Make a file named network/hassos-wifi on the USB stick with the following contents. Replace the SSID and PASSPHRASE parts with your specific wifi setup.






You should also put your SSH public key in a file named authorized_keys like so.

cat $HOME/.ssh/id_rsa.pub > /usb_mount_point/authorized_keys

Now you can put both the SD card and USB stick in the Raspberry Pi and give it power. It should boot up, connect to your wifi, and start install Home Assistant. You should now be able to point your browser at http://hassio.local:8123 or ssh to the machine at root@hassio.local -p 22222​, assuming your network is set up appropriately. You could also see what IP address the machine is at, and use that directly.

Initially at http://hassio.local:8123 there is just a loading page that refresh frequently. After about 20 minutes, the initial download and setup will complete, and then you can start doing some initial configuration.

The first thing you should do is install the Configurator plugin. In the web interface, select Hass.io from the menu, then at the top select ADD-ON STORE, and find the Configurator add on.

Once you’ve got the Configurator installed, give it a username and password, and start it. Then use the configurator to make initial modifications to the configuration.yaml file. Like setting your latitude and longitude, and timezone info.

For lots more info, go to Home Assistant’s website. Next I’ll be installing a Z-wave USB stick and a thermostat. I’ve still got tons to learn about this stuff, so stay tuned as I start to make my home smart.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s