# Esp32-cam inactif

**URL:** <https://forum.hacf.fr/t/esp32-cam-inactif/55732>\
**Category:** Entraide Home Assistant\
**Tags:** esp32cam, aide\
**Created:** [Janvier 12, 2025, 3:14 UTC](https://forum.hacf.fr/t/esp32-cam-inactif/55732 "2025-01-12T15:14:10Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Jaggana](https://forum.hacf.fr/user_avatar/forum.hacf.fr/jaggana/32/101941_2.png) [@Jaggana](https://forum.hacf.fr/u/Jaggana)\
**Post date:** [Avril 18, 2025, 8:45 UTC](https://forum.hacf.fr/t/esp32-cam-inactif/55732/21 "2025-04-18T08:45:24Z")

</div>

Bonjour,

Je débute dans le monde de Home Assistant et je rencontre le même problème avec un ESP32-CAM AI Thinker `https://fr.aliexpress.com/item/1005006194319413.html` : `docs.platformio.org/en/latest/boards/espressif32/esp32cam.html`

J'ai trouvé la définition des PINs `https://randomnerdtutorials.com/esp32-cam-ai-thinker-pinout/` (même si cela ne m'aide pas trop je dois avouer)

 ![image](https://forum.hacf.fr/uploads/default/original/3X/f/e/fe589687c09598905ed91b31be3da934605dd6e0.png)

Je me suis inspiré de l'exemple YAML pour Ai-Thinker Camera :

> **yaml**
>
> esphome:  
> name: esp32\_cam\_1  
> platformio\_options:  
> board\_build.f\_cpu: 240000000L
> 
> esp32:  
> board: esp32cam  
> framework:  
> type: arduino
> 
> # Enable logging
> 
> logger:
> 
> # Enable Home Assistant API
> 
> api:
> 
> # OTA configuration
> 
> ota:  
> platform: esphome
> 
> wifi:  
> ssid: "xxxxxxxxxxxxx"  
> password: "yyyyyyyyyyyyyyy"
> 
> # Camera configuration
> 
> esp32\_camera:  
> name: "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  
> resolution: 640x480  
> jpeg\_quality: 10
> 
> # Enable the web server to view the camera feed
> 
> web\_server:  
> port: 80
> 
> # Enable the RTSP server
> 
> esp32\_camera\_web\_server:
> 
> - port: 8080  
> mode: stream
> - port: 8081  
> mode: snapshot

Lorsque je flash par Wi-Fi j'ai des erreurs :

```auto
[10:41:56][C][esp32_camera:080]: Resolution: 640x480 (VGA)
[10:41:56][E][esp32_camera:123]: Setup Failed: ESP_ERR_NOT_SUPPORTED
[10:41:56][E][component:082]: Component esp32_camera is marked FAILED: 
[09:37:11][C][esp32_camera_web_server:088]: ESP32 Camera Web Server:
[09:37:11][C][esp32_camera_web_server:089]: Port: 8080
[09:37:11][C][esp32_camera_web_server:091]: Mode: stream
[09:37:11][E][esp32_camera_web_server:097]: Setup Failed
[09:37:11][E][component:082]: Component esp32_camera_web_server is marked FAILED: 
[09:37:11][C][esp32_camera_web_server:088]: ESP32 Camera Web Server:
[09:37:11][C][esp32_camera_web_server:089]: Port: 8081
[09:37:11][C][esp32_camera_web_server:093]: Mode: snapshot
[09:37:11][E][esp32_camera_web_server:097]: Setup Failed
[09:37:11][E][component:082]: Component esp32_camera_web_server is marked FAILED: 

```

Et bien évidemment je n'arrive pas à capture de stream, la CAM est bien sur mon réseau, je la ping et j'accède à l'interface web mais c'est tout, en spécifiant les ports 8080 et 8081 aucune réponse.

 ![image](https://forum.hacf.fr/uploads/default/original/3X/1/c/1ca846b42a7bf17ae036555a37534b82c3ce8692.png)

---

<div class="post-metadata">

**Author:** ![Bob](https://forum.hacf.fr/user_avatar/forum.hacf.fr/bob/32/64908_2.png) [@Bob](https://forum.hacf.fr/u/Bob)\
**Post date:** [Avril 18, 2025, 5:21 UTC](https://forum.hacf.fr/t/esp32-cam-inactif/55732/22 "2025-04-18T17:21:58Z")

</div>

IPCAMERA:8080 ne donne rien ?  
pas facile de voir ta conf yaml puisque tu n'as pas formaté le code sur le forum:  
Il te manque quelque chose en effet:

 ![image](https://forum.hacf.fr/uploads/default/original/3X/6/1/61c8a121f6d61db8672626911cb83a8f795e3b2e.png)

Un exemple chez moi:

```auto
esphome:
  name: espcam32e
  friendly_name: Espcam32E-Exterieur

esp32:
  board: esp32dev
  framework:
    type: arduino
      
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  manual_ip:
    static_ip: 192.168.1.21
    gateway: 192.168.1.254
    subnet: 255.255.255.0

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

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "RurKVAmnWPOTOPRFlx8exxxxxxS8trmagQIbYmcdGsM="

ota:
  - platform: esphome
    password: "71c47807bxxxxxx22f5165737ab894a1"

time:
  - platform: sntp
    id: sntp_time
    timezone: Europe/Paris
    
web_server:
  port: 80

binary_sensor:
  - platform: status
    name: "Espcam32e Status"

sensor:
  - platform: uptime
    id: uptime_seconds
    name: "Uptime Sensor"
    update_interval: 60s
    unit_of_measurement: s
    accuracy_decimals: 0
    force_update: false
    icon: mdi:timer
    internal: True # Hide to HA
  - platform: wifi_signal
    name: "EspCam32e WiFi Signal Sensor"
    update_interval: 5s
    
esp32_camera:
  name: CameraExterieur
  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
  test_pattern: false
  vertical_flip: false
  horizontal_mirror: false
  resolution: 1600x1200
  max_framerate: 10 fps
  idle_framerate: 0.1 fps
  
output:
  # Register the LED as a dimmable output ....
  - platform: ledc
    id: espcam32e_led
    pin: GPIO4
    channel: 2
    inverted: false

light: 
  # ... and then make a light out of it.
  - platform: monochromatic
    name: "Espcam32e LED"
    output: espcam32e_led

esp32_camera_web_server:
  - port: 8080
    mode: stream
  - port: 8081
    mode: snapshot

```

Bob

---

<div class="post-metadata">

**Author:** ![Jaggana](https://forum.hacf.fr/user_avatar/forum.hacf.fr/jaggana/32/101941_2.png) [@Jaggana](https://forum.hacf.fr/u/Jaggana)\
**Post date:** [Avril 24, 2025, 1:30 UTC](https://forum.hacf.fr/t/esp32-cam-inactif/55732/23 "2025-04-24T13:30:38Z")

</div>

Non rien.  
Visiblement la caméra était de très mauvaise qualité et ne fonctionnait pas...

 ![image](https://forum.hacf.fr/uploads/default/original/3X/f/c/fc48b85c271170f92cef931ad43ccf11f915ba96.png)

Quelles caméras avez-vous sur vos ESP32 qui fonctionnent "normalement" ? 🙂

---

<div class="post-metadata">

**Author:** ![Bob](https://forum.hacf.fr/user_avatar/forum.hacf.fr/bob/32/64908_2.png) [@Bob](https://forum.hacf.fr/u/Bob)\
**Post date:** [Avril 24, 2025, 3:22 UTC](https://forum.hacf.fr/t/esp32-cam-inactif/55732/24 "2025-04-24T15:22:54Z")

</div>

J’ai de OV2640, j’avais fait un test avec une 5 Mega pixel mais ça chauffait trop.

Bob

[Page précédente](https://forum.hacf.fr/t/esp32-cam-inactif/55732.md?page=1)
