forked from phiten/esphome_custom_components
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-esp-cam.yaml
More file actions
96 lines (81 loc) · 1.86 KB
/
example-esp-cam.yaml
File metadata and controls
96 lines (81 loc) · 1.86 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
esphome:
name: esp-cam
friendly_name: ESP CAM
# libraries:
# - esp32-camera=https://github.com/espressif/esp32-camera.git#v2.0.15
esp32:
# 因esphome中对ESP32-s3主板名称支持不全,需要自己测试哪款主板型号适合自己比如我的n16r8
board: esp32s3box
framework:
type: arduino
variant: esp32s3
flash_size: 16MB
psram:
mode: octal
speed: 80MHz
# Enable logging
logger:
level: NONE
baud_rate: 0
# Enable Home Assistant API
api:
encryption:
key: "BH7YYy8txrxIRy7GN2Qn4k5rwjuFbQjcAw5RFIs27uk="
ota:
- platform: esphome
password: "a5319aaaf9046719da45cc4c2dc3ae97"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp-Cam Fallback Hotspot"
password: "12345678"
captive_portal:
# psram:
# mode: octal
# speed: 40MHz
external_components:
- source:
type: git
url: https://github.com/miiky-ning/esphome_custom_components
components: [ esp32_camera ]
esp32_camera:
name: Wash Room Cam
external_clock:
pin: GPIO15
frequency: 20MHz
i2c_pins:
sda: GPIO4
scl: GPIO5
data_pins: [GPIO11, GPIO9, GPIO8, GPIO10, GPIO12, GPIO18, GPIO17, GPIO16]
vsync_pin: GPIO6
href_pin: GPIO7
pixel_clock_pin: GPIO13
resolution: 1920x1080
max_framerate: 15fps
jpeg_quality: 10
contrast: 0 # 对比度
brightness: 2 # 亮度
saturation: 2 # 饱和度
ae_level: 2 # 曝光级别
agc_gain_ceiling: 4X
wb_mode: OFFICE
vertical_flip: false
horizontal_mirror: true
esp32_camera_web_server:
- port: 8080
mode: stream
button:
- platform: factory_reset
name: Restart with Factory Default Settings
debug:
update_interval: 10s
# text_sensor:
# - platform: debug
# device:
# name: "Device Info"
sensor:
- platform: debug
psram:
name: "Free PSRAM"