Installing Home Assistant

How to Install Home Assistant on an Old Laptop or Mini PC

Install Home Assistant OS on an old laptop or mini PC: check UEFI and 64-bit support, flash the x86-64 image to the internal drive and set BIOS power options.

On this page
  1. Is an old laptop or mini PC a good Home Assistant server?
  2. What to check before you start
  3. Step 1: Set the BIOS or UEFI options
  4. Step 2: Write Home Assistant OS to the internal drive
  5. Step 3: First boot and onboarding
  6. Keeping an old machine running 24/7
  7. If you want other workloads too
  8. Common problems

Is an old laptop or mini PC a good Home Assistant server?

For many people, yes. Old office mini PCs and laptops often come with an SSD and more processing power than a Raspberry Pi, and they’re cheap or free. Home Assistant OS runs on them directly. The drawbacks are higher power use than a Pi, the care a laptop battery needs when it runs 24/7, and the requirement for 64-bit UEFI hardware.

What to check before you start

  • A 64-bit x86 processor. 32-bit PCs aren’t supported, because Home Assistant no longer supports 32-bit systems.
  • UEFI firmware. The generic x86-64 image needs UEFI. Legacy BIOS won’t boot it.
  • Memory and storage. 2 GB of RAM and 32 GB of storage is the minimum. 4 to 8 GB of RAM and an SSD are better.
  • Wired Ethernet. Wi-Fi works, but a wired connection is more reliable for device discovery and for radio hubs.
  • A way to write the image. Either a USB stick of at least 8 GB for a live Linux system, or a second computer.
  • A backup of anything on the drive. Writing the image erases the entire internal drive.

Step 1: Set the BIOS or UEFI options

Enter the BIOS setup when the machine powers on. The key varies by brand, and it’s often F2, F10, F12 or Delete. Set these options:

  • Boot mode: UEFI. Turn off legacy boot and CSM.
  • Secure Boot: off.
  • Boot from USB: allowed.
  • Restore on AC power loss: Power On. The machine then restarts by itself after a power cut.

Save and exit.

Step 2: Write Home Assistant OS to the internal drive

Download the generic x86-64 image, named haos_generic-x86-64-<version>.img.xz, from the Home Assistant installation page. Choose one of two methods.

Method 1: From a live Linux USB

  1. Write a live Linux distribution, such as Ubuntu, to a USB stick.
  2. Boot the old machine from the stick and choose the option to try Linux without installing it.
  3. Download the Home Assistant image and write it to the internal drive with balenaEtcher, or with GNOME Disks’ Restore Disk Image option. If your tool can’t read the .xz file, extract it first.
  4. Shut down, remove the stick, and boot from the internal drive.

Method 2: From another computer

  1. Remove the internal drive from the old machine.
  2. Connect it to another computer with a USB adapter.
  3. Write the image to the drive with balenaEtcher or a similar tool.
  4. Put the drive back in the old machine and boot it.

Both methods erase the whole drive. Check the target drive before you write.

Step 3: First boot and onboarding

  1. Remove the USB stick, if you used one, and connect the Ethernet cable.
  2. Power on. The first boot can take up to about 20 minutes while Home Assistant prepares.
  3. The screen shows the machine’s IP address. From another device, open http://homeassistant.local:8123, or http://<IP-address>:8123 if the name doesn’t work.
  4. Complete the onboarding wizard.

Keeping an old machine running 24/7

  • Laptop batteries. Check the battery for swelling before you run the laptop all the time. Constant charging can damage an old battery. If you can remove it, do so. Stop using a swollen battery and replace it.
  • Lid and screen. Check the lid-close setting so the laptop keeps running with the lid shut. The behavior varies by model.
  • Ventilation. Don’t run the machine closed inside a cabinet.
  • Power use. Older machines can draw more power than a Pi or a newer low-power mini PC. Estimate the yearly cost before you commit.

If you want other workloads too

If you want to run other services on the same machine, install a hypervisor such as Proxmox and run Home Assistant OS as a VM. See running Home Assistant in a VM. If you’d rather run Home Assistant in Docker on a Linux system, see running Home Assistant on a NAS or Docker.

Don’t install Ubuntu first and then add Home Assistant to it. Home Assistant OS needs the image written to the drive directly.

Common problems

  • The machine won’t boot from the drive. The BIOS is probably still in legacy mode, or the internal drive isn’t first in the boot order.
  • There’s no UEFI option. The machine may be too old for the image. A Raspberry Pi 5 or a newer mini PC is the simpler choice.
  • The network is unreliable. Connect Ethernet during setup. You can set up Wi-Fi later.

For a full overview of install routes, see how to install Home Assistant.

The complete guide to installing home assistant

How to Install Home Assistant: Every Self-Hosted Method Compared
Read the guide

Keep exploring

Guides from other topics

All topics →