- Published on
How I Setup ESP32 CAM With ESP Home and Home Assistant - Step By Step Guide
- Authors
- Name
- Amrut Prabhu
- @amrutprabhu42
In this article, we will be looking at how we can actually connect ESP32 CAM with Home Assistant.
Table of Contents
ESP32 CAM Configuration
Open ESP Home, then click on “New device”, give it a name, and then select “ESP32".
Now open the configuration and add this particular configuration
esp32_camera:
external_clock:
pin: GPIO0
frequency: 20MHz
i2c_pins:
sda: GPIO26
scl: GPIO27
data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
vsync_pin: GPIO25
href_pin: GPIO23
pixel_clock_pin: GPIO22
power_down_pin: GPIO32
# Image settings
name: My Camera
# http server setting
esp32_camera_web_server:
- port: 8080
mode: stream
- port: 8081
mode: snapshot
Click on save and then click on install, click on manual download, and then click on Modern format.
Now download the binary file.
Flashing ESP32 CAM with ESPHome
Go to https://web.esphome.io and now before you connect it via USB press and hold the IO0
button on the ESP flasher.
If you don’t have the IO0
button, then connect the GND
and IO0
pin and connect the board using the USB to the computer.
Now click on connect, select the USB, click on install, select the file, and then finally click install.
So with this, we have now flashed the binary on the ESP32 CAM board.
Connecting ESP32 CAM to Home Assistant
First, find the IP address of the ESP32 CAM board and then head over to Home Assistant.
Now in Home Assistant click on settings then click on devices and integrations and now you will see ESP Home.
Click on ESP Home and click Add Device
Now here you will have to fill in the IP address of the ESP32 CAM board.
Once it's done you will see the device in Home Assistant.
Adding Live View In Home Assistant Dashboard
Click on Edit Dashboard, then add a “Picture Entity” card.
Now, here select the camera and select the live option.
Save it and you will see the live view on the dashboard.