I purchased this device with the impression it included a TYWE3S module (ESP8266), but it instead came with a CB3S module (BK7231N). The specifications on the inside of the door even list this device's module as a TYWE3S, so I was surprised to find something else. I had never worked with a Beken chip, but thankfully found this community and OpenBeken 👍
Device link: https://www.amazon.com/dp/B08VRJSH5Z
Screenshots:
Disassembly is straightforward to reach the module. There are eight phillips head screws, and four 3mm tri wing screws to contend with. Here are pictures of the disassembly:
TX and RX on this device are not connected to anything, so there is no need to remove the module from the board to flash it.
I probed the board with a multimeter in continuity mode to discover the GPIO mapping and found this:
GPIO6 - Button
GPIO8 - LED
GPIO24 - Relay
I was not able to backup the firmware on the module using the GUI tool (https://github.com/openshwprojects/BK7231GUIFlashTool), but the module accepted the write just fine. To place the module into the correct mode to flash it, all I had to do was start the firmware write in the GUI tool, then press and hold the button on the module for about four seconds. That caused the module to reboot and accept the flash.
Here is my JSON template:
After flashing and configuring, I followed this guide to make the device populate in Home Assistant: https://youtu.be/pkcspey25V4
Please let me know if you have any questions, I'll be happy to answer them!
Device link: https://www.amazon.com/dp/B08VRJSH5Z
Screenshots:
![[CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken [CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken](https://obrazki.elektroda.pl/7085053600_1686375378_thumb.jpg)
![[CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken [CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken](https://obrazki.elektroda.pl/4291725600_1686375401_thumb.jpg)
Disassembly is straightforward to reach the module. There are eight phillips head screws, and four 3mm tri wing screws to contend with. Here are pictures of the disassembly:
![[CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken [CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken](https://obrazki.elektroda.pl/4720767300_1686354916_thumb.jpg)
![[CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken [CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken](https://obrazki.elektroda.pl/9966371500_1686354934_thumb.jpg)
![[CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken [CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken](https://obrazki.elektroda.pl/5733178200_1686354944_thumb.jpg)
![[CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken [CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken](https://obrazki.elektroda.pl/3632599600_1686354952_thumb.jpg)
![[CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken [CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken](https://obrazki.elektroda.pl/1176001200_1686354961_thumb.jpg)
![[CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken [CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken](https://obrazki.elektroda.pl/5369460300_1686354966_thumb.jpg)
![[CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken [CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken](https://obrazki.elektroda.pl/5885021100_1686354974_thumb.jpg)
![[CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken [CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken](https://obrazki.elektroda.pl/4146123900_1686354983_thumb.jpg)
![[CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken [CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken](https://obrazki.elektroda.pl/9663369600_1686354986_thumb.jpg)
TX and RX on this device are not connected to anything, so there is no need to remove the module from the board to flash it.
![[CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken [CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken](https://obrazki.elektroda.pl/1723475700_1686355089_thumb.jpg)
![[CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken [CB3S/BK7231N] Suraielec 40A Outdoor Plug UBTW01B: expected TYWE3S (ESP8266) but got Beken](https://obrazki.elektroda.pl/4883788200_1686355090_thumb.jpg)
I probed the board with a multimeter in continuity mode to discover the GPIO mapping and found this:
GPIO6 - Button
GPIO8 - LED
GPIO24 - Relay
I was not able to backup the firmware on the module using the GUI tool (https://github.com/openshwprojects/BK7231GUIFlashTool), but the module accepted the write just fine. To place the module into the correct mode to flash it, all I had to do was start the firmware write in the GUI tool, then press and hold the button on the module for about four seconds. That caused the module to reboot and accept the flash.
Here is my JSON template:
Code: JSON
After flashing and configuring, I followed this guide to make the device populate in Home Assistant: https://youtu.be/pkcspey25V4
Please let me know if you have any questions, I'll be happy to answer them!
Cool? Ranking DIY