How to install Hassioon Raspberry 4 - Raspbian Buster (2020-01-18)
After a few days of frustration here is how I installed Hassio on my Raspberry.
-
Download raspbian_latest.zip
-
Flash using BalenaEtcher
-
Eject and insert SD card into the PC
-
Create empty file ssh.txt in the root (in the only one partition accessible from Windows
-
Create file wpa_supplicant.conf in the root
This file shoud contain
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=fr
network={
ssid="***My WiFi Network name***"
psk="***The password to join my WiFi***"
key_mgmt=WPA-PSK
}
-
Reboot the Raspberry (wait about 2 minutes, to be sure :))
-
Find the IP address of booted Raspberry (accessing the WiFi router, using application like āfingā,
-
Start a Putty session and connect to the discovered IP address.
-
Log with username pi and password raspberry
-
Change this password using the command
pi@raspberrypi:~# passwd
- Configure a fixed IP address
sudo nano /etc/dhcpcd.conf
Add these lines at the end
interface wlan0
static ip_address=**192.168.50.210**/24
static routers=**192.168.50.1**
static domain_name_servers=**192.168.50.1**
-
reboot your device to be sure it uses the correct IP address.
Note that you may have to clear the arp cache of your PC if the choosen address is not the one it got from its first boot -
Update of Rasbian
sudo -i
apt-get update
apt-get install vlc-bin
apt-get upgrade
-
reboot
To get everything OK -
Install Docker-ce
sudo apt autoremove
curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
sudo systemctl enable docker
sudo systemctl start docker
sudo usermod -aG docker pi
- Install Hassio using docker
sudo apt-get install jq apparmor-utils socat network-manager
*reboot your device, the network-manager installation seems to make the connection not stable anymore*
sudo apt-get purge modemmanager
sudo -i
curl -sL https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh | bash -s -- -m raspberrypi4
journalctl -f -u hassio-supervisor
-
Connect to http://192.168.50.210:8123 (this is my own configuration, the address you have to put here is the one of your Raspberry )
-
Create your local account and let HomeAssistant create the environment
-
The famous configuration.yaml is located in /usr/share/hassio/homeassistant
(Thanks Tediore :))
root@raspberrypi:~# ls /usr/share/hassio/homeassistant -al
total 396
drwxr-xr-x 6 root root 4096 Jan 18 12:50 .
drwxr-xr-x 10 root root 4096 Jan 18 09:22 ..
-rw-r--r-- 1 root root 2 Jan 18 09:26 automations.yaml
drwxr-xr-x 2 root root 4096 Jan 18 09:26 .cloud
-rw-r--r-- 1 root root 388 Jan 18 09:26 configuration.yaml
drwxr-xr-x 2 root root 4096 Jan 18 09:26 deps
-rw-r--r-- 1 root root 0 Jan 18 09:26 groups.yaml
-rw-r--r-- 1 root root 7 Jan 18 09:26 .HA_VERSION
-rw-r--r-- 1 root root 360448 Jan 18 12:50 home-assistant_v2.db
-rw-r--r-- 1 root root 0 Jan 18 09:26 scenes.yaml
-rw-r--r-- 1 root root 0 Jan 18 09:26 scripts.yaml
-rw-r--r-- 1 root root 157 Jan 18 09:26 secrets.yaml
drwxr-xr-x 2 root root 4096 Jan 18 12:47 .storage
drwxr-xr-x 2 root root 4096 Jan 18 09:26 tts
I hope this will help you
Kind regards,
Dom