logo elektroda
logo elektroda
X
logo elektroda

Configuring EARU EAWCBT WiFi Relay with OpenBK on BK7231N Chip

earurelay 3447 7
ADVERTISEMENT
  • Helpful post

    OpenBK pinout and config for EARU EAWCBT relay

    #1 21384272
    earurelay
    Level 6  
    Posts: 11
    Help: 2
    Rate: 5
    EARU Wifi Relay model EAWCBT support.

    Hi guys,

    I recently bought on Aliexpress some cheap WiFi Relay, and wanted to use OpenBK on it.

    This model is not yet in device database, but I managed to make it working with openBK.

    This is the device : EARU EAWCBT Wi-Fi relay with connectors and labels.

    I quickly opened it up, by drilling on existing rivets. They can be replaced with some screws later.

    Inside, it is a CBS3 chip (BK7231N) with a relay activated by a bridge.
    Interior of an opened EARU Wi-Fi relay model EAWCBT with visible electronic components.


    I use this datasheet to find correct pinout : CB3S datasheet and BK7231 GUI Flash tool to flash it.

    Here is the correct pins to use when updating device:
    Interior of a device with CB3S chip and cable connection labels.

    It worked flawlessly :)
    Laptop with an open configuration sheet and EARU EAWCBT Wi-Fi relay on the desk.

    Then I connected to device using onboard AP, and configured it to use my wifi.
    On next reboot, I used the suggested configurations by the BK7231 Flash Tool, but it doesn't work. Relay was seen as a relay, not a bridge driven relay.

    After some testing, here is the configuration that works for me.

    Code: JSON
    Log in, to see the code


    Hope it helps!
  • ADVERTISEMENT
  • Helpful post

    Suggesting PowerSave 1 to reduce heating

    #2 21385925
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14699
    Help: 656
    Rate: 12734
    Thank you for sharing. It's good to see another bridge relay device. Out of curiosity, have you tried to measure the power consumption of this device? The bridge relay requires only power to toggle, so it should be more efficient than "classic" relay, where coil in one state has to be energized all the time.

    By the way, I think you can also enable PowerSave 1 on this device. This will prolong the life of the power supply and reduce heating.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • Helpful post

    PowerSave mode cuts relay current to 1.3 mA

    #3 21386296
    earurelay
    Level 6  
    Posts: 11
    Help: 2
    Rate: 5
    Hi p.kaczmarek2 ,

    Thank you for your message, it helps!

    First of all, I tried measuring consumption, and then I read your comment about PowerSave, it changed everything!

    ANENG AOS02 electrical meter and TONGOU relay on a wooden table.

    ConsumptionRelay activation
    Normal7mA28mA
    PowerSave 1
    1.3mA8.7mA


    Meter reading at 1302 microamps.
    1.3mA, this is excellent! Day consumption is (0.0013x230)*24 = 7.2 Watt!

    I was amazed it can change consumption like this!

    I also noticed that my whole relay setting was inverted. When I got Power OFF, I got power, and vice versa.
    I modified the config (and updated my first post) to make it match reality.
    By now, when I issue a POWER OFF command, JSON output match.
  • ADVERTISEMENT
  • Setting both startup channels to -1 fixes relay state restore

    #4 21618740
    earurelay
    Level 6  
    Posts: 11
    Help: 2
    Rate: 5
    Hi all,

    A quick update on this Earu relays.

    They work fine.

    I did update today to latest 1.18.141 firmware. Works perfectly.

    I also sorted out a strange behavior. If relay was ON when rebooting, device says OFF but relay was still ON. Need to cycle power button to fix it.

    I just set default value (-1) for both Channel 0 and Channel 1 and it did the trick (in Config menu, then Configure Startup).
    And I understood my error. As it is a bridge, it uses 2 channels (0 and 1) to change bridge state. Then it needs to know both values to restore correct state on a reboot.
  • ADVERTISEMENT
  • #5 21777226
    eguivigo
    Level 1  
    Posts: 1
    Hi all,
    I want to develop an application to read the power measurements and save it in a database from an EARU EAWCBT Wi-Fi.
    Could you give me some information about it?
  • #6 21777234
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14699
    Help: 656
    Rate: 12734
    You mean after flashing with OBK?

    Use obk HTTP API.
    Helpful post? Buy me a coffee.
  • Power metering unavailable on this relay model

    #7 21777373
    earurelay
    Level 6  
    Posts: 11
    Help: 2
    Rate: 5
    >>21777226

    Hi,

    Power measurement is not available on this particular relay model.

    For other model, such as Earu EAKCB-T-M, reading is available with HTTP GET.
    I use it with RedNode to read wattage value.

    This is an example of device answer with command: cm?cmnd=STATUS


    Screenshot of a JSON panel showing status data from an IoT device using OpenBK7231N


    You can see voltage, frequency, power, ...

    But only for relay with metering function available.

    Hope this helps
  • No power measurement without hardware support

    #8 21777387
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14699
    Help: 656
    Rate: 12734
    Ah yes, I apologize, I assumed that @eguivigo is asking for measurement access on the device that has it. Well, if your device does not feature power measurement, then there is no way to access it, obviously. First please double check in the product listing or within Tuya app, just to be sure. Then proceed to flashing.

    You can also use SendGET command with $voltage or $power or $current arguments (if your device has measurements). That way OBK can send data to HTTP server which you can later process in PHP.
    Helpful post? Buy me a coffee.

Topic summary

✨ Discussion about flashing an EARU EAWCBT Wi‑Fi relay with OpenBK on a BK7231N-based CB3S module. The device was not yet in the database, but the pinout was identified from the CB3S/BK7231 documentation and the relay was successfully flashed and configured through the onboard AP. PowerSave 1 was recommended and confirmed to greatly reduce idle and relay activation current, while also lowering heating. The relay logic was initially inverted and was corrected in the configuration. Later, a reboot-state issue on bridge relay operation was solved by setting both Channel 0 and Channel 1 startup values to -1, which restored the correct relay state after power cycling. A later question about power measurement clarified that this specific relay model does not include metering, while other EARU models with metering can expose voltage, current, and power via OBK HTTP API or SendGET.
Summary generated by AI based on the discussion content.
ADVERTISEMENT