home-assistant.io/source/installation/raspberrypi.markdown
Thomas Bertels 238ef3afbd
raspberrypi: + note about installation methods and Add-ons (#28981)
* raspberrypi: + note about installation methods and Add-ons

+ link to compare installation methods, + note about Add-ons only available with OS.

* Typo in raspberrypi.markdown

* raspberrypi.markdown: -target="_blank"

* raspberrypi.markdown: Add-ons -> add-ons
2023-09-22 10:06:06 +02:00

6.7 KiB
Raw Blame History

title description installation_type
Raspberry Pi Install Home Assistant on a Raspberry Pi raspberrypi

{% comment %} Included sections for this page is located under source/_includes/installation {% endcomment %}

{% assign board = "Raspberry Pi" %} {% assign installation_media = "SD card" %}

Please remember to ensure you're using an appropriate power supply with your Raspberry Pi. Mobile chargers may not be suitable, since some are designed to only provide the full power with that manufacturer's handsets. USB ports on your computer also will not supply enough power and must not be used.

Before installing Home Assistant, you might want to compare installation methods. Most notably, add-ons are only available with the Home Assistant Operating System.

Suggested Hardware

We will need a few things to get started with installing Home Assistant. Links below lead to Amazon US. If youre not in the US, you should be able to find these items in web stores in your country.

  • Raspberry Pi 4 (Raspberry Pi 3 is ok too, if you have one laying around). Raspberry Pi are currently hard to come by, use RPilocator to find official distributors with stock.
  • Power Supply for Raspberry Pi 4 or Power Supply for Raspberry Pi 3
  • Micro SD Card. Ideally get one that is Application Class 2 as they handle small I/O much more consistently than cards not optimized to host applications. A 32 GB or bigger card is recommended.
  • SD Card reader. This is already part of most laptops, but you can purchase a standalone USB adapter if you don't have one. The brand doesn't matter, just pick the cheapest.
  • Ethernet cable. Required for installation. After installation, Home Assistant can work with Wi-Fi, but an Ethernet connection is more reliable and highly recommended.

Install Home Assistant Operating System

This guide shows how to install the Home Assistant Operating system onto your Raspberry Pi using Raspberry Pi Imager.

If Raspberry Pi Imager is not supported by your platform, you can use Balena Etcher instead.

Write the image to your SD card

  1. Download and install the Raspberry Pi Imager on your computer as described under https://www.raspberrypi.com/software/. Install Raspberry Pi Imager
  2. Open the Raspberry Pi Imager. Open Raspberry Pi Imager
  3. Choose the operating system:
    1. Select Choose OS.
    2. Select Other specific-purpose OS > Home assistants and home automation > Home Assistant.
    3. Choose the Home Assistant OS that matches your hardware (RPi 3 or RPi 4). Choose the operating system
  4. Choose the storage:
    1. Insert the SD card into the computer. Note: the contents of the card will be overwritten.
    2. Select your SD card. Select the storage
  5. Write the installer onto the SD card:
    1. To start the process, select Write.
    2. Wait for the Home Assistant OS to be written to the SD card. Select write
  6. Eject the SD card.

Start up your Raspberry Pi

  1. Insert the SD card into your Raspberry Pi.

  2. Plug in an Ethernet cable that is connected to the network.

  3. Connect the power supply to start up the device.

  4. In the browser of your desktop system, within a few minutes you will be able to reach your new Home Assistant at homeassistant.local:8123.

If you are running an older Windows version or have a stricter network configuration, you might need to access Home Assistant at homeassistant:8123 or `http://X.X.X.X:8123` (replace X.X.X.X with your Raspberry Pis IP address).

Congratulations! You finished the Raspberry Pi setup!

{% include installation_survey.html %}

With the Home Assistant Operating System installed and accessible, you can now continue with onboarding.

{% include getting-started/next_step.html step="Onboarding" link="/getting-started/onboarding/" %}

{% include installation/container.md %} {% include installation/core.md %}

Writing the image with Balena Etcher

Use this procedure if Raspberry Pi Imager is not supported by your platform.

  1. Insert the SD card into the computer. Note: the contents of the card will be overwritten.

  2. Download and start Balena Etcher. You may need to run it with administrator privileges on Windows.

  3. Download the image to your computer.

    • Copy the correct URL for the Raspberry Pi 3 or 4 (Note: there are 2 different links below!):

{% tabbed_block %} {% for variant in site.installation.types[page.installation_type].variants %}

  • title: {{ variant.name }} content: |

    https://github.com/home-assistant/operating-system/releases/download/{{site.data.version_data.hassos[variant.key]}}/haos_{{ variant.key }}-{{site.data.version_data.hassos[variant.key]}}.img.xz
    

{% endfor %} {% endtabbed_block %}

Select and copy the URL or use the "copy" button that appear when you hover it.

  1. Paste the URL into your browser to start the download.
  2. Select Flash from file and select the image you just downloaded.
    • Flash from URL does not work on some systems.

Screenshot of the Etcher software showing flash from URL selected. 6. Select target. Screenshot of the Etcher software showing the select target button highlighted. 7. Select the SD card you want to use for your installation. Screenshot of the Etcher software showing teh targets available. 8. Select Flash! to start writing the image. Screenshot of the Etcher software showing the Flash button highlighted. 9. Once Balena Etcher has finished writing the image, you will see a confirmation. Screenshot of the Etcher software showing that the installation has completed.

We get commissions for purchases made through links in this post.