solaredge_modbus
solaredge_modbus copied to clipboard
Batteries connected to Followers
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?