Why not just make a standalone device?

limiting how.

esphome is basically separate platform independent of HA. its about as seperated as and linux PC or a phone. you can connect them but if you dont it will work just the same.

depending on the connection you could bypass existing wifi module and control with esp directly or just use this