Add WiFi-only Matter (CHIP) usermod for WLED-MM#351
Draft
Conversation
- New usermod: usermods/usermod_v2_matter/usermod_v2_matter.h Exposes WLED as a Matter Extended Color Light with On/Off, Level Control, and Color Control clusters. WiFi-only commissioning (no BLE required). - Register usermod in wled00/usermods_list.cpp - Add USERMOD_ID_MATTER (95) in wled00/const.h - Add esp32s3_matter_wifi build environment in platformio.ini - Add readme documentation for the usermod Agent-Logs-Url: https://github.com/MoonModules/WLED-MM/sessions/8fdc84b5-d880-40fc-9352-e684ff247509 Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com>
…fy brightness comment Agent-Logs-Url: https://github.com/MoonModules/WLED-MM/sessions/8fdc84b5-d880-40fc-9352-e684ff247509 Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add WiFi-only Matter integration for WLED without BLE
Add WiFi-only Matter (CHIP) usermod for WLED-MM
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WLED-MM has no Matter smart-home protocol support. Existing Matter implementations assume BLE for commissioning, which adds ~60–100KB RAM overhead and is impractical on constrained ESP32 builds. This adds Matter support using WiFi-only commissioning (Soft-AP/mDNS), bypassing BLE entirely.
Changes
usermods/usermod_v2_matter/): Exposes WLED as a Matter Extended Color Light (0x010D) with On/Off, Level Control, and Color Control (HSV + CT) clusters. Bridges Matter attribute callbacks to WLED'scol[]/bristate viacolorUpdated(CALL_MODE_DIRECT_CHANGE). Bidirectional sync — WLED UI/API/preset changes push back to the Matter fabric every 250ms.loop()context.USERMOD_ID_MATTER(95) inconst.h, conditional include/registration inusermods_list.cppbehind#ifdef USERMOD_MATTER.[env:esp32s3_matter_wifi]inplatformio.iniwith-D USERMOD_MATTER -D CONFIG_BT_ENABLED=0 -D CONFIG_RENDEZVOUS_MODE_WIFI=1. Requires ESP-IDF v5.1+ with theesp_mattercomponent.Color mapping
Zero impact on existing builds — all Matter code is behind
#ifdef USERMOD_MATTER.⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.