Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tam
PowerSave 1
pincopallino1010 wrote:
Will it still send the open/close event even if he is sleeping?
TL;DR: In 7 steps, this guide shows how to flash BK7231N AUBESS/no-name door sensors at 3.3V and preconfigure pins before first boot. As one maintainer put it, "Good job!" It is for OpenBeken users who want reliable sleep, correct door state, and easier Home Assistant setup on low-power sensors. [#20684016]
Why it matters: Preconfiguring these battery door sensors during flashing avoids short wake-window setup problems and fixes common errors such as wrong hall-sensor pins, inverted states, and bad channel mapping.
| Option | Best use | Main advantage | Main drawback |
|---|---|---|---|
| Preconfigure in BK7231GUIFlashTool | First flash of sleeping sensors | Works before the short wake window closes | Requires correct pin map upfront |
| Configure later in web app | Bench testing on stable power | Same end result | Harder on devices sleeping after 30–60 s |
| DoorSensor driver | MQTT/Home Assistant workflows | Handles wake, report, then sleep | Waits for MQTT by design |
| Script with PinDeepSleep + SendGET | HTTP-only alerts | No MQTT dependency | Needs manual logic and testing |
Key insight: The most important fix is to map the hall sensor correctly and keep BAT_Relay/BAT_ADC on a different channel. On several variants, using the wrong hall pin or sharing the hall channel with battery measurement causes false or missing door events. [#20881128]
backlog dstime 30; another working example uses DSTime 15 for faster return to sleep. [#20683982]backlog dstime 30. 3. Click Do backup and flash new, then briefly short CEN to GND to reset and start flashing. After boot, check the router for the IP and verify settings in the web UI. [#20683982]backlog dstime 30 reduced that to 30 seconds. Another tested template used DSTime 15, which was enough to send MQTT data and then sleep sooner. Shorter values save battery, but they also shorten your configuration window. [#20837864]autoexec.bat. The maintainer stated there are 3 possible DSEdge options, and this setting helps when one transition wakes the device but the opposite transition does not, such as close waking it while open does nothing. "DSEdge is an edge-selection setting that tells the door-sensor driver which transition should trigger wake logic, with multiple modes for different hall sensor circuits." This is the first fix to test before remapping pins. [#20684016]backlog dstime 30, and a later maintainer reply added PowerSave 1 in the short startup command or autoexec.bat. That combination cuts awake time and reduces idle radio work. If you do not use MQTT, disable it so the device does not wait on a broker unnecessarily. On these sensors, every extra second awake costs battery life because Wi‑Fi startup dominates power use. [#21080933]PinDeepSleep, SendGET, and optional button logic avoids that dependency, but you must write and test the wake/report/sleep flow yourself. In short: DoorSensor is easier for Home Assistant; scripts are better for lean HTTP-only setups. [#21084211]