From 6985991d3ad98589a3a8f7e1dc012f605e495cb3 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Sat, 20 Jan 2024 00:04:45 +0100 Subject: [PATCH] 1st working esp32-cam implementation. --- esphome/kamera-wohnzimmer.yaml | 77 ++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 esphome/kamera-wohnzimmer.yaml diff --git a/esphome/kamera-wohnzimmer.yaml b/esphome/kamera-wohnzimmer.yaml new file mode 100644 index 0000000..f77d364 --- /dev/null +++ b/esphome/kamera-wohnzimmer.yaml @@ -0,0 +1,77 @@ +substitutions: + name: kamera-wohnzimmer + friendly_name: Kamera Wohnzimmer + +esphome: + name: ${name} + friendly_name: ${friendly_name} + name_add_mac_suffix: false + project: + name: sensor.camera + version: "1.0" + min_version: 2022.1.0 + +esp32: + board: esp32dev + framework: + type: arduino + +wifi: + ssid: "Voltage-legacy" + password: !secret voltage_legacy_psk + use_address: ${name}.home + power_save_mode: high + fast_connect: on + + # Enable fallback hotspot (captive portal) in case wifi connection fails + ap: + ssid: "Cam Wohnzimmer Fallback Hotspot" + password: !secret fallback_psk + +captive_portal: + +# Enable logging +logger: + +# Enable Home Assistant API +api: + encryption: + key: !secret apikey + +ota: + password: !secret ota + +# Camera +esp32_camera: + name: ${friendly_name} + 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: SVGA + max_framerate: 24 fps + idle_framerate: 0.2 fps + jpeg_quality: 30 + vertical_flip: true + horizontal_mirror: true + +# Flash LED +output: +- platform: ledc + pin: GPIO4 + id: flash + channel: 2 + +# Define RGB mode for LED +light: + - platform: monochromatic + id: flashlight + name: "Blitzlicht" + output: flash