logo elektroda
logo elektroda
X
logo elektroda

OpenBL602-Flashed Tuya Energy Plug Restarts Randomly When MQTT Added to Home Assistant

tadeu1 909 6
ADVERTISEMENT
  • MQTT setup triggers random BL602 restarts

    #1 21793757
    tadeu1
    Level 6  
    Posts: 83
    Help: 2
    Rate: 3
    I flashed my energy plug with the OpenBL602
    WIFI ok I can access.
    Using this layout, everything running well, but when I try to use mqtt after add to HA, the device start to restart randonly, just when I add mqtt

    I leave mqtt server in blank right now to still with the device connected


    Current Device:

    UpTime: 2046s

    Build: Built on Dec 29 2025 20:06:55 version 1.18.233

    IP Address: 172.16.0.180

    MAC Address: -- -- -- -- -- ( I hidden this field)

    MQTT Server: :1883

    MQTT Topic: obk_tomada_01

    Device Short Name: obl023D92B5

    WEBAPP Url root: https://openbekeniot.github.io/webapp/

    Chipset: BL602

    Flags: 128

    Version: 1.18.233

    {
    "vendor": "Tuya",
    "bDetailed": "0",
    "name": "Full Device Name Here",
    "model": "enter short model name here",
    "chip": "BL602",
    "board": "TODO",
    "flags": "128",
    "keywords": [
    "TODO",
    "TODO",
    "TODO"
    ],
    "pins": {
    "2": "Rel;1",
    "3": "BL0937CF1;0",
    "14": "BL0937CF;0",
    "20": "LED_n;1",
    "21": "BL0937SEL;0",
    "22": "Btn;1"
    },
    "command": "",
    "image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
    "wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
    }
  • ADVERTISEMENT
  • Helpful post

    BL_RST_SOFTWARE_WATCHDOG traced to MQTT on BL602

    #2 21794416
    divadiow
    Level 38  
    Posts: 5220
    Help: 449
    Rate: 918
    I have the same pin config on a BL0937 BL602 plug and will attempt to replicate this. What is the reboot reason given in GUI for you?

    Added after 44 [minutes]:

    it seems I can replicate this.

    The real plug is disconnecting from MQTT often and eventually will reboot.

    Reboot reason: BL_RST_SOFTWARE_WATCHDOG

    Importing the same config into a BL602 dev board and setting up HA/MQTT also gives the same behaviour, but I can watch the full debug log.

    there does not seem to be any crash output but simply straight into a reboot

    Code: Text
    Log in, to see the code


    stop bl0937 driver and MQTT is stable again, no reboot.

    hmm

    Added after 2 [hours] 34 [minutes]:

    try version 1.18.209. I am not seeing reboots so far with this. 1.18.210 introduced lots of changes and I get reboot behaviour with it

    https://github.com/openshwprojects/OpenBK7231T_App/pull/1853/files
  • ADVERTISEMENT
  • #3 21794612
    tadeu1
    Level 6  
    Posts: 83
    Help: 2
    Rate: 3
    >>21794416

    When I arrive home, I'll do the test.

    Thanks for replicating.

    It's my first time with OpenBK, one of the plugs I replaced the module because I broke the reboot pin and the other I applied the OpenBK and you helped me too at the other post! Thanks for your support.

    Added after 11 [hours] 21 [minutes]:

    It's work flawless now. Thanks for your support again
  • #4 21799558
    tadeu1
    Level 6  
    Posts: 83
    Help: 2
    Rate: 3
    after update, to 209 the system works!
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #6 21799693
    tadeu1
    Level 6  
    Posts: 83
    Help: 2
    Rate: 3
    >>21799567 Thanks, man! It's the BL602 with the BL0973 problem I saw there.
  • #7 21800474
    tadeu1
    Level 6  
    Posts: 83
    Help: 2
    Rate: 3
    >>21799567 I'm running the version 234 and looks like it's fixed.

Topic summary

LABEL_AI_GENERATED
A Tuya BL602 energy plug flashed with OpenBL602 works on Wi‑Fi, but adding MQTT in Home Assistant causes random reboots. The issue was reproduced on both the real plug and a BL602 dev board using the same pin configuration, with the reboot reason shown as BL_RST_SOFTWARE_WATCHDOG. Debug logs indicated MQTT disconnects followed by watchdog resets. After updating to newer OpenBK/OpenBL602 builds, the device became stable, and version 234 was reported as fixed.
AI summary based on the discussion. May contain errors.
ADVERTISEMENT