-
Notifications
You must be signed in to change notification settings - Fork 0
/
esp32_cam.yaml
82 lines (71 loc) · 1.43 KB
/
esp32_cam.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
esphome:
name: esp32_cam_new
esp32:
framework:
type:
arduino
# platform_version: 6.0.1
board: esp32cam
time:
- platform: sntp
id: sntp_time
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: on
reboot_timeout: 0s
power_save_mode: high
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "${name} Fallback Hotspot"
password: !secret fallback_password
captive_portal:
# Enable web server
web_server:
port: 80
auth:
username: !secret web_server_user
password: !secret web_server_password
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: !secret hass_key
ota:
platform: esphome
password: !secret hass_password
esp32_camera:
name: 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
power_down_pin: GPIO32
resolution: 800x600
jpeg_quality: 20
max_framerate: 10fps
esp32_camera_web_server:
- port: 8080
mode: stream
- port: 8081
mode: snapshot
output:
- platform: gpio
pin: GPIO2
id: gpio_2
light:
- platform: binary
output: gpio_2
name: blue led
id: camera_flash
sensor:
- platform: wifi_signal
name: "WiFi Signal Sensor"
update_interval: 60s