Need a RS485 TTL adapter like MAX. My SRNE clone Sungoldpower 5k has 5volts on a pin.
In Arduino IDE 2.3.x choose Partition scheme min SPIFFS 1.9MB apps. You may have to use the vanilla ESP32 DEV board to select partition scheme.
ESP32toSRNE interaction with modbus over wifi and ble
Researching alternative method of using esphome in home asssistant with the local webserver functionality. Example working yaml.