Passer au contenu principal

Configurer son module esp32Cam

esphome:
  name: esp32cam-fablab
  friendly_name: ESP32 CAM Fablab

esp32:
  board: esp32cam
  framework:
    type: arduino
psram:


# Logs
logger:

# API Home Assistant
api:
  encryption:
    key: "Votre clé API qui sert à communiquer avec le logiciel ESPHome"

# OTA
ota:
  - platform: esphome
    password: "motdepasseota"

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

  ap:
    ssid: "ESP32CAM-Secours"
    password: "12345678"

captive_portal:

# Web interface optionnelle
web_server:
  port: 80

# Configure les réglages de la caméra pour l'interface web
#esp32_camera_web_server:
#  - port: 8080
#    mode: stream


# Flash LED
output:
  - platform: gpio
    pin: GPIO4
    id: flash_led

light:
  - platform: binary
    name: "ESP32 CAM Flash"
    output: flash_led

# Caméra
esp32_camera:
  name: "Camera Fablab"

  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: 1280x1024
  jpeg_quality: 10

  max_framerate: 15 fps
  idle_framerate: 0.2 fps

  vertical_flip: false
  horizontal_mirror: false

# Signal WiFi
sensor:
  - platform: wifi_signal
    name: "ESP32 CAM WiFi Signal"
    update_interval: 60s

# Redémarrage
button:
  - platform: restart
    name: "ESP32 CAM Restart"