[BK7231N - CB3S] Generic Tuya Wall Switch Touch Type 1-4 Gang with Neutral and also a Dimmer
TL;DR
- Generic Tuya US-style touch wall switch with neutral and matching dimmer uses a Shawader Tuya-based CB3S module with BK7231N.
- Tuya-Cloudcutter flashed it by firmware version and name, using the V1.1.0 dctrl switch and V2.1.6 common user config ty profiles.
- The 1-gang switch pinout is P10 Btn, P11 LED_n, and P26 Rel, while the dimmer autoexec sets TuyaMCU channel 2 as a dimmer with range 2-1000.
- OpenBeken-v1.17.130_bk7231n.ug.bin worked, but WIFILED_n made the off-blue indicator too dark, so LED_n was preferred; 2-4 gang versions are only assumed similar.
Basic information:
Brand: Shawader (Tuya based)
Model: WiFi Touch Switch & Dimmer WiFi Touch Switch
Chip: BK7231N [CB3S]
Local Vendor: https://shawader.aliexpress.com/store/4884178
These switches look a lot like Makegood switches.
Main Module version in the Tuya app was V1.1.0 on the switch and V2.1.6 on the Dimmer.
These can be flashed with Tuya-Cloudcutter.
I used the option 2 > By firmware version and name.
There is a V1.1.0 'dctrl switch' and V2.1.6 'common user config ty' file that both flashed fine.
I think from memory they both flashed OpenBeken-v1.17.130_bk7231n.ug.bin
This is only the one gang version but I would assume the 2,3,4 would be similar.
This is what worked for me, I found with the switch that if I used WIFILED_n then the off blue was too dark so used LED_n instead the wifi led is under the cover anyway so you cant see it.
Pinout for 1 gang switch:
P10 Btn
P11 LED_n
P26 RelJSON for 1 gang:
autoexec.bat for dimmer:
startDriver TuyaMCU
setChannelType 1 toggle
setChannelType 2 dimmer
tuyaMcu_setDimmerRange 2 1000
linkTuyaMCUOutputToChannel 1 1 1
linkTuyaMCUOutputToChannel 2 2 2JSON for 1 dimmer:
Hopefully this is useful to some.
Comments
Thank you for submitting configs. I have slightly edited your post for clarity. Devices are now added to our Elektroda teardowns list: https://openbekeniot.github.io/webapp/devicesList.html [Read more]