Repository navigation
Description
Is your feature request related to a problem? Please describe.
Currently, the WLED usage telemetry only reports if the 2D feature (matrix mode) is enabled. This provides a narrow view of real-world setups and leaves us blind to broader user configuration patterns (e.g. are people using relays, usermods, Hue, IR, ESP-NOW, or certain types of LED buses?).
Describe the solution you'd like
Extend usage reporting to include a wider set of configuration fields. The telemetry should not report user actions, runtime metrics, or sensitive information—only static or rarely-changing configuration that can help guide development. Telemetry should use boolean and human-readable string values, not bitmasks or raw IDs, to avoid any need for server-side mapping or interpretation.
Proposed fields to include (non-exhaustive):
- Bus types in use (e.g. "digital", "pwm", "network")
- List of enabled usermods by canonical name (as seen in config keys)
- Hardware integrations:
- Hue bridge enabled
- MQTT enabled
- Alexa enabled
- Relay output configured
- IR remote type (as mapped string, e.g. "24-key")
- ESP-NOW enabled (base and per-remote count)
- E1.31 receive/send
- Realtime/Hyperion UDP receive
- NTP/time enabled
- I²C/SPI/ethernet configured
- Number of physical buttons
- Key matrix and multi-bus attributes (isMatrix, matrixWidth/Height, bus count)
- Feature flags as booleans (autoSegments, nightlightEnabled, CCT/whitebalance, gamma correction, etc)
- All fields are reported as boolean, string, or number (never as bitmask or raw ID)
Describe alternatives you've considered
- Keeping only raw 2D/matrix telemetry (insufficient for project planning)
- Reporting runtime, user-action, or privacy-sensitive metrics (explicitly out-of-scope)
Additional context
The specific config values and their extraction logic have been carefully mapped to existing /json/info and /json/cfg API structures. See the accompanying design proposal for the precise field list, type mappings, and JS snippets for extraction. This approach minimizes firmware changes, leverages existing JSON output, and adheres to user privacy by explicit exclusion of live/actionable/personal data.
Activity
netmindz commentedon Mar 25, 2026
Implementation Notes
Approach
Two fetches are needed: the existing
/json/info(already fetched during upgrade reporting) plus one additional fetch to/json/cfg. All fields are reported as booleans, human-readable strings, or plain numbers — never bitmasks or raw numeric IDs.Fields from
/json/info(first fetch)Fields from
/json/cfg(second fetch)LED hardware
Peripherals
Integrations
Usermods
Bus type string mapping
IR remote type string mapping
Combined fetch pattern
Explicitly excluded fields
info.optinfo.leds.lc(raw)hasRGBW/hasCCTcfg.hw.led.ins[].type(raw)busTypeToString()cfg.hw.ir.type(raw)info.um[](raw)Object.keys(cfg.um)info.freeheap,info.pwr,info.fps,info.uptimecfg.def.bri,cfg.def.oncfg.if.sync.recv.grp,send.grpcfg.if.live.dmx.*DedeHai commentedon Mar 25, 2026
why offload the whole encoding into firmware for something that goes from device to device (database)? if the goal is to get info from config why not load up that cfg.json, strip out any parameters that are not hardware related and just send that json?
netmindz commentedon Mar 25, 2026
Yeah I don't think we will actually go for all of the above, I'm going to strip back the list a bit.
I wouldn't want to risk accidentally getting sensitive data if the user added things in their own fork, it also gives greater clarity of what data is being sent
It will be gzipped so won't be quite as big in the firmware
netmindz commentedon Mar 30, 2026
Also add file system size and usage
[-]Proposal: Comprehensive, Privacy-Respecting Usage/Configuration Telemetry (Config Reporting)[/-][+]Extend the coverage of features in use[/+]DedeHai commentedon Apr 11, 2026
I still think the decoding for IR and bus types should be done on server side and just pass the "magic number". It is a bit less maintainable but these types are not likely to change as they need to stay backwards compatible.