esphome:
  name: esp32-cam
  friendly_name: ESP32 Cam

esp32:
  board: esp-wrover-kit
  framework:
    type: arduino
    version: recommended

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "bk9FKXwQuFxsnHq8e6xhTqagOCF1IiHXlPtn+F5VhC8="

ota:
  platform: esphome
  password: !secret ota

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

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Camera Fallback Hotspot"
    password: "wI8KxJ2mpeN1"


esp32_camera:
  external_clock:
    pin: GPIO21
    frequency: 20MHz
  i2c_pins:
    sda: GPIO26
    scl: GPIO27
  data_pins: [GPIO4, GPIO5, GPIO18, GPIO19, GPIO36, GPIO39, GPIO34, GPIO35]
  vsync_pin: GPIO25
  href_pin: GPIO23
  pixel_clock_pin: GPIO22

  # Image settings
  name: Wrover Camera    
  max_framerate: 15 fps
  idle_framerate: 1.0 fps
  resolution: 800x600
  horizontal_mirror: false
  vertical_flip: false