Advertisement
Flame-Soulis

ESP32-CAM ESPHome YAML

Nov 18th, 2024
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.00 KB | None | 0 0
  1. substitutions:
  2.   name: esphome-web-252354
  3.   friendly_name: ESPHome Bedroom Cam
  4.   camera_name: Primary Camera
  5.  
  6. esphome:
  7.   name: ${name}
  8.   friendly_name: ${friendly_name}
  9.   min_version: 2024.6.0
  10.   name_add_mac_suffix: false
  11.   project:
  12.     name: esphome.web
  13.     version: dev
  14.  
  15. esp32:
  16.   board: esp32dev
  17.   framework:
  18.     type: arduino
  19.  
  20. # Enable logging
  21. logger:
  22. # Enable Home Assistant API
  23. api:
  24. # Allow Over-The-Air updates
  25. ota:
  26. - platform: esphome
  27.  
  28. # Allow provisioning Wi-Fi via serial
  29. improv_serial:
  30. wifi:
  31.  # Set up a wifi access point
  32.   ap: {}
  33.   ssid: !secret wifi_ssid
  34.   password: !secret wifi_password
  35.   output_power: 10dB
  36.   reboot_timeout: 3min
  37.   manual_ip:
  38.     static_ip: 192.168.2.212
  39.     gateway: 192.168.2.1
  40.     subnet: 255.255.255.0
  41.  
  42. # In combination with the `ap` this allows the user
  43. # to provision wifi credentials to the device via WiFi AP.
  44. captive_portal:
  45. dashboard_import:
  46.   package_import_url: github://esphome/example-configs/esphome-web/esp32.yaml@main
  47.   import_full_config: true
  48.  
  49. # Sets up Bluetooth LE (Only on ESP32) to allow the user
  50. # to provision wifi credentials to the device.
  51. esp32_improv:
  52.   authorizer: none
  53.  
  54. # To have a "next url" for improv serial
  55. web_server:
  56. switch:
  57.   - platform: gpio
  58.     name: "${camera_name} flash"
  59.     pin: 4
  60.     #inverted: True
  61.   - platform: restart
  62.     name: "${name} - Restart"
  63.     id: restart_switch
  64.  
  65. esp32_camera:
  66.   name: "${camera_name}"
  67.   external_clock:
  68.     pin: GPIO0
  69.     frequency: 20MHz
  70.   i2c_pins:
  71.     sda: GPIO26
  72.     scl: GPIO27
  73.   data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
  74.   vsync_pin: GPIO25
  75.   href_pin: GPIO23
  76.   pixel_clock_pin: GPIO22
  77.   power_down_pin: GPIO32
  78.   # Image settings
  79.   max_framerate: 5 fps    # default: 10 fps, max 60
  80.   idle_framerate: 0.1 fps # default: 0.1 fps - framerate for 'picture' in HA dashboard
  81.   resolution: 640x480     # default: 640x480 (VGA) - higher res requires more memory
  82.   jpeg_quality: 30        # 10 (best) to 63 (worst)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement