logo elektroda
logo elektroda
X
logo elektroda

CT60W PIR Sensor Integration with HomeAssistant: BK7231N & CB3S - Flashing Issues

wenter 1284 4
ADVERTISEMENT
  • #1 20309931
    wenter
    Level 2  
    I have recently purchased this sensor from Aliexpress. Link
    Idea was to pair it with HomeAssistant and use it to turn on the light on detected movement.
    Here are some pictures of the box and internal components.
    CT60W PIR Sensor Integration with HomeAssistant: BK7231N & CB3S - Flashing Issues
    CT60W PIR Sensor Integration with HomeAssistant: BK7231N & CB3S - Flashing Issues
    CT60W PIR Sensor Integration with HomeAssistant: BK7231N & CB3S - Flashing Issues CT60W PIR Sensor Integration with HomeAssistant: BK7231N & CB3S - Flashing Issues CT60W PIR Sensor Integration with HomeAssistant: BK7231N & CB3S - Flashing Issues CT60W PIR Sensor Integration with HomeAssistant: BK7231N & CB3S - Flashing Issues

    I wanted to flash it with Libretuya, but even though the firmware was compiled, I could not upload it.

    I flashed it with OpenBeken. I used Generic OpenBK7231N_QIO_1.15.102.bin
    CT60W PIR Sensor Integration with HomeAssistant: BK7231N & CB3S - Flashing Issues CT60W PIR Sensor Integration with HomeAssistant: BK7231N & CB3S - Flashing Issues CT60W PIR Sensor Integration with HomeAssistant: BK7231N & CB3S - Flashing Issues

    Now I can access it via web-interface. I am not sure how to configure it so I can add it to Home Assistant and have it detect motion.
    I have added MQTT IP, user and password, but it does not appear in HA.
    Would appreciate any help with this project.
  • ADVERTISEMENT
  • #2 20312351
    p.kaczmarek2
    Moderator Smart Home
    Hello, I will try to help you. Are you able to determine which CB3S pin is used for PIR sensor?

    You should configure it as DigitalInput or maybe DigitalInput_NoPup (no pull up), depending on the sensor and the board.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20313315
    wenter
    Level 2  
    I have tried to trace connections but did not find much.
    Here are my findings:
    1) There is a pairing button on top of the board, it goes to pin D13 of CB3S
    2) There is an LED on top of the board that goes to pin D12 of CB3S
    3) PIR sensor is BS612 and it has 6 pins.
    4) I have connected 3v power to the board and there was 3v on 3 pins. See picture.
    CT60W PIR Sensor Integration with HomeAssistant: BK7231N & CB3S - Flashing Issues
    I could not trace any of the pins from PIR to CB3S.
  • ADVERTISEMENT
  • #4 20313604
    p.kaczmarek2
    Moderator Smart Home
    Maybe there is a resistor on the way? Between PIR and CB3S?

    If not, you will have to try each pin and see if it reacts.... or... assign next value to each pin, like pin 1 = channel 1, pin 2 = channel 2, etc etc, and then see if it reacts to movement, if any of the channel changes... first try digitalInput, also try digitalInput_nopup (no pull up)...
    Helpful post? Buy me a coffee.
  • #5 20320622
    wenter
    Level 2  
    Would you, please point me into how the pins should be assigned in configuration?
ADVERTISEMENT