Hi @DeDaMrAz, did you have a chance to make more progress with this device?
Hi @DeDaMrAz, did you have a chance to make more progress with this device?
Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamDeDaMrAz wrote:
@mnm11
We need a bigger sample of tests, can you update your device to build 1.17.237 and add it to HA to test if color change will work for you? The issue that I am facing is that I can change color only a certain number of times (let's say 7 or 8 times) and then the device will become unresponsive to color change until I power cycle the light by on/off switch. Can you test that maybe?
MnM1 wrote:
Is there any way I can make my colors RGB (in software) instead of BGR?
MnM1 wrote:
The warm white and cold white temperature slider still does not work. If used, it just switches all the LEDs off. I get them back by selecting a color on the color wheel.
MnM1 wrote:Thanks - I will try in HA and see how I go.
MnM1 wrote:
I have some feedback with the temperature sensor for this device.
(...)
MCP9808 Temperature=-0.062500
startDriver TuyaMCU
tuyaMcu_defWiFiState 4
tuyaMcu_setBaudRate 115200
tuyaMCU_setupLED 24 1
startDriver httpButtons
setButtonEnabled 0 1
setButtonLabel 0 "Light Mode"
setButtonCommand 0 "startScript autoexec.bat do_whitelight"
alias do_whitelight startScript autoexec.bat do_whitelight
setButtonEnabled 1 1
setButtonLabel 1 "Music Mode"
setButtonCommand 1 "startScript autoexec.bat do_music"
alias do_music startScript autoexec.bat do_music
setButtonEnabled 2 1
setButtonLabel 2 "Curtain"
setButtonCommand 2 "startScript autoexec.bat do_cur"
alias do_cur startScript autoexec.bat do_cur
setButtonEnabled 3 1
setButtonLabel 3 "Collision"
setButtonCommand 3 "startScript autoexec.bat do_col"
alias do_col startScript autoexec.bat do_col
setButtonEnabled 4 1
setButtonLabel 4 "Rainbow"
setButtonCommand 4 "startScript autoexec.bat do_rai"
alias do_rai startScript autoexec.bat do_rai
setButtonEnabled 5 1
setButtonLabel 5 "Pile"
setButtonCommand 5 "startScript autoexec.bat do_pil"
alias do_pil startScript autoexec.bat do_pil
setButtonEnabled 6 1
setButtonLabel 6 "Firework"
setButtonCommand 6 "startScript autoexec.bat do_fir"
alias do_fir startScript autoexec.bat do_fir
setButtonEnabled 7 1
setButtonLabel 7 "Chase"
setButtonCommand 7 "startScript autoexec.bat do_chase"
alias do_chase startScript autoexec.bat do_chase
// stop execution
return
do_whitelight:
tuyaMcu_sendState 21 4 1
delay_s 0.1
return
do_music:
tuyaMcu_sendState 21 4 3
delay_s 0.1
return
do_chase:
tuyaMcu_sendState 21 4 2
delay_s 0.1
tuyaMcu_sendState 25 3 020e0d00001403e803e800000000
return
do_cur:
tuyaMcu_sendState 21 4 2
delay_s 0.1
tuyaMcu_sendState 25 3 000e0d00002e03e802cc00000000
return
do_col:
tuyaMcu_sendState 21 4 2
delay_s 0.1
tuyaMcu_sendState 25 3 07464602000003e803e800000000464602007803e803e80000000046460200f003e803e800000000464602003d03e803e80000000046460200ae03e803e800000000464602011303e803e800000000
return
do_rai:
tuyaMcu_sendState 21 4 2
delay_s 0.1
tuyaMcu_sendState 25 3 06464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000
return
do_pil:
tuyaMcu_sendState 21 4 2
delay_s 0.1
tuyaMcu_sendState 25 3 010e0d000084000003e800000000
return
do_fir:
tuyaMcu_sendState 21 4 2
delay_s 0.1
tuyaMcu_sendState 25 3 05464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000464601003d03e803e80000000046460100ae03e803e800000000464601011303e803e800000000
returndo_whitelight:
tuyaMcu_sendState 21 4 1
delay_s 0.1
returndo_whitelight:
tuyaMcu_sendState 21 4 1
delay_s 0.5
tuyaMcu_sendState 24 1
delay_s 1
tuyaMCU_sendColor 24 2 1 1 1
returnTL;DR: For owners of sealed DC 5–12 V Tuya dreamlight controllers, the safest path is: verify Cloudcutter first, then treat the device as TuyaMCU-based, not direct SM16703. As one developer put it, "The SM driver will not work for this device"; working control came from dpIDs, scene scripts, and Flag 43 queue support. [#20685629]
Why it matters: This thread shows how to free a waterproof Tuya light from the cloud without opening it, while avoiding the biggest failure mode: flashing a device that still lacks the right driver path.
| Option | What the thread found | Practical result |
|---|---|---|
| BK7231N + TuyaMCU path | Working support arrived first; test device reported BK7231N and later got scenes, color, brightness, and music mode working | Best current route for this light |
| BK7231T + direct SM16703 tests | Early SM16703 builds for T were missing or not ported; 202 T even returned 404 for one file | Not the safe first choice |
| Direct SM16703 control | Promised more customization, but this device turned out to use TuyaMCU in front of the LEDs | Not the right control path for this product |
| Tuya app / LocalTuya only | Full original behavior stays after cloud detachment, but you still rely on TuyaMCU datapoints | Useful for testing before flashing |
Key insight: The breakthrough was identifying the controller as a TuyaMCU light with dpIDs and 115200 baud, not a simple BK-to-LED direct driver design. Once the project switched from SM16703 experiments to TuyaMCU scripting, core functions started working. [#20685629]
tuyaMcu_defWiFiState 4 to stop the power-up blinking that looked like pairing mode. [#20720438]TuyaMCU driver, setting Wi‑Fi state, mapping dpIDs, and sending scene or color commands instead of talking to LEDs directly. [#20720438]SM16703P_Init NOT found, then found 1.17.202 T unavailable with a 404, while the maintainer confirmed the contributor had only provided a working version for N at that point. Later, a tester on BK7231N flashed 1.17.206 and could at least load the driver, while T support still needed porting. [#20669569]tuyaMcu_defWiFiState 4. In the thread, the maintainer identified the blue blinking as MCU-side status behavior, not LED driver failure, and said the blinking would stop as soon as that command was applied. [#20685629]startDriver TuyaMCU, tuyaMcu_defWiFiState 4, tuyaMcu_setBaudRate 115200, tuyaMCU_setupLED 24 1, then scene buttons that first sent tuyaMcu_sendState 21 4 2 and next pushed scene payloads on dpID 25. A published example already included Music mode, Light mode, Curtain, Collision, Rainbow, Pile, Firework, and Chase buttons. [#20721021]tuyaMCU_sendColor 24 1 0 0 1 produced blue, 0 1 0 1 produced green, and 0 0 1 1 produced red. Later, the same user corrected the order by revisiting the remote/manual settings and confirmed the colors became correct without a firmware rewrite. [#20721099]SetStartValue did not solve this TuyaMCU case. The reported workaround was: query state, wait about 1 second, then send tuyaMcu_sendState 20 1 0. The maintainer called it a temporary fix and noted the lamp may flash on briefly before turning off again, but it reliably restored the desired post-reboot OFF state until a firmware-side fix could be worked on. [#21275570]