What is the Home Assistant (also called HA or Hass) and why should we use the Home Assistant, I will discuss in another article. Today we start installing. Let’s go!
- Prepare equipment:
What do you need to start installing the Home Assistant? The Home Assistant is a Python-based software, so theoretically, every device with Python will run Home Assistant. But in fact, we need to run the Home Assistant 24/24 (because it is our smarthome server) so we need a standard device with less power and must have a decent processing speed. little.
Please introduce an elite representative: Raspberry Pi 3B + . When buying Pi, please remember to buy a minimum power source of 2.5A, a minimum memory card of 16GB, a fan and a heat sink for Pi to work longer with us. And of course, there must be a nice shell, no one likes the naked circuit, right.
Just like that, you already have Home Assistant installed. But installing the Home Assistant alone is not a problem, there must also be a control switch for lights, a fan control fan, or an air conditioner, television. So we have to buy more peripheral devices.
In short, you need to have the following items before starting the installation:
- Raspberry Pi 3B +
- Lan cable
- Memory card reader
In this post, I will guide you to install Hassio on Raspberry Pi. Come on, proceed with the installation.
a) Go to the following page to download the flash version (a software version) to prepare for copying on the memory card. https://www.home-assistant.io/hassio/installation/
Or here is the direct link: https://github.com/home-assistant/hassos/releases/download/1.13/hassos_rpi3-1.13.img.gz
b) After downloading, download the Etcher software to flash the downloaded version img onto the memory card. Link download Etcher: https://www.balena.io/etcher/
You choose the right version for your operating system. Here I choose the 64 bit Portable version.
After downloading, open Etcher, insert the card into the reader and plug in the computer. The first item you select the file * .img has just downloaded in step a), item 2 select the memory card that you want to flash, then press flash and wait until it’s done.
c) After the flash is finished, you pull out the memory card and plug it into Pi, then plug in the Lan cable and plug in the power for Pi.
Plug in and you log in to your modem to see how much IP of Pi is. The example is 192.168.1.10. You go to any browser type http://192.168.1.10:8123 or http: //hassio.local: 8123 . You see it is correct to show up on the board.
This paragraph patiently waits to download the latest version of Hass to install. Slowly depend on your network and the Hass server. Usually about 30 minutes but still this way, I recommend you to flash again from step b) okay.
d) After waiting for a while, you will be able to access the main page, so successfully installing the Home Assistant to Pi. Congratulations on the hardest time.
a) Now the next part is to install basic add-ons. The first is Samba add-ons. Samba allows you to browse configuration files in Pi via the LAN, which makes it easy to edit files on Pi with your computer. Therefore. samba belongs to the basic add-ons group. How to install is as follows: Go to Hass.io in the left panel, select the Add-ons Store, select Samba Share.
Then you set the password to null, don’t let null fail. Then click Save. Then click Start. You go to Windows – Run type example ip 192.168.1.10 and then Enter, then you will see a folder containing many files with the end of * .yaml. That’s it, Samba, guys.
b) Next we install 1 add-ons which are also relatively important as SSH . Similar to installing Samba, you also go to Hass.io, select add-ons store, select SSH server. Please enter your password. Complete the password, click Save. Finally click Start.
After the add-ons run, you try to test SSH to Pi with Putty software.
You download Putty here: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
You choose the appropriate version and download, install and run Putty.
Where you enter Host Name IP of Pi, here I enter my IP is 192.168.1.10, then click Open.
If SSH is successful, there will be a table showing up Login: you enter root then Enter. After that, the password will be displayed, then you enter the password at the time you set while installing SSH add-ons. Note that when you type a pass, it will not be typed, so type and then Enter, yes it will enter. The following table is displayed successfully.
By this step, you have succeeded in installing Home Assistant and basic add-ons. Next article, I will guide you to install Duckdns to get domain dental.