ESP32-CAM AI-Thinker trying to go online

Hello ESPHome Experts :slight_smile:

I’m using the ESP32-CAM AI-Thinker and did an Arduino sketch for an IP-camera. It is working fine. HA-Integration for stream and snapshot was easy.

Now I tried an ESPHome-integration with exactly the same camera and this YAML:

esphome:
  name: esp-camera-2
  friendly_name: ESP Camera 2

esp32:
  board: esp32dev
  framework:
    type: arduino

psram:

logger:

api:
  encryption:
    key: „“

ota:
  - platform: esphome
    password: ""

wifi:
  ssid: ""
  password: ""
  ap:
    ssid: "Esp-Cam2 Fallback Hotspot"
    password: ""

captive_portal:

esp32_camera_web_server:
  - port: 80
    mode: stream
  - port: 81
    mode: snapshot

esp32_camera:
  name: "ESP Camera 2"
  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  
  #resolution: 1024x768
  resolution: 800X600
  jpeg_quality: 20
  max_framerate: 10 fps
  brightness: 2
  aec2: True
  ae_level: 2
  agc_gain_ceiling: 4X
  vertical_flip: True
  horizontal_mirror: False
  frame_buffer_count: 1

switch:
  - platform: restart
    name: "esp-cam2 Restart"

sensor:
  - platform: uptime
    name: "ESP-CAM2 Uptime"
  - platform: wifi_signal
    name: "ESP-CAM2 WiFi Signal"
    update_interval: 60s

binary_sensor:
  - platform: status
    name: "ESP-CAM2 Status"
 

There are two error messages in the log:

[21:43:52.500][E][esp32_camera:131]:   Setup Failed: ESP_ERR_NOT_SUPPORTED
[21:43:52.513][E][component:226]:   esp32_camera is marked FAILED: unspecified

and

[21:43:52.673][E][esp32_camera_web_server:101]:   Setup Failed
[21:43:52.678][E][component:226]:   esp32_camera_web_server is marked FAILED: unspecified

The switch, the sensor and binary sensor occur in the dashboard. But there is no web server output (as the log says) and therefore not picture on the IP-address.

I tried to figure it out, searching this platform, did ask the AI … without success.

As I am not a hero at working with ESPHome, I got stuck now.

I’m asking for your advice and hints.

Kind regards
Mike