|
@@ -0,0 +1,102 @@
|
|
|
|
|
+substitutions:
|
|
|
|
|
+ devicename: gf-gate-cam-l
|
|
|
|
|
+ low_devicename: gf_gate_cam_l
|
|
|
|
|
+ upper_devicename: GF Gate CAM L
|
|
|
|
|
+
|
|
|
|
|
+esphome:
|
|
|
|
|
+ name: $devicename
|
|
|
|
|
+ friendly_name: $upper_devicename
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+esp32:
|
|
|
|
|
+ board: esp32cam
|
|
|
|
|
+ framework:
|
|
|
|
|
+ # type: esp-idf
|
|
|
|
|
+ type: arduino
|
|
|
|
|
+ version: 2.0.5
|
|
|
|
|
+
|
|
|
|
|
+web_server:
|
|
|
|
|
+ port: 80
|
|
|
|
|
+
|
|
|
|
|
+button:
|
|
|
|
|
+ - platform: restart
|
|
|
|
|
+ name: "${upper_devicename} Restart"
|
|
|
|
|
+
|
|
|
|
|
+logger:
|
|
|
|
|
+api:
|
|
|
|
|
+ encryption:
|
|
|
|
|
+ key: "ejeMnlF5M60w/yuYwAWn/kIBz701xLwVkUGf9iN8uLA="
|
|
|
|
|
+
|
|
|
|
|
+ota:
|
|
|
|
|
+ password: "73cea25506d095b4970dedc41e2399fb"
|
|
|
|
|
+
|
|
|
|
|
+wifi:
|
|
|
|
|
+ ssid: !secret cctv_ssid
|
|
|
|
|
+ password: !secret cctv_password
|
|
|
|
|
+ # networks: !secret wifi_networks
|
|
|
|
|
+ domain: .cctv.int.mmax.cloud
|
|
|
|
|
+ fast_connect: True
|
|
|
|
|
+ power_save_mode: none
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+esp32_camera:
|
|
|
|
|
+ external_clock:
|
|
|
|
|
+ pin: GPIO0
|
|
|
|
|
+ frequency: 8 MHz
|
|
|
|
|
+ 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
|
|
|
|
|
+ test_pattern: False
|
|
|
|
|
+ resolution: UXGA
|
|
|
|
|
+ name: ${upper_devicename}
|
|
|
|
|
+ max_framerate: 5 fps
|
|
|
|
|
+ idle_framerate: 0.1 fps
|
|
|
|
|
+ jpeg_quality: 20
|
|
|
|
|
+ aec2: true
|
|
|
|
|
+
|
|
|
|
|
+esp32_camera_web_server:
|
|
|
|
|
+ - port: 8080
|
|
|
|
|
+ mode: stream
|
|
|
|
|
+ - port: 8081
|
|
|
|
|
+ mode: snapshot
|
|
|
|
|
+
|
|
|
|
|
+#esp32_ble_beacon:
|
|
|
|
|
+# type: iBeacon
|
|
|
|
|
+# uuid: '2e69ba96-feed-2208-9078-7deb9d62e69c'
|
|
|
|
|
+
|
|
|
|
|
+output:
|
|
|
|
|
+ - platform: ledc
|
|
|
|
|
+ pin: GPIO4
|
|
|
|
|
+ channel: 2 # channel 1 is used for esp32_camera
|
|
|
|
|
+ id: ${low_devicename}_led
|
|
|
|
|
+# red status light
|
|
|
|
|
+ - platform: gpio
|
|
|
|
|
+ pin:
|
|
|
|
|
+ number: GPIO33
|
|
|
|
|
+ inverted: True
|
|
|
|
|
+ id: ${low_devicename}_status_led
|
|
|
|
|
+light:
|
|
|
|
|
+ - platform: monochromatic
|
|
|
|
|
+ output: ${low_devicename}_led
|
|
|
|
|
+ name: "${upper_devicename} light"
|
|
|
|
|
+ - platform: binary
|
|
|
|
|
+ output: ${low_devicename}_status_led
|
|
|
|
|
+ name: "${upper_devicename} status led"
|
|
|
|
|
+
|
|
|
|
|
+sensor:
|
|
|
|
|
+ - platform: wifi_signal
|
|
|
|
|
+ name: "${upper_devicename} WiFi Signal"
|
|
|
|
|
+ id: ${low_devicename}_wifi_signal
|
|
|
|
|
+
|
|
|
|
|
+binary_sensor:
|
|
|
|
|
+ - platform: status
|
|
|
|
|
+ name: "${upper_devicename} status"
|
|
|
|
|
+
|
|
|
|
|
+text_sensor:
|
|
|
|
|
+ - platform: version
|
|
|
|
|
+ name: ${upper_devicename} Version
|