This tutorial guides you on how to connect the Unit CamS3-5MP camera module to Home Assistant.
CONTINUE.
New Device Setup.
NEXT.
ESP32-S3.
SKIP.
EDIT. We can customize device functions through the YAML file.
The following is the core part of the code. Related references and instructions are provided below.
Add PSRAM component:
psram:
mode: octal
speed: 80MHz Add Switch component:
switch:
- platform: gpio
name: "Active LED"
pin:
number: GPIO14
inverted: true
restore_mode: ALWAYS_ON Add I2C component:
i2c:
- id: camera_i2c
sda: GPIO17
scl: GPIO41
scan: true Add ESP32 Camera component:
esp32_camera:
name: "PY260 camera"
external_clock:
pin: GPIO11
frequency: 20MHz
i2c_id: camera_i2c
data_pins: [GPIO6, GPIO15, GPIO16, GPIO7, GPIO5, GPIO10, GPIO4, GPIO13]
vsync_pin: GPIO42
href_pin: GPIO18
pixel_clock_pin: GPIO12
reset_pin: GPIO21
resolution: 1024x768
jpeg_quality: 12 SAVE and INSTALL in the upper-right corner, then select Manual Download in the pop-up window.
Factory format(Previously Modern).
CONNECT to connect to the device.
INSTALL.
Settings -> Device & services to check the device.
Discover section.