78 lines
1.6 KiB
YAML
78 lines
1.6 KiB
YAML
esphome:
|
|
name: esp32_cam1
|
|
platform: ESP32
|
|
board: esp32cam
|
|
|
|
wifi:
|
|
ssid: "Meneely"
|
|
password: "punxsutawney1"
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: "Purple Fallback Hotspot"
|
|
password: "QNWj7LmaNoD6"
|
|
manual_ip:
|
|
# Set this to the IP of the ESP
|
|
static_ip: 192.168.87.17
|
|
# Set this to the IP address of the router. Often ends with .1
|
|
gateway: 192.168.86.1
|
|
# The subnet of the network. 255.255.255.0 works for most home networks.
|
|
subnet: 255.255.254.0
|
|
|
|
captive_portal:
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
|
|
ota:
|
|
|
|
esp32_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
|
|
|
|
# Image settings
|
|
name: ESP32_Cam1
|
|
resolution: 640x480
|
|
jpeg_quality: 20
|
|
max_framerate: 0.5 fps
|
|
idle_framerate: 0.05 fps
|
|
|
|
i2c:
|
|
- id: bus_a
|
|
sda: GPIO03
|
|
scl: GPIO01
|
|
scan: True
|
|
|
|
|
|
sensor:
|
|
# - platform: bme280
|
|
# temperature:
|
|
# name: "ESP32_Cam1_BME280 Temperature"
|
|
# oversampling: 16x
|
|
# pressure:
|
|
# name: "ESP32_Cam1_BME280 Pressure"
|
|
# humidity:
|
|
# name: "ESP32_Cam1_BME280 Humidity"
|
|
# address: 0x76
|
|
# update_interval: 60s
|
|
# i2c_id: bus_a
|
|
- platform: bh1750
|
|
name: "ESP32_Cam1_BH1750 Illuminance"
|
|
address: 0x23
|
|
measurement_time: 69
|
|
update_interval: 60s
|
|
i2c_id: bus_a
|
|
|