Lädt...


🔧 Setting Up Home Assistant on a Raspberry Pi 3 Model B


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

Introduction

As part of my DIY smart home project, I've decided to explore Home Assistant to bridge various functionalities.
(Click here to read the article in Japanese.)

Previously, I was running Homebridge on a Raspberry Pi. However, after moving to a new place, several changes prompted me to reconsider my setup:

  1. The Wi-Fi SSID changed.
  2. The number of IoT devices increased or decreased.

Given these changes, I thought about reintroducing Homebridge. But upon researching, I discovered Home Assistant.

After skimming through the Reddit post Homebridge vs Home Assistant, unbiased opinion and its comments, I gathered the following points:

  1. Homebridge is designed primarily for use with HomeKit.
  2. Home Assistant is not fully integrated with HomeKit.
  3. Home Assistant and Homebridge are not mutually exclusive; some people run both.
  4. Someone managed to make all Homebridge plugins work within Home Assistant.

Given the variety of setups people have, I decided it might be quicker to try Home Assistant myself.

Who Is This For?

  1. Those who want to set up Home Assistant on a Raspberry Pi 3 Model B.
  2. My future self who might forget these steps after three months.

Steps

I'll proceed according to the official documentation.

Downloading the Installer

  • Raspberry Pi 5 or Raspberry Pi 4 with power supply (Raspberry Pi 3 Model B is ok to get started, but the Model A does not have enough RAM).

Raspberry Pi3 Model B ボード&ケースセット 3ple Decker対応 (Element14版, Clear)-Physical Computing Lab Date purchased: 12/30/2017

Raspberry Pi3 Model B ボード&ケースセット 3ple Decker対応 (Element14版, Clear)-Physical Computing Lab

Since the Raspberry Pi 3 Model B will be used, there seems to be no problem.

  • Micro SD Card.
    • Ideally get one that is Application Class 2. Check for the label A2 on the card. Application Class 2 cards perform better especially on small read and write operations and are better suited to host applications.
    • Make sure to use a card that provides at least 32 GB.

Samsung microSDカード 32GB EVO Plus Class10 UHS-I対応 スマホ カメラ向け (最大読出速度95MB/s:最大書込速度20MB/s) Date purchased: 12/30/2017

Samsung microSDカード 32GB EVO Plus Class10 UHS-I対応 スマホ カメラ向け (最大読出速度95MB/s:最大書込速度20MB/s)

I think I bought this with this Raspberry Pi when I bought it. Maybe a little more capacity?

  • SD Card reader. This is already part of most laptops, but you can purchase a standalone USB adapter if you don’t have one. The brand doesn’t matter, just pick the cheapest.

Anker 8-in-1 USB 3.0 ポータブルカードリーダー【microSDXC / microSDHC / microSD / MMC / RS-MMC / UHS-Iカード用】 Date purchased: 2/8/2020

(I think I bought this to move data from the SD card I used in my old digital camera...)

  • Ethernet cable. Required for installation. After installation, Home Assistant can work with Wi-Fi, but an Ethernet connection is more reliable and highly recommended.

This uses a LAM cable that was lying around at home, as appropriate.

Remember to ensure you’re using an appropriate power supply with your Raspberry Pi. Mobile chargers may not be suitable, since some are designed to only provide the full power with that manufacturer’s handsets. USB ports on your computer also will not supply enough power and must not be used.

I'm not sure if it's an AC adapter for a phone or a PC power supply, so I thought it would be safer to have a dedicated power supply.

Raspberry Pi用電源セット(5V 3.0A)-Pi3フル負荷検証済 Date purchased: 1/16/2020

Raspberry Pi用電源セット(5V 3.0A)-Pi3フル負荷検証済

I thought I could use this power supply set that I had bought with the Raspberry Pi.

When I continue reading Install Home Assistant Operating System, it seems that the installer can be easily created with Raspberry Pi Imager. Since I am working on Ubuntu right now, I downloaded it from software.

Download for Ubuntu for x86

Installer startup

installer

installer

Install Home Assistant

Insert the SD Card reader with the Micro SD card into the USB port of the PC and start imager.

rpm imager startup

Installation Wizard

Proceed with the installation wizard.
Select Home Assistant OS 13.1 (RPI 3) as the OS.

reject

exit normally

Insert the SD card into the Raspberry Pi, turn on the power and wait for about 3 minutes, then the following screen will appear.

Preparing Home Assistant

This may take 20 minutes or more

The indicator is running all the time, so I wait, literally, 20 minutes or so with a cup of coffee.

welcome!

Create a user when the user creation screen appears. The account information should be in 1Password.

Cooperation for Improvement

Set the data transmission policy, etc. as appropriate.

Compatible devices found

It found compatible devices in the same network on its own. It's amazing.

Setting up Wi-Fi on the Raspberry Pi

Go to Settings >> System >> Network >> WLAN0 >> Wi-Fi and select an access point.

access point

Network interface settings

Failed to change network settings

No connection.

Guide: HomeAssistant WiFi Setup / Troubleshooting HomeAssistant WiFi (Works!) I tried this because many people seemed to be helped by it.

  1. connect an external monitor, keyboard, and mouse to the Raspberry Pi
  2. set up wireless in the manual
# Check the name of the network interface for wireless. Default is wlan0
network info

# Set up wireless in manual
network update <interface_name> --ipv4-method auto --ipv6-method auto \
  --wifi-auth wpa-psk --wifi-mode infrastructure \
  --wifi-ssid <WiFi_network> \
  --wifi-psk <WiFi_password>

# Check network connection status again
network info

Return to PC and check wlan0 configuration status.

wlan0

Since it was connected properly, unplug the wired LAN from the Raspberry Pi.
Go to Settings >> System and reboot from there as the power button appears in the upper right corner of the screen.

power button

Reboot

Confirm reboot

Final Thoughts

The setup itself went smoothly, but I had a hard time setting up the Wi-Fi.
I'd like to link with Amazon Alexa Skill and Homekit, so I'm going to proceed as is.

...

🔧 Setting Up Home Assistant on a Raspberry Pi 3 Model B


📈 35.04 Punkte
🔧 Programmierung

🔧 🏠 GPT Home 🤖💬 an Open-source Raspberry Pi Home Assistant!


📈 25.37 Punkte
🔧 Programmierung

🐧 Smart Home: Zigbee Geräte in Home Assistant per Raspberry Pi einbinden


📈 25.37 Punkte
🐧 Linux Tipps

📰 Open Home Foundation gegründet: Unterstützung für Smart-Home-System Home Assistant


📈 22.63 Punkte
📰 IT Nachrichten

🔧 Setting Up The Home Lab: Setting up Kubernetes Using Ansible


📈 22.04 Punkte
🔧 Programmierung

📰 Debian-Based Raspberry Digital Signage Now Works on the Raspberry Pi 3 Model B+


📈 21.84 Punkte
📰 IT Security Nachrichten

📰 Home Assistant Yellow: Raspberry Pi Compute Module 5 wird unterstützt


📈 20.31 Punkte
📰 IT Nachrichten

📰 Simple, Secure & Free Remote Access to your Raspberry Pi + Home Assistant


📈 20.31 Punkte
📰 IT Security Nachrichten

🐧 Home Assistant auf dem Raspberry Pi – Erste Schritte


📈 20.31 Punkte
🐧 Linux Tipps

📰 heise-Angebot: Raspberry Pi: Intelligentes Heim mit Home Assistant einrichten


📈 20.31 Punkte
📰 IT Nachrichten

📰 Meet Gladys, a Raspberry Pi-Powered Intelligent, Open-Source Home Assistant


📈 20.31 Punkte
📰 IT Security Nachrichten

📰 Home Assistant: Voice-Assistant-Wettbewerb startet in dieser Woche


📈 19.97 Punkte
📰 IT Nachrichten

📰 Music Assistant macht Home Assistant zur Jukebox


📈 19.97 Punkte
📰 IT Nachrichten

📰 You Can Now Transform Your Raspberry Pi 3 Model B+ into a Home Theatre System


📈 19.09 Punkte
📰 IT Security Nachrichten

📰 You Can Now Transform Your Raspberry Pi 3 Model B+ into a Home Theatre System


📈 19.09 Punkte
📰 IT Security Nachrichten

🔧 The Home Assistant model


📈 18.75 Punkte
🔧 Programmierung

📰 ML model registry — the “interface” that binds model experiments and model deployment


📈 18.7 Punkte
🔧 AI Nachrichten

📰 Tesla: Preiserhöhung für Model 3, Model S und Model X in Deutschland


📈 18.7 Punkte
📰 IT Nachrichten

📰 Tesla mit Preiserhöhung in Europa: Neue Model S, Model X, Model 3 kündigen sich an


📈 18.7 Punkte
📰 IT Nachrichten

📰 Tesla: Model 3, Model S und Model X mit mehr Reichweite


📈 18.7 Punkte
📰 IT Nachrichten

📰 Cuphead: Wird für Tesla Model 3, Model S und Model X umgesetzt


📈 18.7 Punkte
📰 IT Nachrichten

📰 heise+ | Smart-Home-Zentralen im Vergleich: Amazons Echo Hub gegen Home Assistant


📈 17.57 Punkte
📰 IT Nachrichten

📰 Smart Home für Tüftler: Heimautomatisierung mit Home Assistant und ESP


📈 17.57 Punkte
📰 IT Nachrichten

🎥 HPR4099: Introducing Home Automation and Home Assistant


📈 17.57 Punkte
🎥 Podcasts

📰 heise+ | Smart Home: Intelligentes Heim mit Home Assistant


📈 17.57 Punkte
📰 IT Nachrichten

📰 Home Assistant: Neue Android-App bringt die Unterstützung für die Smart-Home-Steuerung von Android 11


📈 17.57 Punkte
📰 IT Nachrichten

🎥 Home Assistant: Smart Home Tutorial


📈 17.57 Punkte
🎥 Videos

📰 Home Assistant: Mac-Anwendung steuert Smart-Home-Geräte & übermittelt Zustände des Macs


📈 17.57 Punkte
📰 IT Nachrichten

📰 heise+ | Grundlagen Home Assistant: So beherrschen Sie die Smart-Home-Zentrale


📈 17.57 Punkte
📰 IT Nachrichten

📰 Starke Smart Home Aktion: Google Home 1+1 Gratis; Zwei Google Assistant Smart Speaker für nur 89 Euro


📈 17.57 Punkte
📰 IT Nachrichten

🔧 Create Your Dream Home Automation: Freedom & Flexibility with Home Assistant


📈 17.57 Punkte
🔧 Programmierung

📰 Neue Smart Home Aktion: Google Home 1+1 Gratis; Zwei Google Assistant Smart Speaker für nur 89 Euro


📈 17.57 Punkte
📰 IT Nachrichten

📰 TechStage | Top 10: Die besten Smart-Home-Systeme im Test – Home Assistant überragt alle


📈 17.57 Punkte
📰 IT Nachrichten

matomo