Add support for BH20C RGB light stick (NW-20240063) - #112
Open
keyframe-one wants to merge 1 commit into
Open
Conversation
The BH20C light wand was unrecognized: getProjectName had no entry for project code 20240063 and getLightType fell through to the generic type 8, so the app sent legacy commands the light ignores and RGB controls were hidden. Map NW-20240063 to new light type 89 and add a lights.json entry with the BH20C capabilities (RGB, CCT+GM 2500-10000K, 17FX, MAC-addressed new power/HSI/CCT commands). Verified against hardware over BLE: power (0x8D), HSI (0x8F) and CCT+GM (0x90) MAC-addressed commands all control the light; legacy non-MAC commands are ignored. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
keefo
approved these changes
Aug 19, 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.
Summary
Adds support for the Neewer BH20C RGB light stick (product page), which advertises as
NW-20240063&FFFFFFFF.Previously the light was unrecognized:
getProjectNamehad no entry for project code20240063, andgetLightTypefell through to the generic type 8. The app then sent legacy (non-MAC-addressed) commands, which the BH20C silently ignores — it connected and appeared in the UI, but nothing controlled the physical light, and RGB controls were hidden.Changes
getProjectName: map20240063→ "BH20C"getLightType: mapNW-20240063/ "BH20C" → new type 89getLightTypeName: add case 89Database/lights.json: add type 89 entry — RGB, CCT+GM, 2500–10000K (cctRange 25–100), 17FX,newPowerLightCommand/newRGBLightCommand,fx17_macpresetDatabase/light_images/bh20c.png: product imageNote: I did not bump the database
versionfield — happy to if that's how updates are rolled out.Hardware verification
Tested against a physical BH20C over BLE (bleak script, macOS). The MAC-addressed "new" commands all control the light; legacy commands are ignored:
78 8d 08 <mac6> 81 01/02 <ck>78 8f 0c <mac6> 86 <hue16le> <sat> <brr> 00 <ck>78 90 0b <mac6> 87 <brr> <cct> <gm+50> 04 <ck>78 81 01 xx)🤖 Generated with Claude Code