BlogContact

Installation

How to install Home Assistant OS on a Home Assistant Green or on an x86-64 mini-PC.

Home Assistant works best as Home Assistant OS (HAOS): a small system of its own that does only this and updates itself. Below are the two ways we recommend. Choosing the hardware is covered in Which device to choose?.

Home Assistant Green comes with the system already installed. There is nothing to write.

  1. Connect the Green to your router with a network cable.
  2. Plug in the power supply from the box.
  3. Wait a few minutes. The first time, the Green downloads the latest Home Assistant, which can take up to 20 minutes.
  4. On a computer or phone on the same network, open http://homeassistant.local:8123 and go on to the first run.

On a mini-PC (for example a Dell Wyse or HP T630 thin client, or a computer with an Intel N100), HAOS is written to the whole disk: everything on it is gone. There are two ways; pick one.

Way 1: the SSD through a USB adapter (simpler)

If the mini-PC's disk can be taken out, write the image onto it from another computer.

  1. Download the Generic x86-64 image from the Home Assistant installation page (home-assistant.io → Getting started → Installation → Generic x86-64). It is the file haos_generic-x86-64-<version>.img.xz.
  2. Take the disk out of the mini-PC and connect it to your computer through a USB adapter (SATA or NVMe, as the disk needs).
  3. Install and run balenaEtcher (etcher.balena.io). Select the downloaded image, then the disk on the adapter, and click Flash!. Check twice that the disk on the adapter is selected, not your computer's own disk.
  4. Put the disk back into the mini-PC and go on to the BIOS settings.

Way 2: an Ubuntu USB stick (the disk stays in the mini-PC)

If the disk cannot be taken out, start the mini-PC from an Ubuntu USB stick and write the image to the internal disk from there. You need a USB stick (8 GB or more) and another computer with Windows. The pictures below are of the Polish versions of Rufus and Ubuntu; the buttons are in the same places in English.

The Ubuntu USB stick

  1. Download Ubuntu Desktop from ubuntu.com/download/desktop and Rufus from rufus.ie.

  2. Run Rufus. Under Device, select the USB stick. Everything on it is erased, so make sure it is the right one.

    Rufus: the USB stick selected under Device

  3. Under Boot selection, click SELECT and choose the downloaded Ubuntu ISO. Click START.

    Rufus: the Ubuntu ISO selected

  4. When asked about an "ISOHybrid image", keep the recommended option and click OK, then confirm the data-loss warning.

    Rufus: the ISOHybrid image question

    Rufus: the warning that the USB stick will be erased

  5. When the bar is full and READY shows, close Rufus with CLOSE.

    Rufus: writing finished, status READY

Writing HAOS to the mini-PC's disk

  1. Plug the USB stick into the mini-PC and set the BIOS to start from it.

  2. In the Ubuntu menu choose Try Ubuntu. Ubuntu then runs from memory only and installs nothing.

    Ubuntu: the first screen after starting from the USB stick

    Ubuntu: choosing the language

    Ubuntu: the next start-up screen

    Ubuntu: the next start-up screen

    Ubuntu: choosing Try Ubuntu

  3. Connect to the internet (icon in the top right corner), open Firefox and download the Generic x86-64 image as in way 1.

  4. Start the Disks app. On the left, select the mini-PC's internal disk, not the USB stick.

    Disks: the mini-PC's internal disk selected

  5. Click the menu (three dots) in the top right corner and choose Restore Disk Image.

    Disks: the three-dot menu

    Disks: Restore Disk Image

  6. Choose the downloaded HAOS image, click Start Restoring and confirm.

    Disks: the HAOS image selected

    Disks: confirming the restore

    Disks: the image being written

  7. When it is done, shut Ubuntu down, take the USB stick out and start the mini-PC again.

    Disks: writing finished

BIOS settings

  1. Switch the mini-PC on and keep pressing the BIOS/UEFI key straight away (usually F2, Del, F1 or F10).
  2. Set:
    • UEFI Boot: on,
    • Secure Boot: off (HAOS does not support it),
    • Boot Order: the disk with HAOS first, or the USB stick if you use way 2 and are only now writing the image.
  3. Save (usually F10) and restart.

Once HAOS starts from the disk, connect the mini-PC to your router with a network cable. The first time, the system downloads the latest Home Assistant, which takes a few to a dozen or so minutes.

Opening it for the first time

On a computer or phone on the same network, open one of:

  • http://homeassistant.local:8123
  • http://homeassistant:8123
  • http://<server IP address>:8123, e.g. http://192.168.1.15:8123 (your router lists the address among the connected devices).

While Home Assistant is getting ready, the page shows a waiting screen. When you see Welcome!, go on to the first run.

Set up the basic actions (button → light, button → cover) in boneIO, not in Home Assistant. Then they keep working while Home Assistant restarts or is switched off.