Created
December 7, 2024 10:12
-
-
Save aver-ua/963560ba51b5117efe0876c80acc90c9 to your computer and use it in GitHub Desktop.
ESPHome config for ESP32-CAM camera module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| esphome: | |
| name: esp32-cam-1 | |
| friendly_name: esp32-cam-1 | |
| esp32: | |
| board: esp32dev | |
| framework: | |
| type: arduino | |
| # Enable logging | |
| logger: | |
| # Enable Home Assistant API | |
| api: | |
| encryption: | |
| key: !secret api_encryption_key | |
| ota: | |
| id: "esp32_cam_1_ota" | |
| platform: esphome | |
| password: !secret ota_password | |
| wifi: | |
| ssid: !secret wifi_ssid | |
| password: !secret wifi_password | |
| # Enable fallback hotspot (captive portal) in case wifi connection fails | |
| ap: | |
| ssid: "Esp32-Cam-1 Fallback" | |
| password: !secret ap_password | |
| esp32_camera: | |
| name: "ESP Cam 1" | |
| 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 | |
| resolution: 800x600 | |
| jpeg_quality: 10 # max. 63 | |
| max_framerate: 25 fps | |
| idle_framerate: 0.2 fps | |
| vertical_flip: false | |
| horizontal_mirror: false | |
| brightness: 2 # -2 to 2 | |
| contrast: 1 # -2 to 2 | |
| special_effect: none | |
| # exposure settings | |
| aec_mode: auto | |
| aec2: false | |
| ae_level: 0 | |
| aec_value: 300 | |
| # gain settings | |
| agc_mode: auto | |
| agc_gain_ceiling: 2x | |
| agc_value: 0 | |
| # white balance setting | |
| wb_mode: auto | |
| esp32_camera_web_server: | |
| - port: 8080 | |
| mode: stream | |
| - port: 8081 | |
| mode: snapshot | |
| switch: | |
| - platform: gpio | |
| name: "Flash LED" | |
| pin: 4 | |
| - platform: gpio | |
| pin: | |
| number: 33 | |
| inverted: true | |
| name: "Small LED" | |
| - platform: restart | |
| name: "Restart" | |
| sensor: | |
| - platform: uptime | |
| name: "Uptime" | |
| entity_category: "diagnostic" | |
| device_class: duration | |
| update_interval: 60s | |
| - platform: wifi_signal | |
| name: "RSSI" | |
| id: wifi_rssi | |
| entity_category: "diagnostic" | |
| update_interval: 60s | |
| - platform: internal_temperature | |
| name: "ESP Temperature" | |
| update_interval: 30s | |
| #web_server: | |
| # port: 80 | |
| # ota: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment