Repository navigation
Add M5Stack NanoC6 board - #3115
Ludovic BOUÉ (lboue) wants to merge 3 commits into
Conversation
ESP32-C6 devkit with WS2812 RGB LED, IR transmitter, status LED, button, and a Grove I2C port. Sourced from M5Stack's docs and the community config at devices.esphome.io/devices/M5Stack-NanoC6/.
Merging this PR will not alter performance
Comparing Footnotes
|
There was a problem hiding this comment.
🟡 Changes recommended
Six critical manifest issues leave generated ESPHome configurations invalid, including missing component identities and unresolved dependencies.
6 open issues
Power-supply preset omits required ID · New RGB card lacks light identity and power-supply prerequisite · New Status LED recommendation omits YAML identity · New Button recommendation omits YAML identity · New IR transmitter preset omits required ID · New IR proxy preset omits required YAML identity · New
What changed in this PR
Adds the M5Stack NanoC6 as a curated ESP32-C6 board with documented hardware metadata, pin assignments, onboard peripherals, and featured component recommendations.
Changes:
- Adds the NanoC6 board manifest with ESPHome configuration, connectivity, GPIO definitions, images, and documentation links.
- Adds recommendations for the RGB LED, status LED, button, IR transmitter, IR proxy, and Grove I²C port.
- Regenerates the board body, board picker index, and featured-components index.
| File | Description |
|---|---|
| esphome_device_builder/definitions/featured_components.index.json | Adds the generated NanoC6 featured-component recommendations to the aggregated catalog. |
| esphome_device_builder/definitions/boards/m5stack-nanoc6/manifest.yaml | Defines the curated NanoC6 board, including its hardware metadata, pin map, and featured component presets. |
| esphome_device_builder/definitions/boards.index.json | Adds the NanoC6 entry to the generated board picker index. |
| esphome_device_builder/definitions/board_bodies/m5stack-nanoc6.json | Provides the generated full catalog body for the NanoC6 board. |
Review effort: Lite (adaptive)
| - id: rgbpwr | ||
| component_id: power_supply | ||
| name: RGB LED power enable | ||
| description: Load switch gating power to the onboard WS2812 RGB LED. | ||
| fields: | ||
| pin: | ||
| value: 19 | ||
| locked: true | ||
| enable_time: 5ms | ||
| keep_on_time: 10ms |
| - id: rgb_led | ||
| component_id: light.esp32_rmt_led_strip | ||
| name: RGB LED | ||
| description: Onboard WS2812 RGB LED. | ||
| fields: | ||
| pin: | ||
| value: 20 | ||
| locked: true | ||
| chipset: ws2812 | ||
| channel_colors: GRB | ||
| num_leds: 1 | ||
| power_supply: | ||
| value: rgbpwr | ||
| locked: true |
| - id: status_led | ||
| component_id: light.status_led | ||
| name: Status LED | ||
| description: Onboard blue status LED. | ||
| fields: | ||
| pin: | ||
| value: 7 | ||
| locked: true |
| - id: button | ||
| component_id: binary_sensor.gpio | ||
| name: Button | ||
| description: Front panel button. Also used to enter download mode at boot. | ||
| fields: | ||
| pin: | ||
| value: | ||
| number: 9 | ||
| mode: | ||
| input: true | ||
| pullup: true | ||
| inverted: true | ||
| ignore_strapping_warning: true | ||
| locked: true |
| - id: ir_tx | ||
| component_id: remote_transmitter | ||
| name: IR Transmitter | ||
| description: Onboard infrared LED. | ||
| fields: | ||
| pin: | ||
| value: 3 | ||
| locked: true | ||
| carrier_duty_percent: 50% |
| - id: ir_proxy_tx | ||
| component_id: infrared.ir_rf_proxy | ||
| name: IR Proxy Transmitter | ||
| fields: | ||
| remote_transmitter_id: | ||
| value: ir_tx | ||
| locked: true |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3115 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 305 305
Lines 27006 27006
=========================================
Hits 27006 27006
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
power_supply and remote_transmitter need a locked id so the RGB light's power_supply reference and the IR proxy's remote_transmitter_id reference resolve; the entity-style components (light, binary_sensor, infrared) need a name/id of their own since the catalog's display name isn't copied into fields. Also declares requires: so adding the RGB LED or IR proxy card standalone pulls in its prerequisite component. Verified the generated YAML with `esphome config`.
|
Fixed the 6 issues flagged by the Copilot review (missing YAML identities / dangling cross-references in the featured components):
Verified the resulting YAML with |
ESP32-C6 has only 96 symbols of RMT TX memory in 48-symbol blocks (two channels total). Without an explicit rmt_symbols, the WS2812 strip and the IR transmitter each default to requesting more than one block, so enabling both from the dashboard exhausts the TX pool and the IR transmitter fails to register its RMT channel at boot (confirmed on real hardware: "no free tx channels" / ESP_ERR_NOT_FOUND). Locking rmt_symbols: 48 on each keeps both within the two-channel budget.
|
Follow-up from flashing the board directly: the RGB LED + IR transmitter combo as originally catalogued compiled fine but failed at boot on real hardware: Root cause: the ESP32-C6 has only 96 symbols of RMT TX memory (two 48-symbol blocks = two TX channels total). Without an explicit Pushed a fix locking |
|
Confirmed on real hardware: re-flashed with |

What does this implement/fix?
Adds a curated board manifest for the M5Stack NanoC6 — a tiny USB-C
powered ESP32-C6 devkit — so it's selectable in the board picker with
a real pinout instead of falling back to the generic ESP32-C6 board.
The pin map, connectivity (Wi-Fi 6 / Bluetooth 5 / Zigbee 3.0 / Thread
1.3), and onboard peripherals (WS2812 RGB LED + power-enable gate, IR
transmitter, blue status LED, front button, 4-pin Grove I2C port) are
sourced from M5Stack's official docs
(https://docs.m5stack.com/en/core/M5NanoC6) and the community config
at https://devices.esphome.io/devices/M5Stack-NanoC6/. That
devices.esphome.io page has no local photo yet, so the automatic
script/sync_esphome_devices.pyimporter can't pick it up (itrequires at least one local image); the product photo here comes
from
static-cdn.m5stack.com, a domain already referenced by otherM5Stack board manifests in this catalog.
Regenerated
board_bodies/m5stack-nanoc6.jsonand refreshedboards.index.json/featured_components.index.jsonviascript/update_board.py m5stack-nanoc6.Related issue or feature (if applicable):
Types of changes
bugfixnew-featureenhancementbreaking-changerefactordocsmaintenancecidependenciesFrontend coordination
Checklist
ruff,codespell, yaml/json/python checks).tests/where applicable.components.index.json/definitions/components/*.jsonhave not been hand-edited (regenerate viascript/sync_components.pyif a sync is needed).docs/ARCHITECTURE.mdand/ordocs/API.md.