83 lines
1.4 KiB
YAML
83 lines
1.4 KiB
YAML
substitutions:
|
|
device_name: declan-a1-camera
|
|
friendly_name: "Declan's A1 Camera"
|
|
|
|
esphome:
|
|
name: ${device_name}
|
|
friendly_name: ${friendly_name}
|
|
|
|
esp32:
|
|
board: esp32dev
|
|
framework:
|
|
type: esp-idf
|
|
#cpu_frequency: 240MHZ
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
encryption:
|
|
key: !secret api_encryption_key
|
|
|
|
ota:
|
|
- platform: esphome
|
|
password: !secret ota_password
|
|
|
|
wifi:
|
|
ssid: !secret wifi_iot_ssid
|
|
password: !secret wifi_password
|
|
ap:
|
|
ssid: "${friendly_name} Fallback"
|
|
password: !secret fallback_password
|
|
|
|
web_server:
|
|
port: 80
|
|
|
|
captive_portal:
|
|
|
|
i2c:
|
|
- id: camera_i2c
|
|
sda: GPIO26
|
|
scl: GPIO27
|
|
|
|
psram:
|
|
mode: quad
|
|
speed: 80MHz
|
|
|
|
esp32_camera:
|
|
external_clock:
|
|
pin: GPIO0
|
|
frequency: 20MHz
|
|
i2c_id: camera_i2c
|
|
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: 640X480
|
|
jpeg_quality: 20
|
|
vertical_flip: False
|
|
horizontal_mirror: False
|
|
max_framerate: 20 fps
|
|
idle_framerate: 0.05 fps
|
|
|
|
# Image settings
|
|
name: ${device_name}
|
|
#brightness: 1
|
|
#contrast: 0
|
|
# agc_gain_ceiling: 2X
|
|
# agc_mode: MANUAL
|
|
# agc_value: 5
|
|
# ...
|
|
|
|
esp32_camera_web_server:
|
|
- port: 8080
|
|
mode: STREAM
|
|
- port: 8081
|
|
mode: SNAPSHOT
|
|
|
|
switch:
|
|
- platform: gpio
|
|
name: "${device_name}-flash"
|
|
pin: 4 |