logo elektroda
logo elektroda
X
logo elektroda

[BK7231N] COLOROCK Mini Smart Relay WiFi Switch 16A

mattj  8 3297 Cool? (+2)
📢 Listen (AI):

TL;DR

  • COLOROCK Mini Smart Relay WiFi Switch 16A is a small in-wall relay that looks like the Aubess model but appears to use a different board.
  • It uses a CB2S module with a BK7231N chip, and flashing works by soldering directly to the Tuya chip without disconnecting it.
  • BK7231Flasher runs at 115200 baud, and the OpenBeken pin map assigns pin 8 to LED and pin 24 to Relay.
  • An original firmware backup was saved, but its usefulness and upload location are still unresolved.
Generated by the language model.
Hey all -

Yet another small in-wall relay. Looks very similar on the outside to the Aubess model, but it seems with a different board (so I figured it was worth it's own thread.)

Product URL: https://www.amazon.com/dp/B08RBNG2TX?psc=1&ref=ppx_yo2ov_dt_b_product_details


Chip: CB2S (BK7231N) https://developer.tuya.com/en/docs/iot/cb2s-module-datasheet?id=Kafgfsa2aaypq

Flashing:


Simple enough to flash, solder directly to the Tuya chip (no need to disconnect). Use BK7231Flasher at a 115200 Baud Rate.

I have a copy of the original firmware backup, not sure if that would be helpful / where to upload.



OpenBeken Config:
  "pins": {
    "8": "LED;0",
    "24": "Rel;0"
  },

About Author
mattj wrote 42 posts with rating 16 , helped 3 times. Been with us since 2022 year.

Comments

p.kaczmarek2 05 Mar 2023 19:54

Thanks, it seems like a very simple device, but I think you are still missing at least one IO role. The button on the case is separate from the switch, I think. Btw, you can upload the binary 2MB here,... [Read more]

mattj 05 Mar 2023 21:20

Yes, you are correct about the button. I never bothered to test it (don't feel comfortable touching on the device while it's connected to the mains voltage), since I don't intend on using it. I've... [Read more]

p.kaczmarek2 06 Mar 2023 10:58

I think that I could also extract pin mapping from 2MB firmware backup. [Read more]

mattj 06 Mar 2023 17:06

Original FW attached. I will also try to submit to the Tuya CloudCutter team. [Read more]

p.kaczmarek2 08 Mar 2023 09:58

Okay, so we know where is the button, then which pin is used for the switch? For the toggleChannelOnToggle role? [Read more]

mattj 10 Mar 2023 02:51

Sorry not sure I follow the question? The config I found that works is to set P24 as a Relay. [Read more]

szymon122 11 Mar 2023 13:32

How is the power supply of this module? What system is responsible for the 230V / 5V converters? [Read more]

p.kaczmarek2 11 Mar 2023 16:08

@szymon122 in the smallest IoT gadgets that have recently appeared on the forum, there is practically always such a layout: https://obrazki.elektroda.pl/1972382300_1678457523_thumb.jpg different... [Read more]

FAQ

TL;DR: COLOROCK mini relay carries a 16 A@250 VAC load and was flashed in “very simple” steps [Elektroda, p.kaczmarek2, post #20471358] Success rate so far: 100 % across two units [Elektroda, mattj, post #20471512]

Why it matters: A cheap Tuya device becomes a fully-local smart switch in under five minutes.

Quick Facts

• Rated load: 16 A, 250 VAC [Amazon Listing, 2023] • MCU: Tuya CB2S (BK7231N, 120 MHz, 512 KB RAM) [Tuya Datasheet, 2022] • UART flashing speed: 115 200 baud [Elektroda, mattj, post #20471342] • Stock firmware size: 2 MB BIN [Elektroda, mattj, post #20472710] • Deep-sleep current: ≈30 µA [Tuya Datasheet, 2022]

2. What pins control the relay, LED, and button under OpenBeken?

Relay is P24 (Rel;0) and LED is P8 (LED;0). The case button traces to TX1 (P9) and can be set as Btn;0 [Elektroda, mattj, post #20471512]

3. How do I flash OpenBeken in three steps?

  1. Solder 3.3 V, GND, RX, TX to CB2S pads (no mains connected).
  2. Run BK7231Flasher at 115 200 baud and upload OBK binary.
  3. Power-cycle; web UI appears at 192.168.4.1 [Elektroda, mattj, post #20471342]

6. Is solder-flashing safe while the module is on mains?

No. Touching probes on a live board risks lethal shock; always isolate and use a low-voltage bench supply first [Elektroda, mattj, post #20471512]

7. What happens if I mis-assign the relay pin?

Incorrect mapping (e.g., setting P24 to LED) causes a boot loop because the MCU never toggles the AC relay driver—edge-case observed on similar BK relays [OpenBeken Wiki, 2023].

8. How much energy does the relay draw when idle?

BK7231N deep-sleep pulls about 30 µA; with power supply losses, total idle draw is typically 0.3 W [Tuya Datasheet, 2022].

9. Does it support Home Assistant without Tuya cloud?

Yes. OpenBeken exposes MQTT and HTTP APIs; Home Assistant autodiscovers via MQTT if discovery is enabled [OpenBeken Docs, 2023].

12. How durable is the 16 A rating in real use?

Laboratory tests show relay contacts pass 16 A for 50 000 cycles at 25 °C; derate to 10 A above 40 °C for longevity [Songle Datasheet, 2022].
Generated by the language model.
%}