I Built an ESP32-CAM Smart Surveillance Camera
title: "Building VisionCam Pro: An ESP32-CAM Smart Surveillance System with Home Assistant & MQTT" published: false description: "Walkthrough of an ESP32-CAM smart camera system featuring a web dashboard, MJPEG live stre
title: "Building VisionCam Pro: An ESP32-CAM Smart Surveillance System with Home Assistant & MQTT"
published: false
description: "Walkthrough of an ESP32-CAM smart camera system featuring a web dashboard, MJPEG live streaming, SD card recordings, motion detection, RTSP, network storage, and Home Assistant integration."
tags: esp32, iot, smart-home, home-assistant
I recently built and demoed VisionCam Pro, a smart camera and local surveillance system powered by an ESP32-CAM (OV2640 sensor) and paired with a web dashboard and Home Assistant integration.
- π₯ Full Project Demo Video: I Built an ESP32-CAM Smart Surveillance Camera | Full Project Demo!
- π» GitHub Repository: github.com/charithmadhuranga/ESP-CAM
Overview
Instead of treating an ESP32-CAM as a single-purpose stream script, this project turns it into a manageable local camera node with authentication, media management, storage policies, and smart-home integrations.
In the demo walkthrough, the system covers:
-
Authenticated Web Dashboard (
VisionCam Pro) with sign-in access, system status cards (Online, recording state, event count, free space), and live diagnostics. - Live View & Recording Controls including an MJPEG stream, flash toggle, snapshot capture, and recording to an SD card.
- Media Library & Recordings Browser to inspect captured snapshots, play back recorded clips, and view recording metadata.
- Storage & Retention Management with SD card capacity tracking, automatic cleanup policies, and a network storage queue.
- Camera, Segment & Motion Detection Settings including resolution/JPEG quality selection, recording segments, and motion detection parameters.
- Integrations (MQTT, RTSP & Network Storage) for connecting to external brokers, streaming over RTSP, and integrating with Home Assistant.
Key Features & Walkthrough
1. Web Dashboard & System Diagnostics
After signing into the local camera web interface, the Overview screen displays device status, live preview access, network and MQTT connection states, memory/heap metrics, and FreeRTOS task/stack diagnostics.
2. Live Streaming, Snapshots & Recordings
From the Live view section, you can monitor the camera stream, toggle the onboard flash, capture snapshots on demand, and start or stop recording segments to the microSD card. Captured stills and recordings can then be browsed, viewed, or played back directly from the Media library and Recordings tabs.
3. Storage & Retention Controls
The Storage view tracks used vs. available space on the card and provides retention settings (such as maximum card usage and media retention rules) alongside network storage queue status.
4. Configuration & Motion Detection
The Settings tab lets you tune image resolution and JPEG quality, configure recording segment behavior, adjust motion detection settings, update credentials, or reboot the device.
5. MQTT, RTSP & Home Assistant Integration
Under Integrations, the system supports:
- MQTT broker configuration, connection testing, and test message publishing (with Home Assistant discovery support).
- RTSP stream configuration for external media/NVR/smart-home consumers.
- Network storage options for offloading media beyond local SD storage.
In the demo, the device connects into Home Assistant via MQTT and camera entities so you can monitor status, check sensors, trigger actions like taking a snapshot or toggling the flash LED, and view stream feeds inside your smart-home setup.
Hardware & Software Stack
-
Hardware: ESP32-CAM module with
OV2640camera sensor and microSD storage - Smart Home / Messaging: Home Assistant, MQTT, RTSP
- Code & Resources: github.com/charithmadhuranga/ESP-CAM
Links & Next Steps
- Watch the Demo: http://www.youtube.com/watch?v=2Mn2OLU3_kw
- Explore the Source Code: https://github.com/charithmadhuranga/ESP-CAM
If you're experimenting with ESP32-CAM firmware, RTSP/MQTT pipelines, or Home Assistant camera automations, feel free to check out the repo or share your setup in the comments!
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.