IOT on Raspberry Pi: Install Home Assistant and a Camera Sensor for Live Video

Home Assistant Installation Options

Docker Compose Configuration and Startup

home_assistant:
container_name: home_assistant
image: ghcr.io/home-assistant/raspberrypi4-homeassistant:stable
restart: unless-stopped
privileged: true
network_mode: host
ports:
- "8123:8123"
volumes:
- /etc/localtime:/etc/localtime:ro
- ./volumes/home_assistant:/config
environment:
- TZ=Europe/Berlin

Adding the ESP32-Camera Entity and Live View

type: picture-glance
title: ESP32 Camera
entities:
- entity: camera.esp32camera
camera_image: camera.esp32camera
camera_view: live

Adding the ESP32-Camera Flashlight as a Binary Sensor

light:
- platform: binary
output: gpio_4
name: ESP32 Camera Flashlight
output:
- platform: gpio
pin: GPIO4
id: gpio_4

Summary

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store