Просмотр исходного кода

feat (rgbcw_lightbulb): add Cree CMA21-100W-AL-9ACK (#4501)

Why
===
The Cree Connected Max A21 100W smart bulb (https://www.lowes.com/pd/5001171499) uses Tuya and matches the `rgbcw_lightbulb` config but has no product ID entry, so it falls back to DPS-based matching and incorrectly matches `calex_s45cleare27_light` at 88%.

How
===
The product ID `e8dhekwuvrdogter` was obtained from the Tuya IoT Platform cloud API (`/v2.0/cloud/thing/batch`) and confirmed with `tinytuya scan`, which reported the device as v3.3 at the same address and device ID.

The device reports DPs 20, 21, 22, 23, 24, 25, 26, and 41, which match the `rgbcw_lightbulb` config (DPs 20–28, 30–32, 34). The instruction set from the Tuya IoT Platform confirms the standard RGBCW schema: `switch_led`, `work_mode` (white/colour/scene/music), `bright_value_v2` (10–1000), `temp_value_v2` (0–1000), `colour_data_v2` (HSV), `scene_data_v2`, `countdown_1`, `music_data`, `control_data`, `rhythm_mode`, `sleep_mode`, and `wakeup_mode`.

Test Plan
===
Configured the device in tuya-local with protocol version 3.3 and type `rgbcw_lightbulb`. The device connects and I can control the bulb.

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
James Ide 3 недель назад
Родитель
Сommit
20dfea4290
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      custom_components/tuya_local/devices/rgbcw_lightbulb.yaml

+ 3 - 0
custom_components/tuya_local/devices/rgbcw_lightbulb.yaml

@@ -34,6 +34,9 @@ products:
   - id: iucfl5wpdk4w0cjm
   - id: iucfl5wpdk4w0cjm
     manufacturer: Laser Smart Home
     manufacturer: Laser Smart Home
     model: LSH-E14RGB5W
     model: LSH-E14RGB5W
+  - id: e8dhekwuvrdogter
+    manufacturer: Cree
+    model: CMA21-100W-AL-9ACK
 entities:
 entities:
   - entity: light
   - entity: light
     dps:
     dps: