You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Breaking Change in WLED Custom Palette ID Assignment #2056
A recent WLED firmware update (commit #fd6f568) introduces a breaking change to the custom palette ID numbering scheme that affects all client libraries, including python-wled.
What Changed
Previous behavior:
Custom palettes used a single downward-counting ID space starting from ID 255
All user-created palettes were assigned IDs counting down from 255
New behavior:
Custom palettes now use a fixed ID space of 200 down to FIXED_PALETTE_COUNT+1
A new separate ID space (255 down to 201) is reserved for usermod-registered palettes
The firmware now has two distinct palette categories with separate ID ranges
Why This Breaks Compatibility
Direct ID references fail: Any code that assumes custom palettes start at ID 255 will now reference usermod palettes instead
Index calculation breaks: The mapping between palette ID and array index has changed—the formula to convert IDs to array indices is no longer a simple downward count
Runtime errors: Requests for specific palette IDs may return incorrect palettes or fail validation
Impact on python-wled
The python-wled library must be updated to:
Update palette ID constants: Change any hardcoded reference from 255 to 200 as the base ID for custom palettes
Revise index calculation logic: Update the formula that converts palette IDs to internal array indices to account for the new WLED_CUSTOM_PALETTE_ID_BASE = 200 constant
Add version compatibility checks: Consider firmware version detection to handle both old and new ID schemes
Update API validation: Ensure palette ID validation reflects the new boundary (200 instead of 255 for custom palettes)
Required Changes
Update constants in the models/palette handling code
Activity
frenck commentedon May 8, 2026
You don't need to make issues in order to make PRs. This is just causing unneeded notifications and handling.
../Frenck