Skip to content

Instantly share code, notes, and snippets.

@Sergi0Martin
Last active September 3, 2023 00:15
Show Gist options
  • Save Sergi0Martin/fc0f8bdc85fb962d688b8d9c9a288d8f to your computer and use it in GitHub Desktop.
Save Sergi0Martin/fc0f8bdc85fb962d688b8d9c9a288d8f to your computer and use it in GitHub Desktop.
ESPHome config for ESP32-CAM
esphome:
name: camera
friendly_name: camera
esp32:
board: esp32cam
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: !secret encryption_key
ota:
password: "f6c8e6e5f7e9b418a38aef17874d5da1"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32-Cam Fallback Hotspot"
password: "ShjJdFB3AESp"
captive_portal:
esp32_camera_web_server:
- port: 8080
mode: stream
- port: 8081
mode: snapshot
button:
- platform: restart
name: "Restart button"
# ESP32-CAM
esp32_camera:
name: 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
# resolution: 320x240
jpeg_quality: 10
vertical_flip: False
horizontal_mirror: False
max_framerate: 5 fps
idle_framerate: 0 fps
# Camera light
output:
- platform: gpio
pin: GPIO4
id: gpio_4
light:
- platform: binary
output: gpio_4
name: Camera light
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment