Replacing esp8266 with esp32 board without loosing data (pipsolar)

I have a working solar monitoring setup done on esp8266 module. Pipsolar alone is quite a strain on esp8266 and the device often behaves in a weird way: often delays and many warnings in the log are very worrisome and it looks like the platform is struggling with amount of data that uart sends at it. I would like to swap it with more modern platform (esp32) and expand capability of the unit that I have (need to add a screen, one more uart and few sensors all of which wont work with esp8266).

What’s the easiest way to do it and keep the existing data and integrations?

  1. unplug existing ESP
  2. change yaml to reflect new board type
  3. flash new board.

Done…