logo elektroda
logo elektroda
X
logo elektroda

Flashing BK7231N CB3S Tuya PIR Motion Sensor HW400B-W from Cutesliving Store

divadiow 876 2
ADVERTISEMENT
  • #1 20890159
    divadiow
    Level 34  
    Not terribly interesting and very easy to flash. Almost identical to this unit here but with A004 revision board. Both devices have the same PCB reference - HW400B-W, not HW4008-W.

    Bought from Cutesliving AliExpress store

    Advertisement for Tuya WiFi Smart PIR motion sensor on the Cutesliving Store webpage.

    Close-up of a printed circuit board with HW400B-W A004 marking. Close-up of a PCB marked HW400B-W A004 with a visible mounting component. Close-up of an electronic device's circuit board with purple laminate, visible SMD components, and a mounting screw. Close-up of CB3S module with TY CB3S marking and QR code visible. Electronic module with CB3S board on a pink background. PCB with a mounted PIR sensor and various electronic components. Electronic board with a PIR sensor on a purple background. Electronic circuit board with connected test leads. Disassembled PIR motion sensor casing on a green mat with a scale. Box of a WiFi PIR motion sensor with Tuya branding. Back of the packaging for Tuya WiFi PIR Motion Sensor with a barcode and product information. Back of WiFi PIR motion sensor packaging with technical information.
    Screenshot of the OpenBK7231N interface showing device information.
    Screenshot of Tuya device pin configuration.

    Looks like Cloudcutter could be an option with this firmware version, but I didn't try
    Message indicating no updates available for modules V1.0.6.

    Device configuration, as extracted from Tuya: 
    - Button (channel 0) on P7
    - Status LED on P26
    - PIR sensor on P8
    - Battery Relay on P14
    - Battery Max Voltage: 3000
    - Battery Min Voltage: 2400
    - Battery ADC on P23
    

    dump attached and uart2 boot log, if of interest.

    and OBK template, if it's worthy of another entry

    Code: JSON
    Log in, to see the code


    I changed pin 8 from "8": "dInput;0", to "8": "DoorSnsrWSleep;0", because that seems to be what it should be?
  • ADVERTISEMENT
  • #2 20890294
    divadiow
    Level 34  
    Sadly, it detects as a plug in Alexa using the Wemo emulation, which is of no use.
  • #3 20897405
    divadiow
    Level 34  
    Is there a sensor emulation option?
ADVERTISEMENT