Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamTL;DR: “Latest OBK builds extend battery life by up to 60 %” [Elektroda, p.kaczmarek2, post #20588135] “You flash it as usual” [Elektroda, p.kaczmarek2, post #20582789] Flash success rises when RX/TX lines to the Tuya MCU are isolated. Why it matters: you can turn a €6 TH01 into a cloud-free, Home-Assistant-ready sensor in under 10 minutes.
• MCU type: BK7231N-QFN32 on CB3S module; 2 MB flash [Elektroda, Wen2024, post #20931316] • Default Tuya baud: 115 200 bps (some boards use 9 600 bps) [Elektroda, BAGZZlash, post #21552797] • Typical dpIDs: 1 = Temp×10, 2 = RH%, 3/101 = Battery enum [Elektroda, anthonythomas, #20516557; doudouni100, #21441634] • Max OBK channels per build: 64 [Elektroda, doudouni100, post #21441842] • Cost of TH01 board: €5–8 retail (2025 AliExpress listings)
backlog startDriver TuyaMCU; startDriver tmSensor; tuyaMCU_setBaudRate 115200; setChannelType 1 temperature_div10; linkTuyaMCUOutputToChannel 1 val 1; setChannelType 2 Humidity; linkTuyaMCUOutputToChannel 2 val 2; setChannelType 3 LowMidHigh; linkTuyaMCUOutputToChannel 3 enum 3
This publishes temperature, humidity and battery level [Elektroda, anthonythomas, post #20516646]linkTuyaMCUOutputToChannel 101 enum 10 then setChannelType 10 LowMidHigh to stay within the 64-channel limit [Elektroda, doudouni100, post #21442987]tuyaMcu_defWiFiState 0x04; OBK then skips the MQTT-wait state and still logs locally [Elektroda, p.kaczmarek2, post #20931402]AHT2X_Cycle 255 (≈4 min) [OBK docs].AHT2X_Cycle <seconds> (1-255 sec). Battery-powered TuyaMCU boards expose dpIDs 17/18 (intervals); link them to TextField channels and set desired value, then send with linkTuyaMCUOutputToChannel 17 val 5 60 [Elektroda, grericht, post #20628188]