FAQ
TL;DR: "565 devices are now listed, and 'It worked!' confirms serial flashing success" [Elektroda, p.kaczmarek2, #21064282; Elektroda, DexEdson, #21154883]. Use a 3-wire UART, hold RST low, tap CEN, then flash; add autoexec.bat to regain full PIR/relay control.
Why it matters: These steps cut Tuya cloud ties and restore 100 % local automation.
Quick Facts
• MCU & Wi-Fi: BK7231N on CBU daughter-board, 2 MB flash [Elektroda, DexEdson, post #21153263]
• PIR delay adjustable 5 – 3600 s via dpID 49 [Elektroda, gokeeper, post #21055031]
• Sensitivity levels: low / middle / high via dpID 48 [Elektroda, gokeeper, post #21055031]
• OpenBeken database now lists 565 devices [Elektroda, p.kaczmarek2, post #21064282]
• Firmware 2.1.17 blocks Cloudcutter OTA flashing [Elektroda, DexEdson, post #21153165]
What hardware is inside the Milfra MFA05F motion switch?
The wall switch hosts a BK7231N Wi-Fi SoC on a CBU Tuya module that talks to an STM-series MCU over UART. A PIR element, CDS light sensor and one 10 A relay share the MCU. No GPIOs from the BK7231N reach sensors directly
[Elektroda, gokeeper, post #21055031]
Can I flash OpenBeken without desoldering the board?
How do I enter flashing mode via UART?
- Connect 3.3 V, GND, RX→TX, TX→RX.
- Keep RST pad shorted to GND and power the module.
- Release RST, tap CEN to GND once or twice; console should show boot logs, then start flashing. [Elektroda, DexEdson, post #21154883]
Cloudcutter fails on firmware 2.1.17—what now?
Tuya blocked the exploit in 2.1.17, so OTA fails. Use the serial method described above or desolder the CBU. Edge-case: some units ship with glued shells, making pin access harder
[Elektroda, DexEdson, post #21153165]
Which datapoints control the PIR schedule?
My PIR sensor is silent after flashing—how can I fix it?
Make sure the device knows local time (tuyaMcu_sendCurTime) and push valid values to dpIDs 101/102 in autoexec.bat. Many users regained detection immediately after adding that line
[Elektroda, gokeeper, post #21062811]
How can I decouple the relay from motion detection?
What does tuyaMCU_defWiFiState 4 do?
Do I need a WebApp template or just autoexec.bat?
How do I enable MQTT after migration?
How to adjust motion sensitivity and timeout?
Is motion detection always reliable?
How do I back up the original firmware?
Template settings reset after saving—why?
Is the older ESP8266 version easier to hack?