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.https://www.home-assistant.io/
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.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?
- Raspberry pi with power supply and sd card
- Local network
Flash image in 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
Connecting to raspberry pi via ssh
Default password is raspberry
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
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
Now you have your own home automation system!