First of all I want to say that this is how I set up my instance of home assistant, there are actually a lot of ways to do it and you can find more information about it on the Home Assistant Getting Started page.
Step 1. Gather what you need
- Raspberry Pi 3
- micro SD card (I would recommend a class 10 with at least 32GB)
- A way to write to the card, I use a cheap memory card reader
- Power supply for your Pi
- Ethernet cable (you could use wireless but I wouldn’t recommend it)
- Possibly a case and a couple of heatsinks for your Pi
Step 2.Selecting the operating System
Instead of flashing a regular Linux distro like Raspbian on the pi we are going to flash an OS called HassIO. The advantage of HassIO over something like Rasbian with Home Assistant installed is how easy it is not only to install it but keep it up to date and install addons. The downide is that you loose some flexibility. Convinced? If not I once again refer you to the Home Assistant Getting Started page otherwise lets move on.
Step 3. Download the software
Before we do the actual flashing you need to download two things. A piece of software called Etcher that will be used to write the OS to the card and of course the actual OS. The latest version of HassIO can always be found here, click the Raspberry Pi 3 link.
Step 4. Installing Etcher
This is probably the simplest part of this whole thing, simply open the setupfile you downloaded and click on I Agree. Etcher will begin to install and once done will even start by itself, easy huh.
Step 5. Flashing HassIO to the card
Now that you have Etcher open in front of you, click the button that sais Select image , the file you want to select is the HassIO file you just downloaded, it will probably be named something like “resinos-hassio-1.1-raspberrypi3.img.bz2”
Etcher will try to find your SD card automatically but it is very important that you make sure it choose the right one as anything on the card/drive it has selected will be removed. we good? Good. Now hit Flash and let Etcher do it´s job.
Step 6. Plug it all in
Time to plug it all in. Put your SD card in your Pi and make sure you plug in your ethernet cabe on both ends before you plug in the power to your Pi. Once the Pi boots up it will automatically download the latest version of Home Assistant and set it up, this will take about 20 to 30 minutes so this might be a good time to go get a cup of coffee. You will know that it’s done when you can access the web interface of Home Assistant at http://hassio.local:8123.
Step 7. Installing addons
There are a couple of addons that you will need if you plan to use any of my other tutorials regarding home assistant.
Since the configuration of addons may change I will just link to the setup instructions of each addon instead of going throu it all here. You will find them in the store under the HassIO tab in the sidebar of Home Assistant.
- Mosquitto broker
- I would also recommend that you install Let’s Encrypt but it’s not requried
That´s it, now you have the basics up and running and it´s time to move on to actually doing something fun with it.
Before we leave I want to point out that I will not be writing a post about how to navigate the Home Assistant UI or how to edit config files. If you need help with this there are a lot of information availiable at the Home Assistant Website, forum and Discord server. The BRUH automation youtube channel is also a really good source of information for beginners.
This video in particular I think would be a good next step.