bohdan-s / SunGather

GNU General Public License v3.0
162 stars 68 forks source link

Support for multiple inverters? #126

Open erikderzweite opened 1 year ago

erikderzweite commented 1 year ago

Hi!

anyone had a success with more than one inverter connected together? I cannot scrape the modbus of the second inverter connected via LAN cable.

asdnjqiuwe commented 1 year ago

I'm wondering this as well. I have two Inverters. The configuration seems to only support one config.yml, would you simply run two Docker instances where each of them point to a different config?

Not sure what you mean by "connected together" though, so perhaps the use case is different.

Edit: OK, seems like running two instances is doable.

erikderzweite commented 1 year ago

I've sucessfully started two instances after all. "Connected together" means in my case master-slave connection over modbus. You have to put slave = 0x02 for the second inverter though.

asdnjqiuwe commented 1 year ago

That's good to hear, thanks!

Why are they connected together master-slave over modbus? I don't think my Inverters know about each other at all.

asdnjqiuwe commented 1 year ago

Ok so the master-slave is a configuration in Sungrow, as far as I understand it only applies to Hybrid variants?

erikderzweite commented 1 year ago

I don't know if other variants support the master-slave. I know though that one of the reasons for using it is German law requiring the export power to be limited to 70% of the installed power. Master-Slave connection ensures that this threshold is not exceeded. Not sure about the reasons to use it outside Germany though as the power and load value of both systems cannot be read over modbus from master only.

jeffwood-lab commented 3 months ago

I've sucessfully started two instances after all. "Connected together" means in my case master-slave connection over modbus. You have to put slave = 0x02 for the second inverter though.

I do have the same problem. I have 3 inverters(each on one phase). I can only connect to one inverter at a time. I am using this as an add-on to HAOS. Have you been able to make this work on HA? Anyone else could come up with a solution?

julianbraun commented 4 days ago

I tried to use I have two identical inverters and am currently running two Docker containers in parallel. I also get all the data in HA, but here I have the problem that the name of the inverters is the model name, which is the same. Not very nice and I can't manage to change the names at the moment.

julianbraun commented 4 days ago

I have found a workaround:

If you have the same inverter multiple or want to change the Name in HA: