Skip to content

Home Assistant on Raspberry Pi

Easy 30 min ~$80

Raspberry Pi is the most popular way to run Home Assistant. Cheap, silent, and uses only 5-10W of power.

Raspberry Pi setup diagram

  • ✅ Raspberry Pi 4 (2GB+) or Pi 5
  • ✅ Computer to flash SD card
  • ✅ Network with internet access
PartDescriptionPrice
Raspberry Pi 4 (4GB)Recommended model~$55
Power supplyOfficial 15W USB-C~$15
SD card 32GB+Samsung EVO or SanDisk~$10
Ethernet cableCat5e/Cat6~$5
Total~$85
PartWhyPrice
SSD + USB adapterFaster, lasts longer~$30
Heatsink/fanKeeps Pi cool~$10
CaseProtection and aesthetics~$15
  1. Download Raspberry Pi Imager

    Get it from raspberrypi.com/software

  2. Insert SD card into computer

  3. Open Raspberry Pi Imager

  4. Choose operating system:

    • Click “Choose OS”
    • Scroll down to “Other specific-purpose OS”
    • Select “Home assistants and home automation”
    • Select “Home Assistant”
    • Select “Home Assistant OS X.X (RPi 4/5)”
  5. Select your SD card:

    • Click “Choose Storage”
    • Select your SD card (be careful - choose the right one!)
  6. Flash:

    • Click “Write”
    • Confirm data will be erased
    • Wait 5-10 minutes
  1. Insert SD card into Raspberry Pi

    The card slot is on the bottom of the board.

  2. Connect Ethernet cable

    Direct to your router for most stable connection.

  3. Connect power (last!)

    Use the official power supply. Cheap chargers can cause problems.

Open your browser and go to:

http://homeassistant.local:8123

You’ll first see “Preparing Home Assistant” - wait 10-20 minutes.

  1. Create your account

    • Choose a username
    • Use a strong password (save it in a password manager!)
  2. Name your home

    E.g., “My Home” or your address.

  3. Set location

    Used for sunrise/sunset, weather, and timezone.

  4. Choose what to share

    Anonymous statistics - completely voluntary.

  5. Discovered devices

    Home Assistant automatically finds devices on your network. Click “Finish” for now.

🎉 Congratulations! Home Assistant is now running.

  1. Go to SettingsSystemBackups
  2. Click “Create backup”
  3. Download the backup file to your computer
  1. Go to SettingsSystemUpdates
  2. Update everything available
  3. Restart if necessary

Go to SettingsAdd-onsAdd-on store:

Add-onWhat it does
File EditorEdit config files in browser
Terminal & SSHCommand line access
Samba shareAccess files from Windows/Mac

SD cards are the #1 cause of Home Assistant problems. An SSD costs ~$30 and lasts many years.

  • USB 3.0 to SATA adapter or SSD enclosure
  • 2.5” SATA SSD (120GB is plenty)
  1. Flash Home Assistant OS to SSD (same method as SD card)
  2. Turn off Pi
  3. Remove SD card
  4. Connect SSD via USB 3.0 port (blue port)
  5. Turn on Pi