logo elektroda
logo elektroda
X
logo elektroda

[BK7231N/CB2S/BL0937] Tuya AU LSPA9? Smart Socket: Energy Monitoring, Firmware 1.1.8

andrewmarkcongdon  1 3399 Cool? (+2)
Listen:

TL;DR

  • An unbranded Tuya LSPA9 Australian smart socket with energy monitoring was inspected, including two units on firmware 1.1.8.
  • The teardown identified the BK7231N/CB2S pinout: P6 BL0937CF1, P7 BL0937CF, P8 WiFi LED, P11 button, P24 BL0939SEL, and P26 relay.
  • One unit had an unsoldered earth pin that still made contact, while the other did not.
  • The socket is slightly wider than Arlec/Connect models and does not fit double GPOs.
AI summary based on the discussion. May contain errors.


Another unbranded Tuya LSPA9. This is an Australian model.
I had 2 with 1.1.8 firmware but the download seemed slightly different?
Note: the earth pin is unsoldered. One was making contact, one wasn't!
These are slightly wider than the Arlec/Connect models and don't work in double GPOs.



P6 is the BL0937CF1 pin
P7 is the BL0937CF pin
P8 is the Wifi LED
P11 is the Button
P24 is the BL0939SEL pin
P26 is the Relay
Attachments:
  • TUYA-readResult_BK7231N_QIO_2023-12-5--09-56-52.bin (2 MB) You must be logged in to download this attachment.
  • TUYA-readResult_BK7231N_QIO_2023-12-5--10-29-32.bin (2 MB) You must be logged in to download this attachment.

About Author
andrewmarkcongdon wrote 22 posts with rating 5 , helped 3 times. Been with us since 2023 year.

Comments

p.kaczmarek2 19 May 2023 09:12

And here's OBK template for that: { "vendor": "Tuya", "bDetailed": "0", "name": "Tuya AU LSPA9? Smart Socket: Energy Monitoring", "model": "LSPA9", "chip": "BK7231N", "board": "CB2S", ... [Read more]

FAQ

TL;DR: For 6 mapped pins, the expert note says "P6 is the BL0937CF1 pin"; this FAQ helps OpenBeken users configure an unbranded Australian Tuya LSPA9 smart socket with BK7231N, CB2S, BL0937 energy monitoring, firmware 1.1.8, relay, button, WiFi LED, and safety checks. [#20586316] Why it matters: A wrong pin map can break relay control, energy readings, LED behavior, or expose a faulty earth connection.

Device or variant Width or outlet fit Thread-specific note
Unbranded Tuya AU LSPA9 Wider Does not work in double Australian GPOs
Arlec/Connect models Narrower Used as the comparison for better double-GPO spacing

Key insight: Use the OpenBeken template pins exactly as posted: BL0937 on P6, P7, and P24; WiFi LED on P8; button on P11; relay on P26.

Quick Facts

  • The Australian unbranded Tuya LSPA9 sample used BK7231N, a CB2S board, and Tuya firmware 1.1.8. [#20586316]
  • The energy-monitoring pin group uses P6 for BL0937CF1, P7 for BL0937CF, and P24 for BL0937SEL. [#20586316]
  • User-interface and load-control pins are P8 for WiFi LED, P11 for the button, and P26 for the relay. [#20586316]
  • The posted OpenBeken template identifies vendor as Tuya, model as LSPA9, chip as BK7231N, board as CB2S, and keywords as Australia and AU. [#20586439]
  • A safety-relevant edge case appears in 2 devices: one earth pin made contact, and one did not. [#20586316]

How do I configure an unbranded Tuya AU LSPA9 smart socket with BK7231N and CB2S in OpenBeken?

Configure it with the posted OpenBeken LSPA9 template for BK7231N and CB2S.
  1. Select the Tuya LSPA9 profile details.
  2. Set chip to BK7231N and board to CB2S.
  3. Apply pins P6, P7, P8, P11, P24, and P26 for metering and control. This maps BL0937 metering, WiFi LED, button, and relay roles in one template. [#20586439]

What is the correct OpenBeken template for the Tuya AU LSPA9 smart socket with BL0937 energy monitoring?

The correct template uses vendor Tuya, model LSPA9, chip BK7231N, and board CB2S. Its pins are P6 BL0937CF1, P7 BL0937CF, P8 WifiLED_n, P11 Btn, P24 BL0937SEL, and P26 Rel. The template name is “Tuya AU LSPA9? Smart Socket: Energy Monitoring.” [#20586439]

Which BK7231N pins are used for BL0937 CF1, CF, SEL, WiFi LED, button, and relay on the Tuya AU LSPA9?

The Tuya AU LSPA9 uses P6 for BL0937 CF1, P7 for BL0937 CF, and P24 for BL0937 SEL. It uses P8 for the WiFi LED, P11 for the button, and P26 for the relay. The thread lists exactly 6 functional pin assignments for this BK7231N device. [#20586316]

What does the BL0937 chip do in a Tuya smart socket with energy monitoring?

The BL0937 provides the energy-monitoring interface for this Tuya smart socket. "BL0937 is an energy-monitoring chip that outputs measurement signals for power metering, using CF, CF1, and SEL pins mapped here to BK7231N P7, P6, and P24." In this device, OpenBeken assigns those 3 signals as BL0937CF, BL0937CF1, and BL0937SEL. [#20586439]

Why might the earth pin be unsoldered or not making contact in an Australian Tuya LSPA9 smart plug?

The thread shows a build-quality fault: the earth pin was unsoldered, and contact varied between 2 units. One device made contact, and the other did not. That difference means the issue is device-specific, not a normal OpenBeken configuration problem. [#20586316]

How should I check the earth connection safety on an unbranded Australian Tuya LSPA9 smart socket?

Check the earth connection before use because the thread found 1 non-contacting earth pin among 2 devices. Inspect whether the earth pin is soldered and physically making contact. If it is loose, unsoldered, or intermittent, do not treat the socket as safely earthed. [#20586316]

Why does the Tuya AU LSPA9 smart socket not fit properly in double Australian GPO outlets?

It does not fit properly because this unbranded Tuya LSPA9 is wider than the compared Arlec/Connect models. The author states these wider units “don’t work in double GPOs.” That is a physical spacing issue, not a firmware 1.1.8 or BK7231N issue. [#20586316]

How does the unbranded Tuya AU LSPA9 compare with Arlec or Connect smart plugs for Australian double GPO spacing?

The unbranded Tuya AU LSPA9 is wider than the Arlec/Connect models. That extra width prevents it from working in double Australian GPO outlets. The thread gives no millimetre measurement, but it gives a clear pass/fail comparison for double-GPO use. [#20586316]

What is a CB2S module in Tuya smart plugs?

CB2S is the board/module identified in the OpenBeken template for this Tuya smart plug. "CB2S is a Tuya smart-plug board or module that hosts the BK7231N configuration target, with device roles assigned through pins such as P6, P7, P8, P11, P24, and P26." The template explicitly sets board to CB2S. [#20586439]

What is BK7231N and why is it used in Tuya smart sockets?

BK7231N is the chip named for this Tuya AU LSPA9 smart socket template. "BK7231N is the smart-socket control chip that OpenBeken targets, assigning hardware functions to numbered pins for relay control, button input, WiFi LED status, and BL0937 energy monitoring." This device maps 6 BK7231N pins. [#20586439]

What is OpenBeken and how is it used with BK7231N-based Tuya devices?

OpenBeken is the firmware/template environment used here to define BK7231N device functions by pin. "OpenBeken is an alternative device firmware system that uses templates to bind Tuya hardware pins to roles, including relay, button, LED, and BL0937 metering signals." The posted OBK template contains vendor, model, chip, board, pins, image, and wiki fields. [#20586439]

How do I map Tuya LSPA9 firmware 1.1.8 pins to OpenBeken roles for relay, button, LED, and power metering?

Map the firmware 1.1.8 hardware to OpenBeken roles with the 6 posted pins. Use P26 as relay, P11 as button, and P8 as WiFi LED. For power metering, use P6 as BL0937CF1, P7 as BL0937CF, and P24 as BL0937SEL. [#20586316]

Why might two Tuya LSPA9 devices with firmware 1.1.8 have slightly different downloads or firmware dumps?

Two LSPA9 devices can show slightly different downloads even when both report firmware 1.1.8. The thread reports exactly 2 devices with 1.1.8 firmware and notes the download seemed slightly different. It does not identify a confirmed cause, version branch, or hardware revision. [#20586316]

How can I troubleshoot inaccurate energy monitoring on a BL0937-based Tuya LSPA9 smart socket?

Start by verifying the 3 BL0937 pin assignments in OpenBeken. P6 must be BL0937CF1, P7 must be BL0937CF, and P24 must be BL0937SEL. If any one of those 3 roles is wrong, energy-monitoring behavior can fail or read incorrectly. [#20586439]

What precautions should I take before opening or flashing an Australian mains-powered Tuya smart socket?

Treat the device as safety-critical before opening or flashing it. The thread found an unsoldered earth pin, with 1 unit making contact and 1 unit not making contact. Also confirm the relay on P26 and button on P11 only after the hardware is safe to handle. [#20586316]
AI summary based on the discussion. May contain errors.
%}