Setting up Modbus with 2 Inverters
Hi all, I am trying to get my solar system setup in Home Assistant via Modbus using the following integration: https://github.com/nathanmarlor/foxess_modbus

I have tried to read and research as much as I can but unfortunately I cannot understand how to setup Modbus for my system which has two inverters:
H1-5.0-E 5kW Inverter
F5000 5kW Inverter
12.9kWh battery storage
10x 480W Eurener panels
13x 430W Eurener panels

Any explanation would be helpful (I am trying to follow https://github.com/nathanmarlor/foxess_ ... ring-Guide). I need to have a wifi connection, which adapter would you recommend between Waveshare RS485 to Ethernet Wifi Gateway and Elfin EW11

Thank you very much!
Re: Setting up Modbus with 2 Inverters
I would use the Waveshare adapter particularly for multiple inverters.

RS485 is a bus it’s a single twisted pair that passes from transmitter to receiver and daisy chains to the next receiver and so as long as your adapter supports it (the Waveshare does) you can link pin A to every pin A on all the inverters and Pin B to Pin B on all the inverters.

It is better to use good quality twisted pair cable, you only need a single pair and cat5/6 cable is perfect for this (which obviously leaves you some spare pairs if you need them).

If you have more than 20 metres between the adaptor and the last inverter you will need to fit 120ohm termination resistors across the A/B pair at the adaptor and the last inverter in the bus.

When you set up the inverters, leave one set to it’s default slaveID of 247, set the other to a different number 246?, add each inverter in the integration using the same IP/Port number and their unique slaveID.
Re: Setting up Modbus with 2 Inverters
Thank you for the reply. Would you mind please elaborating on what else I need to buy in terms of cables etc to work with the Waveshare?

Fortunately both the inverters are right next to eachother
Re: Setting up Modbus with 2 Inverters
If you use the Waveshare wifi RS485 gateway, it will need a power supply - typically a low power 12V dc supply (like this https://www.amazon.co.uk/dp/B07WFY5JGQ ), but it says you can use a wide range of voltages (albeit the 5V from a USB is probably getting near it's lowest).

It's best to put it in a DIN rail enclosure or ABS box and if you plan to have the enclosure outdoors it will need to be IP65 / 66 to protect from the weather, but it's easier to have it indoors (where your wifi signal is strongest and manageable) and simply run the cable from there to the inverters in which case it doesn't need much IP protection - any ABS box would protect it from small fingers.

It's wifi to the device (although there is an ethernet version you could choose) and from the device it is a single twisted pair from the first inverter and then daisy chained on to the second inverter, one core of a pair wired {Waveshare}A to {Inv1}A to {Inv2}A, and the second core of the pair {Waveshare}B to {Inv1}B to {Inv2}B.

As I said a cat 5/6 'ethernet' cable is a good choice, it is internally made up of 4 small twisted pair cables and would be ideal to run from the waveshare to the inverters - it is very easy to get hold of, well specified and the cores have standard colours -so you could buy a pre made ethernet cable quite cheaply and cut the ends off; or you can use any good quality twisted pair cable as long as the distance isn't great.
Post Reply