def METHOD_NAME(ip_address: str, ip_address2: str) -> None:
    client1, bat1 = create_modbus_bat(ip_address)
    bat_state_1 = get_modbus_bat_state(client1, bat1)
    if ip_address2 != "none":
        client2, bat2 = create_modbus_bat(ip_address2)
        bat_state_2 = get_modbus_bat_state(client2, bat2)
        soc = (bat_state_1.soc + bat_state_2.soc)/2
        power = bat_state_1.power + bat_state_2.power
    else:
        soc = bat_state_1.soc
        power = bat_state_1.power
    bat1.set_state(BatState(soc=soc, power=power))