logo elektroda
logo elektroda
X
logo elektroda

[BK7231N - CB3S] Generic Tuya Wall Switch Touch Type 1-4 Gang with Neutral and also a Dimmer

theslydog  Cool? (+1)
This is a short teardown of US type Generic Tuya Touch Wall Switch (With Neutral) with CB3S module.

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.

Dismantled Shawader touch wall switch with CB3S module. CB3S module on a circuit board. Packaging of Shawader touch switch.
Dismantling of Tuya touch switch with CB3S module. CB3S module embedded on a circuit board of the D07-TOUCH-V1.0_2022.9.3 touch switch. Two WiFi touch switches showing connection schematics.
Two boxes of Shawader touch switches lying on a wooden surface.

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 Rel

JSON for 1 gang:
Code: JSON
Log in, to see the code


autoexec.bat for dimmer:
startDriver TuyaMCU
setChannelType 1 toggle
setChannelType 2 dimmer
tuyaMcu_setDimmerRange 2 1000
linkTuyaMCUOutputToChannel 1 1 1
linkTuyaMCUOutputToChannel 2 2 2

JSON for 1 dimmer:
Code: JSON
Log in, to see the code


Hopefully this is useful to some.

About Author
theslydog wrote 7 posts with rating 2 . Been with us since 2023 year.

Comments

p.kaczmarek2 08 Oct 2023 22:37

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]

%}