
* 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
6.7 KiB
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 you’re 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
- Download and install the Raspberry Pi Imager on your computer as described under https://www.raspberrypi.com/software/.
- Open the Raspberry Pi Imager.
- Choose the operating system:
- Choose the storage:
- Write the installer onto the SD card:
- Eject the SD card.
Start up your Raspberry Pi
-
Insert the SD card into your Raspberry Pi.
-
Plug in an Ethernet cable that is connected to the network.
-
Connect the power supply to start up the device.
-
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.
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.
-
Insert the SD card into the computer. Note: the contents of the card will be overwritten.
-
Download and start Balena Etcher. You may need to run it with administrator privileges on Windows.
-
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.
- Paste the URL into your browser to start the download.
- Select Flash from file and select the image you just downloaded.
- Flash from URL does not work on some systems.
6. Select target.
7. Select the SD card you want to use for your installation.
8. Select Flash! to start writing the image.
9. Once Balena Etcher has finished writing the image, you will see a confirmation.
We get commissions for purchases made through links in this post.