esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 35 forks source link

ESP32-C6 Support is lacking for Devices like the XIAO ESP-32-C6, still even though both Arduino and ESP-IDF both support it by now. #5864

Open WebDesignerlol opened 4 months ago

WebDesignerlol commented 4 months ago

The problem

Hello, I saw a few posts here that discussed the lack of support for ESP32-C6, presumably because it wasn't officially supported in Arduino or ESP-IDF frameworks but both now do support it officially as of 5.1.0 for ESP-IDF at least, and Arduino lists it as supported as well.

My use case is to add the esp32-c6-devkitm-1 which should in theory support the new XIAO ESP32-C6 mini boards in a basic way on ESPHome running within Home Assistant. I see errors that tell me that my board is not supported in home assistant version of ESPHome.

Is there a good timeline for when this will become supported? Itching to use this and I know you guys haven't got the Zigbee or Matter side of things fully figured out, but it would be cool to use it as a basic ESP32 in the meantime while future proofing it's existence when Matter and Zigbee are (potentially? hopefully?) added into things with ESPHome, per rumors, lol.

Thank you for the consideration!

Which version of ESPHome has the issue?

2024.5.1

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP32

Board

XIAO ESP32-C6 (4 MB ram, 320 KB flash):

Component causing the issue

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

WebDesignerlol commented 4 months ago

I made it work on my config in esphome like so:

esphome:
  name: {custom_name}
  friendly_name: {custom_friendly_name}
  platformio_options:
    platform: https://github.com/platformio/platform-espressif32/archive/refs/tags/v6.7.0.zip
    board_build.f_cpu: 160000000L
    board_build.f_flash: 80000000L
    board_build.flash_size: 4MB
    build_flags: "-DBOARD_HAS_PSRAM"
    board_build.arduino.memory_type: qio_opi
esp32:
  board: esp32-c6-devkitm-1
  variant: esp32c6
  framework:
    type: esp-idf
    version: 5.2.1
    sdkconfig_options:
      CONFIG_ESPTOOLPY_FLASHSIZE_4MB: y

Hopefully this saves someone some headaches but basically it would have been nice to just put in the:

esp32:
  board: esp32-c6-devkitm-1
  variant: esp32c6-XAIO   //or something similar here
  framework:
    type: esp-idf

and not have to find all the custom parts of things to make it all work. hopefully my haul contributes to this? If seomeone can add these details to the ESP32-C6 and label it as the XAIO Seeed Studio version it would be awesome.

thefjordkeeper commented 3 months ago

@WebDesignerlol have you had any luck getting this to compile with esp-idf 5.2.1 in ESPHome 2024.6.x recently?

ldrrp commented 3 months ago

@thefjordkeeper seems to compile fine for 2024.6.4 when nothing else is enabled for it. A few things that worked for my other c3's dont seem to work straight forward on c6. Had to comment things out slowly to get it to build.

'/data/build/office-air/.pioenvs/office-air/esp-idf/bt/libbt.a': No such file
NeoPixelBus does not work with ESP-IDF.

See also: [NeoPixelBus Light](*****/api/hassio_ingress/********/)
This feature is only available with frameworks ['arduino'].
Cirehtims commented 1 month ago

What can we do to help this to be treated sooner ? I just bought ESP32-C6 boards to switch from wifi to zigbee and extends my presence detection network.

Same request for ESPresence : https://github.com/ESPresense/ESPresense/issues/1270

Thanks

Bjack795 commented 2 weeks ago

Hi, is there any available schedule to integrate the esp32c6 in esphome?

max7287 commented 5 days ago

Hi, I used the configuration for sensor water level

esphome:
  name: "nivel-agua"
  friendly_name: ESP32-c6

esp32:
  board: esp32-c6-devkitm-1
  flash_size: 4MB
  variant: esp32c6
  framework:
    type: esp-idf
    version: "5.3.0"
    platform_version: 6.8.1
    sdkconfig_options:
      CONFIG_ESPTOOLPY_FLASHSIZE_4MB: y