Install Home Assistant on Raspberry pi

In this post we will install Home Assistant on Raspberry pi

Home Assistant is Open source home automation that puts local control and privacy first.
Powered by a worldwide community of tinkerers and DIY enthusiasts.
Perfect to run on a Raspberry Pi or a local server.

Raspbian is a Debian-based computer operating system for Raspberry Pi.

Docker is a computer program that performs operating-system-level virtualization, also known as ”containerization”.

Portainer is an open-source management UI which allows you to manage your docker host/cluster from a webpage.

What you need?


Download raspbian image
Download and install etcher flash tool
Download and install putty


Unzip image
Flash image in sd card

Flash HomeAssistnat image in sd card


Turn ssh on by adding ”ssh” file in your sd card

Turn ssh on by adding "ssh" file in your sd card


Unplug sd card from your pc
Insert sd card into Raspberry pi
Connect Raspberry Pi in local network and plug power on


Find your Raspberry pi ip
You can use:
Fing – Network Tools on Android
Wireless Network Watcher on Windows


Connecting to raspberry pi via ssh
Default password is raspberry

Connecting to raspberry pi via ssh


Update Raspbian
Install Docker
Install Portainer on Docker

sudo apt update && sudo apt upgrade -y

curl -fsSL -o && sh

sudo docker volume create portainer_data
sudo docker run -d --name=portainer --restart=always -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer


Checking if Portainer works

Checking if Portainer works


Install Home Assistant on Docker

sudo docker run -d --name="home-assistant" -v /home/pi/homeassistant:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/raspberrypi3-homeassistant


Open Home Assistant

Open Home Assistant

Now you have your own home automation system!