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.

https://www.home-assistant.io/

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

https://en.wikipedia.org/wiki/Raspbian

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

https://en.wikipedia.org/wiki/Docker_(software)

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

https://github.com/martikainen87/Home-Automation/wiki/Docker-Portainer

What you need?

1.

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

2.

Unzip image
Flash image in sd card

Flash HomeAssistnat image in sd card

3.

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

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

4.

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

5.

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

6.

Connecting to raspberry pi via ssh
Default password is raspberry

Connecting to raspberry pi via ssh

7.

Update Raspbian
Install Docker
Install Portainer on Docker

sudo apt update && sudo apt upgrade -y

curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.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

8.

Checking if Portainer works

Checking if Portainer works

9.

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

10.

Open Home Assistant

Open Home Assistant

Now you have your own home automation system!