Waveshare esp32-p4-wifi6-poe-eth

Hej! I am trying to find a good YAML example for the waveshare esp32-p4-wifi6-poe-eth board I bought. I get it to work on ethernet, but not on Wifi. Can someone support me in a correct YAML for Wifi? Thanks!

substitutions:
  host_name: esp-p4-camera
  device_comment: Test and play setup
  device_name: esp_p4_camera
  device_name_friendly: esp p4 camera
  device_area: Garage
  yaml_author: PBvO
  yaml_version: 0.0.1

esphome:
  name: ${host_name}
  name_add_mac_suffix: false
  comment: ${device_comment}
  friendly_name: ${device_name_friendly}
  project:
    name: ${yaml_author}.${device_name}
    version: ${yaml_version}
  area: ${device_area}
  platformio_options:
    board_build.flash_mode: dio

esp32:
  board: esp32-p4-evboard
  flash_size: 16MB
  framework:
    type: esp-idf

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  fast_connect: true
  post_connect_roaming: true

logger:
#  hardware_uart: UART0
#  level: DEBUG

api:
  port: 6053
  batch_delay: 30ms
  encryption:
    key: !secret api_key

ota:
  - platform: esphome
    password: !secret ota_password

web_server:
  include_internal: true  # Show entities marked internal on the web page

# HTTP request component for C6 firmware updates
http_request:
  timeout: 10s

update:
  - platform: esp32_hosted
    name: "ESP32-C6 Firmware"
    type: http
    source: https://esphome.github.io/esp-hosted-firmware/manifest/esp32c6.json
    update_interval: 6h
    
# ESP32-C6 WiFi interface via SDIO
esp32_hosted:
  variant: ESP32C6
  reset_pin: GPIO54
  cmd_pin: GPIO19
  clk_pin: GPIO18
  d0_pin: GPIO14
  d1_pin: GPIO15
  d2_pin: GPIO16
  d3_pin: GPIO17
  active_high: true

#ethernet:
#  type: IP101
#  mdc_pin: GPIO31
#  mdio_pin: GPIO52
#  power_pin: GPIO51
#  clk: 
#    mode: CLK_EXT_IN
#    pin: GPIO50
#  phy_addr: 1
  # Optional manual IP
#  manual_ip:
#    static_ip: 192.168.3.187
#    gateway: 192.168.3.1
#    subnet: 255.255.255.0

text_sensor:
  - platform: template
    name: "ESP32-C6 Firmware Version"
    lambda: |-
      // This will show the C6 firmware version
      return {"Check Update entity"};
    update_interval: 60s

Are you getting an error when you try to flash or I does it not connect to

Look at below also

Yes, simular problems, thanks for pointing to this topic!