Invertor MUST pv18 5248 pro + BMS + HA

Hello,

I’m working with a MUST PV18 5248-PRO inverter and I want to use both communication interfaces:

Using project GitHub - vladyspavlov/esphome-must-inverter: ESPHome config to monitor and control a Must inverter via RS485 I found out. If you connected only ESP32+rs485 in USB type (A/B) port all everysing ok. But, as soon as I connected BMS in rs485 port data to HA from ESP32+rs485 is emty.
I have 5 AKB DYNESS B4850 LiFePO4 48V/50AH.

My goal is to have the inverter still communicate with the BMS normally via RS485, but at the same time I want Modbus data to ESP32 over USB without interfering with the inverter’s and BMS normal operation.

Questions:

Are there any recommended setups or best practices for bridging Modbus data to Home Assistant without breaking the inverter ↔ BMS link?

Thank you in advance for any guidance or examples.