ESP32 Cam mit ESPHome in HA einbinden klappt nicht

Reinhard_33

New member
Hallo,
ich komme da leider überhaupt nicht weiter, wenn ich im ESPHome Addon auf installieren gehe,
kommt diese Meldung: "preparation failed: see what went wrong"
Und diese Ausgabe:
Code:
INFO ESPHome 2024.12.2
INFO Reading configuration /config/esphome/espcam1.yaml...
WARNING GPIO0 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
WARNING GPIO5 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Generating C++ source...
INFO Compiling app...
Processing espcam1 (board: esp32dev; framework: arduino; platform: platformio/espressif32@5.4.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- AsyncTCP-esphome @ 2.1.4
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.2.2
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- noise-c @ 0.1.6
Compiling .pioenvs/espcam1/src/esphome/components/api/api_connection.cpp.o
Compiling .pioenvs/espcam1/src/esphome/components/api/api_frame_helper.cpp.o
Compiling .pioenvs/espcam1/src/esphome/components/api/api_pb2.cpp.o
Compiling .pioenvs/espcam1/src/esphome/components/api/api_pb2_service.cpp.o
xtensa-esp32-elf-g++: error trying to exec 'as': execvp: No such file or directory
*** [.pioenvs/espcam1/src/esphome/components/api/api_pb2_service.cpp.o] Error 1
xtensa-esp32-elf-g++: error trying to exec 'as': execvp: No such file or directory
*** [.pioenvs/espcam1/src/esphome/components/api/api_frame_helper.cpp.o] Error 1
xtensa-esp32-elf-g++: error trying to exec 'as': execvp: No such file or directory
*** [.pioenvs/espcam1/src/esphome/components/api/api_connection.cpp.o] Error 1
xtensa-esp32-elf-g++: error trying to exec 'as': execvp: No such file or directory
*** [.pioenvs/espcam1/src/esphome/components/api/api_pb2.cpp.o] Error 1
========================= [FAILED] Took 19.69 seconds =========================

Kann da jemand was mit anfangen?

Das ist die yaml Datei:
YAML:
esphome:
  name: espcam1
  friendly_name: espcam1

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "Sr8WiLQHdxBiI08xjrwdOkToykiE8+wqWgeUY+9iAYw="

ota:
  - platform: esphome
    password: "e809cdc18dbb472f6dc5dff84d5d02dd"

wifi:
  ssid: "FRITZT"
  password: "5615001747253008"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Espcam1 Fallback Hotspot"
    password: "4KEcKoGbYIrX"

captive_portal:

esp32_camera:
  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

  # Image settings
  name: My Camera
  # ...

Ich weiß auch gar nicht, ob die Einträge für das Kameramodul korrekt sind, es
gibt ja eine Menge Ausführungen, auf meiner steht ESP32-CAM, HW-381, MB

Gruß Reinhard
 
Also das Problem hat sich erledigt, hab alles Mögliche versucht und dann ESPhone auf dem PC installiert.
Die Kamera ist geflasht und ich habe sie in Home Assistant eingebunden sehe aber kein Bild.
Da steht die Meldung: Kamera ist im Leerlauf. Ich hänge die aktuelle yaml Datei noch mal an,
seht ihr da irgendwelche Probleme:

YAML:
esphome:
  name: espcam1
  friendly_name: espcam1

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "Sr8WiLQHdxBiI08xjrwdOkToykiE8+wqWgeUY+9iAYw="

ota:
  - platform: esphome
    password: "e809cdc18dbb472f6dc5dff84d5d02dd"

wifi:
  ssid: "FRITZT"
  password: "561500174xxxxxx"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Espcam1 Fallback Hotspot"
    password: "4KEcKoGbYIrX"

captive_portal:

esp32_camera:
  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

  # Image settings
  name: My Camera
  resolution: 640x480
  jpeg_quality: 10
  max_framerate: 15 fps
  idle_framerate: 0.1 fps
 
Ich gebs auf, vielleicht ist sie defekt. Das steht im Log der Kamera. Wenn ich nach den Fehlern suche, dann finde ich zwar Einiges dazu, aber nicht wie das Problem gelöst werden kann.

Code:
INFO ESPHome 2025.1.0-dev
INFO Reading configuration /config/esphome/espcam1.yaml...
WARNING GPIO0 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
WARNING GPIO5 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Starting log output from 192.168.178.40 using esphome API
INFO Successfully connected to espcam1 @ 192.168.178.40 in 0.051s
INFO Successful handshake with espcam1 @ 192.168.178.40 in 0.076s
[23:16:58][I][app:100]: ESPHome version 2025.1.0-dev compiled on Jan 17 2025, 22:54:29
[23:16:58][C][wifi:600]: WiFi:
[23:16:58][C][wifi:428]:   Local MAC: 5C:01:3B:32:7A:80
[23:16:58][C][wifi:433]:   SSID: [redacted]
[23:16:58][C][wifi:436]:   IP Address: 192.168.178.40
[23:16:58][C][wifi:440]:   BSSID: [redacted]
[23:16:58][C][wifi:441]:   Hostname: 'espcam1'
[23:16:58][C][wifi:443]:   Signal strength: -49 dB ▂▄▆█
[23:16:58][C][wifi:447]:   Channel: 1
[23:16:58][C][wifi:448]:   Subnet: 255.255.255.0
[23:16:58][C][wifi:449]:   Gateway: 192.168.178.1
[23:16:58][C][wifi:450]:   DNS1: 192.168.178.1
[23:16:58][C][wifi:451]:   DNS2: 0.0.0.0
[23:16:58][C][logger:185]: Logger:
[23:16:58][C][logger:186]:   Level: DEBUG
[23:16:58][C][logger:188]:   Log Baud Rate: 115200
[23:16:58][C][logger:189]:   Hardware UART: UART0
[23:16:58][C][esp32_camera:048]: ESP32 Camera:
[23:16:58][C][esp32_camera:049]:   Name: My Camera
[23:16:58][C][esp32_camera:050]:   Internal: NO
[23:16:58][C][esp32_camera:052]:   Data Pins: D0:5 D1:18 D2:19 D3:21 D4:36 D5:39 D6:34 D7:35
[23:16:58][C][esp32_camera:053]:   VSYNC Pin: 25
[23:16:58][C][esp32_camera:054]:   HREF Pin: 23
[23:16:58][C][esp32_camera:055]:   Pixel Clock Pin: 22
[23:16:58][C][esp32_camera:056]:   External Clock: Pin:0 Frequency:20000000
[23:16:58][C][esp32_camera:060]:   I2C Pins: SDA:26 SCL:27
[23:16:58][C][esp32_camera:062]:   Reset Pin: -1
[23:16:58][C][esp32_camera:080]:   Resolution: 640x480 (VGA)
[23:16:58][E][esp32_camera:123]:   Setup Failed: ESP_ERR_NOT_SUPPORTED
[23:16:58][E][component:082]:   Component esp32_camera is marked FAILED
[23:16:58][C][psram:020]: PSRAM:
[23:16:58][C][psram:021]:   Available: YES
[23:16:58][C][psram:024]:   Size: 4095 KB
[23:16:58][C][captive_portal:089]: Captive Portal:
[23:16:58][C][mdns:116]: mDNS:
[23:16:58][C][mdns:117]:   Hostname: espcam1
[23:16:58][C][esphome.ota:073]: Over-The-Air updates:
[23:16:58][C][esphome.ota:074]:   Address: espcam1.local:3232
[23:16:58][C][esphome.ota:075]:   Version: 2
[23:16:58][C][esphome.ota:078]:   Password configured
[23:16:58][C][safe_mode:018]: Safe Mode:
[23:16:58][C][safe_mode:020]:   Boot considered successful after 60 seconds
[23:16:58][C][safe_mode:021]:   Invoke after 10 boot attempts
[23:16:58][C][safe_mode:023]:   Remain in safe mode for 300 seconds
[23:16:58][C][api:140]: API Server:
[23:16:58][C][api:141]:   Address: espcam1.local:6053
[23:16:58][C][api:143]:   Using noise encryption: YES
 

Zurzeit aktive Besucher

Keine Mitglieder online.

Letzte Anleitungen

Statistik des Forums

Themen
6.080
Beiträge
59.057
Mitglieder
6.111
Neuestes Mitglied
roica
Zurück
Oben