I’ve been trying to get a few ESP32 cameras up and running in key areas. While I get a picture, it seems mostly static (not changing) and the camera is ALWAYS listed as idle. I can see in the log that frames are sent “as expected” but I don’t see updates of the image often when viewing it through HA. II don’t see parameters to tell what area to look at if there is a way to have the camera report motion/activity automatically. Perhaps someone can see what’s wrong here?
esphome:
name: esp32cam
esp32:
board: esp32cam
framework:
type: arduino
output:
- platform: ledc
pin: GPIO4
id: gpio_4
channel: 2
light:
- platform: monochromatic
output: gpio_4
name: Flash/PWM Light
restore_mode: ALWAYS_OFF
# Enable logging
logger:
# Enable Home Assistant API
api:
password: "xxxxxxxxxxxxxxxx"
ota:
password: "xxxxxxxxxxxxx"
wifi:
ssid: "xxxxxxxxxxxx"
password: "xxxxxxxxxxxxxxxxx"
fast_connect: on
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32Cam Fallback Hotspot"
password: "xxxxxxxxxxxxxxxx"
captive_portal:
time:
- platform: homeassistant
id: homeassistant_time
sensor:
- platform: wifi_signal
id: signal_strength
name: "Wifi Signal Strength"
update_interval: 60s
# Example configuration entry
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
resolution: 1280x1024
max_framerate: 10 fps
idle_framerate: 0.2 fps
jpeg_quality: 10
wb_mode: home
agc_gain_ceiling: 128x
vertical_flip: false
I know, I didn’t add secrets here - need to fix that. I’ve tried to experiment with picture quality parameters, changed the idle and max framerates etc. but it’s clear none of these have any effect on showing up as idle? Here’s what HA sees - the event of going idle happens the moment the camera comes online, and I haven’t seen it change yet.
When I view the camera/video feed I see mostly a static image, and even rapidly moving the camera doesn’t change the view. If I close and then re-open the image window I may see the change, or I may see a picture that’s 10 seconds old.
I’ve run out of ideas and wondering if I missed something? I would expect to see “moving pictures” even if just at a low frame-rate, and if the ESP32-CAM can detect motion/changes see that reflected so I can use that in automations. Am I expecting too much out of the ESP32-CAM?