I’m struggling with a wemos D1 board I installed that has been working flawlessly until a recent router change I needed to do in the house. Yesterday I was finally able to update the device, using some advice from the forum, but now the device, in ESPHome and the devices it controls in HASS keep going offline every few minutes. It will be online for about 30s to 1min and then offline for 2mins and then online for 1min and offline again, etc. I’m thinking I might just need to replace the board, but I’d like to just do a swap. If I flash my existing config to a new board, can I just swap them out and everything will be back, or do I have to add it in as a new board and then reconfigure my dashboard to pick up all the alarm system sensors and whatnot, that this device talks to?
Yes you can.
Are you sure? When i connected another module with same esphome program it showed with all sensors added with “_2, while original ones were unavailable”. I had to remove and re-add module to preserve same sensor names.
Honestly, it’s a long time since I have replaced a board, I might be wrong.
Deleting the existing device integration (from home assistant, not the ESPHome addon) and restarting would be cheap insurance before flashing the new board. It should then create the same entities when the device is added again.
If I did that, wouldn’t I lose all the tie-ins I’ve made with those entities? The custom alarm system dashboard as well as scenes that are triggered by different things (like the alarm system motion sensor turning on lights in the middle of the night, for example)?
I’m fairly new to Home Assistant and ESPHome, so if I’m saying something dumb here, my apologies in advance. Thanks!
No, you just need to delete the integration, and once re-added, it will populate with the same sensors as previously.
Obviously do a backup of HA first.
Go to /config/integrations
, Esphome device menu
, Delete
.
Sounds like a plan, I’ll let you guys know how it works out. Thanks!
Well it turns out the flakiness I was seeing was from an IP address conflict rather than the board. So I didn’t need to do the swap. Upside is it’s working now, downside is, no swap, lol.