nmakel / solaredge_modbus

SolarEdge Modbus data collection library
MIT License
146 stars 36 forks source link

Batteries connected to Followers #97

Closed herbi3 closed 3 months ago

herbi3 commented 6 months ago

Gidday, im not sure how to change the unit for batteries connected to the followers using this example

battery1 = follower.batteries()["Battery1"]

which returns: Battery1(localhost:9004, connectionType.TCP: timeout=5, retries=3, unit=0x1)

however, the unit for the follower is: Inverter(localhost:9004, connectionType.TCP: timeout=5, retries=3, unit=0x2)

I know I can set using: battery1 = solaredge_modbus.Battery(parent=follower, offset=0, unit=0x2)

which does work in this case, however what if there are many batteries connected to the follower inverter?

Screenshot 2024-03-22 at 9 28 26 am