operating-system Documentation

Beginner: Home Assistant Operating System

7,081 stars Python Python 1 file ยท ~1,262 tokens #buildroot#docker#hacktoberfest#hass#hassio-os#home-assistant#iot#nb
RAW Doc

Docker & Self-Hosted Deployment Verified OCI

Deploy operating-system on any server, homelab, or cloud container platform.

1-Click Terminal Command
bash (docker run)
docker run -d --name operating-system --restart always home-assistant/operating-system:latest

File: README.md

Home Assistant Operating System

Home Assistant Operating System (formerly HassOS) is a Linux based operating system optimized to host Home Assistant and its Apps.

Home Assistant Operating System uses Docker as its container engine. By default it deploys the Home Assistant Supervisor as a container. Home Assistant Supervisor in turn uses the Docker container engine to control Home Assistant Core and Apps in separate containers. Home Assistant Operating System is not based on a regular Linux distribution like Ubuntu. It is built using Buildroot and it is optimized to run Home Assistant. It targets single board compute (SBC) devices like the Raspberry Pi or ODROID but also supports x86-64 systems with UEFI.

Features

  • Lightweight and memory-efficient
  • Minimized I/O
  • Over The Air (OTA) updates
  • Offline updates
  • Modular using Docker container engine

Supported hardware

The list of supported hardware is defined by ADR-0015.
Every new hardware addition must meet at least requirements defined in ADR-0017 and pass through an architecture design proposal.

For documentation explaining details of the individual supported boards, see Board support section of the Home Assistant Developer Docs.

Getting Started

If you just want to use Home Assistant the official getting started guide and installation instructions take you through how to download Home Assistant Operating System and get it running on your machine.

If you're interested in finding out more about Home Assistant Operating System and how it works read on...

Development

If you don't have experience with embedded systems, Buildroot or the build process for Linux distributions it is recommended to read up on these topics first (e.g. Bootlin has excellent resources).

The Home Assistant Operating System documentation can be found on the Home Assistant Developer Docs website.

Components

  • Bootloader:
    • GRUB for devices that support UEFI
    • U-Boot for devices that don't support UEFI
  • Operating System:
  • File Systems:
    • SquashFS for read-only file systems (using LZ4 compression)
    • ZRAM for /tmp, /var and swap (using LZ4 compression)
  • Container Platform:
    • Docker Engine for running Home Assistant components in containers
  • Updates:
    • RAUC for Over The Air (OTA) and USB updates
  • Security:

Development builds

The Development build GitHub Action Workflow is a manually triggered workflow
which creates Home Assistant OS development builds. The development builds are
available at https://os-artifacts.home-assistant.io/index.html.


File: Documentation/kernel.md

Kernel Version

Mainline Linux

The following boards are using mainline Linux kernel:

Board Version
Generic aarch64 6.18.45
Generic x86-64 6.18.45
Home Assistant Green 6.18.45
Khadas VIM3 6.18.45
ODROID-C2 6.18.45
ODROID-C4 6.18.45
ODROID-M1 6.18.45
ODROID-M1S 6.18.45
ODROID-N2 6.18.45
Open Virtual Appliance 6.18.45

Raspberry Pi Linux

The following boards are using Raspberry Pi's Linux fork:

Board Version
Home Assistant Yellow 6.18.39
Raspberry Pi 3 6.18.39
Raspberry Pi 4 6.18.39
Raspberry Pi 5 6.18.39

File: Documentation/README.md

Documentation

Documentation for the Home Assistant Operating System is available at developers.home-assistant.io/docs/operating-system/.
If you want to contribute to this documentation, please refer to the home-assistant/developers.home-assistant repository.

For the list of Linux kernel versions used currently in this branch of Home Assistant Operating System, see kernel.md.