ESP32 camera standing idle / not giving an image

Hi,

I’m kindoff new to HA and just wanted to get a simple timelapse camera going for some plants I’m growing.

I installed the camera through the HA assisted addon, added the wifi + password and installed the information onto the camera. The flashlight is working, just not the camera.

What am I doing wrong?

EDIT: After trying to download the log, it started to take pictures, well, some sort of… Not really considering this a picture though.
2024-07-29 21_44_44-Overview – Home Assistant

esphome:
  name: kweek-espcamera
  friendly_name: Kweek_ESPCamera

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "78P0Dy5uKmPK8bqGg2lMeMoU0ECnNrY31ATJZ72phwM="

ota:
  - platform: esphome
    password: "ee62f1733a18b5f4f2c120a37f2f91d8"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Kweek-Espcamera Fallback Hotspot"
    password: "FtrVXiolftC3"

captive_portal:

# 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 ESP32-CAM 

# Flashlight
output:
  - platform: gpio
    pin: GPIO4
    id: gpio_4

## GPIO_4 is the flash light pin
light:
  - platform: binary
    output: gpio_4
    name: flashlight

Logs:

INFO ESPHome 2024.7.2
INFO Reading configuration /config/esphome/kweek-espcamera.yaml…
WARNING GPIO0 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See Frequently Asked Questions — ESPHome
WARNING GPIO5 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See Frequently Asked Questions — ESPHome
INFO Starting log output from 192.168.2.21 using esphome API
INFO Successfully connected to kweek-espcamera @ 192.168.2.21 in 0.019s
INFO Successful handshake with kweek-espcamera @ 192.168.2.21 in 0.070s
[21:46:22][I][app:100]: ESPHome version 2024.7.2 compiled on Jul 29 2024, 20:50:06
[21:46:22][C][wifi:599]: WiFi:
[21:46:22][C][wifi:427]: Local MAC: 08:A6:F7:48:95:78
[21:46:22][C][wifi:432]: SSID: ‘KPNCF3A96’[redacted]
[21:46:22][C][wifi:435]: IP Address: 192.168.2.21
[21:46:22][C][wifi:439]: BSSID: 4C:22:F3:CF:3A:93[redacted]
[21:46:22][C][wifi:440]: Hostname: ‘kweek-espcamera’
[21:46:22][C][wifi:442]: Signal strength: -54 dB ▂▄▆█
[21:46:22][C][wifi:446]: Channel: 1
[21:46:22][C][wifi:447]: Subnet: 255.255.255.0
[21:46:22][C][wifi:448]: Gateway: 192.168.2.254
[21:46:22][C][wifi:449]: DNS1: 192.168.2.254
[21:46:22][C][wifi:450]: DNS2: 0.0.0.0
[21:46:22][C][logger:185]: Logger:
[21:46:22][C][logger:186]: Level: DEBUG
[21:46:22][C][logger:188]: Log Baud Rate: 115200
[21:46:22][C][logger:189]: Hardware UART: UART0
[21:46:22][C][gpio.output:010]: GPIO Binary Output:
[21:46:22][C][gpio.output:011]: Pin: GPIO4
[21:46:22][C][light:103]: Light ‘flashlight’
[21:46:22][C][esp32_camera:048]: ESP32 Camera:
[21:46:22][C][esp32_camera:049]: Name: My ESP32-CAM
[21:46:22][C][esp32_camera:050]: Internal: NO
[21:46:22][C][esp32_camera:052]: Data Pins: D0:5 D1:18 D2:19 D3:21 D4:36 D5:39 D6:34 D7:35
[21:46:22][C][esp32_camera:053]: VSYNC Pin: 25
[21:46:22][C][esp32_camera:054]: HREF Pin: 23
[21:46:22][C][esp32_camera:055]: Pixel Clock Pin: 22
[21:46:22][C][esp32_camera:056]: External Clock: Pin:0 Frequency:20000000
[21:46:22][C][esp32_camera:060]: I2C Pins: SDA:26 SCL:27
[21:46:22][C][esp32_camera:062]: Reset Pin: -1
[21:46:22][C][esp32_camera:080]: Resolution: 640x480 (VGA)
[21:46:22][C][esp32_camera:129]: JPEG Quality: 10
[21:46:22][C][esp32_camera:131]: Contrast: 0
[21:46:22][C][esp32_camera:132]: Brightness: 0
[21:46:22][C][esp32_camera:133]: Saturation: 0
[21:46:22][C][esp32_camera:134]: Vertical Flip: ON
[21:46:22][C][esp32_camera:135]: Horizontal Mirror: ON
[21:46:22][C][esp32_camera:136]: Special Effect: 0
[21:46:22][C][esp32_camera:137]: White Balance Mode: 0
[21:46:22][C][esp32_camera:140]: Auto Exposure Control: 1
[21:46:22][C][esp32_camera:141]: Auto Exposure Control 2: 0
[21:46:22][C][esp32_camera:142]: Auto Exposure Level: 0
[21:46:22][C][esp32_camera:143]: Auto Exposure Value: 300
[21:46:22][C][esp32_camera:144]: AGC: 1
[21:46:22][C][esp32_camera:145]: AGC Gain: 0
[21:46:22][C][esp32_camera:146]: Gain Ceiling: 0
[21:46:22][C][esp32_camera:152]: Test Pattern: NO
[21:46:22][C][psram:020]: PSRAM:
[21:46:22][C][psram:021]: Available: YES
[21:46:22][C][psram:024]: Size: 4095 KB
[21:46:22][C][captive_portal:088]: Captive Portal:
[21:46:22][C][mdns:116]: mDNS:
[21:46:22][C][mdns:117]: Hostname: kweek-espcamera
[21:46:22][C][esphome.ota:073]: Over-The-Air updates:
[21:46:22][C][esphome.ota:074]: Address: kweek-espcamera.local:3232
[21:46:22][C][esphome.ota:075]: Version: 2
[21:46:22][C][esphome.ota:078]: Password configured
[21:46:22][C][safe_mode:018]: Safe Mode:
[21:46:22][C][safe_mode:020]: Boot considered successful after 60 seconds
[21:46:22][C][safe_mode:021]: Invoke after 10 boot attempts
[21:46:22][C][safe_mode:023]: Remain in safe mode for 300 seconds
[21:46:22][C][api:139]: API Server:
[21:46:22][C][api:140]: Address: kweek-espcamera.local:6053
[21:46:22][C][api:142]: Using noise encryption: YES
[21:46:29][D][esp32_camera:196]: Got Image: len=8899
[21:46:31][D][esp32_camera:196]: Got Image: len=8881
[21:46:39][D][esp32_camera:196]: Got Image: len=8916
[21:46:41][D][esp32_camera:196]: Got Image: len=8996
[21:46:49][D][esp32_camera:196]: Got Image: len=8912
[21:46:51][D][esp32_camera:196]: Got Image: len=8931

Edit: After a bit of tinkering, now this log happened:

INFO ESPHome 2024.7.2
INFO Reading configuration /config/esphome/kweek-espcamera.yaml...
WARNING GPIO0 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
WARNING GPIO5 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Starting log output from 192.168.2.21 using esphome API
INFO Successfully connected to kweek-espcamera @ 192.168.2.21 in 0.066s
INFO Successful handshake with kweek-espcamera @ 192.168.2.21 in 0.074s
[22:09:20][I][app:100]: ESPHome version 2024.7.2 compiled on Jul 29 2024, 20:50:06
[22:09:20][C][wifi:599]: WiFi:
[22:09:20][C][wifi:427]:   Local MAC: 08:A6:F7:48:95:78
[22:09:20][C][wifi:432]:   SSID: [redacted]
[22:09:20][C][wifi:435]:   IP Address: 192.168.2.21
[22:09:20][C][wifi:439]:   BSSID: [redacted]
[22:09:20][C][wifi:440]:   Hostname: 'kweek-espcamera'
[22:09:20][C][wifi:442]:   Signal strength: -59 dB ▂▄▆█
[22:09:20][C][wifi:446]:   Channel: 1
[22:09:20][C][wifi:447]:   Subnet: 255.255.255.0
[22:09:20][C][wifi:448]:   Gateway: 192.168.2.254
[22:09:20][C][wifi:449]:   DNS1: 192.168.2.254
[22:09:20][C][wifi:450]:   DNS2: 0.0.0.0
[22:09:20][C][logger:185]: Logger:
[22:09:20][C][logger:186]:   Level: DEBUG
[22:09:20][C][logger:188]:   Log Baud Rate: 115200
[22:09:20][C][logger:189]:   Hardware UART: UART0
[22:09:20][C][gpio.output:010]: GPIO Binary Output:
[22:09:20][C][gpio.output:011]:   Pin: GPIO4
[22:09:20][C][light:103]: Light 'flashlight'
[22:09:20][C][esp32_camera:048]: ESP32 Camera:
[22:09:20][C][esp32_camera:049]:   Name: My ESP32-CAM
[22:09:20][C][esp32_camera:050]:   Internal: NO
[22:09:20][C][esp32_camera:052]:   Data Pins: D0:5 D1:18 D2:19 D3:21 D4:36 D5:39 D6:34 D7:35
[22:09:20][C][esp32_camera:053]:   VSYNC Pin: 25
[22:09:20][C][esp32_camera:054]:   HREF Pin: 23
[22:09:20][C][esp32_camera:055]:   Pixel Clock Pin: 22
[22:09:20][C][esp32_camera:056]:   External Clock: Pin:0 Frequency:20000000
[22:09:20][C][esp32_camera:060]:   I2C Pins: SDA:26 SCL:27
[22:09:20][C][esp32_camera:062]:   Reset Pin: -1
[22:09:20][C][esp32_camera:080]:   Resolution: 640x480 (VGA)
[22:09:20][E][esp32_camera:123]:   Setup Failed: ERROR
[22:09:20][E][component:082]:   Component esp32_camera is marked FAILED
[22:09:20][C][psram:020]: PSRAM:
[22:09:20][C][psram:021]:   Available: YES
[22:09:20][C][psram:024]:   Size: 4095 KB
[22:09:20][C][captive_portal:088]: Captive Portal:
[22:09:20][C][mdns:116]: mDNS:
[22:09:20][C][mdns:117]:   Hostname: kweek-espcamera
[22:09:20][C][esphome.ota:073]: Over-The-Air updates:
[22:09:20][C][esphome.ota:074]:   Address: kweek-espcamera.local:3232
[22:09:20][C][esphome.ota:075]:   Version: 2
[22:09:20][C][esphome.ota:078]:   Password configured
[22:09:20][C][safe_mode:018]: Safe Mode:
[22:09:20][C][safe_mode:020]:   Boot considered successful after 60 seconds
[22:09:20][C][safe_mode:021]:   Invoke after 10 boot attempts
[22:09:20][C][safe_mode:023]:   Remain in safe mode for 300 seconds
[22:09:20][C][api:139]: API Server:
[22:09:20][C][api:140]:   Address: kweek-espcamera.local:6053
[22:09:20][C][api:142]:   Using noise encryption: YES