Smart home
How to install Home Assistant on your home server
Home Assistant links your lights, sensors and devices on your own network. The web page is on port 8123. The steps here are for the Container type.
What the steps install, and how it connects
Connects to it
- Browser8123/tcp
- Lights, sensors and deviceson your network
Your server, in Docker
container homeassistant
image ghcr.io/
--network=host: it uses the server’s own ports
- 8123/tcpweb pageon the server’s own network
Its data on the server
/to /PATH_ TO_ YOUR_ CONFIG config settings/read-onlyrun/ dbus
On TrueNAS the app’s web page is on 30103/tcp. Drawn from step 8 of the Debian + Docker steps. Ports are the ones in those steps and in the table below.
The diagram in words
The Debian + Docker steps install the container homeassistant, with port 8123/tcp. Connects to it: Browser on 8123/tcp; Lights, sensors and devices on your network. Its data: /PATH_TO_YOUR_CONFIG (settings); /run/dbus.
What it needs
| Ports | 8123/tcp (web page)TrueNAS app web page: 30103/tcp |
|---|---|
| Memory | Not stated for the Container install. Only the Raspberry Pi guide gives a figure: a model with at least 2 GB.www.home-assistant.io/installation/raspberrypi/ read 25 Nov 2026 |
| CPU | Not stated by the project (read 25 Nov 2026) |
| Disk | Not stated for the Container install. Only the Raspberry Pi guide gives a figure: a card of at least 32 GB.www.home-assistant.io/installation/raspberrypi/ read 25 Nov 2026 |
| Licence | Apache-2.0 |
| Project page | home-assistant/core |
Ports are the project's defaults. Memory and disk figures are the project's own, with the page and the date read. Estimates only.
The one thing to know before you start
The Container type has no add-ons (now called apps). The command uses --privileged and --network=host, and Docker Desktop does not work (Docker Engine 23.0.0 or later is needed). The project's own operating system, Home Assistant OS, is a separate install and is not on this page.
Wondering what it costs to run? Read how much power a Home Assistant server uses.
Install steps
These steps follow the project's own pages and have not been tried on real hardware yet.
They start from a server that runs Docker: set up an old laptop or PC first. Docker or bare metal for Home Assistant: what each method needs.
- WARNINGDo not run these steps on a server with a public IP address. Anyone on the internet could then reach the apps.
- WARNINGDo not forward these ports on your router, unless a step tells you to. The ports would then be open to the internet.
- WARNINGDo not trust ufw to close a port that Docker opens. Docker bypasses the ufw rules. Read the Docker page on firewalls.
Debian + Docker
checking Some details are still being checked.
- WARNINGUse Docker Engine 23.0.0 or later. Docker Desktop does not work.
- WARNINGKnow that this install has no add-ons. It is the Container type.
- WARNINGKnow that the command uses --privileged and --network=host.
Install Docker Engine with the Compose plugin. Use the Docker page for Debian.
Type this command to create the docker group. If the group exists, go to the next step.
sudo groupadd dockerType this command to add your user to the docker group.
sudo usermod -aG docker $USERLog out and log in again so that the group change takes effect.
Type this command to test Docker.
docker run hello-worldReplace MY_TIME_ZONE with your time zone.
Replace /PATH_TO_YOUR_CONFIG with your config folder.
Type this command to start Home Assistant.
docker run -d --name homeassistant --privileged --restart=unless-stopped --stop-timeout 60 -e TZ=MY_TIME_ZONE -v /PATH_TO_YOUR_CONFIG:/config -v /run/dbus:/run/dbus:ro --network=host ghcr.io/home-assistant/home-assistant:stableOpen http://<server address>:8123 in a browser.
Complete the setup of Home Assistant.
TrueNAS app
checking Some details are still being checked.
- WARNINGThis app is in the stable train. iXsystems supports it.
- WARNINGKnow that this app is the Container type. It has no add-ons.
- WARNINGUpdate TrueNAS to version 24.10.2.2 or newer before you start.
Open Apps > Discover Apps.
Apps > Discover Apps > search 'home-assistant' > Install (train: stable)Search for 'home-assistant'.
Click Install.
Open http://<server address>:30103 in a browser.
Proxmox VE (VM + Docker)
checking Some details are still being checked.
- WARNINGUse a VM, not an LXC container. Proxmox says: "nesting containers inside a Proxmox QEMU VM remains a recommended practice".
- WARNINGUse Docker Engine 23.0.0 or later. Docker Desktop does not work.
- WARNINGKnow that this install has no add-ons. It is the Container type.
- WARNINGKnow that the command uses --privileged and --network=host.
Create a Debian VM in Proxmox VE.
Sign in to the VM.
Install Docker Engine with the Compose plugin. Use the Docker page for Debian.
Type this command to create the docker group. If the group exists, go to the next step.
sudo groupadd dockerType this command to add your user to the docker group.
sudo usermod -aG docker $USERLog out and log in again so that the group change takes effect.
Type this command to test Docker.
docker run hello-worldReplace MY_TIME_ZONE with your time zone.
Replace /PATH_TO_YOUR_CONFIG with your config folder.
Type this command to start Home Assistant.
docker run -d --name homeassistant --privileged --restart=unless-stopped --stop-timeout 60 -e TZ=MY_TIME_ZONE -v /PATH_TO_YOUR_CONFIG:/config -v /run/dbus:/run/dbus:ro --network=host ghcr.io/home-assistant/home-assistant:stableOpen http://<server address>:8123 in a browser.
Complete the setup of Home Assistant.
Home Assistant documentation is licensed CC BY-NC-SA 4.0; this page links to it and does not copy it.
Licences and credits: Sources and licences.
What will it cost to run?
This page gives no power figure for Home Assistant. The planner adds up the box it runs on, where the power goes splits that figure part by part, and the guide gives idle watts and a yearly cost at your own price.
Plan a home automation box in the planner, or read the home server hardware guide.