Hi. This is how I use Wi-Fi for Home Assistant.It took a while, but the effect was very good. My BMS via the rs232 connector connected to the rs232 ttl to uart converter. And further to esp32. I converted the esp32 software from seplos-bms. Here's your software:
https://github.com/syssi/esphome-seplos-bms/issues/71 . Look for the comment from February 3. There is a tdt-bms.zip file there.
When in doubt, ask.