bohdan-s / SunGather

GNU General Public License v3.0
146 stars 60 forks source link

How to configure 2 seperate instances for HA? #136

Open gemx opened 10 months ago

gemx commented 10 months ago

Hi, i have 2 inverters with seperate lan connections. Both work if configured in sungather. I created to config.yaml files with the ip address of the inverter and had to also set the client id. Then i started two instance by "python3 sungather.py -c config1.yaml" ... Both instances work and are scraping but i only see 1 device (sungrow) in the mqtt integration which shows the data of 1 inverter.

Is there any chance to configure that 2 devices will be created or is the device id somehow hardcorded?

Also tried changing the topic.

jkopka commented 8 months ago

Hello, the default config publishes under the topic "SunGather/{serial_number}", so that every inverter with his own serial number get's his own topic.