This tutorial describes how to connect Unit PoE CAM-W v1.1 to Home Assistant.
NEW DEVICE in the lower right corner to create a new device.
CONTINUE in the pop-up window.
New Device Setup to create a new configuration file.
ESP32.
SKIP to skip.
EDIT under the generated configuration file card to edit.
Wi-Fi and Ethernet can only be chosen one at a time. By default, a new configuration will provide a Wi-Fi option.If using the Ethernet component, the Wi-Fi component needs to be commented out.
# Wi-Fi or Ethernet, you can only enable one of it
# wifi:
# ssid: !secret wifi_ssid
# password: !secret wifi_password
# # Enable fallback hotspot (captive portal) in case wifi connection fails
# ap:
# ssid: "unit-poe-cam-w-v1-rev1"
# password: ""
ethernet:
type: W5500
clk_pin: GPIO23
mosi_pin: GPIO13
miso_pin: GPIO38
cs_pin: GPIO4
clock_speed: 20MHz I2C component and ESP32 Camera component.i2c:
- id: cam_i2c
sda: GPIO14
scl: GPIO12
esp32_camera:
name: "OV3660 Camera"
i2c_id: cam_i2c
external_clock:
pin: GPIO27
frequency: 20MHz
data_pins: [GPIO32, GPIO35, GPIO34, GPIO5, GPIO39, GPIO18, GPIO36, GPIO19]
vsync_pin: GPIO22
href_pin: GPIO26
pixel_clock_pin: GPIO21
reset_pin: GPIO15 binary_sensor:
- platform: gpio
name: "Button"
pin:
number: GPIO37
inverted: true
output:
- platform: ledc
pin:
number: GPIO0
inverted: true
id: status_led
light:
- platform: monochromatic
output: status_led
name: "Status LED"
id: sled
restore_mode: RESTORE_DEFAULT_ON SAVE and INSTALL, and select Manual Download in the pop-up options.
Download button and select Factory Format to download the firmware.
CONNECT to connect the device.
INSTALL and select the previously compiled firmware for uploading.
INSTALL again to burn, and wait for the burning to complete.
Check it out -> CONFIGURE, following the pop-up steps to add the device to the specified area to complete the configuration.
Settings -> Device & services to view the device status. Click Add to add the device to Home Assistant.
Dashboard Example:
Click on the camera entity to view the real-time preview screen.