I get the following error when I try to update my esp-32 cam
INFO ESPHome 2025.2.0
INFO Reading configuration /config/esphome/esp-32-cam-aquarium.yaml…
Failed config
esphome: [source /config/esphome/esp-32-cam-aquarium.yaml:2]
name: esp32-cam
Please remove the platform
key from the [esphome] block and use the correct platform component. This style of configuration has now been removed.
platform: ESP32
board: esp32dev
My yaml file follows
esphome:
name: esp32-cam
platform: ESP32
board: esp32dev
Enable logging
logger:
Enable Home Assistant API
api:
reboot_timeout: 0s
web_server:
port: 80
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ota:
platform: esphome
Enable fallback hotspot (captive portal) in case wifi connection fails
#ap:
#ssid: “Esp32-Cam Fallback Hotspot”
#password: “C3FOhAPFtouw”
captive_portal:
Example configuration entry
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 ESP32-CAM
Flashlight
output:
- platform: gpio
pin: GPIO4
id: gpio_4
GPIO_4 is the flash light pin
light:
- platform: binary
output: gpio_4
name: flashlight
Any help or suggestions will be appreciated