
I noticed the list of machine types supported by `hassio_install.sh` wasn't up-to-date with the list on [Github](https://github.com/home-assistant/hassio-installer). I updated the list and added a reference to the Github page. Maybe the duplicate list should be removed from here and instead add a reference to the Github?
10 KiB
title, description
title | description |
---|---|
Installing Hass.io | Instructions on how to install Hass.io. |
The following will take you through the steps required to install Hass.io.
-
Download the appropriate install option:
-
As an image for your device:
- Raspberry Pi Zero (not recommended for more than testing)
- Raspberry Pi Zero W (not recommended for more than testing)
- Raspberry Pi 1 Model B (not recommended for more than testing)
- Raspberry Pi 2 Model B
- Raspberry Pi 3 Model B and B+ 32bit (recommended)
- Raspberry Pi 3 Model B and B+ 64bit
- (RC) Raspberry Pi 4 Model B 32bit (recommended)
- (RC) Raspberry Pi 4 Model B 64bit
- Tinkerboard
- Odroid-C2
- Odroid-XU4
- OrangePi-Prime
- Intel-Nuc
-
As a virtual appliance:
-
-
Install Hass.io:
- Flash the downloaded image to an SD card using balenaEtcher. If using a Pi we recommend at least a 32 GB SD card to avoid running out of space. On Virtual machine platforms, provide at least 32 GB of disk space for the VM.
- Load the appliance image into your virtual machine software. Choose 64-bit Linux and UEFI boot.
-
Optional - set up the WiFi or static IP. There are two possible places for that:
- on a blank USB stick with a FAT32 partition having partition label
CONFIG
, while in its root directory, create thenetwork/my-network
file, or - on the Hassio SD card's first, bootable partition (labeled
hassio-boot
, might not be auto mounted in Linux) create theCONFIG/network/my-network
file.
For the content of this file, follow the HassOS howto.
- on a blank USB stick with a FAT32 partition having partition label
-
For image-based installs insert the SD card (and optional USB stick) into the device.
-
Turn on your device or virtual appliance. On first boot, it downloads the latest version of Home Assistant which takes around 20 minutes (slower/faster depending on the platform and your Internet connection).
-
You will be able to reach your installation at
http://hassio.local:8123
(if your router supports mDNS, otherwise see below). -
Enable either the Samba add-on or the SSH add-on to manage your configuration in
/config/
(From the UI choose Hass.io which is located in the sidebar).
If your router doesn't support mDNS, then you'll have to use the IP address of your Pi instead of hassio.local
. For example, http://192.168.0.9:8123
. You should be able to find the IP address of your Pi from the admin interface of your router.
If you are using a Raspberry Pi please remember to ensure you're using an appropriate power supply with your Pi. Mobile chargers may not be suitable since some were only designed to provide just enough power to the device it was designed for by the manufacturer. Do not try to power the Pi from the USB port on a TV, computer, or similar.
Now you can configure your install.
Updating a Hass.io installation
Best practice for updating a Hass.io installation:
- Backup your installation, using the snapshot functionality Hass.io offers.
- Check the release notes for breaking changes on Home Assistant release notes. Be sure to check all release notes between the version you are running and the one you are upgrading to. Use the search function in your browser (
CTRL + f
) and search for Breaking Changes. - Check your configuration using the Check Home Assistant configuration add-on.
- If the check passes, you can safely update. If not, update your configuration accordingly.
- Select Dashboard from the Hass.io menu, and then select Update.
Run a specific version on Hass.io
SSH to your Hass.io system, or connect to the console, and run:
hassio ha update --version=0.XX.X
Run the beta version on Hass.io
If you would like to test next release before anyone else, you can install the beta version released every three weeks:
- Backup your installation, using the snapshot functionality Hass.io offers.
- Check the Home Assistant RC release notes for breaking changes. Be sure to check all release notes between the version you are running and the one you are upgrading to. Use the search function in your browser (
CTRL + f
) and search for Breaking Changes. - Select System tab from the Hass.io menu, then select Join Beta Channel under Hass.io supervisor, then select Reload.
- Select Dashboard tab from the Hass.io menu, and then select Update.
Alternative: install on a generic Linux host
For advanced users, it is also possible to try Hass.io on your Linux server or inside a virtual machine. Examples given here are tested on Ubuntu and Arch Linux, but the instructions should work as a guideline for installing on other Linux distrubutions.
The packages you need to have available on your system that will run Hass.io may vary.
Debian/Ubuntu
apparmor-utils
apt-transport-https
avahi-daemon
ca-certificates
curl
dbus
jq
socat
software-properties-common
Optional:
network-manager
Without the NetworkManager, you will be not able to control your host network setup over the UI. The modemmanager
package will interfere with any Z-Wave or Zigbee stick and should be removed or disabled. Failure to do so will result in random failures of those integrations. For example you can disable with sudo systemctl disable ModemManager
and remove with sudo apt-get purge modemmanager
Arch Linux
apparmor
avahi
ca-certificates
curl
dbus
docker
jq
socat
You also need to have Docker-CE installed. There are well-documented procedures for installing Docker on Ubuntu at Docker.com, you can find installation steps for your Linux distribution in the menu on the left.
Some distributions, like Ubuntu, have a docker.io
package available. Using that packages will cause issues!
Be sure to install the official Docker-CE from the above listed URL.
Docker is not always ready with a release when a new Ubuntu version is out. Check if your version of Ubuntu is supported by docker here.
Preparation
To prepare your machine for the Hass.io installation, run the following commands:
For Ubuntu:
add-apt-repository universe
Debian/Ubuntu:
sudo -i
apt-get install software-properties-common
apt-get update
apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat
curl -fsSL get.docker.com | sh
The following script will then install Hass.io on a variety of operating systems and machine types.
curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s
Some installation types require flags to identify the computer type, for example, when using a Raspberry Pi 3, the flag -- -m raspberrypi3
is required. The install script would then look like this:
curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s -- -m raspberrypi3
Other machine types
intel-nuc
raspberrypi
raspberrypi2
raspberrypi3
raspberrypi3-64
raspberrypi4
raspberrypi4-64
odroid-c2
odroid-cu2
odroid-xu
orangepi-prime
tinker
qemuarm
qemuarm-64
qemux86
qemux86-64
See the hassio-installer Github page for an up-to-date listing of supported machine types.
A detailed guide about running Hass.io as a virtual machine is available in the blog.