How to enable modbus tcpserver / slave

I’m locking to emulate some sort of energy meter over modbus tcp. I have the values for AC, Power, etc as sensors in home assistant and I need to read them from Victron VRM. I configured a specific energy meter in Venus OS and I need to homeassitant to act as server / slave over modbus.over TCP.

Thanks

Modbus in HA it’s only master

Did you manage to make it work? I am looking for similar functionality but with a Solax inverter.

I think I have a similar question….

I have a Solis S5 inverter (meter type, not CT)… I would like to use HA (and I guess ESPHome with an esp32 or similar + serial to modbus adaptor) to emulate a power meter - and send grid import / export data (known by HA) to the meter port of my S5 (so the S5 can control grid export to the value set in the inverter)… any thoughts?