Install Home Assistant "Supervised"

Home Assistant Supervised install on an ISCSI boot RPi3; Note-to-self article with links.

This is Step 2 in a HA Supervised Setup. In Step 1, we setup an RPi with the boot disk on a Synology NAS.

The steps involved are provided below

  • Update/Upgrade
$ sudo apt update && sudo apt upgrade
  • Install docker using apt (and not through get.docker.com)
$ sudo apt install docker.io
$ sudo systemctl enable --now docker
$ sudo usermod -aG docker <username>

DO NOT USE THIS COMMAND: curl -sSL https://get.docker.com | sh

Login in again for permissions to take effect.

  • Install portainer
$ sudo docker pull portainer/portainer-ce
$ sudo docker run -d -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
c
  • Install Home Assistant dependencies
$ sudo apt-get install -y software-properties-common apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat
$ sudo systemctl disable ModemManager
  • Ok, We're all set - Install Home Assistant using the "Supervised Method" below. Note that the installer.sh script requires a "--machine" (machine type parameter) which depends on the hardware you are using. In my case it was raspberrypi3
$ sudo su
# curl -Lo installer.sh https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh
# bash installer.sh --machine raspberrypi3

GitHub - home-assistant/supervised-installer: Installer for a generic Linux system
Installer for a generic Linux system. Contribute to home-assistant/supervised-installer development by creating an account on GitHub.

Note that there are several "official" methods to install home assistant. I am using the Supervised because I prefer the easy-of-use of Hassio add-ons, but would still like the "under-the-hood" access through portainer.

All done! In step 3. we will configure external access to your home assistant server - stay tuned.

Amrish Kaushik

Amrish Kaushik

Bay Area