![](https://osbooter.com/wp-content/uploads/2024/07/homeassistant-logo1.png)
Welcome to Osbooter.com! If you’re new to smart home setups, you’re in the right place. Let’s walk through installing Home Assistant on a Raspberry Pi in a friendly, step-by-step way. Ready? Let’s dive in!
Step 1: Install Docker π³
Docker makes it easy to run applications in containers. Here’s how to install it on your Raspberry Pi:
- Open your terminal and run the following commands:
curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh
- Docker is now installed! π
Step 2: Install Home Assistant π
Now, let’s install Home Assistant. Depending on your Raspberry Pi model, use one of the following commands:
- For Raspberry Pi 3:
sudo docker run -d \
--name homeassistant \
--privileged \
--restart=unless-stopped \ -e TZ=YOUR_TIME_ZONE \ -v /home/pi/homeassistant:/config \
--network=host \
ghcr.io/home-assistant/raspberrypi3-homeassistant:stable
- For Raspberry Pi 4:
sudo docker run -d \
--name homeassistant \ --privileged \
--restart=unless-stopped \ -e TZ=YOUR_TIME_ZONE \ -v /home/pi/homeassistant:/config \
--network=host \ ghcr.io/home-assistant/raspberrypi4-homeassistant:stable
Step 3: Start Home Assistant π
To start, stop, or restart Home Assistant, use these commands:
- Start:
sudo docker start homeassistant
- Stop:
sudo docker stop homeassistant
- Restart:
sudo docker restart homeassistant
Step 4: Access Home Assistant π
Open your browser and enter http://<your_raspberry_pi_ip>:8123
to access Home Assistant.
For example, if your Raspberry Pi’s IP address is 192.168.1.100
, you would go to http://192.168.1.100:8123
.
Tips for Beginners π€
- Time Zone: Replace
YOUR_TIME_ZONE
with your actual time zone (e.g.,America/New_York
). - Find Your Pi’s IP: Use the command
hostname -I
on your Pi to find its IP address. - Full Screen Boot: Want to configure Home Assistant to start on boot? Check out the detailed guides on the Home Assistant website.
Need help? Drop your questions below or join our community for more tips and tricks! π¬ more tips and tricks! π¬