logo elektroda
logo elektroda
X
logo elektroda

Seeking Configuration for TUYA Door Window Sensor BK7231N, MC36-CB3S with CB3S Wifi Module

rufus33 1623 3
ADVERTISEMENT
  • #1 20852369
    rufus33
    Level 2  

    Hi all, I'm really stuck with this device and really need your kind help as I'm a noob in this field.
    It's a TUYA Door Window Sensor, BK7231N, board number MC36-CB3S and the WiFi module number CB3S and I do not see the TuyaMCU on it. Please help me with the correct configs for this device. I have attached the dump file from the BK7231Flasher software.

    I have managed to flash the open Beken firmware on it and it's able to connect to my router.

    TUYA BK7231N door and window sensor with open casing [url=https://obrazki.elektroda.pl/2951759200_1702052516.jpg]
  • ADVERTISEMENT
  • #2 20854326
    p.kaczmarek2
    Moderator Smart Home
    Well, it seems that our Tuya Config decoder is able to find a lot of useful information in this flash:
    
    Device configuration, as extracted from Tuya: 
    - Button (channel 0) on P24
    - Status LED on P26
    - PIR sensor on P8
    - Battery Relay on P14
    - Battery Max Voltage: 3000
    - Battery Min Voltage: 2200
    - Battery ADC on P23
    Device seems to use Battery Driver. See more details here: https://www.elektroda.com/rtvforum/topic3959103.html
    Device seems to be using CB3S module, which is using BK7231N.
    And the Tuya section starts at UNCOMMON POSITION 0
    

    So the configuration itself should be relatively easy. Have you tried following the similiar topics, usually based on DoorSensor driver or a manual, script-only approach?
    https://www.elektroda.com/rtvforum/find.php?q=DoorSensor

    PS: The "pir sensor" is obviously the hall sensor in case of this device.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20855821
    rufus33
    Level 2  

    Screenshot of pin configuration settings for OpenBK7231N_FrontDoorSensor.
    Screenshot showing the settings of the OpenBK7231N front door sensor with status information.
    Screenshot of configuration settings for a device named OpenBK7231N_FrontDoorSensor, showing various flag options and their current values.

    Ok, that's good. Now with this info, how should I set these information to the PIN Settings Config and channel types? Also, if there is any startup command needed? I'm not sure if I did these settings correctly because in HA it shows only like this:

    Home Assistant application interface showing device information for Beken Corporation's BKT231N.
  • Helpful post
    #4 20855955
    p.kaczmarek2
    Moderator Smart Home
    Home Assistant Discovery must be done after every configuration change. So, if you've paired a device with HA, and later configured a door sensor, then you must do Discovery again in order for changes to show up in HA.
    Helpful post? Buy me a coffee.
ADVERTISEMENT