Hi Win,
My is not working too.
Pinout is the same as stated on https://docs.m5stack.com/en/unit/unit_cam
But in Homeassistant ESPHome generates these errors:
[12:03:45][C][ledc.output:180]: LEDC Output:
[12:03:45][C][ledc.output:181]: Pin GPIO2
[12:03:45][C][ledc.output:182]: LEDC Channel: 2
[12:03:45][C][ledc.output:183]: PWM Frequency: 1000.0 Hz
[12:03:45][C][ledc.output:184]: Phase angle: 0.0°
[12:03:45][C][ledc.output:185]: Bit depth: 16
[12:03:45][C][esp32_camera:048]: ESP32 Camera:
[12:03:45][C][esp32_camera:049]: Name: Timer-CAM1
[12:03:45][C][esp32_camera:050]: Internal: YES
[12:03:45][C][esp32_camera:052]: Data Pins: D0:32 D1:35 D2:34 D3:5 D4:39 D5:18 D6:36 D7:19
[12:03:45][C][esp32_camera:053]: VSYNC Pin: 22
[12:03:45][C][esp32_camera:054]: HREF Pin: 26
[12:03:45][C][esp32_camera:055]: Pixel Clock Pin: 21
[12:03:45][C][esp32_camera:056]: External Clock: Pin:27 Frequency:20000000
[12:03:45][C][esp32_camera:060]: I2C Pins: SDA:25 SCL:23
[12:03:45][C][esp32_camera:062]: Reset Pin: 15
[12:03:45][C][esp32_camera:080]: Resolution: 640x480 (VGA)
[12:03:45][E][esp32_camera:123]: Setup Failed: ESP_ERR_NOT_FOUND
[12:03:45][E][component:082]: Component esp32_camera is marked FAILED