Skip to content

Add support for BH20C RGB light stick (NW-20240063) - #112

Open
keyframe-one wants to merge 1 commit into
keefo:mainfrom
keyframe-one:add-bh20c-support
Open

Add support for BH20C RGB light stick (NW-20240063)#112
keyframe-one wants to merge 1 commit into
keefo:mainfrom
keyframe-one:add-bh20c-support

Conversation

@keyframe-one

Copy link
Copy Markdown

Summary

Adds support for the Neewer BH20C RGB light stick (product page), which advertises as NW-20240063&FFFFFFFF.

Previously the light was unrecognized: getProjectName had no entry for project code 20240063, and getLightType fell 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: map 20240063 → "BH20C"
  • getLightType: map NW-20240063 / "BH20C" → new type 89
  • getLightTypeName: add case 89
  • Database/lights.json: add type 89 entry — RGB, CCT+GM, 2500–10000K (cctRange 25–100), 17FX, newPowerLightCommand/newRGBLightCommand, fx17_mac preset
  • Database/light_images/bh20c.png: product image

Note: I did not bump the database version field — 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:

Command Bytes sent Result
Power on/off (0x8D) 78 8d 08 <mac6> 81 01/02 <ck> ✅ light toggles
HSI (0x8F) 78 8f 0c <mac6> 86 <hue16le> <sat> <brr> 00 <ck> ✅ red/green/blue confirmed
CCT+GM (0x90) 78 90 0b <mac6> 87 <brr> <cct> <gm+50> 04 <ck> ✅ 2700K/5600K/10000K confirmed
Legacy power (78 81 01 xx) control test ❌ ignored

🤖 Generated with Claude Code

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants