logo elektroda
logo elektroda
X
logo elektroda

[Solved] Maintaining Relay State Post OTA Firmware Update on BK7231N Devices

Automauto 792 4
ADVERTISEMENT
  • #1 20899147
    Automauto
    Level 2  

    Hi,

    I have a few BK7231N power plugs that I have flashed with OpenBeken.
    When I update their firmware OTA, they reboot and their relay is OFF.
    Is it possible to have the relay be ON by default after a reboot?
    Ideally, they would not switch OFF at all during a firmware update.

    Thanks for any help with this.
  • ADVERTISEMENT
  • Helpful post
    #2 20899256
    p.kaczmarek2
    Moderator Smart Home
    I think you can set this in Startup tab in settings:
    ChristmasT software settings interface for configuring pin start values.
    Alternatively, you can just enter a startup command or write autoexec.bat script with something like:
    
    setChannel 1 1
    

    or, if you prefer Tasmota syntax:
    
    POWER ON
    

    There will always be a little click when you reboot device, as it takes a short moment to start OBK after booting
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20899262
    Automauto
    Level 2  

    Thanks!

    I just tried -1 as a value in Config Startup > Channel 0, and the switch powers on again after a firmware update.

    I'm guessing there is no way to keep the switch on during an update?
    I use some of these to monitor PC power use, and the restart causes issues :)
  • ADVERTISEMENT
  • Helpful post
    #4 20899263
    p.kaczmarek2
    Moderator Smart Home
    Well, why would you like to keep relay on during update? It's not that update is done very often....

    Still, depending on your use case, maybe it would be possible to make some kind of hardware mod to the device to open relay with a delay.
    Helpful post? Buy me a coffee.
  • #5 20899274
    Automauto
    Level 2  

    First reply was great and gave me some options to resolve this issue.
ADVERTISEMENT