Generic Tuya WIFI Smart Socket for different countries (LSPA8)
TL;DR
- The LSPA8 generic Tuya WiFi smart socket uses a WB2S module and a BL0937 chip to measure power consumption.
- It can be programmed via UART with bk_writer1.60.exe by wiring 3.3V, GND, 1RX, and 1TX to a USB-to-UART programmer.
- The socket is rated for 16A and requires crossed RX/TX connections during programming.
- The switch on pin 1RX must be disconnected, and CEN on the WB2S should be held to GND at the start of programming.
Model: LSPA8
Max.load 16A
Contains a WB2S module and a BL0937 to measure power consumption.
Available on AliExpress (e.g. https://www.aliexpress.com/wholesale?catId=0&...+FR+I&spm=a2g0o.productlist.1000002.0&dida=y)
Programming the WB2S with bk_writer1.60.exe is easily possible with UART.
Just connect 3.3V to VBAT, GND, 1RX and 1TX to a USB to UART programmer.
RX and TX have to be crossed between programmer and WB2S (RX on programmer has to be connected to TX on WB2S).
To program the device, the switch on pin 1RX has to be disconnected because the switch has a pullup resistor which prevents from programming via UART.
Connect CEN (Reset of WB2S) to GND at the beginning of programming.
After successful programming, the following configuration has to be defined:
Photos of the opened device will follow.
Comments
Thank you for providing configuration template. From what I see, the device seems to be using BL0937 power metering chip. Are you also able to provide some photos from the inside? [Read more]
Photos of the inside of the Smart WIFI Switch https://obrazki.elektroda.pl/6725564600_1668427841_thumb.jpg https://obrazki.elektroda.pl/9034890800_1668427841_thumb.jpg https://obrazki.elektroda.pl/1450166600_1668427842_thumb.jpg... [Read more]
Thanks, this will certainly be useful for beginners and new OBK users. As per CEN - I usually don't do CEN, just reboot with power off/on cycle. I also usually desolder whole WB2S for that and power... [Read more]
Thanks for this post! I am new to this, and used this info to get OpenBK on a similar but smaller plug. Mine is a generic 16A UK LSPA7, but the internals are similar -- WB2S and BL0937. It opened easily... [Read more]
It's good that it worked out. Tell me if you need any special features, I can add them for you. LSPA7 is not yet on our devices list, so thank you for photos, I will add them here: https://openbekeniot.github.io/webapp/devicesList.html If... [Read more]
OK, I will -- thanks for producing this awesome software [Read more]
Hi. Thank you very much for this post. I have a similar plug, looks completely identical, also using CB2S. See attached p https://obrazki.elektroda.pl/9562477500_1675522782_thumb.jpg hoto. T... [Read more]
Hello, I have this LBP8 ( Link ) which has the CB2S chip I have flashed the version 1.17.588 Chipset BK7231N and configured the same as the version with the WB2S. Now the relay works but the power monitor... [Read more]
Have you tried to do Tuya Config Extraction? Added after 1 [minutes]: @itzikr the WiFi will not work if you are powering device from low quality/low power power supply. Try desoldering flashing... [Read more]
Thanks, everything works! [Read more]
That's good to hear. Can you post your complete template (JSON format, copy text from Web App) so we can add this device to supported devices list? [Read more]
Please 😊 [Read more]
Here is corrected template: { "vendor": "Tuya", "bDetailed": "0", "name": "Smart Switzerland Socket SW Plug 16A", "model": "LBP8", "chip": "BK7231N", "board": "CB2S", "flags":... [Read more]
Sorry, you wanted the version for the LSPA8 CB2S, now here it is! [Read more]
I have tried to modify the OBK template { "vendor": "Tuya", "bDetailed": "0", "name": "Smart Switzerland Socket SW Plug 16A", "model": "LBP8", "chip": "BK7231N", "board": "CB2S", ... [Read more]
Excuse me, so what is the correct template? I am a bit confused now. Shall I change the one I uploaded? Judging from your script, the BL0937 driver may be not running. Maybe you need to reboot your... [Read more]
Yes, change because the current entry is for LSPA2 and not for LSPA8 (CB2S). How can I start the BL0937 driver manually if reboot does not help? This is displayed in the “Export Current Template” ... [Read more]
Hey geni0815 This is my current configuration: { "vendor": "Tuya", "bDetailed": "0", "name": "Full Device Name... [Read more]
Do you have the chip WB2S? I have the CB2S! My switch works (power meter functionality) with my specifications if I import according to the video. With the template import it does not work because probably... [Read more]