Skip to content

Instantly share code, notes, and snippets.

@baldowl
Last active March 20, 2025 00:49
Show Gist options
  • Save baldowl/a413c2a08c10bc62c1a72328caac98c1 to your computer and use it in GitHub Desktop.
Save baldowl/a413c2a08c10bc62c1a72328caac98c1 to your computer and use it in GitHub Desktop.
Playing with ESP32-C6 and ESPHome
# Originally used with ESPHome 2023.11.06; tested with ESPHome 2024.11.3 and 2024.12.1
esp32:
board: esp32-c6-devkitc-1
flash_size: 8MB
variant: esp32c6
framework:
type: esp-idf
version: 5.1.2 # latest version when tested with ESPHome 2023.11.06
sdkconfig_options:
CONFIG_ESPTOOLPY_FLASHSIZE_8MB: y
platform_version: 6.4.0 # latest version when tested with ESPHome 2023.11.06
# If using ESPHome 2024.12.0, this can be greately simplified:
#
# esp32:
# board: esp32-c6-devkitc-1
# flash_size: 8MB
# framework:
# type: esp-idf
# sdkconfig_options:
# CONFIG_ESPTOOLPY_FLASHSIZE_8MB: y
light:
- platform: esp32_rmt_led_strip
name: Status LED
pin: GPIO8
rgb_order: RGB
num_leds: 1
rmt_channel: 0
chipset: ws2812
entity_category: config
@rvalitov
Copy link

Thank you for sharing the details.
I'm using this device https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32c6/esp32-c6-devkitc-1/user_guide_v1.1.html
It says it also works with GPIO8:
image

Unfortunately this code does not work. I tried your versions of ESP-IDF and Platform, and the latest 5.3.1 and 6.9.0 - no success ๐Ÿ˜ž

@junosuarez
Copy link

junosuarez commented Jan 5, 2025

Got this working on my ESP32-c6-devkitc-1 revision v0.0 early sample boards. Note the rgb_order for me was rgb_order: GRB.

@onlynow2
Copy link

onlynow2 commented Feb 4, 2025

Thank you very much for providing this config.
I can confirm, this works on "Waveshare ESP32-C6-DEV-KIT-N8" board ๐ŸŽ‰

@trianglesis
Copy link

Does not work in my setup with any version.

light.esp32_rmt_led_strip: [source my_proj/esp32-c6-1.yaml:203]
  platform: esp32_rmt_led_strip
  rgb_order: RGB
  pin: GPIO08
  num_leds: 1
  
  This feature is not available for the IDF framework version 5.
  rmt_channel: 0
  chipset: ws2812
  name: ESP32_C6_1 RTM LED Light
  web_server: 
    sorting_group_id: sorting_group_controls

Board: https://www.aliexpress.com/item/1005006271962503.html

@midnightveil
Copy link

@trianglesis The error message is unclear but it seems to be saying that "rmt_channel: 0" is not supported. Removing that fixes it for me.

@trianglesis
Copy link

@trianglesis The error message is unclear but it seems to be saying that "rmt_channel: 0" is not supported. Removing that fixes it for me.

That is interesting.
Does that give you control over the board's LED?

  • power on\off
  • color change

@midnightveil
Copy link

@trianglesis Yep! All works fine. Not the same board as yours, this is a knockoff of the Waveshare ESP-C6-Zero board but I'd be surprised if it was different.

@mafrosis
Copy link

I played with another similar device this weekend: https://www.waveshare.com/esp32-c6-lcd-1.47.htm

Like @midnightveil, I also had that rmt_channel error about IDF v5. LED works great with that line removed ๐Ÿ‘

@trianglesis
Copy link

It worked just fine!

But colours are inverted:

light:
  - platform: esp32_rmt_led_strip
    name: Status LED
    pin: GPIO8
    rgb_order: GRB
    num_leds: 1
    chipset: ws2812
    web_server: 
      sorting_group_id: sorting_group_controls

image

@midnightveil
Copy link

Change the rgb_order to the correct order. Probably look at your data sheet for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment