Hello,
I bought a Tuya Wifi Door sensor powered by 2xAAA batteries.
Output of BF7231 Flasher:
I did some tests and this setup works:
But I have a problem with the wake up from deep sleep mode:
- when the sensor goes into deep sleep from closed (door closed), when the door is opened the device wakes up
- when the sensor goes into deep sleep from open (door open), closing or reopening the door the device doesn't wake up (I need to remove a battery for restore it)
Can anyone help me to wake the device from deep sleep mode when the sensor is open?
Thanks.
I bought a Tuya Wifi Door sensor powered by 2xAAA batteries.

Output of BF7231 Flasher:
{
"bt_pin":"20",
"status_led_pin":"26",
"rstcnt":"3",
"basic_pin_pin":"24",
"module":"CBU",
"jv":"1.0.4",
"bt_lv":"0",
"net_t":"180",
"samp_type":"1",
"basic_st":"1",
"basic_pin_lv":"0",
"samp_sw_pin":"17",
"max_V":"3000",
"min_V":"2000",
"samp_sw_lv":"1",
"status_led_lv":"1",
"samp_pin":"23",
"crc":"53"
}
Device configuration, as extracted from Tuya:
- Button (channel 0) on P20
- Status LED on P26
- PIR sensor on P24
- Battery Relay on P17
- Battery Max Voltage: 3000
- Battery Min Voltage: 2000
- 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 CBU module, which is using BK7231N.
And the Tuya section starts, as usual, at 2023424
I did some tests and this setup works:
{
"vendor": "Tuya",
"bDetailed": "0",
"name": "Tuya Door",
"model": "DR_01_Sensor",
"chip": "BK7231N",
"board": "CB3S",
"flags": "0",
"keywords": [
"door",
"sensor",
"battery",
"Tuya"
],
"pins": {
"17": "BAT_Relay;1",
"20": "Btn;0",
"23": "BAT_ADC;1",
"24": "DoorSnsrWSleep;0",
"26": "WifiLED_n;0"
},
"command": "backlog PowerSave 1; startDriver battery; startDriver DoorSensor; dstime 60",
"image": "https://obrazki.elektroda.pl/7057404500_1705011297.jpg",
"wiki": "https://www.elektroda.com/rtvforum/viewtopic.php?p=20904497"
}
But I have a problem with the wake up from deep sleep mode:
- when the sensor goes into deep sleep from closed (door closed), when the door is opened the device wakes up
- when the sensor goes into deep sleep from open (door open), closing or reopening the door the device doesn't wake up (I need to remove a battery for restore it)
Can anyone help me to wake the device from deep sleep mode when the sensor is open?
Thanks.