logo elektroda
logo elektroda
X
logo elektroda

Generic Tuya WIFI Smart Socket for different countries (LSPA8)

merni99  Cool? (+3)
WIFI Smart Socket
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.

About Author
merni99 wrote 7 posts with rating 4 . Been with us since 2022 year.

Comments

p.kaczmarek2 14 Nov 2022 06:51

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]

merni99 14 Nov 2022 13:11

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]

p.kaczmarek2 14 Nov 2022 14:45

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]

beniamino38 24 Nov 2022 09:52

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]

p.kaczmarek2 24 Nov 2022 09:56

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]

beniamino38 24 Nov 2022 10:33

OK, I will -- thanks for producing this awesome software [Read more]

itzikR 04 Feb 2023 16:04

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]

geni0815 19 May 2024 13:07

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]

p.kaczmarek2 19 May 2024 13:10

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]

geni0815 20 May 2024 13:07

Thanks, everything works! [Read more]

p.kaczmarek2 20 May 2024 14:46

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]

geni0815 21 May 2024 16:47

Please 😊 [Read more]

p.kaczmarek2 21 May 2024 17:34

Here is corrected template: { "vendor": "Tuya", "bDetailed": "0", "name": "Smart Switzerland Socket SW Plug 16A", "model": "LBP8", "chip": "BK7231N", "board": "CB2S", "flags":... [Read more]

geni0815 22 May 2024 09:03

Sorry, you wanted the version for the LSPA8 CB2S, now here it is! [Read more]

geni0815 22 May 2024 10:59

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]

p.kaczmarek2 22 May 2024 13:47

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]

geni0815 22 May 2024 14:45

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]

merni99 22 May 2024 19:33

Hey geni0815 This is my current configuration: { "vendor": "Tuya", "bDetailed": "0", "name": "Full Device Name... [Read more]

geni0815 23 May 2024 09:41

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]

%}