Possible To Keep ESP Device On While Updating?

I realize this might be device specific, but I am wondering if there is a way to keep a device “on” while updating.

I know it needs to reboot after the update, but I’m hoping that the actual power on my Kauf outlet can just stay at an on state when I update ESPHome on it (doing regular updates). I want to use the plug on something that I have to do a controlled shutdown on every time I update the plug and the plug, of course, powers the device off and on rapidly when it reboots.

I’m guessing there isn’t any way since the ESP is talking to a relay that is likely in a NC state but I thought it would be worth asking anyway.

You should have looked at ESPHome documentation :wink: just add

restore_mode: always_on
in the switch configuration in ESP yaml and you relay won’t go off att all during flash and reboot :wink:

I don’t think that’s possible, but why are you updating such a device so regulary if you need a controlled shutdown for the device which is using that outlet? ‘If it ain’t broke don’t fix it’. You can check the release notes if something is changed you want to use for that specific device, if not just do an update once after a couple of major releases. This month we already have 8 point releases. Are you updating all your devices after every point release?

If it’s a NC relay, then yeah, I don’t think it will be possible.

I did, but I wasn’t looking for “restore mode” I was looking for “restart” and “boot” and “flash”. I did attempt to search my answer in the both the docs and here before I posted.

Regardless, changing what was already there, which was restore_mode: RESTORE_DEFAULT_ON to restore_mode: ALWAYS_ON didn’t make a difference, it still blinks off and on when flashing.

I agree and that’s how I have treated it so far, but I hate to get too far behind since updating after a long wait can often be problematic.

Because it’s my failsafe for Home Assistant locking up when I’m out of town. I wrote it to check if HA has been down for X minutes and if so then it will power cycle to bring it up. This was in direct response to an issue I had (but haven’t had in quite a while) where sometimes HA would lock up and would respond to pings but not actually do anything. It’s basically just a disaster recovery thing when it was still on a rPi, it’s not any longer but still like having the insurance policy.